99AI/AIWebQuickDeploy/public/chat/assets/chat-7eb7de6c.js
2025-03-04 17:36:53 +08:00

654 lines
3.7 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{u as useBasicLayout}from"./useBasicLayout-18dd2ca5.js";import{I as Icon,o as useChatStore,d as useAuthStore,t as t$3,q as fetchTtsAPIProces,v as fetchPptCoverAPIProcess,m as useRoute,w as fetchQueryOneCatAPI,x as commonjsRequire$1,y as require$$7,u as useGlobalStoreWithOut,z as fetchSearchAppsAPI,A as axios,B as fetchUpdateGroupAPI,j as useAppStore,C as fetchQueryModelsListAPI,r as router,D as fetchChatAPIProcess,n as useRouter,a as useAppCatStore}from"./index-40baf14c.js";import{d as defineComponent,ae as useAttrs,e as computed,R as openBlock,U as createBlock,u as mergeProps,L as unref,W as createVNode,S as createElementBlock,a2 as createBaseVNode,a as inject,w as watch,G as onUnmounted,r as ref,a6 as createCommentVNode,a3 as normalizeClass,H as normalizeStyle,F as Fragment$1,a7 as renderList,a4 as toDisplayString,f as onMounted,y as watchEffect,k as withDirectives,a5 as vModelText,P as onUpdated,n as nextTick,B as cloneVNode,l as h$1,p as provide,ad as resolveDynamicComponent,a8 as withModifiers,V as withCtx,c as createTextVNode,z as Transition$1,af as withKeys,v as vShow,O as resolveComponent,ag as resolveDirective}from"./vue-c19408e5.js";import{h as commonjsGlobal$1,i as getDefaultExportFromCjs,g as getAugmentedNamespace,e as useMessage,s as NImage,A as NTooltip,d as useDialog,B as NScrollbar,C as NLayoutSider,D as NWatermark,E as NLayout}from"./naive-ui-64ac446a.js";import{I as IconWrapper,C as Close,R as Right,L as Left,a as CheckOne}from"./Right-153af9c5.js";import{_ as _export_sfc}from"./_plugin-vue_export-helper-c27b6911.js";import"./vueuse-motion-563da5fd.js";const _sfc_main$k=defineComponent({__name:"index",props:{icon:{}},setup(k){const m=useAttrs(),M=computed(()=>({class:m.class||"",style:m.style||"width: 1em, height: 1em"}));return(G,V)=>(openBlock(),createBlock(unref(Icon),mergeProps({icon:G.icon},M.value),null,16,["icon"]))}});function isString$1(k){return Object.prototype.toString.call(k)==="[object String]"}const Announcement=IconWrapper("announcement",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("rect",{x:"4",y:"15",width:"40",height:"26",rx:"2",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24 7L16 15H32L24 7Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M12 24H30",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M12 32H20",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),ApplicationTwo=IconWrapper("application-two",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("circle",{cx:"34.5",cy:"13.5",r:"6.5",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth},null),createVNode("circle",{cx:"34.5",cy:"34.5",r:"6.5",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth},null),createVNode("circle",{cx:"13.5",cy:"13.5",r:"6.5",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth},null),createVNode("circle",{cx:"13.5",cy:"34.5",r:"6.5",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth},null)])}),ArrowRight=IconWrapper("arrow-right",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M41.9999 24H5.99994",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M30 12L42 24L30 36",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Calendar=IconWrapper("calendar",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M5 19H43V40C43 41.1046 42.1046 42 41 42H7C5.89543 42 5 41.1046 5 40V19Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M5 9C5 7.89543 5.89543 7 7 7H41C42.1046 7 43 7.89543 43 9V19H5V9Z",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M16 4V12",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M32 4V12",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M28 34H34",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M14 34H20",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M28 26H34",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M14 26H20",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Commodity=IconWrapper("commodity",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M9.78101 9.75193C9.90612 8.75107 10.7569 8 11.7656 8H36.2344C37.2431 8 38.0939 8.75107 38.219 9.75193L41.719 37.7519C41.8682 38.9456 40.9374 40 39.7344 40H8.26556C7.06257 40 6.1318 38.9456 6.28101 37.7519L9.78101 9.75193Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M15 18C15 18 17 22 24 22C31 22 33 18 33 18",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Copy=IconWrapper("copy",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null)])}),Delete=IconWrapper("delete",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M9 10V44H39V10H9Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M20 20V33",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M28 20V33",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M4 10H44",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null)])}),DeleteThemes=IconWrapper("delete-themes",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 15H40L37 44H11L8 15Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M20.002 25.0024V35.0026",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap},null),createVNode("path",{d:"M28.0024 24.9995V34.9972",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap},null),createVNode("path",{d:"M12 14.9999L28.3242 3L36 15",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Down=IconWrapper("down",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M36 18L24 30L12 18",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),DownSmall=IconWrapper("down-small",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24.0083 35.8995V12",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M36 24L24 36L12 24",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),DownloadOne=IconWrapper("download-one",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M11.6777 20.271C7.27476 21.3181 4 25.2766 4 30C4 35.5228 8.47715 40 14 40C14.9474 40 15.864 39.8683 16.7325 39.6221",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M36.0547 20.271C40.4577 21.3181 43.7324 25.2766 43.7324 30C43.7324 35.5228 39.2553 40 33.7324 40C32.785 40 31.8684 39.8683 30.9999 39.6221",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M36 20C36 13.3726 30.6274 8 24 8C17.3726 8 12 13.3726 12 20",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M17.0654 30.119L23.9999 37.0764L31.1318 30",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24 20V33.5382",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Edit=IconWrapper("edit",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M7 42H43",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M11 26.7199V34H18.3172L39 13.3081L31.6951 6L11 26.7199Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null)])}),EditTwo=IconWrapper("edit-two",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null)])}),HamburgerButton=IconWrapper("hamburger-button",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M7.94971 11.9497H39.9497",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M7.94971 23.9497H39.9497",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M7.94971 35.9497H39.9497",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Link=IconWrapper("link",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24.7073 9.56521L9.85801 24.4145C6.34329 27.9292 6.34329 33.6277 9.85801 37.1424V37.1424C13.3727 40.6571 19.0712 40.6571 22.5859 37.1424L40.2636 19.4647C42.6067 17.1216 42.6067 13.3226 40.2636 10.9794V10.9794C37.9205 8.63628 34.1215 8.63628 31.7783 10.9794L14.1007 28.6571C12.9291 29.8287 12.9291 31.7282 14.1007 32.8997V32.8997C15.2722 34.0713 17.1717 34.0713 18.3433 32.8997L33.1925 18.0505",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),LoadingFour=IconWrapper("loading-four",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),LoadingOne=IconWrapper("loading-one",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 4V8",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M34 6.6795L32 10.1436",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M41.3203 14L37.8562 16",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M44 24H40",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M41.3203 34L37.8562 32",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M34 41.3205L32 37.8564",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24 44V40",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M14 41.3205L16 37.8564",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M6.67969 34L10.1438 32",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M4 24H8",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M6.67969 14L10.1438 16",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M14 6.6795L16 10.1436",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Logout=IconWrapper("logout",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M23.9917 6H6V42H24",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M33 33L42 24L33 15",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M16 23.9917H42",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Pause=IconWrapper("pause",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M16 12V36",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M32 12V36",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),PauseOne=IconWrapper("pause-one",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M19 18V30",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M29 18V30",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),PlayOne=IconWrapper("play-one",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null)])}),Refresh=IconWrapper("refresh",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 8V24",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M6 24L6 40",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M42 24C42 14.0589 33.9411 6 24 6C18.9145 6 14.3216 8.10896 11.0481 11.5M6 24C6 33.9411 14.0589 42 24 42C28.8556 42 33.2622 40.0774 36.5 36.9519",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),Rotation=IconWrapper("rotation",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin,"stroke-dasharray":"2 6"},null)])}),Send=IconWrapper("send",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M43 5L29.7 43L22.1 25.9L5 18.3L43 5Z",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M43.0001 5L22.1001 25.9",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),SendOne=IconWrapper("send-one",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 6L4 20.1383L24 24.0083L29.0052 44L42 6Z",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24.0083 24.0084L29.6651 18.3516",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),ShuffleOne=IconWrapper("shuffle-one",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M40 33L44 37L40 41",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M40 7L44 11L40 15",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M44 11H37C29.8203 11 24 16.8203 24 24C24 31.1797 29.8203 37 37 37H44",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap},null),createVNode("path",{d:"M4 37H11C18.1797 37 24 31.1797 24 24C24 16.8203 18.1797 11 11 11H4",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap},null)])}),Square$1=IconWrapper("square",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth},null)])}),SunOne=IconWrapper("sun-one",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 37C31.1797 37 37 31.1797 37 24C37 16.8203 31.1797 11 24 11C16.8203 11 11 16.8203 11 24C11 31.1797 16.8203 37 24 37Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M24 6C25.3807 6 26.5 4.88071 26.5 3.5C26.5 2.11929 25.3807 1 24 1C22.6193 1 21.5 2.11929 21.5 3.5C21.5 4.88071 22.6193 6 24 6Z",fill:k.colors[0]},null),createVNode("path",{d:"M38.5 12C39.8807 12 41 10.8807 41 9.5C41 8.11929 39.8807 7 38.5 7C37.1193 7 36 8.11929 36 9.5C36 10.8807 37.1193 12 38.5 12Z",fill:k.colors[0]},null),createVNode("path",{d:"M44.5 26.5C45.8807 26.5 47 25.3807 47 24C47 22.6193 45.8807 21.5 44.5 21.5C43.1193 21.5 42 22.6193 42 24C42 25.3807 43.1193 26.5 44.5 26.5Z",fill:k.colors[0]},null),createVNode("path",{d:"M38.5 41C39.8807 41 41 39.8807 41 38.5C41 37.1193 39.8807 36 38.5 36C37.1193 36 36 37.1193 36 38.5C36 39.8807 37.1193 41 38.5 41Z",fill:k.colors[0]},null),createVNode("path",{d:"M24 47C25.3807 47 26.5 45.8807 26.5 44.5C26.5 43.1193 25.3807 42 24 42C22.6193 42 21.5 43.1193 21.5 44.5C21.5 45.8807 22.6193 47 24 47Z",fill:k.colors[0]},null),createVNode("path",{d:"M9.5 41C10.8807 41 12 39.8807 12 38.5C12 37.1193 10.8807 36 9.5 36C8.11929 36 7 37.1193 7 38.5C7 39.8807 8.11929 41 9.5 41Z",fill:k.colors[0]},null),createVNode("path",{d:"M3.5 26.5C4.88071 26.5 6 25.3807 6 24C6 22.6193 4.88071 21.5 3.5 21.5C2.11929 21.5 1 22.6193 1 24C1 25.3807 2.11929 26.5 3.5 26.5Z",fill:k.colors[0]},null),createVNode("path",{d:"M9.5 12C10.8807 12 12 10.8807 12 9.5C12 8.11929 10.8807 7 9.5 7C8.11929 7 7 8.11929 7 9.5C7 10.8807 8.11929 12 9.5 12Z",fill:k.colors[0]},null)])}),Up=IconWrapper("up",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M13 30L25 18L37 30",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),User=IconWrapper("user",!1,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("circle",{cx:"24",cy:"12",r:"8",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M42 44C42 34.0589 33.9411 26 24 26C14.0589 26 6 34.0589 6 44",stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),VoiceMessage=IconWrapper("voice-message",!0,function(k){return createVNode("svg",{width:k.size,height:k.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:k.colors[1],stroke:k.colors[0],"stroke-width":k.strokeWidth,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M17 25.8994C18.1046 25.8994 19 25.004 19 23.8994C19 22.7948 18.1046 21.8994 17 21.8994C15.8954 21.8994 15 22.7948 15 23.8994C15 25.004 15.8954 25.8994 17 25.8994Z",fill:k.colors[2]},null),createVNode("path",{d:"M21.9497 28.8492C23.2165 27.5825 24 25.8325 24 23.8995C24 21.9665 23.2165 20.2165 21.9497 18.9497",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null),createVNode("path",{d:"M26.8994 33.799C29.4329 31.2655 30.9999 27.7655 30.9999 23.8995C30.9999 20.0335 29.4329 16.5335 26.8994 14",stroke:k.colors[2],"stroke-width":k.strokeWidth,"stroke-linecap":k.strokeLinecap,"stroke-linejoin":k.strokeLinejoin},null)])}),logo360=""+new URL("360logo-c09b4832.png",import.meta.url).href,ali="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6MjM6MzIrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6MjM6MzIrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjIzOjMyKzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz4QZKpRAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAlSSURBVGiB7VlrkFXFEf66e+ac+9hlAUUFUbBAJKJRAROUiKzxAUZUICqIG8QiVAwIVqICCSa4EcoNhRoQoyQVidb6QlF8giVYJWoMUdQEhSRGLYlRVpFll+U+zpnp/LhALqtZ7sol+bNf1al7qk9Pd3/3zPR0zwE60IEOdKAD/wdQOY2NvGBVVSrR/fsCqSAIhA2YA7DE79xb3+fhcvpqDVNOY2GYrgP8KIB7FCRa+PES1Vz56jv3LRuysZz+isHlMnTOFbNTzutlUvH2KRG1bPfewXkH7/Pw6q3P91h++VXryuavNcpi+OwLfs2J5iGr1eyc+fCyKxo8uRoPB+89nEbw3sHFfGwUy9nl8PdlKMvUIjnk5DiWnibV8hAAOPvRGo57biKf+BqRgScAQmLirssnTnx/CREpEYGZYIzCWCIWBjFBjVe1W+++Y/7gD9sVw4GSGD52aYLynTdaztQ8t3LiH/bIR1+yor9ER79NZJhFQAjAbMEUwhgBswEzg4xChAoyYZAQNNy5AeEnpy2qPTlfahwHPLVcxKMAjWPzyfpieRSn7/LOM/kY3sXwqoASVD28+n1sKBSqCu89FB5wdqBGVRe2J44DIvKNkXWdXWTryDSNWPvoTLdHfu7Y+werD8706hGrh6qCNAYQAeQLZHxBDgCquve+IDAgTS6YcdMrqVJjKXmNDBo2+0hxh/cmTSopAaTQPMbnseulV569+oM9et+Z+Lsw15i8w3uHCAoBwFCAFIQYUAuQoJCaFV4Lz4kUe9M1APKp3pTrNxvAjWUjMnRErc02p59X79PETVkAsCYNh9hp2PCtYt3Gxs+HJTTVJYb9m5gYngIIGRDnoGQgVqHMMGyhLBAhQICYBSQCZYCFobCG4a8qK5F81vzcO9Mfkp3nw3fnegA5w2Dj9fVnfuOKdcPK7Ws0pwO8NxBjABGABQqBEwOyIVgEHgwSA7EMZQMyBWJkuDAm33sK4C4tJT6ghKw1cOicQH3iY/VRVyL9FKlNfd5Yu7y5VAdfBdNqnxLJHr9ZKT9h0bz+6/c/Yj+L/eTqyazQu+BzXckrEGk3tBx79ylDp5W1RmsNbRkw30XJNaWSAPYztTR7RN84okkBBN7FgHfwyI7msPIwAFsPOOIvwdWzNiTIhVNItg5qz7g2icRxqsKwA8UMaARVAF4SUT7/4glnTTp+49p79lkfp190fUUyClMIOsMEIRErBASQwAQhiQTwqlBiSGJXdsWdUxpb+3SRUYb1ZDksG5EguWNjnAk3ADwQSihcFhxzP872rAbwfLE+xVXdKdf9LRdVJOOshXAKzAkwB0BWoBwUMpLAMX/yTQCvt/a5dOHXc9NnfXA7tPNPANSUSqTNNfLGi3V5STSPciQZIgaLgCmA+BDGpe889czrKor1X356zt9VaAnDgF0C4g3YCcQzxAtEGawCqLvnkd+e9wUSe9DpiB3ziMNB18x9vbosRADgzXW3/UusrmZmMBeaJSGBVT5WYzuptf4OfPBLx5xhJjAIzABBUZiXCqV8HkHD/Nbjam5YtjeWm689yceamc++R+21858tKbGUVKIkkrkJJPSZUADhACIWxB6MQ+cOOveadLHua8/VfkpB0xQhCxbdnd8VtDsckuYbHrt3xPvFY665eS1LfsDsYplNbnsA0Czl+0woG5GXX5i3ywX2V0xpgEOALUApMBJdQ9/v1tb61gSPg30DIYQyAUYB8VCKdxHrva31d27tPofjnnMm/+itwXtkt984yAnpTYyq+dfN/XS/G3fJRaNNbl1orHtXJACTBcHCkAHF4bgh597evVj3ucfG74RpuBCsMREBaqBQ523T5cvrh28v1v3eD1+qQFR1NcedEhR1W1z87NabjnxJJPsihw3X7S++dm1sQ4YvHEO+8lHxDAYVGiEKoNKywaaaTl371PV76/MLJ9RRvvHE9cmgy2BGAM+5TS7YesITD4zeq3Pl9D9RmOv2ILnKS5VT4CCjSH50hgmbXjVWYAyBtUsPpeA9Ah1T99Ne//xvsbWrjA+S0csiDBEL4QDMIawYBNL1pIC7DSjWfaJ+poadm8YqUQ5sfUyN44tJAID3XY5Qn76YiMGcA0hJ/CGrKd9rM2WP2ay5Xpt93OUFRBWscafuaAPt60fiyikGCQjZ3R3e7guB+Di18pyxC/ZZ+Cvrx30ICe7zEj325CPnv1X8bMr0Ncbm0w+RtwFIQezARCBNpknTfeGTfRFX9uW4qg+kaYvKZ22ewJTcjwwbdVtvyXSdKWxACjARlAggBjNBNX0MRb3GALiveJxL//lnpJVVX/hPdvY+SxCeQeKhRGDaPV1RqAaIPAAFSZRXu23EglmnZtqKr+Q1Muz8e+4P8l3GGxA8FRomEKsSeeFCqe4lavap93qufnB6S1u2aqa+JkGm+zuMin5iYwgLSAgsDDYx2DCIBGCDROd/rJMwd2btjIHals2S34j4w05gU9gXGArxDCV/c2yieoUHOAYbAVMJ3anrNo0o6MfsAQhUCUwAsQLsoeIB9iCOdmZ9w3cXzqhuk0S7iNjEjmUSdVoINSAAkWS32HDHratXTPxC4dcWaqa9UonI/BgovAEigEVA4rbBZCZByBGxV/YgadmycFZ1Qyl2SyYS242LrKu+ijU5wDuGSURTn2wnCQAIM/1vIYRHEeVAAJQdVBQq+TsXLTj8yfba24N27SMXjFk90mj4jHr9WMO/9tKwKmbTDKYkoP9JgAoL2EY8vnTKPlOiZsaqINEycBuRVjAHEJbCrm8zn3PFpiMX11Zn/ydELr683pjM0asMJY8DuQZAAHIgCIgYYIInRswENdmMJj7+9oqlF+UAYMLU33OIges43+30QvpmiDDURkC447IldQd2Wt+uI9PH758QXzJu1Zg4rqgGxYX+BAZEBCLZnTwZJA7MnX4hCEYAWAkACTd0oLqKIYUKunAiRIU6bJOa5q88pfbgoPXeE6a+cBTFPf5owuYBxqcyGnVbb5A4kSUqZChhsGisYcMpi2857oA/Nxy0Y/76JdVb1Ju/aL7TZPj0aGE6kU0ORjxICMQxlPNvIvjw7XL4K+uHntZg3j4upJ5vslpLRBCKAAQo5FxuUvls5B215+x3jygFB/VYBwAm/+D98ywdehqRUxIoC6kylOyONxbXHf30wfbfgQ50oAMdOKj4N8mAoUMloQFmAAAAAElFTkSuQmCC",baidu=""+new URL("baidulogo-bf43b354.png",import.meta.url).href,claude="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6NTE6MDcrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6NTE6MDcrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjUxOjA3KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7/DjIoAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAi9SURBVGiB1VpbTFRLFl1Vpx8C4aUoPgINIeM4PoIQtWFABbwyMGqMMdFMzJj5NCSSCR/qXP24E03kyo+JwRjihziRZL6IhFG8t4nStjx8xEyPMTGKQgMC8hxx7Mc5p/Z8AOdSNo/u9l7xrqTTp/fZp2qvqr137arTDAuAiNjUJQcQAyAWgJWIFMYYALCpe9NgCB0041qfIQsA+AjgvwA0AGCMEebBnJ0KIayMsXUACgGUAtgIYAUA0ycG/JJ4D6ATQAuAWwCeMsZGQn5a1/VkIvonEQ0RkaCvA/8josdE9Aci4guSEELsIKIu+noIfAo/Ef1NCBEz30zkENHgYlsaAvxCiG9ptpnRNG0lCfrPYlsYBgK6rv9xcHCQAVPZhogYY+xPYPhdyIG0+DAzxs4lJiYmAVNEvF5vNGPsrwCURTUtTDDG1nHOs4EpIoqiFDDGUhbXrIgQBWAvETEOAJzzbxbZoIjBGNv54MEDxp1OJwfwG6Ivtcb9vGCMZVgsliU8PT3dyjlPYlP1xq8NjLHoNWvWLDVZrVaFMWb6nMauXbuGN2/eSLK4uDhUVFRg5vi8e/cO1dXVkl5sbCwqKirA+cKL9Rwgi8USa+KMK5CLvrDQ3d2NyspKCCFARJh2UU3TkJmZiV27dhlkEhIS4HK50NPTY+jquo4NGzagpLQELKx68ydwzs2cccYQXsUq4f79+1BVFYFAAKqqQtM0aJoGzjlOnDgBXdcNXZPJhJycHKiqaugCwPnz56GpWqQmgDHG+FRsREykqalJMnYaQggMDw/j0aNHhoxzjpKSEsxMLESEoaEhuN3uSE2YbPtzHu7t7YXT6ZzzvqIoaGpqkgzPzc3FqlWrpJj4+PEjnE4nhBAR2xIxESEEzp49C0WZuxggIty7d0+aMUVRcObMGYkcYww3b940XC0SREykr68PLS0tQW7yKbHOzk60trYavxljKCoqQmpqapBec3NzpOZETsTlckmuwBhDQkICysrKJDIWiwWnTp2C3+83ZFarFdu3b5fcy2w24+LFi5JeqOCcR0aEiNDQ0IBAIGDINE3DyZMnUVJSIrmSEAJ9fX148uSJ1HFxcXGQXm9vb8RBHxGRV69eob29XZIlJyejtLQUa9euxbrfrgsabYfDIenn5OQgJSVFmj2v1wuXy4VwyyUiiozIhQsXgmLBbrcjLi4OZrMZ31/4XpotIQTu3r0r6VssFpw7d07SIyLU19eHnb2EEOET8Xg8aGtrkzIM5xxFRUUGuU2bNmH9+vWSgZ2dnWhqapLa2rJlCzIyMiS9rq6uIL2FwBgLn0hbWxu8Xq/UiBACpaWlkqyosMhwLyKC2WzG6dOnpQGIjo7Gtm3bJDdUFAVVVVVQVTUsu8Im0tjYGBSk5eXliIqKkojs+maX5Ou6rmNsbCwo6Pft2ye1R0QYHh7Gs2fPfjkiPT09Qbk+Pj4eR48eNYrA6U9WVhaSkpKkWCIiOBwOiWBeXh5Wr14tzcr79+/R2toaVtCz0dHRxISEhLuMscz5FIUQKCsrw507d6QOkpKSsGfPHphMP+0Epqvdjo4OuN1uqZS32Wxobm429IkIjY2NOH78uNSfzWaDw+GA2WxeiAONjY1lhbwPefv2rbEIzjRsZGQEN27cCBo9xhh0Xcen+7XOzk7cd95HYVGhoVdQUACbzQaPx2O0M73Sl5SUhGQfJxHa9LW1tUFV1aANEBFB0zToui59NE2b1TUsFgu++/t30goeHR2NnJwcKIpiELdYLLh06VLIK31IMTKd3/1+f9iL1aeYXsGfPn1qyBRFwd69eyXyQgh4PB48f/48pHZNoexEXr16JRV+wGTGSUpKCmmLOjw8LKXd6arYbrcbM2C325Geno7u7m5jQfzw4QNcLheysrIWNnJkZCRRCPF0rnNJIQQdO3aMMjIyyGazkc1mo9TUVDp8+DD5fL6Qzjbr6uooJSXFeN5ms9GOHTtI0zSpH4fDQampqYZOWloa5efnS3qzmTg6OprJscC7jp6enqCV3Gw2Iy8vL5SMAgA4cOAAVq5cKcm6urpw+/Zt4zdjDNnZ2UhLSzNkRITu7m7cunVrwT74QpuZx48fY2JiQpL5/X4cOnQoKCPNBavVip07dkr6JpMJlZWV0goeFxeH7OxsmEwmQ1dRFFRXV0s12axEOOfzzsinRRxjDPv378eKFStCJsIYQ0FhgSTTdR1DQ0NBQX/w4EGoqgoiAmMMRIT+/n68ePFi3j5MNJkmZiXj8Xjw8OFDxMfHG9mEc47y8vKQCMxEQUEBEhISpCMjAGhvb8fWrVuNQcnNzUVGRgbGxsakI6OOjg5s3Lhx1sETuiCT3+8XAGatmxVFwdWrVyWZ1WpFenp6yLMxjZiYGFy/fh3j4+OSfOnSpVJbiqLgypUrGBgYmDznmrqVmJg4Z5+qpvrQ2tq6RFXVB/T1vmpbCMLtdq/i9fX1ASHEYFjD+xVBCDFeV1c3BgCYmJg4K4T4Vc6Iz+drDwQCk+9HBgYGwtuSfUXwer0/+ny+yVrryJEjj30+378X26hwIYR439/f/0NcXNzk693NmzcHXr9+fZGIwj9UWjyQz+d7/OzZMzcwVf3W1NSQ0+n818TExAN8ub9nfBZUVR2pr6//9uXLl++lG0VFRay2tnbj+Ph4G33lqVjTtPEnT578effu3XNuDFlNTU3myMjIPV3XQyttvyx0r9fb7XK5/lJQULBkpuFBR+mDg4NDHo/HwTnvT05OtlkslmUziX6uS4QJw81VVR1/+fLlPxoaGk5XVVX96HK5pHie0zC73W59+/btyqqqqt9v27atMDY2dq3Vak1SJo9F+HzP/gzGExEJVVUnvF6v58WLFw8vX77sePPmTWdMTMxES0tLUBzPa0xxcTHTdV3xeDyWZcuWWfPz85csX77cGhUVpei6PrnfX4gOzdLLtGyWb8WkkBBCHx8fV91ut8/tdvvMZnPAbrdrtbW1c56l/h8gg8dutwWvwQAAAABJRU5ErkJggg==",dalle=""+new URL("dalle-4f19ad1c.png",import.meta.url).href,gemini=""+new URL("google-6f260bf3.gif",import.meta.url).href,gpt4logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6NDU6MDQrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6NDU6MDQrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjQ1OjA0KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz5FXAnGAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAfvSURBVFiF7ZhLcJPXFcd/59PLkizZBstGlvzA2MEaAwEMAfIitAkNSZmUNpOZpsx0aDrT7ttdp5t2uuy2M11k2kXSNp1mSJMhpC2T8JqA86QBYydWjB+yjS1jy5Jl2dKn73RhFYUOkhGkCQvOUt895/507r3/e+6Rvx+xuPvM+LoBbm73sCqxe1iV2F2KZb9DfzEQGwJqYeW/FCS4fSyhqoaaFqqDuOtE7OTSujBFapzUBFbua8Jq2knro1LTjNNXJLVM0tNMXyJ6TJdTXy2WGES+J+2PYzhQJTHEbFTNJbzrpGETviaq17Fum5z/rS7GwUBva2WlosvHsLNhv2x8BmC6j8/e0MSV4leHm44DrH9c7FXkMggYTswMiWEmP9KZfhbj6K3NVlm26tpp3YvhYPikfvY6S4kbvnobsHtkJT2OKswlcgvY3TRsoqFbkjGG39FYL2bmS8UybAR34K4ncYX+V8mli59cPtqfkNAu3GsQg/hlxs7qwlUsE5uLtZ3Sshd/M5FnxenTz/9BPnvnWILdSaCb1r1S34XAwFG9zmQ4qI/Q/Zz4mlCLxRkGjur4e6DFAHOf6+hZtv1IGrbQ+ZTMj+nUhTvGCkToeFLqI4gNIDNLYhTA5qBuA62PEdwuYrAwydULDL+jizMAIiDFnZRd4P3f6dYjEtpF5BDXBjCX7gArtJPIs+IJkJkjMaTBHlmeLxwufzObnhd/mOwCsXOM92piuMBRVUvrXrFXETun86OFUJZJ9LjWtIq/WZp2MHpWS85aHquunc2Hxenj2qdcfFmragj2oFZhgZx+XH7mhrj4siZjBQk1HDTvZuMhcfoQoeUhGT6p0ePkMgDpKWYG8DURfpDRs7eVLbubDU+Ks5rkWGFiZ/VNhkWPsaIRdhf+Zu47KHUdZK4RO6+BbvEF6XxaGu/n09d1ZoBcmvRVrBz+MGKUE4uSWDUt1K0HIXpck7Fy/8ywU9tGeDdNuyS/TPRNHTlFNo33pIZ2E9op/jDbfyxTn2jsHGJDLQwbho18pVgi+JqoqmNxhsmPyjE5vES+K8Ee7B5EsLtw+QUUJT3N4DGufqTND9LyiDTtlLUbyS9jOFhKYJnlwpbAsuFtQAxmP11FY7YewbKYvsjFlxTY/ANp+wbND8vFl3TifSyTZIy+vzLeq1t+KDWtiB9gbggtt+NLZ8vmEGB5oZwzkIwRfVMnPy7Qf/h7XbeNzqdk6xFp2snw2zobxVwiMcKZ32jrI7TvF28j1UE8ARbjJcPevAxUJbcI4A2sghU9Tqy3mNF8lvFeoscB1nSy7QXZ/LysvQ+xoXlGznDpz5qZxRdkw36xOSvEsvKkp1Xz1EewVxV+XBFAl5+quuLI/PJN3PNZzAwDrzJySpseoOen0nUIw47mifcxfELFINCNL1QhFkpynHQcu5u2x0QMgGSMwWNqOHj0l9L1Hdy1IlIyriqZhA68xulfq5Wj8ynxhwDUYvgk5iLeAP4QlIhQUiBS48T78Daw/pukJpjuwzIZeI2pT7TlEWnZK4Yduwub6ya+X1ydpTmWk3gCxZHmMvF+gj14G8Sw6U2PZMknRj7L0D81NYl7Dd3fl9ZHC/tjdpBLf9ILL+rsIEDHAcK7ixw2J+HddBwoFbVg6bgCDg+l8l3u8knHWZjEH6K6kc2HpXUv//6jJoYxl5i+xMyABnew5bBse0FCD/DJikAcpmGzGAbli2ZXNUA+p6VkohyWCHXtqEXmGjYnNS3s+bmMntGxd0lNYJmMnyd+UTsPSstD7PuVWIq5yNC/WJjQyLMl953NydqNohbp6ZIldTksw47DjZXjytssTGnzHhq3yIb90rCZifc01kt6GgyyKcxlbC7Ge3X8PIlhGreUPgsQ3I4nQOYaqYmSoloOy8pj5bHb0TxTF5gdpL5LNx4UfzOd35ZgD/E+DWwSz1quRfnsDU2NYa7ohWqpM+YP03FAUOaucL3mqQxLLZIx6rvwNmJzkksz+SHxy9rxpKzfhy9EdZNkU/T9RcfOFwsbf5iOpwVuKFABw44/zJbD4m8mm+Lzt7RMUb9KGRh7l/ou6iN4G1ipI8wMA0d18kPCe8Rc0pFThYeGGNS2EdpFeI84q0nGyK7semFF9tr2Udsu7joW4/T/TeeGys27CtbEB9r+hPhCdByQC38oasz8KMmYqhZS4qmnbZ+s24q3EbUYf4+Rk5ocAxAbrlqAYI9onvglom9p/HL5aVfDMpfoP6o7fiKhXTg88vGLmv3v5V0o4oTQA3QdEk89KxV93ysa7y++92tbcddi5ZjpZ/iUzlzGXO3ZszoWMHOZwTd1w7ek8X4e/oWMnGJ2UPPLGHaq19H8sAQiBREZ72XohC4ni75OL12HRGH4lF5+pYLeyepY+SxDJ8imtG2f+MN0P0c+K2YGmxN7FQi5NLFexs5oYuQGx6paNj5DbRuLcSY/qKyfc0vPVzPDyGni/VofIbhdattwVGNlyS3hcCM2zEVNT9/gUtfOfQcJdIuVY+Q0c1dKhC5hlfUgim42sPAE2P0z8axFDHJppvtIX8VepWs6pHY9CFaOoRP0v6q32Hq4U6zr5vLR8bQ0bMLbgPGF1GdTzI8xelrH3/9fAfsqsADDga8JX4jqRhxeUZPMnC5MMj/K0vztMHHnTUrAyjE/wvwIhg0xVEHzt9ow+j9iXTcrD19S+/Qu7TTfw6rE7mFVYncp1n8AuY1j3tEIhhEAAAAASUVORK5CYII=",midjourney="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjQtMDMtMDFUMjM6Mjg6MDYrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMDMtMDFUMjM6Mjg6MDYrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDI0LTAzLTAxVDIzOjI4OjA2KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7ZULmeAAABgGlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kbtLA0EQhz8TJeKDCFqIWByiVkaiQtBGMEGiEERiBF9NcnkJeRx3ERFbwTagINr4KvQv0FawFgRFEcQ6taKNhnMuCSSImWVnv/3tzLA7C7ZQSk0bjW5IZ3J60O9VlpZXFEcBOw046cERVg1tan4+QF37epJYsQeXVat+3L/WGo0ZKjQ0C0+qmp4TnhEObOY0i/eFu9RkOCp8KTykywWFHy09UuaCxYky/1ish4I+sHUIK4kajtSwmtTTwvJy+tOpDbVyH+slbbHM4oKsfTJ7MQjix4vCLNP48DDChHgPLkYZlh118t2l/DmykquK19hCZ50ESXIMiboh1WOyxkWPyUixZfX/b1+N+NhouXqbF5reTPNjABx7UMyb5vepaRbPwP4KN5lqfvYExj9Fz1e1/mNw7sDVbVWLHMD1LnS/aGE9XJLsMm3xOLxfQPsydN5Dy2q5Z5Vzzp8htC1fdQeHRzAo8c61X+6PZ6+i2ytSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG40lEQVRYhe2YfUwTaRrAO1Om2FJLpR90+VQ+lNKCrCYnsNHdI2CODwO9k2zMsUpOkkW7uIkXD4/kIurqxXiinrInJqya09NdXTkO77SLfORidFUQIbdL+JAvO9BCO7TSznTaed/3/ujJms0GOvhxuwm/PyaTt5l5fvM87/vMO8UQQoIfH/j/W+CHWdTiw6IWHxa1+PDT16qvr3e73a9P5UUC1UIIXbx4ceXKla2trRDC1+r0v3gB0tXVJZfL5XL57t27IYSBX7gAeBRRq9XK5fLu7m6SJA0Gg9PpfH3J4qEVHBxcWVl57dq1K1euREVFZWZmkiQpEAhqa2vv3r3Lsuyr9OKVW6vVqlarEUIQwnPnziUkJJjNZpPJpFAoDAbD9PT0qyoiPy2fz6dQKHw+H0KIBaC29tN31qU/fTrS2Pj3UHmoTqe7f//+K5l2/LQQQtu3b+/v70cQAQSBe2b/+vXr3tbRjPvCxQs4jkul0nv37r28GW+tO3fuVP1+L4SQI/vH3ssaJsS/1YSU/Pp9r4/dtWvXhg0bEhMTTSbTS5rx1no2M7M2Wev6urN/xfKnwiCrTuSpVrz/tuT06T87nc7Vq1fX1dUlJSX19va+US2GYd7C8f6wiFERZn83xHeUcB3Hpr9SJ8Yv7evru3XrVkZGRmtra3x8vH8KLgze70Qcx3wCxDE2aYFYls8KJL4lmYQsxVVZHfZhRVlW1nsajYaiqNLS0tLS0oW/D/g+h9frDSWE0zuXckfEzs8w0IdxNmHnsFp3JD44NfzCpb92dD5MS0tzu906ne7Ro0cLm2QL2UEggPBYFmp80p8HcQqscUhd+Df8W2YJnrrp8KE/rU5Ji4yMfPz48fXr1wsKChaWLN5aEEKEIaEeC8rGuaXBx/4j/42Jm6Bj0fguH32Y9P7s8y8+37Nnz759+xISEvLy8s6ePbsALQzx/E5kaFq/SjrYLXJiop3/knwxKAZcpMD8OwFVEOah0775iy/qRnP7V3HxcWNjYx6PJywsbGZmRiQS8YrCO1uOZ9Pr31GOA1nx1eBrA6GQWSt8cpKg8lbYR3/R/aXO4R4ZGJm0Tn6003j+/HmxWLxt27arV6/yjcI7W8dqjjHK8xdstqfOEO5ZFiSrCCZCaxte++R2GO3WFyd41kyNW8c/2Fryy82/6unpYRgmNjaWJEmCIHiE4bVAOAjD39KE712F/yEJq6gUFVmF+fDdpDvl4tMfSw8019wFHtD7bW/GukwP41GpVAghAEBycvLY2NjrWolIIKCmpydZyglCRdYPhZYKiU+4buj68vEbQaHj2z41ZH+cjhFoxYrlk1MThIjIycnp6+vDcfzMmTMHDhzgVRY+RUSCw0ePHGn/0htcgD3BcOrfYpaULmEwDPchDkeYVr+qqKgoOzu7rGx7U9M/Ozo66uvri4uLY2JisrKySJKUSCQBhgoK/AmoaeqPn3wCZNJg72d7dxvz8o7K5aolYiIIw1ngo2naYrHc+EdTTs5GiqK6u7tTU1OFQmFLS0tPT8/MzIzFYomLiws4BYEBADAajTExMSdOnPB4PAAAAMBsB4cQ+s8hhC6X69KlS2azGT4HIdTW1uZwOFwul9VqDSRcoNlCCLEsOzAw4O9AszazTrMwDKPVaru6uhoaGiwWy8TExPDwMEmSdrvd4XAEBQWNjIxoNJq5w80/txBCFovFbDZPTk7abDar1Wq32+12O0VRLpeLpmmaphmG4TiOIAiJRCKTyZRKpUqlUiqVarVaqVSGhIRIpVKz2Ww0Gk+ePLl161Ycn2epBaQVHx9PEIRGo5FIJFKpVK1Wq1QqhUKhUCg0Go3/KJfLCYLAMOy7Wz8/hxC2tLTs2LGjurq6pKRk7nDfRZ2Xurq6srIyr9fLcdz3dgTwh+A4zv8rx3EAgIqKimXLlg0MDMyOz8v8fQshFB4efvny5TVr1hw/fnx2fGJiIjc3V6fTlZeXu1wu/6Db7TYajSkpKRs3bhwdHb1582ZGRgbLsuXl5QaDIT09va2t7RVki2XZpqamiIiI1tbWqakpvV5fVVXlcrmGh4ejo6Nramo4jtuyZUt+fr7FYrFarZs2bdq8ebPX6z116pRMJpNKpQ0NDQcPHtRqtTabrb29PTIysrGx0ePxzB13Li0IYWFhoV6v7+/v91fH6XQWFRUlJiYqFIrbt28DAPzqhw4dio6OjoqK2r9/P03T/vK1tbWFhIQkJycXFhY6HA6EEABgaGgoJSUlNzf3pbQ6OjooinpxEADQ3Nw8ODiInjcIP52dnQ8fPvzeHYaGhkwm04sdDiFEUdSDBw/m1uK9g3gz/PT/dnuTLGrxYVGLD4tafPiRav0X47gQyEklwQsAAAAASUVORK5CYII=",mindmap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAD7NJREFUeF7tncuuHLcRhtl+CGXjjXYJ4Ky9tKRsrctSWdsvETiAJMABkn2QV4iWunjvo2eIn8cTsGc40zPTzSqSVcVL/wcwLGnYvBTrO38VyWFPDj9qFjh8/+rJXPlX7vh//3M4fLfR4KXMpcDDVdlp+nL199/dw/TLh+syaqPZZ8XTPoctO+orEC4ArDm8bMPXtR1BCRABHhFbA5BEM55hmA5vTo9ag5DY4xmadzM7nz68TX94308AEGL+uwSC8mkAQ1no/DkAWTHVDEVPCsGe7tWCDyEsg8Lc2weAhNx5X1BsIzVN7wDKxTy7B2ShFu3nEmVKkfr0rCx7h2WXgACKRFZ2nLPsChCAkQjGWvGdhWC7AOTw4tXb0wYdwigBRk77LbvIVYYG5ARG2K+Qcg3Us7TA4IoyJCAAowLDg4IyFCAAowIYt00OBsoQgCD5bgCMQUHpHpDD85e/Orc4Ldugr+y2SwOoSbeAIJzqCLuOQekOEIRTHYFx3dUud+a7AgSq0S0ci8NNfZ316gIQqMYAYNyoyfT549MeRtU8ICc4fCKOn9Es0EFu0jQgCKlGI2JlPI1D0iQgCKl2AEYnIVdzgCCk2h0cTSfwTQGCkGrHcIShNxZyNQMI4AAcZws0BEkTgAAOwHFngUYgqQ4I4AAcmxZoAJKqgOCgIeBgWOCh5qZiNUAAB8M1UCRYoBokVQABHPD8DAtUgcQcEMCR4Rp4pJqSmAICOODpAhYwVRIzQLBaJeAaqOJoAcPVLRNAAAc8W9wCRpCoAwI4xF0DFRoeS1EFBHDAl9UtoKwkaoAADnXXQAPBAofpqda7GvUAef7ygBmEBcwsoASJCiBYzjVzCzR0sYDK8q84IAit4LPVLKCQj4gCAjiquQYaVspHZAFB3gFHbcECgvmIGCDIO1rwDPThZAGxfEQEEIRWcMzmLCCUjxQDAjiacw10SDAfKQcErx+AQ7ZrgeJQqwgQqEe7noGenSxQGGqVAYJVK/hhBxaYPn/M9vPsB6EeHXgGuhgskB1qZQECOOB53Vkgc28kDxCEVt35BzrsslQkGRCoB1ytWwtkJOzpgEA9uvUPdNy51IQ9CRCoB1ysewskqkgaIFCP7v0DA0hTETYgUA+41jAWSFARPiBQj2H8Yx7IX19fxvPNN8c///bb5f//O/15rFGfR8PNRViAQD0G8RIPxRIMalgekvfvnRsRFqaK8ACBelCu1PbnqWDcjmZMUFj7IiQgUI+2fT/au1Iwbiv/73vn/H+j/DB212lAoB59uoM0HMEKXk1++nufNrnvNakiUUCgHp36gRYcI0JCqAgA6ZSBzW6nwuEVwa9ehZWsP59WtCi7jBNuRVUkDgjCK8pN2vrcO/c/fqb75J3bQ7G1OuXref3aOQqWQSCJLfluAoLwivaz5kp4OGJOnerQHDVKrbM5oznnImHWNiD4rnmLU7ndJ8qZcx2ZUpPcetuy7maYFQMEl0+3NYnx3nz6sP25hBNr11/b1hsqsgoIwqvas5XYfiz3kFqWjSmUBICJQ1Yovqoi64AgOVewv2KVsdzD71lIHRWJQfLileIATarmAQL1MJkM2Ua2wh8p9Qi9jSnVCCqyEmbdKQgAkfVd9dpiTiupHmEgWzCOAIi7/976PSBYvVL36bsGqP2GWI8eP3buxx/WS2gAshXOSauV/Sz4Fu/CrDVAsHqlPTk+lvc71yVgcPqokRds5SFjAHK3J3IFCMIrjtcVlKH2KgqqvntUy2EByOGN5DyhrpMFLOEIRtdQkLFDrLsw61pBsLyrw3MNOPxIkIPkzOdVHgJAckyY8gz3AGFKndyyGitLY69iHS27WO49A4L8g+t1ieWoA4SJ1SUVlwbEekk5abCChQGIoDGpqmJnmKhnJT6XDLNisGvkOxLjz6vjHGZdFAT5R54pY09xwiuJYyB/eOTco0fbPZFw3lgepbViJj8j3BoBCNdSReUoQCRDIM3TttQ4JFWqyOByD4cvUc0Kcvj+1RM3HX6Vqx41zRagVq8kHYtqKxdGqt7x1OMqUT8C8uLVW3fA/oc41pRzSQLiO08tCKTeb0X137cpPQbxScis8JSoA5BM+7EeoxxM2rmoUCh0OgaKr8Mfg+HcwJirSizjVS50unnxCMgoBxTD5N7aNtw5K5EQp8ybNSCcsO62/0ubpJwNGxmOo43mRL1/QMJvOs5vvOAMVvfN1gAkB5IU6H3ZUfOOaztcAdLfCV7K+ahJT43HqfrWPqf6KB1iLfvADbdSxzW+cpwt4leygoL0A4j0xGtOeE1A/DRTN5IAjrgFfKLe1RIv5XCpEx7Ka0FC9VdTQSTVRMs+ufNl9dwMSC9LvJSzlRpNI66m+mwFSLBNiqKEK0lHus091Uf8SlYXgOSEVSEhr7ky0xogt6ri/x7u5A2fxa4kTXWw3st3AQgXjth9swES6/tmWwakd+e16H8XgPS8OwxALNxYs42HqelNQko9cpNHKhbPrfd2qgCIpvNa1N04IDH1KHViLfiW0wZALJxYs42GARnhvlkAoum8FnU3DIjVfbOa35IDIBZOrNnGDEibu+hW983GnLg0jAMgms5rUXejgFhfDqB1UwcAsXBi1TbaVBBrQP71T+f+9Md7Q0NBVJ2vh8r7A0TiAoLbmfnpb859+639fFkfNbEfYfcttgmI9f2vAKR7R9YaQJsbhbHYXUNB/vNv577+WsvG2/VCQextnthim4BY5yAAJNFtdlO80X0Q61d91br9EArSOmmNAuLNprX0ejsl1JETzSkEIJrWlai7YUCs8hBqx77EzH955tyzZ8hBSmxY99lOAZH69p/2fbPYKKzr3qWtN/99kN7vmwUgpS5a9/nmAaEcLHenm/o+iIVC+alHDlIXAKr15gGJJethcKnOTEEn6bhUWwCEctG6n8+AtH6zO3eVyTub/9m6XpR752yuKq1NJQCp6+ClrXdzLxblaLeGCFfW+H/nXEmaq0bUBFD9hoJQFqz6eV83K1LOVmrK1FCN0x7VZwDCsWK1MktA/MtznlTrCbdhyuG49dyWkwyrlnVT/QUguTNm8Vynt7tzcxKuCbXgCOFdLMSrDcjapXrWr4jgzpN9uQUgvVw/mvLbmTJouFJT82rNFhXE98nfphi7cdL6NRHUXNX4/OoFOq2vZG0ZKOxn+M+5V4xagBH62xIgVF+2bGzxmogaAFBtDgHIcpABEP/bcXnfbHi7lC+rqRZrBqec0iLEovpAOUr4fG+gLN9R6G3Q7O0m3AlssRzlnNqAUNe25thMM2fL6Y/SM1evgT4B0sdKlpJBVKqtBYj0QobVqp/KJORVCkDy7Jb2VA1AtOEIFhhZSU75hx/q/Aq2WUF6TdTTXNa2dA1AOGHV8qTBMi8Lx3GoVa7RIQEgRpxYA8KBg/ubnzrxHEyocYmG0fRsNRPCqysFQR6iMCuWgFChFReMWzNQY8itV8HcUlUCEClLUvVYOldMPUrPmVHjGElFFuHVvYIgD6FcPu1z6re6r22ZD6TVfin96JFz/vvvWz8Sy8kxSEZSEQCS64WZz9W6UkgjkY6NZRAVWYZXdwqCPCQTgthjNQEpDa1S8hEJlVIwf2KV8wHF5TPnZd7wj02/szBxtE0Up+J3zU5qOK3VfWWadtmq+ya8WlcQ5CHyU1MLEgCSNpccQBBmpdmUXZqzR8GujFlQIy/Ygl06nGMOUbLYbf6xqiAARNLkN3VZKomWw44KyIp6bAOCMEuPEu4OtUQPoCBsK66pxyYgUBG2XcsKcr/kFWvl8WPnfvxhvYQGIFuhopZilVmY+/Td6lV48G4VK3yAw4tc21Yu18qrInoGZCO8iirISUXafEV0ZZ9srnmrpVfrFxsZGXorvOIAgi9RGU1SUTOxFTLJMCu2yKCxpFxkFObDEfWgAUGyzrRy5WIW56Ri6jFoeEUCgmS9suOnNK/5qgjfD+pFQ53epxULr3iAQEVS3LReWWqPpSQEitU9sHqwAIGK1PP55Japg5Gpx9Ip6HwHS8BLHqDsA5R68AHp8eZFWVv2URvHobn3W3HrCq+d6MNCl14SyXkouLkPcjte3JvViQdwHDsMJXxZy1+uFy7b417Y0HNo5W8r+fyR5fusQnOYBRXphJDTO1Fil2ZLjKTj0Mox1YMdYgV7QkUkPMuojhQlSe1Sz3AkqEc6IFCRVFeqW14aks7DqnkyEtQjGZDTihaOn9R1+7TWpU4Pp66ApfXSrDQ390hO0s9hFlTEbDJFG8oFZRAwctQjS0FOKoIzWqLea1hZOGL/+vWl0fBvYTfcr2r5/zrdHd+yZqp65AOC3XVDj0ZTIhZIzD2yQ6zFihZURGTmUIm6BTLhyFaQBSRI2NVnFw2UWiAntCpWkDkXQcJeOnd4XtsCBepRrCBI2LVnF/UXWmDzu+bcetlHTbYqxHfXuaZGOXMLFKqHiIIg1DKfdjTIsYAAHGKAINTizBjKGFqgOLQSSdKXA0aoZTj9aCpqgZJVq9uKi3MQQAJvbcoCQqGVuIKECrH025S77KszwnCI5iBXSvL8JXbZ9+WaLYxWLO9YDkY0xDqrCM5qteAwu+qDZN6hDsi8qgVIduWgVQerEFqp5SBXoRaOolT1m100rgiHWg4CSHbhmvUHqQyHCSBzuAUlqe9Mo/XAAA4zQADJaN5ZeTxGcJgCMkOC5d/KnjVE8yrLuVuWUVnmjU0DIBnCSWsNwhQOcwU575NASWo5WM/tmsNRDRCEWz37aZW+V4GjKiCApIqj9dhoNTiqA4LVrR791bDPhqtVzSTpax3BPomh0/XSVANwNKEg58Qdm4m9uK5+PxuBoylAEG7p+10XLTQER3OAAJIuXFivk4fp6fTLhwe9BtJrNt8o5HYRG4pcSw1R7sEdpnetwdGkgiynG8n7EM4fH0RjIdVtZ5tVECTvO4CjwZCqO0DOoOB4ykjENBtSdQsIEvhB+Gg8pOoakAUk3znnngziMnsZRjeqsZyQ5nOQLe9BAt8RV52pxhCAIInvApCqBw0lLNStgmA5WGL61eroMpxas8YQgEBN1Bw9veKOw6nhAQEo6f4s9sRgYAS7DKUgt5ONRF7M/bcrGhSMXQACRVED5MFN05fp04e3ai00UvHQCgJFEfeyYZJvrmV2BciVovi/HA5vuIbaebndgbGrECvm3Kc8BTvz90baLRRLU+xSQbaAQVLvjl9WavS7GTVUHICsWH0G5RiC7UFZAEWEPADC+LW0AGaEnOUMhB96i9/iY0yJWREAkmHqzoABEBlzjCS9wGh3y8f+dXNfnY7fH8My/2N9HP8IwjR9cb8fcwmoQ/kkQ0HKbRitYX5XY4AnlLxAFP5lDab12z08AOEHICjPnnP/B6B0AiOP7uzBAAAAAElFTkSuQmCC",network=""+new URL("network-0f22586e.png",import.meta.url).href,sdxl=""+new URL("sdxl-7c167940.png",import.meta.url).href,suno=""+new URL("suno-e14fd81c.ico",import.meta.url).href,tencent=""+new URL("tencentlogo-358d1ec1.png",import.meta.url).href,xunfei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDE6MTM6MjIrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDE6MTM6MjIrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAxOjEzOjIyKzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7O8zxmAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAY2SURBVGiB7dl9jFRnFQbw351dGKCwUJuO/WAp/XSLQFtpdYwZU5I2Wok1bNOq2ND6ERONVkO1KjE0pmpqsdpEbTQaq8ZUbQJ+BZtq8CODcRItqdriChZCIwoDkuVjdzs7O3P9471blmXu9s7u8odxn+RmMnfO+97nueec95z3HWYwgxnM4H8J0dl+QDVyDa7EjkLs4Nl6Tu5sTTwGnfgYNlQjF1Wjs/Pypl1IqVKLSpXaeLI53IsNnB0x0yqkVKnlUMC5Kc/aIHjn4ukWM21CEhFL8H7cmGIW4SO4D93TKWZahJQqtQ5cKrzxOzBrAvMIH8InTKOYzqlOkIi4XCB3N46jY4xJs8WwCB9Inv957J8qjyl5JBFxBe7Bu7EAXegak/AnMNxieCSE4aZq5NKp8GAKQkqVWieuEkTcjfnJT/NxIc5Jvv8bVYykTPUefKYauWqyXJikkHEi7nKKNOFNX41uKMQG8EccnWDKO3F/NbJsMnyYhJAxIj7qTBGjuA49yUoGv8AeNFKmjYRFYlM1sqJdTrQpJCHWLXjiTsxNMV2KNwg1BZ7FEziIOGVMJ9ZiYzVyRTu8aN8jC7Ee75IuYpTULbihVKnNKsQa+AG+hyPSxczGW/HhamRRO8QyCylVarOFt/xepxJ7IrwKtwv1RSF2GI/iEeyWHmbnJON6s3KjPY+cJyyX3RntO/AW3Faq1M6HQuyfgpiN+A6e19o752N9NXJZVnKZqmqpUpuFNfi+1sk9Ef6Bz2FLuZg/AUk1X4qVWJFcVybXqLcP48FC7EtZHpJVyEJ8TciN8WjgOQyimDLFXwQx28rF/MDYH6qR+ViMCwRvr8JNwsr4a6wrxBMu3cgeWufi5pTf9uEbeAx7U2xWCOH0tlKldppHC7GTy9f2LV6+tu+FXYte/TgeElr+7wqF9bosBLMKWSbE7Xg08Gf8GD/HFqHXGo9ICKNNWDdeDFbj23es3rJ5+dq+JfvnX7IdX8SPcE0WglmFrNA6DI/iaRxKrsfwM9Ra2EbCSvYprEz6tFE8gzcKK+JX1tz81L23r956EFuFFudlkVXI0pT7R7C7XMw3y8V8U6jeX8Y2rRvF0bl6nV6HdiSfXXgN7vnbomWbPn7Dw1X8MgvBrELSitOgIAaUi/kR/BUP4CcYajEmSsjmx9w7PMY2J+TG259cvOYuE/doLyGrkLTVLTZuv1Eu5utCS7JRqOTHWowbv/FqOr2eRIKY25av7bskC8GsQlolMCE8ztifJ57Zh834U4txz6E+5vsizGvB7WK8LgvBrEIOpNx/Ba0bvCRn+p2Z+AP4YfI5itdq7fW5uCgLwaxb3WdT7hewqlSpLRit2lCq1LpwidBgrhpjP4xPY2e5mB/ba61Lmb/pdM+lIqtHnhYSezw6cC3eNO7+oHCicrWQ1MfxK9yKr48VXejtuxzvSHnugBCiL4usHjmG7UKLPR49eGepUtuJfeViPk5yZFtypaLQ2zdH6ApanbrEQm36QxaCWT0yGtetWu8c3oz7xBYXnzrZ0cLmNBR6+6JCb1+X0NLfmGLWj+3VrT3Tt/yWi/lh/E7Ye7fCPKyPm/EXiFYte+TQggvX7T5DUKG3L1fo7ZsvNITfFA4eWglvCkdEj2fhRxun8aVKLS/E+LeECnwmYkYGGnsG9w89MbB36MmhAy8eqB8fGU3WTmFxuCUR0C39RR7B5urWnoey8mvrlC/ZIN0v9ERz0uwaQw0n9wwOntg9+MLwf4YPjgw04ngkvkBoTybaIos6oxc1bYub8fuqW3v6s3JrV0gkhMXDwp4hP5H9yImGgX2DBvYNqffXNWpNcT0WN2LxaD8QEeUiuVmRXD430jG34/cdc3IffP7B7l3tcGv73DXpWq/FZ1GSYccYN2P1/hHDR+tx/VhdY6AZNevNOI5FuY4o7pib09nVWZ993uxKvjD7kzten8+0Uk1JCC+JWSkcWt+EV052rgT9+C0eKBfzOyczwaQfnoTZEmH7e6tQTxa2Oc0Qdgmt+lfLxfy/Jstnykf6pUptHq4XiuX1uEzwUFr+1IVCt1fYXf4Uv0l6s0lj2v5oSbavPYKYHuEwocup1a0mtCqH8HehK34mqVEzmMEMZvB/hv8CkprPZL58AJQAAAAASUVORK5CYII=",zhipu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6Mjg6MDUrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6Mjg6MDUrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjI4OjA1KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz56A23nAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAV7SURBVGiB7ZldbBRVFMd/d3a37RYGho8aW6VIMUJMCdaga1CBATQKimgkSogkLMRo0AdUDEZM1FR9ABONxoAxo4mKhMT4UNOgESb4EZ0ooMADn5HPoKgwZdrSbmd3fJjdcrvt7sz2423/yc3mnnvvuec/M/fcc85CGWWUUUYZZZSBGOkNNN2pBKYBjcDNQDdwHjgF/GCbatdw7DPsRDTdiQDLgSX4xt8ERApM7wC+Ad61TfX7oew7bEQ03VGAZcCrwPRBqPgceN421b8Hs/+QiWi6I4ClwGvAjCGqOw7cbZvqX6UuHBIRTXemADuAWQWmnAQOAoeyv4eBWuBWoAm4A6jLW3MImGOb6qVSbBk0EU13pgPfAdcNMLwH2Gib6o8BOuLAFmBl3tBm21TXl2LPoIhoutOEf0hr8oZ+Bl4Bdtum6oXUJYC1wDtcdQpdQINtqufD2lQyEU13ZgOtwFhJfBl4AmiZNmV0BTAFuBGYmm0TgdP4Z+BEtp21DJGR9H4GrJB0brRN9Y0RIaLpznygBaiWxP+OGRVdXXtN1X3AA/ifmhJCXTc+sU+ArUf+bJ8DfC2Nt9imuiSsbaGJaLozGjiKf1hz+Ke+Nr4/XhVZSDjjC6Etk/E+PHaqYw0wLis7b5tqviMoiGgJm72ARCISEV2T6+I1sahyb4i1bsBeYxVFrK+sULzuVO/XVl1kfj+EIqLpTh3Qx4vU18arYtF+L+Es8C3+GZDPQxu+m50qtWnAYiCeW9zjevIX4pbAI/QbaUZ6QuPGxKiI9SFxENgEbLcM0VNAx7ls6w1FEkmvBngGWOumvQmZzFVHF4mIkj7VwDOi6c4twL7cXEURNEyqJqIIgD+ADZYhdpayaT4SSa/6Uluq+cLF1LqcLF4VOVBfG58PjLIMcTpIRxjWq5EIT9QqciR+A+YNlQSAZYjOCxdTqiyrjCl78SOGzWF0hCEyT+5oY2IAe4F7LEPYoSwNgKY7M/EfmG+UwFMivAUkgGWJpKcH6ShKRNOd8fihOACxmIIQtDG8JATwNtJbVxTxZs24yrPAU1nRuoHWygh6IxPlTkVUAOy0DFFSQBeARcACqX/STXvNwJNcdfdNQUqCiMTlTtZTtYS3sTg03WkEPsoTb8hmjfLFe30i6U0opiuISLpPx3ePe0PaWRSa7tyGHyVfK4l/wU8LAP7LW9JQTF8QkSNA773Q3pnGTXsLw5laGJruzAV2AeMlsQ08LUXNC/KWFXXBRYnYptqjKBzL9TMZj/YOd1V4k/tD052lwE5AdrcXgLm2qf4OkEh6o+jrLdssQxRNgQPdr+exRe5fupxqaljaNTek3b3QdGe2pju7gK+AKmnoDH56e0CSrQQqpX5rkP4wRLYqCr2uNtXjCdvp2V13f2d+VjcgNN2ZpelOK/ATMD9v+Dhwl22qR3OCRNJ7HHgvb96moH1ChfE197Qv73G9bflyRaE1k2EPfgizH/88NWbbDHy3eWcBtfuAxXKhIZH0HsOvpsjloy8tQzw6LEQA6hZ1NndeSb8cdn4RHMOvuGy3TTUNkEh6DcBz+BegTOIIcLtliMtBSkvKEG94qOt9p91dm86ESsfzcRJ4HfjUNlUXIJH0ZgEvAo/Qv4h3DlhoGeJwGOUl5+wzV7gPtrW7O5wOtyqdDiSUUgQnolFl26Taql+jEWUyffORxgLrLOBhyxAjV3wASCS9es/zXrrSnVl1pStd6aY9XNdDCKisUHrbAIlXEM7gV1M+sAxRUk14SAW6bGL0LH45Z3zA9GI4hO+ZviiSmBXFsNR+sxfYGvwAcCowmeLZZwd+CnwU+NgyROA9EYQR+VshkfSi+GTkutYpsjm8ZYiSa7tllFFGGWWUUUYI/A/6RZ4aHhranwAAAABJRU5ErkJggg==",_hoisted_1$k=["src"],_hoisted_2$j=["src"],_hoisted_3$i=["src"],_hoisted_4$f=["src"],_hoisted_5$e={key:4,class:"select-none inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-200 dark:border-gray-700 border-solid dark:bg-gray-500 text-gray-600 dark:text-white font-semibold text-base"},_hoisted_6$d=createBaseVNode("span",{class:"flex items-center justify-center w-full h-full"}," AI ",-1),_hoisted_7$c=[_hoisted_6$d],_sfc_main$j=defineComponent({__name:"Avatar",props:{image:{type:Boolean},model:{},modelAvatar:{}},setup(k){const m=k,M=useChatStore(),G=computed(()=>{var D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q;if((D=m.model)!=null&&D.includes("gpt"))return gpt4logo;if((B=m.model)!=null&&B.includes("dall-e"))return dalle;if((R=m.model)!=null&&R.includes("midjourney"))return midjourney;if((U=m.model)!=null&&U.includes("gemini"))return gemini;if((K=m.model)!=null&&K.includes("360"))return logo360;if((z=m.model)!=null&&z.includes("qwen"))return ali;if((e=m.model)!=null&&e.includes("ERNIE"))return baidu;if((ae=m.model)!=null&&ae.includes("claude"))return claude;if((ie=m.model)!=null&&ie.includes("hunyuan"))return tencent;if((he=m.model)!=null&&he.includes("SparkDesk"))return xunfei;if((J=m.model)!=null&&J.includes("glm"))return zhipu;if((W=m.model)!=null&&W.includes("suno"))return suno;if((X=m.model)!=null&&X.includes("network"))return network;if((L=m.model)!=null&&L.includes("mindmap"))return mindmap;if((Q=m.model)!=null&&Q.includes("stable-diffusion"))return sdxl}),V=useAuthStore(),q=computed(()=>{var B;return((B=$.value)==null?void 0:B.appLogo)||V.globalConfig.robotAvatar}),$=computed(()=>M.groupList.find(D=>D.uuid===M.active));return(D,B)=>unref(isString$1)(D.modelAvatar)&&D.modelAvatar.length>0?(openBlock(),createElementBlock("img",{key:0,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border da r border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:D.modelAvatar,alt:"Robot Avatar"},null,8,_hoisted_1$k)):unref(isString$1)(q.value)&&q.value.length>0?(openBlock(),createElementBlock("img",{key:1,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:q.value,alt:"Robot Avatar"},null,8,_hoisted_2$j)):G.value?(openBlock(),createElementBlock("img",{key:2,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:G.value,alt:"Robot Avatar"},null,8,_hoisted_3$i)):unref(isString$1)(q.value)&&q.value.length>0?(openBlock(),createElementBlock("img",{key:3,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:q.value,alt:"Robot Avatar"},null,8,_hoisted_4$f)):(openBlock(),createElementBlock("span",_hoisted_5$e,_hoisted_7$c))}});var katex$1={exports:{}};(function(k,m){(function(G,V){k.exports=V()})(typeof self<"u"?self:commonjsGlobal$1,function(){return function(){var M={};(function(){M.d=function(Tt,De){for(var qe in De)M.o(De,qe)&&!M.o(Tt,qe)&&Object.defineProperty(Tt,qe,{enumerable:!0,get:De[qe]})}})(),function(){M.o=function(Tt,De){return Object.prototype.hasOwnProperty.call(Tt,De)}}();var G={};M.d(G,{default:function(){return Ua}});var V=function Tt(De,qe){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var We="KaTeX parse error: "+De,at,xt,Rt=qe&&qe.loc;if(Rt&&Rt.start<=Rt.end){var qt=Rt.lexer.input;at=Rt.start,xt=Rt.end,at===qt.length?We+=" at end of input: ":We+=" at position "+(at+1)+": ";var Kt=qt.slice(at,xt).replace(/[^]/g,"$&̲"),rr;at>15?rr="…"+qt.slice(at-15,at):rr=qt.slice(0,at);var mr;xt+15<qt.length?mr=qt.slice(xt,xt+15)+"…":mr=qt.slice(xt),We+=rr+Kt+mr}var Fr=new Error(We);return Fr.name="ParseError",Fr.__proto__=Tt.prototype,Fr.position=at,at!=null&&xt!=null&&(Fr.length=xt-at),Fr.rawMessage=De,Fr};V.prototype.__proto__=Error.prototype;var q=V,$=function(De,qe){return De.indexOf(qe)!==-1},D=function(De,qe){return De===void 0?qe:De},B=/([A-Z])/g,R=function(De){return De.replace(B,"-$1").toLowerCase()},U={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},K=/[&><"']/g;function z(Tt){return String(Tt).replace(K,function(De){return U[De]})}var e=function Tt(De){return De.type==="ordgroup"||De.type==="color"?De.body.length===1?Tt(De.body[0]):De:De.type==="font"?Tt(De.body):De},ae=function(De){var qe=e(De);return qe.type==="mathord"||qe.type==="textord"||qe.type==="atom"},ie=function(De){if(!De)throw new Error("Expected non-null, but got "+String(De));return De},he=function(De){var qe=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(De);return qe!=null?qe[1]:"_relative"},J={contains:$,deflt:D,escape:z,hyphenate:R,getBaseElem:e,isCharacterBox:ae,protocolFromUrl:he},W={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(De){return"#"+De}},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(De,qe){return qe.push(De),qe}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(De){return Math.max(0,De)},cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(De){return Math.max(0,De)},cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(De){return Math.max(0,De)},cli:"-e, --max-expand <n>",cliProcessor:function(De){return De==="Infinity"?1/0:parseInt(De)}},globalGroup:{type:"boolean",cli:!1}};function X(Tt){if(Tt.default)return Tt.default;var De=Tt.type,qe=Array.isArray(De)?De[0]:De;if(typeof qe!="string")return qe.enum[0];switch(qe){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var L=function(){function Tt(qe){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,qe=qe||{};for(var We in W)if(W.hasOwnProperty(We)){var at=W[We];this[We]=qe[We]!==void 0?at.processor?at.processor(qe[We]):qe[We]:X(at)}}var De=Tt.prototype;return De.reportNonstrict=function(We,at,xt){var Rt=this.strict;if(typeof Rt=="function"&&(Rt=Rt(We,at,xt)),!(!Rt||Rt==="ignore")){if(Rt===!0||Rt==="error")throw new q("LaTeX-incompatible input and strict mode is set to 'error': "+(at+" ["+We+"]"),xt);Rt==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(at+" ["+We+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Rt+"': "+at+" ["+We+"]"))}},De.useStrictBehavior=function(We,at,xt){var Rt=this.strict;if(typeof Rt=="function")try{Rt=Rt(We,at,xt)}catch{Rt="error"}return!Rt||Rt==="ignore"?!1:Rt===!0||Rt==="error"?!0:Rt==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(at+" ["+We+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Rt+"': "+at+" ["+We+"]")),!1)},De.isTrusted=function(We){We.url&&!We.protocol&&(We.protocol=J.protocolFromUrl(We.url));var at=typeof this.trust=="function"?this.trust(We):this.trust;return!!at},Tt}(),Q=function(){function Tt(qe,We,at){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=qe,this.size=We,this.cramped=at}var De=Tt.prototype;return De.sup=function(){return fe[ve[this.id]]},De.sub=function(){return fe[ye[this.id]]},De.fracNum=function(){return fe[Ce[this.id]]},De.fracDen=function(){return fe[pe[this.id]]},De.cramp=function(){return fe[_e[this.id]]},De.text=function(){return fe[Ge[this.id]]},De.isTight=function(){return this.size>=2},Tt}(),ce=0,de=1,se=2,oe=3,me=4,Ee=5,ke=6,xe=7,fe=[new Q(ce,0,!1),new Q(de,0,!0),new Q(se,1,!1),new Q(oe,1,!0),new Q(me,2,!1),new Q(Ee,2,!0),new Q(ke,3,!1),new Q(xe,3,!0)],ve=[me,Ee,me,Ee,ke,xe,ke,xe],ye=[Ee,Ee,Ee,Ee,xe,xe,xe,xe],Ce=[se,oe,me,Ee,ke,xe,ke,xe],pe=[oe,oe,Ee,Ee,xe,xe,xe,xe],_e=[de,de,oe,oe,Ee,Ee,xe,xe],Ge=[ce,de,se,oe,se,oe,se,oe],Ae={DISPLAY:fe[ce],TEXT:fe[se],SCRIPT:fe[me],SCRIPTSCRIPT:fe[ke]},Ne=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ze(Tt){for(var De=0;De<Ne.length;De++)for(var qe=Ne[De],We=0;We<qe.blocks.length;We++){var at=qe.blocks[We];if(Tt>=at[0]&&Tt<=at[1])return qe.name}return null}var ze=[];Ne.forEach(function(Tt){return Tt.blocks.forEach(function(De){return ze.push.apply(ze,De)})});function Te(Tt){for(var De=0;De<ze.length;De+=2)if(Tt>=ze[De]&&Tt<=ze[De+1])return!0;return!1}var Fe=80,Pe=function(De,qe){return"M95,"+(622+De+qe)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+De/2.075+" -"+De+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+De)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+De)+" "+qe+"h400000v"+(40+De)+"h-400000z"},we=function(De,qe){return"M263,"+(601+De+qe)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+De/2.084+" -"+De+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+De)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+De)+" "+qe+"h400000v"+(40+De)+"h-400000z"},Ie=function(De,qe){return"M983 "+(10+De+qe)+`
l`+De/3.13+" -"+De+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+De)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+De)+" "+qe+"h400000v"+(40+De)+"h-400000z"},Be=function(De,qe){return"M424,"+(2398+De+qe)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+De/4.223+" -"+De+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+De)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+De)+" "+qe+`
h400000v`+(40+De)+"h-400000z"},Ke=function(De,qe){return"M473,"+(2713+De+qe)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+De/5.298+" -"+De+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+De)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+De)+" "+qe+"h400000v"+(40+De)+"H1017.7z"},Ve=function(De){var qe=De/2;return"M400000 "+De+" H0 L"+qe+" 0 l65 45 L145 "+(De-80)+" H400000z"},je=function(De,qe,We){var at=We-54-qe-De;return"M702 "+(De+qe)+"H400000"+(40+De)+`
H742v`+at+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+qe+"H400000v"+(40+De)+"H742z"},Le=function(De,qe,We){qe=1e3*qe;var at="";switch(De){case"sqrtMain":at=Pe(qe,Fe);break;case"sqrtSize1":at=we(qe,Fe);break;case"sqrtSize2":at=Ie(qe,Fe);break;case"sqrtSize3":at=Be(qe,Fe);break;case"sqrtSize4":at=Ke(qe,Fe);break;case"sqrtTall":at=je(qe,Fe,We)}return at},et=function(De,qe){switch(De){case"⎜":return"M291 0 H417 V"+qe+" H291z M291 0 H417 V"+qe+" H291z";case"":return"M145 0 H188 V"+qe+" H145z M145 0 H188 V"+qe+" H145z";case"∥":return"M145 0 H188 V"+qe+" H145z M145 0 H188 V"+qe+" H145z"+("M367 0 H410 V"+qe+" H367z M367 0 H410 V"+qe+" H367z");case"⎟":return"M457 0 H583 V"+qe+" H457z M457 0 H583 V"+qe+" H457z";case"⎢":return"M319 0 H403 V"+qe+" H319z M319 0 H403 V"+qe+" H319z";case"⎥":return"M263 0 H347 V"+qe+" H263z M263 0 H347 V"+qe+" H263z";case"⎪":return"M384 0 H504 V"+qe+" H384z M384 0 H504 V"+qe+" H384z";case"⏐":return"M312 0 H355 V"+qe+" H312z M312 0 H355 V"+qe+" H312z";case"‖":return"M257 0 H300 V"+qe+" H257z M257 0 H300 V"+qe+" H257z"+("M478 0 H521 V"+qe+" H478z M478 0 H521 V"+qe+" H478z");default:return""}},Qe={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ue=function(De,qe){switch(De){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+qe+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+qe+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+qe+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+qe+" v1759 h84z";case"vert":return"M145 15 v585 v"+qe+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-qe+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+qe+" v585 h43z";case"doublevert":return"M145 15 v585 v"+qe+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-qe+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+qe+` v585 h43z
M367 15 v585 v`+qe+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-qe+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+qe+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+qe+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+qe+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+qe+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+qe+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+qe+` v602 h84z
M403 1759 V0 H319 V1759 v`+qe+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+qe+` v602 h84z
M347 1759 V0 h-84 V1759 v`+qe+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(qe+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(qe+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(qe+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(qe+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},$e=function(){function Tt(qe){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=qe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var De=Tt.prototype;return De.hasClass=function(We){return J.contains(this.classes,We)},De.toNode=function(){for(var We=document.createDocumentFragment(),at=0;at<this.children.length;at++)We.appendChild(this.children[at].toNode());return We},De.toMarkup=function(){for(var We="",at=0;at<this.children.length;at++)We+=this.children[at].toMarkup();return We},De.toText=function(){var We=function(xt){return xt.toText()};return this.children.map(We).join("")},Tt}(),Ye={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},tt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ot={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function st(Tt,De){Ye[Tt]=De}function dt(Tt,De,qe){if(!Ye[De])throw new Error("Font metrics not found for font: "+De+".");var We=Tt.charCodeAt(0),at=Ye[De][We];if(!at&&Tt[0]in ot&&(We=ot[Tt[0]].charCodeAt(0),at=Ye[De][We]),!at&&qe==="text"&&Te(We)&&(at=Ye[De][77]),at)return{depth:at[0],height:at[1],italic:at[2],skew:at[3],width:at[4]}}var ct={};function mt(Tt){var De;if(Tt>=5?De=0:Tt>=3?De=1:De=2,!ct[De]){var qe=ct[De]={cssEmPerMu:tt.quad[De]/18};for(var We in tt)tt.hasOwnProperty(We)&&(qe[We]=tt[We][De])}return ct[De]}var ut=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],rt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],He=function(De,qe){return qe.size<2?De:ut[De-1][qe.size-1]},Je=function(){function Tt(qe){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=qe.style,this.color=qe.color,this.size=qe.size||Tt.BASESIZE,this.textSize=qe.textSize||this.size,this.phantom=!!qe.phantom,this.font=qe.font||"",this.fontFamily=qe.fontFamily||"",this.fontWeight=qe.fontWeight||"",this.fontShape=qe.fontShape||"",this.sizeMultiplier=rt[this.size-1],this.maxSize=qe.maxSize,this.minRuleThickness=qe.minRuleThickness,this._fontMetrics=void 0}var De=Tt.prototype;return De.extend=function(We){var at={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var xt in We)We.hasOwnProperty(xt)&&(at[xt]=We[xt]);return new Tt(at)},De.havingStyle=function(We){return this.style===We?this:this.extend({style:We,size:He(this.textSize,We)})},De.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},De.havingSize=function(We){return this.size===We&&this.textSize===We?this:this.extend({style:this.style.text(),size:We,textSize:We,sizeMultiplier:rt[We-1]})},De.havingBaseStyle=function(We){We=We||this.style.text();var at=He(Tt.BASESIZE,We);return this.size===at&&this.textSize===Tt.BASESIZE&&this.style===We?this:this.extend({style:We,size:at})},De.havingBaseSizing=function(){var We;switch(this.style.id){case 4:case 5:We=3;break;case 6:case 7:We=1;break;default:We=6}return this.extend({style:this.style.text(),size:We})},De.withColor=function(We){return this.extend({color:We})},De.withPhantom=function(){return this.extend({phantom:!0})},De.withFont=function(We){return this.extend({font:We})},De.withTextFontFamily=function(We){return this.extend({fontFamily:We,font:""})},De.withTextFontWeight=function(We){return this.extend({fontWeight:We,font:""})},De.withTextFontShape=function(We){return this.extend({fontShape:We,font:""})},De.sizingClasses=function(We){return We.size!==this.size?["sizing","reset-size"+We.size,"size"+this.size]:[]},De.baseSizingClasses=function(){return this.size!==Tt.BASESIZE?["sizing","reset-size"+this.size,"size"+Tt.BASESIZE]:[]},De.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=mt(this.size)),this._fontMetrics},De.getColor=function(){return this.phantom?"transparent":this.color},Tt}();Je.BASESIZE=6;var St=Je,bt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},pt={ex:!0,em:!0,mu:!0},wt=function(De){return typeof De!="string"&&(De=De.unit),De in bt||De in pt||De==="ex"},Pt=function(De,qe){var We;if(De.unit in bt)We=bt[De.unit]/qe.fontMetrics().ptPerEm/qe.sizeMultiplier;else if(De.unit==="mu")We=qe.fontMetrics().cssEmPerMu;else{var at;if(qe.style.isTight()?at=qe.havingStyle(qe.style.text()):at=qe,De.unit==="ex")We=at.fontMetrics().xHeight;else if(De.unit==="em")We=at.fontMetrics().quad;else throw new q("Invalid unit: '"+De.unit+"'");at!==qe&&(We*=at.sizeMultiplier/qe.sizeMultiplier)}return Math.min(De.number*We,qe.maxSize)},Nt=function(De){return+De.toFixed(4)+"em"},Vt=function(De){return De.filter(function(qe){return qe}).join(" ")},Wt=function(De,qe,We){if(this.classes=De||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=We||{},qe){qe.style.isTight()&&this.classes.push("mtight");var at=qe.getColor();at&&(this.style.color=at)}},Mt=function(De){var qe=document.createElement(De);qe.className=Vt(this.classes);for(var We in this.style)this.style.hasOwnProperty(We)&&(qe.style[We]=this.style[We]);for(var at in this.attributes)this.attributes.hasOwnProperty(at)&&qe.setAttribute(at,this.attributes[at]);for(var xt=0;xt<this.children.length;xt++)qe.appendChild(this.children[xt].toNode());return qe},$t=function(De){var qe="<"+De;this.classes.length&&(qe+=' class="'+J.escape(Vt(this.classes))+'"');var We="";for(var at in this.style)this.style.hasOwnProperty(at)&&(We+=J.hyphenate(at)+":"+this.style[at]+";");We&&(qe+=' style="'+J.escape(We)+'"');for(var xt in this.attributes)this.attributes.hasOwnProperty(xt)&&(qe+=" "+xt+'="'+J.escape(this.attributes[xt])+'"');qe+=">";for(var Rt=0;Rt<this.children.length;Rt++)qe+=this.children[Rt].toMarkup();return qe+="</"+De+">",qe},Yt=function(){function Tt(qe,We,at,xt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Wt.call(this,qe,at,xt),this.children=We||[]}var De=Tt.prototype;return De.setAttribute=function(We,at){this.attributes[We]=at},De.hasClass=function(We){return J.contains(this.classes,We)},De.toNode=function(){return Mt.call(this,"span")},De.toMarkup=function(){return $t.call(this,"span")},Tt}(),Ft=function(){function Tt(qe,We,at,xt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Wt.call(this,We,xt),this.children=at||[],this.setAttribute("href",qe)}var De=Tt.prototype;return De.setAttribute=function(We,at){this.attributes[We]=at},De.hasClass=function(We){return J.contains(this.classes,We)},De.toNode=function(){return Mt.call(this,"a")},De.toMarkup=function(){return $t.call(this,"a")},Tt}(),Jt=function(){function Tt(qe,We,at){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=We,this.src=qe,this.classes=["mord"],this.style=at}var De=Tt.prototype;return De.hasClass=function(We){return J.contains(this.classes,We)},De.toNode=function(){var We=document.createElement("img");We.src=this.src,We.alt=this.alt,We.className="mord";for(var at in this.style)this.style.hasOwnProperty(at)&&(We.style[at]=this.style[at]);return We},De.toMarkup=function(){var We="<img src='"+this.src+" 'alt='"+this.alt+"' ",at="";for(var xt in this.style)this.style.hasOwnProperty(xt)&&(at+=J.hyphenate(xt)+":"+this.style[xt]+";");return at&&(We+=' style="'+J.escape(at)+'"'),We+="'/>",We},Tt}(),er={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"},Bt=function(){function Tt(qe,We,at,xt,Rt,qt,Kt,rr){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=qe,this.height=We||0,this.depth=at||0,this.italic=xt||0,this.skew=Rt||0,this.width=qt||0,this.classes=Kt||[],this.style=rr||{},this.maxFontSize=0;var mr=Ze(this.text.charCodeAt(0));mr&&this.classes.push(mr+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=er[this.text])}var De=Tt.prototype;return De.hasClass=function(We){return J.contains(this.classes,We)},De.toNode=function(){var We=document.createTextNode(this.text),at=null;this.italic>0&&(at=document.createElement("span"),at.style.marginRight=Nt(this.italic)),this.classes.length>0&&(at=at||document.createElement("span"),at.className=Vt(this.classes));for(var xt in this.style)this.style.hasOwnProperty(xt)&&(at=at||document.createElement("span"),at.style[xt]=this.style[xt]);return at?(at.appendChild(We),at):We},De.toMarkup=function(){var We=!1,at="<span";this.classes.length&&(We=!0,at+=' class="',at+=J.escape(Vt(this.classes)),at+='"');var xt="";this.italic>0&&(xt+="margin-right:"+this.italic+"em;");for(var Rt in this.style)this.style.hasOwnProperty(Rt)&&(xt+=J.hyphenate(Rt)+":"+this.style[Rt]+";");xt&&(We=!0,at+=' style="'+J.escape(xt)+'"');var qt=J.escape(this.text);return We?(at+=">",at+=qt,at+="</span>",at):qt},Tt}(),It=function(){function Tt(qe,We){this.children=void 0,this.attributes=void 0,this.children=qe||[],this.attributes=We||{}}var De=Tt.prototype;return De.toNode=function(){var We="http://www.w3.org/2000/svg",at=document.createElementNS(We,"svg");for(var xt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,xt)&&at.setAttribute(xt,this.attributes[xt]);for(var Rt=0;Rt<this.children.length;Rt++)at.appendChild(this.children[Rt].toNode());return at},De.toMarkup=function(){var We='<svg xmlns="http://www.w3.org/2000/svg"';for(var at in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,at)&&(We+=" "+at+"='"+this.attributes[at]+"'");We+=">";for(var xt=0;xt<this.children.length;xt++)We+=this.children[xt].toMarkup();return We+="</svg>",We},Tt}(),Dt=function(){function Tt(qe,We){this.pathName=void 0,this.alternate=void 0,this.pathName=qe,this.alternate=We}var De=Tt.prototype;return De.toNode=function(){var We="http://www.w3.org/2000/svg",at=document.createElementNS(We,"path");return this.alternate?at.setAttribute("d",this.alternate):at.setAttribute("d",Qe[this.pathName]),at},De.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Qe[this.pathName]+"'/>"},Tt}(),Zt=function(){function Tt(qe){this.attributes=void 0,this.attributes=qe||{}}var De=Tt.prototype;return De.toNode=function(){var We="http://www.w3.org/2000/svg",at=document.createElementNS(We,"line");for(var xt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,xt)&&at.setAttribute(xt,this.attributes[xt]);return at},De.toMarkup=function(){var We="<line";for(var at in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,at)&&(We+=" "+at+"='"+this.attributes[at]+"'");return We+="/>",We},Tt}();function gr(Tt){if(Tt instanceof Bt)return Tt;throw new Error("Expected symbolNode but got "+String(Tt)+".")}function fr(Tt){if(Tt instanceof Yt)return Tt;throw new Error("Expected span<HtmlDomNode> but got "+String(Tt)+".")}var Dr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},kr={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},cr={math:{},text:{}},Ar=cr;function yt(Tt,De,qe,We,at,xt){cr[Tt][at]={font:De,group:qe,replace:We},xt&&We&&(cr[Tt][We]=cr[Tt][at])}var vt="math",Xt="text",At="main",zt="ams",Br="accent-token",br="bin",Ur="close",un="inner",sr="mathord",ur="op-token",Cr="open",Tr="punct",jt="rel",Wr="spacing",ir="textord";yt(vt,At,jt,"≡","\\equiv",!0),yt(vt,At,jt,"≺","\\prec",!0),yt(vt,At,jt,"≻","\\succ",!0),yt(vt,At,jt,"","\\sim",!0),yt(vt,At,jt,"⊥","\\perp"),yt(vt,At,jt,"⪯","\\preceq",!0),yt(vt,At,jt,"⪰","\\succeq",!0),yt(vt,At,jt,"≃","\\simeq",!0),yt(vt,At,jt,"","\\mid",!0),yt(vt,At,jt,"≪","\\ll",!0),yt(vt,At,jt,"≫","\\gg",!0),yt(vt,At,jt,"≍","\\asymp",!0),yt(vt,At,jt,"∥","\\parallel"),yt(vt,At,jt,"⋈","\\bowtie",!0),yt(vt,At,jt,"⌣","\\smile",!0),yt(vt,At,jt,"⊑","\\sqsubseteq",!0),yt(vt,At,jt,"⊒","\\sqsupseteq",!0),yt(vt,At,jt,"≐","\\doteq",!0),yt(vt,At,jt,"⌢","\\frown",!0),yt(vt,At,jt,"∋","\\ni",!0),yt(vt,At,jt,"∝","\\propto",!0),yt(vt,At,jt,"⊢","\\vdash",!0),yt(vt,At,jt,"⊣","\\dashv",!0),yt(vt,At,jt,"∋","\\owns"),yt(vt,At,Tr,".","\\ldotp"),yt(vt,At,Tr,"⋅","\\cdotp"),yt(vt,At,ir,"#","\\#"),yt(Xt,At,ir,"#","\\#"),yt(vt,At,ir,"&","\\&"),yt(Xt,At,ir,"&","\\&"),yt(vt,At,ir,"ℵ","\\aleph",!0),yt(vt,At,ir,"∀","\\forall",!0),yt(vt,At,ir,"ℏ","\\hbar",!0),yt(vt,At,ir,"∃","\\exists",!0),yt(vt,At,ir,"∇","\\nabla",!0),yt(vt,At,ir,"♭","\\flat",!0),yt(vt,At,ir,"","\\ell",!0),yt(vt,At,ir,"♮","\\natural",!0),yt(vt,At,ir,"♣","\\clubsuit",!0),yt(vt,At,ir,"℘","\\wp",!0),yt(vt,At,ir,"♯","\\sharp",!0),yt(vt,At,ir,"♢","\\diamondsuit",!0),yt(vt,At,ir,"","\\Re",!0),yt(vt,At,ir,"♡","\\heartsuit",!0),yt(vt,At,ir,"","\\Im",!0),yt(vt,At,ir,"♠","\\spadesuit",!0),yt(vt,At,ir,"§","\\S",!0),yt(Xt,At,ir,"§","\\S"),yt(vt,At,ir,"¶","\\P",!0),yt(Xt,At,ir,"¶","\\P"),yt(vt,At,ir,"†","\\dag"),yt(Xt,At,ir,"†","\\dag"),yt(Xt,At,ir,"†","\\textdagger"),yt(vt,At,ir,"‡","\\ddag"),yt(Xt,At,ir,"‡","\\ddag"),yt(Xt,At,ir,"‡","\\textdaggerdbl"),yt(vt,At,Ur,"⎱","\\rmoustache",!0),yt(vt,At,Cr,"⎰","\\lmoustache",!0),yt(vt,At,Ur,"⟯","\\rgroup",!0),yt(vt,At,Cr,"⟮","\\lgroup",!0),yt(vt,At,br,"∓","\\mp",!0),yt(vt,At,br,"⊖","\\ominus",!0),yt(vt,At,br,"⊎","\\uplus",!0),yt(vt,At,br,"⊓","\\sqcap",!0),yt(vt,At,br,"","\\ast"),yt(vt,At,br,"⊔","\\sqcup",!0),yt(vt,At,br,"◯","\\bigcirc",!0),yt(vt,At,br,"∙","\\bullet",!0),yt(vt,At,br,"‡","\\ddagger"),yt(vt,At,br,"≀","\\wr",!0),yt(vt,At,br,"⨿","\\amalg"),yt(vt,At,br,"&","\\And"),yt(vt,At,jt,"⟵","\\longleftarrow",!0),yt(vt,At,jt,"⇐","\\Leftarrow",!0),yt(vt,At,jt,"⟸","\\Longleftarrow",!0),yt(vt,At,jt,"⟶","\\longrightarrow",!0),yt(vt,At,jt,"⇒","\\Rightarrow",!0),yt(vt,At,jt,"⟹","\\Longrightarrow",!0),yt(vt,At,jt,"↔","\\leftrightarrow",!0),yt(vt,At,jt,"⟷","\\longleftrightarrow",!0),yt(vt,At,jt,"⇔","\\Leftrightarrow",!0),yt(vt,At,jt,"⟺","\\Longleftrightarrow",!0),yt(vt,At,jt,"↦","\\mapsto",!0),yt(vt,At,jt,"⟼","\\longmapsto",!0),yt(vt,At,jt,"↗","\\nearrow",!0),yt(vt,At,jt,"↩","\\hookleftarrow",!0),yt(vt,At,jt,"↪","\\hookrightarrow",!0),yt(vt,At,jt,"↘","\\searrow",!0),yt(vt,At,jt,"↼","\\leftharpoonup",!0),yt(vt,At,jt,"⇀","\\rightharpoonup",!0),yt(vt,At,jt,"↙","\\swarrow",!0),yt(vt,At,jt,"↽","\\leftharpoondown",!0),yt(vt,At,jt,"⇁","\\rightharpoondown",!0),yt(vt,At,jt,"↖","\\nwarrow",!0),yt(vt,At,jt,"⇌","\\rightleftharpoons",!0),yt(vt,zt,jt,"≮","\\nless",!0),yt(vt,zt,jt,"","\\@nleqslant"),yt(vt,zt,jt,"","\\@nleqq"),yt(vt,zt,jt,"⪇","\\lneq",!0),yt(vt,zt,jt,"≨","\\lneqq",!0),yt(vt,zt,jt,"","\\@lvertneqq"),yt(vt,zt,jt,"⋦","\\lnsim",!0),yt(vt,zt,jt,"⪉","\\lnapprox",!0),yt(vt,zt,jt,"⊀","\\nprec",!0),yt(vt,zt,jt,"⋠","\\npreceq",!0),yt(vt,zt,jt,"⋨","\\precnsim",!0),yt(vt,zt,jt,"⪹","\\precnapprox",!0),yt(vt,zt,jt,"≁","\\nsim",!0),yt(vt,zt,jt,"","\\@nshortmid"),yt(vt,zt,jt,"∤","\\nmid",!0),yt(vt,zt,jt,"⊬","\\nvdash",!0),yt(vt,zt,jt,"⊭","\\nvDash",!0),yt(vt,zt,jt,"⋪","\\ntriangleleft"),yt(vt,zt,jt,"⋬","\\ntrianglelefteq",!0),yt(vt,zt,jt,"⊊","\\subsetneq",!0),yt(vt,zt,jt,"","\\@varsubsetneq"),yt(vt,zt,jt,"⫋","\\subsetneqq",!0),yt(vt,zt,jt,"","\\@varsubsetneqq"),yt(vt,zt,jt,"≯","\\ngtr",!0),yt(vt,zt,jt,"","\\@ngeqslant"),yt(vt,zt,jt,"","\\@ngeqq"),yt(vt,zt,jt,"⪈","\\gneq",!0),yt(vt,zt,jt,"≩","\\gneqq",!0),yt(vt,zt,jt,"","\\@gvertneqq"),yt(vt,zt,jt,"⋧","\\gnsim",!0),yt(vt,zt,jt,"⪊","\\gnapprox",!0),yt(vt,zt,jt,"⊁","\\nsucc",!0),yt(vt,zt,jt,"⋡","\\nsucceq",!0),yt(vt,zt,jt,"⋩","\\succnsim",!0),yt(vt,zt,jt,"⪺","\\succnapprox",!0),yt(vt,zt,jt,"≆","\\ncong",!0),yt(vt,zt,jt,"","\\@nshortparallel"),yt(vt,zt,jt,"∦","\\nparallel",!0),yt(vt,zt,jt,"⊯","\\nVDash",!0),yt(vt,zt,jt,"⋫","\\ntriangleright"),yt(vt,zt,jt,"⋭","\\ntrianglerighteq",!0),yt(vt,zt,jt,"","\\@nsupseteqq"),yt(vt,zt,jt,"⊋","\\supsetneq",!0),yt(vt,zt,jt,"","\\@varsupsetneq"),yt(vt,zt,jt,"⫌","\\supsetneqq",!0),yt(vt,zt,jt,"","\\@varsupsetneqq"),yt(vt,zt,jt,"⊮","\\nVdash",!0),yt(vt,zt,jt,"⪵","\\precneqq",!0),yt(vt,zt,jt,"⪶","\\succneqq",!0),yt(vt,zt,jt,"","\\@nsubseteqq"),yt(vt,zt,br,"⊴","\\unlhd"),yt(vt,zt,br,"⊵","\\unrhd"),yt(vt,zt,jt,"↚","\\nleftarrow",!0),yt(vt,zt,jt,"↛","\\nrightarrow",!0),yt(vt,zt,jt,"⇍","\\nLeftarrow",!0),yt(vt,zt,jt,"⇏","\\nRightarrow",!0),yt(vt,zt,jt,"↮","\\nleftrightarrow",!0),yt(vt,zt,jt,"⇎","\\nLeftrightarrow",!0),yt(vt,zt,jt,"△","\\vartriangle"),yt(vt,zt,ir,"ℏ","\\hslash"),yt(vt,zt,ir,"▽","\\triangledown"),yt(vt,zt,ir,"◊","\\lozenge"),yt(vt,zt,ir,"Ⓢ","\\circledS"),yt(vt,zt,ir,"®","\\circledR"),yt(Xt,zt,ir,"®","\\circledR"),yt(vt,zt,ir,"∡","\\measuredangle",!0),yt(vt,zt,ir,"∄","\\nexists"),yt(vt,zt,ir,"℧","\\mho"),yt(vt,zt,ir,"Ⅎ","\\Finv",!0),yt(vt,zt,ir,"⅁","\\Game",!0),yt(vt,zt,ir,"","\\backprime"),yt(vt,zt,ir,"▲","\\blacktriangle"),yt(vt,zt,ir,"▼","\\blacktriangledown"),yt(vt,zt,ir,"■","\\blacksquare"),yt(vt,zt,ir,"⧫","\\blacklozenge"),yt(vt,zt,ir,"★","\\bigstar"),yt(vt,zt,ir,"∢","\\sphericalangle",!0),yt(vt,zt,ir,"∁","\\complement",!0),yt(vt,zt,ir,"ð","\\eth",!0),yt(Xt,At,ir,"ð","ð"),yt(vt,zt,ir,"","\\diagup"),yt(vt,zt,ir,"╲","\\diagdown"),yt(vt,zt,ir,"□","\\square"),yt(vt,zt,ir,"□","\\Box"),yt(vt,zt,ir,"◊","\\Diamond"),yt(vt,zt,ir,"¥","\\yen",!0),yt(Xt,zt,ir,"¥","\\yen",!0),yt(vt,zt,ir,"✓","\\checkmark",!0),yt(Xt,zt,ir,"✓","\\checkmark"),yt(vt,zt,ir,"ℶ","\\beth",!0),yt(vt,zt,ir,"ℸ","\\daleth",!0),yt(vt,zt,ir,"ℷ","\\gimel",!0),yt(vt,zt,ir,"ϝ","\\digamma",!0),yt(vt,zt,ir,"ϰ","\\varkappa"),yt(vt,zt,Cr,"┌","\\@ulcorner",!0),yt(vt,zt,Ur,"┐","\\@urcorner",!0),yt(vt,zt,Cr,"└","\\@llcorner",!0),yt(vt,zt,Ur,"┘","\\@lrcorner",!0),yt(vt,zt,jt,"≦","\\leqq",!0),yt(vt,zt,jt,"⩽","\\leqslant",!0),yt(vt,zt,jt,"⪕","\\eqslantless",!0),yt(vt,zt,jt,"≲","\\lesssim",!0),yt(vt,zt,jt,"⪅","\\lessapprox",!0),yt(vt,zt,jt,"≊","\\approxeq",!0),yt(vt,zt,br,"⋖","\\lessdot"),yt(vt,zt,jt,"⋘","\\lll",!0),yt(vt,zt,jt,"≶","\\lessgtr",!0),yt(vt,zt,jt,"⋚","\\lesseqgtr",!0),yt(vt,zt,jt,"⪋","\\lesseqqgtr",!0),yt(vt,zt,jt,"≑","\\doteqdot"),yt(vt,zt,jt,"≓","\\risingdotseq",!0),yt(vt,zt,jt,"≒","\\fallingdotseq",!0),yt(vt,zt,jt,"∽","\\backsim",!0),yt(vt,zt,jt,"⋍","\\backsimeq",!0),yt(vt,zt,jt,"⫅","\\subseteqq",!0),yt(vt,zt,jt,"⋐","\\Subset",!0),yt(vt,zt,jt,"⊏","\\sqsubset",!0),yt(vt,zt,jt,"≼","\\preccurlyeq",!0),yt(vt,zt,jt,"⋞","\\curlyeqprec",!0),yt(vt,zt,jt,"≾","\\precsim",!0),yt(vt,zt,jt,"⪷","\\precapprox",!0),yt(vt,zt,jt,"⊲","\\vartriangleleft"),yt(vt,zt,jt,"⊴","\\trianglelefteq"),yt(vt,zt,jt,"⊨","\\vDash",!0),yt(vt,zt,jt,"⊪","\\Vvdash",!0),yt(vt,zt,jt,"⌣","\\smallsmile"),yt(vt,zt,jt,"⌢","\\smallfrown"),yt(vt,zt,jt,"≏","\\bumpeq",!0),yt(vt,zt,jt,"≎","\\Bumpeq",!0),yt(vt,zt,jt,"≧","\\geqq",!0),yt(vt,zt,jt,"⩾","\\geqslant",!0),yt(vt,zt,jt,"⪖","\\eqslantgtr",!0),yt(vt,zt,jt,"≳","\\gtrsim",!0),yt(vt,zt,jt,"⪆","\\gtrapprox",!0),yt(vt,zt,br,"⋗","\\gtrdot"),yt(vt,zt,jt,"⋙","\\ggg",!0),yt(vt,zt,jt,"≷","\\gtrless",!0),yt(vt,zt,jt,"⋛","\\gtreqless",!0),yt(vt,zt,jt,"⪌","\\gtreqqless",!0),yt(vt,zt,jt,"≖","\\eqcirc",!0),yt(vt,zt,jt,"≗","\\circeq",!0),yt(vt,zt,jt,"≜","\\triangleq",!0),yt(vt,zt,jt,"","\\thicksim"),yt(vt,zt,jt,"≈","\\thickapprox"),yt(vt,zt,jt,"⫆","\\supseteqq",!0),yt(vt,zt,jt,"⋑","\\Supset",!0),yt(vt,zt,jt,"⊐","\\sqsupset",!0),yt(vt,zt,jt,"≽","\\succcurlyeq",!0),yt(vt,zt,jt,"⋟","\\curlyeqsucc",!0),yt(vt,zt,jt,"≿","\\succsim",!0),yt(vt,zt,jt,"⪸","\\succapprox",!0),yt(vt,zt,jt,"⊳","\\vartriangleright"),yt(vt,zt,jt,"⊵","\\trianglerighteq"),yt(vt,zt,jt,"⊩","\\Vdash",!0),yt(vt,zt,jt,"","\\shortmid"),yt(vt,zt,jt,"∥","\\shortparallel"),yt(vt,zt,jt,"≬","\\between",!0),yt(vt,zt,jt,"⋔","\\pitchfork",!0),yt(vt,zt,jt,"∝","\\varpropto"),yt(vt,zt,jt,"◀","\\blacktriangleleft"),yt(vt,zt,jt,"∴","\\therefore",!0),yt(vt,zt,jt,"∍","\\backepsilon"),yt(vt,zt,jt,"▶","\\blacktriangleright"),yt(vt,zt,jt,"∵","\\because",!0),yt(vt,zt,jt,"⋘","\\llless"),yt(vt,zt,jt,"⋙","\\gggtr"),yt(vt,zt,br,"⊲","\\lhd"),yt(vt,zt,br,"⊳","\\rhd"),yt(vt,zt,jt,"≂","\\eqsim",!0),yt(vt,At,jt,"⋈","\\Join"),yt(vt,zt,jt,"≑","\\Doteq",!0),yt(vt,zt,br,"∔","\\dotplus",!0),yt(vt,zt,br,"","\\smallsetminus"),yt(vt,zt,br,"⋒","\\Cap",!0),yt(vt,zt,br,"⋓","\\Cup",!0),yt(vt,zt,br,"⩞","\\doublebarwedge",!0),yt(vt,zt,br,"⊟","\\boxminus",!0),yt(vt,zt,br,"⊞","\\boxplus",!0),yt(vt,zt,br,"⋇","\\divideontimes",!0),yt(vt,zt,br,"⋉","\\ltimes",!0),yt(vt,zt,br,"⋊","\\rtimes",!0),yt(vt,zt,br,"⋋","\\leftthreetimes",!0),yt(vt,zt,br,"⋌","\\rightthreetimes",!0),yt(vt,zt,br,"⋏","\\curlywedge",!0),yt(vt,zt,br,"⋎","\\curlyvee",!0),yt(vt,zt,br,"⊝","\\circleddash",!0),yt(vt,zt,br,"⊛","\\circledast",!0),yt(vt,zt,br,"⋅","\\centerdot"),yt(vt,zt,br,"⊺","\\intercal",!0),yt(vt,zt,br,"⋒","\\doublecap"),yt(vt,zt,br,"⋓","\\doublecup"),yt(vt,zt,br,"⊠","\\boxtimes",!0),yt(vt,zt,jt,"⇢","\\dashrightarrow",!0),yt(vt,zt,jt,"⇠","\\dashleftarrow",!0),yt(vt,zt,jt,"⇇","\\leftleftarrows",!0),yt(vt,zt,jt,"⇆","\\leftrightarrows",!0),yt(vt,zt,jt,"⇚","\\Lleftarrow",!0),yt(vt,zt,jt,"↞","\\twoheadleftarrow",!0),yt(vt,zt,jt,"↢","\\leftarrowtail",!0),yt(vt,zt,jt,"↫","\\looparrowleft",!0),yt(vt,zt,jt,"⇋","\\leftrightharpoons",!0),yt(vt,zt,jt,"↶","\\curvearrowleft",!0),yt(vt,zt,jt,"↺","\\circlearrowleft",!0),yt(vt,zt,jt,"↰","\\Lsh",!0),yt(vt,zt,jt,"⇈","\\upuparrows",!0),yt(vt,zt,jt,"↿","\\upharpoonleft",!0),yt(vt,zt,jt,"⇃","\\downharpoonleft",!0),yt(vt,At,jt,"⊶","\\origof",!0),yt(vt,At,jt,"⊷","\\imageof",!0),yt(vt,zt,jt,"⊸","\\multimap",!0),yt(vt,zt,jt,"↭","\\leftrightsquigarrow",!0),yt(vt,zt,jt,"⇉","\\rightrightarrows",!0),yt(vt,zt,jt,"⇄","\\rightleftarrows",!0),yt(vt,zt,jt,"↠","\\twoheadrightarrow",!0),yt(vt,zt,jt,"↣","\\rightarrowtail",!0),yt(vt,zt,jt,"↬","\\looparrowright",!0),yt(vt,zt,jt,"↷","\\curvearrowright",!0),yt(vt,zt,jt,"↻","\\circlearrowright",!0),yt(vt,zt,jt,"↱","\\Rsh",!0),yt(vt,zt,jt,"⇊","\\downdownarrows",!0),yt(vt,zt,jt,"↾","\\upharpoonright",!0),yt(vt,zt,jt,"⇂","\\downharpoonright",!0),yt(vt,zt,jt,"⇝","\\rightsquigarrow",!0),yt(vt,zt,jt,"⇝","\\leadsto"),yt(vt,zt,jt,"⇛","\\Rrightarrow",!0),yt(vt,zt,jt,"↾","\\restriction"),yt(vt,At,ir,"","`"),yt(vt,At,ir,"$","\\$"),yt(Xt,At,ir,"$","\\$"),yt(Xt,At,ir,"$","\\textdollar"),yt(vt,At,ir,"%","\\%"),yt(Xt,At,ir,"%","\\%"),yt(vt,At,ir,"_","\\_"),yt(Xt,At,ir,"_","\\_"),yt(Xt,At,ir,"_","\\textunderscore"),yt(vt,At,ir,"∠","\\angle",!0),yt(vt,At,ir,"∞","\\infty",!0),yt(vt,At,ir,"","\\prime"),yt(vt,At,ir,"△","\\triangle"),yt(vt,At,ir,"Γ","\\Gamma",!0),yt(vt,At,ir,"Δ","\\Delta",!0),yt(vt,At,ir,"Θ","\\Theta",!0),yt(vt,At,ir,"Λ","\\Lambda",!0),yt(vt,At,ir,"Ξ","\\Xi",!0),yt(vt,At,ir,"Π","\\Pi",!0),yt(vt,At,ir,"Σ","\\Sigma",!0),yt(vt,At,ir,"Υ","\\Upsilon",!0),yt(vt,At,ir,"Φ","\\Phi",!0),yt(vt,At,ir,"Ψ","\\Psi",!0),yt(vt,At,ir,"Ω","\\Omega",!0),yt(vt,At,ir,"A","Α"),yt(vt,At,ir,"B","Β"),yt(vt,At,ir,"E","Ε"),yt(vt,At,ir,"Z","Ζ"),yt(vt,At,ir,"H","Η"),yt(vt,At,ir,"I","Ι"),yt(vt,At,ir,"K","Κ"),yt(vt,At,ir,"M","Μ"),yt(vt,At,ir,"N","Ν"),yt(vt,At,ir,"O","Ο"),yt(vt,At,ir,"P","Ρ"),yt(vt,At,ir,"T","Τ"),yt(vt,At,ir,"X","Χ"),yt(vt,At,ir,"¬","\\neg",!0),yt(vt,At,ir,"¬","\\lnot"),yt(vt,At,ir,"","\\top"),yt(vt,At,ir,"⊥","\\bot"),yt(vt,At,ir,"∅","\\emptyset"),yt(vt,zt,ir,"∅","\\varnothing"),yt(vt,At,sr,"α","\\alpha",!0),yt(vt,At,sr,"β","\\beta",!0),yt(vt,At,sr,"γ","\\gamma",!0),yt(vt,At,sr,"δ","\\delta",!0),yt(vt,At,sr,"ϵ","\\epsilon",!0),yt(vt,At,sr,"ζ","\\zeta",!0),yt(vt,At,sr,"η","\\eta",!0),yt(vt,At,sr,"θ","\\theta",!0),yt(vt,At,sr,"ι","\\iota",!0),yt(vt,At,sr,"κ","\\kappa",!0),yt(vt,At,sr,"λ","\\lambda",!0),yt(vt,At,sr,"μ","\\mu",!0),yt(vt,At,sr,"ν","\\nu",!0),yt(vt,At,sr,"ξ","\\xi",!0),yt(vt,At,sr,"ο","\\omicron",!0),yt(vt,At,sr,"π","\\pi",!0),yt(vt,At,sr,"ρ","\\rho",!0),yt(vt,At,sr,"σ","\\sigma",!0),yt(vt,At,sr,"τ","\\tau",!0),yt(vt,At,sr,"υ","\\upsilon",!0),yt(vt,At,sr,"ϕ","\\phi",!0),yt(vt,At,sr,"χ","\\chi",!0),yt(vt,At,sr,"ψ","\\psi",!0),yt(vt,At,sr,"ω","\\omega",!0),yt(vt,At,sr,"ε","\\varepsilon",!0),yt(vt,At,sr,"ϑ","\\vartheta",!0),yt(vt,At,sr,"ϖ","\\varpi",!0),yt(vt,At,sr,"ϱ","\\varrho",!0),yt(vt,At,sr,"ς","\\varsigma",!0),yt(vt,At,sr,"φ","\\varphi",!0),yt(vt,At,br,"","*",!0),yt(vt,At,br,"+","+"),yt(vt,At,br,"","-",!0),yt(vt,At,br,"⋅","\\cdot",!0),yt(vt,At,br,"∘","\\circ",!0),yt(vt,At,br,"÷","\\div",!0),yt(vt,At,br,"±","\\pm",!0),yt(vt,At,br,"×","\\times",!0),yt(vt,At,br,"∩","\\cap",!0),yt(vt,At,br,"","\\cup",!0),yt(vt,At,br,"","\\setminus",!0),yt(vt,At,br,"∧","\\land"),yt(vt,At,br,"","\\lor"),yt(vt,At,br,"∧","\\wedge",!0),yt(vt,At,br,"","\\vee",!0),yt(vt,At,ir,"√","\\surd"),yt(vt,At,Cr,"⟨","\\langle",!0),yt(vt,At,Cr,"","\\lvert"),yt(vt,At,Cr,"∥","\\lVert"),yt(vt,At,Ur,"?","?"),yt(vt,At,Ur,"!","!"),yt(vt,At,Ur,"⟩","\\rangle",!0),yt(vt,At,Ur,"","\\rvert"),yt(vt,At,Ur,"∥","\\rVert"),yt(vt,At,jt,"=","="),yt(vt,At,jt,":",":"),yt(vt,At,jt,"≈","\\approx",!0),yt(vt,At,jt,"≅","\\cong",!0),yt(vt,At,jt,"≥","\\ge"),yt(vt,At,jt,"≥","\\geq",!0),yt(vt,At,jt,"←","\\gets"),yt(vt,At,jt,">","\\gt",!0),yt(vt,At,jt,"∈","\\in",!0),yt(vt,At,jt,"","\\@not"),yt(vt,At,jt,"⊂","\\subset",!0),yt(vt,At,jt,"⊃","\\supset",!0),yt(vt,At,jt,"⊆","\\subseteq",!0),yt(vt,At,jt,"⊇","\\supseteq",!0),yt(vt,zt,jt,"⊈","\\nsubseteq",!0),yt(vt,zt,jt,"⊉","\\nsupseteq",!0),yt(vt,At,jt,"⊨","\\models"),yt(vt,At,jt,"←","\\leftarrow",!0),yt(vt,At,jt,"≤","\\le"),yt(vt,At,jt,"≤","\\leq",!0),yt(vt,At,jt,"<","\\lt",!0),yt(vt,At,jt,"→","\\rightarrow",!0),yt(vt,At,jt,"→","\\to"),yt(vt,zt,jt,"≱","\\ngeq",!0),yt(vt,zt,jt,"≰","\\nleq",!0),yt(vt,At,Wr," ","\\ "),yt(vt,At,Wr," ","\\space"),yt(vt,At,Wr," ","\\nobreakspace"),yt(Xt,At,Wr," ","\\ "),yt(Xt,At,Wr," "," "),yt(Xt,At,Wr," ","\\space"),yt(Xt,At,Wr," ","\\nobreakspace"),yt(vt,At,Wr,null,"\\nobreak"),yt(vt,At,Wr,null,"\\allowbreak"),yt(vt,At,Tr,",",","),yt(vt,At,Tr,";",";"),yt(vt,zt,br,"⊼","\\barwedge",!0),yt(vt,zt,br,"⊻","\\veebar",!0),yt(vt,At,br,"⊙","\\odot",!0),yt(vt,At,br,"⊕","\\oplus",!0),yt(vt,At,br,"⊗","\\otimes",!0),yt(vt,At,ir,"∂","\\partial",!0),yt(vt,At,br,"⊘","\\oslash",!0),yt(vt,zt,br,"⊚","\\circledcirc",!0),yt(vt,zt,br,"⊡","\\boxdot",!0),yt(vt,At,br,"△","\\bigtriangleup"),yt(vt,At,br,"▽","\\bigtriangledown"),yt(vt,At,br,"†","\\dagger"),yt(vt,At,br,"⋄","\\diamond"),yt(vt,At,br,"⋆","\\star"),yt(vt,At,br,"◃","\\triangleleft"),yt(vt,At,br,"▹","\\triangleright"),yt(vt,At,Cr,"{","\\{"),yt(Xt,At,ir,"{","\\{"),yt(Xt,At,ir,"{","\\textbraceleft"),yt(vt,At,Ur,"}","\\}"),yt(Xt,At,ir,"}","\\}"),yt(Xt,At,ir,"}","\\textbraceright"),yt(vt,At,Cr,"{","\\lbrace"),yt(vt,At,Ur,"}","\\rbrace"),yt(vt,At,Cr,"[","\\lbrack",!0),yt(Xt,At,ir,"[","\\lbrack",!0),yt(vt,At,Ur,"]","\\rbrack",!0),yt(Xt,At,ir,"]","\\rbrack",!0),yt(vt,At,Cr,"(","\\lparen",!0),yt(vt,At,Ur,")","\\rparen",!0),yt(Xt,At,ir,"<","\\textless",!0),yt(Xt,At,ir,">","\\textgreater",!0),yt(vt,At,Cr,"⌊","\\lfloor",!0),yt(vt,At,Ur,"⌋","\\rfloor",!0),yt(vt,At,Cr,"⌈","\\lceil",!0),yt(vt,At,Ur,"⌉","\\rceil",!0),yt(vt,At,ir,"\\","\\backslash"),yt(vt,At,ir,"","|"),yt(vt,At,ir,"","\\vert"),yt(Xt,At,ir,"|","\\textbar",!0),yt(vt,At,ir,"∥","\\|"),yt(vt,At,ir,"∥","\\Vert"),yt(Xt,At,ir,"∥","\\textbardbl"),yt(Xt,At,ir,"~","\\textasciitilde"),yt(Xt,At,ir,"\\","\\textbackslash"),yt(Xt,At,ir,"^","\\textasciicircum"),yt(vt,At,jt,"↑","\\uparrow",!0),yt(vt,At,jt,"⇑","\\Uparrow",!0),yt(vt,At,jt,"↓","\\downarrow",!0),yt(vt,At,jt,"⇓","\\Downarrow",!0),yt(vt,At,jt,"↕","\\updownarrow",!0),yt(vt,At,jt,"⇕","\\Updownarrow",!0),yt(vt,At,ur,"∐","\\coprod"),yt(vt,At,ur,"","\\bigvee"),yt(vt,At,ur,"⋀","\\bigwedge"),yt(vt,At,ur,"⨄","\\biguplus"),yt(vt,At,ur,"⋂","\\bigcap"),yt(vt,At,ur,"","\\bigcup"),yt(vt,At,ur,"∫","\\int"),yt(vt,At,ur,"∫","\\intop"),yt(vt,At,ur,"∬","\\iint"),yt(vt,At,ur,"∭","\\iiint"),yt(vt,At,ur,"∏","\\prod"),yt(vt,At,ur,"∑","\\sum"),yt(vt,At,ur,"⨂","\\bigotimes"),yt(vt,At,ur,"⨁","\\bigoplus"),yt(vt,At,ur,"⨀","\\bigodot"),yt(vt,At,ur,"∮","\\oint"),yt(vt,At,ur,"∯","\\oiint"),yt(vt,At,ur,"∰","\\oiiint"),yt(vt,At,ur,"⨆","\\bigsqcup"),yt(vt,At,ur,"∫","\\smallint"),yt(Xt,At,un,"…","\\textellipsis"),yt(vt,At,un,"…","\\mathellipsis"),yt(Xt,At,un,"…","\\ldots",!0),yt(vt,At,un,"…","\\ldots",!0),yt(vt,At,un,"⋯","\\@cdots",!0),yt(vt,At,un,"⋱","\\ddots",!0),yt(vt,At,ir,"⋮","\\varvdots"),yt(vt,At,Br,"ˊ","\\acute"),yt(vt,At,Br,"ˋ","\\grave"),yt(vt,At,Br,"¨","\\ddot"),yt(vt,At,Br,"~","\\tilde"),yt(vt,At,Br,"ˉ","\\bar"),yt(vt,At,Br,"˘","\\breve"),yt(vt,At,Br,"ˇ","\\check"),yt(vt,At,Br,"^","\\hat"),yt(vt,At,Br,"⃗","\\vec"),yt(vt,At,Br,"˙","\\dot"),yt(vt,At,Br,"˚","\\mathring"),yt(vt,At,sr,"","\\@imath"),yt(vt,At,sr,"","\\@jmath"),yt(vt,At,ir,"ı","ı"),yt(vt,At,ir,"ȷ","ȷ"),yt(Xt,At,ir,"ı","\\i",!0),yt(Xt,At,ir,"ȷ","\\j",!0),yt(Xt,At,ir,"ß","\\ss",!0),yt(Xt,At,ir,"æ","\\ae",!0),yt(Xt,At,ir,"œ","\\oe",!0),yt(Xt,At,ir,"ø","\\o",!0),yt(Xt,At,ir,"Æ","\\AE",!0),yt(Xt,At,ir,"Œ","\\OE",!0),yt(Xt,At,ir,"Ø","\\O",!0),yt(Xt,At,Br,"ˊ","\\'"),yt(Xt,At,Br,"ˋ","\\`"),yt(Xt,At,Br,"ˆ","\\^"),yt(Xt,At,Br,"˜","\\~"),yt(Xt,At,Br,"ˉ","\\="),yt(Xt,At,Br,"˘","\\u"),yt(Xt,At,Br,"˙","\\."),yt(Xt,At,Br,"¸","\\c"),yt(Xt,At,Br,"˚","\\r"),yt(Xt,At,Br,"ˇ","\\v"),yt(Xt,At,Br,"¨",'\\"'),yt(Xt,At,Br,"˝","\\H"),yt(Xt,At,Br,"◯","\\textcircled");var Gr={"--":!0,"---":!0,"``":!0,"''":!0};yt(Xt,At,ir,"","--",!0),yt(Xt,At,ir,"","\\textendash"),yt(Xt,At,ir,"—","---",!0),yt(Xt,At,ir,"—","\\textemdash"),yt(Xt,At,ir,"","`",!0),yt(Xt,At,ir,"","\\textquoteleft"),yt(Xt,At,ir,"","'",!0),yt(Xt,At,ir,"","\\textquoteright"),yt(Xt,At,ir,"“","``",!0),yt(Xt,At,ir,"“","\\textquotedblleft"),yt(Xt,At,ir,"”","''",!0),yt(Xt,At,ir,"”","\\textquotedblright"),yt(vt,At,ir,"°","\\degree",!0),yt(Xt,At,ir,"°","\\degree"),yt(Xt,At,ir,"°","\\textdegree",!0),yt(vt,At,ir,"£","\\pounds"),yt(vt,At,ir,"£","\\mathsterling",!0),yt(Xt,At,ir,"£","\\pounds"),yt(Xt,At,ir,"£","\\textsterling",!0),yt(vt,zt,ir,"✠","\\maltese"),yt(Xt,zt,ir,"✠","\\maltese");for(var Jr='0123456789/@."',Xr=0;Xr<Jr.length;Xr++){var fn=Jr.charAt(Xr);yt(vt,At,ir,fn,fn)}for(var cn='0123456789!@*()-=+";:?/.,',nn=0;nn<cn.length;nn++){var ar=cn.charAt(nn);yt(Xt,At,ir,ar,ar)}for(var xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Lr=0;Lr<xr.length;Lr++){var Rr=xr.charAt(Lr);yt(vt,At,sr,Rr,Rr),yt(Xt,At,ir,Rr,Rr)}yt(vt,zt,ir,"C",""),yt(Xt,zt,ir,"C",""),yt(vt,zt,ir,"H",""),yt(Xt,zt,ir,"H",""),yt(vt,zt,ir,"N",""),yt(Xt,zt,ir,"N",""),yt(vt,zt,ir,"P",""),yt(Xt,zt,ir,"P",""),yt(vt,zt,ir,"Q",""),yt(Xt,zt,ir,"Q",""),yt(vt,zt,ir,"R",""),yt(Xt,zt,ir,"R",""),yt(vt,zt,ir,"Z",""),yt(Xt,zt,ir,"Z",""),yt(vt,At,sr,"h",""),yt(Xt,At,sr,"h","");for(var Mr="",an=0;an<xr.length;an++){var gn=xr.charAt(an);Mr=String.fromCharCode(55349,56320+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56372+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56424+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56580+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56684+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56736+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56788+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56840+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56944+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),an<26&&(Mr=String.fromCharCode(55349,56632+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr),Mr=String.fromCharCode(55349,56476+an),yt(vt,At,sr,gn,Mr),yt(Xt,At,ir,gn,Mr))}Mr=String.fromCharCode(55349,56668),yt(vt,At,sr,"k",Mr),yt(Xt,At,ir,"k",Mr);for(var dn=0;dn<10;dn++){var pn=dn.toString();Mr=String.fromCharCode(55349,57294+dn),yt(vt,At,sr,pn,Mr),yt(Xt,At,ir,pn,Mr),Mr=String.fromCharCode(55349,57314+dn),yt(vt,At,sr,pn,Mr),yt(Xt,At,ir,pn,Mr),Mr=String.fromCharCode(55349,57324+dn),yt(vt,At,sr,pn,Mr),yt(Xt,At,ir,pn,Mr),Mr=String.fromCharCode(55349,57334+dn),yt(vt,At,sr,pn,Mr),yt(Xt,At,ir,pn,Mr)}for(var Mn="ÐÞþ",Yn=0;Yn<Mn.length;Yn++){var hi=Mn.charAt(Yn);yt(vt,At,sr,hi,hi),yt(Xt,At,ir,hi,hi)}var Ci=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],da=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ra=function(De,qe){var We=De.charCodeAt(0),at=De.charCodeAt(1),xt=(We-55296)*1024+(at-56320)+65536,Rt=qe==="math"?0:1;if(119808<=xt&&xt<120484){var qt=Math.floor((xt-119808)/26);return[Ci[qt][2],Ci[qt][Rt]]}else if(120782<=xt&&xt<=120831){var Kt=Math.floor((xt-120782)/10);return[da[Kt][2],da[Kt][Rt]]}else{if(xt===120485||xt===120486)return[Ci[0][2],Ci[0][Rt]];if(120486<xt&&xt<120782)return["",""];throw new q("Unsupported character: "+De)}},Ri=function(De,qe,We){return Ar[We][De]&&Ar[We][De].replace&&(De=Ar[We][De].replace),{value:De,metrics:dt(De,qe,We)}},oi=function(De,qe,We,at,xt){var Rt=Ri(De,qe,We),qt=Rt.metrics;De=Rt.value;var Kt;if(qt){var rr=qt.italic;(We==="text"||at&&at.font==="mathit")&&(rr=0),Kt=new Bt(De,qt.height,qt.depth,rr,qt.skew,qt.width,xt)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+De+"' in style '"+qe+"' and mode '"+We+"'")),Kt=new Bt(De,0,0,0,0,0,xt);if(at){Kt.maxFontSize=at.sizeMultiplier,at.style.isTight()&&Kt.classes.push("mtight");var mr=at.getColor();mr&&(Kt.style.color=mr)}return Kt},mi=function(De,qe,We,at){return at===void 0&&(at=[]),We.font==="boldsymbol"&&Ri(De,"Main-Bold",qe).metrics?oi(De,"Main-Bold",qe,We,at.concat(["mathbf"])):De==="\\"||Ar[qe][De].font==="main"?oi(De,"Main-Regular",qe,We,at):oi(De,"AMS-Regular",qe,We,at.concat(["amsrm"]))},Ia=function(De,qe,We,at,xt){return xt!=="textord"&&Ri(De,"Math-BoldItalic",qe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ha=function(De,qe,We){var at=De.mode,xt=De.text,Rt=["mord"],qt=at==="math"||at==="text"&&qe.font,Kt=qt?qe.font:qe.fontFamily,rr="",mr="";if(xt.charCodeAt(0)===55349){var Fr=ra(xt,at);rr=Fr[0],mr=Fr[1]}if(rr.length>0)return oi(xt,rr,at,qe,Rt.concat(mr));if(Kt){var Vr,zr;if(Kt==="boldsymbol"){var Hr=Ia(xt,at,qe,Rt,We);Vr=Hr.fontName,zr=[Hr.fontClass]}else qt?(Vr=ma[Kt].fontName,zr=[Kt]):(Vr=ki(Kt,qe.fontWeight,qe.fontShape),zr=[Kt,qe.fontWeight,qe.fontShape]);if(Ri(xt,Vr,at).metrics)return oi(xt,Vr,at,qe,Rt.concat(zr));if(Gr.hasOwnProperty(xt)&&Vr.slice(0,10)==="Typewriter"){for(var rn=[],ln=0;ln<xt.length;ln++)rn.push(oi(xt[ln],Vr,at,qe,Rt.concat(zr)));return Ii(rn)}}if(We==="mathord")return oi(xt,"Math-Italic",at,qe,Rt.concat(["mathnormal"]));if(We==="textord"){var mn=Ar[at][xt]&&Ar[at][xt].font;if(mn==="ams"){var xn=ki("amsrm",qe.fontWeight,qe.fontShape);return oi(xt,xn,at,qe,Rt.concat("amsrm",qe.fontWeight,qe.fontShape))}else if(mn==="main"||!mn){var An=ki("textrm",qe.fontWeight,qe.fontShape);return oi(xt,An,at,qe,Rt.concat(qe.fontWeight,qe.fontShape))}else{var qn=ki(mn,qe.fontWeight,qe.fontShape);return oi(xt,qn,at,qe,Rt.concat(qn,qe.fontWeight,qe.fontShape))}}else throw new Error("unexpected type: "+We+" in makeOrd")},ka=function(De,qe){if(Vt(De.classes)!==Vt(qe.classes)||De.skew!==qe.skew||De.maxFontSize!==qe.maxFontSize)return!1;if(De.classes.length===1){var We=De.classes[0];if(We==="mbin"||We==="mord")return!1}for(var at in De.style)if(De.style.hasOwnProperty(at)&&De.style[at]!==qe.style[at])return!1;for(var xt in qe.style)if(qe.style.hasOwnProperty(xt)&&De.style[xt]!==qe.style[xt])return!1;return!0},na=function(De){for(var qe=0;qe<De.length-1;qe++){var We=De[qe],at=De[qe+1];We instanceof Bt&&at instanceof Bt&&ka(We,at)&&(We.text+=at.text,We.height=Math.max(We.height,at.height),We.depth=Math.max(We.depth,at.depth),We.italic=at.italic,De.splice(qe+1,1),qe--)}return De},Fi=function(De){for(var qe=0,We=0,at=0,xt=0;xt<De.children.length;xt++){var Rt=De.children[xt];Rt.height>qe&&(qe=Rt.height),Rt.depth>We&&(We=Rt.depth),Rt.maxFontSize>at&&(at=Rt.maxFontSize)}De.height=qe,De.depth=We,De.maxFontSize=at},Zn=function(De,qe,We,at){var xt=new Yt(De,qe,We,at);return Fi(xt),xt},ia=function(De,qe,We,at){return new Yt(De,qe,We,at)},Oa=function(De,qe,We){var at=Zn([De],[],qe);return at.height=Math.max(We||qe.fontMetrics().defaultRuleThickness,qe.minRuleThickness),at.style.borderBottomWidth=Nt(at.height),at.maxFontSize=1,at},aa=function(De,qe,We,at){var xt=new Ft(De,qe,We,at);return Fi(xt),xt},Ii=function(De){var qe=new $e(De);return Fi(qe),qe},fa=function(De,qe){return De instanceof $e?Zn([],[De],qe):De},Na=function(De){if(De.positionType==="individualShift"){for(var qe=De.children,We=[qe[0]],at=-qe[0].shift-qe[0].elem.depth,xt=at,Rt=1;Rt<qe.length;Rt++){var qt=-qe[Rt].shift-xt-qe[Rt].elem.depth,Kt=qt-(qe[Rt-1].elem.height+qe[Rt-1].elem.depth);xt=xt+qt,We.push({type:"kern",size:Kt}),We.push(qe[Rt])}return{children:We,depth:at}}var rr;if(De.positionType==="top"){for(var mr=De.positionData,Fr=0;Fr<De.children.length;Fr++){var Vr=De.children[Fr];mr-=Vr.type==="kern"?Vr.size:Vr.elem.height+Vr.elem.depth}rr=mr}else if(De.positionType==="bottom")rr=-De.positionData;else{var zr=De.children[0];if(zr.type!=="elem")throw new Error('First child must have type "elem".');if(De.positionType==="shift")rr=-zr.elem.depth-De.positionData;else if(De.positionType==="firstBaseline")rr=-zr.elem.depth;else throw new Error("Invalid positionType "+De.positionType+".")}return{children:De.children,depth:rr}},pa=function(De,qe){for(var We=Na(De),at=We.children,xt=We.depth,Rt=0,qt=0;qt<at.length;qt++){var Kt=at[qt];if(Kt.type==="elem"){var rr=Kt.elem;Rt=Math.max(Rt,rr.maxFontSize,rr.height)}}Rt+=2;var mr=Zn(["pstrut"],[]);mr.style.height=Nt(Rt);for(var Fr=[],Vr=xt,zr=xt,Hr=xt,rn=0;rn<at.length;rn++){var ln=at[rn];if(ln.type==="kern")Hr+=ln.size;else{var mn=ln.elem,xn=ln.wrapperClasses||[],An=ln.wrapperStyle||{},qn=Zn(xn,[mr,mn],void 0,An);qn.style.top=Nt(-Rt-Hr-mn.depth),ln.marginLeft&&(qn.style.marginLeft=ln.marginLeft),ln.marginRight&&(qn.style.marginRight=ln.marginRight),Fr.push(qn),Hr+=mn.height+mn.depth}Vr=Math.min(Vr,Hr),zr=Math.max(zr,Hr)}var Pn=Zn(["vlist"],Fr);Pn.style.height=Nt(zr);var Xn;if(Vr<0){var Vn=Zn([],[]),Qn=Zn(["vlist"],[Vn]);Qn.style.height=Nt(-Vr);var ei=Zn(["vlist-s"],[new Bt("")]);Xn=[Zn(["vlist-r"],[Pn,ei]),Zn(["vlist-r"],[Qn])]}else Xn=[Zn(["vlist-r"],[Pn])];var di=Zn(["vlist-t"],Xn);return Xn.length===2&&di.classes.push("vlist-t2"),di.height=zr,di.depth=-Vr,di},Vi=function(De,qe){var We=Zn(["mspace"],[],qe),at=Pt(De,qe);return We.style.marginRight=Nt(at),We},ki=function(De,qe,We){var at="";switch(De){case"amsrm":at="AMS";break;case"textrm":at="Main";break;case"textsf":at="SansSerif";break;case"texttt":at="Typewriter";break;default:at=De}var xt;return qe==="textbf"&&We==="textit"?xt="BoldItalic":qe==="textbf"?xt="Bold":qe==="textit"?xt="Italic":xt="Regular",at+"-"+xt},ma={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sa={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},oa=function(De,qe){var We=sa[De],at=We[0],xt=We[1],Rt=We[2],qt=new Dt(at),Kt=new It([qt],{width:Nt(xt),height:Nt(Rt),style:"width:"+Nt(xt),viewBox:"0 0 "+1e3*xt+" "+1e3*Rt,preserveAspectRatio:"xMinYMin"}),rr=ia(["overlay"],[Kt],qe);return rr.height=Rt,rr.style.height=Nt(Rt),rr.style.width=Nt(xt),rr},Ir={fontMap:ma,makeSymbol:oi,mathsym:mi,makeSpan:Zn,makeSvgSpan:ia,makeLineSpan:Oa,makeAnchor:aa,makeFragment:Ii,wrapFragment:fa,makeVList:pa,makeOrd:ha,makeGlue:Vi,staticSvg:oa,svgData:sa,tryCombineChars:na},$n={number:3,unit:"mu"},Ai={number:4,unit:"mu"},Oi={number:5,unit:"mu"},ga={mord:{mop:$n,mbin:Ai,mrel:Oi,minner:$n},mop:{mord:$n,mop:$n,mrel:Oi,minner:$n},mbin:{mord:Ai,mop:Ai,mopen:Ai,minner:Ai},mrel:{mord:Oi,mop:Oi,mopen:Oi,minner:Oi},mopen:{},mclose:{mop:$n,mbin:Ai,mrel:Oi,minner:$n},mpunct:{mord:$n,mop:$n,mrel:Oi,mopen:$n,mclose:$n,mpunct:$n,minner:$n},minner:{mord:$n,mop:$n,mbin:Ai,mrel:Oi,mopen:$n,mpunct:$n,minner:$n}},Er={mord:{mop:$n},mop:{mord:$n,mop:$n},mbin:{},mrel:{},mopen:{},mclose:{mop:$n},mpunct:{},minner:{mop:$n}},Oe={},ft={},yr={};function lr(Tt){for(var De=Tt.type,qe=Tt.names,We=Tt.props,at=Tt.handler,xt=Tt.htmlBuilder,Rt=Tt.mathmlBuilder,qt={type:De,numArgs:We.numArgs,argTypes:We.argTypes,allowedInArgument:!!We.allowedInArgument,allowedInText:!!We.allowedInText,allowedInMath:We.allowedInMath===void 0?!0:We.allowedInMath,numOptionalArgs:We.numOptionalArgs||0,infix:!!We.infix,primitive:!!We.primitive,handler:at},Kt=0;Kt<qe.length;++Kt)Oe[qe[Kt]]=qt;De&&(xt&&(ft[De]=xt),Rt&&(yr[De]=Rt))}function qr(Tt){var De=Tt.type,qe=Tt.htmlBuilder,We=Tt.mathmlBuilder;lr({type:De,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:qe,mathmlBuilder:We})}var sn=function(De){return De.type==="ordgroup"&&De.body.length===1?De.body[0]:De},Kr=function(De){return De.type==="ordgroup"?De.body:[De]},on=Ir.makeSpan,bn=["leftmost","mbin","mopen","mrel","mop","mpunct"],Dn=["rightmost","mrel","mclose","mpunct"],zn={display:Ae.DISPLAY,text:Ae.TEXT,script:Ae.SCRIPT,scriptscript:Ae.SCRIPTSCRIPT},Bn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},kn=function(De,qe,We,at){at===void 0&&(at=[null,null]);for(var xt=[],Rt=0;Rt<De.length;Rt++){var qt=vn(De[Rt],qe);if(qt instanceof $e){var Kt=qt.children;xt.push.apply(xt,Kt)}else xt.push(qt)}if(Ir.tryCombineChars(xt),!We)return xt;var rr=qe;if(De.length===1){var mr=De[0];mr.type==="sizing"?rr=qe.havingSize(mr.size):mr.type==="styling"&&(rr=qe.havingStyle(zn[mr.style]))}var Fr=on([at[0]||"leftmost"],[],qe),Vr=on([at[1]||"rightmost"],[],qe),zr=We==="root";return Gn(xt,function(Hr,rn){var ln=rn.classes[0],mn=Hr.classes[0];ln==="mbin"&&J.contains(Dn,mn)?rn.classes[0]="mord":mn==="mbin"&&J.contains(bn,ln)&&(Hr.classes[0]="mord")},{node:Fr},Vr,zr),Gn(xt,function(Hr,rn){var ln=Sn(rn),mn=Sn(Hr),xn=ln&&mn?Hr.hasClass("mtight")?Er[ln][mn]:ga[ln][mn]:null;if(xn)return Ir.makeGlue(xn,rr)},{node:Fr},Vr,zr),xt},Gn=function Tt(De,qe,We,at,xt){at&&De.push(at);for(var Rt=0;Rt<De.length;Rt++){var qt=De[Rt],Kt=En(qt);if(Kt){Tt(Kt.children,qe,We,null,xt);continue}var rr=!qt.hasClass("mspace");if(rr){var mr=qe(qt,We.node);mr&&(We.insertAfter?We.insertAfter(mr):(De.unshift(mr),Rt++))}rr?We.node=qt:xt&&qt.hasClass("newline")&&(We.node=on(["leftmost"])),We.insertAfter=function(Fr){return function(Vr){De.splice(Fr+1,0,Vr),Rt++}}(Rt)}at&&De.pop()},En=function(De){return De instanceof $e||De instanceof Ft||De instanceof Yt&&De.hasClass("enclosing")?De:null},li=function Tt(De,qe){var We=En(De);if(We){var at=We.children;if(at.length){if(qe==="right")return Tt(at[at.length-1],"right");if(qe==="left")return Tt(at[0],"left")}}return De},Sn=function(De,qe){return De?(qe&&(De=li(De,qe)),Bn[De.classes[0]]||null):null},In=function(De,qe){var We=["nulldelimiter"].concat(De.baseSizingClasses());return on(qe.concat(We))},vn=function(De,qe,We){if(!De)return on();if(ft[De.type]){var at=ft[De.type](De,qe);if(We&&qe.size!==We.size){at=on(qe.sizingClasses(We),[at],qe);var xt=qe.sizeMultiplier/We.sizeMultiplier;at.height*=xt,at.depth*=xt}return at}else throw new q("Got group of unknown type: '"+De.type+"'")};function Cn(Tt,De){var qe=on(["base"],Tt,De),We=on(["strut"]);return We.style.height=Nt(qe.height+qe.depth),qe.depth&&(We.style.verticalAlign=Nt(-qe.depth)),qe.children.unshift(We),qe}function Ti(Tt,De){var qe=null;Tt.length===1&&Tt[0].type==="tag"&&(qe=Tt[0].tag,Tt=Tt[0].body);var We=kn(Tt,De,"root"),at;We.length===2&&We[1].hasClass("tag")&&(at=We.pop());for(var xt=[],Rt=[],qt=0;qt<We.length;qt++)if(Rt.push(We[qt]),We[qt].hasClass("mbin")||We[qt].hasClass("mrel")||We[qt].hasClass("allowbreak")){for(var Kt=!1;qt<We.length-1&&We[qt+1].hasClass("mspace")&&!We[qt+1].hasClass("newline");)qt++,Rt.push(We[qt]),We[qt].hasClass("nobreak")&&(Kt=!0);Kt||(xt.push(Cn(Rt,De)),Rt=[])}else We[qt].hasClass("newline")&&(Rt.pop(),Rt.length>0&&(xt.push(Cn(Rt,De)),Rt=[]),xt.push(We[qt]));Rt.length>0&&xt.push(Cn(Rt,De));var rr;qe?(rr=Cn(kn(qe,De,!0)),rr.classes=["tag"],xt.push(rr)):at&&xt.push(at);var mr=on(["katex-html"],xt);if(mr.setAttribute("aria-hidden","true"),rr){var Fr=rr.children[0];Fr.style.height=Nt(mr.height+mr.depth),mr.depth&&(Fr.style.verticalAlign=Nt(-mr.depth))}return mr}function vi(Tt){return new $e(Tt)}var Hn=function(){function Tt(qe,We,at){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=qe,this.attributes={},this.children=We||[],this.classes=at||[]}var De=Tt.prototype;return De.setAttribute=function(We,at){this.attributes[We]=at},De.getAttribute=function(We){return this.attributes[We]},De.toNode=function(){var We=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var at in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,at)&&We.setAttribute(at,this.attributes[at]);this.classes.length>0&&(We.className=Vt(this.classes));for(var xt=0;xt<this.children.length;xt++)We.appendChild(this.children[xt].toNode());return We},De.toMarkup=function(){var We="<"+this.type;for(var at in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,at)&&(We+=" "+at+'="',We+=J.escape(this.attributes[at]),We+='"');this.classes.length>0&&(We+=' class ="'+J.escape(Vt(this.classes))+'"'),We+=">";for(var xt=0;xt<this.children.length;xt++)We+=this.children[xt].toMarkup();return We+="</"+this.type+">",We},De.toText=function(){return this.children.map(function(We){return We.toText()}).join("")},Tt}(),Ni=function(){function Tt(qe){this.text=void 0,this.text=qe}var De=Tt.prototype;return De.toNode=function(){return document.createTextNode(this.text)},De.toMarkup=function(){return J.escape(this.toText())},De.toText=function(){return this.text},Tt}(),zi=function(){function Tt(qe){this.width=void 0,this.character=void 0,this.width=qe,qe>=.05555&&qe<=.05556?this.character="":qe>=.1666&&qe<=.1667?this.character="":qe>=.2222&&qe<=.2223?this.character="":qe>=.2777&&qe<=.2778?this.character="":qe>=-.05556&&qe<=-.05555?this.character="":qe>=-.1667&&qe<=-.1666?this.character="":qe>=-.2223&&qe<=-.2222?this.character="":qe>=-.2778&&qe<=-.2777?this.character="":this.character=null}var De=Tt.prototype;return De.toNode=function(){if(this.character)return document.createTextNode(this.character);var We=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return We.setAttribute("width",Nt(this.width)),We},De.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Nt(this.width)+'"/>'},De.toText=function(){return this.character?this.character:" "},Tt}(),Qr={MathNode:Hn,TextNode:Ni,SpaceNode:zi,newDocumentFragment:vi},gi=function(De,qe,We){return Ar[qe][De]&&Ar[qe][De].replace&&De.charCodeAt(0)!==55349&&!(Gr.hasOwnProperty(De)&&We&&(We.fontFamily&&We.fontFamily.slice(4,6)==="tt"||We.font&&We.font.slice(4,6)==="tt"))&&(De=Ar[qe][De].replace),new Qr.TextNode(De)},Zs=function(De){return De.length===1?De[0]:new Qr.MathNode("mrow",De)},Js=function(De,qe){if(qe.fontFamily==="texttt")return"monospace";if(qe.fontFamily==="textsf")return qe.fontShape==="textit"&&qe.fontWeight==="textbf"?"sans-serif-bold-italic":qe.fontShape==="textit"?"sans-serif-italic":qe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(qe.fontShape==="textit"&&qe.fontWeight==="textbf")return"bold-italic";if(qe.fontShape==="textit")return"italic";if(qe.fontWeight==="textbf")return"bold";var We=qe.font;if(!We||We==="mathnormal")return null;var at=De.mode;if(We==="mathit")return"italic";if(We==="boldsymbol")return De.type==="textord"?"bold":"bold-italic";if(We==="mathbf")return"bold";if(We==="mathbb")return"double-struck";if(We==="mathfrak")return"fraktur";if(We==="mathscr"||We==="mathcal")return"script";if(We==="mathsf")return"sans-serif";if(We==="mathtt")return"monospace";var xt=De.text;if(J.contains(["\\imath","\\jmath"],xt))return null;Ar[at][xt]&&Ar[at][xt].replace&&(xt=Ar[at][xt].replace);var Rt=Ir.fontMap[We].fontName;return dt(xt,Rt,at)?Ir.fontMap[We].variant:null},ti=function(De,qe,We){if(De.length===1){var at=Kn(De[0],qe);return We&&at instanceof Hn&&at.type==="mo"&&(at.setAttribute("lspace","0em"),at.setAttribute("rspace","0em")),[at]}for(var xt=[],Rt,qt=0;qt<De.length;qt++){var Kt=Kn(De[qt],qe);if(Kt instanceof Hn&&Rt instanceof Hn){if(Kt.type==="mtext"&&Rt.type==="mtext"&&Kt.getAttribute("mathvariant")===Rt.getAttribute("mathvariant")){var rr;(rr=Rt.children).push.apply(rr,Kt.children);continue}else if(Kt.type==="mn"&&Rt.type==="mn"){var mr;(mr=Rt.children).push.apply(mr,Kt.children);continue}else if(Kt.type==="mi"&&Kt.children.length===1&&Rt.type==="mn"){var Fr=Kt.children[0];if(Fr instanceof Ni&&Fr.text==="."){var Vr;(Vr=Rt.children).push.apply(Vr,Kt.children);continue}}else if(Rt.type==="mi"&&Rt.children.length===1){var zr=Rt.children[0];if(zr instanceof Ni&&zr.text==="̸"&&(Kt.type==="mo"||Kt.type==="mi"||Kt.type==="mn")){var Hr=Kt.children[0];Hr instanceof Ni&&Hr.text.length>0&&(Hr.text=Hr.text.slice(0,1)+"̸"+Hr.text.slice(1),xt.pop())}}}xt.push(Kt),Rt=Kt}return xt},Da=function(De,qe,We){return Zs(ti(De,qe,We))},Kn=function(De,qe){if(!De)return new Qr.MathNode("mrow");if(yr[De.type]){var We=yr[De.type](De,qe);return We}else throw new q("Got group of unknown type: '"+De.type+"'")};function mo(Tt,De,qe,We,at){var xt=ti(Tt,qe),Rt;xt.length===1&&xt[0]instanceof Hn&&J.contains(["mrow","mtable"],xt[0].type)?Rt=xt[0]:Rt=new Qr.MathNode("mrow",xt);var qt=new Qr.MathNode("annotation",[new Qr.TextNode(De)]);qt.setAttribute("encoding","application/x-tex");var Kt=new Qr.MathNode("semantics",[Rt,qt]),rr=new Qr.MathNode("math",[Kt]);rr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),We&&rr.setAttribute("display","block");var mr=at?"katex":"katex-mathml";return Ir.makeSpan([mr],[rr])}var as=function(De){return new St({style:De.displayMode?Ae.DISPLAY:Ae.TEXT,maxSize:De.maxSize,minRuleThickness:De.minRuleThickness})},Ss=function(De,qe){if(qe.displayMode){var We=["katex-display"];qe.leqno&&We.push("leqno"),qe.fleqn&&We.push("fleqn"),De=Ir.makeSpan(We,[De])}return De},_a=function(De,qe,We){var at=as(We),xt;if(We.output==="mathml")return mo(De,qe,at,We.displayMode,!0);if(We.output==="html"){var Rt=Ti(De,at);xt=Ir.makeSpan(["katex"],[Rt])}else{var qt=mo(De,qe,at,We.displayMode,!1),Kt=Ti(De,at);xt=Ir.makeSpan(["katex"],[qt,Kt])}return Ss(xt,We)},Ga=function(De,qe,We){var at=as(We),xt=Ti(De,at),Rt=Ir.makeSpan(["katex"],[xt]);return Ss(Rt,We)},Uo={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},ui=function(De){var qe=new Qr.MathNode("mo",[new Qr.TextNode(Uo[De.replace(/^\\/,"")])]);return qe.setAttribute("stretchy","true"),qe},go={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},ss=function(De){return De.type==="ordgroup"?De.body.length:1},Si=function(De,qe){function We(){var Kt=4e5,rr=De.label.slice(1);if(J.contains(["widehat","widecheck","widetilde","utilde"],rr)){var mr=De,Fr=ss(mr.base),Vr,zr,Hr;if(Fr>5)rr==="widehat"||rr==="widecheck"?(Vr=420,Kt=2364,Hr=.42,zr=rr+"4"):(Vr=312,Kt=2340,Hr=.34,zr="tilde4");else{var rn=[1,1,2,2,3,3][Fr];rr==="widehat"||rr==="widecheck"?(Kt=[0,1062,2364,2364,2364][rn],Vr=[0,239,300,360,420][rn],Hr=[0,.24,.3,.3,.36,.42][rn],zr=rr+rn):(Kt=[0,600,1033,2339,2340][rn],Vr=[0,260,286,306,312][rn],Hr=[0,.26,.286,.3,.306,.34][rn],zr="tilde"+rn)}var ln=new Dt(zr),mn=new It([ln],{width:"100%",height:Nt(Hr),viewBox:"0 0 "+Kt+" "+Vr,preserveAspectRatio:"none"});return{span:Ir.makeSvgSpan([],[mn],qe),minWidth:0,height:Hr}}else{var xn=[],An=go[rr],qn=An[0],Pn=An[1],Xn=An[2],Vn=Xn/1e3,Qn=qn.length,ei,di;if(Qn===1){var Zi=An[3];ei=["hide-tail"],di=[Zi]}else if(Qn===2)ei=["halfarrow-left","halfarrow-right"],di=["xMinYMin","xMaxYMin"];else if(Qn===3)ei=["brace-left","brace-center","brace-right"],di=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+Qn+" children.");for(var ci=0;ci<Qn;ci++){var ts=new Dt(qn[ci]),Ji=new It([ts],{width:"400em",height:Nt(Vn),viewBox:"0 0 "+Kt+" "+Xn,preserveAspectRatio:di[ci]+" slice"}),Li=Ir.makeSvgSpan([ei[ci]],[Ji],qe);if(Qn===1)return{span:Li,minWidth:Pn,height:Vn};Li.style.height=Nt(Vn),xn.push(Li)}return{span:Ir.makeSpan(["stretchy"],xn,qe),minWidth:Pn,height:Vn}}}var at=We(),xt=at.span,Rt=at.minWidth,qt=at.height;return xt.height=qt,xt.style.height=Nt(qt),Rt>0&&(xt.style.minWidth=Nt(Rt)),xt},eo=function(De,qe,We,at,xt){var Rt,qt=De.height+De.depth+We+at;if(/fbox|color|angl/.test(qe)){if(Rt=Ir.makeSpan(["stretchy",qe],[],xt),qe==="fbox"){var Kt=xt.color&&xt.getColor();Kt&&(Rt.style.borderColor=Kt)}}else{var rr=[];/^[bx]cancel$/.test(qe)&&rr.push(new Zt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(qe)&&rr.push(new Zt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var mr=new It(rr,{width:"100%",height:Nt(qt)});Rt=Ir.makeSvgSpan([],[mr],xt)}return Rt.height=qt,Rt.style.height=Nt(qt),Rt},Bi={encloseSpan:eo,mathMLnode:ui,svgSpan:Si};function On(Tt,De){if(!Tt||Tt.type!==De)throw new Error("Expected node of type "+De+", but got "+(Tt?"node of type "+Tt.type:String(Tt)));return Tt}function xs(Tt){var De=ba(Tt);if(!De)throw new Error("Expected node of symbol group type, but got "+(Tt?"node of type "+Tt.type:String(Tt)));return De}function ba(Tt){return Tt&&(Tt.type==="atom"||kr.hasOwnProperty(Tt.type))?Tt:null}var os=function(De,qe){var We,at,xt;De&&De.type==="supsub"?(at=On(De.base,"accent"),We=at.base,De.base=We,xt=fr(vn(De,qe)),De.base=at):(at=On(De,"accent"),We=at.base);var Rt=vn(We,qe.havingCrampedStyle()),qt=at.isShifty&&J.isCharacterBox(We),Kt=0;if(qt){var rr=J.getBaseElem(We),mr=vn(rr,qe.havingCrampedStyle());Kt=gr(mr).skew}var Fr=at.label==="\\c",Vr=Fr?Rt.height+Rt.depth:Math.min(Rt.height,qe.fontMetrics().xHeight),zr;if(at.isStretchy)zr=Bi.svgSpan(at,qe),zr=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rt},{type:"elem",elem:zr,wrapperClasses:["svg-align"],wrapperStyle:Kt>0?{width:"calc(100% - "+Nt(2*Kt)+")",marginLeft:Nt(2*Kt)}:void 0}]},qe);else{var Hr,rn;at.label==="\\vec"?(Hr=Ir.staticSvg("vec",qe),rn=Ir.svgData.vec[1]):(Hr=Ir.makeOrd({mode:at.mode,text:at.label},qe,"textord"),Hr=gr(Hr),Hr.italic=0,rn=Hr.width,Fr&&(Vr+=Hr.depth)),zr=Ir.makeSpan(["accent-body"],[Hr]);var ln=at.label==="\\textcircled";ln&&(zr.classes.push("accent-full"),Vr=Rt.height);var mn=Kt;ln||(mn-=rn/2),zr.style.left=Nt(mn),at.label==="\\textcircled"&&(zr.style.top=".2em"),zr=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rt},{type:"kern",size:-Vr},{type:"elem",elem:zr}]},qe)}var xn=Ir.makeSpan(["mord","accent"],[zr],qe);return xt?(xt.children[0]=xn,xt.height=Math.max(xn.height,xt.height),xt.classes[0]="mord",xt):xn},to=function(De,qe){var We=De.isStretchy?Bi.mathMLnode(De.label):new Qr.MathNode("mo",[gi(De.label,De.mode)]),at=new Qr.MathNode("mover",[Kn(De.base,qe),We]);return at.setAttribute("accent","true"),at},Go=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Tt){return"\\"+Tt}).join("|"));lr({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(De,qe){var We=sn(qe[0]),at=!Go.test(De.funcName),xt=!at||De.funcName==="\\widehat"||De.funcName==="\\widetilde"||De.funcName==="\\widecheck";return{type:"accent",mode:De.parser.mode,label:De.funcName,isStretchy:at,isShifty:xt,base:We}},htmlBuilder:os,mathmlBuilder:to}),lr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(De,qe){var We=qe[0],at=De.parser.mode;return at==="math"&&(De.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+De.funcName+" works only in text mode"),at="text"),{type:"accent",mode:at,label:De.funcName,isStretchy:!1,isShifty:!0,base:We}},htmlBuilder:os,mathmlBuilder:to}),lr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"accentUnder",mode:We.mode,label:at,base:xt}},htmlBuilder:function(De,qe){var We=vn(De.base,qe),at=Bi.svgSpan(De,qe),xt=De.label==="\\utilde"?.12:0,Rt=Ir.makeVList({positionType:"top",positionData:We.height,children:[{type:"elem",elem:at,wrapperClasses:["svg-align"]},{type:"kern",size:xt},{type:"elem",elem:We}]},qe);return Ir.makeSpan(["mord","accentunder"],[Rt],qe)},mathmlBuilder:function(De,qe){var We=Bi.mathMLnode(De.label),at=new Qr.MathNode("munder",[Kn(De.base,qe),We]);return at.setAttribute("accentunder","true"),at}});var ri=function(De){var qe=new Qr.MathNode("mpadded",De?[De]:[]);return qe.setAttribute("width","+0.6em"),qe.setAttribute("lspace","0.3em"),qe};lr({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(De,qe,We){var at=De.parser,xt=De.funcName;return{type:"xArrow",mode:at.mode,label:xt,body:qe[0],below:We[0]}},htmlBuilder:function(De,qe){var We=qe.style,at=qe.havingStyle(We.sup()),xt=Ir.wrapFragment(vn(De.body,at,qe),qe),Rt=De.label.slice(0,2)==="\\x"?"x":"cd";xt.classes.push(Rt+"-arrow-pad");var qt;De.below&&(at=qe.havingStyle(We.sub()),qt=Ir.wrapFragment(vn(De.below,at,qe),qe),qt.classes.push(Rt+"-arrow-pad"));var Kt=Bi.svgSpan(De,qe),rr=-qe.fontMetrics().axisHeight+.5*Kt.height,mr=-qe.fontMetrics().axisHeight-.5*Kt.height-.111;(xt.depth>.25||De.label==="\\xleftequilibrium")&&(mr-=xt.depth);var Fr;if(qt){var Vr=-qe.fontMetrics().axisHeight+qt.height+.5*Kt.height+.111;Fr=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xt,shift:mr},{type:"elem",elem:Kt,shift:rr},{type:"elem",elem:qt,shift:Vr}]},qe)}else Fr=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xt,shift:mr},{type:"elem",elem:Kt,shift:rr}]},qe);return Fr.children[0].children[0].children[1].classes.push("svg-align"),Ir.makeSpan(["mrel","x-arrow"],[Fr],qe)},mathmlBuilder:function(De,qe){var We=Bi.mathMLnode(De.label);We.setAttribute("minsize",De.label.charAt(0)==="x"?"1.75em":"3.0em");var at;if(De.body){var xt=ri(Kn(De.body,qe));if(De.below){var Rt=ri(Kn(De.below,qe));at=new Qr.MathNode("munderover",[We,Rt,xt])}else at=new Qr.MathNode("mover",[We,xt])}else if(De.below){var qt=ri(Kn(De.below,qe));at=new Qr.MathNode("munder",[We,qt])}else at=ri(),at=new Qr.MathNode("mover",[We,at]);return at}});var _o=Ir.makeSpan;function bo(Tt,De){var qe=kn(Tt.body,De,!0);return _o([Tt.mclass],qe,De)}function ls(Tt,De){var qe,We=ti(Tt.body,De);return Tt.mclass==="minner"?qe=new Qr.MathNode("mpadded",We):Tt.mclass==="mord"?Tt.isCharacterBox?(qe=We[0],qe.type="mi"):qe=new Qr.MathNode("mi",We):(Tt.isCharacterBox?(qe=We[0],qe.type="mo"):qe=new Qr.MathNode("mo",We),Tt.mclass==="mbin"?(qe.attributes.lspace="0.22em",qe.attributes.rspace="0.22em"):Tt.mclass==="mpunct"?(qe.attributes.lspace="0em",qe.attributes.rspace="0.17em"):Tt.mclass==="mopen"||Tt.mclass==="mclose"?(qe.attributes.lspace="0em",qe.attributes.rspace="0em"):Tt.mclass==="minner"&&(qe.attributes.lspace="0.0556em",qe.attributes.width="+0.1111em")),qe}lr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"mclass",mode:We.mode,mclass:"m"+at.slice(5),body:Kr(xt),isCharacterBox:J.isCharacterBox(xt)}},htmlBuilder:bo,mathmlBuilder:ls});var cs=function(De){var qe=De.type==="ordgroup"&&De.body.length?De.body[0]:De;return qe.type==="atom"&&(qe.family==="bin"||qe.family==="rel")?"m"+qe.family:"mord"};lr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(De,qe){var We=De.parser;return{type:"mclass",mode:We.mode,mclass:cs(qe[0]),body:Kr(qe[1]),isCharacterBox:J.isCharacterBox(qe[1])}}}),lr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[1],Rt=qe[0],qt;at!=="\\stackrel"?qt=cs(xt):qt="mrel";var Kt={type:"op",mode:xt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:at!=="\\stackrel",body:Kr(xt)},rr={type:"supsub",mode:Rt.mode,base:Kt,sup:at==="\\underset"?null:Rt,sub:at==="\\underset"?Rt:null};return{type:"mclass",mode:We.mode,mclass:qt,body:[rr],isCharacterBox:J.isCharacterBox(rr)}},htmlBuilder:bo,mathmlBuilder:ls}),lr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser;return{type:"pmb",mode:We.mode,mclass:cs(qe[0]),body:Kr(qe[0])}},htmlBuilder:function(De,qe){var We=kn(De.body,qe,!0),at=Ir.makeSpan([De.mclass],We,qe);return at.style.textShadow="0.02em 0.01em 0.04px",at},mathmlBuilder:function(De,qe){var We=ti(De.body,qe),at=new Qr.MathNode("mstyle",We);return at.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),at}});var us={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$a=function(){return{type:"styling",body:[],mode:"math",style:"display"}},ro=function(De){return De.type==="textord"&&De.text==="@"},yo=function(De,qe){return(De.type==="mathord"||De.type==="atom")&&De.text===qe};function no(Tt,De,qe){var We=us[Tt];switch(We){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return qe.callFunction(We,[De[0]],[De[1]]);case"\\uparrow":case"\\downarrow":{var at=qe.callFunction("\\\\cdleft",[De[0]],[]),xt={type:"atom",text:We,mode:"math",family:"rel"},Rt=qe.callFunction("\\Big",[xt],[]),qt=qe.callFunction("\\\\cdright",[De[1]],[]),Kt={type:"ordgroup",mode:"math",body:[at,Rt,qt]};return qe.callFunction("\\\\cdparent",[Kt],[])}case"\\\\cdlongequal":return qe.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var rr={type:"textord",text:"\\Vert",mode:"math"};return qe.callFunction("\\Big",[rr],[])}default:return{type:"textord",text:" ",mode:"math"}}}function vo(Tt){var De=[];for(Tt.gullet.beginGroup(),Tt.gullet.macros.set("\\cr","\\\\\\relax"),Tt.gullet.beginGroup();;){De.push(Tt.parseExpression(!1,"\\\\")),Tt.gullet.endGroup(),Tt.gullet.beginGroup();var qe=Tt.fetch().text;if(qe==="&"||qe==="\\\\")Tt.consume();else if(qe==="\\end"){De[De.length-1].length===0&&De.pop();break}else throw new q("Expected \\\\ or \\cr or \\end",Tt.nextToken)}for(var We=[],at=[We],xt=0;xt<De.length;xt++){for(var Rt=De[xt],qt=$a(),Kt=0;Kt<Rt.length;Kt++)if(!ro(Rt[Kt]))qt.body.push(Rt[Kt]);else{We.push(qt),Kt+=1;var rr=xs(Rt[Kt]).text,mr=new Array(2);if(mr[0]={type:"ordgroup",mode:"math",body:[]},mr[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(rr)>-1))if("<>AV".indexOf(rr)>-1)for(var Fr=0;Fr<2;Fr++){for(var Vr=!0,zr=Kt+1;zr<Rt.length;zr++){if(yo(Rt[zr],rr)){Vr=!1,Kt=zr;break}if(ro(Rt[zr]))throw new q("Missing a "+rr+" character to complete a CD arrow.",Rt[zr]);mr[Fr].body.push(Rt[zr])}if(Vr)throw new q("Missing a "+rr+" character to complete a CD arrow.",Rt[Kt])}else throw new q('Expected one of "<>AV=|." after @',Rt[Kt]);var Hr=no(rr,mr,Tt),rn={type:"styling",body:[Hr],mode:"math",style:"display"};We.push(rn),qt=$a()}xt%2===0?We.push(qt):We.shift(),We=[],at.push(We)}Tt.gullet.endGroup(),Tt.gullet.endGroup();var ln=new Array(at[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:at,arraystretch:1,addJot:!0,rowGaps:[null],cols:ln,colSeparationType:"CD",hLinesBeforeRow:new Array(at.length+1).fill([])}}lr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=De.funcName;return{type:"cdlabel",mode:We.mode,side:at.slice(4),label:qe[0]}},htmlBuilder:function(De,qe){var We=qe.havingStyle(qe.style.sup()),at=Ir.wrapFragment(vn(De.label,We,qe),qe);return at.classes.push("cd-label-"+De.side),at.style.bottom=Nt(.8-at.depth),at.height=0,at.depth=0,at},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mrow",[Kn(De.label,qe)]);return We=new Qr.MathNode("mpadded",[We]),We.setAttribute("width","0"),De.side==="left"&&We.setAttribute("lspace","-1width"),We.setAttribute("voffset","0.7em"),We=new Qr.MathNode("mstyle",[We]),We.setAttribute("displaystyle","false"),We.setAttribute("scriptlevel","1"),We}}),lr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(De,qe){var We=De.parser;return{type:"cdlabelparent",mode:We.mode,fragment:qe[0]}},htmlBuilder:function(De,qe){var We=Ir.wrapFragment(vn(De.fragment,qe),qe);return We.classes.push("cd-vert-arrow"),We},mathmlBuilder:function(De,qe){return new Qr.MathNode("mrow",[Kn(De.fragment,qe)])}}),lr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){for(var We=De.parser,at=On(qe[0],"ordgroup"),xt=at.body,Rt="",qt=0;qt<xt.length;qt++){var Kt=On(xt[qt],"textord");Rt+=Kt.text}var rr=parseInt(Rt),mr;if(isNaN(rr))throw new q("\\@char has non-numeric argument "+Rt);if(rr<0||rr>=1114111)throw new q("\\@char with invalid code point "+Rt);return rr<=65535?mr=String.fromCharCode(rr):(rr-=65536,mr=String.fromCharCode((rr>>10)+55296,(rr&1023)+56320)),{type:"textord",mode:We.mode,text:mr}}});var ds=function(De,qe){var We=kn(De.body,qe.withColor(De.color),!1);return Ir.makeFragment(We)},hs=function(De,qe){var We=ti(De.body,qe.withColor(De.color)),at=new Qr.MathNode("mstyle",We);return at.setAttribute("mathcolor",De.color),at};lr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(De,qe){var We=De.parser,at=On(qe[0],"color-token").color,xt=qe[1];return{type:"color",mode:We.mode,color:at,body:Kr(xt)}},htmlBuilder:ds,mathmlBuilder:hs}),lr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(De,qe){var We=De.parser,at=De.breakOnTokenText,xt=On(qe[0],"color-token").color;We.gullet.macros.set("\\current@color",xt);var Rt=We.parseExpression(!0,at);return{type:"color",mode:We.mode,color:xt,body:Rt}},htmlBuilder:ds,mathmlBuilder:hs}),lr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(De,qe,We){var at=De.parser,xt=at.gullet.future().text==="["?at.parseSizeGroup(!0):null,Rt=!at.settings.displayMode||!at.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:at.mode,newLine:Rt,size:xt&&On(xt,"size").value}},htmlBuilder:function(De,qe){var We=Ir.makeSpan(["mspace"],[],qe);return De.newLine&&(We.classes.push("newline"),De.size&&(We.style.marginTop=Nt(Pt(De.size,qe)))),We},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mspace");return De.newLine&&(We.setAttribute("linebreak","newline"),De.size&&We.setAttribute("height",Nt(Pt(De.size,qe)))),We}});var ya={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ya=function(De){var qe=De.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(qe))throw new q("Expected a control sequence",De);return qe},Es=function(De){var qe=De.gullet.popToken();return qe.text==="="&&(qe=De.gullet.popToken(),qe.text===" "&&(qe=De.gullet.popToken())),qe},Cs=function(De,qe,We,at){var xt=De.gullet.macros.get(We.text);xt==null&&(We.noexpand=!0,xt={tokens:[We],numArgs:0,unexpandable:!De.gullet.isExpandable(We.text)}),De.gullet.macros.set(qe,xt,at)};lr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(De){var qe=De.parser,We=De.funcName;qe.consumeSpaces();var at=qe.fetch();if(ya[at.text])return(We==="\\global"||We==="\\\\globallong")&&(at.text=ya[at.text]),On(qe.parseFunction(),"internal");throw new q("Invalid token after macro prefix",at)}}),lr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(De){var qe=De.parser,We=De.funcName,at=qe.gullet.popToken(),xt=at.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(xt))throw new q("Expected a control sequence",at);for(var Rt=0,qt,Kt=[[]];qe.gullet.future().text!=="{";)if(at=qe.gullet.popToken(),at.text==="#"){if(qe.gullet.future().text==="{"){qt=qe.gullet.future(),Kt[Rt].push("{");break}if(at=qe.gullet.popToken(),!/^[1-9]$/.test(at.text))throw new q('Invalid argument number "'+at.text+'"');if(parseInt(at.text)!==Rt+1)throw new q('Argument number "'+at.text+'" out of order');Rt++,Kt.push([])}else{if(at.text==="EOF")throw new q("Expected a macro definition");Kt[Rt].push(at.text)}var rr=qe.gullet.consumeArg(),mr=rr.tokens;return qt&&mr.unshift(qt),(We==="\\edef"||We==="\\xdef")&&(mr=qe.gullet.expandTokens(mr),mr.reverse()),qe.gullet.macros.set(xt,{tokens:mr,numArgs:Rt,delimiters:Kt},We===ya[We]),{type:"internal",mode:qe.mode}}}),lr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(De){var qe=De.parser,We=De.funcName,at=Ya(qe.gullet.popToken());qe.gullet.consumeSpaces();var xt=Es(qe);return Cs(qe,at,xt,We==="\\\\globallet"),{type:"internal",mode:qe.mode}}}),lr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(De){var qe=De.parser,We=De.funcName,at=Ya(qe.gullet.popToken()),xt=qe.gullet.popToken(),Rt=qe.gullet.popToken();return Cs(qe,at,Rt,We==="\\\\globalfuture"),qe.gullet.pushToken(Rt),qe.gullet.pushToken(xt),{type:"internal",mode:qe.mode}}});var fs=function(De,qe,We){var at=Ar.math[De]&&Ar.math[De].replace,xt=dt(at||De,qe,We);if(!xt)throw new Error("Unsupported symbol "+De+" and font size "+qe+".");return xt},ps=function(De,qe,We,at){var xt=We.havingBaseStyle(qe),Rt=Ir.makeSpan(at.concat(xt.sizingClasses(We)),[De],We),qt=xt.sizeMultiplier/We.sizeMultiplier;return Rt.height*=qt,Rt.depth*=qt,Rt.maxFontSize=xt.sizeMultiplier,Rt},So=function(De,qe,We){var at=qe.havingBaseStyle(We),xt=(1-qe.sizeMultiplier/at.sizeMultiplier)*qe.fontMetrics().axisHeight;De.classes.push("delimcenter"),De.style.top=Nt(xt),De.height-=xt,De.depth+=xt},xo=function(De,qe,We,at,xt,Rt){var qt=Ir.makeSymbol(De,"Main-Regular",xt,at),Kt=ps(qt,qe,at,Rt);return We&&So(Kt,at,qe),Kt},As=function(De,qe,We,at){return Ir.makeSymbol(De,"Size"+qe+"-Regular",We,at)},Ts=function(De,qe,We,at,xt,Rt){var qt=As(De,qe,xt,at),Kt=ps(Ir.makeSpan(["delimsizing","size"+qe],[qt],at),Ae.TEXT,at,Rt);return We&&So(Kt,at,Ae.TEXT),Kt},ms=function(De,qe,We){var at;qe==="Size1-Regular"?at="delim-size1":at="delim-size4";var xt=Ir.makeSpan(["delimsizinginner",at],[Ir.makeSpan([],[Ir.makeSymbol(De,qe,We)])]);return{type:"elem",elem:xt}},ws=function(De,qe,We){var at=Ye["Size4-Regular"][De.charCodeAt(0)]?Ye["Size4-Regular"][De.charCodeAt(0)][4]:Ye["Size1-Regular"][De.charCodeAt(0)][4],xt=new Dt("inner",et(De,Math.round(1e3*qe))),Rt=new It([xt],{width:Nt(at),height:Nt(qe),style:"width:"+Nt(at),viewBox:"0 0 "+1e3*at+" "+Math.round(1e3*qe),preserveAspectRatio:"xMinYMin"}),qt=Ir.makeSvgSpan([],[Rt],We);return qt.height=qe,qt.style.height=Nt(qe),qt.style.width=Nt(at),{type:"elem",elem:qt}},io=.008,Rs={type:"kern",size:-1*io},ao=["|","\\lvert","\\rvert","\\vert"],$o=["\\|","\\lVert","\\rVert","\\Vert"],Is=function(De,qe,We,at,xt,Rt){var qt,Kt,rr,mr,Fr="",Vr=0;qt=rr=mr=De,Kt=null;var zr="Size1-Regular";De==="\\uparrow"?rr=mr="⏐":De==="\\Uparrow"?rr=mr="‖":De==="\\downarrow"?qt=rr="⏐":De==="\\Downarrow"?qt=rr="‖":De==="\\updownarrow"?(qt="\\uparrow",rr="⏐",mr="\\downarrow"):De==="\\Updownarrow"?(qt="\\Uparrow",rr="‖",mr="\\Downarrow"):J.contains(ao,De)?(rr="",Fr="vert",Vr=333):J.contains($o,De)?(rr="∥",Fr="doublevert",Vr=556):De==="["||De==="\\lbrack"?(qt="⎡",rr="⎢",mr="⎣",zr="Size4-Regular",Fr="lbrack",Vr=667):De==="]"||De==="\\rbrack"?(qt="⎤",rr="⎥",mr="⎦",zr="Size4-Regular",Fr="rbrack",Vr=667):De==="\\lfloor"||De==="⌊"?(rr=qt="⎢",mr="⎣",zr="Size4-Regular",Fr="lfloor",Vr=667):De==="\\lceil"||De==="⌈"?(qt="⎡",rr=mr="⎢",zr="Size4-Regular",Fr="lceil",Vr=667):De==="\\rfloor"||De==="⌋"?(rr=qt="⎥",mr="⎦",zr="Size4-Regular",Fr="rfloor",Vr=667):De==="\\rceil"||De==="⌉"?(qt="⎤",rr=mr="⎥",zr="Size4-Regular",Fr="rceil",Vr=667):De==="("||De==="\\lparen"?(qt="⎛",rr="⎜",mr="⎝",zr="Size4-Regular",Fr="lparen",Vr=875):De===")"||De==="\\rparen"?(qt="⎞",rr="⎟",mr="⎠",zr="Size4-Regular",Fr="rparen",Vr=875):De==="\\{"||De==="\\lbrace"?(qt="⎧",Kt="⎨",mr="⎩",rr="⎪",zr="Size4-Regular"):De==="\\}"||De==="\\rbrace"?(qt="⎫",Kt="⎬",mr="⎭",rr="⎪",zr="Size4-Regular"):De==="\\lgroup"||De==="⟮"?(qt="⎧",mr="⎩",rr="⎪",zr="Size4-Regular"):De==="\\rgroup"||De==="⟯"?(qt="⎫",mr="⎭",rr="⎪",zr="Size4-Regular"):De==="\\lmoustache"||De==="⎰"?(qt="⎧",mr="⎭",rr="⎪",zr="Size4-Regular"):(De==="\\rmoustache"||De==="⎱")&&(qt="⎫",mr="⎩",rr="⎪",zr="Size4-Regular");var Hr=fs(qt,zr,xt),rn=Hr.height+Hr.depth,ln=fs(rr,zr,xt),mn=ln.height+ln.depth,xn=fs(mr,zr,xt),An=xn.height+xn.depth,qn=0,Pn=1;if(Kt!==null){var Xn=fs(Kt,zr,xt);qn=Xn.height+Xn.depth,Pn=2}var Vn=rn+An+qn,Qn=Math.max(0,Math.ceil((qe-Vn)/(Pn*mn))),ei=Vn+Qn*Pn*mn,di=at.fontMetrics().axisHeight;We&&(di*=at.sizeMultiplier);var Zi=ei/2-di,ci=[];if(Fr.length>0){var ts=ei-rn-An,Ji=Math.round(ei*1e3),Li=Ue(Fr,Math.round(ts*1e3)),Ha=new Dt(Fr,Li),Ys=(Vr/1e3).toFixed(3)+"em",js=(Ji/1e3).toFixed(3)+"em",Lo=new It([Ha],{width:Ys,height:js,viewBox:"0 0 "+Vr+" "+Ji}),rs=Ir.makeSvgSpan([],[Lo],at);rs.height=Ji/1e3,rs.style.width=Ys,rs.style.height=js,ci.push({type:"elem",elem:rs})}else{if(ci.push(ms(mr,zr,xt)),ci.push(Rs),Kt===null){var ns=ei-rn-An+2*io;ci.push(ws(rr,ns,at))}else{var ea=(ei-rn-An-qn)/2+2*io;ci.push(ws(rr,ea,at)),ci.push(Rs),ci.push(ms(Kt,zr,xt)),ci.push(Rs),ci.push(ws(rr,ea,at))}ci.push(Rs),ci.push(ms(qt,zr,xt))}var ta=at.havingBaseStyle(Ae.TEXT),Ho=Ir.makeVList({positionType:"bottom",positionData:Zi,children:ci},ta);return ps(Ir.makeSpan(["delimsizing","mult"],[Ho],ta),Ae.TEXT,at,Rt)},ks=80,Os=.08,Ns=function(De,qe,We,at,xt){var Rt=Le(De,at,We),qt=new Dt(De,Rt),Kt=new It([qt],{width:"400em",height:Nt(qe),viewBox:"0 0 400000 "+We,preserveAspectRatio:"xMinYMin slice"});return Ir.makeSvgSpan(["hide-tail"],[Kt],xt)},Eo=function(De,qe){var We=qe.havingBaseSizing(),at=Ls("\\surd",De*We.sizeMultiplier,xa,We),xt=We.sizeMultiplier,Rt=Math.max(0,qe.minRuleThickness-qe.fontMetrics().sqrtRuleThickness),qt,Kt=0,rr=0,mr=0,Fr;return at.type==="small"?(mr=1e3+1e3*Rt+ks,De<1?xt=1:De<1.4&&(xt=.7),Kt=(1+Rt+Os)/xt,rr=(1+Rt)/xt,qt=Ns("sqrtMain",Kt,mr,Rt,qe),qt.style.minWidth="0.853em",Fr=.833/xt):at.type==="large"?(mr=(1e3+ks)*Sa[at.size],rr=(Sa[at.size]+Rt)/xt,Kt=(Sa[at.size]+Rt+Os)/xt,qt=Ns("sqrtSize"+at.size,Kt,mr,Rt,qe),qt.style.minWidth="1.02em",Fr=1/xt):(Kt=De+Rt+Os,rr=De+Rt,mr=Math.floor(1e3*De+Rt)+ks,qt=Ns("sqrtTall",Kt,mr,Rt,qe),qt.style.minWidth="0.742em",Fr=1.056),qt.height=rr,qt.style.height=Nt(Kt),{span:qt,advanceWidth:Fr,ruleWidth:(qe.fontMetrics().sqrtRuleThickness+Rt)*xt}},Ds=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],va=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],gs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Sa=[0,1.2,1.8,2.4,3],so=function(De,qe,We,at,xt){if(De==="<"||De==="\\lt"||De==="⟨"?De="\\langle":(De===">"||De==="\\gt"||De==="⟩")&&(De="\\rangle"),J.contains(Ds,De)||J.contains(gs,De))return Ts(De,qe,!1,We,at,xt);if(J.contains(va,De))return Is(De,Sa[qe],!1,We,at,xt);throw new q("Illegal delimiter: '"+De+"'")},Ms=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ma=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"stack"}],xa=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hi=function(De){if(De.type==="small")return"Main-Regular";if(De.type==="large")return"Size"+De.size+"-Regular";if(De.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+De.type+"' here.")},Ls=function(De,qe,We,at){for(var xt=Math.min(2,3-at.style.size),Rt=xt;Rt<We.length&&We[Rt].type!=="stack";Rt++){var qt=fs(De,Hi(We[Rt]),"math"),Kt=qt.height+qt.depth;if(We[Rt].type==="small"){var rr=at.havingBaseStyle(We[Rt].style);Kt*=rr.sizeMultiplier}if(Kt>qe)return We[Rt]}return We[We.length-1]},Co=function(De,qe,We,at,xt,Rt){De==="<"||De==="\\lt"||De==="⟨"?De="\\langle":(De===">"||De==="\\gt"||De==="⟩")&&(De="\\rangle");var qt;J.contains(gs,De)?qt=Ms:J.contains(Ds,De)?qt=xa:qt=Ma;var Kt=Ls(De,qe,qt,at);return Kt.type==="small"?xo(De,Kt.style,We,at,xt,Rt):Kt.type==="large"?Ts(De,Kt.size,We,at,xt,Rt):Is(De,qe,We,at,xt,Rt)},ja=function(De,qe,We,at,xt,Rt){var qt=at.fontMetrics().axisHeight*at.sizeMultiplier,Kt=901,rr=5/at.fontMetrics().ptPerEm,mr=Math.max(qe-qt,We+qt),Fr=Math.max(mr/500*Kt,2*mr-rr);return Co(De,Fr,!0,at,xt,Rt)},Wi={sqrtImage:Eo,sizedDelim:so,sizeToMaxHeight:Sa,customSizedDelim:Co,leftRightDelim:ja},Ao={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Ps=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fs(Tt,De){var qe=ba(Tt);if(qe&&J.contains(Ps,qe.text))return qe;throw qe?new q("Invalid delimiter '"+qe.text+"' after '"+De.funcName+"'",Tt):new q("Invalid delimiter type '"+Tt.type+"'",Tt)}lr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(De,qe){var We=Fs(qe[0],De);return{type:"delimsizing",mode:De.parser.mode,size:Ao[De.funcName].size,mclass:Ao[De.funcName].mclass,delim:We.text}},htmlBuilder:function(De,qe){return De.delim==="."?Ir.makeSpan([De.mclass]):Wi.sizedDelim(De.delim,De.size,qe,De.mode,[De.mclass])},mathmlBuilder:function(De){var qe=[];De.delim!=="."&&qe.push(gi(De.delim,De.mode));var We=new Qr.MathNode("mo",qe);De.mclass==="mopen"||De.mclass==="mclose"?We.setAttribute("fence","true"):We.setAttribute("fence","false"),We.setAttribute("stretchy","true");var at=Nt(Wi.sizeToMaxHeight[De.size]);return We.setAttribute("minsize",at),We.setAttribute("maxsize",at),We}});function To(Tt){if(!Tt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}lr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(De,qe){var We=De.parser.gullet.macros.get("\\current@color");if(We&&typeof We!="string")throw new q("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:De.parser.mode,delim:Fs(qe[0],De).text,color:We}}}),lr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(De,qe){var We=Fs(qe[0],De),at=De.parser;++at.leftrightDepth;var xt=at.parseExpression(!1);--at.leftrightDepth,at.expect("\\right",!1);var Rt=On(at.parseFunction(),"leftright-right");return{type:"leftright",mode:at.mode,body:xt,left:We.text,right:Rt.delim,rightColor:Rt.color}},htmlBuilder:function(De,qe){To(De);for(var We=kn(De.body,qe,!0,["mopen","mclose"]),at=0,xt=0,Rt=!1,qt=0;qt<We.length;qt++)We[qt].isMiddle?Rt=!0:(at=Math.max(We[qt].height,at),xt=Math.max(We[qt].depth,xt));at*=qe.sizeMultiplier,xt*=qe.sizeMultiplier;var Kt;if(De.left==="."?Kt=In(qe,["mopen"]):Kt=Wi.leftRightDelim(De.left,at,xt,qe,De.mode,["mopen"]),We.unshift(Kt),Rt)for(var rr=1;rr<We.length;rr++){var mr=We[rr],Fr=mr.isMiddle;Fr&&(We[rr]=Wi.leftRightDelim(Fr.delim,at,xt,Fr.options,De.mode,[]))}var Vr;if(De.right===".")Vr=In(qe,["mclose"]);else{var zr=De.rightColor?qe.withColor(De.rightColor):qe;Vr=Wi.leftRightDelim(De.right,at,xt,zr,De.mode,["mclose"])}return We.push(Vr),Ir.makeSpan(["minner"],We,qe)},mathmlBuilder:function(De,qe){To(De);var We=ti(De.body,qe);if(De.left!=="."){var at=new Qr.MathNode("mo",[gi(De.left,De.mode)]);at.setAttribute("fence","true"),We.unshift(at)}if(De.right!=="."){var xt=new Qr.MathNode("mo",[gi(De.right,De.mode)]);xt.setAttribute("fence","true"),De.rightColor&&xt.setAttribute("mathcolor",De.rightColor),We.push(xt)}return Zs(We)}}),lr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(De,qe){var We=Fs(qe[0],De);if(!De.parser.leftrightDepth)throw new q("\\middle without preceding \\left",We);return{type:"middle",mode:De.parser.mode,delim:We.text}},htmlBuilder:function(De,qe){var We;if(De.delim===".")We=In(qe,[]);else{We=Wi.sizedDelim(De.delim,1,qe,De.mode,[]);var at={delim:De.delim,options:qe};We.isMiddle=at}return We},mathmlBuilder:function(De,qe){var We=De.delim==="\\vert"||De.delim==="|"?gi("|","text"):gi(De.delim,De.mode),at=new Qr.MathNode("mo",[We]);return at.setAttribute("fence","true"),at.setAttribute("lspace","0.05em"),at.setAttribute("rspace","0.05em"),at}});var Bs=function(De,qe){var We=Ir.wrapFragment(vn(De.body,qe),qe),at=De.label.slice(1),xt=qe.sizeMultiplier,Rt,qt=0,Kt=J.isCharacterBox(De.body);if(at==="sout")Rt=Ir.makeSpan(["stretchy","sout"]),Rt.height=qe.fontMetrics().defaultRuleThickness/xt,qt=-.5*qe.fontMetrics().xHeight;else if(at==="phase"){var rr=Pt({number:.6,unit:"pt"},qe),mr=Pt({number:.35,unit:"ex"},qe),Fr=qe.havingBaseSizing();xt=xt/Fr.sizeMultiplier;var Vr=We.height+We.depth+rr+mr;We.style.paddingLeft=Nt(Vr/2+rr);var zr=Math.floor(1e3*Vr*xt),Hr=Ve(zr),rn=new It([new Dt("phase",Hr)],{width:"400em",height:Nt(zr/1e3),viewBox:"0 0 400000 "+zr,preserveAspectRatio:"xMinYMin slice"});Rt=Ir.makeSvgSpan(["hide-tail"],[rn],qe),Rt.style.height=Nt(Vr),qt=We.depth+rr+mr}else{/cancel/.test(at)?Kt||We.classes.push("cancel-pad"):at==="angl"?We.classes.push("anglpad"):We.classes.push("boxpad");var ln=0,mn=0,xn=0;/box/.test(at)?(xn=Math.max(qe.fontMetrics().fboxrule,qe.minRuleThickness),ln=qe.fontMetrics().fboxsep+(at==="colorbox"?0:xn),mn=ln):at==="angl"?(xn=Math.max(qe.fontMetrics().defaultRuleThickness,qe.minRuleThickness),ln=4*xn,mn=Math.max(0,.25-We.depth)):(ln=Kt?.2:0,mn=ln),Rt=Bi.encloseSpan(We,at,ln,mn,qe),/fbox|boxed|fcolorbox/.test(at)?(Rt.style.borderStyle="solid",Rt.style.borderWidth=Nt(xn)):at==="angl"&&xn!==.049&&(Rt.style.borderTopWidth=Nt(xn),Rt.style.borderRightWidth=Nt(xn)),qt=We.depth+mn,De.backgroundColor&&(Rt.style.backgroundColor=De.backgroundColor,De.borderColor&&(Rt.style.borderColor=De.borderColor))}var An;if(De.backgroundColor)An=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Rt,shift:qt},{type:"elem",elem:We,shift:0}]},qe);else{var qn=/cancel|phase/.test(at)?["svg-align"]:[];An=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:We,shift:0},{type:"elem",elem:Rt,shift:qt,wrapperClasses:qn}]},qe)}return/cancel/.test(at)&&(An.height=We.height,An.depth=We.depth),/cancel/.test(at)&&!Kt?Ir.makeSpan(["mord","cancel-lap"],[An],qe):Ir.makeSpan(["mord"],[An],qe)},oo=function(De,qe){var We=0,at=new Qr.MathNode(De.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Kn(De.body,qe)]);switch(De.label){case"\\cancel":at.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":at.setAttribute("notation","downdiagonalstrike");break;case"\\phase":at.setAttribute("notation","phasorangle");break;case"\\sout":at.setAttribute("notation","horizontalstrike");break;case"\\fbox":at.setAttribute("notation","box");break;case"\\angl":at.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(We=qe.fontMetrics().fboxsep*qe.fontMetrics().ptPerEm,at.setAttribute("width","+"+2*We+"pt"),at.setAttribute("height","+"+2*We+"pt"),at.setAttribute("lspace",We+"pt"),at.setAttribute("voffset",We+"pt"),De.label==="\\fcolorbox"){var xt=Math.max(qe.fontMetrics().fboxrule,qe.minRuleThickness);at.setAttribute("style","border: "+xt+"em solid "+String(De.borderColor))}break;case"\\xcancel":at.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return De.backgroundColor&&at.setAttribute("mathbackground",De.backgroundColor),at};lr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(De,qe,We){var at=De.parser,xt=De.funcName,Rt=On(qe[0],"color-token").color,qt=qe[1];return{type:"enclose",mode:at.mode,label:xt,backgroundColor:Rt,body:qt}},htmlBuilder:Bs,mathmlBuilder:oo}),lr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(De,qe,We){var at=De.parser,xt=De.funcName,Rt=On(qe[0],"color-token").color,qt=On(qe[1],"color-token").color,Kt=qe[2];return{type:"enclose",mode:at.mode,label:xt,backgroundColor:qt,borderColor:Rt,body:Kt}},htmlBuilder:Bs,mathmlBuilder:oo}),lr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(De,qe){var We=De.parser;return{type:"enclose",mode:We.mode,label:"\\fbox",body:qe[0]}}}),lr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"enclose",mode:We.mode,label:at,body:xt}},htmlBuilder:Bs,mathmlBuilder:oo}),lr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(De,qe){var We=De.parser;return{type:"enclose",mode:We.mode,label:"\\angl",body:qe[0]}}});var wo={};function la(Tt){for(var De=Tt.type,qe=Tt.names,We=Tt.props,at=Tt.handler,xt=Tt.htmlBuilder,Rt=Tt.mathmlBuilder,qt={type:De,numArgs:We.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:at},Kt=0;Kt<qe.length;++Kt)wo[qe[Kt]]=qt;xt&&(ft[De]=xt),Rt&&(yr[De]=Rt)}var lo={};function Qt(Tt,De){lo[Tt]=De}var Yi=function(){function Tt(De,qe,We){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=De,this.start=qe,this.end=We}return Tt.range=function(qe,We){return We?!qe||!qe.loc||!We.loc||qe.loc.lexer!==We.loc.lexer?null:new Tt(qe.loc.lexer,qe.loc.start,We.loc.end):qe&&qe.loc},Tt}(),La=function(){function Tt(qe,We){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=qe,this.loc=We}var De=Tt.prototype;return De.range=function(We,at){return new Tt(at,Yi.range(this,We))},Tt}();function co(Tt){var De=[];Tt.consumeSpaces();var qe=Tt.fetch().text;for(qe==="\\relax"&&(Tt.consume(),Tt.consumeSpaces(),qe=Tt.fetch().text);qe==="\\hline"||qe==="\\hdashline";)Tt.consume(),De.push(qe==="\\hdashline"),Tt.consumeSpaces(),qe=Tt.fetch().text;return De}var Xa=function(De){var qe=De.parser.settings;if(!qe.displayMode)throw new q("{"+De.envName+"} can be used only in display mode.")};function ca(Tt){if(Tt.indexOf("ed")===-1)return Tt.indexOf("*")===-1}function Ui(Tt,De,qe){var We=De.hskipBeforeAndAfter,at=De.addJot,xt=De.cols,Rt=De.arraystretch,qt=De.colSeparationType,Kt=De.autoTag,rr=De.singleRow,mr=De.emptySingleRow,Fr=De.maxNumCols,Vr=De.leqno;if(Tt.gullet.beginGroup(),rr||Tt.gullet.macros.set("\\cr","\\\\\\relax"),!Rt){var zr=Tt.gullet.expandMacroAsText("\\arraystretch");if(zr==null)Rt=1;else if(Rt=parseFloat(zr),!Rt||Rt<0)throw new q("Invalid \\arraystretch: "+zr)}Tt.gullet.beginGroup();var Hr=[],rn=[Hr],ln=[],mn=[],xn=Kt!=null?[]:void 0;function An(){Kt&&Tt.gullet.macros.set("\\@eqnsw","1",!0)}function qn(){xn&&(Tt.gullet.macros.get("\\df@tag")?(xn.push(Tt.subparse([new La("\\df@tag")])),Tt.gullet.macros.set("\\df@tag",void 0,!0)):xn.push(!!Kt&&Tt.gullet.macros.get("\\@eqnsw")==="1"))}for(An(),mn.push(co(Tt));;){var Pn=Tt.parseExpression(!1,rr?"\\end":"\\\\");Tt.gullet.endGroup(),Tt.gullet.beginGroup(),Pn={type:"ordgroup",mode:Tt.mode,body:Pn},qe&&(Pn={type:"styling",mode:Tt.mode,style:qe,body:[Pn]}),Hr.push(Pn);var Xn=Tt.fetch().text;if(Xn==="&"){if(Fr&&Hr.length===Fr){if(rr||qt)throw new q("Too many tab characters: &",Tt.nextToken);Tt.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}Tt.consume()}else if(Xn==="\\end"){qn(),Hr.length===1&&Pn.type==="styling"&&Pn.body[0].body.length===0&&(rn.length>1||!mr)&&rn.pop(),mn.length<rn.length+1&&mn.push([]);break}else if(Xn==="\\\\"){Tt.consume();var Vn=void 0;Tt.gullet.future().text!==" "&&(Vn=Tt.parseSizeGroup(!0)),ln.push(Vn?Vn.value:null),qn(),mn.push(co(Tt)),Hr=[],rn.push(Hr),An()}else throw new q("Expected & or \\\\ or \\cr or \\end",Tt.nextToken)}return Tt.gullet.endGroup(),Tt.gullet.endGroup(),{type:"array",mode:Tt.mode,addJot:at,arraystretch:Rt,body:rn,cols:xt,rowGaps:ln,hskipBeforeAndAfter:We,hLinesBeforeRow:mn,colSeparationType:qt,tags:xn,leqno:Vr}}function Us(Tt){return Tt.slice(0,1)==="d"?"display":"text"}var ji=function(De,qe){var We,at,xt=De.body.length,Rt=De.hLinesBeforeRow,qt=0,Kt=new Array(xt),rr=[],mr=Math.max(qe.fontMetrics().arrayRuleWidth,qe.minRuleThickness),Fr=1/qe.fontMetrics().ptPerEm,Vr=5*Fr;if(De.colSeparationType&&De.colSeparationType==="small"){var zr=qe.havingStyle(Ae.SCRIPT).sizeMultiplier;Vr=.2778*(zr/qe.sizeMultiplier)}var Hr=De.colSeparationType==="CD"?Pt({number:3,unit:"ex"},qe):12*Fr,rn=3*Fr,ln=De.arraystretch*Hr,mn=.7*ln,xn=.3*ln,An=0;function qn(Fo){for(var Bo=0;Bo<Fo.length;++Bo)Bo>0&&(An+=.25),rr.push({pos:An,isDashed:Fo[Bo]})}for(qn(Rt[0]),We=0;We<De.body.length;++We){var Pn=De.body[We],Xn=mn,Vn=xn;qt<Pn.length&&(qt=Pn.length);var Qn=new Array(Pn.length);for(at=0;at<Pn.length;++at){var ei=vn(Pn[at],qe);Vn<ei.depth&&(Vn=ei.depth),Xn<ei.height&&(Xn=ei.height),Qn[at]=ei}var di=De.rowGaps[We],Zi=0;di&&(Zi=Pt(di,qe),Zi>0&&(Zi+=xn,Vn<Zi&&(Vn=Zi),Zi=0)),De.addJot&&(Vn+=rn),Qn.height=Xn,Qn.depth=Vn,An+=Xn,Qn.pos=An,An+=Vn+Zi,Kt[We]=Qn,qn(Rt[We+1])}var ci=An/2+qe.fontMetrics().axisHeight,ts=De.cols||[],Ji=[],Li,Ha,Ys=[];if(De.tags&&De.tags.some(function(Fo){return Fo}))for(We=0;We<xt;++We){var js=Kt[We],Lo=js.pos-ci,rs=De.tags[We],ns=void 0;rs===!0?ns=Ir.makeSpan(["eqn-num"],[],qe):rs===!1?ns=Ir.makeSpan([],[],qe):ns=Ir.makeSpan([],kn(rs,qe,!0),qe),ns.depth=js.depth,ns.height=js.height,Ys.push({type:"elem",elem:ns,shift:Lo})}for(at=0,Ha=0;at<qt||Ha<ts.length;++at,++Ha){for(var ea=ts[Ha]||{},ta=!0;ea.type==="separator";){if(ta||(Li=Ir.makeSpan(["arraycolsep"],[]),Li.style.width=Nt(qe.fontMetrics().doubleRuleSep),Ji.push(Li)),ea.separator==="|"||ea.separator===":"){var Ho=ea.separator==="|"?"solid":"dashed",is=Ir.makeSpan(["vertical-separator"],[],qe);is.style.height=Nt(An),is.style.borderRightWidth=Nt(mr),is.style.borderRightStyle=Ho,is.style.margin="0 "+Nt(-mr/2);var jo=An-ci;jo&&(is.style.verticalAlign=Nt(-jo)),Ji.push(is)}else throw new q("Invalid separator type: "+ea.separator);Ha++,ea=ts[Ha]||{},ta=!1}if(!(at>=qt)){var Xs=void 0;(at>0||De.hskipBeforeAndAfter)&&(Xs=J.deflt(ea.pregap,Vr),Xs!==0&&(Li=Ir.makeSpan(["arraycolsep"],[]),Li.style.width=Nt(Xs),Ji.push(Li)));var Ks=[];for(We=0;We<xt;++We){var Qs=Kt[We],Po=Qs[at];if(Po){var Jo=Qs.pos-ci;Po.depth=Qs.depth,Po.height=Qs.height,Ks.push({type:"elem",elem:Po,shift:Jo})}}Ks=Ir.makeVList({positionType:"individualShift",children:Ks},qe),Ks=Ir.makeSpan(["col-align-"+(ea.align||"c")],[Ks]),Ji.push(Ks),(at<qt-1||De.hskipBeforeAndAfter)&&(Xs=J.deflt(ea.postgap,Vr),Xs!==0&&(Li=Ir.makeSpan(["arraycolsep"],[]),Li.style.width=Nt(Xs),Ji.push(Li)))}}if(Kt=Ir.makeSpan(["mtable"],Ji),rr.length>0){for(var tl=Ir.makeLineSpan("hline",qe,mr),rl=Ir.makeLineSpan("hdashline",qe,mr),Wo=[{type:"elem",elem:Kt,shift:0}];rr.length>0;){var Xo=rr.pop(),Ko=Xo.pos-ci;Xo.isDashed?Wo.push({type:"elem",elem:rl,shift:Ko}):Wo.push({type:"elem",elem:tl,shift:Ko})}Kt=Ir.makeVList({positionType:"individualShift",children:Wo},qe)}if(Ys.length===0)return Ir.makeSpan(["mord"],[Kt],qe);var Yo=Ir.makeVList({positionType:"individualShift",children:Ys},qe);return Yo=Ir.makeSpan(["tag"],[Yo],qe),Ir.makeFragment([Kt,Yo])},fi={c:"center ",l:"left ",r:"right "},Ei=function(De,qe){for(var We=[],at=new Qr.MathNode("mtd",[],["mtr-glue"]),xt=new Qr.MathNode("mtd",[],["mml-eqn-num"]),Rt=0;Rt<De.body.length;Rt++){for(var qt=De.body[Rt],Kt=[],rr=0;rr<qt.length;rr++)Kt.push(new Qr.MathNode("mtd",[Kn(qt[rr],qe)]));De.tags&&De.tags[Rt]&&(Kt.unshift(at),Kt.push(at),De.leqno?Kt.unshift(xt):Kt.push(xt)),We.push(new Qr.MathNode("mtr",Kt))}var mr=new Qr.MathNode("mtable",We),Fr=De.arraystretch===.5?.1:.16+De.arraystretch-1+(De.addJot?.09:0);mr.setAttribute("rowspacing",Nt(Fr));var Vr="",zr="";if(De.cols&&De.cols.length>0){var Hr=De.cols,rn="",ln=!1,mn=0,xn=Hr.length;Hr[0].type==="separator"&&(Vr+="top ",mn=1),Hr[Hr.length-1].type==="separator"&&(Vr+="bottom ",xn-=1);for(var An=mn;An<xn;An++)Hr[An].type==="align"?(zr+=fi[Hr[An].align],ln&&(rn+="none "),ln=!0):Hr[An].type==="separator"&&ln&&(rn+=Hr[An].separator==="|"?"solid ":"dashed ",ln=!1);mr.setAttribute("columnalign",zr.trim()),/[sd]/.test(rn)&&mr.setAttribute("columnlines",rn.trim())}if(De.colSeparationType==="align"){for(var qn=De.cols||[],Pn="",Xn=1;Xn<qn.length;Xn++)Pn+=Xn%2?"0em ":"1em ";mr.setAttribute("columnspacing",Pn.trim())}else De.colSeparationType==="alignat"||De.colSeparationType==="gather"?mr.setAttribute("columnspacing","0em"):De.colSeparationType==="small"?mr.setAttribute("columnspacing","0.2778em"):De.colSeparationType==="CD"?mr.setAttribute("columnspacing","0.5em"):mr.setAttribute("columnspacing","1em");var Vn="",Qn=De.hLinesBeforeRow;Vr+=Qn[0].length>0?"left ":"",Vr+=Qn[Qn.length-1].length>0?"right ":"";for(var ei=1;ei<Qn.length-1;ei++)Vn+=Qn[ei].length===0?"none ":Qn[ei][0]?"dashed ":"solid ";return/[sd]/.test(Vn)&&mr.setAttribute("rowlines",Vn.trim()),Vr!==""&&(mr=new Qr.MathNode("menclose",[mr]),mr.setAttribute("notation",Vr.trim())),De.arraystretch&&De.arraystretch<1&&(mr=new Qr.MathNode("mstyle",[mr]),mr.setAttribute("scriptlevel","1")),mr},uo=function(De,qe){De.envName.indexOf("ed")===-1&&Xa(De);var We=[],at=De.envName.indexOf("at")>-1?"alignat":"align",xt=De.envName==="split",Rt=Ui(De.parser,{cols:We,addJot:!0,autoTag:xt?void 0:ca(De.envName),emptySingleRow:!0,colSeparationType:at,maxNumCols:xt?2:void 0,leqno:De.parser.settings.leqno},"display"),qt,Kt=0,rr={type:"ordgroup",mode:De.mode,body:[]};if(qe[0]&&qe[0].type==="ordgroup"){for(var mr="",Fr=0;Fr<qe[0].body.length;Fr++){var Vr=On(qe[0].body[Fr],"textord");mr+=Vr.text}qt=Number(mr),Kt=qt*2}var zr=!Kt;Rt.body.forEach(function(mn){for(var xn=1;xn<mn.length;xn+=2){var An=On(mn[xn],"styling"),qn=On(An.body[0],"ordgroup");qn.body.unshift(rr)}if(zr)Kt<mn.length&&(Kt=mn.length);else{var Pn=mn.length/2;if(qt<Pn)throw new q("Too many math in a row: "+("expected "+qt+", but got "+Pn),mn[0])}});for(var Hr=0;Hr<Kt;++Hr){var rn="r",ln=0;Hr%2===1?rn="l":Hr>0&&zr&&(ln=1),We[Hr]={type:"align",align:rn,pregap:ln,postgap:0}}return Rt.colSeparationType=zr?"align":"alignat",Rt};la({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(De,qe){var We=ba(qe[0]),at=We?[qe[0]]:On(qe[0],"ordgroup").body,xt=at.map(function(qt){var Kt=xs(qt),rr=Kt.text;if("lcr".indexOf(rr)!==-1)return{type:"align",align:rr};if(rr==="|")return{type:"separator",separator:"|"};if(rr===":")return{type:"separator",separator:":"};throw new q("Unknown column alignment: "+rr,qt)}),Rt={cols:xt,hskipBeforeAndAfter:!0,maxNumCols:xt.length};return Ui(De.parser,Rt,Us(De.envName))},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(De){var qe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[De.envName.replace("*","")],We="c",at={hskipBeforeAndAfter:!1,cols:[{type:"align",align:We}]};if(De.envName.charAt(De.envName.length-1)==="*"){var xt=De.parser;if(xt.consumeSpaces(),xt.fetch().text==="["){if(xt.consume(),xt.consumeSpaces(),We=xt.fetch().text,"lcr".indexOf(We)===-1)throw new q("Expected l or c or r",xt.nextToken);xt.consume(),xt.consumeSpaces(),xt.expect("]"),xt.consume(),at.cols=[{type:"align",align:We}]}}var Rt=Ui(De.parser,at,Us(De.envName)),qt=Math.max.apply(Math,[0].concat(Rt.body.map(function(Kt){return Kt.length})));return Rt.cols=new Array(qt).fill({type:"align",align:We}),qe?{type:"leftright",mode:De.mode,body:[Rt],left:qe[0],right:qe[1],rightColor:void 0}:Rt},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(De){var qe={arraystretch:.5},We=Ui(De.parser,qe,"script");return We.colSeparationType="small",We},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["subarray"],props:{numArgs:1},handler:function(De,qe){var We=ba(qe[0]),at=We?[qe[0]]:On(qe[0],"ordgroup").body,xt=at.map(function(qt){var Kt=xs(qt),rr=Kt.text;if("lc".indexOf(rr)!==-1)return{type:"align",align:rr};throw new q("Unknown column alignment: "+rr,qt)});if(xt.length>1)throw new q("{subarray} can contain only one column");var Rt={cols:xt,hskipBeforeAndAfter:!1,arraystretch:.5};if(Rt=Ui(De.parser,Rt,"script"),Rt.body.length>0&&Rt.body[0].length>1)throw new q("{subarray} can contain only one column");return Rt},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(De){var qe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},We=Ui(De.parser,qe,Us(De.envName));return{type:"leftright",mode:De.mode,body:[We],left:De.envName.indexOf("r")>-1?".":"\\{",right:De.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:uo,htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(De){J.contains(["gather","gather*"],De.envName)&&Xa(De);var qe={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ca(De.envName),emptySingleRow:!0,leqno:De.parser.settings.leqno};return Ui(De.parser,qe,"display")},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:uo,htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(De){Xa(De);var qe={autoTag:ca(De.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:De.parser.settings.leqno};return Ui(De.parser,qe,"display")},htmlBuilder:ji,mathmlBuilder:Ei}),la({type:"array",names:["CD"],props:{numArgs:0},handler:function(De){return Xa(De),vo(De.parser)},htmlBuilder:ji,mathmlBuilder:Ei}),Qt("\\nonumber","\\gdef\\@eqnsw{0}"),Qt("\\notag","\\nonumber"),lr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(De,qe){throw new q(De.funcName+" valid only within array environment")}});var Gs=wo,Ea=Gs;lr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];if(xt.type!=="ordgroup")throw new q("Invalid environment name",xt);for(var Rt="",qt=0;qt<xt.body.length;++qt)Rt+=On(xt.body[qt],"textord").text;if(at==="\\begin"){if(!Ea.hasOwnProperty(Rt))throw new q("No such environment: "+Rt,xt);var Kt=Ea[Rt],rr=We.parseArguments("\\begin{"+Rt+"}",Kt),mr=rr.args,Fr=rr.optArgs,Vr={mode:We.mode,envName:Rt,parser:We},zr=Kt.handler(Vr,mr,Fr);We.expect("\\end",!1);var Hr=We.nextToken,rn=On(We.parseFunction(),"environment");if(rn.name!==Rt)throw new q("Mismatch: \\begin{"+Rt+"} matched by \\end{"+rn.name+"}",Hr);return zr}return{type:"environment",mode:We.mode,name:Rt,nameGroup:xt}}});var Ca=function(De,qe){var We=De.font,at=qe.withFont(We);return vn(De.body,at)},Gi=function(De,qe){var We=De.font,at=qe.withFont(We);return Kn(De.body,at)},qa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};lr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=sn(qe[0]),Rt=at;return Rt in qa&&(Rt=qa[Rt]),{type:"font",mode:We.mode,font:Rt.slice(1),body:xt}},htmlBuilder:Ca,mathmlBuilder:Gi}),lr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=qe[0],xt=J.isCharacterBox(at);return{type:"mclass",mode:We.mode,mclass:cs(at),body:[{type:"font",mode:We.mode,font:"boldsymbol",body:at}],isCharacterBox:xt}}}),lr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=De.breakOnTokenText,Rt=We.mode,qt=We.parseExpression(!0,xt),Kt="math"+at.slice(1);return{type:"font",mode:Rt,font:Kt,body:{type:"ordgroup",mode:We.mode,body:qt}}},htmlBuilder:Ca,mathmlBuilder:Gi});var $s=function(De,qe){var We=qe;return De==="display"?We=We.id>=Ae.SCRIPT.id?We.text():Ae.DISPLAY:De==="text"&&We.size===Ae.DISPLAY.size?We=Ae.TEXT:De==="script"?We=Ae.SCRIPT:De==="scriptscript"&&(We=Ae.SCRIPTSCRIPT),We},ua=function(De,qe){var We=$s(De.size,qe.style),at=We.fracNum(),xt=We.fracDen(),Rt;Rt=qe.havingStyle(at);var qt=vn(De.numer,Rt,qe);if(De.continued){var Kt=8.5/qe.fontMetrics().ptPerEm,rr=3.5/qe.fontMetrics().ptPerEm;qt.height=qt.height<Kt?Kt:qt.height,qt.depth=qt.depth<rr?rr:qt.depth}Rt=qe.havingStyle(xt);var mr=vn(De.denom,Rt,qe),Fr,Vr,zr;De.hasBarLine?(De.barSize?(Vr=Pt(De.barSize,qe),Fr=Ir.makeLineSpan("frac-line",qe,Vr)):Fr=Ir.makeLineSpan("frac-line",qe),Vr=Fr.height,zr=Fr.height):(Fr=null,Vr=0,zr=qe.fontMetrics().defaultRuleThickness);var Hr,rn,ln;We.size===Ae.DISPLAY.size||De.size==="display"?(Hr=qe.fontMetrics().num1,Vr>0?rn=3*zr:rn=7*zr,ln=qe.fontMetrics().denom1):(Vr>0?(Hr=qe.fontMetrics().num2,rn=zr):(Hr=qe.fontMetrics().num3,rn=3*zr),ln=qe.fontMetrics().denom2);var mn;if(Fr){var An=qe.fontMetrics().axisHeight;Hr-qt.depth-(An+.5*Vr)<rn&&(Hr+=rn-(Hr-qt.depth-(An+.5*Vr))),An-.5*Vr-(mr.height-ln)<rn&&(ln+=rn-(An-.5*Vr-(mr.height-ln)));var qn=-(An-.5*Vr);mn=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:mr,shift:ln},{type:"elem",elem:Fr,shift:qn},{type:"elem",elem:qt,shift:-Hr}]},qe)}else{var xn=Hr-qt.depth-(mr.height-ln);xn<rn&&(Hr+=.5*(rn-xn),ln+=.5*(rn-xn)),mn=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:mr,shift:ln},{type:"elem",elem:qt,shift:-Hr}]},qe)}Rt=qe.havingStyle(We),mn.height*=Rt.sizeMultiplier/qe.sizeMultiplier,mn.depth*=Rt.sizeMultiplier/qe.sizeMultiplier;var Pn;We.size===Ae.DISPLAY.size?Pn=qe.fontMetrics().delim1:We.size===Ae.SCRIPTSCRIPT.size?Pn=qe.havingStyle(Ae.SCRIPT).fontMetrics().delim2:Pn=qe.fontMetrics().delim2;var Xn,Vn;return De.leftDelim==null?Xn=In(qe,["mopen"]):Xn=Wi.customSizedDelim(De.leftDelim,Pn,!0,qe.havingStyle(We),De.mode,["mopen"]),De.continued?Vn=Ir.makeSpan([]):De.rightDelim==null?Vn=In(qe,["mclose"]):Vn=Wi.customSizedDelim(De.rightDelim,Pn,!0,qe.havingStyle(We),De.mode,["mclose"]),Ir.makeSpan(["mord"].concat(Rt.sizingClasses(qe)),[Xn,Ir.makeSpan(["mfrac"],[mn]),Vn],qe)},Di=function(De,qe){var We=new Qr.MathNode("mfrac",[Kn(De.numer,qe),Kn(De.denom,qe)]);if(!De.hasBarLine)We.setAttribute("linethickness","0px");else if(De.barSize){var at=Pt(De.barSize,qe);We.setAttribute("linethickness",Nt(at))}var xt=$s(De.size,qe.style);if(xt.size!==qe.style.size){We=new Qr.MathNode("mstyle",[We]);var Rt=xt.size===Ae.DISPLAY.size?"true":"false";We.setAttribute("displaystyle",Rt),We.setAttribute("scriptlevel","0")}if(De.leftDelim!=null||De.rightDelim!=null){var qt=[];if(De.leftDelim!=null){var Kt=new Qr.MathNode("mo",[new Qr.TextNode(De.leftDelim.replace("\\",""))]);Kt.setAttribute("fence","true"),qt.push(Kt)}if(qt.push(We),De.rightDelim!=null){var rr=new Qr.MathNode("mo",[new Qr.TextNode(De.rightDelim.replace("\\",""))]);rr.setAttribute("fence","true"),qt.push(rr)}return Zs(qt)}return We};lr({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0],Rt=qe[1],qt,Kt=null,rr=null,mr="auto";switch(at){case"\\dfrac":case"\\frac":case"\\tfrac":qt=!0;break;case"\\\\atopfrac":qt=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":qt=!1,Kt="(",rr=")";break;case"\\\\bracefrac":qt=!1,Kt="\\{",rr="\\}";break;case"\\\\brackfrac":qt=!1,Kt="[",rr="]";break;default:throw new Error("Unrecognized genfrac command")}switch(at){case"\\dfrac":case"\\dbinom":mr="display";break;case"\\tfrac":case"\\tbinom":mr="text";break}return{type:"genfrac",mode:We.mode,continued:!1,numer:xt,denom:Rt,hasBarLine:qt,leftDelim:Kt,rightDelim:rr,size:mr,barSize:null}},htmlBuilder:ua,mathmlBuilder:Di}),lr({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(De,qe){var We=De.parser;De.funcName;var at=qe[0],xt=qe[1];return{type:"genfrac",mode:We.mode,continued:!0,numer:at,denom:xt,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),lr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(De){var qe=De.parser,We=De.funcName,at=De.token,xt;switch(We){case"\\over":xt="\\frac";break;case"\\choose":xt="\\binom";break;case"\\atop":xt="\\\\atopfrac";break;case"\\brace":xt="\\\\bracefrac";break;case"\\brack":xt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:qe.mode,replaceWith:xt,token:at}}});var Aa=["display","text","script","scriptscript"],_i=function(De){var qe=null;return De.length>0&&(qe=De,qe=qe==="."?null:qe),qe};lr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(De,qe){var We=De.parser,at=qe[4],xt=qe[5],Rt=sn(qe[0]),qt=Rt.type==="atom"&&Rt.family==="open"?_i(Rt.text):null,Kt=sn(qe[1]),rr=Kt.type==="atom"&&Kt.family==="close"?_i(Kt.text):null,mr=On(qe[2],"size"),Fr,Vr=null;mr.isBlank?Fr=!0:(Vr=mr.value,Fr=Vr.number>0);var zr="auto",Hr=qe[3];if(Hr.type==="ordgroup"){if(Hr.body.length>0){var rn=On(Hr.body[0],"textord");zr=Aa[Number(rn.text)]}}else Hr=On(Hr,"textord"),zr=Aa[Number(Hr.text)];return{type:"genfrac",mode:We.mode,numer:at,denom:xt,continued:!1,hasBarLine:Fr,barSize:Vr,leftDelim:qt,rightDelim:rr,size:zr}},htmlBuilder:ua,mathmlBuilder:Di}),lr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(De,qe){var We=De.parser;De.funcName;var at=De.token;return{type:"infix",mode:We.mode,replaceWith:"\\\\abovefrac",size:On(qe[0],"size").value,token:at}}}),lr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(De,qe){var We=De.parser;De.funcName;var at=qe[0],xt=ie(On(qe[1],"infix").size),Rt=qe[2],qt=xt.number>0;return{type:"genfrac",mode:We.mode,numer:at,denom:Rt,continued:!1,hasBarLine:qt,barSize:xt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ua,mathmlBuilder:Di});var Pa=function(De,qe){var We=qe.style,at,xt;De.type==="supsub"?(at=De.sup?vn(De.sup,qe.havingStyle(We.sup()),qe):vn(De.sub,qe.havingStyle(We.sub()),qe),xt=On(De.base,"horizBrace")):xt=On(De,"horizBrace");var Rt=vn(xt.base,qe.havingBaseStyle(Ae.DISPLAY)),qt=Bi.svgSpan(xt,qe),Kt;if(xt.isOver?(Kt=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rt},{type:"kern",size:.1},{type:"elem",elem:qt}]},qe),Kt.children[0].children[0].children[1].classes.push("svg-align")):(Kt=Ir.makeVList({positionType:"bottom",positionData:Rt.depth+.1+qt.height,children:[{type:"elem",elem:qt},{type:"kern",size:.1},{type:"elem",elem:Rt}]},qe),Kt.children[0].children[0].children[0].classes.push("svg-align")),at){var rr=Ir.makeSpan(["mord",xt.isOver?"mover":"munder"],[Kt],qe);xt.isOver?Kt=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rr},{type:"kern",size:.2},{type:"elem",elem:at}]},qe):Kt=Ir.makeVList({positionType:"bottom",positionData:rr.depth+.2+at.height+at.depth,children:[{type:"elem",elem:at},{type:"kern",size:.2},{type:"elem",elem:rr}]},qe)}return Ir.makeSpan(["mord",xt.isOver?"mover":"munder"],[Kt],qe)},Ro=function(De,qe){var We=Bi.mathMLnode(De.label);return new Qr.MathNode(De.isOver?"mover":"munder",[Kn(De.base,qe),We])};lr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=De.funcName;return{type:"horizBrace",mode:We.mode,label:at,isOver:/^\\over/.test(at),base:qe[0]}},htmlBuilder:Pa,mathmlBuilder:Ro}),lr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(De,qe){var We=De.parser,at=qe[1],xt=On(qe[0],"url").url;return We.settings.isTrusted({command:"\\href",url:xt})?{type:"href",mode:We.mode,href:xt,body:Kr(at)}:We.formatUnsupportedCmd("\\href")},htmlBuilder:function(De,qe){var We=kn(De.body,qe,!1);return Ir.makeAnchor(De.href,[],We,qe)},mathmlBuilder:function(De,qe){var We=Da(De.body,qe);return We instanceof Hn||(We=new Hn("mrow",[We])),We.setAttribute("href",De.href),We}}),lr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(De,qe){var We=De.parser,at=On(qe[0],"url").url;if(!We.settings.isTrusted({command:"\\url",url:at}))return We.formatUnsupportedCmd("\\url");for(var xt=[],Rt=0;Rt<at.length;Rt++){var qt=at[Rt];qt==="~"&&(qt="\\textasciitilde"),xt.push({type:"textord",mode:"text",text:qt})}var Kt={type:"text",mode:We.mode,font:"\\texttt",body:xt};return{type:"href",mode:We.mode,href:at,body:Kr(Kt)}}}),lr({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(De,qe){var We=De.parser;return{type:"hbox",mode:We.mode,body:Kr(qe[0])}},htmlBuilder:function(De,qe){var We=kn(De.body,qe,!1);return Ir.makeFragment(We)},mathmlBuilder:function(De,qe){return new Qr.MathNode("mrow",ti(De.body,qe))}}),lr({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(De,qe){var We=De.parser,at=De.funcName;De.token;var xt=On(qe[0],"raw").string,Rt=qe[1];We.settings.strict&&We.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var qt,Kt={};switch(at){case"\\htmlClass":Kt.class=xt,qt={command:"\\htmlClass",class:xt};break;case"\\htmlId":Kt.id=xt,qt={command:"\\htmlId",id:xt};break;case"\\htmlStyle":Kt.style=xt,qt={command:"\\htmlStyle",style:xt};break;case"\\htmlData":{for(var rr=xt.split(","),mr=0;mr<rr.length;mr++){var Fr=rr[mr].split("=");if(Fr.length!==2)throw new q("Error parsing key-value for \\htmlData");Kt["data-"+Fr[0].trim()]=Fr[1].trim()}qt={command:"\\htmlData",attributes:Kt};break}default:throw new Error("Unrecognized html command")}return We.settings.isTrusted(qt)?{type:"html",mode:We.mode,attributes:Kt,body:Kr(Rt)}:We.formatUnsupportedCmd(at)},htmlBuilder:function(De,qe){var We=kn(De.body,qe,!1),at=["enclosing"];De.attributes.class&&at.push.apply(at,De.attributes.class.trim().split(/\s+/));var xt=Ir.makeSpan(at,We,qe);for(var Rt in De.attributes)Rt!=="class"&&De.attributes.hasOwnProperty(Rt)&&xt.setAttribute(Rt,De.attributes[Rt]);return xt},mathmlBuilder:function(De,qe){return Da(De.body,qe)}}),lr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(De,qe){var We=De.parser;return{type:"htmlmathml",mode:We.mode,html:Kr(qe[0]),mathml:Kr(qe[1])}},htmlBuilder:function(De,qe){var We=kn(De.html,qe,!1);return Ir.makeFragment(We)},mathmlBuilder:function(De,qe){return Da(De.mathml,qe)}});var qs=function(De){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(De))return{number:+De,unit:"bp"};var qe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(De);if(!qe)throw new q("Invalid size: '"+De+"' in \\includegraphics");var We={number:+(qe[1]+qe[2]),unit:qe[3]};if(!wt(We))throw new q("Invalid unit: '"+We.unit+"' in \\includegraphics.");return We};lr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(De,qe,We){var at=De.parser,xt={number:0,unit:"em"},Rt={number:.9,unit:"em"},qt={number:0,unit:"em"},Kt="";if(We[0])for(var rr=On(We[0],"raw").string,mr=rr.split(","),Fr=0;Fr<mr.length;Fr++){var Vr=mr[Fr].split("=");if(Vr.length===2){var zr=Vr[1].trim();switch(Vr[0].trim()){case"alt":Kt=zr;break;case"width":xt=qs(zr);break;case"height":Rt=qs(zr);break;case"totalheight":qt=qs(zr);break;default:throw new q("Invalid key: '"+Vr[0]+"' in \\includegraphics.")}}}var Hr=On(qe[0],"url").url;return Kt===""&&(Kt=Hr,Kt=Kt.replace(/^.*[\\/]/,""),Kt=Kt.substring(0,Kt.lastIndexOf("."))),at.settings.isTrusted({command:"\\includegraphics",url:Hr})?{type:"includegraphics",mode:at.mode,alt:Kt,width:xt,height:Rt,totalheight:qt,src:Hr}:at.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(De,qe){var We=Pt(De.height,qe),at=0;De.totalheight.number>0&&(at=Pt(De.totalheight,qe)-We);var xt=0;De.width.number>0&&(xt=Pt(De.width,qe));var Rt={height:Nt(We+at)};xt>0&&(Rt.width=Nt(xt)),at>0&&(Rt.verticalAlign=Nt(-at));var qt=new Jt(De.src,De.alt,Rt);return qt.height=We,qt.depth=at,qt},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mglyph",[]);We.setAttribute("alt",De.alt);var at=Pt(De.height,qe),xt=0;if(De.totalheight.number>0&&(xt=Pt(De.totalheight,qe)-at,We.setAttribute("valign",Nt(-xt))),We.setAttribute("height",Nt(at+xt)),De.width.number>0){var Rt=Pt(De.width,qe);We.setAttribute("width",Nt(Rt))}return We.setAttribute("src",De.src),We}}),lr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=On(qe[0],"size");if(We.settings.strict){var Rt=at[1]==="m",qt=xt.value.unit==="mu";Rt?(qt||We.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+at+" supports only mu units, "+("not "+xt.value.unit+" units")),We.mode!=="math"&&We.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+at+" works only in math mode")):qt&&We.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+at+" doesn't support mu units")}return{type:"kern",mode:We.mode,dimension:xt.value}},htmlBuilder:function(De,qe){return Ir.makeGlue(De.dimension,qe)},mathmlBuilder:function(De,qe){var We=Pt(De.dimension,qe);return new Qr.SpaceNode(We)}}),lr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"lap",mode:We.mode,alignment:at.slice(5),body:xt}},htmlBuilder:function(De,qe){var We;De.alignment==="clap"?(We=Ir.makeSpan([],[vn(De.body,qe)]),We=Ir.makeSpan(["inner"],[We],qe)):We=Ir.makeSpan(["inner"],[vn(De.body,qe)]);var at=Ir.makeSpan(["fix"],[]),xt=Ir.makeSpan([De.alignment],[We,at],qe),Rt=Ir.makeSpan(["strut"]);return Rt.style.height=Nt(xt.height+xt.depth),xt.depth&&(Rt.style.verticalAlign=Nt(-xt.depth)),xt.children.unshift(Rt),xt=Ir.makeSpan(["thinbox"],[xt],qe),Ir.makeSpan(["mord","vbox"],[xt],qe)},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mpadded",[Kn(De.body,qe)]);if(De.alignment!=="rlap"){var at=De.alignment==="llap"?"-1":"-0.5";We.setAttribute("lspace",at+"width")}return We.setAttribute("width","0px"),We}}),lr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(De,qe){var We=De.funcName,at=De.parser,xt=at.mode;at.switchMode("math");var Rt=We==="\\("?"\\)":"$",qt=at.parseExpression(!1,Rt);return at.expect(Rt),at.switchMode(xt),{type:"styling",mode:at.mode,style:"text",body:qt}}}),lr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(De,qe){throw new q("Mismatched "+De.funcName)}});var _s=function(De,qe){switch(qe.style.size){case Ae.DISPLAY.size:return De.display;case Ae.TEXT.size:return De.text;case Ae.SCRIPT.size:return De.script;case Ae.SCRIPTSCRIPT.size:return De.scriptscript;default:return De.text}};lr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(De,qe){var We=De.parser;return{type:"mathchoice",mode:We.mode,display:Kr(qe[0]),text:Kr(qe[1]),script:Kr(qe[2]),scriptscript:Kr(qe[3])}},htmlBuilder:function(De,qe){var We=_s(De,qe),at=kn(We,qe,!1);return Ir.makeFragment(at)},mathmlBuilder:function(De,qe){var We=_s(De,qe);return Da(We,qe)}});var Vs=function(De,qe,We,at,xt,Rt,qt){De=Ir.makeSpan([],[De]);var Kt=We&&J.isCharacterBox(We),rr,mr;if(qe){var Fr=vn(qe,at.havingStyle(xt.sup()),at);mr={elem:Fr,kern:Math.max(at.fontMetrics().bigOpSpacing1,at.fontMetrics().bigOpSpacing3-Fr.depth)}}if(We){var Vr=vn(We,at.havingStyle(xt.sub()),at);rr={elem:Vr,kern:Math.max(at.fontMetrics().bigOpSpacing2,at.fontMetrics().bigOpSpacing4-Vr.height)}}var zr;if(mr&&rr){var Hr=at.fontMetrics().bigOpSpacing5+rr.elem.height+rr.elem.depth+rr.kern+De.depth+qt;zr=Ir.makeVList({positionType:"bottom",positionData:Hr,children:[{type:"kern",size:at.fontMetrics().bigOpSpacing5},{type:"elem",elem:rr.elem,marginLeft:Nt(-Rt)},{type:"kern",size:rr.kern},{type:"elem",elem:De},{type:"kern",size:mr.kern},{type:"elem",elem:mr.elem,marginLeft:Nt(Rt)},{type:"kern",size:at.fontMetrics().bigOpSpacing5}]},at)}else if(rr){var rn=De.height-qt;zr=Ir.makeVList({positionType:"top",positionData:rn,children:[{type:"kern",size:at.fontMetrics().bigOpSpacing5},{type:"elem",elem:rr.elem,marginLeft:Nt(-Rt)},{type:"kern",size:rr.kern},{type:"elem",elem:De}]},at)}else if(mr){var ln=De.depth+qt;zr=Ir.makeVList({positionType:"bottom",positionData:ln,children:[{type:"elem",elem:De},{type:"kern",size:mr.kern},{type:"elem",elem:mr.elem,marginLeft:Nt(Rt)},{type:"kern",size:at.fontMetrics().bigOpSpacing5}]},at)}else return De;var mn=[zr];if(rr&&Rt!==0&&!Kt){var xn=Ir.makeSpan(["mspace"],[],at);xn.style.marginRight=Nt(Rt),mn.unshift(xn)}return Ir.makeSpan(["mop","op-limits"],mn,at)},ho=["\\smallint"],Va=function(De,qe){var We,at,xt=!1,Rt;De.type==="supsub"?(We=De.sup,at=De.sub,Rt=On(De.base,"op"),xt=!0):Rt=On(De,"op");var qt=qe.style,Kt=!1;qt.size===Ae.DISPLAY.size&&Rt.symbol&&!J.contains(ho,Rt.name)&&(Kt=!0);var rr;if(Rt.symbol){var mr=Kt?"Size2-Regular":"Size1-Regular",Fr="";if((Rt.name==="\\oiint"||Rt.name==="\\oiiint")&&(Fr=Rt.name.slice(1),Rt.name=Fr==="oiint"?"\\iint":"\\iiint"),rr=Ir.makeSymbol(Rt.name,mr,"math",qe,["mop","op-symbol",Kt?"large-op":"small-op"]),Fr.length>0){var Vr=rr.italic,zr=Ir.staticSvg(Fr+"Size"+(Kt?"2":"1"),qe);rr=Ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:rr,shift:0},{type:"elem",elem:zr,shift:Kt?.08:0}]},qe),Rt.name="\\"+Fr,rr.classes.unshift("mop"),rr.italic=Vr}}else if(Rt.body){var Hr=kn(Rt.body,qe,!0);Hr.length===1&&Hr[0]instanceof Bt?(rr=Hr[0],rr.classes[0]="mop"):rr=Ir.makeSpan(["mop"],Hr,qe)}else{for(var rn=[],ln=1;ln<Rt.name.length;ln++)rn.push(Ir.mathsym(Rt.name[ln],Rt.mode,qe));rr=Ir.makeSpan(["mop"],rn,qe)}var mn=0,xn=0;return(rr instanceof Bt||Rt.name==="\\oiint"||Rt.name==="\\oiiint")&&!Rt.suppressBaseShift&&(mn=(rr.height-rr.depth)/2-qe.fontMetrics().axisHeight,xn=rr.italic),xt?Vs(rr,We,at,qe,qt,xn,mn):(mn&&(rr.style.position="relative",rr.style.top=Nt(mn)),rr)},Ka=function(De,qe){var We;if(De.symbol)We=new Hn("mo",[gi(De.name,De.mode)]),J.contains(ho,De.name)&&We.setAttribute("largeop","false");else if(De.body)We=new Hn("mo",ti(De.body,qe));else{We=new Hn("mi",[new Ni(De.name.slice(1))]);var at=new Hn("mo",[gi("","text")]);De.parentIsSupSub?We=new Hn("mrow",[We,at]):We=vi([We,at])}return We},Qa={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","":"\\bigvee","⋂":"\\bigcap","":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};lr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","","⋂","","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=at;return xt.length===1&&(xt=Qa[xt]),{type:"op",mode:We.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:xt}},htmlBuilder:Va,mathmlBuilder:Ka}),lr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(De,qe){var We=De.parser,at=qe[0];return{type:"op",mode:We.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Kr(at)}},htmlBuilder:Va,mathmlBuilder:Ka});var qo={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};lr({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(De){var qe=De.parser,We=De.funcName;return{type:"op",mode:qe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:We}},htmlBuilder:Va,mathmlBuilder:Ka}),lr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(De){var qe=De.parser,We=De.funcName;return{type:"op",mode:qe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:We}},htmlBuilder:Va,mathmlBuilder:Ka}),lr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(De){var qe=De.parser,We=De.funcName,at=We;return at.length===1&&(at=qo[at]),{type:"op",mode:qe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:at}},htmlBuilder:Va,mathmlBuilder:Ka});var fo=function(De,qe){var We,at,xt=!1,Rt;De.type==="supsub"?(We=De.sup,at=De.sub,Rt=On(De.base,"operatorname"),xt=!0):Rt=On(De,"operatorname");var qt;if(Rt.body.length>0){for(var Kt=Rt.body.map(function(Vr){var zr=Vr.text;return typeof zr=="string"?{type:"textord",mode:Vr.mode,text:zr}:Vr}),rr=kn(Kt,qe.withFont("mathrm"),!0),mr=0;mr<rr.length;mr++){var Fr=rr[mr];Fr instanceof Bt&&(Fr.text=Fr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}qt=Ir.makeSpan(["mop"],rr,qe)}else qt=Ir.makeSpan(["mop"],[],qe);return xt?Vs(qt,We,at,qe,qe.style,0,0):qt},yn=function(De,qe){for(var We=ti(De.body,qe.withFont("mathrm")),at=!0,xt=0;xt<We.length;xt++){var Rt=We[xt];if(!(Rt instanceof Qr.SpaceNode))if(Rt instanceof Qr.MathNode)switch(Rt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var qt=Rt.children[0];Rt.children.length===1&&qt instanceof Qr.TextNode?qt.text=qt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):at=!1;break}default:at=!1}else at=!1}if(at){var Kt=We.map(function(Fr){return Fr.toText()}).join("");We=[new Qr.TextNode(Kt)]}var rr=new Qr.MathNode("mi",We);rr.setAttribute("mathvariant","normal");var mr=new Qr.MathNode("mo",[gi("","text")]);return De.parentIsSupSub?new Qr.MathNode("mrow",[rr,mr]):Qr.newDocumentFragment([rr,mr])};lr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"operatorname",mode:We.mode,body:Kr(xt),alwaysHandleSupSub:at==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:fo,mathmlBuilder:yn}),Qt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),qr({type:"ordgroup",htmlBuilder:function(De,qe){return De.semisimple?Ir.makeFragment(kn(De.body,qe,!1)):Ir.makeSpan(["mord"],kn(De.body,qe,!0),qe)},mathmlBuilder:function(De,qe){return Da(De.body,qe,!0)}}),lr({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(De,qe){var We=De.parser,at=qe[0];return{type:"overline",mode:We.mode,body:at}},htmlBuilder:function(De,qe){var We=vn(De.body,qe.havingCrampedStyle()),at=Ir.makeLineSpan("overline-line",qe),xt=qe.fontMetrics().defaultRuleThickness,Rt=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:We},{type:"kern",size:3*xt},{type:"elem",elem:at},{type:"kern",size:xt}]},qe);return Ir.makeSpan(["mord","overline"],[Rt],qe)},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mo",[new Qr.TextNode("‾")]);We.setAttribute("stretchy","true");var at=new Qr.MathNode("mover",[Kn(De.body,qe),We]);return at.setAttribute("accent","true"),at}}),lr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=qe[0];return{type:"phantom",mode:We.mode,body:Kr(at)}},htmlBuilder:function(De,qe){var We=kn(De.body,qe.withPhantom(),!1);return Ir.makeFragment(We)},mathmlBuilder:function(De,qe){var We=ti(De.body,qe);return new Qr.MathNode("mphantom",We)}}),lr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=qe[0];return{type:"hphantom",mode:We.mode,body:at}},htmlBuilder:function(De,qe){var We=Ir.makeSpan([],[vn(De.body,qe.withPhantom())]);if(We.height=0,We.depth=0,We.children)for(var at=0;at<We.children.length;at++)We.children[at].height=0,We.children[at].depth=0;return We=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:We}]},qe),Ir.makeSpan(["mord"],[We],qe)},mathmlBuilder:function(De,qe){var We=ti(Kr(De.body),qe),at=new Qr.MathNode("mphantom",We),xt=new Qr.MathNode("mpadded",[at]);return xt.setAttribute("height","0px"),xt.setAttribute("depth","0px"),xt}}),lr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=qe[0];return{type:"vphantom",mode:We.mode,body:at}},htmlBuilder:function(De,qe){var We=Ir.makeSpan(["inner"],[vn(De.body,qe.withPhantom())]),at=Ir.makeSpan(["fix"],[]);return Ir.makeSpan(["mord","rlap"],[We,at],qe)},mathmlBuilder:function(De,qe){var We=ti(Kr(De.body),qe),at=new Qr.MathNode("mphantom",We),xt=new Qr.MathNode("mpadded",[at]);return xt.setAttribute("width","0px"),xt}}),lr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(De,qe){var We=De.parser,at=On(qe[0],"size").value,xt=qe[1];return{type:"raisebox",mode:We.mode,dy:at,body:xt}},htmlBuilder:function(De,qe){var We=vn(De.body,qe),at=Pt(De.dy,qe);return Ir.makeVList({positionType:"shift",positionData:-at,children:[{type:"elem",elem:We}]},qe)},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mpadded",[Kn(De.body,qe)]),at=De.dy.number+De.dy.unit;return We.setAttribute("voffset",at),We}}),lr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler:function(De){var qe=De.parser;return{type:"internal",mode:qe.mode}}}),lr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(De,qe,We){var at=De.parser,xt=We[0],Rt=On(qe[0],"size"),qt=On(qe[1],"size");return{type:"rule",mode:at.mode,shift:xt&&On(xt,"size").value,width:Rt.value,height:qt.value}},htmlBuilder:function(De,qe){var We=Ir.makeSpan(["mord","rule"],[],qe),at=Pt(De.width,qe),xt=Pt(De.height,qe),Rt=De.shift?Pt(De.shift,qe):0;return We.style.borderRightWidth=Nt(at),We.style.borderTopWidth=Nt(xt),We.style.bottom=Nt(Rt),We.width=at,We.height=xt+Rt,We.depth=-Rt,We.maxFontSize=xt*1.125*qe.sizeMultiplier,We},mathmlBuilder:function(De,qe){var We=Pt(De.width,qe),at=Pt(De.height,qe),xt=De.shift?Pt(De.shift,qe):0,Rt=qe.color&&qe.getColor()||"black",qt=new Qr.MathNode("mspace");qt.setAttribute("mathbackground",Rt),qt.setAttribute("width",Nt(We)),qt.setAttribute("height",Nt(at));var Kt=new Qr.MathNode("mpadded",[qt]);return xt>=0?Kt.setAttribute("height",Nt(xt)):(Kt.setAttribute("height",Nt(xt)),Kt.setAttribute("depth",Nt(-xt))),Kt.setAttribute("voffset",Nt(xt)),Kt}});function bs(Tt,De,qe){for(var We=kn(Tt,De,!1),at=De.sizeMultiplier/qe.sizeMultiplier,xt=0;xt<We.length;xt++){var Rt=We[xt].classes.indexOf("sizing");Rt<0?Array.prototype.push.apply(We[xt].classes,De.sizingClasses(qe)):We[xt].classes[Rt+1]==="reset-size"+De.size&&(We[xt].classes[Rt+1]="reset-size"+qe.size),We[xt].height*=at,We[xt].depth*=at}return Ir.makeFragment(We)}var zs=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ta=function(De,qe){var We=qe.havingSize(De.size);return bs(De.body,We,qe)};lr({type:"sizing",names:zs,props:{numArgs:0,allowedInText:!0},handler:function(De,qe){var We=De.breakOnTokenText,at=De.funcName,xt=De.parser,Rt=xt.parseExpression(!1,We);return{type:"sizing",mode:xt.mode,size:zs.indexOf(at)+1,body:Rt}},htmlBuilder:Ta,mathmlBuilder:function(De,qe){var We=qe.havingSize(De.size),at=ti(De.body,We),xt=new Qr.MathNode("mstyle",at);return xt.setAttribute("mathsize",Nt(We.sizeMultiplier)),xt}}),lr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(De,qe,We){var at=De.parser,xt=!1,Rt=!1,qt=We[0]&&On(We[0],"ordgroup");if(qt)for(var Kt="",rr=0;rr<qt.body.length;++rr){var mr=qt.body[rr];if(Kt=mr.text,Kt==="t")xt=!0;else if(Kt==="b")Rt=!0;else{xt=!1,Rt=!1;break}}else xt=!0,Rt=!0;var Fr=qe[0];return{type:"smash",mode:at.mode,body:Fr,smashHeight:xt,smashDepth:Rt}},htmlBuilder:function(De,qe){var We=Ir.makeSpan([],[vn(De.body,qe)]);if(!De.smashHeight&&!De.smashDepth)return We;if(De.smashHeight&&(We.height=0,We.children))for(var at=0;at<We.children.length;at++)We.children[at].height=0;if(De.smashDepth&&(We.depth=0,We.children))for(var xt=0;xt<We.children.length;xt++)We.children[xt].depth=0;var Rt=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:We}]},qe);return Ir.makeSpan(["mord"],[Rt],qe)},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mpadded",[Kn(De.body,qe)]);return De.smashHeight&&We.setAttribute("height","0px"),De.smashDepth&&We.setAttribute("depth","0px"),We}}),lr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(De,qe,We){var at=De.parser,xt=We[0],Rt=qe[0];return{type:"sqrt",mode:at.mode,body:Rt,index:xt}},htmlBuilder:function(De,qe){var We=vn(De.body,qe.havingCrampedStyle());We.height===0&&(We.height=qe.fontMetrics().xHeight),We=Ir.wrapFragment(We,qe);var at=qe.fontMetrics(),xt=at.defaultRuleThickness,Rt=xt;qe.style.id<Ae.TEXT.id&&(Rt=qe.fontMetrics().xHeight);var qt=xt+Rt/4,Kt=We.height+We.depth+qt+xt,rr=Wi.sqrtImage(Kt,qe),mr=rr.span,Fr=rr.ruleWidth,Vr=rr.advanceWidth,zr=mr.height-Fr;zr>We.height+We.depth+qt&&(qt=(qt+zr-We.height-We.depth)/2);var Hr=mr.height-We.height-qt-Fr;We.style.paddingLeft=Nt(Vr);var rn=Ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:We,wrapperClasses:["svg-align"]},{type:"kern",size:-(We.height+Hr)},{type:"elem",elem:mr},{type:"kern",size:Fr}]},qe);if(De.index){var ln=qe.havingStyle(Ae.SCRIPTSCRIPT),mn=vn(De.index,ln,qe),xn=.6*(rn.height-rn.depth),An=Ir.makeVList({positionType:"shift",positionData:-xn,children:[{type:"elem",elem:mn}]},qe),qn=Ir.makeSpan(["root"],[An]);return Ir.makeSpan(["mord","sqrt"],[qn,rn],qe)}else return Ir.makeSpan(["mord","sqrt"],[rn],qe)},mathmlBuilder:function(De,qe){var We=De.body,at=De.index;return at?new Qr.MathNode("mroot",[Kn(We,qe),Kn(at,qe)]):new Qr.MathNode("msqrt",[Kn(We,qe)])}});var ys={display:Ae.DISPLAY,text:Ae.TEXT,script:Ae.SCRIPT,scriptscript:Ae.SCRIPTSCRIPT};lr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(De,qe){var We=De.breakOnTokenText,at=De.funcName,xt=De.parser,Rt=xt.parseExpression(!0,We),qt=at.slice(1,at.length-5);return{type:"styling",mode:xt.mode,style:qt,body:Rt}},htmlBuilder:function(De,qe){var We=ys[De.style],at=qe.havingStyle(We).withFont("");return bs(De.body,at,qe)},mathmlBuilder:function(De,qe){var We=ys[De.style],at=qe.havingStyle(We),xt=ti(De.body,at),Rt=new Qr.MathNode("mstyle",xt),qt={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Kt=qt[De.style];return Rt.setAttribute("scriptlevel",Kt[0]),Rt.setAttribute("displaystyle",Kt[1]),Rt}});var Fa=function(De,qe){var We=De.base;if(We)if(We.type==="op"){var at=We.limits&&(qe.style.size===Ae.DISPLAY.size||We.alwaysHandleSupSub);return at?Va:null}else if(We.type==="operatorname"){var xt=We.alwaysHandleSupSub&&(qe.style.size===Ae.DISPLAY.size||We.limits);return xt?fo:null}else{if(We.type==="accent")return J.isCharacterBox(We.base)?os:null;if(We.type==="horizBrace"){var Rt=!De.sub;return Rt===We.isOver?Pa:null}else return null}else return null};qr({type:"supsub",htmlBuilder:function(De,qe){var We=Fa(De,qe);if(We)return We(De,qe);var at=De.base,xt=De.sup,Rt=De.sub,qt=vn(at,qe),Kt,rr,mr=qe.fontMetrics(),Fr=0,Vr=0,zr=at&&J.isCharacterBox(at);if(xt){var Hr=qe.havingStyle(qe.style.sup());Kt=vn(xt,Hr,qe),zr||(Fr=qt.height-Hr.fontMetrics().supDrop*Hr.sizeMultiplier/qe.sizeMultiplier)}if(Rt){var rn=qe.havingStyle(qe.style.sub());rr=vn(Rt,rn,qe),zr||(Vr=qt.depth+rn.fontMetrics().subDrop*rn.sizeMultiplier/qe.sizeMultiplier)}var ln;qe.style===Ae.DISPLAY?ln=mr.sup1:qe.style.cramped?ln=mr.sup3:ln=mr.sup2;var mn=qe.sizeMultiplier,xn=Nt(.5/mr.ptPerEm/mn),An=null;if(rr){var qn=De.base&&De.base.type==="op"&&De.base.name&&(De.base.name==="\\oiint"||De.base.name==="\\oiiint");(qt instanceof Bt||qn)&&(An=Nt(-qt.italic))}var Pn;if(Kt&&rr){Fr=Math.max(Fr,ln,Kt.depth+.25*mr.xHeight),Vr=Math.max(Vr,mr.sub2);var Xn=mr.defaultRuleThickness,Vn=4*Xn;if(Fr-Kt.depth-(rr.height-Vr)<Vn){Vr=Vn-(Fr-Kt.depth)+rr.height;var Qn=.8*mr.xHeight-(Fr-Kt.depth);Qn>0&&(Fr+=Qn,Vr-=Qn)}var ei=[{type:"elem",elem:rr,shift:Vr,marginRight:xn,marginLeft:An},{type:"elem",elem:Kt,shift:-Fr,marginRight:xn}];Pn=Ir.makeVList({positionType:"individualShift",children:ei},qe)}else if(rr){Vr=Math.max(Vr,mr.sub1,rr.height-.8*mr.xHeight);var di=[{type:"elem",elem:rr,marginLeft:An,marginRight:xn}];Pn=Ir.makeVList({positionType:"shift",positionData:Vr,children:di},qe)}else if(Kt)Fr=Math.max(Fr,ln,Kt.depth+.25*mr.xHeight),Pn=Ir.makeVList({positionType:"shift",positionData:-Fr,children:[{type:"elem",elem:Kt,marginRight:xn}]},qe);else throw new Error("supsub must have either sup or sub.");var Zi=Sn(qt,"right")||"mord";return Ir.makeSpan([Zi],[qt,Ir.makeSpan(["msupsub"],[Pn])],qe)},mathmlBuilder:function(De,qe){var We=!1,at,xt;De.base&&De.base.type==="horizBrace"&&(xt=!!De.sup,xt===De.base.isOver&&(We=!0,at=De.base.isOver)),De.base&&(De.base.type==="op"||De.base.type==="operatorname")&&(De.base.parentIsSupSub=!0);var Rt=[Kn(De.base,qe)];De.sub&&Rt.push(Kn(De.sub,qe)),De.sup&&Rt.push(Kn(De.sup,qe));var qt;if(We)qt=at?"mover":"munder";else if(De.sub)if(De.sup){var mr=De.base;mr&&mr.type==="op"&&mr.limits&&qe.style===Ae.DISPLAY||mr&&mr.type==="operatorname"&&mr.alwaysHandleSupSub&&(qe.style===Ae.DISPLAY||mr.limits)?qt="munderover":qt="msubsup"}else{var rr=De.base;rr&&rr.type==="op"&&rr.limits&&(qe.style===Ae.DISPLAY||rr.alwaysHandleSupSub)||rr&&rr.type==="operatorname"&&rr.alwaysHandleSupSub&&(rr.limits||qe.style===Ae.DISPLAY)?qt="munder":qt="msub"}else{var Kt=De.base;Kt&&Kt.type==="op"&&Kt.limits&&(qe.style===Ae.DISPLAY||Kt.alwaysHandleSupSub)||Kt&&Kt.type==="operatorname"&&Kt.alwaysHandleSupSub&&(Kt.limits||qe.style===Ae.DISPLAY)?qt="mover":qt="msup"}return new Qr.MathNode(qt,Rt)}}),qr({type:"atom",htmlBuilder:function(De,qe){return Ir.mathsym(De.text,De.mode,qe,["m"+De.family])},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mo",[gi(De.text,De.mode)]);if(De.family==="bin"){var at=Js(De,qe);at==="bold-italic"&&We.setAttribute("mathvariant",at)}else De.family==="punct"?We.setAttribute("separator","true"):(De.family==="open"||De.family==="close")&&We.setAttribute("stretchy","false");return We}});var za={mi:"italic",mn:"normal",mtext:"normal"};qr({type:"mathord",htmlBuilder:function(De,qe){return Ir.makeOrd(De,qe,"mathord")},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mi",[gi(De.text,De.mode,qe)]),at=Js(De,qe)||"italic";return at!==za[We.type]&&We.setAttribute("mathvariant",at),We}}),qr({type:"textord",htmlBuilder:function(De,qe){return Ir.makeOrd(De,qe,"textord")},mathmlBuilder:function(De,qe){var We=gi(De.text,De.mode,qe),at=Js(De,qe)||"normal",xt;return De.mode==="text"?xt=new Qr.MathNode("mtext",[We]):/[0-9]/.test(De.text)?xt=new Qr.MathNode("mn",[We]):De.text==="\\prime"?xt=new Qr.MathNode("mo",[We]):xt=new Qr.MathNode("mi",[We]),at!==za[xt.type]&&xt.setAttribute("mathvariant",at),xt}});var jn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};qr({type:"spacing",htmlBuilder:function(De,qe){if(wa.hasOwnProperty(De.text)){var We=wa[De.text].className||"";if(De.mode==="text"){var at=Ir.makeOrd(De,qe,"textord");return at.classes.push(We),at}else return Ir.makeSpan(["mspace",We],[Ir.mathsym(De.text,De.mode,qe)],qe)}else{if(jn.hasOwnProperty(De.text))return Ir.makeSpan(["mspace",jn[De.text]],[],qe);throw new q('Unknown type of space "'+De.text+'"')}},mathmlBuilder:function(De,qe){var We;if(wa.hasOwnProperty(De.text))We=new Qr.MathNode("mtext",[new Qr.TextNode(" ")]);else{if(jn.hasOwnProperty(De.text))return new Qr.MathNode("mspace");throw new q('Unknown type of space "'+De.text+'"')}return We}});var Hs=function(){var De=new Qr.MathNode("mtd",[]);return De.setAttribute("width","50%"),De};qr({type:"tag",mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mtable",[new Qr.MathNode("mtr",[Hs(),new Qr.MathNode("mtd",[Da(De.body,qe)]),Hs(),new Qr.MathNode("mtd",[Da(De.tag,qe)])])]);return We.setAttribute("width","100%"),We}});var Io={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},vs={"\\textbf":"textbf","\\textmd":"textmd"},ko={"\\textit":"textit","\\textup":"textup"},Oo=function(De,qe){var We=De.font;return We?Io[We]?qe.withTextFontFamily(Io[We]):vs[We]?qe.withTextFontWeight(vs[We]):qe.withTextFontShape(ko[We]):qe};lr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(De,qe){var We=De.parser,at=De.funcName,xt=qe[0];return{type:"text",mode:We.mode,body:Kr(xt),font:at}},htmlBuilder:function(De,qe){var We=Oo(De,qe),at=kn(De.body,We,!0);return Ir.makeSpan(["mord","text"],at,We)},mathmlBuilder:function(De,qe){var We=Oo(De,qe);return Da(De.body,We)}}),lr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(De,qe){var We=De.parser;return{type:"underline",mode:We.mode,body:qe[0]}},htmlBuilder:function(De,qe){var We=vn(De.body,qe),at=Ir.makeLineSpan("underline-line",qe),xt=qe.fontMetrics().defaultRuleThickness,Rt=Ir.makeVList({positionType:"top",positionData:We.height,children:[{type:"kern",size:xt},{type:"elem",elem:at},{type:"kern",size:3*xt},{type:"elem",elem:We}]},qe);return Ir.makeSpan(["mord","underline"],[Rt],qe)},mathmlBuilder:function(De,qe){var We=new Qr.MathNode("mo",[new Qr.TextNode("‾")]);We.setAttribute("stretchy","true");var at=new Qr.MathNode("munder",[Kn(De.body,qe),We]);return at.setAttribute("accentunder","true"),at}}),lr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(De,qe){var We=De.parser;return{type:"vcenter",mode:We.mode,body:qe[0]}},htmlBuilder:function(De,qe){var We=vn(De.body,qe),at=qe.fontMetrics().axisHeight,xt=.5*(We.height-at-(We.depth+at));return Ir.makeVList({positionType:"shift",positionData:xt,children:[{type:"elem",elem:We}]},qe)},mathmlBuilder:function(De,qe){return new Qr.MathNode("mpadded",[Kn(De.body,qe)],["vcenter"])}}),lr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(De,qe,We){throw new q("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(De,qe){for(var We=po(De),at=[],xt=qe.havingStyle(qe.style.text()),Rt=0;Rt<We.length;Rt++){var qt=We[Rt];qt==="~"&&(qt="\\textasciitilde"),at.push(Ir.makeSymbol(qt,"Typewriter-Regular",De.mode,xt,["mord","texttt"]))}return Ir.makeSpan(["mord","text"].concat(xt.sizingClasses(qe)),Ir.tryCombineChars(at),xt)},mathmlBuilder:function(De,qe){var We=new Qr.TextNode(po(De)),at=new Qr.MathNode("mtext",[We]);return at.setAttribute("mathvariant","monospace"),at}});var po=function(De){return De.body.replace(/ /g,De.star?"␣":" ")},No=Oe,Ba=No,Do=`[ \r
]`,Vo="\\\\[a-zA-Z@]+",zo="\\\\[^\uD800-\uDFFF]",Za="("+Vo+")"+Do+"*",Ws=`\\\\(
|[ \r ]+
?)[ \r ]*`,Ja="[̀-ͯ]",es=new RegExp(Ja+"+$"),Mo="("+Do+"+)|"+(Ws+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ja+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ja+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Za)+("|"+zo+")"),Xe=function(){function Tt(qe,We){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=qe,this.settings=We,this.tokenRegex=new RegExp(Mo,"g"),this.catcodes={"%":14,"~":13}}var De=Tt.prototype;return De.setCatcode=function(We,at){this.catcodes[We]=at},De.lex=function(){var We=this.input,at=this.tokenRegex.lastIndex;if(at===We.length)return new La("EOF",new Yi(this,at,at));var xt=this.tokenRegex.exec(We);if(xt===null||xt.index!==at)throw new q("Unexpected character: '"+We[at]+"'",new La(We[at],new Yi(this,at,at+1)));var Rt=xt[6]||xt[3]||(xt[2]?"\\ ":" ");if(this.catcodes[Rt]===14){var qt=We.indexOf(`
`,this.tokenRegex.lastIndex);return qt===-1?(this.tokenRegex.lastIndex=We.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=qt+1,this.lex()}return new La(Rt,new Yi(this,at,this.tokenRegex.lastIndex))},Tt}(),ht=function(){function Tt(qe,We){qe===void 0&&(qe={}),We===void 0&&(We={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=We,this.builtins=qe,this.undefStack=[]}var De=Tt.prototype;return De.beginGroup=function(){this.undefStack.push({})},De.endGroup=function(){if(this.undefStack.length===0)throw new q("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var We=this.undefStack.pop();for(var at in We)We.hasOwnProperty(at)&&(We[at]==null?delete this.current[at]:this.current[at]=We[at])},De.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},De.has=function(We){return this.current.hasOwnProperty(We)||this.builtins.hasOwnProperty(We)},De.get=function(We){return this.current.hasOwnProperty(We)?this.current[We]:this.builtins[We]},De.set=function(We,at,xt){if(xt===void 0&&(xt=!1),xt){for(var Rt=0;Rt<this.undefStack.length;Rt++)delete this.undefStack[Rt][We];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][We]=at)}else{var qt=this.undefStack[this.undefStack.length-1];qt&&!qt.hasOwnProperty(We)&&(qt[We]=this.current[We])}at==null?delete this.current[We]:this.current[We]=at},Tt}(),Ot=lo,tr=Ot;Qt("\\noexpand",function(Tt){var De=Tt.popToken();return Tt.isExpandable(De.text)&&(De.noexpand=!0,De.treatAsRelax=!0),{tokens:[De],numArgs:0}}),Qt("\\expandafter",function(Tt){var De=Tt.popToken();return Tt.expandOnce(!0),{tokens:[De],numArgs:0}}),Qt("\\@firstoftwo",function(Tt){var De=Tt.consumeArgs(2);return{tokens:De[0],numArgs:0}}),Qt("\\@secondoftwo",function(Tt){var De=Tt.consumeArgs(2);return{tokens:De[1],numArgs:0}}),Qt("\\@ifnextchar",function(Tt){var De=Tt.consumeArgs(3);Tt.consumeSpaces();var qe=Tt.future();return De[0].length===1&&De[0][0].text===qe.text?{tokens:De[1],numArgs:0}:{tokens:De[2],numArgs:0}}),Qt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Qt("\\TextOrMath",function(Tt){var De=Tt.consumeArgs(2);return Tt.mode==="text"?{tokens:De[0],numArgs:0}:{tokens:De[1],numArgs:0}});var dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Qt("\\char",function(Tt){var De=Tt.popToken(),qe,We="";if(De.text==="'")qe=8,De=Tt.popToken();else if(De.text==='"')qe=16,De=Tt.popToken();else if(De.text==="`")if(De=Tt.popToken(),De.text[0]==="\\")We=De.text.charCodeAt(1);else{if(De.text==="EOF")throw new q("\\char` missing argument");We=De.text.charCodeAt(0)}else qe=10;if(qe){if(We=dr[De.text],We==null||We>=qe)throw new q("Invalid base-"+qe+" digit "+De.text);for(var at;(at=dr[Tt.future().text])!=null&&at<qe;)We*=qe,We+=at,Tt.popToken()}return"\\@char{"+We+"}"});var vr=function(De,qe,We){var at=De.consumeArg().tokens;if(at.length!==1)throw new q("\\newcommand's first argument must be a macro name");var xt=at[0].text,Rt=De.isDefined(xt);if(Rt&&!qe)throw new q("\\newcommand{"+xt+"} attempting to redefine "+(xt+"; use \\renewcommand"));if(!Rt&&!We)throw new q("\\renewcommand{"+xt+"} when command "+xt+" does not yet exist; use \\newcommand");var qt=0;if(at=De.consumeArg().tokens,at.length===1&&at[0].text==="["){for(var Kt="",rr=De.expandNextToken();rr.text!=="]"&&rr.text!=="EOF";)Kt+=rr.text,rr=De.expandNextToken();if(!Kt.match(/^\s*[0-9]+\s*$/))throw new q("Invalid number of arguments: "+Kt);qt=parseInt(Kt),at=De.consumeArg().tokens}return De.macros.set(xt,{tokens:at,numArgs:qt}),""};Qt("\\newcommand",function(Tt){return vr(Tt,!1,!0)}),Qt("\\renewcommand",function(Tt){return vr(Tt,!0,!1)}),Qt("\\providecommand",function(Tt){return vr(Tt,!0,!0)}),Qt("\\message",function(Tt){var De=Tt.consumeArgs(1)[0];return console.log(De.reverse().map(function(qe){return qe.text}).join("")),""}),Qt("\\errmessage",function(Tt){var De=Tt.consumeArgs(1)[0];return console.error(De.reverse().map(function(qe){return qe.text}).join("")),""}),Qt("\\show",function(Tt){var De=Tt.popToken(),qe=De.text;return console.log(De,Tt.macros.get(qe),Ba[qe],Ar.math[qe],Ar.text[qe]),""}),Qt("\\bgroup","{"),Qt("\\egroup","}"),Qt("~","\\nobreakspace"),Qt("\\lq","`"),Qt("\\rq","'"),Qt("\\aa","\\r a"),Qt("\\AA","\\r A"),Qt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Qt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Qt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Qt("","\\mathscr{B}"),Qt("","\\mathscr{E}"),Qt("","\\mathscr{F}"),Qt("","\\mathscr{H}"),Qt("","\\mathscr{I}"),Qt("","\\mathscr{L}"),Qt("","\\mathscr{M}"),Qt("","\\mathscr{R}"),Qt("","\\mathfrak{C}"),Qt("","\\mathfrak{H}"),Qt("","\\mathfrak{Z}"),Qt("\\Bbbk","\\Bbb{k}"),Qt("·","\\cdotp"),Qt("\\llap","\\mathllap{\\textrm{#1}}"),Qt("\\rlap","\\mathrlap{\\textrm{#1}}"),Qt("\\clap","\\mathclap{\\textrm{#1}}"),Qt("\\mathstrut","\\vphantom{(}"),Qt("\\underbar","\\underline{\\text{#1}}"),Qt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Qt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Qt("\\ne","\\neq"),Qt("≠","\\neq"),Qt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Qt("∉","\\notin"),Qt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Qt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Qt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Qt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Qt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Qt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Qt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Qt("⟂","\\perp"),Qt("‼","\\mathclose{!\\mkern-0.8mu!}"),Qt("∌","\\notni"),Qt("⌜","\\ulcorner"),Qt("⌝","\\urcorner"),Qt("⌞","\\llcorner"),Qt("⌟","\\lrcorner"),Qt("©","\\copyright"),Qt("®","\\textregistered"),Qt("","\\textregistered"),Qt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Qt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Qt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Qt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Qt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Qt("⋮","\\vdots"),Qt("\\varGamma","\\mathit{\\Gamma}"),Qt("\\varDelta","\\mathit{\\Delta}"),Qt("\\varTheta","\\mathit{\\Theta}"),Qt("\\varLambda","\\mathit{\\Lambda}"),Qt("\\varXi","\\mathit{\\Xi}"),Qt("\\varPi","\\mathit{\\Pi}"),Qt("\\varSigma","\\mathit{\\Sigma}"),Qt("\\varUpsilon","\\mathit{\\Upsilon}"),Qt("\\varPhi","\\mathit{\\Phi}"),Qt("\\varPsi","\\mathit{\\Psi}"),Qt("\\varOmega","\\mathit{\\Omega}"),Qt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Qt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Qt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Qt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Qt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Qt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var $r={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Qt("\\dots",function(Tt){var De="\\dotso",qe=Tt.expandAfterFuture().text;return qe in $r?De=$r[qe]:(qe.slice(0,4)==="\\not"||qe in Ar.math&&J.contains(["bin","rel"],Ar.math[qe].group))&&(De="\\dotsb"),De});var Zr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Qt("\\dotso",function(Tt){var De=Tt.future().text;return De in Zr?"\\ldots\\,":"\\ldots"}),Qt("\\dotsc",function(Tt){var De=Tt.future().text;return De in Zr&&De!==","?"\\ldots\\,":"\\ldots"}),Qt("\\cdots",function(Tt){var De=Tt.future().text;return De in Zr?"\\@cdots\\,":"\\@cdots"}),Qt("\\dotsb","\\cdots"),Qt("\\dotsm","\\cdots"),Qt("\\dotsi","\\!\\cdots"),Qt("\\dotsx","\\ldots\\,"),Qt("\\DOTSI","\\relax"),Qt("\\DOTSB","\\relax"),Qt("\\DOTSX","\\relax"),Qt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Qt("\\,","\\tmspace+{3mu}{.1667em}"),Qt("\\thinspace","\\,"),Qt("\\>","\\mskip{4mu}"),Qt("\\:","\\tmspace+{4mu}{.2222em}"),Qt("\\medspace","\\:"),Qt("\\;","\\tmspace+{5mu}{.2777em}"),Qt("\\thickspace","\\;"),Qt("\\!","\\tmspace-{3mu}{.1667em}"),Qt("\\negthinspace","\\!"),Qt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Qt("\\negthickspace","\\tmspace-{5mu}{.277em}"),Qt("\\enspace","\\kern.5em "),Qt("\\enskip","\\hskip.5em\\relax"),Qt("\\quad","\\hskip1em\\relax"),Qt("\\qquad","\\hskip2em\\relax"),Qt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Qt("\\tag@paren","\\tag@literal{({#1})}"),Qt("\\tag@literal",function(Tt){if(Tt.macros.get("\\df@tag"))throw new q("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Qt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Qt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Qt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Qt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Qt("\\newline","\\\\\\relax"),Qt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _n=Nt(Ye["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ye["Main-Regular"]["A".charCodeAt(0)][1]);Qt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+_n+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Qt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+_n+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Qt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Qt("\\@hspace","\\hskip #1\\relax"),Qt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Qt("\\ordinarycolon",":"),Qt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Qt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Qt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Qt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Qt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Qt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Qt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Qt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Qt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Qt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Qt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Qt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Qt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Qt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Qt("∷","\\dblcolon"),Qt("∹","\\eqcolon"),Qt("≔","\\coloneqq"),Qt("≕","\\eqqcolon"),Qt("⩴","\\Coloneqq"),Qt("\\ratio","\\vcentcolon"),Qt("\\coloncolon","\\dblcolon"),Qt("\\colonequals","\\coloneqq"),Qt("\\coloncolonequals","\\Coloneqq"),Qt("\\equalscolon","\\eqqcolon"),Qt("\\equalscoloncolon","\\Eqqcolon"),Qt("\\colonminus","\\coloneq"),Qt("\\coloncolonminus","\\Coloneq"),Qt("\\minuscolon","\\eqcolon"),Qt("\\minuscoloncolon","\\Eqcolon"),Qt("\\coloncolonapprox","\\Colonapprox"),Qt("\\coloncolonsim","\\Colonsim"),Qt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Qt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Qt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Qt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Qt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Qt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Qt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Qt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Qt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Qt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Qt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Qt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Qt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Qt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Qt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Qt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Qt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Qt("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Qt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Qt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Qt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Qt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Qt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Qt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Qt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Qt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Qt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Qt("\\imath","\\html@mathml{\\@imath}{ı}"),Qt("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Qt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Qt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Qt("⟦","\\llbracket"),Qt("⟧","\\rrbracket"),Qt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Qt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Qt("⦃","\\lBrace"),Qt("⦄","\\rBrace"),Qt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Qt("⦵","\\minuso"),Qt("\\darr","\\downarrow"),Qt("\\dArr","\\Downarrow"),Qt("\\Darr","\\Downarrow"),Qt("\\lang","\\langle"),Qt("\\rang","\\rangle"),Qt("\\uarr","\\uparrow"),Qt("\\uArr","\\Uparrow"),Qt("\\Uarr","\\Uparrow"),Qt("\\N","\\mathbb{N}"),Qt("\\R","\\mathbb{R}"),Qt("\\Z","\\mathbb{Z}"),Qt("\\alef","\\aleph"),Qt("\\alefsym","\\aleph"),Qt("\\Alpha","\\mathrm{A}"),Qt("\\Beta","\\mathrm{B}"),Qt("\\bull","\\bullet"),Qt("\\Chi","\\mathrm{X}"),Qt("\\clubs","\\clubsuit"),Qt("\\cnums","\\mathbb{C}"),Qt("\\Complex","\\mathbb{C}"),Qt("\\Dagger","\\ddagger"),Qt("\\diamonds","\\diamondsuit"),Qt("\\empty","\\emptyset"),Qt("\\Epsilon","\\mathrm{E}"),Qt("\\Eta","\\mathrm{H}"),Qt("\\exist","\\exists"),Qt("\\harr","\\leftrightarrow"),Qt("\\hArr","\\Leftrightarrow"),Qt("\\Harr","\\Leftrightarrow"),Qt("\\hearts","\\heartsuit"),Qt("\\image","\\Im"),Qt("\\infin","\\infty"),Qt("\\Iota","\\mathrm{I}"),Qt("\\isin","\\in"),Qt("\\Kappa","\\mathrm{K}"),Qt("\\larr","\\leftarrow"),Qt("\\lArr","\\Leftarrow"),Qt("\\Larr","\\Leftarrow"),Qt("\\lrarr","\\leftrightarrow"),Qt("\\lrArr","\\Leftrightarrow"),Qt("\\Lrarr","\\Leftrightarrow"),Qt("\\Mu","\\mathrm{M}"),Qt("\\natnums","\\mathbb{N}"),Qt("\\Nu","\\mathrm{N}"),Qt("\\Omicron","\\mathrm{O}"),Qt("\\plusmn","\\pm"),Qt("\\rarr","\\rightarrow"),Qt("\\rArr","\\Rightarrow"),Qt("\\Rarr","\\Rightarrow"),Qt("\\real","\\Re"),Qt("\\reals","\\mathbb{R}"),Qt("\\Reals","\\mathbb{R}"),Qt("\\Rho","\\mathrm{P}"),Qt("\\sdot","\\cdot"),Qt("\\sect","\\S"),Qt("\\spades","\\spadesuit"),Qt("\\sub","\\subset"),Qt("\\sube","\\subseteq"),Qt("\\supe","\\supseteq"),Qt("\\Tau","\\mathrm{T}"),Qt("\\thetasym","\\vartheta"),Qt("\\weierp","\\wp"),Qt("\\Zeta","\\mathrm{Z}"),Qt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Qt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Qt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Qt("\\bra","\\mathinner{\\langle{#1}|}"),Qt("\\ket","\\mathinner{|{#1}\\rangle}"),Qt("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Qt("\\Bra","\\left\\langle#1\\right|"),Qt("\\Ket","\\left|#1\\right\\rangle");var en=function(De){return function(qe){var We=qe.consumeArg().tokens,at=qe.consumeArg().tokens,xt=qe.consumeArg().tokens,Rt=qe.consumeArg().tokens,qt=qe.macros.get("|"),Kt=qe.macros.get("\\|");qe.macros.beginGroup();var rr=function(zr){return function(Hr){De&&(Hr.macros.set("|",qt),xt.length&&Hr.macros.set("\\|",Kt));var rn=zr;if(!zr&&xt.length){var ln=Hr.future();ln.text==="|"&&(Hr.popToken(),rn=!0)}return{tokens:rn?xt:at,numArgs:0}}};qe.macros.set("|",rr(!1)),xt.length&&qe.macros.set("\\|",rr(!0));var mr=qe.consumeArg().tokens,Fr=qe.expandTokens([].concat(Rt,mr,We));return qe.macros.endGroup(),{tokens:Fr.reverse(),numArgs:0}}};Qt("\\bra@ket",en(!1)),Qt("\\bra@set",en(!0)),Qt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Qt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Qt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Qt("\\angln","{\\angl n}"),Qt("\\blue","\\textcolor{##6495ed}{#1}"),Qt("\\orange","\\textcolor{##ffa500}{#1}"),Qt("\\pink","\\textcolor{##ff00af}{#1}"),Qt("\\red","\\textcolor{##df0030}{#1}"),Qt("\\green","\\textcolor{##28ae7b}{#1}"),Qt("\\gray","\\textcolor{gray}{#1}"),Qt("\\purple","\\textcolor{##9d38bd}{#1}"),Qt("\\blueA","\\textcolor{##ccfaff}{#1}"),Qt("\\blueB","\\textcolor{##80f6ff}{#1}"),Qt("\\blueC","\\textcolor{##63d9ea}{#1}"),Qt("\\blueD","\\textcolor{##11accd}{#1}"),Qt("\\blueE","\\textcolor{##0c7f99}{#1}"),Qt("\\tealA","\\textcolor{##94fff5}{#1}"),Qt("\\tealB","\\textcolor{##26edd5}{#1}"),Qt("\\tealC","\\textcolor{##01d1c1}{#1}"),Qt("\\tealD","\\textcolor{##01a995}{#1}"),Qt("\\tealE","\\textcolor{##208170}{#1}"),Qt("\\greenA","\\textcolor{##b6ffb0}{#1}"),Qt("\\greenB","\\textcolor{##8af281}{#1}"),Qt("\\greenC","\\textcolor{##74cf70}{#1}"),Qt("\\greenD","\\textcolor{##1fab54}{#1}"),Qt("\\greenE","\\textcolor{##0d923f}{#1}"),Qt("\\goldA","\\textcolor{##ffd0a9}{#1}"),Qt("\\goldB","\\textcolor{##ffbb71}{#1}"),Qt("\\goldC","\\textcolor{##ff9c39}{#1}"),Qt("\\goldD","\\textcolor{##e07d10}{#1}"),Qt("\\goldE","\\textcolor{##a75a05}{#1}"),Qt("\\redA","\\textcolor{##fca9a9}{#1}"),Qt("\\redB","\\textcolor{##ff8482}{#1}"),Qt("\\redC","\\textcolor{##f9685d}{#1}"),Qt("\\redD","\\textcolor{##e84d39}{#1}"),Qt("\\redE","\\textcolor{##bc2612}{#1}"),Qt("\\maroonA","\\textcolor{##ffbde0}{#1}"),Qt("\\maroonB","\\textcolor{##ff92c6}{#1}"),Qt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Qt("\\maroonD","\\textcolor{##ca337c}{#1}"),Qt("\\maroonE","\\textcolor{##9e034e}{#1}"),Qt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Qt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Qt("\\purpleC","\\textcolor{##aa87ff}{#1}"),Qt("\\purpleD","\\textcolor{##7854ab}{#1}"),Qt("\\purpleE","\\textcolor{##543b78}{#1}"),Qt("\\mintA","\\textcolor{##f5f9e8}{#1}"),Qt("\\mintB","\\textcolor{##edf2df}{#1}"),Qt("\\mintC","\\textcolor{##e0e5cc}{#1}"),Qt("\\grayA","\\textcolor{##f6f7f7}{#1}"),Qt("\\grayB","\\textcolor{##f0f1f2}{#1}"),Qt("\\grayC","\\textcolor{##e3e5e6}{#1}"),Qt("\\grayD","\\textcolor{##d6d8da}{#1}"),Qt("\\grayE","\\textcolor{##babec2}{#1}"),Qt("\\grayF","\\textcolor{##888d93}{#1}"),Qt("\\grayG","\\textcolor{##626569}{#1}"),Qt("\\grayH","\\textcolor{##3b3e40}{#1}"),Qt("\\grayI","\\textcolor{##21242c}{#1}"),Qt("\\kaBlue","\\textcolor{##314453}{#1}"),Qt("\\kaGreen","\\textcolor{##71B307}{#1}");var Tn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Nn=function(){function Tt(qe,We,at){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=We,this.expansionCount=0,this.feed(qe),this.macros=new ht(tr,We.macros),this.mode=at,this.stack=[]}var De=Tt.prototype;return De.feed=function(We){this.lexer=new Xe(We,this.settings)},De.switchMode=function(We){this.mode=We},De.beginGroup=function(){this.macros.beginGroup()},De.endGroup=function(){this.macros.endGroup()},De.endGroups=function(){this.macros.endGroups()},De.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},De.popToken=function(){return this.future(),this.stack.pop()},De.pushToken=function(We){this.stack.push(We)},De.pushTokens=function(We){var at;(at=this.stack).push.apply(at,We)},De.scanArgument=function(We){var at,xt,Rt;if(We){if(this.consumeSpaces(),this.future().text!=="[")return null;at=this.popToken();var qt=this.consumeArg(["]"]);Rt=qt.tokens,xt=qt.end}else{var Kt=this.consumeArg();Rt=Kt.tokens,at=Kt.start,xt=Kt.end}return this.pushToken(new La("EOF",xt.loc)),this.pushTokens(Rt),at.range(xt,"")},De.consumeSpaces=function(){for(;;){var We=this.future();if(We.text===" ")this.stack.pop();else break}},De.consumeArg=function(We){var at=[],xt=We&&We.length>0;xt||this.consumeSpaces();var Rt=this.future(),qt,Kt=0,rr=0;do{if(qt=this.popToken(),at.push(qt),qt.text==="{")++Kt;else if(qt.text==="}"){if(--Kt,Kt===-1)throw new q("Extra }",qt)}else if(qt.text==="EOF")throw new q("Unexpected end of input in a macro argument, expected '"+(We&&xt?We[rr]:"}")+"'",qt);if(We&&xt)if((Kt===0||Kt===1&&We[rr]==="{")&&qt.text===We[rr]){if(++rr,rr===We.length){at.splice(-rr,rr);break}}else rr=0}while(Kt!==0||xt);return Rt.text==="{"&&at[at.length-1].text==="}"&&(at.pop(),at.shift()),at.reverse(),{tokens:at,start:Rt,end:qt}},De.consumeArgs=function(We,at){if(at){if(at.length!==We+1)throw new q("The length of delimiters doesn't match the number of args!");for(var xt=at[0],Rt=0;Rt<xt.length;Rt++){var qt=this.popToken();if(xt[Rt]!==qt.text)throw new q("Use of the macro doesn't match its definition",qt)}}for(var Kt=[],rr=0;rr<We;rr++)Kt.push(this.consumeArg(at&&at[rr+1]).tokens);return Kt},De.expandOnce=function(We){var at=this.popToken(),xt=at.text,Rt=at.noexpand?null:this._getExpansion(xt);if(Rt==null||We&&Rt.unexpandable){if(We&&Rt==null&&xt[0]==="\\"&&!this.isDefined(xt))throw new q("Undefined control sequence: "+xt);return this.pushToken(at),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new q("Too many expansions: infinite loop or need to increase maxExpand setting");var qt=Rt.tokens,Kt=this.consumeArgs(Rt.numArgs,Rt.delimiters);if(Rt.numArgs){qt=qt.slice();for(var rr=qt.length-1;rr>=0;--rr){var mr=qt[rr];if(mr.text==="#"){if(rr===0)throw new q("Incomplete placeholder at end of macro body",mr);if(mr=qt[--rr],mr.text==="#")qt.splice(rr+1,1);else if(/^[1-9]$/.test(mr.text)){var Fr;(Fr=qt).splice.apply(Fr,[rr,2].concat(Kt[+mr.text-1]))}else throw new q("Not a valid argument number",mr)}}}return this.pushTokens(qt),qt.length},De.expandAfterFuture=function(){return this.expandOnce(),this.future()},De.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var We=this.stack.pop();return We.treatAsRelax&&(We.text="\\relax"),We}throw new Error},De.expandMacro=function(We){return this.macros.has(We)?this.expandTokens([new La(We)]):void 0},De.expandTokens=function(We){var at=[],xt=this.stack.length;for(this.pushTokens(We);this.stack.length>xt;)if(this.expandOnce(!0)===!1){var Rt=this.stack.pop();Rt.treatAsRelax&&(Rt.noexpand=!1,Rt.treatAsRelax=!1),at.push(Rt)}return at},De.expandMacroAsText=function(We){var at=this.expandMacro(We);return at&&at.map(function(xt){return xt.text}).join("")},De._getExpansion=function(We){var at=this.macros.get(We);if(at==null)return at;if(We.length===1){var xt=this.lexer.catcodes[We];if(xt!=null&&xt!==13)return}var Rt=typeof at=="function"?at(this):at;if(typeof Rt=="string"){var qt=0;if(Rt.indexOf("#")!==-1)for(var Kt=Rt.replace(/##/g,"");Kt.indexOf("#"+(qt+1))!==-1;)++qt;for(var rr=new Xe(Rt,this.settings),mr=[],Fr=rr.lex();Fr.text!=="EOF";)mr.push(Fr),Fr=rr.lex();mr.reverse();var Vr={tokens:mr,numArgs:qt};return Vr}return Rt},De.isDefined=function(We){return this.macros.has(We)||Ba.hasOwnProperty(We)||Ar.math.hasOwnProperty(We)||Ar.text.hasOwnProperty(We)||Tn.hasOwnProperty(We)},De.isExpandable=function(We){var at=this.macros.get(We);return at!=null?typeof at=="string"||typeof at=="function"||!at.unexpandable:Ba.hasOwnProperty(We)&&!Ba[We].primitive},Tt}(),Ln=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ai=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),wi={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Mi={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},Ki=function(){function Tt(qe,We){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Nn(qe,We,this.mode),this.settings=We,this.leftrightDepth=0}var De=Tt.prototype;return De.expect=function(We,at){if(at===void 0&&(at=!0),this.fetch().text!==We)throw new q("Expected '"+We+"', got '"+this.fetch().text+"'",this.fetch());at&&this.consume()},De.consume=function(){this.nextToken=null},De.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},De.switchMode=function(We){this.mode=We,this.gullet.switchMode(We)},De.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var We=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),We}finally{this.gullet.endGroups()}},De.subparse=function(We){var at=this.nextToken;this.consume(),this.gullet.pushToken(new La("}")),this.gullet.pushTokens(We);var xt=this.parseExpression(!1);return this.expect("}"),this.nextToken=at,xt},De.parseExpression=function(We,at){for(var xt=[];;){this.mode==="math"&&this.consumeSpaces();var Rt=this.fetch();if(Tt.endOfExpression.indexOf(Rt.text)!==-1||at&&Rt.text===at||We&&Ba[Rt.text]&&Ba[Rt.text].infix)break;var qt=this.parseAtom(at);if(qt){if(qt.type==="internal")continue}else break;xt.push(qt)}return this.mode==="text"&&this.formLigatures(xt),this.handleInfixNodes(xt)},De.handleInfixNodes=function(We){for(var at=-1,xt,Rt=0;Rt<We.length;Rt++)if(We[Rt].type==="infix"){if(at!==-1)throw new q("only one infix operator per group",We[Rt].token);at=Rt,xt=We[Rt].replaceWith}if(at!==-1&&xt){var qt,Kt,rr=We.slice(0,at),mr=We.slice(at+1);rr.length===1&&rr[0].type==="ordgroup"?qt=rr[0]:qt={type:"ordgroup",mode:this.mode,body:rr},mr.length===1&&mr[0].type==="ordgroup"?Kt=mr[0]:Kt={type:"ordgroup",mode:this.mode,body:mr};var Fr;return xt==="\\\\abovefrac"?Fr=this.callFunction(xt,[qt,We[at],Kt],[]):Fr=this.callFunction(xt,[qt,Kt],[]),[Fr]}else return We},De.handleSupSubscript=function(We){var at=this.fetch(),xt=at.text;this.consume(),this.consumeSpaces();var Rt=this.parseGroup(We);if(!Rt)throw new q("Expected group after '"+xt+"'",at);return Rt},De.formatUnsupportedCmd=function(We){for(var at=[],xt=0;xt<We.length;xt++)at.push({type:"textord",mode:"text",text:We[xt]});var Rt={type:"text",mode:this.mode,body:at},qt={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Rt]};return qt},De.parseAtom=function(We){var at=this.parseGroup("atom",We);if(this.mode==="text")return at;for(var xt,Rt;;){this.consumeSpaces();var qt=this.fetch();if(qt.text==="\\limits"||qt.text==="\\nolimits"){if(at&&at.type==="op"){var Kt=qt.text==="\\limits";at.limits=Kt,at.alwaysHandleSupSub=!0}else if(at&&at.type==="operatorname")at.alwaysHandleSupSub&&(at.limits=qt.text==="\\limits");else throw new q("Limit controls must follow a math operator",qt);this.consume()}else if(qt.text==="^"){if(xt)throw new q("Double superscript",qt);xt=this.handleSupSubscript("superscript")}else if(qt.text==="_"){if(Rt)throw new q("Double subscript",qt);Rt=this.handleSupSubscript("subscript")}else if(qt.text==="'"){if(xt)throw new q("Double superscript",qt);var rr={type:"textord",mode:this.mode,text:"\\prime"},mr=[rr];for(this.consume();this.fetch().text==="'";)mr.push(rr),this.consume();this.fetch().text==="^"&&mr.push(this.handleSupSubscript("superscript")),xt={type:"ordgroup",mode:this.mode,body:mr}}else if(ai[qt.text]){var Fr=ai[qt.text],Vr=Ln.test(qt.text);for(this.consume();;){var zr=this.fetch().text;if(!ai[zr]||Ln.test(zr)!==Vr)break;this.consume(),Fr+=ai[zr]}var Hr=new Tt(Fr,this.settings).parse();Vr?Rt={type:"ordgroup",mode:"math",body:Hr}:xt={type:"ordgroup",mode:"math",body:Hr}}else break}return xt||Rt?{type:"supsub",mode:this.mode,base:at,sup:xt,sub:Rt}:at},De.parseFunction=function(We,at){var xt=this.fetch(),Rt=xt.text,qt=Ba[Rt];if(!qt)return null;if(this.consume(),at&&at!=="atom"&&!qt.allowedInArgument)throw new q("Got function '"+Rt+"' with no arguments"+(at?" as "+at:""),xt);if(this.mode==="text"&&!qt.allowedInText)throw new q("Can't use function '"+Rt+"' in text mode",xt);if(this.mode==="math"&&qt.allowedInMath===!1)throw new q("Can't use function '"+Rt+"' in math mode",xt);var Kt=this.parseArguments(Rt,qt),rr=Kt.args,mr=Kt.optArgs;return this.callFunction(Rt,rr,mr,xt,We)},De.callFunction=function(We,at,xt,Rt,qt){var Kt={funcName:We,parser:this,token:Rt,breakOnTokenText:qt},rr=Ba[We];if(rr&&rr.handler)return rr.handler(Kt,at,xt);throw new q("No function handler for "+We)},De.parseArguments=function(We,at){var xt=at.numArgs+at.numOptionalArgs;if(xt===0)return{args:[],optArgs:[]};for(var Rt=[],qt=[],Kt=0;Kt<xt;Kt++){var rr=at.argTypes&&at.argTypes[Kt],mr=Kt<at.numOptionalArgs;(at.primitive&&rr==null||at.type==="sqrt"&&Kt===1&&qt[0]==null)&&(rr="primitive");var Fr=this.parseGroupOfType("argument to '"+We+"'",rr,mr);if(mr)qt.push(Fr);else if(Fr!=null)Rt.push(Fr);else throw new q("Null argument, please report this as a bug")}return{args:Rt,optArgs:qt}},De.parseGroupOfType=function(We,at,xt){switch(at){case"color":return this.parseColorGroup(xt);case"size":return this.parseSizeGroup(xt);case"url":return this.parseUrlGroup(xt);case"math":case"text":return this.parseArgumentGroup(xt,at);case"hbox":{var Rt=this.parseArgumentGroup(xt,"text");return Rt!=null?{type:"styling",mode:Rt.mode,body:[Rt],style:"text"}:null}case"raw":{var qt=this.parseStringGroup("raw",xt);return qt!=null?{type:"raw",mode:"text",string:qt.text}:null}case"primitive":{if(xt)throw new q("A primitive argument cannot be optional");var Kt=this.parseGroup(We);if(Kt==null)throw new q("Expected group as "+We,this.fetch());return Kt}case"original":case null:case void 0:return this.parseArgumentGroup(xt);default:throw new q("Unknown group type as "+We,this.fetch())}},De.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},De.parseStringGroup=function(We,at){var xt=this.gullet.scanArgument(at);if(xt==null)return null;for(var Rt="",qt;(qt=this.fetch()).text!=="EOF";)Rt+=qt.text,this.consume();return this.consume(),xt.text=Rt,xt},De.parseRegexGroup=function(We,at){for(var xt=this.fetch(),Rt=xt,qt="",Kt;(Kt=this.fetch()).text!=="EOF"&&We.test(qt+Kt.text);)Rt=Kt,qt+=Rt.text,this.consume();if(qt==="")throw new q("Invalid "+at+": '"+xt.text+"'",xt);return xt.range(Rt,qt)},De.parseColorGroup=function(We){var at=this.parseStringGroup("color",We);if(at==null)return null;var xt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(at.text);if(!xt)throw new q("Invalid color: '"+at.text+"'",at);var Rt=xt[0];return/^[0-9a-f]{6}$/i.test(Rt)&&(Rt="#"+Rt),{type:"color-token",mode:this.mode,color:Rt}},De.parseSizeGroup=function(We){var at,xt=!1;if(this.gullet.consumeSpaces(),!We&&this.gullet.future().text!=="{"?at=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):at=this.parseStringGroup("size",We),!at)return null;!We&&at.text.length===0&&(at.text="0pt",xt=!0);var Rt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(at.text);if(!Rt)throw new q("Invalid size: '"+at.text+"'",at);var qt={number:+(Rt[1]+Rt[2]),unit:Rt[3]};if(!wt(qt))throw new q("Invalid unit: '"+qt.unit+"'",at);return{type:"size",mode:this.mode,value:qt,isBlank:xt}},De.parseUrlGroup=function(We){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var at=this.parseStringGroup("url",We);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),at==null)return null;var xt=at.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:xt}},De.parseArgumentGroup=function(We,at){var xt=this.gullet.scanArgument(We);if(xt==null)return null;var Rt=this.mode;at&&this.switchMode(at),this.gullet.beginGroup();var qt=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Kt={type:"ordgroup",mode:this.mode,loc:xt.loc,body:qt};return at&&this.switchMode(Rt),Kt},De.parseGroup=function(We,at){var xt=this.fetch(),Rt=xt.text,qt;if(Rt==="{"||Rt==="\\begingroup"){this.consume();var Kt=Rt==="{"?"}":"\\endgroup";this.gullet.beginGroup();var rr=this.parseExpression(!1,Kt),mr=this.fetch();this.expect(Kt),this.gullet.endGroup(),qt={type:"ordgroup",mode:this.mode,loc:Yi.range(xt,mr),body:rr,semisimple:Rt==="\\begingroup"||void 0}}else if(qt=this.parseFunction(at,We)||this.parseSymbol(),qt==null&&Rt[0]==="\\"&&!Tn.hasOwnProperty(Rt)){if(this.settings.throwOnError)throw new q("Undefined control sequence: "+Rt,xt);qt=this.formatUnsupportedCmd(Rt),this.consume()}return qt},De.formLigatures=function(We){for(var at=We.length-1,xt=0;xt<at;++xt){var Rt=We[xt],qt=Rt.text;qt==="-"&&We[xt+1].text==="-"&&(xt+1<at&&We[xt+2].text==="-"?(We.splice(xt,3,{type:"textord",mode:"text",loc:Yi.range(Rt,We[xt+2]),text:"---"}),at-=2):(We.splice(xt,2,{type:"textord",mode:"text",loc:Yi.range(Rt,We[xt+1]),text:"--"}),at-=1)),(qt==="'"||qt==="`")&&We[xt+1].text===qt&&(We.splice(xt,2,{type:"textord",mode:"text",loc:Yi.range(Rt,We[xt+1]),text:qt+qt}),at-=1)}},De.parseSymbol=function(){var We=this.fetch(),at=We.text;if(/^\\verb[^a-zA-Z]/.test(at)){this.consume();var xt=at.slice(5),Rt=xt.charAt(0)==="*";if(Rt&&(xt=xt.slice(1)),xt.length<2||xt.charAt(0)!==xt.slice(-1))throw new q(`\\verb assertion failed --
please report what input caused this bug`);return xt=xt.slice(1,-1),{type:"verb",mode:"text",body:xt,star:Rt}}Mi.hasOwnProperty(at[0])&&!Ar[this.mode][at[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+at[0]+'" used in math mode',We),at=Mi[at[0]]+at.slice(1));var qt=es.exec(at);qt&&(at=at.substring(0,qt.index),at==="i"?at="ı":at==="j"&&(at="ȷ"));var Kt;if(Ar[this.mode][at]){this.settings.strict&&this.mode==="math"&&Mn.indexOf(at)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+at[0]+'" used in math mode',We);var rr=Ar[this.mode][at].group,mr=Yi.range(We),Fr;if(Dr.hasOwnProperty(rr)){var Vr=rr;Fr={type:"atom",mode:this.mode,family:Vr,loc:mr,text:at}}else Fr={type:rr,mode:this.mode,loc:mr,text:at};Kt=Fr}else if(at.charCodeAt(0)>=128)this.settings.strict&&(Te(at.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+at[0]+'" used in math mode',We):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+at[0]+'"'+(" ("+at.charCodeAt(0)+")"),We)),Kt={type:"textord",mode:"text",loc:Yi.range(We),text:at};else return null;if(this.consume(),qt)for(var zr=0;zr<qt[0].length;zr++){var Hr=qt[0][zr];if(!wi[Hr])throw new q("Unknown accent ' "+Hr+"'",We);var rn=wi[Hr][this.mode]||wi[Hr].text;if(!rn)throw new q("Accent "+Hr+" unsupported in "+this.mode+" mode",We);Kt={type:"accent",mode:this.mode,loc:Yi.range(We),label:rn,isStretchy:!1,isShifty:!0,base:Kt}}return Kt},Tt}();Ki.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var bi=function(De,qe){if(!(typeof De=="string"||De instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var We=new Ki(De,qe);delete We.gullet.macros.current["\\df@tag"];var at=We.parse();if(delete We.gullet.macros.current["\\current@color"],delete We.gullet.macros.current["\\color"],We.gullet.macros.get("\\df@tag")){if(!qe.displayMode)throw new q("\\tag works only in display equations");at=[{type:"tag",mode:"text",body:at,tag:We.subparse([new La("\\df@tag")])}]}return at},$i=bi,yi=function(De,qe,We){qe.textContent="";var at=Wn(De,We).toNode();qe.appendChild(at)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yi=function(){throw new q("KaTeX doesn't work in quirks mode.")});var Ra=function(De,qe){var We=Wn(De,qe).toMarkup();return We},si=function(De,qe){var We=new L(qe);return $i(De,We)},Rn=function(De,qe,We){if(We.throwOnError||!(De instanceof q))throw De;var at=Ir.makeSpan(["katex-error"],[new Bt(qe)]);return at.setAttribute("title",De.toString()),at.setAttribute("style","color:"+We.errorColor),at},Wn=function(De,qe){var We=new L(qe);try{var at=$i(De,We);return _a(at,De,We)}catch(xt){return Rn(xt,De,We)}},Jn=function(De,qe){var We=new L(qe);try{var at=$i(De,We);return Ga(at,De,We)}catch(xt){return Rn(xt,De,We)}},Qi={version:"0.16.9",render:yi,renderToString:Ra,ParseError:q,SETTINGS_SCHEMA:W,__parse:si,__renderToDomTree:Wn,__renderToHTMLTree:Jn,__setFontMetrics:st,__defineSymbol:yt,__defineFunction:lr,__defineMacro:Qt,__domTree:{Span:Yt,Anchor:Ft,SymbolNode:Bt,SvgNode:It,PathNode:Dt,LineNode:Zt}},Ua=Qi;return G=G.default,G}()})})(katex$1);var katexExports=katex$1.exports,katex=katexExports;function isValidDelim(k,m){var M,G,V=k.posMax,q=!0,$=!0;return M=m>0?k.src.charCodeAt(m-1):-1,G=m+1<=V?k.src.charCodeAt(m+1):-1,(M===32||M===9||G>=48&&G<=57)&&($=!1),(G===32||G===9)&&(q=!1),{can_open:q,can_close:$}}function math_inline(k,m){var M,G,V,q,$;if(k.src[k.pos]!=="$")return!1;if(q=isValidDelim(k,k.pos),!q.can_open)return m||(k.pending+="$"),k.pos+=1,!0;for(M=k.pos+1,G=M;(G=k.src.indexOf("$",G))!==-1;){for($=G-1;k.src[$]==="\\";)$-=1;if((G-$)%2==1)break;G+=1}return G===-1?(m||(k.pending+="$"),k.pos=M,!0):G-M===0?(m||(k.pending+="$$"),k.pos=M+1,!0):(q=isValidDelim(k,G),q.can_close?(m||(V=k.push("math_inline","math",0),V.markup="$",V.content=k.src.slice(M,G)),k.pos=G+1,!0):(m||(k.pending+="$"),k.pos=M,!0))}function math_block(k,m,M,G){var V,q,$,D,B=!1,R,U=k.bMarks[m]+k.tShift[m],K=k.eMarks[m];if(U+2>K||k.src.slice(U,U+2)!=="$$")return!1;if(U+=2,V=k.src.slice(U,K),G)return!0;for(V.trim().slice(-2)==="$$"&&(V=V.trim().slice(0,-2),B=!0),$=m;!B&&($++,!($>=M||(U=k.bMarks[$]+k.tShift[$],K=k.eMarks[$],U<K&&k.tShift[$]<k.blkIndent)));)k.src.slice(U,K).trim().slice(-2)==="$$"&&(D=k.src.slice(0,K).lastIndexOf("$$"),q=k.src.slice(U,D),B=!0);return k.line=$+1,R=k.push("math_block","math",0),R.block=!0,R.content=(V&&V.trim()?V+`
`:"")+k.getLines(m+1,$,k.tShift[m],!0)+(q&&q.trim()?q:""),R.map=[m,k.line],R.markup="$$",!0}function escapeHtml$1(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var markdownItKatex=function(m,M){M=M||{},M.katex&&(katex=M.katex),M.blockClass||(M.blockClass="");var G=function(D){M.displayMode=!1;try{return katex.renderToString(D,M)}catch(B){return M.throwOnError&&console.log(B),`<span class='katex-error' title='${escapeHtml$1(B.toString())}'>${escapeHtml$1(D)}</span>`}},V=function(D,B){return G(D[B].content)},q=function(D){M.displayMode=!0;try{return`<p class="katex-block ${M.blockClass}">`+katex.renderToString(D,M)+"</p>"}catch(B){return M.throwOnError&&console.log(B),`<p class='katex-block katex-error ${M.blockClass}' title='${escapeHtml$1(B.toString())}'>${escapeHtml$1(D)}</p>`}},$=function(D,B){return q(D[B].content)+`
`};m.inline.ruler.after("escape","math_inline",math_inline),m.block.ruler.after("blockquote","math_block",math_block,{alt:["paragraph","reference","blockquote","list"]}),m.renderer.rules.math_inline=V,m.renderer.rules.math_block=$};const mdKatex=getDefaultExportFromCjs(markdownItKatex);function deepFreeze(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(m=>{const M=k[m],G=typeof M;(G==="object"||G==="function")&&!Object.isFrozen(M)&&deepFreeze(M)}),k}class Response{constructor(m){m.data===void 0&&(m.data={}),this.data=m.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1(k,...m){const M=Object.create(null);for(const G in k)M[G]=k[G];return m.forEach(function(G){for(const V in G)M[V]=G[V]}),M}const SPAN_CLOSE="</span>",emitsWrappingTags=k=>!!k.scope,scopeToCSSClass=(k,{prefix:m})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const M=k.split(".");return[`${m}${M.shift()}`,...M.map((G,V)=>`${G}${"_".repeat(V+1)}`)].join(" ")}return`${m}${k}`};class HTMLRenderer{constructor(m,M){this.buffer="",this.classPrefix=M.classPrefix,m.walk(this)}addText(m){this.buffer+=escapeHTML(m)}openNode(m){if(!emitsWrappingTags(m))return;const M=scopeToCSSClass(m.scope,{prefix:this.classPrefix});this.span(M)}closeNode(m){emitsWrappingTags(m)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(m){this.buffer+=`<span class="${m}">`}}const newNode=(k={})=>{const m={children:[]};return Object.assign(m,k),m};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(m){this.top.children.push(m)}openNode(m){const M=newNode({scope:m});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(m){return this.constructor._walk(m,this.rootNode)}static _walk(m,M){return typeof M=="string"?m.addText(M):M.children&&(m.openNode(M),M.children.forEach(G=>this._walk(m,G)),m.closeNode(M)),m}static _collapse(m){typeof m!="string"&&m.children&&(m.children.every(M=>typeof M=="string")?m.children=[m.children.join("")]:m.children.forEach(M=>{TokenTree._collapse(M)}))}}class TokenTreeEmitter extends TokenTree{constructor(m){super(),this.options=m}addText(m){m!==""&&this.add(m)}startScope(m){this.openNode(m)}endScope(){this.closeNode()}__addSublanguage(m,M){const G=m.root;M&&(G.scope=`language:${M}`),this.add(G)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(k){return k?typeof k=="string"?k:k.source:null}function lookahead(k){return concat("(?=",k,")")}function anyNumberOfTimes(k){return concat("(?:",k,")*")}function optional(k){return concat("(?:",k,")?")}function concat(...k){return k.map(M=>source(M)).join("")}function stripOptionsFromArgs(k){const m=k[k.length-1];return typeof m=="object"&&m.constructor===Object?(k.splice(k.length-1,1),m):{}}function either(...k){return"("+(stripOptionsFromArgs(k).capture?"":"?:")+k.map(G=>source(G)).join("|")+")"}function countMatchGroups(k){return new RegExp(k.toString()+"|").exec("").length-1}function startsWith(k,m){const M=k&&k.exec(m);return M&&M.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(k,{joinWith:m}){let M=0;return k.map(G=>{M+=1;const V=M;let q=source(G),$="";for(;q.length>0;){const D=BACKREF_RE.exec(q);if(!D){$+=q;break}$+=q.substring(0,D.index),q=q.substring(D.index+D[0].length),D[0][0]==="\\"&&D[1]?$+="\\"+String(Number(D[1])+V):($+=D[0],D[0]==="("&&M++)}return $}).map(G=>`(${G})`).join(m)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(k={})=>{const m=/^#![ ]*\//;return k.binary&&(k.begin=concat(m,/.*\b/,k.binary,/\b.*/)),inherit$1({scope:"meta",begin:m,end:/$/,relevance:0,"on:begin":(M,G)=>{M.index!==0&&G.ignoreMatch()}},k)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(k,m,M={}){const G=inherit$1({scope:"comment",begin:k,end:m,contains:[]},M);G.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const V=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return G.contains.push({begin:concat(/[ ]+/,"(",V,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),G},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(k){return Object.assign(k,{"on:begin":(m,M)=>{M.data._beginMatch=m[1]},"on:end":(m,M)=>{M.data._beginMatch!==m[1]&&M.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,APOS_STRING_MODE,BACKSLASH_ESCAPE,BINARY_NUMBER_MODE,BINARY_NUMBER_RE,COMMENT,C_BLOCK_COMMENT_MODE,C_LINE_COMMENT_MODE,C_NUMBER_MODE,C_NUMBER_RE,END_SAME_AS_BEGIN,HASH_COMMENT_MODE,IDENT_RE,MATCH_NOTHING_RE,METHOD_GUARD,NUMBER_MODE,NUMBER_RE,PHRASAL_WORDS_MODE,QUOTE_STRING_MODE,REGEXP_MODE,RE_STARTERS_RE,SHEBANG,TITLE_MODE,UNDERSCORE_IDENT_RE,UNDERSCORE_TITLE_MODE});function skipIfHasPrecedingDot(k,m){k.input[k.index-1]==="."&&m.ignoreMatch()}function scopeClassName(k,m){k.className!==void 0&&(k.scope=k.className,delete k.className)}function beginKeywords(k,m){m&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=skipIfHasPrecedingDot,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function compileIllegal(k,m){Array.isArray(k.illegal)&&(k.illegal=either(...k.illegal))}function compileMatch(k,m){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function compileRelevance(k,m){k.relevance===void 0&&(k.relevance=1)}const beforeMatchExt=(k,m)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},k);Object.keys(k).forEach(G=>{delete k[G]}),k.keywords=M.keywords,k.begin=concat(M.beforeMatch,lookahead(M.begin)),k.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},k.relevance=0,delete M.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(k,m,M=DEFAULT_KEYWORD_SCOPE){const G=Object.create(null);return typeof k=="string"?V(M,k.split(" ")):Array.isArray(k)?V(M,k):Object.keys(k).forEach(function(q){Object.assign(G,compileKeywords(k[q],m,q))}),G;function V(q,$){m&&($=$.map(D=>D.toLowerCase())),$.forEach(function(D){const B=D.split("|");G[B[0]]=[q,scoreForKeyword(B[0],B[1])]})}}function scoreForKeyword(k,m){return m?Number(m):commonKeyword(k)?0:1}function commonKeyword(k){return COMMON_KEYWORDS.includes(k.toLowerCase())}const seenDeprecations={},error$1=k=>{console.error(k)},warn=(k,...m)=>{console.log(`WARN: ${k}`,...m)},deprecated=(k,m)=>{seenDeprecations[`${k}/${m}`]||(console.log(`Deprecated as of ${k}. ${m}`),seenDeprecations[`${k}/${m}`]=!0)},MultiClassError=new Error;function remapScopeNames(k,m,{key:M}){let G=0;const V=k[M],q={},$={};for(let D=1;D<=m.length;D++)$[D+G]=V[D],q[D+G]=!0,G+=countMatchGroups(m[D-1]);k[M]=$,k[M]._emit=q,k[M]._multi=!0}function beginMultiClass(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof k.beginScope!="object"||k.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(k,k.begin,{key:"beginScope"}),k.begin=_rewriteBackreferences(k.begin,{joinWith:""})}}function endMultiClass(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof k.endScope!="object"||k.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(k,k.end,{key:"endScope"}),k.end=_rewriteBackreferences(k.end,{joinWith:""})}}function scopeSugar(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function MultiClass(k){scopeSugar(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),beginMultiClass(k),endMultiClass(k)}function compileLanguage(k){function m($,D){return new RegExp(source($),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(D?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(D,B){B.position=this.position++,this.matchIndexes[this.matchAt]=B,this.regexes.push([B,D]),this.matchAt+=countMatchGroups(D)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const D=this.regexes.map(B=>B[1]);this.matcherRe=m(_rewriteBackreferences(D,{joinWith:"|"}),!0),this.lastIndex=0}exec(D){this.matcherRe.lastIndex=this.lastIndex;const B=this.matcherRe.exec(D);if(!B)return null;const R=B.findIndex((K,z)=>z>0&&K!==void 0),U=this.matchIndexes[R];return B.splice(0,R),Object.assign(B,U)}}class G{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(D){if(this.multiRegexes[D])return this.multiRegexes[D];const B=new M;return this.rules.slice(D).forEach(([R,U])=>B.addRule(R,U)),B.compile(),this.multiRegexes[D]=B,B}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(D,B){this.rules.push([D,B]),B.type==="begin"&&this.count++}exec(D){const B=this.getMatcher(this.regexIndex);B.lastIndex=this.lastIndex;let R=B.exec(D);if(this.resumingScanAtSamePosition()&&!(R&&R.index===this.lastIndex)){const U=this.getMatcher(0);U.lastIndex=this.lastIndex+1,R=U.exec(D)}return R&&(this.regexIndex+=R.position+1,this.regexIndex===this.count&&this.considerAll()),R}}function V($){const D=new G;return $.contains.forEach(B=>D.addRule(B.begin,{rule:B,type:"begin"})),$.terminatorEnd&&D.addRule($.terminatorEnd,{type:"end"}),$.illegal&&D.addRule($.illegal,{type:"illegal"}),D}function q($,D){const B=$;if($.isCompiled)return B;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(U=>U($,D)),k.compilerExtensions.forEach(U=>U($,D)),$.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(U=>U($,D)),$.isCompiled=!0;let R=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),R=$.keywords.$pattern,delete $.keywords.$pattern),R=R||/\w+/,$.keywords&&($.keywords=compileKeywords($.keywords,k.case_insensitive)),B.keywordPatternRe=m(R,!0),D&&($.begin||($.begin=/\B|\b/),B.beginRe=m(B.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(B.endRe=m(B.end)),B.terminatorEnd=source(B.end)||"",$.endsWithParent&&D.terminatorEnd&&(B.terminatorEnd+=($.end?"|":"")+D.terminatorEnd)),$.illegal&&(B.illegalRe=m($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(U){return expandOrCloneMode(U==="self"?$:U)})),$.contains.forEach(function(U){q(U,B)}),$.starts&&q($.starts,D),B.matcher=V(B),B}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=inherit$1(k.classNameAliases||{}),q(k)}function dependencyOnParent(k){return k?k.endsWithParent||dependencyOnParent(k.starts):!1}function expandOrCloneMode(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(m){return inherit$1(k,{variants:null},m)})),k.cachedVariants?k.cachedVariants:dependencyOnParent(k)?inherit$1(k,{starts:k.starts?inherit$1(k.starts):null}):Object.isFrozen(k)?inherit$1(k):k}var version$3="11.9.0";class HTMLInjectionError extends Error{constructor(m,M){super(m),this.name="HTMLInjectionError",this.html=M}}const escape$1=escapeHTML,inherit$2=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(k){const m=Object.create(null),M=Object.create(null),G=[];let V=!0;const q="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let D={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function B(Ce){return D.noHighlightRe.test(Ce)}function R(Ce){let pe=Ce.className+" ";pe+=Ce.parentNode?Ce.parentNode.className:"";const _e=D.languageDetectRe.exec(pe);if(_e){const Ge=oe(_e[1]);return Ge||(warn(q.replace("{}",_e[1])),warn("Falling back to no-highlight mode for this block.",Ce)),Ge?_e[1]:"no-highlight"}return pe.split(/\s+/).find(Ge=>B(Ge)||oe(Ge))}function U(Ce,pe,_e){let Ge="",Ae="";typeof pe=="object"?(Ge=Ce,_e=pe.ignoreIllegals,Ae=pe.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Ae=Ce,Ge=pe),_e===void 0&&(_e=!0);const Ne={code:Ge,language:Ae};ve("before:highlight",Ne);const Ze=Ne.result?Ne.result:K(Ne.language,Ne.code,_e);return Ze.code=Ne.code,ve("after:highlight",Ze),Ze}function K(Ce,pe,_e,Ge){const Ae=Object.create(null);function Ne(rt,He){return rt.keywords[He]}function Ze(){if(!Ye.keywords){ot.addText(st);return}let rt=0;Ye.keywordPatternRe.lastIndex=0;let He=Ye.keywordPatternRe.exec(st),Je="";for(;He;){Je+=st.substring(rt,He.index);const St=Qe.case_insensitive?He[0].toLowerCase():He[0],bt=Ne(Ye,St);if(bt){const[pt,wt]=bt;if(ot.addText(Je),Je="",Ae[St]=(Ae[St]||0)+1,Ae[St]<=MAX_KEYWORD_HITS&&(dt+=wt),pt.startsWith("_"))Je+=He[0];else{const Pt=Qe.classNameAliases[pt]||pt;Fe(He[0],Pt)}}else Je+=He[0];rt=Ye.keywordPatternRe.lastIndex,He=Ye.keywordPatternRe.exec(st)}Je+=st.substring(rt),ot.addText(Je)}function ze(){if(st==="")return;let rt=null;if(typeof Ye.subLanguage=="string"){if(!m[Ye.subLanguage]){ot.addText(st);return}rt=K(Ye.subLanguage,st,!0,tt[Ye.subLanguage]),tt[Ye.subLanguage]=rt._top}else rt=e(st,Ye.subLanguage.length?Ye.subLanguage:null);Ye.relevance>0&&(dt+=rt.relevance),ot.__addSublanguage(rt._emitter,rt.language)}function Te(){Ye.subLanguage!=null?ze():Ze(),st=""}function Fe(rt,He){rt!==""&&(ot.startScope(He),ot.addText(rt),ot.endScope())}function Pe(rt,He){let Je=1;const St=He.length-1;for(;Je<=St;){if(!rt._emit[Je]){Je++;continue}const bt=Qe.classNameAliases[rt[Je]]||rt[Je],pt=He[Je];bt?Fe(pt,bt):(st=pt,Ze(),st=""),Je++}}function we(rt,He){return rt.scope&&typeof rt.scope=="string"&&ot.openNode(Qe.classNameAliases[rt.scope]||rt.scope),rt.beginScope&&(rt.beginScope._wrap?(Fe(st,Qe.classNameAliases[rt.beginScope._wrap]||rt.beginScope._wrap),st=""):rt.beginScope._multi&&(Pe(rt.beginScope,He),st="")),Ye=Object.create(rt,{parent:{value:Ye}}),Ye}function Ie(rt,He,Je){let St=startsWith(rt.endRe,Je);if(St){if(rt["on:end"]){const bt=new Response(rt);rt["on:end"](He,bt),bt.isMatchIgnored&&(St=!1)}if(St){for(;rt.endsParent&&rt.parent;)rt=rt.parent;return rt}}if(rt.endsWithParent)return Ie(rt.parent,He,Je)}function Be(rt){return Ye.matcher.regexIndex===0?(st+=rt[0],1):(ut=!0,0)}function Ke(rt){const He=rt[0],Je=rt.rule,St=new Response(Je),bt=[Je.__beforeBegin,Je["on:begin"]];for(const pt of bt)if(pt&&(pt(rt,St),St.isMatchIgnored))return Be(He);return Je.skip?st+=He:(Je.excludeBegin&&(st+=He),Te(),!Je.returnBegin&&!Je.excludeBegin&&(st=He)),we(Je,rt),Je.returnBegin?0:He.length}function Ve(rt){const He=rt[0],Je=pe.substring(rt.index),St=Ie(Ye,rt,Je);if(!St)return NO_MATCH;const bt=Ye;Ye.endScope&&Ye.endScope._wrap?(Te(),Fe(He,Ye.endScope._wrap)):Ye.endScope&&Ye.endScope._multi?(Te(),Pe(Ye.endScope,rt)):bt.skip?st+=He:(bt.returnEnd||bt.excludeEnd||(st+=He),Te(),bt.excludeEnd&&(st=He));do Ye.scope&&ot.closeNode(),!Ye.skip&&!Ye.subLanguage&&(dt+=Ye.relevance),Ye=Ye.parent;while(Ye!==St.parent);return St.starts&&we(St.starts,rt),bt.returnEnd?0:He.length}function je(){const rt=[];for(let He=Ye;He!==Qe;He=He.parent)He.scope&&rt.unshift(He.scope);rt.forEach(He=>ot.openNode(He))}let Le={};function et(rt,He){const Je=He&&He[0];if(st+=rt,Je==null)return Te(),0;if(Le.type==="begin"&&He.type==="end"&&Le.index===He.index&&Je===""){if(st+=pe.slice(He.index,He.index+1),!V){const St=new Error(`0 width match regex (${Ce})`);throw St.languageName=Ce,St.badRule=Le.rule,St}return 1}if(Le=He,He.type==="begin")return Ke(He);if(He.type==="illegal"&&!_e){const St=new Error('Illegal lexeme "'+Je+'" for mode "'+(Ye.scope||"<unnamed>")+'"');throw St.mode=Ye,St}else if(He.type==="end"){const St=Ve(He);if(St!==NO_MATCH)return St}if(He.type==="illegal"&&Je==="")return 1;if(mt>1e5&&mt>He.index*3)throw new Error("potential infinite loop, way more iterations than matches");return st+=Je,Je.length}const Qe=oe(Ce);if(!Qe)throw error$1(q.replace("{}",Ce)),new Error('Unknown language: "'+Ce+'"');const Ue=compileLanguage(Qe);let $e="",Ye=Ge||Ue;const tt={},ot=new D.__emitter(D);je();let st="",dt=0,ct=0,mt=0,ut=!1;try{if(Qe.__emitTokens)Qe.__emitTokens(pe,ot);else{for(Ye.matcher.considerAll();;){mt++,ut?ut=!1:Ye.matcher.considerAll(),Ye.matcher.lastIndex=ct;const rt=Ye.matcher.exec(pe);if(!rt)break;const He=pe.substring(ct,rt.index),Je=et(He,rt);ct=rt.index+Je}et(pe.substring(ct))}return ot.finalize(),$e=ot.toHTML(),{language:Ce,value:$e,relevance:dt,illegal:!1,_emitter:ot,_top:Ye}}catch(rt){if(rt.message&&rt.message.includes("Illegal"))return{language:Ce,value:escape$1(pe),illegal:!0,relevance:0,_illegalBy:{message:rt.message,index:ct,context:pe.slice(ct-100,ct+100),mode:rt.mode,resultSoFar:$e},_emitter:ot};if(V)return{language:Ce,value:escape$1(pe),illegal:!1,relevance:0,errorRaised:rt,_emitter:ot,_top:Ye};throw rt}}function z(Ce){const pe={value:escape$1(Ce),illegal:!1,relevance:0,_top:$,_emitter:new D.__emitter(D)};return pe._emitter.addText(Ce),pe}function e(Ce,pe){pe=pe||D.languages||Object.keys(m);const _e=z(Ce),Ge=pe.filter(oe).filter(Ee).map(Te=>K(Te,Ce,!1));Ge.unshift(_e);const Ae=Ge.sort((Te,Fe)=>{if(Te.relevance!==Fe.relevance)return Fe.relevance-Te.relevance;if(Te.language&&Fe.language){if(oe(Te.language).supersetOf===Fe.language)return 1;if(oe(Fe.language).supersetOf===Te.language)return-1}return 0}),[Ne,Ze]=Ae,ze=Ne;return ze.secondBest=Ze,ze}function ae(Ce,pe,_e){const Ge=pe&&M[pe]||_e;Ce.classList.add("hljs"),Ce.classList.add(`language-${Ge}`)}function ie(Ce){let pe=null;const _e=R(Ce);if(B(_e))return;if(ve("before:highlightElement",{el:Ce,language:_e}),Ce.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ce);return}if(Ce.children.length>0&&(D.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ce)),D.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",Ce.innerHTML);pe=Ce;const Ge=pe.textContent,Ae=_e?U(Ge,{language:_e,ignoreIllegals:!0}):e(Ge);Ce.innerHTML=Ae.value,Ce.dataset.highlighted="yes",ae(Ce,_e,Ae.language),Ce.result={language:Ae.language,re:Ae.relevance,relevance:Ae.relevance},Ae.secondBest&&(Ce.secondBest={language:Ae.secondBest.language,relevance:Ae.secondBest.relevance}),ve("after:highlightElement",{el:Ce,result:Ae,text:Ge})}function he(Ce){D=inherit$2(D,Ce)}const J=()=>{L(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){L(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let X=!1;function L(){if(document.readyState==="loading"){X=!0;return}document.querySelectorAll(D.cssSelector).forEach(ie)}function Q(){X&&L()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Q,!1);function ce(Ce,pe){let _e=null;try{_e=pe(k)}catch(Ge){if(error$1("Language definition for '{}' could not be registered.".replace("{}",Ce)),V)error$1(Ge);else throw Ge;_e=$}_e.name||(_e.name=Ce),m[Ce]=_e,_e.rawDefinition=pe.bind(null,k),_e.aliases&&me(_e.aliases,{languageName:Ce})}function de(Ce){delete m[Ce];for(const pe of Object.keys(M))M[pe]===Ce&&delete M[pe]}function se(){return Object.keys(m)}function oe(Ce){return Ce=(Ce||"").toLowerCase(),m[Ce]||m[M[Ce]]}function me(Ce,{languageName:pe}){typeof Ce=="string"&&(Ce=[Ce]),Ce.forEach(_e=>{M[_e.toLowerCase()]=pe})}function Ee(Ce){const pe=oe(Ce);return pe&&!pe.disableAutodetect}function ke(Ce){Ce["before:highlightBlock"]&&!Ce["before:highlightElement"]&&(Ce["before:highlightElement"]=pe=>{Ce["before:highlightBlock"](Object.assign({block:pe.el},pe))}),Ce["after:highlightBlock"]&&!Ce["after:highlightElement"]&&(Ce["after:highlightElement"]=pe=>{Ce["after:highlightBlock"](Object.assign({block:pe.el},pe))})}function xe(Ce){ke(Ce),G.push(Ce)}function fe(Ce){const pe=G.indexOf(Ce);pe!==-1&&G.splice(pe,1)}function ve(Ce,pe){const _e=Ce;G.forEach(function(Ge){Ge[_e]&&Ge[_e](pe)})}function ye(Ce){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),ie(Ce)}Object.assign(k,{highlight:U,highlightAuto:e,highlightAll:L,highlightElement:ie,highlightBlock:ye,configure:he,initHighlighting:J,initHighlightingOnLoad:W,registerLanguage:ce,unregisterLanguage:de,listLanguages:se,getLanguage:oe,registerAliases:me,autoDetection:Ee,inherit:inherit$2,addPlugin:xe,removePlugin:fe}),k.debugMode=function(){V=!1},k.safeMode=function(){V=!0},k.versionString=version$3,k.regex={concat,lookahead,either,optional,anyNumberOfTimes};for(const Ce in MODES)typeof MODES[Ce]=="object"&&deepFreeze(MODES[Ce]);return Object.assign(k,MODES),k},highlight=HLJS({});highlight.newInstance=()=>HLJS({});var core=highlight;highlight.HighlightJS=highlight;highlight.default=highlight;var _1c_1,hasRequired_1c;function require_1c(){if(hasRequired_1c)return _1c_1;hasRequired_1c=1;function k(m){const M="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",q="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",B="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",R="разделительстраниц разделительстрок символтабуляции ",U="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",K="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",z="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",e=R+U+K+z,ae="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",ie="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",he="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",J="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",W="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",X="отображениевремениэлементовпланировщика ",L="типфайлаформатированногодокумента ",Q="обходрезультатазапроса типзаписизапроса ",ce="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",de="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",se="типизмеренияпостроителязапроса ",oe="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",me="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",Ee="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",ke="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",xe="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",fe="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",ve="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",ye="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",Ce="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",pe="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",_e="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",Ge=ae+ie+he+J+W+X+L+Q+ce+de+se+oe+me+Ee+ke+xe+fe+ve+ye+Ce+pe+_e,Ze="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ze="null истина ложь неопределено",Te=m.inherit(m.NUMBER_MODE),Fe={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Pe={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},we=m.inherit(m.C_LINE_COMMENT_MODE),Ie={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:M,keyword:q+B},contains:[we]},Be={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},Ke={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:M,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:M,keyword:"знач",literal:ze},contains:[Te,Fe,Pe]},we]},m.inherit(m.TITLE_MODE,{begin:M})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:M,keyword:q,built_in:e,class:Ge,type:Ze,literal:ze},contains:[Ie,Ke,we,Be,Te,Fe,Pe]}}return _1c_1=k,_1c_1}var abnf_1,hasRequiredAbnf;function requireAbnf(){if(hasRequiredAbnf)return abnf_1;hasRequiredAbnf=1;function k(m){const M=m.regex,G=/^[a-zA-Z][a-zA-Z0-9-]*/,V=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],q=m.COMMENT(/;/,/$/),$={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},D={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},B={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},R={scope:"symbol",match:/%[si](?=".*")/},U={scope:"attribute",match:M.concat(G,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:V,contains:[{scope:"operator",match:/=\/?/},U,q,$,D,B,R,m.QUOTE_STRING_MODE,m.NUMBER_MODE]}}return abnf_1=k,abnf_1}var accesslog_1,hasRequiredAccesslog;function requireAccesslog(){if(hasRequiredAccesslog)return accesslog_1;hasRequiredAccesslog=1;function k(m){const M=m.regex,G=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:M.concat(/"/,M.either(...G)),end:/"/,keywords:G,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return accesslog_1=k,accesslog_1}var actionscript_1,hasRequiredActionscript;function requireActionscript(){if(hasRequiredActionscript)return actionscript_1;hasRequiredActionscript=1;function k(m){const M=m.regex,G=/[a-zA-Z_$][a-zA-Z0-9_$]*/,V=M.concat(G,M.concat("(\\.",G,")*")),q=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,$={className:"rest_arg",begin:/[.]{3}/,end:G,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,V],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,G],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[m.inherit(m.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,$]},{begin:M.concat(/:\s*/,q)}]},m.METHOD_GUARD],illegal:/#/}}return actionscript_1=k,actionscript_1}var ada_1,hasRequiredAda;function requireAda(){if(hasRequiredAda)return ada_1;hasRequiredAda=1;function k(m){const M="\\d(_|\\d)*",G="[eE][-+]?"+M,V=M+"(\\."+M+")?("+G+")?",q="\\w+",D="\\b("+(M+"#"+q+"(\\."+q+")?#("+G+")?")+"|"+V+")",B="[A-Za-z](_?[A-Za-z0-9.])*",R=`[]\\{\\}%#'"`,U=m.COMMENT("--","$"),K={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:R,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:B,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[U,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:D,relevance:0},{className:"symbol",begin:"'"+B},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:R},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[U,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:R},K,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:R}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:R},K]}}return ada_1=k,ada_1}var angelscript_1,hasRequiredAngelscript;function requireAngelscript(){if(hasRequiredAngelscript)return angelscript_1;hasRequiredAngelscript=1;function k(m){const M={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},G={className:"symbol",begin:"[a-zA-Z0-9_]+@"},V={className:"keyword",begin:"<",end:">",contains:[M,G]};return M.contains=[V],G.contains=[V],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE],relevance:0},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},M,G,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return angelscript_1=k,angelscript_1}var apache_1,hasRequiredApache;function requireApache(){if(hasRequiredApache)return apache_1;hasRequiredApache=1;function k(m){const M={className:"number",begin:/[$%]\d+/},G={className:"number",begin:/\b\d+/},V={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},q={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[m.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[V,q,m.inherit(m.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",M]},V,G,m.QUOTE_STRING_MODE]}}],illegal:/\S/}}return apache_1=k,apache_1}var applescript_1,hasRequiredApplescript;function requireApplescript(){if(hasRequiredApplescript)return applescript_1;hasRequiredApplescript=1;function k(m){const M=m.regex,G=m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),V={className:"params",begin:/\(/,end:/\)/,contains:["self",m.C_NUMBER_MODE,G]},q=m.COMMENT(/--/,/$/),$=m.COMMENT(/\(\*/,/\*\)/,{contains:["self",q]}),D=[q,$,m.HASH_COMMENT_MODE],B=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],R=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[G,m.C_NUMBER_MODE,{className:"built_in",begin:M.concat(/\b/,M.either(...R),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:M.concat(/\b/,M.either(...B),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[m.UNDERSCORE_TITLE_MODE,V]},...D],illegal:/\/\/|->|=>|\[\[/}}return applescript_1=k,applescript_1}var arcade_1,hasRequiredArcade;function requireArcade(){if(hasRequiredArcade)return arcade_1;hasRequiredArcade=1;function k(m){const M="[A-Za-z_][0-9A-Za-z_]*",G={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},V={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},q={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:m.C_NUMBER_RE}],relevance:0},$={className:"subst",begin:"\\$\\{",end:"\\}",keywords:G,contains:[]},D={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,$]};$.contains=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,D,q,m.REGEXP_MODE];const B=$.contains.concat([m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:G,contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,D,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,V,q,{begin:/[{,]\s*/,relevance:0,contains:[{begin:M+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:M,relevance:0}]}]},{begin:"("+m.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+M+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:M},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:G,contains:B}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[m.inherit(m.TITLE_MODE,{className:"title.function",begin:M}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:B}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return arcade_1=k,arcade_1}var arduino_1,hasRequiredArduino;function requireArduino(){if(hasRequiredArduino)return arduino_1;hasRequiredArduino=1;function k(M){const G=M.regex,V=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),q="decltype\\(auto\\)",$="[a-zA-Z_]\\w*::",D="<[^<>]+>",B="(?!struct)("+q+"|"+G.optional($)+"[a-zA-Z_]\\w*"+G.optional(D)+")",R={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},U="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+U+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},z={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},e={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},V,M.C_BLOCK_COMMENT_MODE]},ae={className:"title",begin:G.optional($)+M.IDENT_RE,relevance:0},ie=G.optional($)+M.IDENT_RE+"\\s*\\(",he=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],J=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],W=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],X=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],ce={type:J,keyword:he,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:W},de={className:"function.dispatch",relevance:0,keywords:{_hint:X},begin:G.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,M.IDENT_RE,G.lookahead(/(<[^<>]+>|)\s*\(/))},se=[de,e,R,V,M.C_BLOCK_COMMENT_MODE,z,K],oe={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:ce,contains:se.concat([{begin:/\(/,end:/\)/,keywords:ce,contains:se.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+B+"[\\*&\\s]+)+"+ie,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:ce,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:q,keywords:ce,relevance:0},{begin:ie,returnBegin:!0,contains:[ae],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[K,z]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:ce,relevance:0,contains:[V,M.C_BLOCK_COMMENT_MODE,K,z,R,{begin:/\(/,end:/\)/,keywords:ce,relevance:0,contains:["self",V,M.C_BLOCK_COMMENT_MODE,K,z,R]}]},R,V,M.C_BLOCK_COMMENT_MODE,e]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:ce,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(oe,me,de,se,[e,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:ce,contains:["self",R]},{begin:M.IDENT_RE+"::",keywords:ce},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function m(M){const G={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},V=k(M),q=V.keywords;return q.type=[...q.type,...G.type],q.literal=[...q.literal,...G.literal],q.built_in=[...q.built_in,...G.built_in],q._hints=G._hints,V.name="Arduino",V.aliases=["ino"],V.supersetOf="cpp",V}return arduino_1=m,arduino_1}var armasm_1,hasRequiredArmasm;function requireArmasm(){if(hasRequiredArmasm)return armasm_1;hasRequiredArmasm=1;function k(m){const M={variants:[m.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),m.COMMENT("[;@]","$",{relevance:0}),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+m.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},M,m.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return armasm_1=k,armasm_1}var xml_1,hasRequiredXml;function requireXml(){if(hasRequiredXml)return xml_1;hasRequiredXml=1;function k(m){const M=m.regex,G=M.concat(/[\p{L}_]/u,M.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),V=/[\p{L}0-9._:-]+/u,q={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},$={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},D=m.inherit($,{begin:/\(/,end:/\)/}),B=m.inherit(m.APOS_STRING_MODE,{className:"string"}),R=m.inherit(m.QUOTE_STRING_MODE,{className:"string"}),U={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:V,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[q]},{begin:/'/,end:/'/,contains:[q]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[$,R,B,D,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[$,D,R,B]}]}]},m.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},q,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[R]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[U],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[U],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:M.concat(/</,M.lookahead(M.concat(G,M.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:G,relevance:0,starts:U}]},{className:"tag",begin:M.concat(/<\//,M.lookahead(M.concat(G,/>/))),contains:[{className:"name",begin:G,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return xml_1=k,xml_1}var asciidoc_1,hasRequiredAsciidoc;function requireAsciidoc(){if(hasRequiredAsciidoc)return asciidoc_1;hasRequiredAsciidoc=1;function k(m){const M=m.regex,G={begin:"^'{3,}[ \\t]*$",relevance:10},V=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],q=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:M.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],$=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:M.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],D={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},B={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[m.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),m.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},B,D,...V,...q,...$,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},G,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return asciidoc_1=k,asciidoc_1}var aspectj_1,hasRequiredAspectj;function requireAspectj(){if(hasRequiredAspectj)return aspectj_1;hasRequiredAspectj=1;function k(m){const M=m.regex,G=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],V=["get","set","args","call"];return{name:"AspectJ",keywords:G,illegal:/<\/|#/,contains:[m.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},m.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:G.concat(V),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},m.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:M.concat(m.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[m.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:G,illegal:/["\[\]]/,contains:[{begin:M.concat(m.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:G.concat(V),relevance:0},m.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:G,excludeEnd:!0,contains:[{begin:M.concat(m.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[m.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:G,contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},m.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return aspectj_1=k,aspectj_1}var autohotkey_1,hasRequiredAutohotkey;function requireAutohotkey(){if(hasRequiredAutohotkey)return autohotkey_1;hasRequiredAutohotkey=1;function k(m){const M={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[M,m.inherit(m.QUOTE_STRING_MODE,{contains:[M]}),m.COMMENT(";","$",{relevance:0}),m.C_BLOCK_COMMENT_MODE,{className:"number",begin:m.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return autohotkey_1=k,autohotkey_1}var autoit_1,hasRequiredAutoit;function requireAutoit(){if(hasRequiredAutoit)return autoit_1;hasRequiredAutoit=1;function k(m){const M="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",G=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],V="True False And Null Not Or Default",q="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",$={variants:[m.COMMENT(";","$",{relevance:0}),m.COMMENT("#cs","#ce"),m.COMMENT("#comments-start","#comments-end")]},D={begin:"\\$[A-z0-9_]+"},B={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},R={variants:[m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE]},U={className:"meta",begin:"#",end:"$",keywords:{keyword:G},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[B,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},B,$]},K={className:"symbol",begin:"@[A-z0-9_]+"},z={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[m.inherit(m.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[D,B,R]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:M,built_in:q,literal:V},contains:[$,D,B,R,U,K,z]}}return autoit_1=k,autoit_1}var avrasm_1,hasRequiredAvrasm;function requireAvrasm(){if(hasRequiredAvrasm)return avrasm_1;hasRequiredAvrasm=1;function k(m){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+m.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[m.C_BLOCK_COMMENT_MODE,m.COMMENT(";","$",{relevance:0}),m.C_NUMBER_MODE,m.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},m.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return avrasm_1=k,avrasm_1}var awk_1,hasRequiredAwk;function requireAwk(){if(hasRequiredAwk)return awk_1;hasRequiredAwk=1;function k(m){const M={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},G="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",V={className:"string",contains:[m.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:G},contains:[M,V,m.REGEXP_MODE,m.HASH_COMMENT_MODE,m.NUMBER_MODE]}}return awk_1=k,awk_1}var axapta_1,hasRequiredAxapta;function requireAxapta(){if(hasRequiredAxapta)return axapta_1;hasRequiredAxapta=1;function k(m){const M=m.UNDERSCORE_IDENT_RE,$={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},D={variants:[{match:[/(class|interface)\s+/,M,/\s+(extends|implements)\s+/,M]},{match:[/class\s+/,M]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:$};return{name:"X++",aliases:["x++"],keywords:$,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},D]}}return axapta_1=k,axapta_1}var bash_1,hasRequiredBash;function requireBash(){if(hasRequiredBash)return bash_1;hasRequiredBash=1;function k(m){const M=m.regex,G={},V={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[G]}]};Object.assign(G,{className:"variable",variants:[{begin:M.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},V]});const q={className:"subst",begin:/\$\(/,end:/\)/,contains:[m.BACKSLASH_ESCAPE]},$={begin:/<<-?\s*(?=\w+)/,starts:{contains:[m.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},D={className:"string",begin:/"/,end:/"/,contains:[m.BACKSLASH_ESCAPE,G,q]};q.contains.push(D);const B={match:/\\"/},R={className:"string",begin:/'/,end:/'/},U={match:/\\'/},K={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},m.NUMBER_MODE,G]},z=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],e=m.SHEBANG({binary:`(${z.join("|")})`,relevance:10}),ae={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[m.inherit(m.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},ie=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],he=["true","false"],J={match:/(\/[a-z._-]+)+/},W=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],X=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],L=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],Q=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:ie,literal:he,built_in:[...W,...X,"set","shopt",...L,...Q]},contains:[e,m.SHEBANG(),ae,K,m.HASH_COMMENT_MODE,$,J,D,B,R,U,G]}}return bash_1=k,bash_1}var basic_1,hasRequiredBasic;function requireBasic(){if(hasRequiredBasic)return basic_1;hasRequiredBasic=1;function k(m){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[m.QUOTE_STRING_MODE,m.COMMENT("REM","$",{relevance:10}),m.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return basic_1=k,basic_1}var bnf_1,hasRequiredBnf;function requireBnf(){if(hasRequiredBnf)return bnf_1;hasRequiredBnf=1;function k(m){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]}]}}return bnf_1=k,bnf_1}var brainfuck_1,hasRequiredBrainfuck;function requireBrainfuck(){if(hasRequiredBrainfuck)return brainfuck_1;hasRequiredBrainfuck=1;function k(m){const M={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[m.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[M]},M]}}return brainfuck_1=k,brainfuck_1}var c_1,hasRequiredC;function requireC(){if(hasRequiredC)return c_1;hasRequiredC=1;function k(m){const M=m.regex,G=m.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),V="decltype\\(auto\\)",q="[a-zA-Z_]\\w*::",$="<[^<>]+>",D="("+V+"|"+M.optional(q)+"[a-zA-Z_]\\w*"+M.optional($)+")",B={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},R="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",U={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+R+"|.)",end:"'",illegal:"."},m.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},K={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},z={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},m.inherit(U,{className:"string"}),{className:"string",begin:/<.*?>/},G,m.C_BLOCK_COMMENT_MODE]},e={className:"title",begin:M.optional(q)+m.IDENT_RE,relevance:0},ae=M.optional(q)+m.IDENT_RE+"\\s*\\(",J={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},W=[z,B,G,m.C_BLOCK_COMMENT_MODE,K,U],X={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:J,contains:W.concat([{begin:/\(/,end:/\)/,keywords:J,contains:W.concat(["self"]),relevance:0}]),relevance:0},L={begin:"("+D+"[\\*&\\s]+)+"+ae,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:J,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:V,keywords:J,relevance:0},{begin:ae,returnBegin:!0,contains:[m.inherit(e,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:[G,m.C_BLOCK_COMMENT_MODE,U,K,B,{begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:["self",G,m.C_BLOCK_COMMENT_MODE,U,K,B]}]},B,G,m.C_BLOCK_COMMENT_MODE,z]};return{name:"C",aliases:["h"],keywords:J,disableAutodetect:!0,illegal:"</",contains:[].concat(X,L,W,[z,{begin:m.IDENT_RE+"::",keywords:J},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},m.TITLE_MODE]}]),exports:{preprocessor:z,strings:U,keywords:J}}}return c_1=k,c_1}var cal_1,hasRequiredCal;function requireCal(){if(hasRequiredCal)return cal_1;hasRequiredCal=1;function k(m){const M=m.regex,G=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],V="false true",q=[m.C_LINE_COMMENT_MODE,m.COMMENT(/\{/,/\}/,{relevance:0}),m.COMMENT(/\(\*/,/\*\)/,{relevance:10})],$={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},D={className:"string",begin:/(#\d+)+/},B={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},R={className:"string",begin:'"',end:'"'},U={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,contains:[$,D,m.NUMBER_MODE]},...q]},K=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],z={match:[/OBJECT/,/\s+/,M.either(...K),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:G,literal:V},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},$,D,B,R,m.NUMBER_MODE,z,U]}}return cal_1=k,cal_1}var capnproto_1,hasRequiredCapnproto;function requireCapnproto(){if(hasRequiredCapnproto)return capnproto_1;hasRequiredCapnproto=1;function k(m){const M=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],G=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],V=["true","false"],q={variants:[{match:[/(struct|enum|interface)/,/\s+/,m.IDENT_RE]},{match:[/extends/,/\s*\(/,m.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Capn Proto",aliases:["capnp"],keywords:{keyword:M,type:G,literal:V},contains:[m.QUOTE_STRING_MODE,m.NUMBER_MODE,m.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},q]}}return capnproto_1=k,capnproto_1}var ceylon_1,hasRequiredCeylon;function requireCeylon(){if(hasRequiredCeylon)return ceylon_1;hasRequiredCeylon=1;function k(m){const M=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],G=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],V=["doc","by","license","see","throws","tagged"],q={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:M,relevance:10},$=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[q]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return q.contains=$,{name:"Ceylon",keywords:{keyword:M.concat(G),meta:V},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[m.C_LINE_COMMENT_MODE,m.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat($)}}return ceylon_1=k,ceylon_1}var clean_1,hasRequiredClean;function requireClean(){if(hasRequiredClean)return clean_1;hasRequiredClean=1;function k(m){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return clean_1=k,clean_1}var clojure_1,hasRequiredClojure;function requireClojure(){if(hasRequiredClojure)return clojure_1;hasRequiredClojure=1;function k(m){const M="a-zA-Z_\\-!.?+*=<>&'",G="[#]?["+M+"]["+M+"0-9/;:$#]*",V="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",q={$pattern:G,built_in:V+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},$={begin:G,relevance:0},D={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},B={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},R={scope:"regex",begin:/#"/,end:/"/,contains:[m.BACKSLASH_ESCAPE]},U=m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),K={scope:"punctuation",match:/,/,relevance:0},z=m.COMMENT(";","$",{relevance:0}),e={className:"literal",begin:/\b(true|false|nil)\b/},ae={begin:"\\[|(#::?"+G+")?\\{",end:"[\\]\\}]",relevance:0},ie={className:"symbol",begin:"[:]{1,2}"+G},he={begin:"\\(",end:"\\)"},J={endsWithParent:!0,relevance:0},W={keywords:q,className:"name",begin:G,relevance:0,starts:J},X=[K,he,B,R,U,z,ie,ae,D,e,$],L={beginKeywords:V,keywords:{$pattern:G,keyword:V},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:G,relevance:0,excludeEnd:!0,endsParent:!0}].concat(X)};return he.contains=[L,W,J],J.contains=X,ae.contains=X,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[K,he,B,R,U,z,ie,ae,D,e]}}return clojure_1=k,clojure_1}var clojureRepl_1,hasRequiredClojureRepl;function requireClojureRepl(){if(hasRequiredClojureRepl)return clojureRepl_1;hasRequiredClojureRepl=1;function k(m){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return clojureRepl_1=k,clojureRepl_1}var cmake_1,hasRequiredCmake;function requireCmake(){if(hasRequiredCmake)return cmake_1;hasRequiredCmake=1;function k(m){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},m.COMMENT(/#\[\[/,/]]/),m.HASH_COMMENT_MODE,m.QUOTE_STRING_MODE,m.NUMBER_MODE]}}return cmake_1=k,cmake_1}var coffeescript_1,hasRequiredCoffeescript;function requireCoffeescript(){if(hasRequiredCoffeescript)return coffeescript_1;hasRequiredCoffeescript=1;const k=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],m=["true","false","null","undefined","NaN","Infinity"],M=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],G=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],V=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],q=[].concat(V,M,G);function $(D){const B=["npm","print"],R=["yes","no","on","off"],U=["then","unless","until","loop","by","when","and","or","is","isnt","not"],K=["var","const","let","function","static"],z=Q=>ce=>!Q.includes(ce),e={keyword:k.concat(U).filter(z(K)),literal:m.concat(R),built_in:q.concat(B)},ae="[A-Za-z$_][0-9A-Za-z$_]*",ie={className:"subst",begin:/#\{/,end:/\}/,keywords:e},he=[D.BINARY_NUMBER_MODE,D.inherit(D.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[D.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[D.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[D.BACKSLASH_ESCAPE,ie]},{begin:/"/,end:/"/,contains:[D.BACKSLASH_ESCAPE,ie]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[ie,D.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+ae},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];ie.contains=he;const J=D.inherit(D.TITLE_MODE,{begin:ae}),W="(\\(.*\\)\\s*)?\\B[-=]>",X={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:e,contains:["self"].concat(he)}]},L={variants:[{match:[/class\s+/,ae,/\s+extends\s+/,ae]},{match:[/class\s+/,ae]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:e};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:e,illegal:/\/\*/,contains:[...he,D.COMMENT("###","###"),D.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+ae+"\\s*=\\s*"+W,end:"[-=]>",returnBegin:!0,contains:[J,X]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:W,end:"[-=]>",returnBegin:!0,contains:[X]}]},L,{begin:ae+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return coffeescript_1=$,coffeescript_1}var coq_1,hasRequiredCoq;function requireCoq(){if(hasRequiredCoq)return coq_1;hasRequiredCoq=1;function k(m){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[m.QUOTE_STRING_MODE,m.COMMENT("\\(\\*","\\*\\)"),m.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return coq_1=k,coq_1}var cos_1,hasRequiredCos;function requireCos(){if(hasRequiredCos)return cos_1;hasRequiredCos=1;function k(m){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return cos_1=k,cos_1}var cpp_1,hasRequiredCpp;function requireCpp(){if(hasRequiredCpp)return cpp_1;hasRequiredCpp=1;function k(m){const M=m.regex,G=m.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),V="decltype\\(auto\\)",q="[a-zA-Z_]\\w*::",$="<[^<>]+>",D="(?!struct)("+V+"|"+M.optional(q)+"[a-zA-Z_]\\w*"+M.optional($)+")",B={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},R="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",U={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+R+"|.)",end:"'",illegal:"."},m.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},K={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},z={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},m.inherit(U,{className:"string"}),{className:"string",begin:/<.*?>/},G,m.C_BLOCK_COMMENT_MODE]},e={className:"title",begin:M.optional(q)+m.IDENT_RE,relevance:0},ae=M.optional(q)+m.IDENT_RE+"\\s*\\(",ie=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],he=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],J=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],W=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],Q={type:he,keyword:ie,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:J},ce={className:"function.dispatch",relevance:0,keywords:{_hint:W},begin:M.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,m.IDENT_RE,M.lookahead(/(<[^<>]+>|)\s*\(/))},de=[ce,z,B,G,m.C_BLOCK_COMMENT_MODE,K,U],se={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:de.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:de.concat(["self"]),relevance:0}]),relevance:0},oe={className:"function",begin:"("+D+"[\\*&\\s]+)+"+ae,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:V,keywords:Q,relevance:0},{begin:ae,returnBegin:!0,contains:[e],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[U,K]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[G,m.C_BLOCK_COMMENT_MODE,U,K,B,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",G,m.C_BLOCK_COMMENT_MODE,U,K,B]}]},B,G,m.C_BLOCK_COMMENT_MODE,z]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(se,oe,ce,de,[z,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:Q,contains:["self",B]},{begin:m.IDENT_RE+"::",keywords:Q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return cpp_1=k,cpp_1}var crmsh_1,hasRequiredCrmsh;function requireCrmsh(){if(hasRequiredCrmsh)return crmsh_1;hasRequiredCrmsh=1;function k(m){const M="primitive rsc_template",G="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",V="property rsc_defaults op_defaults",q="params meta operations op rule attributes utilization",$="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",D="number string",B="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:q+" "+$+" "+D,literal:B},contains:[m.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:M,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+G.split(" ").join("|")+")\\s+",keywords:G,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:V,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},m.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return crmsh_1=k,crmsh_1}var crystal_1,hasRequiredCrystal;function requireCrystal(){if(hasRequiredCrystal)return crystal_1;hasRequiredCrystal=1;function k(m){const M="(_?[ui](8|16|32|64|128))?",G="(_?f(32|64))?",V="[a-zA-Z_]\\w*[!?=]?",q="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",$="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",D={$pattern:V,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},B={className:"subst",begin:/#\{/,end:/\}/,keywords:D},R={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},U={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:D};function K(W,X){const L=[{begin:W,end:X}];return L[0].contains=L,L}const z={className:"string",contains:[m.BACKSLASH_ESCAPE,B],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:K("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:K("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:K(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:K("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},e={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:K("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:K("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:K(/\{/,/\}/)},{begin:"%q<",end:">",contains:K("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},ae={begin:"(?!%\\})("+m.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[m.BACKSLASH_ESCAPE,B],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},ie={className:"regexp",contains:[m.BACKSLASH_ESCAPE,B],variants:[{begin:"%r\\(",end:"\\)",contains:K("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:K("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:K(/\{/,/\}/)},{begin:"%r<",end:">",contains:K("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},he={className:"meta",begin:"@\\[",end:"\\]",contains:[m.inherit(m.QUOTE_STRING_MODE,{className:"string"})]},J=[U,z,e,ie,ae,he,R,m.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[m.HASH_COMMENT_MODE,m.inherit(m.TITLE_MODE,{begin:$}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[m.HASH_COMMENT_MODE,m.inherit(m.TITLE_MODE,{begin:$})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[m.HASH_COMMENT_MODE,m.inherit(m.TITLE_MODE,{begin:$})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[m.inherit(m.TITLE_MODE,{begin:q,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[m.inherit(m.TITLE_MODE,{begin:q,endsParent:!0})],relevance:2},{className:"symbol",begin:m.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[z,{begin:q}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+M},{begin:"\\b0o([0-7_]+)"+M},{begin:"\\b0x([A-Fa-f0-9_]+)"+M},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+G+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+M}],relevance:0}];return B.contains=J,U.contains=J.slice(1),{name:"Crystal",aliases:["cr"],keywords:D,contains:J}}return crystal_1=k,crystal_1}var csharp_1,hasRequiredCsharp;function requireCsharp(){if(hasRequiredCsharp)return csharp_1;hasRequiredCsharp=1;function k(m){const M=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],G=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],V=["default","false","null","true"],q=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],$=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],D={keyword:q.concat($),built_in:M,literal:V},B=m.inherit(m.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),R={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},U={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},K=m.inherit(U,{illegal:/\n/}),z={className:"subst",begin:/\{/,end:/\}/,keywords:D},e=m.inherit(z,{illegal:/\n/}),ae={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},m.BACKSLASH_ESCAPE,e]},ie={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},z]},he=m.inherit(ie,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},e]});z.contains=[ie,ae,U,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,R,m.C_BLOCK_COMMENT_MODE],e.contains=[he,ae,K,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,R,m.inherit(m.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const J={variants:[ie,ae,U,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},W={begin:"<",end:">",contains:[{beginKeywords:"in out"},B]},X=m.IDENT_RE+"(<"+m.IDENT_RE+"(\\s*,\\s*"+m.IDENT_RE+")*>)?(\\[\\])?",L={begin:"@"+m.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:D,illegal:/::/,contains:[m.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},J,R,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},B,W,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[B,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[B,W,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+X+"\\s+)+"+m.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:D,contains:[{beginKeywords:G.join(" "),relevance:0},{begin:m.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[m.TITLE_MODE,W],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:D,relevance:0,contains:[J,R,m.C_BLOCK_COMMENT_MODE]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},L]}}return csharp_1=k,csharp_1}var csp_1,hasRequiredCsp;function requireCsp(){if(hasRequiredCsp)return csp_1;hasRequiredCsp=1;function k(m){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return csp_1=k,csp_1}var css_1,hasRequiredCss;function requireCss(){if(hasRequiredCss)return css_1;hasRequiredCss=1;const k=D=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:D.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[D.APOS_STRING_MODE,D.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:D.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],M=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],G=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],V=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],q=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function $(D){const B=D.regex,R=k(D),U={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},K="and or not only",z=/@-?\w[\w]*(-\w+)*/,e="[a-zA-Z-][a-zA-Z0-9_-]*",ae=[D.APOS_STRING_MODE,D.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[R.BLOCK_COMMENT,U,R.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+e,relevance:0},R.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+G.join("|")+")"},{begin:":(:)?("+V.join("|")+")"}]},R.CSS_VARIABLE,{className:"attribute",begin:"\\b("+q.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[R.BLOCK_COMMENT,R.HEXCOLOR,R.IMPORTANT,R.CSS_NUMBER_MODE,...ae,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...ae,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},R.FUNCTION_DISPATCH]},{begin:B.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:z},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:K,attribute:M.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...ae,R.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+m.join("|")+")\\b"}]}}return css_1=$,css_1}var d_1,hasRequiredD;function requireD(){if(hasRequiredD)return d_1;hasRequiredD=1;function k(m){const M={$pattern:m.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},G="(0|[1-9][\\d_]*)",V="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",q="0[bB][01_]+",$="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",D="0[xX]"+$,B="([eE][+-]?"+V+")",R="("+V+"(\\.\\d*|"+B+")|\\d+\\."+V+"|\\."+G+B+"?)",U="(0[xX]("+$+"\\."+$+"|\\.?"+$+")[pP][+-]?"+V+")",K="("+G+"|"+q+"|"+D+")",z="("+U+"|"+R+")",e=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,ae={className:"number",begin:"\\b"+K+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},ie={className:"number",begin:"\\b("+z+"([fF]|L|i|[fF]i|Li)?|"+K+"(i|[fF]i|Li))",relevance:0},he={className:"string",begin:"'("+e+"|.)",end:"'",illegal:"."},W={className:"string",begin:'"',contains:[{begin:e,relevance:0}],end:'"[cwd]?'},X={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},L={className:"string",begin:"`",end:"`[cwd]?"},Q={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},ce={className:"string",begin:'q"\\{',end:'\\}"'},de={className:"meta",begin:"^#!",end:"$",relevance:5},se={className:"meta",begin:"#(line)",end:"$",relevance:5},oe={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},me=m.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:M,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,me,Q,W,X,L,ce,ie,ae,he,de,se,oe]}}return d_1=k,d_1}var markdown_1,hasRequiredMarkdown;function requireMarkdown(){if(hasRequiredMarkdown)return markdown_1;hasRequiredMarkdown=1;function k(m){const M=m.regex,G={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},V={begin:"^[-\\*]{3,}",end:"$"},q={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},$={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},D={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},B=/[A-Za-z][A-Za-z0-9+.-]*/,R={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:M.concat(/\[.+?\]\(/,B,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},U={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},K={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},z=m.inherit(U,{contains:[]}),e=m.inherit(K,{contains:[]});U.contains.push(e),K.contains.push(z);let ae=[G,R];return[U,K,z,e].forEach(J=>{J.contains=J.contains.concat(ae)}),ae=ae.concat(U,K),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:ae},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:ae}]}]},G,$,U,K,{className:"quote",begin:"^>\\s+",contains:ae,end:"$"},q,V,R,D]}}return markdown_1=k,markdown_1}var dart_1,hasRequiredDart;function requireDart(){if(hasRequiredDart)return dart_1;hasRequiredDart=1;function k(m){const M={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},G={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},V={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[m.BACKSLASH_ESCAPE,M,G]},{begin:'"""',end:'"""',contains:[m.BACKSLASH_ESCAPE,M,G]},{begin:"'",end:"'",illegal:"\\n",contains:[m.BACKSLASH_ESCAPE,M,G]},{begin:'"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE,M,G]}]};G.contains=[m.C_NUMBER_MODE,V];const q=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],$=q.map(R=>`${R}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:q.concat($).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[V,m.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),m.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},m.UNDERSCORE_TITLE_MODE]},m.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return dart_1=k,dart_1}var delphi_1,hasRequiredDelphi;function requireDelphi(){if(hasRequiredDelphi)return delphi_1;hasRequiredDelphi=1;function k(m){const M=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],G=[m.C_LINE_COMMENT_MODE,m.COMMENT(/\{/,/\}/,{relevance:0}),m.COMMENT(/\(\*/,/\*\)/,{relevance:10})],V={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},q={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},$={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},D={className:"string",begin:/(#\d+)+/},B={begin:m.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[m.TITLE_MODE]},R={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[m.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:M,contains:[q,D,V].concat(G)},V].concat(G)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:M,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[q,D,m.NUMBER_MODE,$,B,R,V].concat(G)}}return delphi_1=k,delphi_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1;function k(m){const M=m.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:M.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:M.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return diff_1=k,diff_1}var django_1,hasRequiredDjango;function requireDjango(){if(hasRequiredDjango)return django_1;hasRequiredDjango=1;function k(m){const M={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[m.QUOTE_STRING_MODE,m.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[m.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),m.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[M],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[M]}]}}return django_1=k,django_1}var dns_1,hasRequiredDns;function requireDns(){if(hasRequiredDns)return dns_1;hasRequiredDns=1;function k(m){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[m.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},m.inherit(m.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return dns_1=k,dns_1}var dockerfile_1,hasRequiredDockerfile;function requireDockerfile(){if(hasRequiredDockerfile)return dockerfile_1;hasRequiredDockerfile=1;function k(m){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[m.HASH_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return dockerfile_1=k,dockerfile_1}var dos_1,hasRequiredDos;function requireDos(){if(hasRequiredDos)return dos_1;hasRequiredDos=1;function k(m){const M=m.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0}.begin,end:"goto:eof",contains:[m.inherit(m.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),M]},{className:"number",begin:"\\b\\d+",relevance:0},M]}}return dos_1=k,dos_1}var dsconfig_1,hasRequiredDsconfig;function requireDsconfig(){if(hasRequiredDsconfig)return dsconfig_1;hasRequiredDsconfig=1;function k(m){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},m.HASH_COMMENT_MODE]}}return dsconfig_1=k,dsconfig_1}var dts_1,hasRequiredDts;function requireDts(){if(hasRequiredDts)return dts_1;hasRequiredDts=1;function k(m){const M={className:"string",variants:[m.inherit(m.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[m.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},G={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:m.C_NUMBER_RE}],relevance:0},V={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[m.inherit(M,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},M,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},q={className:"variable",begin:/&[a-z\d_]*\b/},$={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},D={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},B={className:"params",relevance:0,begin:"<",end:">",contains:[G,q]},R={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},U={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},K={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},z={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},e={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[U,q,$,D,R,z,K,B,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,G,M,V,e,{begin:m.IDENT_RE+"::",keywords:""}]}}return dts_1=k,dts_1}var dust_1,hasRequiredDust;function requireDust(){if(hasRequiredDust)return dust_1;hasRequiredDust=1;function k(m){const M="if eq ne lt lte gt gte select default math sep";return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[m.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:M}]}}return dust_1=k,dust_1}var ebnf_1,hasRequiredEbnf;function requireEbnf(){if(hasRequiredEbnf)return ebnf_1;hasRequiredEbnf=1;function k(m){const M=m.COMMENT(/\(\*/,/\*\)/),G={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},q={begin:/=/,end:/[.;]/,contains:[M,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[M,G,q]}}return ebnf_1=k,ebnf_1}var elixir_1,hasRequiredElixir;function requireElixir(){if(hasRequiredElixir)return elixir_1;hasRequiredElixir=1;function k(m){const M=m.regex,G="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",V="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",D={$pattern:G,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},B={className:"subst",begin:/#\{/,end:/\}/,keywords:D},R={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},K={match:/\\[\s\S]/,scope:"char.escape",relevance:0},z=`[/|([{<"']`,e=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],ae=ce=>({scope:"char.escape",begin:M.concat(/\\/,ce),relevance:0}),ie={className:"string",begin:"~[a-z](?="+z+")",contains:e.map(ce=>m.inherit(ce,{contains:[ae(ce.end),K,B]}))},he={className:"string",begin:"~[A-Z](?="+z+")",contains:e.map(ce=>m.inherit(ce,{contains:[ae(ce.end)]}))},J={className:"regex",variants:[{begin:"~r(?="+z+")",contains:e.map(ce=>m.inherit(ce,{end:M.concat(ce.end,/[uismxfU]{0,7}/),contains:[ae(ce.end),K,B]}))},{begin:"~R(?="+z+")",contains:e.map(ce=>m.inherit(ce,{end:M.concat(ce.end,/[uismxfU]{0,7}/),contains:[ae(ce.end)]}))}]},W={className:"string",contains:[m.BACKSLASH_ESCAPE,B],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},X={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[m.inherit(m.TITLE_MODE,{begin:G,endsParent:!0})]},L=m.inherit(X,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),Q=[W,J,he,ie,m.HASH_COMMENT_MODE,L,X,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[W,{begin:V}],relevance:0},{className:"symbol",begin:G+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},R,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return B.contains=Q,{name:"Elixir",aliases:["ex","exs"],keywords:D,contains:Q}}return elixir_1=k,elixir_1}var elm_1,hasRequiredElm;function requireElm(){if(hasRequiredElm)return elm_1;hasRequiredElm=1;function k(m){const M={variants:[m.COMMENT("--","$"),m.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},G={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},V={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},M]},q={begin:/\{/,end:/\}/,contains:V.contains},$={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[V,M],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[V,M],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[G,V,q,M]},{beginKeywords:"infix infixl infixr",end:"$",contains:[m.C_NUMBER_MODE,M]},{begin:"port",end:"$",keywords:"port",contains:[M]},$,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,G,m.inherit(m.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),M,{begin:"->|<-"}],illegal:/;/}}return elm_1=k,elm_1}var ruby_1,hasRequiredRuby;function requireRuby(){if(hasRequiredRuby)return ruby_1;hasRequiredRuby=1;function k(m){const M=m.regex,G="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",V=M.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),q=M.concat(V,/(::\w+)*/),D={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},B={className:"doctag",begin:"@[A-Za-z]+"},R={begin:"#<",end:">"},U=[m.COMMENT("#","$",{contains:[B]}),m.COMMENT("^=begin","^=end",{contains:[B],relevance:10}),m.COMMENT("^__END__",m.MATCH_NOTHING_RE)],K={className:"subst",begin:/#\{/,end:/\}/,keywords:D},z={className:"string",contains:[m.BACKSLASH_ESCAPE,K],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:M.concat(/<<[-~]?'?/,M.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[m.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[m.BACKSLASH_ESCAPE,K]})]}]},e="[1-9](_?[0-9])*|0",ae="[0-9](_?[0-9])*",ie={className:"number",relevance:0,variants:[{begin:`\\b(${e})(\\.(${ae}))?([eE][+-]?(${ae})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},he={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:D}]},de=[z,{variants:[{match:[/class\s+/,q,/\s+<\s+/,q]},{match:[/\b(class|module)\s+/,q]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:D},{match:[/(include|extend)\s+/,q],scope:{2:"title.class"},keywords:D},{relevance:0,match:[q,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:V,scope:"title.class"},{match:[/def/,/\s+/,G],scope:{1:"keyword",3:"title.function"},contains:[he]},{begin:m.IDENT_RE+"::"},{className:"symbol",begin:m.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[z,{begin:G}],relevance:0},ie,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:D},{begin:"("+m.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[m.BACKSLASH_ESCAPE,K],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(R,U),relevance:0}].concat(R,U);K.contains=de,he.contains=de;const se="[>?]>",oe="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",me="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",Ee=[{begin:/^\s*=>/,starts:{end:"$",contains:de}},{className:"meta.prompt",begin:"^("+se+"|"+oe+"|"+me+")(?=[ ])",starts:{end:"$",keywords:D,contains:de}}];return U.unshift(R),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:D,illegal:/\/\*/,contains:[m.SHEBANG({binary:"ruby"})].concat(Ee).concat(U).concat(de)}}return ruby_1=k,ruby_1}var erb_1,hasRequiredErb;function requireErb(){if(hasRequiredErb)return erb_1;hasRequiredErb=1;function k(m){return{name:"ERB",subLanguage:"xml",contains:[m.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return erb_1=k,erb_1}var erlangRepl_1,hasRequiredErlangRepl;function requireErlangRepl(){if(hasRequiredErlangRepl)return erlangRepl_1;hasRequiredErlangRepl=1;function k(m){const M=m.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},m.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{begin:M.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return erlangRepl_1=k,erlangRepl_1}var erlang_1,hasRequiredErlang;function requireErlang(){if(hasRequiredErlang)return erlang_1;hasRequiredErlang=1;function k(m){const M="[a-z'][a-zA-Z0-9_']*",G="("+M+":"+M+"|"+M+")",V={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},q=m.COMMENT("%","$"),$={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},D={begin:"fun\\s+"+M+"/\\d+"},B={begin:G+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:G,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},R={begin:/\{/,end:/\}/,relevance:0},U={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},K={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},z={begin:"#"+m.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+m.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},e={beginKeywords:"fun receive if try case",end:"end",keywords:V};e.contains=[q,D,m.inherit(m.APOS_STRING_MODE,{className:""}),e,B,m.QUOTE_STRING_MODE,$,R,U,K,z];const ae=[q,D,e,B,m.QUOTE_STRING_MODE,$,R,U,K,z];B.contains[1].contains=ae,R.contains=ae,z.contains[1].contains=ae;const ie=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],he={className:"params",begin:"\\(",end:"\\)",contains:ae};return{name:"Erlang",aliases:["erl"],keywords:V,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+M+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[he,m.inherit(m.TITLE_MODE,{begin:M})],starts:{end:";|\\.",keywords:V,contains:ae}},q,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+m.IDENT_RE,keyword:ie.map(J=>`${J}|1.5`).join(" ")},contains:[he]},$,m.QUOTE_STRING_MODE,z,U,K,R,{begin:/\.$/}]}}return erlang_1=k,erlang_1}var excel_1,hasRequiredExcel;function requireExcel(){if(hasRequiredExcel)return excel_1;hasRequiredExcel=1;function k(m){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},m.BACKSLASH_ESCAPE,m.QUOTE_STRING_MODE,{className:"number",begin:m.NUMBER_RE+"(%)?",relevance:0},m.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return excel_1=k,excel_1}var fix_1,hasRequiredFix;function requireFix(){if(hasRequiredFix)return fix_1;hasRequiredFix=1;function k(m){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return fix_1=k,fix_1}var flix_1,hasRequiredFlix;function requireFlix(){if(hasRequiredFlix)return flix_1;hasRequiredFlix=1;function k(m){const M={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},G={className:"string",variants:[{begin:'"',end:'"'}]},q={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,M,G,q,m.C_NUMBER_MODE]}}return flix_1=k,flix_1}var fortran_1,hasRequiredFortran;function requireFortran(){if(hasRequiredFortran)return fortran_1;hasRequiredFortran=1;function k(m){const M=m.regex,G={className:"params",begin:"\\(",end:"\\)"},V={variants:[m.COMMENT("!","$",{relevance:0}),m.COMMENT("^C[ ]","$",{relevance:0}),m.COMMENT("^C$","$",{relevance:0})]},q=/(_[a-z_\d]+)?/,$=/([de][+-]?\d+)?/,D={className:"number",variants:[{begin:M.concat(/\b\d+/,/\.(\d*)/,$,q)},{begin:M.concat(/\b\d+/,$,q)},{begin:M.concat(/\.\d+/,$,q)}],relevance:0},B={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[m.UNDERSCORE_TITLE_MODE,G]},R={className:"string",relevance:0,variants:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[R,B,{begin:/^C\s*=(?!=)/,relevance:0},V,D]}}return fortran_1=k,fortran_1}var fsharp_1,hasRequiredFsharp;function requireFsharp(){if(hasRequiredFsharp)return fsharp_1;hasRequiredFsharp=1;function k(D){return new RegExp(D.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function m(D){return D?typeof D=="string"?D:D.source:null}function M(D){return G("(?=",D,")")}function G(...D){return D.map(R=>m(R)).join("")}function V(D){const B=D[D.length-1];return typeof B=="object"&&B.constructor===Object?(D.splice(D.length-1,1),B):{}}function q(...D){return"("+(V(D).capture?"":"?:")+D.map(U=>m(U)).join("|")+")"}function $(D){const B=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],R={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},U=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],K=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],z=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],e=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],ie={keyword:B,literal:K,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":z},J={variants:[D.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),D.C_LINE_COMMENT_MODE]},W=/[a-zA-Z_](\w|')*/,X={scope:"variable",begin:/``/,end:/``/},L=/\B('|\^)/,Q={scope:"symbol",variants:[{match:G(L,/``.*?``/)},{match:G(L,D.UNDERSCORE_IDENT_RE)}],relevance:0},ce=function({includeEqual:Te}){let Fe;Te?Fe="!%&*+-/<=>@^|~?":Fe="!%&*+-/<>@^|~?";const Pe=Array.from(Fe),we=G("[",...Pe.map(k),"]"),Ie=q(we,/\./),Be=G(Ie,M(Ie)),Ke=q(G(Be,Ie,"*"),G(we,"+"));return{scope:"operator",match:q(Ke,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},de=ce({includeEqual:!0}),se=ce({includeEqual:!1}),oe=function(Te,Fe){return{begin:G(Te,M(G(/\s*/,q(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Fe,end:M(q(/\n/,/=/)),relevance:0,keywords:D.inherit(ie,{type:e}),contains:[J,Q,D.inherit(X,{scope:null}),se]}},me=oe(/:/,"operator"),Ee=oe(/\bof\b/,"keyword"),ke={begin:[/(^|\s+)/,/type/,/\s+/,W],beginScope:{2:"keyword",4:"title.class"},end:M(/\(|=|$/),keywords:ie,contains:[J,D.inherit(X,{scope:null}),Q,{scope:"operator",match:/<|>/},me]},xe={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},fe={begin:[/^\s*/,G(/#/,q(...U)),/\b/],beginScope:{2:"meta"},end:M(/\s|$/)},ve={variants:[D.BINARY_NUMBER_MODE,D.C_NUMBER_MODE]},ye={scope:"string",begin:/"/,end:/"/,contains:[D.BACKSLASH_ESCAPE]},Ce={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},D.BACKSLASH_ESCAPE]},pe={scope:"string",begin:/"""/,end:/"""/,relevance:2},_e={scope:"subst",begin:/\{/,end:/\}/,keywords:ie},Ge={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},D.BACKSLASH_ESCAPE,_e]},Ae={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},D.BACKSLASH_ESCAPE,_e]},Ne={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},_e],relevance:2},Ze={scope:"string",match:G(/'/,q(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return _e.contains=[Ae,Ge,Ce,ye,Ze,R,J,X,me,xe,fe,ve,Q,de],{name:"F#",aliases:["fs","f#"],keywords:ie,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[R,{variants:[Ne,Ae,Ge,pe,Ce,ye,Ze]},J,X,ke,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[X,pe,Ce,ye,Ze,ve]},Ee,me,xe,fe,ve,Q,de]}}return fsharp_1=$,fsharp_1}var gams_1,hasRequiredGams;function requireGams(){if(hasRequiredGams)return gams_1;hasRequiredGams=1;function k(m){const M=m.regex,G={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},V={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},q={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},$={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]},D={begin:"/",end:"/",keywords:G,contains:[$,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,m.C_NUMBER_MODE]},B=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,R={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[$,D,{className:"comment",begin:M.concat(B,M.anyNumberOfTimes(M.concat(/[ ]+/,B))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:G,contains:[m.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},m.COMMENT("^\\*","$"),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[m.COMMENT("^\\*","$"),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,D,R]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[R]},m.COMMENT("^\\*","$"),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,m.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},V,q]},m.C_NUMBER_MODE,q]}}return gams_1=k,gams_1}var gauss_1,hasRequiredGauss;function requireGauss(){if(hasRequiredGauss)return gauss_1;hasRequiredGauss=1;function k(m){const M={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},G=m.COMMENT("@","@"),V={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,G]},q={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:m.UNDERSCORE_IDENT_RE,relevance:0}]},$=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE,G,q]}],D={className:"title",begin:m.UNDERSCORE_IDENT_RE,relevance:0},B=function(e,ae,ie){const he=m.inherit({className:"function",beginKeywords:e,end:ae,excludeEnd:!0,contains:[].concat($)},ie||{});return he.contains.push(D),he.contains.push(m.C_NUMBER_MODE),he.contains.push(m.C_BLOCK_COMMENT_MODE),he.contains.push(G),he},R={className:"built_in",begin:"\\b("+M.built_in.split(" ").join("|")+")\\b"},U={className:"string",begin:'"',end:'"',contains:[m.BACKSLASH_ESCAPE],relevance:0},K={begin:m.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:M,relevance:0,contains:[{beginKeywords:M.keyword},R,{className:"built_in",begin:m.UNDERSCORE_IDENT_RE,relevance:0}]},z={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:M.built_in,literal:M.literal},contains:[m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE,G,R,K,U,"self"]};return K.contains.push(z),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:M,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[m.C_NUMBER_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,G,U,V,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},B("proc keyword",";"),B("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[m.C_BLOCK_COMMENT_MODE,G,z]},{variants:[{begin:m.UNDERSCORE_IDENT_RE+"\\."+m.UNDERSCORE_IDENT_RE},{begin:m.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},K,q]}}return gauss_1=k,gauss_1}var gcode_1,hasRequiredGcode;function requireGcode(){if(hasRequiredGcode)return gcode_1;hasRequiredGcode=1;function k(m){const M="[A-Z_][A-Z0-9_.]*",G="%",V={$pattern:M,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},q={className:"meta",begin:"([O])([0-9]+)"},$=m.inherit(m.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+m.C_NUMBER_RE}),D=[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.COMMENT(/\(/,/\)/),$,m.inherit(m.APOS_STRING_MODE,{illegal:null}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[$],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:V,contains:[{className:"meta",begin:G},q].concat(D)}}return gcode_1=k,gcode_1}var gherkin_1,hasRequiredGherkin;function requireGherkin(){if(hasRequiredGherkin)return gherkin_1;hasRequiredGherkin=1;function k(m){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},m.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},m.QUOTE_STRING_MODE]}}return gherkin_1=k,gherkin_1}var glsl_1,hasRequiredGlsl;function requireGlsl(){if(hasRequiredGlsl)return glsl_1;hasRequiredGlsl=1;function k(m){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return glsl_1=k,glsl_1}var gml_1,hasRequiredGml;function requireGml(){if(hasRequiredGml)return gml_1;hasRequiredGml=1;function k(m){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE]}}return gml_1=k,gml_1}var go_1,hasRequiredGo;function requireGo(){if(hasRequiredGo)return go_1;hasRequiredGo=1;function k(m){const $={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:$,illegal:"</",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"string",variants:[m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:m.C_NUMBER_RE+"[i]",relevance:1},m.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[m.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:$,illegal:/["']/}]}]}}return go_1=k,go_1}var golo_1,hasRequiredGolo;function requireGolo(){if(hasRequiredGolo)return golo_1;hasRequiredGolo=1;function k(m){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[m.HASH_COMMENT_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return golo_1=k,golo_1}var gradle_1,hasRequiredGradle;function requireGradle(){if(hasRequiredGradle)return gradle_1;hasRequiredGradle=1;function k(m){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.NUMBER_MODE,m.REGEXP_MODE]}}return gradle_1=k,gradle_1}var graphql_1,hasRequiredGraphql;function requireGraphql(){if(hasRequiredGraphql)return graphql_1;hasRequiredGraphql=1;function k(m){const M=m.regex,G=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[m.HASH_COMMENT_MODE,m.QUOTE_STRING_MODE,m.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:M.concat(G,M.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return graphql_1=k,graphql_1}var groovy_1,hasRequiredGroovy;function requireGroovy(){if(hasRequiredGroovy)return groovy_1;hasRequiredGroovy=1;function k(M,G={}){return G.variants=M,G}function m(M){const G=M.regex,V="[A-Za-z0-9_$]+",q=k([M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,M.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),$={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[M.BACKSLASH_ESCAPE]},D=k([M.BINARY_NUMBER_MODE,M.C_NUMBER_MODE]),B=k([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},M.APOS_STRING_MODE,M.QUOTE_STRING_MODE],{className:"string"}),R={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,M.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[M.SHEBANG({binary:"groovy",relevance:10}),q,B,$,D,R,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:V+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[q,B,$,D,"self"]},{className:"symbol",begin:"^[ ]*"+G.lookahead(V+":"),excludeBegin:!0,end:V+":",relevance:0}],illegal:/#|<\//}}return groovy_1=m,groovy_1}var haml_1,hasRequiredHaml;function requireHaml(){if(hasRequiredHaml)return haml_1;hasRequiredHaml=1;function k(m){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},m.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return haml_1=k,haml_1}var handlebars_1,hasRequiredHandlebars;function requireHandlebars(){if(hasRequiredHandlebars)return handlebars_1;hasRequiredHandlebars=1;function k(m){const M=m.regex,G={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},V={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},q=/""|"[^"]+"/,$=/''|'[^']+'/,D=/\[\]|\[[^\]]+\]/,B=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,R=/(\.|\/)/,U=M.either(q,$,D,B),K=M.concat(M.optional(/\.|\.\/|\//),U,M.anyNumberOfTimes(M.concat(R,U))),z=M.concat("(",D,"|",B,")(?==)"),e={begin:K},ae=m.inherit(e,{keywords:V}),ie={begin:/\(/,end:/\)/},he={className:"attr",begin:z,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[m.NUMBER_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,ae,ie]}}},J={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},W={contains:[m.NUMBER_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,J,he,ae,ie],returnEnd:!0},X=m.inherit(e,{className:"name",keywords:G,starts:m.inherit(W,{end:/\)/})});ie.contains=[X];const L=m.inherit(e,{keywords:G,className:"name",starts:m.inherit(W,{end:/\}\}/})}),Q=m.inherit(e,{keywords:G,className:"name"}),ce=m.inherit(e,{className:"name",keywords:G,starts:m.inherit(W,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},m.COMMENT(/\{\{!--/,/--\}\}/),m.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[L],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[Q]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[L]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[Q]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[ce]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[ce]}]}}return handlebars_1=k,handlebars_1}var haskell_1,hasRequiredHaskell;function requireHaskell(){if(hasRequiredHaskell)return haskell_1;hasRequiredHaskell=1;function k(m){const M="([0-9]_*)+",G="([0-9a-fA-F]_*)+",V="([01]_*)+",q="([0-7]_*)+",R="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",U={variants:[m.COMMENT("--+","$"),m.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},K={className:"meta",begin:/\{-#/,end:/#-\}/},z={className:"meta",begin:"^#",end:"$"},e={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},ae={begin:"\\(",end:"\\)",illegal:'"',contains:[K,z,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},m.inherit(m.TITLE_MODE,{begin:"[_a-z][\\w']*"}),U]},ie={begin:/\{/,end:/\}/,contains:ae.contains},he={className:"number",relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0[xX]_*(${G})(\\.(${G}))?([pP][+-]?(${M}))?\\b`},{match:`\\b0[oO](${q})\\b`},{match:`\\b0[bB](${V})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[ae,U],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[ae,U],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[e,ae,U]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[K,e,ae,ie,U]},{beginKeywords:"default",end:"$",contains:[e,ae,U]},{beginKeywords:"infix infixl infixr",end:"$",contains:[m.C_NUMBER_MODE,U]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[e,m.QUOTE_STRING_MODE,U]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},K,z,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},m.QUOTE_STRING_MODE,he,e,m.inherit(m.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${R}--+|--+(?!-)${R}`},U,{begin:"->|<-"}]}}return haskell_1=k,haskell_1}var haxe_1,hasRequiredHaxe;function requireHaxe(){if(hasRequiredHaxe)return haxe_1;hasRequiredHaxe=1;function k(m){const M="[a-zA-Z_$][a-zA-Z0-9_$]*",G=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[m.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},m.QUOTE_STRING_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"number",begin:G,relevance:0},{className:"variable",begin:"\\$"+M},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[m.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+m.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},m.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:m.IDENT_RE,relevance:0}]},m.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[m.TITLE_MODE]}],illegal:/<\//}}return haxe_1=k,haxe_1}var hsp_1,hasRequiredHsp;function requireHsp(){if(hasRequiredHsp)return hsp_1;hasRequiredHsp=1;function k(m){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[m.BACKSLASH_ESCAPE]},m.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[m.inherit(m.QUOTE_STRING_MODE,{className:"string"}),m.NUMBER_MODE,m.C_NUMBER_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},m.NUMBER_MODE,m.C_NUMBER_MODE]}}return hsp_1=k,hsp_1}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;function k(m){const M=m.regex,G="HTTP/([32]|1\\.[01])",V=/[A-Za-z][A-Za-z0-9-]*/,q={className:"attribute",begin:M.concat("^",V,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},$=[q,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+G+" \\d{3})",end:/$/,contains:[{className:"meta",begin:G},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:$}},{begin:"(?=^[A-Z]+ (.*?) "+G+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:G},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:$}},m.inherit(q,{relevance:0})]}}return http_1=k,http_1}var hy_1,hasRequiredHy;function requireHy(){if(hasRequiredHy)return hy_1;hasRequiredHy=1;function k(m){const M="a-zA-Z_\\-!.?+*=<>&#'",G="["+M+"]["+M+"0-9/;:]*",V={$pattern:G,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},q="[-+]?\\d+(\\.\\d+)?",$={begin:G,relevance:0},D={className:"number",begin:q,relevance:0},B=m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),R=m.COMMENT(";","$",{relevance:0}),U={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},K={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},z={className:"comment",begin:"\\^"+G},e=m.COMMENT("\\^\\{","\\}"),ae={className:"symbol",begin:"[:]{1,2}"+G},ie={begin:"\\(",end:"\\)"},he={endsWithParent:!0,relevance:0},J={className:"name",relevance:0,keywords:V,begin:G,starts:he},W=[ie,B,z,e,R,ae,K,D,U,$];return ie.contains=[m.COMMENT("comment",""),J,he],he.contains=W,K.contains=W,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[m.SHEBANG(),ie,B,z,e,R,ae,K,D,U]}}return hy_1=k,hy_1}var inform7_1,hasRequiredInform7;function requireInform7(){if(hasRequiredInform7)return inform7_1;hasRequiredInform7=1;function k(m){const M="\\[",G="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:M,end:G}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:M,end:G,contains:["self"]}]}}return inform7_1=k,inform7_1}var ini_1,hasRequiredIni;function requireIni(){if(hasRequiredIni)return ini_1;hasRequiredIni=1;function k(m){const M=m.regex,G={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:m.NUMBER_RE}]},V=m.COMMENT();V.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const q={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},$={className:"literal",begin:/\bon|off|true|false|yes|no\b/},D={className:"string",contains:[m.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},B={begin:/\[/,end:/\]/,contains:[V,$,q,D,G,"self"],relevance:0},R=/[A-Za-z0-9_-]+/,U=/"(\\"|[^"])*"/,K=/'[^']*'/,z=M.either(R,U,K),e=M.concat(z,"(\\s*\\.\\s*",z,")*",M.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[V,{className:"section",begin:/\[+/,end:/\]+/},{begin:e,className:"attr",starts:{end:/$/,contains:[V,B,$,q,D,G]}}]}}return ini_1=k,ini_1}var irpf90_1,hasRequiredIrpf90;function requireIrpf90(){if(hasRequiredIrpf90)return irpf90_1;hasRequiredIrpf90=1;function k(m){const M=m.regex,G={className:"params",begin:"\\(",end:"\\)"},V=/(_[a-z_\d]+)?/,q=/([de][+-]?\d+)?/,$={className:"number",variants:[{begin:M.concat(/\b\d+/,/\.(\d*)/,q,V)},{begin:M.concat(/\b\d+/,q,V)},{begin:M.concat(/\.\d+/,q,V)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[m.inherit(m.APOS_STRING_MODE,{className:"string",relevance:0}),m.inherit(m.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[m.UNDERSCORE_TITLE_MODE,G]},m.COMMENT("!","$",{relevance:0}),m.COMMENT("begin_doc","end_doc",{relevance:10}),$]}}return irpf90_1=k,irpf90_1}var isbl_1,hasRequiredIsbl;function requireIsbl(){if(hasRequiredIsbl)return isbl_1;hasRequiredIsbl=1;function k(m){const M="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",G="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",V="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",q="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE ",$="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",D="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",B="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",R="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",U="JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ",K="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",z="smHidden smMaximized smMinimized smNormal wmNo wmYes ",e="COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND ",ae="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",ie="MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ",he="NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY ",J="dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT ",W="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",X="ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ",L="PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ",Q="ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE ",ce="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",de="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",se="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",oe="SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID ",me="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",Ee="AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID ",ke="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",xe="SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ",fe="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",ve="SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ",ye="SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ",Ce="ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME ",pe="TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ",_e="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",Ge="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",Ae="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",Ne="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",Ze="WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ",ze="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Te=q+$+D+B+R+U+K+z+e+ae+ie+he+J+W+X+L+Q+ce+de+se+oe+me+Ee+ke+xe+fe+ve+ye+Ce+pe+_e+Ge+Ae+Ne+Ze+ze,Fe="atUser atGroup atRole ",Pe="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",we="apBegin apEnd ",Ie="alLeft alRight ",Be="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",Ke="cirCommon cirRevoked ",Ve="ctSignature ctEncode ctSignatureEncode ",je="clbUnchecked clbChecked clbGrayed ",Le="ceISB ceAlways ceNever ",et="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",Qe="cfInternal cfDisplay ",Ue="ciUnspecified ciWrite ciRead ",$e="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",Ye="ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton ",tt="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",ot="cltInternal cltPrimary cltGUI ",st="dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange ",dt="dssEdit dssInsert dssBrowse dssInActive ",ct="dftDate dftShortDate dftDateTime dftTimeStamp ",mt="dotDays dotHours dotMinutes dotSeconds ",ut="dtkndLocal dtkndUTC ",rt="arNone arView arEdit arFull ",He="ddaView ddaEdit ",Je="emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ",St="ecotFile ecotProcess ",bt="eaGet eaCopy eaCreate eaCreateStandardRoute ",pt="edltAll edltNothing edltQuery ",wt="essmText essmCard ",Pt="esvtLast esvtLastActive esvtSpecified ",Nt="edsfExecutive edsfArchive ",Vt="edstSQLServer edstFile ",Wt="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",Mt="vsDefault vsDesign vsActive vsObsolete ",$t="etNone etCertificate etPassword etCertificatePassword ",Yt="ecException ecWarning ecInformation ",Ft="estAll estApprovingOnly ",Jt="evtLast evtLastActive evtQuery ",er="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",Bt="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",It="grhAuto grhX1 grhX2 grhX3 ",Dt="hltText hltRTF hltHTML ",Zt="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",gr="im8bGrayscale im24bRGB im1bMonochrome ",fr="itBMP itJPEG itWMF itPNG ",Dr="ikhInformation ikhWarning ikhError ikhNoIcon ",kr="icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler ",cr="isShow isHide isByUserSettings ",Ar="jkJob jkNotice jkControlJob ",yt="jtInner jtLeft jtRight jtFull jtCross ",vt="lbpAbove lbpBelow lbpLeft lbpRight ",Xt="eltPerConnection eltPerUser ",At="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",zt="sfsItalic sfsStrikeout sfsNormal ",Br="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",br="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",Ur="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",un="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",sr="rdWindow rdFile rdPrinter ",ur="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",Cr="reOnChange reOnChangeValues ",Tr="ttGlobal ttLocal ttUser ttSystem ",jt="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",Wr="smSelect smLike smCard ",ir="stNone stAuthenticating stApproving ",Gr="sctString sctStream ",Jr="sstAnsiSort sstNaturalSort ",Xr="svtEqual svtContain ",fn="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",cn="tarAbortByUser tarAbortByWorkflowException ",nn="tvtAllWords tvtExactPhrase tvtAnyWord ",ar="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",xr="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",Lr="btAnd btDetailAnd btOr btNotOr btOnly ",Rr="vmView vmSelect vmNavigation ",Mr="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",an="wfatPrevious wfatNext wfatCancel wfatFinish ",gn="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",dn="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",pn="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",Mn="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",Yn="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",hi="waAll waPerformers waManual ",Ci="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",da="wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection ",ra="wiLow wiNormal wiHigh ",Ri="wrtSoft wrtHard ",oi="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",mi="wtmFull wtmFromCurrent wtmOnlyCurrent ",Ia=Fe+Pe+we+Ie+Be+Ke+Ve+je+Le+et+Qe+Ue+$e+Ye+tt+ot+st+dt+ct+mt+ut+rt+He+Je+St+bt+pt+wt+Pt+Nt+Vt+Wt+Mt+$t+Yt+Ft+Jt+er+Bt+It+Dt+Zt+gr+fr+Dr+kr+cr+Ar+yt+vt+Xt+At+zt+Br+br+Ur+un+sr+ur+Cr+Tr+jt+Wr+ir+Gr+Jr+Xr+fn+cn+nn+ar+xr+Lr+Rr+Mr+an+gn+dn+pn+Mn+Yn+hi+Ci+da+ra+Ri+oi+mi,ha="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",ka="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",na="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",Fi=Te+Ia,Zn=ka,ia="null true false nil ",Oa={className:"number",begin:m.NUMBER_RE,relevance:0},aa={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Ii={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},fa={className:"comment",begin:"//",end:"$",relevance:0,contains:[m.PHRASAL_WORDS_MODE,Ii]},Na={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[m.PHRASAL_WORDS_MODE,Ii]},pa={variants:[fa,Na]},Vi={$pattern:M,keyword:V,built_in:Fi,class:Zn,literal:ia},ki={begin:"\\.\\s*"+m.UNDERSCORE_IDENT_RE,keywords:Vi,relevance:0},ma={className:"type",begin:":[ \\t]*("+na.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},sa={className:"variable",keywords:Vi,begin:M,relevance:0,contains:[ma,ki]},oa=G+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Vi,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:oa,end:"\\)$",returnBegin:!0,keywords:Vi,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:M,built_in:ha},begin:oa,end:"\\(",returnBegin:!0,excludeEnd:!0},ki,sa,aa,Oa,pa]},ma,ki,sa,aa,Oa,pa]}}return isbl_1=k,isbl_1}var java_1,hasRequiredJava;function requireJava(){if(hasRequiredJava)return java_1;hasRequiredJava=1;var k="[0-9](_*[0-9])*",m=`\\.(${k})`,M="[0-9a-fA-F](_*[0-9a-fA-F])*",G={className:"number",variants:[{begin:`(\\b(${k})((${m})|\\.)?|(${m}))[eE][+-]?(${k})[fFdD]?\\b`},{begin:`\\b(${k})((${m})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${m})[fFdD]?\\b`},{begin:`\\b(${k})[fFdD]\\b`},{begin:`\\b0[xX]((${M})\\.?|(${M})?\\.(${M}))[pP][+-]?(${k})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${M})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function V($,D,B){return B===-1?"":$.replace(D,R=>V($,D,B-1))}function q($){const D=$.regex,B="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",R=B+V("(?:<"+B+"~~~(?:\\s*,\\s*"+B+"~~~)*>)?",/~~~/g,2),ae={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},ie={className:"meta",begin:"@"+B,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},he={className:"params",begin:/\(/,end:/\)/,keywords:ae,relevance:0,contains:[$.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:ae,illegal:/<\/|#/,contains:[$.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},$.C_LINE_COMMENT_MODE,$.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[$.BACKSLASH_ESCAPE]},$.APOS_STRING_MODE,$.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,B],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[D.concat(/(?!else)/,B),/\s+/,B,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,B],className:{1:"keyword",3:"title.class"},contains:[he,$.C_LINE_COMMENT_MODE,$.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+R+"\\s+)",$.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:ae,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:ae,relevance:0,contains:[ie,$.APOS_STRING_MODE,$.QUOTE_STRING_MODE,G,$.C_BLOCK_COMMENT_MODE]},$.C_LINE_COMMENT_MODE,$.C_BLOCK_COMMENT_MODE]},G,ie]}}return java_1=q,java_1}var javascript_1,hasRequiredJavascript;function requireJavascript(){if(hasRequiredJavascript)return javascript_1;hasRequiredJavascript=1;const k="[A-Za-z$_][0-9A-Za-z$_]*",m=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],M=["true","false","null","undefined","NaN","Infinity"],G=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],V=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],q=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],D=[].concat(q,G,V);function B(R){const U=R.regex,K=(Pe,{after:we})=>{const Ie="</"+Pe[0].slice(1);return Pe.input.indexOf(Ie,we)!==-1},z=k,e={begin:"<>",end:"</>"},ae=/<[A-Za-z0-9\\._:-]+\s*\/>/,ie={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Pe,we)=>{const Ie=Pe[0].length+Pe.index,Be=Pe.input[Ie];if(Be==="<"||Be===","){we.ignoreMatch();return}Be===">"&&(K(Pe,{after:Ie})||we.ignoreMatch());let Ke;const Ve=Pe.input.substring(Ie);if(Ke=Ve.match(/^\s*=/)){we.ignoreMatch();return}if((Ke=Ve.match(/^\s+extends\s+/))&&Ke.index===0){we.ignoreMatch();return}}},he={$pattern:k,keyword:m,literal:M,built_in:D,"variable.language":$},J="[0-9](_?[0-9])*",W=`\\.(${J})`,X="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",L={className:"number",variants:[{begin:`(\\b(${X})((${W})|\\.)?|(${W}))[eE][+-]?(${J})\\b`},{begin:`\\b(${X})\\b((${W})\\b|\\.)?|(${W})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Q={className:"subst",begin:"\\$\\{",end:"\\}",keywords:he,contains:[]},ce={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[R.BACKSLASH_ESCAPE,Q],subLanguage:"xml"}},de={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[R.BACKSLASH_ESCAPE,Q],subLanguage:"css"}},se={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[R.BACKSLASH_ESCAPE,Q],subLanguage:"graphql"}},oe={className:"string",begin:"`",end:"`",contains:[R.BACKSLASH_ESCAPE,Q]},Ee={className:"comment",variants:[R.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:z+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),R.C_BLOCK_COMMENT_MODE,R.C_LINE_COMMENT_MODE]},ke=[R.APOS_STRING_MODE,R.QUOTE_STRING_MODE,ce,de,se,oe,{match:/\$\d+/},L];Q.contains=ke.concat({begin:/\{/,end:/\}/,keywords:he,contains:["self"].concat(ke)});const xe=[].concat(Ee,Q.contains),fe=xe.concat([{begin:/\(/,end:/\)/,keywords:he,contains:["self"].concat(xe)}]),ve={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:he,contains:fe},ye={variants:[{match:[/class/,/\s+/,z,/\s+/,/extends/,/\s+/,U.concat(z,"(",U.concat(/\./,z),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,z],scope:{1:"keyword",3:"title.class"}}]},Ce={relevance:0,match:U.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...G,...V]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_e={variants:[{match:[/function/,/\s+/,z,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ve],illegal:/%/},Ge={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ae(Pe){return U.concat("(?!",Pe.join("|"),")")}const Ne={match:U.concat(/\b/,Ae([...q,"super","import"]),z,U.lookahead(/\(/)),className:"title.function",relevance:0},Ze={begin:U.concat(/\./,U.lookahead(U.concat(z,/(?![0-9A-Za-z$_(])/))),end:z,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ze={match:[/get|set/,/\s+/,z,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ve]},Te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+R.UNDERSCORE_IDENT_RE+")\\s*=>",Fe={match:[/const|var|let/,/\s+/,z,/\s*/,/=\s*/,/(async\s*)?/,U.lookahead(Te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ve]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:he,exports:{PARAMS_CONTAINS:fe,CLASS_REFERENCE:Ce},illegal:/#(?![$_A-z])/,contains:[R.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,R.APOS_STRING_MODE,R.QUOTE_STRING_MODE,ce,de,se,oe,Ee,{match:/\$\d+/},L,Ce,{className:"attr",begin:z+U.lookahead(":"),relevance:0},Fe,{begin:"("+R.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Ee,R.REGEXP_MODE,{className:"function",begin:Te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:R.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:he,contains:fe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:e.begin,end:e.end},{match:ae},{begin:ie.begin,"on:begin":ie.isTrulyOpeningTag,end:ie.end}],subLanguage:"xml",contains:[{begin:ie.begin,end:ie.end,skip:!0,contains:["self"]}]}]},_e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+R.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ve,R.inherit(R.TITLE_MODE,{begin:z,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ze,{match:"\\$"+z,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ve]},Ne,Ge,ye,ze,{match:/\$[(.]/}]}}return javascript_1=B,javascript_1}var jbossCli_1,hasRequiredJbossCli;function requireJbossCli(){if(hasRequiredJbossCli)return jbossCli_1;hasRequiredJbossCli=1;function k(m){const G={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},V={className:"function",begin:/:[\w\-.]+/,relevance:0},q={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},$={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[m.HASH_COMMENT_MODE,m.QUOTE_STRING_MODE,$,V,q,G]}}return jbossCli_1=k,jbossCli_1}var json_1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json_1;hasRequiredJson=1;function k(m){const M={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},G={match:/[{}[\],:]/,className:"punctuation",relevance:0},V=["true","false","null"],q={scope:"literal",beginKeywords:V.join(" ")};return{name:"JSON",keywords:{literal:V},contains:[M,G,m.QUOTE_STRING_MODE,q,m.C_NUMBER_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return json_1=k,json_1}var julia_1,hasRequiredJulia;function requireJulia(){if(hasRequiredJulia)return julia_1;hasRequiredJulia=1;function k(m){const M="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",$={$pattern:M,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π",""],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},D={keywords:$,illegal:/<\//},B={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},R={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},U={className:"subst",begin:/\$\(/,end:/\)/,keywords:$},K={className:"variable",begin:"\\$"+M},z={className:"string",contains:[m.BACKSLASH_ESCAPE,U,K],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},e={className:"string",contains:[m.BACKSLASH_ESCAPE,U,K],begin:"`",end:"`"},ae={className:"meta",begin:"@"+M},ie={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return D.name="Julia",D.contains=[B,R,z,e,ae,ie,m.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],U.contains=D.contains,D}return julia_1=k,julia_1}var juliaRepl_1,hasRequiredJuliaRepl;function requireJuliaRepl(){if(hasRequiredJuliaRepl)return juliaRepl_1;hasRequiredJuliaRepl=1;function k(m){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return juliaRepl_1=k,juliaRepl_1}var kotlin_1,hasRequiredKotlin;function requireKotlin(){if(hasRequiredKotlin)return kotlin_1;hasRequiredKotlin=1;var k="[0-9](_*[0-9])*",m=`\\.(${k})`,M="[0-9a-fA-F](_*[0-9a-fA-F])*",G={className:"number",variants:[{begin:`(\\b(${k})((${m})|\\.)?|(${m}))[eE][+-]?(${k})[fFdD]?\\b`},{begin:`\\b(${k})((${m})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${m})[fFdD]?\\b`},{begin:`\\b(${k})[fFdD]\\b`},{begin:`\\b0[xX]((${M})\\.?|(${M})?\\.(${M}))[pP][+-]?(${k})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${M})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function V(q){const $={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},D={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},B={className:"symbol",begin:q.UNDERSCORE_IDENT_RE+"@"},R={className:"subst",begin:/\$\{/,end:/\}/,contains:[q.C_NUMBER_MODE]},U={className:"variable",begin:"\\$"+q.UNDERSCORE_IDENT_RE},K={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[U,R]},{begin:"'",end:"'",illegal:/\n/,contains:[q.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[q.BACKSLASH_ESCAPE,U,R]}]};R.contains.push(K);const z={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+q.UNDERSCORE_IDENT_RE+")?"},e={className:"meta",begin:"@"+q.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[q.inherit(K,{className:"string"}),"self"]}]},ae=G,ie=q.COMMENT("/\\*","\\*/",{contains:[q.C_BLOCK_COMMENT_MODE]}),he={variants:[{className:"type",begin:q.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},J=he;return J.variants[1].contains=[he],he.variants[1].contains=[J],{name:"Kotlin",aliases:["kt","kts"],keywords:$,contains:[q.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),q.C_LINE_COMMENT_MODE,ie,D,B,z,e,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:$,relevance:5,contains:[{begin:q.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[q.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:$,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[he,q.C_LINE_COMMENT_MODE,ie],relevance:0},q.C_LINE_COMMENT_MODE,ie,z,e,K,q.C_NUMBER_MODE]},ie]},{begin:[/class|interface|trait/,/\s+/,q.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},q.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},z,e]},K,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},ae]}}return kotlin_1=V,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function k(m){const M="[a-zA-Z_][\\w.]*",G="<\\?(lasso(script)?|=)",V="\\]|\\?>",q={$pattern:M+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},$=m.COMMENT("<!--","-->",{relevance:0}),D={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[$]}},B={className:"meta",begin:"\\[/noprocess|"+G},R={className:"symbol",begin:"'"+M+"'"},U=[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.inherit(m.C_NUMBER_MODE,{begin:m.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),m.inherit(m.APOS_STRING_MODE,{illegal:null}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+M},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:M,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+M,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[R]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[m.inherit(m.TITLE_MODE,{begin:M+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:q,contains:[{className:"meta",begin:V,relevance:0,starts:{end:"\\[|"+G,returnEnd:!0,relevance:0,contains:[$]}},D,B,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:q,contains:[{className:"meta",begin:V,relevance:0,starts:{end:"\\[noprocess\\]|"+G,returnEnd:!0,contains:[$]}},D,B].concat(U)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(U)}}return lasso_1=k,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function k(m){const G=m.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(Ee=>Ee+"(?![a-zA-Z@:_])")),V=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(Ee=>Ee+"(?![a-zA-Z:_])").join("|")),q=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],$=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],D={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:G},{endsParent:!0,begin:V},{endsParent:!0,variants:$},{endsParent:!0,relevance:0,variants:q}]},B={className:"params",relevance:0,begin:/#+\d?/},R={variants:$},U={className:"built_in",relevance:0,begin:/[$&^_]/},K={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},z=m.COMMENT("%","$",{relevance:0}),e=[D,B,R,U,K,z],ae={begin:/\{/,end:/\}/,relevance:0,contains:["self",...e]},ie=m.inherit(ae,{relevance:0,endsParent:!0,contains:[ae,...e]}),he={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[ae,...e]},J={begin:/\s+/,relevance:0},W=[ie],X=[he],L=function(Ee,ke){return{contains:[J],starts:{relevance:0,contains:Ee,starts:ke}}},Q=function(Ee,ke){return{begin:"\\\\"+Ee+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+Ee},relevance:0,contains:[J],starts:ke}},ce=function(Ee,ke){return m.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+Ee+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},L(W,ke))},de=(Ee="string")=>m.END_SAME_AS_BEGIN({className:Ee,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),se=function(Ee){return{className:"string",end:"(?=\\\\end\\{"+Ee+"\\})"}},oe=(Ee="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:Ee,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),me=[...["verb","lstinline"].map(Ee=>Q(Ee,{contains:[de()]})),Q("mint",L(W,{contains:[de()]})),Q("mintinline",L(W,{contains:[oe(),de()]})),Q("url",{contains:[oe("link"),oe("link")]}),Q("hyperref",{contains:[oe("link")]}),Q("href",L(X,{contains:[oe("link")]})),...[].concat(...["","\\*"].map(Ee=>[ce("verbatim"+Ee,se("verbatim"+Ee)),ce("filecontents"+Ee,L(W,se("filecontents"+Ee))),...["","B","L"].map(ke=>ce(ke+"Verbatim"+Ee,L(X,se(ke+"Verbatim"+Ee))))])),ce("minted",L(X,L(W,se("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...me,...e]}}return latex_1=k,latex_1}var ldif_1,hasRequiredLdif;function requireLdif(){if(hasRequiredLdif)return ldif_1;hasRequiredLdif=1;function k(m){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},m.HASH_COMMENT_MODE]}}return ldif_1=k,ldif_1}var leaf_1,hasRequiredLeaf;function requireLeaf(){if(hasRequiredLeaf)return leaf_1;hasRequiredLeaf=1;function k(m){const M=/([A-Za-z_][A-Za-z_0-9]*)?/,V={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},q={match:[M,/(?=\()/],scope:{1:"keyword"},contains:[V]};return V.contains.unshift(q),{name:"Leaf",contains:[{match:[/#+/,M,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[V]},{match:[/#+/,M,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return leaf_1=k,leaf_1}var less_1,hasRequiredLess;function requireLess(){if(hasRequiredLess)return less_1;hasRequiredLess=1;const k=B=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:B.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[B.APOS_STRING_MODE,B.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:B.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],M=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],G=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],V=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],q=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),$=G.concat(V);function D(B){const R=k(B),U=$,K="and or not only",z="[\\w-]+",e="("+z+"|@\\{"+z+"\\})",ae=[],ie=[],he=function(Ee){return{className:"string",begin:"~?"+Ee+".*?"+Ee}},J=function(Ee,ke,xe){return{className:Ee,begin:ke,relevance:xe}},W={$pattern:/[a-z-]+/,keyword:K,attribute:M.join(" ")},X={begin:"\\(",end:"\\)",contains:ie,keywords:W,relevance:0};ie.push(B.C_LINE_COMMENT_MODE,B.C_BLOCK_COMMENT_MODE,he("'"),he('"'),R.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},R.HEXCOLOR,X,J("variable","@@?"+z,10),J("variable","@\\{"+z+"\\}"),J("built_in","~?`[^`]*?`"),{className:"attribute",begin:z+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},R.IMPORTANT,{beginKeywords:"and not"},R.FUNCTION_DISPATCH);const L=ie.concat({begin:/\{/,end:/\}/,contains:ae}),Q={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(ie)},ce={begin:e+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},R.CSS_VARIABLE,{className:"attribute",begin:"\\b("+q.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:ie}}]},de={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:W,returnEnd:!0,contains:ie,relevance:0}},se={className:"variable",variants:[{begin:"@"+z+"\\s*:",relevance:15},{begin:"@"+z}],starts:{end:"[;}]",returnEnd:!0,contains:L}},oe={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:e,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[B.C_LINE_COMMENT_MODE,B.C_BLOCK_COMMENT_MODE,Q,J("keyword","all\\b"),J("variable","@\\{"+z+"\\}"),{begin:"\\b("+m.join("|")+")\\b",className:"selector-tag"},R.CSS_NUMBER_MODE,J("selector-tag",e,0),J("selector-id","#"+e),J("selector-class","\\."+e,0),J("selector-tag","&",0),R.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+G.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+V.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:L},{begin:"!important"},R.FUNCTION_DISPATCH]},me={begin:z+`:(:)?(${U.join("|")})`,returnBegin:!0,contains:[oe]};return ae.push(B.C_LINE_COMMENT_MODE,B.C_BLOCK_COMMENT_MODE,de,se,me,ce,oe,Q,R.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:ae}}return less_1=D,less_1}var lisp_1,hasRequiredLisp;function requireLisp(){if(hasRequiredLisp)return lisp_1;hasRequiredLisp=1;function k(m){const M="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",G="\\|[^]*?\\|",V="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",q={className:"literal",begin:"\\b(t{1}|nil)\\b"},$={className:"number",variants:[{begin:V,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+V+" +"+V,end:"\\)"}]},D=m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),B=m.COMMENT(";","$",{relevance:0}),R={begin:"\\*",end:"\\*"},U={className:"symbol",begin:"[:&]"+M},K={begin:M,relevance:0},z={begin:G},ae={contains:[$,D,R,U,{begin:"\\(",end:"\\)",contains:["self",q,D,$,K]},K],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+G}]},ie={variants:[{begin:"'"+M},{begin:"#'"+M+"(::"+M+")*"}]},he={begin:"\\(\\s*",end:"\\)"},J={endsWithParent:!0,relevance:0};return he.contains=[{className:"name",variants:[{begin:M,relevance:0},{begin:G}]},J],J.contains=[ae,ie,he,q,$,D,B,R,U,z,K],{name:"Lisp",illegal:/\S/,contains:[$,m.SHEBANG(),q,D,B,ae,ie,he,K]}}return lisp_1=k,lisp_1}var livecodeserver_1,hasRequiredLivecodeserver;function requireLivecodeserver(){if(hasRequiredLivecodeserver)return livecodeserver_1;hasRequiredLivecodeserver=1;function k(m){const M={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},G=[m.C_BLOCK_COMMENT_MODE,m.HASH_COMMENT_MODE,m.COMMENT("--","$"),m.COMMENT("[^:]//","$")],V=m.inherit(m.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),q=m.inherit(m.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[M,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[M,q,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE,V]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[q,V],relevance:0},{beginKeywords:"command on",end:"$",contains:[M,q,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE,V]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE,V].concat(G),illegal:";$|^\\[|^=|&|\\{"}}return livecodeserver_1=k,livecodeserver_1}var livescript_1,hasRequiredLivescript;function requireLivescript(){if(hasRequiredLivescript)return livescript_1;hasRequiredLivescript=1;const k=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],m=["true","false","null","undefined","NaN","Infinity"],M=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],G=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],V=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],q=[].concat(V,M,G);function $(D){const B=["npm","print"],R=["yes","no","on","off","it","that","void"],U=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],K={keyword:k.concat(U),literal:m.concat(R),built_in:q.concat(B)},z="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",e=D.inherit(D.TITLE_MODE,{begin:z}),ae={className:"subst",begin:/#\{/,end:/\}/,keywords:K},ie={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:K},he=[D.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[D.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[D.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[D.BACKSLASH_ESCAPE,ae,ie]},{begin:/"/,end:/"/,contains:[D.BACKSLASH_ESCAPE,ae,ie]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[ae,D.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+z},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];ae.contains=he;const J={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:K,contains:["self"].concat(he)}]},W={begin:"(#=>|=>|\\|>>|-?->|!->)"},X={variants:[{match:[/class\s+/,z,/\s+extends\s+/,z]},{match:[/class\s+/,z]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:K};return{name:"LiveScript",aliases:["ls"],keywords:K,illegal:/\/\*/,contains:he.concat([D.COMMENT("\\/\\*","\\*\\/"),D.HASH_COMMENT_MODE,W,{className:"function",contains:[e,J],returnBegin:!0,variants:[{begin:"("+z+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+z+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+z+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},X,{begin:z+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return livescript_1=$,livescript_1}var llvm_1,hasRequiredLlvm;function requireLlvm(){if(hasRequiredLlvm)return llvm_1;hasRequiredLlvm=1;function k(m){const M=m.regex,G=/([-a-zA-Z$._][\w$.-]*)/,V={className:"type",begin:/\bi\d+(?=\s|\b)/},q={className:"operator",relevance:0,begin:/=/},$={className:"punctuation",relevance:0,begin:/,/},D={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},B={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},R={className:"variable",variants:[{begin:M.concat(/%/,G)},{begin:/%\d+/},{begin:/#\d+/}]},U={className:"title",variants:[{begin:M.concat(/@/,G)},{begin:/@\d+/},{begin:M.concat(/!/,G)},{begin:M.concat(/!\d+/,G)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[V,m.COMMENT(/;\s*$/,null,{relevance:0}),m.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},U,$,q,R,B,D]}}return llvm_1=k,llvm_1}var lsl_1,hasRequiredLsl;function requireLsl(){if(hasRequiredLsl)return lsl_1;hasRequiredLsl=1;function k(m){const G={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},V={className:"number",relevance:0,begin:m.C_NUMBER_RE},q={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},$={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[G,{className:"comment",variants:[m.COMMENT("//","$"),m.COMMENT("/\\*","\\*/")],relevance:0},V,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},$,q,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return lsl_1=k,lsl_1}var lua_1,hasRequiredLua;function requireLua(){if(hasRequiredLua)return lua_1;hasRequiredLua=1;function k(m){const M="\\[=*\\[",G="\\]=*\\]",V={begin:M,end:G,contains:["self"]},q=[m.COMMENT("--(?!"+M+")","$"),m.COMMENT("--"+M,G,{contains:[V],relevance:10})];return{name:"Lua",keywords:{$pattern:m.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:q.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[m.inherit(m.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:q}].concat(q)},m.C_NUMBER_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{className:"string",begin:M,end:G,contains:[V],relevance:5}])}}return lua_1=k,lua_1}var makefile_1,hasRequiredMakefile;function requireMakefile(){if(hasRequiredMakefile)return makefile_1;hasRequiredMakefile=1;function k(m){const M={className:"variable",variants:[{begin:"\\$\\("+m.UNDERSCORE_IDENT_RE+"\\)",contains:[m.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},G={className:"string",begin:/"/,end:/"/,contains:[m.BACKSLASH_ESCAPE,M]},V={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[M]},q={begin:"^"+m.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},$={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},D={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[M]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[m.HASH_COMMENT_MODE,M,G,V,q,$,D]}}return makefile_1=k,makefile_1}var mathematica_1,hasRequiredMathematica;function requireMathematica(){if(hasRequiredMathematica)return mathematica_1;hasRequiredMathematica=1;const k=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function m(M){const G=M.regex,V=/([2-9]|[1-2]\d|[3][0-5])\^\^/,q=/(\w*\.\w+|\w+\.\w*|\w+)/,$=/(\d*\.\d+|\d+\.\d*|\d+)/,D=G.either(G.concat(V,q),$),B=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,R=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,U=G.either(B,R),K=/\*\^[+-]?\d+/,e={className:"number",relevance:0,begin:G.concat(D,G.optional(U),G.optional(K))},ae=/[a-zA-Z$][a-zA-Z0-9$]*/,ie=new Set(k),he={variants:[{className:"builtin-symbol",begin:ae,"on:begin":(de,se)=>{ie.has(de[0])||se.ignoreMatch()}},{className:"symbol",relevance:0,begin:ae}]},J={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},W={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},X={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},L={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},Q={className:"brace",relevance:0,begin:/[[\](){}]/},ce={className:"message-name",relevance:0,begin:G.concat("::",ae)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[M.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),X,L,ce,he,J,M.QUOTE_STRING_MODE,e,W,Q]}}return mathematica_1=m,mathematica_1}var matlab_1,hasRequiredMatlab;function requireMatlab(){if(hasRequiredMatlab)return matlab_1;hasRequiredMatlab=1;function k(m){const M="('|\\.')+",G={relevance:0,contains:[{begin:M}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[m.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:G},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+M,relevance:0},{className:"number",begin:m.C_NUMBER_RE,relevance:0,starts:G},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:G},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:G},m.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),m.COMMENT("%","$")]}}return matlab_1=k,matlab_1}var maxima_1,hasRequiredMaxima;function requireMaxima(){if(hasRequiredMaxima)return maxima_1;hasRequiredMaxima=1;function k(m){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},m.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return maxima_1=k,maxima_1}var mel_1,hasRequiredMel;function requireMel(){if(hasRequiredMel)return mel_1;hasRequiredMel=1;function k(m){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[m.C_NUMBER_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]}}return mel_1=k,mel_1}var mercury_1,hasRequiredMercury;function requireMercury(){if(hasRequiredMercury)return mercury_1;hasRequiredMercury=1;function k(m){const M={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},G=m.COMMENT("%","$"),V={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},q=m.inherit(m.APOS_STRING_MODE,{relevance:0}),$=m.inherit(m.QUOTE_STRING_MODE,{relevance:0}),D={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return $.contains=$.contains.slice(),$.contains.push(D),{name:"Mercury",aliases:["m","moo"],keywords:M,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},G,m.C_BLOCK_COMMENT_MODE,V,m.NUMBER_MODE,q,$,{begin:/:-/},{begin:/\.$/}]}}return mercury_1=k,mercury_1}var mipsasm_1,hasRequiredMipsasm;function requireMipsasm(){if(hasRequiredMipsasm)return mipsasm_1;hasRequiredMipsasm=1;function k(m){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+m.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $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 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},m.COMMENT("[;#](?!\\s*$)","$"),m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return mipsasm_1=k,mipsasm_1}var mizar_1,hasRequiredMizar;function requireMizar(){if(hasRequiredMizar)return mizar_1;hasRequiredMizar=1;function k(m){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[m.COMMENT("::","$")]}}return mizar_1=k,mizar_1}var perl_1,hasRequiredPerl;function requirePerl(){if(hasRequiredPerl)return perl_1;hasRequiredPerl=1;function k(m){const M=m.regex,G=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],V=/[dualxmsipngr]{0,12}/,q={$pattern:/[\w.]+/,keyword:G.join(" ")},$={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:q},D={begin:/->\{/,end:/\}/},B={variants:[{begin:/\$\d/},{begin:M.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},R=[m.BACKSLASH_ESCAPE,$,B],U=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],K=(ae,ie,he="\\1")=>{const J=he==="\\1"?he:M.concat(he,ie);return M.concat(M.concat("(?:",ae,")"),ie,/(?:\\.|[^\\\/])*?/,J,/(?:\\.|[^\\\/])*?/,he,V)},z=(ae,ie,he)=>M.concat(M.concat("(?:",ae,")"),ie,/(?:\\.|[^\\\/])*?/,he,V),e=[B,m.HASH_COMMENT_MODE,m.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),D,{className:"string",contains:R,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[m.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+m.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[m.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:K("s|tr|y",M.either(...U,{capture:!0}))},{begin:K("s|tr|y","\\(","\\)")},{begin:K("s|tr|y","\\[","\\]")},{begin:K("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:z("(?:m|qr)?",/\//,/\//)},{begin:z("m|qr",M.either(...U,{capture:!0}),/\1/)},{begin:z("m|qr",/\(/,/\)/)},{begin:z("m|qr",/\[/,/\]/)},{begin:z("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[m.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return $.contains=e,D.contains=e,{name:"Perl",aliases:["pl","pm"],keywords:q,contains:e}}return perl_1=k,perl_1}var mojolicious_1,hasRequiredMojolicious;function requireMojolicious(){if(hasRequiredMojolicious)return mojolicious_1;hasRequiredMojolicious=1;function k(m){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return mojolicious_1=k,mojolicious_1}var monkey_1,hasRequiredMonkey;function requireMonkey(){if(hasRequiredMonkey)return monkey_1;hasRequiredMonkey=1;function k(m){const M={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},m.NUMBER_MODE]},G={variants:[{match:[/(function|method)/,/\s+/,m.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},V={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,m.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[m.COMMENT("#rem","#end"),m.COMMENT("'","$",{relevance:0}),G,V,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[m.UNDERSCORE_TITLE_MODE]},m.QUOTE_STRING_MODE,M]}}return monkey_1=k,monkey_1}var moonscript_1,hasRequiredMoonscript;function requireMoonscript(){if(hasRequiredMoonscript)return moonscript_1;hasRequiredMoonscript=1;function k(m){const M={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},G="[A-Za-z$_][0-9A-Za-z$_]*",V={className:"subst",begin:/#\{/,end:/\}/,keywords:M},q=[m.inherit(m.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[m.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[m.BACKSLASH_ESCAPE,V]}]},{className:"built_in",begin:"@__"+m.IDENT_RE},{begin:"@"+m.IDENT_RE},{begin:m.IDENT_RE+"\\\\"+m.IDENT_RE}];V.contains=q;const $=m.inherit(m.TITLE_MODE,{begin:G}),D="(\\(.*\\)\\s*)?\\B[-=]>",B={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:M,contains:["self"].concat(q)}]};return{name:"MoonScript",aliases:["moon"],keywords:M,illegal:/\/\*/,contains:q.concat([m.COMMENT("--","$"),{className:"function",begin:"^\\s*"+G+"\\s*=\\s*"+D,end:"[-=]>",returnBegin:!0,contains:[$,B]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:D,end:"[-=]>",returnBegin:!0,contains:[B]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[$]},$]},{className:"name",begin:G+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return moonscript_1=k,moonscript_1}var n1ql_1,hasRequiredN1ql;function requireN1ql(){if(hasRequiredN1ql)return n1ql_1;hasRequiredN1ql=1;function k(m){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[m.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[m.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE]},m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE]},m.C_BLOCK_COMMENT_MODE]}}return n1ql_1=k,n1ql_1}var nestedtext_1,hasRequiredNestedtext;function requireNestedtext(){if(hasRequiredNestedtext)return nestedtext_1;hasRequiredNestedtext=1;function k(m){const M={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},G={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},V={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},q={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[m.inherit(m.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),q,V,M,G]}}return nestedtext_1=k,nestedtext_1}var nginx_1,hasRequiredNginx;function requireNginx(){if(hasRequiredNginx)return nginx_1;hasRequiredNginx=1;function k(m){const M=m.regex,G={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:M.concat(/[$@]/,m.UNDERSCORE_IDENT_RE)}]},q={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[m.HASH_COMMENT_MODE,{className:"string",contains:[m.BACKSLASH_ESCAPE,G],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[G]},{className:"regexp",contains:[m.BACKSLASH_ESCAPE,G],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},G]};return{name:"Nginx config",aliases:["nginxconf"],contains:[m.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:q.contains,keywords:{section:"upstream location"}},{className:"section",begin:M.concat(m.UNDERSCORE_IDENT_RE+M.lookahead(/\s+\{/)),relevance:0},{begin:M.lookahead(m.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:m.UNDERSCORE_IDENT_RE,starts:q}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return nginx_1=k,nginx_1}var nim_1,hasRequiredNim;function requireNim(){if(hasRequiredNim)return nim_1;hasRequiredNim=1;function k(m){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},m.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},m.HASH_COMMENT_MODE]}}return nim_1=k,nim_1}var nix_1,hasRequiredNix;function requireNix(){if(hasRequiredNix)return nix_1;hasRequiredNix=1;function k(m){const M={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},G={className:"subst",begin:/\$\{/,end:/\}/,keywords:M},V={className:"char.escape",begin:/''\$/},q={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},$={className:"string",contains:[V,G],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},D=[m.NUMBER_MODE,m.HASH_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,$,q];return G.contains=D,{name:"Nix",aliases:["nixos"],keywords:M,contains:D}}return nix_1=k,nix_1}var nodeRepl_1,hasRequiredNodeRepl;function requireNodeRepl(){if(hasRequiredNodeRepl)return nodeRepl_1;hasRequiredNodeRepl=1;function k(m){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return nodeRepl_1=k,nodeRepl_1}var nsis_1,hasRequiredNsis;function requireNsis(){if(hasRequiredNsis)return nsis_1;hasRequiredNsis=1;function k(m){const M=m.regex,G=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],V=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],q=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],$={className:"variable.constant",begin:M.concat(/\$/,M.either(...G))},D={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},B={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},R={className:"variable",begin:/\$+\([\w^.:!-]+\)/},U={className:"params",begin:M.either(...V)},K={className:"keyword",begin:M.concat(/!/,M.either(...q))},z={className:"char.escape",begin:/\$(\\[nrt]|\$)/},e={className:"title.function",begin:/\w+::\w+/},ae={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[z,$,D,B,R]},ie=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],he=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],J={match:[/Function/,/\s+/,M.concat(/(\.)?/,m.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},X={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:ie,literal:he},contains:[m.HASH_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.COMMENT(";","$",{relevance:0}),X,J,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},ae,K,D,B,R,U,e,m.NUMBER_MODE]}}return nsis_1=k,nsis_1}var objectivec_1,hasRequiredObjectivec;function requireObjectivec(){if(hasRequiredObjectivec)return objectivec_1;hasRequiredObjectivec=1;function k(m){const M={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},G=/[a-zA-Z@][a-zA-Z0-9_]*/,B={"variable.language":["this","super"],$pattern:G,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},R={$pattern:G,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:B,illegal:"</",contains:[M,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.C_NUMBER_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},m.inherit(m.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+R.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:R,contains:[m.UNDERSCORE_TITLE_MODE]},{begin:"\\."+m.UNDERSCORE_IDENT_RE,relevance:0}]}}return objectivec_1=k,objectivec_1}var ocaml_1,hasRequiredOcaml;function requireOcaml(){if(hasRequiredOcaml)return ocaml_1;hasRequiredOcaml=1;function k(m){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},m.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},m.inherit(m.APOS_STRING_MODE,{className:"string",relevance:0}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return ocaml_1=k,ocaml_1}var openscad_1,hasRequiredOpenscad;function requireOpenscad(){if(hasRequiredOpenscad)return openscad_1;hasRequiredOpenscad=1;function k(m){const M={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},G={className:"literal",begin:"false|true|PI|undef"},V={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},q=m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),$={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},D={className:"params",begin:"\\(",end:"\\)",contains:["self",V,q,M,G]},B={begin:"[*!#%]",relevance:0},R={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[D,m.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,V,$,q,M,B,R]}}return openscad_1=k,openscad_1}var oxygene_1,hasRequiredOxygene;function requireOxygene(){if(hasRequiredOxygene)return oxygene_1;hasRequiredOxygene=1;function k(m){const M={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},G=m.COMMENT(/\{/,/\}/,{relevance:0}),V=m.COMMENT("\\(\\*","\\*\\)",{relevance:10}),q={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},$={className:"string",begin:"(#\\d+)+"},D={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[m.inherit(m.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:M,contains:[q,$]},G,V]},B={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:M,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[G,V,m.C_LINE_COMMENT_MODE,q,$,m.NUMBER_MODE,D,B]}}return oxygene_1=k,oxygene_1}var parser3_1,hasRequiredParser3;function requireParser3(){if(hasRequiredParser3)return parser3_1;hasRequiredParser3=1;function k(m){const M=m.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[m.COMMENT("^#","$"),m.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[M]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},m.C_NUMBER_MODE]}}return parser3_1=k,parser3_1}var pf_1,hasRequiredPf;function requirePf(){if(hasRequiredPf)return pf_1;hasRequiredPf=1;function k(m){const M={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},G={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[m.HASH_COMMENT_MODE,m.NUMBER_MODE,m.QUOTE_STRING_MODE,M,G]}}return pf_1=k,pf_1}var pgsql_1,hasRequiredPgsql;function requirePgsql(){if(hasRequiredPgsql)return pgsql_1;hasRequiredPgsql=1;function k(m){const M=m.COMMENT("--","$"),G="[a-zA-Z_][a-zA-Z_0-9$]*",V="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",q="<<\\s*"+G+"\\s*>>",$="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",D="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",B="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",R="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",U=R.trim().split(" ").map(function(he){return he.split("|")[0]}).join("|"),K="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",z="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",e="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",ie="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(he){return he.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:$+B+D,built_in:K+z+e},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:m.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+ie+")\\s*\\("},{begin:"\\.("+U+")\\b"},{begin:"\\b("+U+")\\s+PATH\\b",keywords:{keyword:"PATH",type:R.replace("PATH ","")}},{className:"type",begin:"\\b("+U+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},m.END_SAME_AS_BEGIN({begin:V,end:V,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE,M,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:q,relevance:10}]}}return pgsql_1=k,pgsql_1}var php_1,hasRequiredPhp;function requirePhp(){if(hasRequiredPhp)return php_1;hasRequiredPhp=1;function k(m){const M=m.regex,G=/(?![A-Za-z0-9])(?![$])/,V=M.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,G),q=M.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,G),$={scope:"variable",match:"\\$+"+V},D={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},B={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},R=m.inherit(m.APOS_STRING_MODE,{illegal:null}),U=m.inherit(m.QUOTE_STRING_MODE,{illegal:null,contains:m.QUOTE_STRING_MODE.contains.concat(B)}),K={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:m.QUOTE_STRING_MODE.contains.concat(B),"on:begin":(fe,ve)=>{ve.data._beginMatch=fe[1]||fe[2]},"on:end":(fe,ve)=>{ve.data._beginMatch!==fe[1]&&ve.ignoreMatch()}},z=m.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),e=`[
]`,ae={scope:"string",variants:[U,R,K,z]},ie={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},he=["false","null","true"],J=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],W=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],L={keyword:J,literal:(fe=>{const ve=[];return fe.forEach(ye=>{ve.push(ye),ye.toLowerCase()===ye?ve.push(ye.toUpperCase()):ve.push(ye.toLowerCase())}),ve})(he),built_in:W},Q=fe=>fe.map(ve=>ve.replace(/\|\d+$/,"")),ce={variants:[{match:[/new/,M.concat(e,"+"),M.concat("(?!",Q(W).join("\\b|"),"\\b)"),q],scope:{1:"keyword",4:"title.class"}}]},de=M.concat(V,"\\b(?!\\()"),se={variants:[{match:[M.concat(/::/,M.lookahead(/(?!class\b)/)),de],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[q,M.concat(/::/,M.lookahead(/(?!class\b)/)),de],scope:{1:"title.class",3:"variable.constant"}},{match:[q,M.concat("::",M.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[q,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},oe={scope:"attr",match:M.concat(V,M.lookahead(":"),M.lookahead(/(?!::)/))},me={relevance:0,begin:/\(/,end:/\)/,keywords:L,contains:[oe,$,se,m.C_BLOCK_COMMENT_MODE,ae,ie,ce]},Ee={relevance:0,match:[/\b/,M.concat("(?!fn\\b|function\\b|",Q(J).join("\\b|"),"|",Q(W).join("\\b|"),"\\b)"),V,M.concat(e,"*"),M.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[me]};me.contains.push(Ee);const ke=[oe,se,m.C_BLOCK_COMMENT_MODE,ae,ie,ce],xe={begin:M.concat(/#\[\s*/,q),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:he,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:he,keyword:["new","array"]},contains:["self",...ke]},...ke,{scope:"meta",match:q}]};return{case_insensitive:!1,keywords:L,contains:[xe,m.HASH_COMMENT_MODE,m.COMMENT("//","$"),m.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:m.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},D,{scope:"variable.language",match:/\$this\b/},$,Ee,se,{match:[/const/,/\s/,V],scope:{1:"keyword",3:"variable.constant"}},ce,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},m.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:L,contains:["self",$,se,m.C_BLOCK_COMMENT_MODE,ae,ie]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},m.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[m.inherit(m.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},m.UNDERSCORE_TITLE_MODE]},ae,ie]}}return php_1=k,php_1}var phpTemplate_1,hasRequiredPhpTemplate;function requirePhpTemplate(){if(hasRequiredPhpTemplate)return phpTemplate_1;hasRequiredPhpTemplate=1;function k(m){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},m.inherit(m.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return phpTemplate_1=k,phpTemplate_1}var plaintext_1,hasRequiredPlaintext;function requirePlaintext(){if(hasRequiredPlaintext)return plaintext_1;hasRequiredPlaintext=1;function k(m){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return plaintext_1=k,plaintext_1}var pony_1,hasRequiredPony;function requirePony(){if(hasRequiredPony)return pony_1;hasRequiredPony=1;function k(m){const M={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},G={className:"string",begin:'"""',end:'"""',relevance:10},V={className:"string",begin:'"',end:'"',contains:[m.BACKSLASH_ESCAPE]},q={className:"string",begin:"'",end:"'",contains:[m.BACKSLASH_ESCAPE],relevance:0},$={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},D={begin:m.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:M,contains:[$,G,V,q,D,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]}}return pony_1=k,pony_1}var powershell_1,hasRequiredPowershell;function requirePowershell(){if(hasRequiredPowershell)return powershell_1;hasRequiredPowershell=1;function k(m){const M=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],G="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",V="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",q={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},$=/\w[\w\d]*((-)[\w\d]+)*/,D={begin:"`[\\s\\S]",relevance:0},B={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},R={className:"literal",begin:/\$(null|true|false)\b/},U={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[D,B,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},K={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},z={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},e=m.inherit(m.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[z]}),ae={className:"built_in",variants:[{begin:"(".concat(G,")+(-)[\\w\\d]+")}]},ie={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[m.TITLE_MODE]},he={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:$,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[B]}]},J={begin:/using\s/,end:/$/,returnBegin:!0,contains:[U,K,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},W={variants:[{className:"operator",begin:"(".concat(V,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},X={className:"selector-tag",begin:/@\B/,relevance:0},L={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(q.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},m.inherit(m.TITLE_MODE,{endsParent:!0})]},Q=[L,e,D,m.NUMBER_MODE,U,K,ae,B,R,X],ce={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",Q,{begin:"("+M.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return L.contains.unshift(ce),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:q,contains:Q.concat(ie,he,J,W,ce)}}return powershell_1=k,powershell_1}var processing_1,hasRequiredProcessing;function requireProcessing(){if(hasRequiredProcessing)return processing_1;hasRequiredProcessing=1;function k(m){const M=m.regex,G=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],V=m.IDENT_RE,q={variants:[{match:M.concat(M.either(...G),M.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:M.concat(/\b(?!for|if|while)/,V,M.lookahead(/\s*\(/)),className:"title.function"}]},$={match:[/new\s+/,V],className:{1:"keyword",2:"class.title"}},D={relevance:0,match:[/\./,V],className:{2:"property"}},B={variants:[{match:[/class/,/\s+/,V,/\s+/,/extends/,/\s+/,V]},{match:[/class/,/\s+/,V]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},R=["boolean","byte","char","color","double","float","int","long","short"],U=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...G,...U],type:R},contains:[B,$,q,D,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE]}}return processing_1=k,processing_1}var profile_1,hasRequiredProfile;function requireProfile(){if(hasRequiredProfile)return profile_1;hasRequiredProfile=1;function k(m){return{name:"Python profiler",contains:[m.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[m.C_NUMBER_MODE],relevance:10},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return profile_1=k,profile_1}var prolog_1,hasRequiredProlog;function requireProlog(){if(hasRequiredProlog)return prolog_1;hasRequiredProlog=1;function k(m){const M={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},G={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},V={begin:/\(/,end:/\)/,relevance:0},q={begin:/\[/,end:/\]/},$={className:"comment",begin:/%/,end:/$/,contains:[m.PHRASAL_WORDS_MODE]},D={className:"string",begin:/`/,end:/`/,contains:[m.BACKSLASH_ESCAPE]},B={className:"string",begin:/0'(\\'|.)/},R={className:"string",begin:/0'\\s/},K=[M,G,V,{begin:/:-/},q,$,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,D,B,R,m.C_NUMBER_MODE];return V.contains=K,q.contains=K,{name:"Prolog",contains:K.concat([{begin:/\.$/}])}}return prolog_1=k,prolog_1}var properties_1,hasRequiredProperties;function requireProperties(){if(hasRequiredProperties)return properties_1;hasRequiredProperties=1;function k(m){const M="[ \\t\\f]*",G="[ \\t\\f]+",V=M+"[:=]"+M,q=G,$="("+V+"|"+q+")",D="([^\\\\:= \\t\\f\\n]|\\\\.)+",B={end:$,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[m.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:D+V},{begin:D+q}],contains:[{className:"attr",begin:D,endsParent:!0}],starts:B},{className:"attr",begin:D+M+"$"}]}}return properties_1=k,properties_1}var protobuf_1,hasRequiredProtobuf;function requireProtobuf(){if(hasRequiredProtobuf)return protobuf_1;hasRequiredProtobuf=1;function k(m){const M=["package","import","option","optional","required","repeated","group","oneof"],G=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],V={match:[/(message|enum|service)\s+/,m.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:M,type:G,literal:["true","false"]},contains:[m.QUOTE_STRING_MODE,m.NUMBER_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,V,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return protobuf_1=k,protobuf_1}var puppet_1,hasRequiredPuppet;function requirePuppet(){if(hasRequiredPuppet)return puppet_1;hasRequiredPuppet=1;function k(m){const M={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},G=m.COMMENT("#","$"),V="([A-Za-z_]|::)(\\w|::)*",q=m.inherit(m.TITLE_MODE,{begin:V}),$={className:"variable",begin:"\\$"+V},D={className:"string",contains:[m.BACKSLASH_ESCAPE,$],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[G,$,D,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[q,G]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:m.IDENT_RE,endsParent:!0}]},{begin:m.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:m.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:M,relevance:0,contains:[D,G,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:m.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},$]}],relevance:0}]}}return puppet_1=k,puppet_1}var purebasic_1,hasRequiredPurebasic;function requirePurebasic(){if(hasRequiredPurebasic)return purebasic_1;hasRequiredPurebasic=1;function k(m){const M={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},G={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[m.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},m.UNDERSCORE_TITLE_MODE]},M,G]}}return purebasic_1=k,purebasic_1}var python_1,hasRequiredPython;function requirePython(){if(hasRequiredPython)return python_1;hasRequiredPython=1;function k(m){const M=m.regex,G=/[\p{XID_Start}_]\p{XID_Continue}*/u,V=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],B={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:V,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},R={className:"meta",begin:/^(>>>|\.\.\.) /},U={className:"subst",begin:/\{/,end:/\}/,keywords:B,illegal:/#/},K={begin:/\{\{/,relevance:0},z={className:"string",contains:[m.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[m.BACKSLASH_ESCAPE,R],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[m.BACKSLASH_ESCAPE,R],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[m.BACKSLASH_ESCAPE,R,K,U]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[m.BACKSLASH_ESCAPE,R,K,U]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[m.BACKSLASH_ESCAPE,K,U]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[m.BACKSLASH_ESCAPE,K,U]},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},e="[0-9](_?[0-9])*",ae=`(\\b(${e}))?\\.(${e})|\\b(${e})\\.`,ie=`\\b|${V.join("|")}`,he={className:"number",relevance:0,variants:[{begin:`(\\b(${e})|(${ae}))[eE][+-]?(${e})[jJ]?(?=${ie})`},{begin:`(${ae})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${ie})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${ie})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${ie})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${ie})`},{begin:`\\b(${e})[jJ](?=${ie})`}]},J={className:"comment",begin:M.lookahead(/# type:/),end:/$/,keywords:B,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},W={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:B,contains:["self",R,he,z,m.HASH_COMMENT_MODE]}]};return U.contains=[z,he,R],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:B,illegal:/(<\/|\?)|=>/,contains:[R,he,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},z,J,m.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,G],scope:{1:"keyword",3:"title.function"},contains:[W]},{variants:[{match:[/\bclass/,/\s+/,G,/\s*/,/\(\s*/,G,/\s*\)/]},{match:[/\bclass/,/\s+/,G]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[he,W,z]}]}}return python_1=k,python_1}var pythonRepl_1,hasRequiredPythonRepl;function requirePythonRepl(){if(hasRequiredPythonRepl)return pythonRepl_1;hasRequiredPythonRepl=1;function k(m){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return pythonRepl_1=k,pythonRepl_1}var q_1,hasRequiredQ;function requireQ(){if(hasRequiredQ)return q_1;hasRequiredQ=1;function k(m){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[m.C_LINE_COMMENT_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE]}}return q_1=k,q_1}var qml_1,hasRequiredQml;function requireQml(){if(hasRequiredQml)return qml_1;hasRequiredQml=1;function k(m){const M=m.regex,G={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},V="[a-zA-Z_][a-zA-Z0-9\\._]*",q={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},$={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},D={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:V,returnEnd:!1}},B={begin:V+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:V,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},R={begin:M.concat(V,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[m.inherit(m.TITLE_MODE,{begin:V})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:G,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:m.C_NUMBER_RE}],relevance:0},{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},$,q,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[m.inherit(m.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+m.IDENT_RE,relevance:0},D,B,R],illegal:/#/}}return qml_1=k,qml_1}var r_1,hasRequiredR;function requireR(){if(hasRequiredR)return r_1;hasRequiredR=1;function k(m){const M=m.regex,G=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,V=M.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),q=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,$=M.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:G,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[m.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:M.lookahead(M.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:G},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),m.HASH_COMMENT_MODE,{scope:"string",contains:[m.BACKSLASH_ESCAPE],variants:[m.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),m.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),m.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),m.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),m.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),m.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[q,V]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,V]},{scope:{1:"punctuation",2:"number"},match:[$,V]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,V]}]},{scope:{3:"operator"},match:[G,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:q},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:$},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return r_1=k,r_1}var reasonml_1,hasRequiredReasonml;function requireReasonml(){if(hasRequiredReasonml)return reasonml_1;hasRequiredReasonml=1;function k(m){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},m.C_LINE_COMMENT_MODE,m.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},m.inherit(m.APOS_STRING_MODE,{scope:"string",relevance:0}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return reasonml_1=k,reasonml_1}var rib_1,hasRequiredRib;function requireRib(){if(hasRequiredRib)return rib_1;hasRequiredRib=1;function k(m){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[m.HASH_COMMENT_MODE,m.C_NUMBER_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]}}return rib_1=k,rib_1}var roboconf_1,hasRequiredRoboconf;function requireRoboconf(){if(hasRequiredRoboconf)return roboconf_1;hasRequiredRoboconf=1;function k(m){const M="[a-zA-Z-_][^\\n{]+\\{",G={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+M,end:/\}/,keywords:"facet",contains:[G,m.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+M,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",G,m.HASH_COMMENT_MODE]},{begin:"^"+M,end:/\}/,contains:[G,m.HASH_COMMENT_MODE]},m.HASH_COMMENT_MODE]}}return roboconf_1=k,roboconf_1}var routeros_1,hasRequiredRouteros;function requireRouteros(){if(hasRequiredRouteros)return routeros_1;hasRequiredRouteros=1;function k(m){const M="foreach do while for if from to step else on-error and or not in",G="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",V="add remove enable disable set get print export edit find run debug error info warning",q="true false yes no nothing nil null",$="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",D={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},B={className:"string",begin:/"/,end:/"/,contains:[m.BACKSLASH_ESCAPE,D,{className:"variable",begin:/\$\(/,end:/\)/,contains:[m.BACKSLASH_ESCAPE]}]},R={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:q,keyword:M+" :"+M.split(" ").join(" :")+" :"+G.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},m.COMMENT("^#","$"),B,R,D,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[B,R,D,{className:"literal",begin:"\\b("+q.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+V.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+$.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return routeros_1=k,routeros_1}var rsl_1,hasRequiredRsl;function requireRsl(){if(hasRequiredRsl)return rsl_1;hasRequiredRsl=1;function k(m){const M=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],G=["matrix","float","color","point","normal","vector"],V=["while","for","if","do","return","else","break","extern","continue"],q={match:[/(surface|displacement|light|volume|imager)/,/\s+/,m.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:V,built_in:M,type:G},illegal:"</",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,m.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},q,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return rsl_1=k,rsl_1}var ruleslanguage_1,hasRequiredRuleslanguage;function requireRuleslanguage(){if(hasRequiredRuleslanguage)return ruleslanguage_1;hasRequiredRuleslanguage=1;function k(m){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return ruleslanguage_1=k,ruleslanguage_1}var rust_1,hasRequiredRust;function requireRust(){if(hasRequiredRust)return rust_1;hasRequiredRust=1;function k(m){const M=m.regex,G={className:"title.function.invoke",relevance:0,begin:M.concat(/\b/,/(?!let|for|while|if|else|match\b)/,m.IDENT_RE,M.lookahead(/\s*\(/))},V="([ui](8|16|32|64|128|size)|f(32|64))?",q=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],$=["true","false","Some","None","Ok","Err"],D=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],B=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:m.IDENT_RE+"!?",type:B,keyword:q,literal:$,built_in:D},illegal:"</",contains:[m.C_LINE_COMMENT_MODE,m.COMMENT("/\\*","\\*/",{contains:["self"]}),m.inherit(m.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+V},{begin:"\\b0o([0-7_]+)"+V},{begin:"\\b0x([A-Fa-f0-9_]+)"+V},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+V}],relevance:0},{begin:[/fn/,/\s+/,m.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,m.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,m.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,m.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,m.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:m.IDENT_RE+"::",keywords:{keyword:"Self",built_in:D,type:B}},{className:"punctuation",begin:"->"},G]}}return rust_1=k,rust_1}var sas_1,hasRequiredSas;function requireSas(){if(hasRequiredSas)return sas_1;hasRequiredSas=1;function k(m){const M=m.regex,G=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],V=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],q=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:G},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+M.either(...q)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:M.either(...V)+"(?=\\()"},{className:"string",variants:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},m.COMMENT("\\*",";"),m.C_BLOCK_COMMENT_MODE]}}return sas_1=k,sas_1}var scala_1,hasRequiredScala;function requireScala(){if(hasRequiredScala)return scala_1;hasRequiredScala=1;function k(m){const M=m.regex,G={className:"meta",begin:"@[A-Za-z]+"},V={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},q={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE,V]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[V],relevance:10}]},$={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},D={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},B={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[$,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[$,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]},D]},R={className:"function",beginKeywords:"def",end:M.lookahead(/[:={\[(\n;]/),contains:[D]},U={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},K={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},z=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],e={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,q,$,R,B,m.C_NUMBER_MODE,U,K,...z,e,G]}}return scala_1=k,scala_1}var scheme_1,hasRequiredScheme;function requireScheme(){if(hasRequiredScheme)return scheme_1;hasRequiredScheme=1;function k(m){const M="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",G="(-|\\+)?\\d+([./]\\d+)?",V=G+"[+\\-]"+G+"i",q={$pattern:M,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},$={className:"literal",begin:"(#t|#f|#\\\\"+M+"|#\\\\.)"},D={className:"number",variants:[{begin:G,relevance:0},{begin:V,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},B=m.QUOTE_STRING_MODE,R=[m.COMMENT(";","$",{relevance:0}),m.COMMENT("#\\|","\\|#")],U={begin:M,relevance:0},K={className:"symbol",begin:"'"+M},z={endsWithParent:!0,relevance:0},e={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",$,B,D,U,K]}]},ae={className:"name",relevance:0,begin:M,keywords:q},he={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[ae,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[U]}]},ae,z]};return z.contains=[$,D,B,U,K,e,he].concat(R),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[m.SHEBANG(),D,B,K,e,he].concat(R)}}return scheme_1=k,scheme_1}var scilab_1,hasRequiredScilab;function requireScilab(){if(hasRequiredScilab)return scilab_1;hasRequiredScilab=1;function k(m){const M=[m.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[m.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[m.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:M},m.COMMENT("//","$")].concat(M)}}return scilab_1=k,scilab_1}var scss_1,hasRequiredScss;function requireScss(){if(hasRequiredScss)return scss_1;hasRequiredScss=1;const k=D=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:D.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[D.APOS_STRING_MODE,D.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:D.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],M=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],G=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],V=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],q=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function $(D){const B=k(D),R=V,U=G,K="@[a-z-]+",z="and or not only",ae={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[D.C_LINE_COMMENT_MODE,D.C_BLOCK_COMMENT_MODE,B.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},B.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+m.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+U.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+R.join("|")+")"},ae,{begin:/\(/,end:/\)/,contains:[B.CSS_NUMBER_MODE]},B.CSS_VARIABLE,{className:"attribute",begin:"\\b("+q.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[B.BLOCK_COMMENT,ae,B.HEXCOLOR,B.CSS_NUMBER_MODE,D.QUOTE_STRING_MODE,D.APOS_STRING_MODE,B.IMPORTANT,B.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:K,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:z,attribute:M.join(" ")},contains:[{begin:K,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},ae,D.QUOTE_STRING_MODE,D.APOS_STRING_MODE,B.HEXCOLOR,B.CSS_NUMBER_MODE]},B.FUNCTION_DISPATCH]}}return scss_1=$,scss_1}var shell_1,hasRequiredShell;function requireShell(){if(hasRequiredShell)return shell_1;hasRequiredShell=1;function k(m){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return shell_1=k,shell_1}var smali_1,hasRequiredSmali;function requireSmali(){if(hasRequiredSmali)return smali_1;hasRequiredSmali=1;function k(m){const M=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],G=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],V=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},m.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+V.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+M.join("|")+")\\s"},{begin:"\\s("+M.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+G.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=k,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function k(m){const M="[a-z][a-zA-Z0-9_]*",G={className:"string",begin:"\\$.{1}"},V={className:"symbol",begin:"#"+m.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[m.COMMENT('"','"'),m.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:M+":",relevance:0},m.C_NUMBER_MODE,V,G,{begin:"\\|[ ]*"+M+"([ ]+"+M+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+M}]},{begin:"#\\(",end:"\\)",contains:[m.APOS_STRING_MODE,G,m.C_NUMBER_MODE,V]}]}}return smalltalk_1=k,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function k(m){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},m.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},m.inherit(m.APOS_STRING_MODE,{className:"string",relevance:0}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return sml_1=k,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function k(m){const M={className:"variable",begin:/\b_+[a-zA-Z]\w*/},G={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},V={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},q=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],$=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],D=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],B={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},m.inherit(V,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:q,built_in:D,literal:$},contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.NUMBER_MODE,M,G,V,B],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return sqf_1=k,sqf_1}var sql_1,hasRequiredSql;function requireSql(){if(hasRequiredSql)return sql_1;hasRequiredSql=1;function k(m){const M=m.regex,G=m.COMMENT("--","$"),V={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},q={begin:/"/,end:/"/,contains:[{begin:/""/}]},$=["true","false","unknown"],D=["double precision","large object","with timezone","without timezone"],B=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],R=["add","asc","collation","desc","final","first","last","view"],U=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],K=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],z=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],e=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],ae=K,ie=[...U,...R].filter(L=>!K.includes(L)),he={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},J={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},W={begin:M.concat(/\b/,M.either(...ae),/\s*\(/),relevance:0,keywords:{built_in:ae}};function X(L,{exceptions:Q,when:ce}={}){const de=ce;return Q=Q||[],L.map(se=>se.match(/\|\d+$/)||Q.includes(se)?se:de(se)?`${se}|0`:se)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:X(ie,{when:L=>L.length<3}),literal:$,type:B,built_in:z},contains:[{begin:M.either(...e),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:ie.concat(e),literal:$,type:B}},{className:"type",begin:M.either(...D)},W,he,V,q,m.C_NUMBER_MODE,m.C_BLOCK_COMMENT_MODE,G,J]}}return sql_1=k,sql_1}var stan_1,hasRequiredStan;function requireStan(){if(hasRequiredStan)return stan_1;hasRequiredStan=1;function k(m){const M=m.regex,G=["functions","model","data","parameters","quantities","transformed","generated"],V=["for","in","if","else","while","break","continue","return"],q=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],$=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],D=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],B=m.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),R={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},m.C_LINE_COMMENT_MODE]},U=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:m.IDENT_RE,title:G,type:q,keyword:V,built_in:$},contains:[m.C_LINE_COMMENT_MODE,R,m.HASH_COMMENT_MODE,B,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:M.concat(/[<,]\s*/,M.either(...U),/\s*=/),keywords:U},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,M.either(...D),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:D,begin:M.concat(/\w*/,M.either(...D),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,M.concat(M.either(...D),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+M.either(...D)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:M.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return stan_1=k,stan_1}var stata_1,hasRequiredStata;function requireStata(){if(hasRequiredStata)return stata_1;hasRequiredStata=1;function k(m){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},m.COMMENT("^[ ]*\\*.*$",!1),m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE]}}return stata_1=k,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function k(m){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,m.COMMENT("/\\*\\*!","\\*/"),m.C_NUMBER_MODE,m.inherit(m.APOS_STRING_MODE,{illegal:null}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return step21_1=k,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const k=D=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:D.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[D.APOS_STRING_MODE,D.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:D.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],M=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],G=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],V=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],q=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function $(D){const B=k(D),R="and or not only",U={className:"variable",begin:"\\$"+D.IDENT_RE},K=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],z="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[D.QUOTE_STRING_MODE,D.APOS_STRING_MODE,D.C_LINE_COMMENT_MODE,D.C_BLOCK_COMMENT_MODE,B.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+z,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+z,className:"selector-id"},{begin:"\\b("+m.join("|")+")"+z,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+G.join("|")+")"+z},{className:"selector-pseudo",begin:"&?:(:)?("+V.join("|")+")"+z},B.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:R,attribute:M.join(" ")},contains:[B.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+K.join("|")+"))\\b"},U,B.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[B.HEXCOLOR,U,D.APOS_STRING_MODE,B.CSS_NUMBER_MODE,D.QUOTE_STRING_MODE]}]},B.CSS_VARIABLE,{className:"attribute",begin:"\\b("+q.join("|")+")\\b",starts:{end:/;|$/,contains:[B.HEXCOLOR,U,D.APOS_STRING_MODE,D.QUOTE_STRING_MODE,B.CSS_NUMBER_MODE,D.C_BLOCK_COMMENT_MODE,B.IMPORTANT,B.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},B.FUNCTION_DISPATCH]}}return stylus_1=$,stylus_1}var subunit_1,hasRequiredSubunit;function requireSubunit(){if(hasRequiredSubunit)return subunit_1;hasRequiredSubunit=1;function k(m){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=k,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function k(se){return se?typeof se=="string"?se:se.source:null}function m(se){return M("(?=",se,")")}function M(...se){return se.map(me=>k(me)).join("")}function G(se){const oe=se[se.length-1];return typeof oe=="object"&&oe.constructor===Object?(se.splice(se.length-1,1),oe):{}}function V(...se){return"("+(G(se).capture?"":"?:")+se.map(Ee=>k(Ee)).join("|")+")"}const q=se=>M(/\b/,se,/\w$/.test(se)?/\b/:/\B/),$=["Protocol","Type"].map(q),D=["init","self"].map(q),B=["Any","Self"],R=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],U=["false","nil","true"],K=["assignment","associativity","higherThan","left","lowerThan","none","right"],z=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],e=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],ae=V(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),ie=V(ae,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),he=M(ae,ie,"*"),J=V(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),W=V(J,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),X=M(J,W,"*"),L=M(/[A-Z]/,W,"*"),Q=["attached","autoclosure",M(/convention\(/,V("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",M(/objc\(/,X,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ce=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function de(se){const oe={match:/\s+/,relevance:0},me=se.COMMENT("/\\*","\\*/",{contains:["self"]}),Ee=[se.C_LINE_COMMENT_MODE,me],ke={match:[/\./,V(...$,...D)],className:{2:"keyword"}},xe={match:M(/\./,V(...R)),relevance:0},fe=R.filter(Wt=>typeof Wt=="string").concat(["_|0"]),ve=R.filter(Wt=>typeof Wt!="string").concat(B).map(q),ye={variants:[{className:"keyword",match:V(...ve,...D)}]},Ce={$pattern:V(/\b\w+/,/#\w+/),keyword:fe.concat(z),literal:U},pe=[ke,xe,ye],_e={match:M(/\./,V(...e)),relevance:0},Ge={className:"built_in",match:M(/\b/,V(...e),/(?=\()/)},Ae=[_e,Ge],Ne={match:/->/,relevance:0},Ze={className:"operator",relevance:0,variants:[{match:he},{match:`\\.(\\.|${ie})+`}]},ze=[Ne,Ze],Te="([0-9]_*)+",Fe="([0-9a-fA-F]_*)+",Pe={className:"number",relevance:0,variants:[{match:`\\b(${Te})(\\.(${Te}))?([eE][+-]?(${Te}))?\\b`},{match:`\\b0x(${Fe})(\\.(${Fe}))?([pP][+-]?(${Te}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},we=(Wt="")=>({className:"subst",variants:[{match:M(/\\/,Wt,/[0\\tnr"']/)},{match:M(/\\/,Wt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ie=(Wt="")=>({className:"subst",match:M(/\\/,Wt,/[\t ]*(?:[\r\n]|\r\n)/)}),Be=(Wt="")=>({className:"subst",label:"interpol",begin:M(/\\/,Wt,/\(/),end:/\)/}),Ke=(Wt="")=>({begin:M(Wt,/"""/),end:M(/"""/,Wt),contains:[we(Wt),Ie(Wt),Be(Wt)]}),Ve=(Wt="")=>({begin:M(Wt,/"/),end:M(/"/,Wt),contains:[we(Wt),Be(Wt)]}),je={className:"string",variants:[Ke(),Ke("#"),Ke("##"),Ke("###"),Ve(),Ve("#"),Ve("##"),Ve("###")]},Le=[se.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[se.BACKSLASH_ESCAPE]}],et={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Le},Qe=Wt=>{const Mt=M(Wt,/\//),$t=M(/\//,Wt);return{begin:Mt,end:$t,contains:[...Le,{scope:"comment",begin:`#(?!.*${$t})`,end:/$/}]}},Ue={scope:"regexp",variants:[Qe("###"),Qe("##"),Qe("#"),et]},$e={match:M(/`/,X,/`/)},Ye={className:"variable",match:/\$\d+/},tt={className:"variable",match:`\\$${W}+`},ot=[$e,Ye,tt],st={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ce,contains:[...ze,Pe,je]}]}},dt={scope:"keyword",match:M(/@/,V(...Q))},ct={scope:"meta",match:M(/@/,X)},mt=[st,dt,ct],ut={match:m(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:M(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,W,"+")},{className:"type",match:L,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:M(/\s+&\s+/,m(L)),relevance:0}]},rt={begin:/</,end:/>/,keywords:Ce,contains:[...Ee,...pe,...mt,Ne,ut]};ut.contains.push(rt);const He={match:M(X,/\s*:/),keywords:"_|0",relevance:0},Je={begin:/\(/,end:/\)/,relevance:0,keywords:Ce,contains:["self",He,...Ee,Ue,...pe,...Ae,...ze,Pe,je,...ot,...mt,ut]},St={begin:/</,end:/>/,keywords:"repeat each",contains:[...Ee,ut]},bt={begin:V(m(M(X,/\s*:/)),m(M(X,/\s+/,X,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:X}]},pt={begin:/\(/,end:/\)/,keywords:Ce,contains:[bt,...Ee,...pe,...ze,Pe,je,...mt,ut,Je],endsParent:!0,illegal:/["']/},wt={match:[/(func|macro)/,/\s+/,V($e.match,X,he)],className:{1:"keyword",3:"title.function"},contains:[St,pt,oe],illegal:[/\[/,/%/]},Pt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[St,pt,oe],illegal:/\[|%/},Nt={match:[/operator/,/\s+/,he],className:{1:"keyword",3:"title"}},Vt={begin:[/precedencegroup/,/\s+/,L],className:{1:"keyword",3:"title"},contains:[ut],keywords:[...K,...U],end:/}/};for(const Wt of je.variants){const Mt=Wt.contains.find(Yt=>Yt.label==="interpol");Mt.keywords=Ce;const $t=[...pe,...Ae,...ze,Pe,je,...ot];Mt.contains=[...$t,{begin:/\(/,end:/\)/,contains:["self",...$t]}]}return{name:"Swift",keywords:Ce,contains:[...Ee,wt,Pt,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:Ce,contains:[se.inherit(se.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...pe]},Nt,Vt,{beginKeywords:"import",end:/$/,contains:[...Ee],relevance:0},Ue,...pe,...Ae,...ze,Pe,je,...ot,...mt,ut,Je]}}return swift_1=de,swift_1}var taggerscript_1,hasRequiredTaggerscript;function requireTaggerscript(){if(hasRequiredTaggerscript)return taggerscript_1;hasRequiredTaggerscript=1;function k(m){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return taggerscript_1=k,taggerscript_1}var yaml_1,hasRequiredYaml;function requireYaml(){if(hasRequiredYaml)return yaml_1;hasRequiredYaml=1;function k(m){const M="true false yes no null",G="[\\w#;/?:@&=+$,.~*'()[\\]]+",V={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},q={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},$={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[m.BACKSLASH_ESCAPE,q]},D=m.inherit($,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),B="[0-9]{4}(-[0-9][0-9]){0,2}",R="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",U="(\\.[0-9]*)?",K="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",z={className:"number",begin:"\\b"+B+R+U+K+"\\b"},e={end:",",endsWithParent:!0,excludeEnd:!0,keywords:M,relevance:0},ae={begin:/\{/,end:/\}/,contains:[e],illegal:"\\n",relevance:0},ie={begin:"\\[",end:"\\]",contains:[e],illegal:"\\n",relevance:0},he=[V,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+G},{className:"type",begin:"!<"+G+">"},{className:"type",begin:"!"+G},{className:"type",begin:"!!"+G},{className:"meta",begin:"&"+m.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+m.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},m.HASH_COMMENT_MODE,{beginKeywords:M,keywords:{literal:M}},z,{className:"number",begin:m.C_NUMBER_RE+"\\b",relevance:0},ae,ie,$],J=[...he];return J.pop(),J.push(D),e.contains=J,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:he}}return yaml_1=k,yaml_1}var tap_1,hasRequiredTap;function requireTap(){if(hasRequiredTap)return tap_1;hasRequiredTap=1;function k(m){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[m.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return tap_1=k,tap_1}var tcl_1,hasRequiredTcl;function requireTcl(){if(hasRequiredTcl)return tcl_1;hasRequiredTcl=1;function k(m){const M=m.regex,G=/[a-zA-Z_][a-zA-Z0-9_]*/,V={className:"number",variants:[m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[m.COMMENT(";[ \\t]*#","$"),m.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:M.concat(/\$/,M.optional(/::/),G,"(::",G,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[V]}]},{className:"string",contains:[m.BACKSLASH_ESCAPE],variants:[m.inherit(m.QUOTE_STRING_MODE,{illegal:null})]},V]}}return tcl_1=k,tcl_1}var thrift_1,hasRequiredThrift;function requireThrift(){if(hasRequiredThrift)return thrift_1;hasRequiredThrift=1;function k(m){const M=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:M,literal:"true false"},contains:[m.QUOTE_STRING_MODE,m.NUMBER_MODE,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[m.inherit(m.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...M,"set","list","map"]},end:">",contains:["self"]}]}}return thrift_1=k,thrift_1}var tp_1,hasRequiredTp;function requireTp(){if(hasRequiredTp)return tp_1;hasRequiredTp=1;function k(m){const M={className:"number",begin:"[1-9][0-9]*",relevance:0},G={className:"symbol",begin:":[^\\]]+"},V={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",M,G]},q={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",M,m.QUOTE_STRING_MODE,G]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[V,q,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},m.COMMENT("//","[;$]"),m.COMMENT("!","[;$]"),m.COMMENT("--eg:","$"),m.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},m.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return tp_1=k,tp_1}var twig_1,hasRequiredTwig;function requireTwig(){if(hasRequiredTwig)return twig_1;hasRequiredTwig=1;function k(m){const M=m.regex,G=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],V=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let q=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];q=q.concat(q.map(ie=>`end${ie}`));const $={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},D={scope:"number",match:/\d+/},B={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[$,D]},R={beginKeywords:G.join(" "),keywords:{name:G},relevance:0,contains:[B]},U={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:V}]},K=(ie,{relevance:he})=>({beginScope:{1:"template-tag",3:"name"},relevance:he||2,endScope:"template-tag",begin:[/\{%/,/\s*/,M.either(...ie)],end:/%\}/,keywords:"in",contains:[U,R,$,D]}),z=/[a-z_]+/,e=K(q,{relevance:2}),ae=K([z],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[m.COMMENT(/\{#/,/#\}/),e,ae,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",U,R,$,D]}]}}return twig_1=k,twig_1}var typescript_1,hasRequiredTypescript;function requireTypescript(){if(hasRequiredTypescript)return typescript_1;hasRequiredTypescript=1;const k="[A-Za-z$_][0-9A-Za-z$_]*",m=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],M=["true","false","null","undefined","NaN","Infinity"],G=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],V=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],q=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],D=[].concat(q,G,V);function B(U){const K=U.regex,z=(we,{after:Ie})=>{const Be="</"+we[0].slice(1);return we.input.indexOf(Be,Ie)!==-1},e=k,ae={begin:"<>",end:"</>"},ie=/<[A-Za-z0-9\\._:-]+\s*\/>/,he={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(we,Ie)=>{const Be=we[0].length+we.index,Ke=we.input[Be];if(Ke==="<"||Ke===","){Ie.ignoreMatch();return}Ke===">"&&(z(we,{after:Be})||Ie.ignoreMatch());let Ve;const je=we.input.substring(Be);if(Ve=je.match(/^\s*=/)){Ie.ignoreMatch();return}if((Ve=je.match(/^\s+extends\s+/))&&Ve.index===0){Ie.ignoreMatch();return}}},J={$pattern:k,keyword:m,literal:M,built_in:D,"variable.language":$},W="[0-9](_?[0-9])*",X=`\\.(${W})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Q={className:"number",variants:[{begin:`(\\b(${L})((${X})|\\.)?|(${X}))[eE][+-]?(${W})\\b`},{begin:`\\b(${L})\\b((${X})\\b|\\.)?|(${X})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},ce={className:"subst",begin:"\\$\\{",end:"\\}",keywords:J,contains:[]},de={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[U.BACKSLASH_ESCAPE,ce],subLanguage:"xml"}},se={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[U.BACKSLASH_ESCAPE,ce],subLanguage:"css"}},oe={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[U.BACKSLASH_ESCAPE,ce],subLanguage:"graphql"}},me={className:"string",begin:"`",end:"`",contains:[U.BACKSLASH_ESCAPE,ce]},ke={className:"comment",variants:[U.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:e+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),U.C_BLOCK_COMMENT_MODE,U.C_LINE_COMMENT_MODE]},xe=[U.APOS_STRING_MODE,U.QUOTE_STRING_MODE,de,se,oe,me,{match:/\$\d+/},Q];ce.contains=xe.concat({begin:/\{/,end:/\}/,keywords:J,contains:["self"].concat(xe)});const fe=[].concat(ke,ce.contains),ve=fe.concat([{begin:/\(/,end:/\)/,keywords:J,contains:["self"].concat(fe)}]),ye={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:J,contains:ve},Ce={variants:[{match:[/class/,/\s+/,e,/\s+/,/extends/,/\s+/,K.concat(e,"(",K.concat(/\./,e),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,e],scope:{1:"keyword",3:"title.class"}}]},pe={relevance:0,match:K.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...G,...V]}},_e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ge={variants:[{match:[/function/,/\s+/,e,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ye],illegal:/%/},Ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ne(we){return K.concat("(?!",we.join("|"),")")}const Ze={match:K.concat(/\b/,Ne([...q,"super","import"]),e,K.lookahead(/\(/)),className:"title.function",relevance:0},ze={begin:K.concat(/\./,K.lookahead(K.concat(e,/(?![0-9A-Za-z$_(])/))),end:e,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Te={match:[/get|set/,/\s+/,e,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ye]},Fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+U.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,e,/\s*/,/=\s*/,/(async\s*)?/,K.lookahead(Fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ye]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:J,exports:{PARAMS_CONTAINS:ve,CLASS_REFERENCE:pe},illegal:/#(?![$_A-z])/,contains:[U.SHEBANG({label:"shebang",binary:"node",relevance:5}),_e,U.APOS_STRING_MODE,U.QUOTE_STRING_MODE,de,se,oe,me,ke,{match:/\$\d+/},Q,pe,{className:"attr",begin:e+K.lookahead(":"),relevance:0},Pe,{begin:"("+U.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ke,U.REGEXP_MODE,{className:"function",begin:Fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:U.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:J,contains:ve}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:ae.begin,end:ae.end},{match:ie},{begin:he.begin,"on:begin":he.isTrulyOpeningTag,end:he.end}],subLanguage:"xml",contains:[{begin:he.begin,end:he.end,skip:!0,contains:["self"]}]}]},Ge,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+U.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ye,U.inherit(U.TITLE_MODE,{begin:e,className:"title.function"})]},{match:/\.\.\./,relevance:0},ze,{match:"\\$"+e,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ye]},Ze,Ae,Ce,Te,{match:/\$[(.]/}]}}function R(U){const K=B(U),z=k,e=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],ae={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[K.exports.CLASS_REFERENCE]},ie={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:e},contains:[K.exports.CLASS_REFERENCE]},he={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},J=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],W={$pattern:k,keyword:m.concat(J),literal:M,built_in:D.concat(e),"variable.language":$},X={className:"meta",begin:"@"+z},L=(ce,de,se)=>{const oe=ce.contains.findIndex(me=>me.label===de);if(oe===-1)throw new Error("can not find mode to replace");ce.contains.splice(oe,1,se)};Object.assign(K.keywords,W),K.exports.PARAMS_CONTAINS.push(X),K.contains=K.contains.concat([X,ae,ie]),L(K,"shebang",U.SHEBANG()),L(K,"use_strict",he);const Q=K.contains.find(ce=>ce.label==="func.def");return Q.relevance=0,Object.assign(K,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),K}return typescript_1=R,typescript_1}var vala_1,hasRequiredVala;function requireVala(){if(hasRequiredVala)return vala_1;hasRequiredVala=1;function k(m){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[m.UNDERSCORE_TITLE_MODE]},m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,m.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return vala_1=k,vala_1}var vbnet_1,hasRequiredVbnet;function requireVbnet(){if(hasRequiredVbnet)return vbnet_1;hasRequiredVbnet=1;function k(m){const M=m.regex,G={className:"string",begin:/"(""|[^/n])"C\b/},V={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},q=/\d{1,2}\/\d{1,2}\/\d{4}/,$=/\d{4}-\d{1,2}-\d{1,2}/,D=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,B=/\d{1,2}(:\d{1,2}){1,2}/,R={className:"literal",variants:[{begin:M.concat(/# */,M.either($,q),/ *#/)},{begin:M.concat(/# */,B,/ *#/)},{begin:M.concat(/# */,D,/ *#/)},{begin:M.concat(/# */,M.either($,q),/ +/,M.either(D,B),/ *#/)}]},U={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},K={className:"label",begin:/^\w+:/},z=m.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),e=m.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[G,V,R,U,K,z,e,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[e]}]}}return vbnet_1=k,vbnet_1}var vbscript_1,hasRequiredVbscript;function requireVbscript(){if(hasRequiredVbscript)return vbscript_1;hasRequiredVbscript=1;function k(m){const M=m.regex,G=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],V=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],q={begin:M.concat(M.either(...G),"\\s*\\("),relevance:0,keywords:{built_in:G}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:V,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[q,m.inherit(m.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),m.COMMENT(/'/,/$/,{relevance:0}),m.C_NUMBER_MODE]}}return vbscript_1=k,vbscript_1}var vbscriptHtml_1,hasRequiredVbscriptHtml;function requireVbscriptHtml(){if(hasRequiredVbscriptHtml)return vbscriptHtml_1;hasRequiredVbscriptHtml=1;function k(m){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return vbscriptHtml_1=k,vbscriptHtml_1}var verilog_1,hasRequiredVerilog;function requireVerilog(){if(hasRequiredVerilog)return verilog_1;hasRequiredVerilog=1;function k(m){const M=m.regex,G={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},V=["__FILE__","__LINE__"],q=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:G,contains:[m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE,m.QUOTE_STRING_MODE,{scope:"number",contains:[m.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:M.concat(/`/,M.either(...V))},{scope:"meta",begin:M.concat(/`/,M.either(...q)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:q}]}}return verilog_1=k,verilog_1}var vhdl_1,hasRequiredVhdl;function requireVhdl(){if(hasRequiredVhdl)return vhdl_1;hasRequiredVhdl=1;function k(m){const M="\\d(_|\\d)*",G="[eE][-+]?"+M,V=M+"(\\."+M+")?("+G+")?",q="\\w+",D="\\b("+(M+"#"+q+"(\\."+q+")?#("+G+")?")+"|"+V+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[m.C_BLOCK_COMMENT_MODE,m.COMMENT("--","$"),m.QUOTE_STRING_MODE,{className:"number",begin:D,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[m.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[m.BACKSLASH_ESCAPE]}]}}return vhdl_1=k,vhdl_1}var vim_1,hasRequiredVim;function requireVim(){if(hasRequiredVim)return vim_1;hasRequiredVim=1;function k(m){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[m.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},m.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,m.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return vim_1=k,vim_1}var wasm_1,hasRequiredWasm;function requireWasm(){if(hasRequiredWasm)return wasm_1;hasRequiredWasm=1;function k(m){m.regex;const M=m.COMMENT(/\(;/,/;\)/);M.contains.push("self");const G=m.COMMENT(/;;/,/$/),V=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],q={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},$={className:"variable",begin:/\$[\w_]+/},D={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},B={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},R={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},U={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:V},contains:[G,M,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},$,D,q,m.QUOTE_STRING_MODE,R,U,B]}}return wasm_1=k,wasm_1}var wren_1,hasRequiredWren;function requireWren(){if(hasRequiredWren)return wren_1;hasRequiredWren=1;function k(m){const M=m.regex,G=/[a-zA-Z]\w*/,V=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],q=["true","false","null"],$=["this","super"],D=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],B=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],R={relevance:0,match:M.concat(/\b(?!(if|while|for|else|super)\b)/,G,/(?=\s*[({])/),className:"title.function"},U={match:M.concat(M.either(M.concat(/\b(?!(if|while|for|else|super)\b)/,G),M.either(...B)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:G}]}]}},K={variants:[{match:[/class\s+/,G,/\s+is\s+/,G]},{match:[/class\s+/,G]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:V},z={relevance:0,match:M.either(...B),className:"operator"},e={className:"string",begin:/"""/,end:/"""/},ae={className:"property",begin:M.concat(/\./,M.lookahead(G)),end:G,excludeBegin:!0,relevance:0},ie={relevance:0,match:M.concat(/\b_/,G),scope:"variable"},he={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:D}},J=m.C_NUMBER_MODE,W={match:[G,/\s*/,/=/,/\s*/,/\(/,G,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},X=m.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),L={scope:"subst",begin:/%\(/,end:/\)/,contains:[J,he,R,ie,z]},Q={scope:"string",begin:/"/,end:/"/,contains:[L,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};L.contains.push(Q);const ce=[...V,...$,...q],de={relevance:0,match:M.concat("\\b(?!",ce.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:V,"variable.language":$,literal:q},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:q},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},J,Q,e,X,m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,he,K,W,U,R,z,ie,ae,de]}}return wren_1=k,wren_1}var x86asm_1,hasRequiredX86asm;function requireX86asm(){if(hasRequiredX86asm)return x86asm_1;hasRequiredX86asm=1;function k(m){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+m.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[m.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},m.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return x86asm_1=k,x86asm_1}var xl_1,hasRequiredXl;function requireXl(){if(hasRequiredXl)return xl_1;hasRequiredXl=1;function k(m){const M=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],G=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],V=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],$={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:M,literal:["true","false","nil"],built_in:G.concat(V)},D={className:"string",begin:'"',end:'"',illegal:"\\n"},B={className:"string",begin:"'",end:"'",illegal:"\\n"},R={className:"string",begin:"<<",end:">>"},U={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},K={beginKeywords:"import",end:"$",keywords:$,contains:[D]},z={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[m.inherit(m.TITLE_MODE,{starts:{endsWithParent:!0,keywords:$}})]};return{name:"XL",aliases:["tao"],keywords:$,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,D,B,R,z,K,U,m.NUMBER_MODE]}}return xl_1=k,xl_1}var xquery_1,hasRequiredXquery;function requireXquery(){if(hasRequiredXquery)return xquery_1;hasRequiredXquery=1;function k(m){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return xquery_1=k,xquery_1}var zephir_1,hasRequiredZephir;function requireZephir(){if(hasRequiredZephir)return zephir_1;hasRequiredZephir=1;function k(m){const M={className:"string",contains:[m.BACKSLASH_ESCAPE],variants:[m.inherit(m.APOS_STRING_MODE,{illegal:null}),m.inherit(m.QUOTE_STRING_MODE,{illegal:null})]},G=m.UNDERSCORE_TITLE_MODE,V={variants:[m.BINARY_NUMBER_MODE,m.C_NUMBER_MODE]},q="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:q,contains:[m.C_LINE_COMMENT_MODE,m.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[m.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[G,{className:"params",begin:/\(/,end:/\)/,keywords:q,contains:["self",m.C_BLOCK_COMMENT_MODE,M,V]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},G]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[G]},{beginKeywords:"use",end:/;/,contains:[G]},{begin:/=>/},M,V]}}return zephir_1=k,zephir_1}var hljs=core;hljs.registerLanguage("1c",require_1c());hljs.registerLanguage("abnf",requireAbnf());hljs.registerLanguage("accesslog",requireAccesslog());hljs.registerLanguage("actionscript",requireActionscript());hljs.registerLanguage("ada",requireAda());hljs.registerLanguage("angelscript",requireAngelscript());hljs.registerLanguage("apache",requireApache());hljs.registerLanguage("applescript",requireApplescript());hljs.registerLanguage("arcade",requireArcade());hljs.registerLanguage("arduino",requireArduino());hljs.registerLanguage("armasm",requireArmasm());hljs.registerLanguage("xml",requireXml());hljs.registerLanguage("asciidoc",requireAsciidoc());hljs.registerLanguage("aspectj",requireAspectj());hljs.registerLanguage("autohotkey",requireAutohotkey());hljs.registerLanguage("autoit",requireAutoit());hljs.registerLanguage("avrasm",requireAvrasm());hljs.registerLanguage("awk",requireAwk());hljs.registerLanguage("axapta",requireAxapta());hljs.registerLanguage("bash",requireBash());hljs.registerLanguage("basic",requireBasic());hljs.registerLanguage("bnf",requireBnf());hljs.registerLanguage("brainfuck",requireBrainfuck());hljs.registerLanguage("c",requireC());hljs.registerLanguage("cal",requireCal());hljs.registerLanguage("capnproto",requireCapnproto());hljs.registerLanguage("ceylon",requireCeylon());hljs.registerLanguage("clean",requireClean());hljs.registerLanguage("clojure",requireClojure());hljs.registerLanguage("clojure-repl",requireClojureRepl());hljs.registerLanguage("cmake",requireCmake());hljs.registerLanguage("coffeescript",requireCoffeescript());hljs.registerLanguage("coq",requireCoq());hljs.registerLanguage("cos",requireCos());hljs.registerLanguage("cpp",requireCpp());hljs.registerLanguage("crmsh",requireCrmsh());hljs.registerLanguage("crystal",requireCrystal());hljs.registerLanguage("csharp",requireCsharp());hljs.registerLanguage("csp",requireCsp());hljs.registerLanguage("css",requireCss());hljs.registerLanguage("d",requireD());hljs.registerLanguage("markdown",requireMarkdown());hljs.registerLanguage("dart",requireDart());hljs.registerLanguage("delphi",requireDelphi());hljs.registerLanguage("diff",requireDiff());hljs.registerLanguage("django",requireDjango());hljs.registerLanguage("dns",requireDns());hljs.registerLanguage("dockerfile",requireDockerfile());hljs.registerLanguage("dos",requireDos());hljs.registerLanguage("dsconfig",requireDsconfig());hljs.registerLanguage("dts",requireDts());hljs.registerLanguage("dust",requireDust());hljs.registerLanguage("ebnf",requireEbnf());hljs.registerLanguage("elixir",requireElixir());hljs.registerLanguage("elm",requireElm());hljs.registerLanguage("ruby",requireRuby());hljs.registerLanguage("erb",requireErb());hljs.registerLanguage("erlang-repl",requireErlangRepl());hljs.registerLanguage("erlang",requireErlang());hljs.registerLanguage("excel",requireExcel());hljs.registerLanguage("fix",requireFix());hljs.registerLanguage("flix",requireFlix());hljs.registerLanguage("fortran",requireFortran());hljs.registerLanguage("fsharp",requireFsharp());hljs.registerLanguage("gams",requireGams());hljs.registerLanguage("gauss",requireGauss());hljs.registerLanguage("gcode",requireGcode());hljs.registerLanguage("gherkin",requireGherkin());hljs.registerLanguage("glsl",requireGlsl());hljs.registerLanguage("gml",requireGml());hljs.registerLanguage("go",requireGo());hljs.registerLanguage("golo",requireGolo());hljs.registerLanguage("gradle",requireGradle());hljs.registerLanguage("graphql",requireGraphql());hljs.registerLanguage("groovy",requireGroovy());hljs.registerLanguage("haml",requireHaml());hljs.registerLanguage("handlebars",requireHandlebars());hljs.registerLanguage("haskell",requireHaskell());hljs.registerLanguage("haxe",requireHaxe());hljs.registerLanguage("hsp",requireHsp());hljs.registerLanguage("http",requireHttp());hljs.registerLanguage("hy",requireHy());hljs.registerLanguage("inform7",requireInform7());hljs.registerLanguage("ini",requireIni());hljs.registerLanguage("irpf90",requireIrpf90());hljs.registerLanguage("isbl",requireIsbl());hljs.registerLanguage("java",requireJava());hljs.registerLanguage("javascript",requireJavascript());hljs.registerLanguage("jboss-cli",requireJbossCli());hljs.registerLanguage("json",requireJson());hljs.registerLanguage("julia",requireJulia());hljs.registerLanguage("julia-repl",requireJuliaRepl());hljs.registerLanguage("kotlin",requireKotlin());hljs.registerLanguage("lasso",requireLasso());hljs.registerLanguage("latex",requireLatex());hljs.registerLanguage("ldif",requireLdif());hljs.registerLanguage("leaf",requireLeaf());hljs.registerLanguage("less",requireLess());hljs.registerLanguage("lisp",requireLisp());hljs.registerLanguage("livecodeserver",requireLivecodeserver());hljs.registerLanguage("livescript",requireLivescript());hljs.registerLanguage("llvm",requireLlvm());hljs.registerLanguage("lsl",requireLsl());hljs.registerLanguage("lua",requireLua());hljs.registerLanguage("makefile",requireMakefile());hljs.registerLanguage("mathematica",requireMathematica());hljs.registerLanguage("matlab",requireMatlab());hljs.registerLanguage("maxima",requireMaxima());hljs.registerLanguage("mel",requireMel());hljs.registerLanguage("mercury",requireMercury());hljs.registerLanguage("mipsasm",requireMipsasm());hljs.registerLanguage("mizar",requireMizar());hljs.registerLanguage("perl",requirePerl());hljs.registerLanguage("mojolicious",requireMojolicious());hljs.registerLanguage("monkey",requireMonkey());hljs.registerLanguage("moonscript",requireMoonscript());hljs.registerLanguage("n1ql",requireN1ql());hljs.registerLanguage("nestedtext",requireNestedtext());hljs.registerLanguage("nginx",requireNginx());hljs.registerLanguage("nim",requireNim());hljs.registerLanguage("nix",requireNix());hljs.registerLanguage("node-repl",requireNodeRepl());hljs.registerLanguage("nsis",requireNsis());hljs.registerLanguage("objectivec",requireObjectivec());hljs.registerLanguage("ocaml",requireOcaml());hljs.registerLanguage("openscad",requireOpenscad());hljs.registerLanguage("oxygene",requireOxygene());hljs.registerLanguage("parser3",requireParser3());hljs.registerLanguage("pf",requirePf());hljs.registerLanguage("pgsql",requirePgsql());hljs.registerLanguage("php",requirePhp());hljs.registerLanguage("php-template",requirePhpTemplate());hljs.registerLanguage("plaintext",requirePlaintext());hljs.registerLanguage("pony",requirePony());hljs.registerLanguage("powershell",requirePowershell());hljs.registerLanguage("processing",requireProcessing());hljs.registerLanguage("profile",requireProfile());hljs.registerLanguage("prolog",requireProlog());hljs.registerLanguage("properties",requireProperties());hljs.registerLanguage("protobuf",requireProtobuf());hljs.registerLanguage("puppet",requirePuppet());hljs.registerLanguage("purebasic",requirePurebasic());hljs.registerLanguage("python",requirePython());hljs.registerLanguage("python-repl",requirePythonRepl());hljs.registerLanguage("q",requireQ());hljs.registerLanguage("qml",requireQml());hljs.registerLanguage("r",requireR());hljs.registerLanguage("reasonml",requireReasonml());hljs.registerLanguage("rib",requireRib());hljs.registerLanguage("roboconf",requireRoboconf());hljs.registerLanguage("routeros",requireRouteros());hljs.registerLanguage("rsl",requireRsl());hljs.registerLanguage("ruleslanguage",requireRuleslanguage());hljs.registerLanguage("rust",requireRust());hljs.registerLanguage("sas",requireSas());hljs.registerLanguage("scala",requireScala());hljs.registerLanguage("scheme",requireScheme());hljs.registerLanguage("scilab",requireScilab());hljs.registerLanguage("scss",requireScss());hljs.registerLanguage("shell",requireShell());hljs.registerLanguage("smali",requireSmali());hljs.registerLanguage("smalltalk",requireSmalltalk());hljs.registerLanguage("sml",requireSml());hljs.registerLanguage("sqf",requireSqf());hljs.registerLanguage("sql",requireSql());hljs.registerLanguage("stan",requireStan());hljs.registerLanguage("stata",requireStata());hljs.registerLanguage("step21",requireStep21());hljs.registerLanguage("stylus",requireStylus());hljs.registerLanguage("subunit",requireSubunit());hljs.registerLanguage("swift",requireSwift());hljs.registerLanguage("taggerscript",requireTaggerscript());hljs.registerLanguage("yaml",requireYaml());hljs.registerLanguage("tap",requireTap());hljs.registerLanguage("tcl",requireTcl());hljs.registerLanguage("thrift",requireThrift());hljs.registerLanguage("tp",requireTp());hljs.registerLanguage("twig",requireTwig());hljs.registerLanguage("typescript",requireTypescript());hljs.registerLanguage("vala",requireVala());hljs.registerLanguage("vbnet",requireVbnet());hljs.registerLanguage("vbscript",requireVbscript());hljs.registerLanguage("vbscript-html",requireVbscriptHtml());hljs.registerLanguage("verilog",requireVerilog());hljs.registerLanguage("vhdl",requireVhdl());hljs.registerLanguage("vim",requireVim());hljs.registerLanguage("wasm",requireWasm());hljs.registerLanguage("wren",requireWren());hljs.registerLanguage("x86asm",requireX86asm());hljs.registerLanguage("xl",requireXl());hljs.registerLanguage("xquery",requireXquery());hljs.registerLanguage("zephir",requireZephir());hljs.HighlightJS=hljs;hljs.default=hljs;var lib$2=hljs;const HighlightJS=getDefaultExportFromCjs(lib$2);var utils$1={};const Aacute="Á",aacute="á",Abreve="Ă",abreve="ă",ac="∾",acd="∿",acE="∾̳",Acirc="Â",acirc="â",acute="´",Acy="А",acy="а",AElig="Æ",aelig="æ",af="",Afr="𝔄",afr="𝔞",Agrave="À",agrave="à",alefsym="ℵ",aleph="ℵ",Alpha="Α",alpha="α",Amacr="Ā",amacr="ā",amalg="⨿",amp="&",AMP="&",andand="⩕",And="⩓",and="∧",andd="⩜",andslope="⩘",andv="⩚",ang="∠",ange="⦤",angle="∠",angmsdaa="⦨",angmsdab="⦩",angmsdac="⦪",angmsdad="⦫",angmsdae="⦬",angmsdaf="⦭",angmsdag="⦮",angmsdah="⦯",angmsd="∡",angrt="∟",angrtvb="⊾",angrtvbd="⦝",angsph="∢",angst="Å",angzarr="⍼",Aogon="Ą",aogon="ą",Aopf="𝔸",aopf="𝕒",apacir="⩯",ap="≈",apE="⩰",ape="≊",apid="≋",apos="'",ApplyFunction="",approx="≈",approxeq="≊",Aring="Å",aring="å",Ascr="𝒜",ascr="𝒶",Assign="≔",ast="*",asymp="≈",asympeq="≍",Atilde="Ã",atilde="ã",Auml="Ä",auml="ä",awconint="∳",awint="⨑",backcong="≌",backepsilon="϶",backprime="",backsim="∽",backsimeq="⋍",Backslash="",Barv="⫧",barvee="⊽",barwed="⌅",Barwed="⌆",barwedge="⌅",bbrk="⎵",bbrktbrk="⎶",bcong="≌",Bcy="Б",bcy="б",bdquo="„",becaus="∵",because="∵",Because="∵",bemptyv="⦰",bepsi="϶",bernou="",Bernoullis="",Beta="Β",beta="β",beth="ℶ",between="≬",Bfr="𝔅",bfr="𝔟",bigcap="⋂",bigcirc="◯",bigcup="",bigodot="⨀",bigoplus="⨁",bigotimes="⨂",bigsqcup="⨆",bigstar="★",bigtriangledown="▽",bigtriangleup="△",biguplus="⨄",bigvee="",bigwedge="⋀",bkarow="⤍",blacklozenge="⧫",blacksquare="▪",blacktriangle="▴",blacktriangledown="▾",blacktriangleleft="◂",blacktriangleright="▸",blank="␣",blk12="▒",blk14="░",blk34="▓",block$1="█",bne="=⃥",bnequiv="≡⃥",bNot="⫭",bnot="⌐",Bopf="𝔹",bopf="𝕓",bot="⊥",bottom="⊥",bowtie="⋈",boxbox="⧉",boxdl="┐",boxdL="╕",boxDl="╖",boxDL="╗",boxdr="┌",boxdR="╒",boxDr="╓",boxDR="╔",boxh="─",boxH="═",boxhd="┬",boxHd="╤",boxhD="╥",boxHD="╦",boxhu="┴",boxHu="╧",boxhU="╨",boxHU="╩",boxminus="⊟",boxplus="⊞",boxtimes="⊠",boxul="┘",boxuL="╛",boxUl="╜",boxUL="╝",boxur="└",boxuR="╘",boxUr="╙",boxUR="╚",boxv="│",boxV="║",boxvh="┼",boxvH="╪",boxVh="╫",boxVH="╬",boxvl="┤",boxvL="╡",boxVl="╢",boxVL="╣",boxvr="├",boxvR="╞",boxVr="╟",boxVR="╠",bprime="",breve="˘",Breve="˘",brvbar="¦",bscr="𝒷",Bscr="",bsemi="⁏",bsim="∽",bsime="⋍",bsolb="⧅",bsol="\\",bsolhsub="⟈",bull="•",bullet="•",bump="≎",bumpE="⪮",bumpe="≏",Bumpeq="≎",bumpeq="≏",Cacute="Ć",cacute="ć",capand="⩄",capbrcup="⩉",capcap="⩋",cap="∩",Cap="⋒",capcup="⩇",capdot="⩀",CapitalDifferentialD="",caps="∩︀",caret="",caron="ˇ",Cayleys="",ccaps="⩍",Ccaron="Č",ccaron="č",Ccedil="Ç",ccedil="ç",Ccirc="Ĉ",ccirc="ĉ",Cconint="∰",ccups="⩌",ccupssm="⩐",Cdot="Ċ",cdot="ċ",cedil="¸",Cedilla="¸",cemptyv="⦲",cent="¢",centerdot="·",CenterDot="·",cfr="𝔠",Cfr="",CHcy="Ч",chcy="ч",check$1="✓",checkmark="✓",Chi="Χ",chi="χ",circ="ˆ",circeq="≗",circlearrowleft="↺",circlearrowright="↻",circledast="⊛",circledcirc="⊚",circleddash="⊝",CircleDot="⊙",circledR="®",circledS="Ⓢ",CircleMinus="⊖",CirclePlus="⊕",CircleTimes="⊗",cir="○",cirE="⧃",cire="≗",cirfnint="⨐",cirmid="⫯",cirscir="⧂",ClockwiseContourIntegral="∲",CloseCurlyDoubleQuote="”",CloseCurlyQuote="",clubs="♣",clubsuit="♣",colon=":",Colon="∷",Colone="⩴",colone="≔",coloneq="≔",comma=",",commat="@",comp="∁",compfn="∘",complement="∁",complexes="",cong="≅",congdot="⩭",Congruent="≡",conint="∮",Conint="∯",ContourIntegral="∮",copf="𝕔",Copf="",coprod="∐",Coproduct="∐",copy="©",COPY="©",copysr="℗",CounterClockwiseContourIntegral="∳",crarr="↵",cross="✗",Cross="",Cscr="𝒞",cscr="𝒸",csub="⫏",csube="⫑",csup="⫐",csupe="⫒",ctdot="⋯",cudarrl="⤸",cudarrr="⤵",cuepr="⋞",cuesc="⋟",cularr="↶",cularrp="⤽",cupbrcap="⩈",cupcap="⩆",CupCap="≍",cup="",Cup="⋓",cupcup="⩊",cupdot="⊍",cupor="⩅",cups="",curarr="↷",curarrm="⤼",curlyeqprec="⋞",curlyeqsucc="⋟",curlyvee="⋎",curlywedge="⋏",curren="¤",curvearrowleft="↶",curvearrowright="↷",cuvee="⋎",cuwed="⋏",cwconint="∲",cwint="∱",cylcty="⌭",dagger="†",Dagger="‡",daleth="ℸ",darr="↓",Darr="↡",dArr="⇓",dash="",Dashv="⫤",dashv="⊣",dbkarow="⤏",dblac="˝",Dcaron="Ď",dcaron="ď",Dcy="Д",dcy="д",ddagger="‡",ddarr="⇊",DD="",dd="",DDotrahd="⤑",ddotseq="⩷",deg="°",Del="∇",Delta="Δ",delta="δ",demptyv="⦱",dfisht="⥿",Dfr="𝔇",dfr="𝔡",dHar="⥥",dharl="⇃",dharr="⇂",DiacriticalAcute="´",DiacriticalDot="˙",DiacriticalDoubleAcute="˝",DiacriticalGrave="`",DiacriticalTilde="˜",diam="⋄",diamond="⋄",Diamond="⋄",diamondsuit="♦",diams="♦",die="¨",DifferentialD="",digamma="ϝ",disin="⋲",div="÷",divide="÷",divideontimes="⋇",divonx="⋇",DJcy="Ђ",djcy="ђ",dlcorn="⌞",dlcrop="⌍",dollar="$",Dopf="𝔻",dopf="𝕕",Dot="¨",dot="˙",DotDot="⃜",doteq="≐",doteqdot="≑",DotEqual="≐",dotminus="∸",dotplus="∔",dotsquare="⊡",doublebarwedge="⌆",DoubleContourIntegral="∯",DoubleDot="¨",DoubleDownArrow="⇓",DoubleLeftArrow="⇐",DoubleLeftRightArrow="⇔",DoubleLeftTee="⫤",DoubleLongLeftArrow="⟸",DoubleLongLeftRightArrow="⟺",DoubleLongRightArrow="⟹",DoubleRightArrow="⇒",DoubleRightTee="⊨",DoubleUpArrow="⇑",DoubleUpDownArrow="⇕",DoubleVerticalBar="∥",DownArrowBar="⤓",downarrow="↓",DownArrow="↓",Downarrow="⇓",DownArrowUpArrow="⇵",DownBreve="̑",downdownarrows="⇊",downharpoonleft="⇃",downharpoonright="⇂",DownLeftRightVector="⥐",DownLeftTeeVector="⥞",DownLeftVectorBar="⥖",DownLeftVector="↽",DownRightTeeVector="⥟",DownRightVectorBar="⥗",DownRightVector="⇁",DownTeeArrow="↧",DownTee="",drbkarow="⤐",drcorn="⌟",drcrop="⌌",Dscr="𝒟",dscr="𝒹",DScy="Ѕ",dscy="ѕ",dsol="⧶",Dstrok="Đ",dstrok="đ",dtdot="⋱",dtri="▿",dtrif="▾",duarr="⇵",duhar="⥯",dwangle="⦦",DZcy="Џ",dzcy="џ",dzigrarr="⟿",Eacute="É",eacute="é",easter="⩮",Ecaron="Ě",ecaron="ě",Ecirc="Ê",ecirc="ê",ecir="≖",ecolon="≕",Ecy="Э",ecy="э",eDDot="⩷",Edot="Ė",edot="ė",eDot="≑",ee$1="",efDot="≒",Efr="𝔈",efr="𝔢",eg="⪚",Egrave="È",egrave="è",egs="⪖",egsdot="⪘",el="⪙",Element$1="∈",elinters="⏧",ell="",els="⪕",elsdot="⪗",Emacr="Ē",emacr="ē",empty$1="∅",emptyset="∅",EmptySmallSquare="◻",emptyv="∅",EmptyVerySmallSquare="▫",emsp13="",emsp14="",emsp="",ENG="Ŋ",eng="ŋ",ensp="",Eogon="Ę",eogon="ę",Eopf="𝔼",eopf="𝕖",epar="⋕",eparsl="⧣",eplus="⩱",epsi="ε",Epsilon="Ε",epsilon$1="ε",epsiv="ϵ",eqcirc="≖",eqcolon="≕",eqsim="≂",eqslantgtr="⪖",eqslantless="⪕",Equal="⩵",equals="=",EqualTilde="≂",equest="≟",Equilibrium="⇌",equiv="≡",equivDD="⩸",eqvparsl="⧥",erarr="⥱",erDot="≓",escr="",Escr="",esdot="≐",Esim="⩳",esim="≂",Eta="Η",eta="η",ETH="Ð",eth="ð",Euml="Ë",euml="ë",euro="€",excl="!",exist="∃",Exists="∃",expectation="",exponentiale="",ExponentialE="",fallingdotseq="≒",Fcy="Ф",fcy="ф",female="♀",ffilig="ffi",fflig="ff",ffllig="ffl",Ffr="𝔉",ffr="𝔣",filig="fi",FilledSmallSquare="◼",FilledVerySmallSquare="▪",fjlig="fj",flat="♭",fllig="fl",fltns="▱",fnof="ƒ",Fopf="𝔽",fopf="𝕗",forall="∀",ForAll="∀",fork="⋔",forkv="⫙",Fouriertrf="",fpartint="⨍",frac12="½",frac13="⅓",frac14="¼",frac15="⅕",frac16="⅙",frac18="⅛",frac23="⅔",frac25="⅖",frac34="¾",frac35="⅗",frac38="⅜",frac45="⅘",frac56="⅚",frac58="⅝",frac78="⅞",frasl="",frown="⌢",fscr="𝒻",Fscr="",gacute="ǵ",Gamma="Γ",gamma$1="γ",Gammad="Ϝ",gammad="ϝ",gap="⪆",Gbreve="Ğ",gbreve="ğ",Gcedil="Ģ",Gcirc="Ĝ",gcirc="ĝ",Gcy="Г",gcy="г",Gdot="Ġ",gdot="ġ",ge$1="≥",gE="≧",gEl="⪌",gel="⋛",geq="≥",geqq="≧",geqslant="⩾",gescc="⪩",ges="⩾",gesdot="⪀",gesdoto="⪂",gesdotol="⪄",gesl="⋛︀",gesles="⪔",Gfr="𝔊",gfr="𝔤",gg="≫",Gg="⋙",ggg="⋙",gimel="ℷ",GJcy="Ѓ",gjcy="ѓ",gla="⪥",gl="≷",glE="⪒",glj="⪤",gnap="⪊",gnapprox="⪊",gne="⪈",gnE="≩",gneq="⪈",gneqq="≩",gnsim="⋧",Gopf="𝔾",gopf="𝕘",grave="`",GreaterEqual="≥",GreaterEqualLess="⋛",GreaterFullEqual="≧",GreaterGreater="⪢",GreaterLess="≷",GreaterSlantEqual="⩾",GreaterTilde="≳",Gscr="𝒢",gscr="",gsim="≳",gsime="⪎",gsiml="⪐",gtcc="⪧",gtcir="⩺",gt=">",GT$1=">",Gt="≫",gtdot="⋗",gtlPar="⦕",gtquest="⩼",gtrapprox="⪆",gtrarr="⥸",gtrdot="⋗",gtreqless="⋛",gtreqqless="⪌",gtrless="≷",gtrsim="≳",gvertneqq="≩︀",gvnE="≩︀",Hacek="ˇ",hairsp="",half="½",hamilt="",HARDcy="Ъ",hardcy="ъ",harrcir="⥈",harr="↔",hArr="⇔",harrw="↭",Hat="^",hbar="ℏ",Hcirc="Ĥ",hcirc="ĥ",hearts="♥",heartsuit="♥",hellip="…",hercon="⊹",hfr="𝔥",Hfr="",HilbertSpace="",hksearow="⤥",hkswarow="⤦",hoarr="⇿",homtht="∻",hookleftarrow="↩",hookrightarrow="↪",hopf="𝕙",Hopf="",horbar="―",HorizontalLine="─",hscr="𝒽",Hscr="",hslash="ℏ",Hstrok="Ħ",hstrok="ħ",HumpDownHump="≎",HumpEqual="≏",hybull="",hyphen="",Iacute="Í",iacute="í",ic="",Icirc="Î",icirc="î",Icy="И",icy="и",Idot="İ",IEcy="Е",iecy="е",iexcl="¡",iff="⇔",ifr="𝔦",Ifr="",Igrave="Ì",igrave="ì",ii="",iiiint="⨌",iiint="∭",iinfin="⧜",iiota="℩",IJlig="IJ",ijlig="ij",Imacr="Ī",imacr="ī",image$1="",ImaginaryI="",imagline="",imagpart="",imath="ı",Im="",imof="⊷",imped="Ƶ",Implies="⇒",incare="℅",infin="∞",infintie="⧝",inodot="ı",intcal="⊺",int="∫",Int="∬",integers="",Integral="∫",intercal="⊺",Intersection="⋂",intlarhk="⨗",intprod="⨼",InvisibleComma="",InvisibleTimes="",IOcy="Ё",iocy="ё",Iogon="Į",iogon="į",Iopf="𝕀",iopf="𝕚",Iota="Ι",iota="ι",iprod="⨼",iquest="¿",iscr="𝒾",Iscr="",isin="∈",isindot="⋵",isinE="⋹",isins="⋴",isinsv="⋳",isinv="∈",it="",Itilde="Ĩ",itilde="ĩ",Iukcy="І",iukcy="і",Iuml="Ï",iuml="ï",Jcirc="Ĵ",jcirc="ĵ",Jcy="Й",jcy="й",Jfr="𝔍",jfr="𝔧",jmath="ȷ",Jopf="𝕁",jopf="𝕛",Jscr="𝒥",jscr="𝒿",Jsercy="Ј",jsercy="ј",Jukcy="Є",jukcy="є",Kappa="Κ",kappa="κ",kappav="ϰ",Kcedil="Ķ",kcedil="ķ",Kcy="К",kcy="к",Kfr="𝔎",kfr="𝔨",kgreen="ĸ",KHcy="Х",khcy="х",KJcy="Ќ",kjcy="ќ",Kopf="𝕂",kopf="𝕜",Kscr="𝒦",kscr="𝓀",lAarr="⇚",Lacute="Ĺ",lacute="ĺ",laemptyv="⦴",lagran="",Lambda="Λ",lambda="λ",lang="⟨",Lang="⟪",langd="⦑",langle="⟨",lap="⪅",Laplacetrf="",laquo="«",larrb="⇤",larrbfs="⤟",larr="←",Larr="↞",lArr="⇐",larrfs="⤝",larrhk="↩",larrlp="↫",larrpl="⤹",larrsim="⥳",larrtl="↢",latail="⤙",lAtail="⤛",lat="⪫",late="⪭",lates="⪭︀",lbarr="⤌",lBarr="⤎",lbbrk="",lbrace="{",lbrack="[",lbrke="⦋",lbrksld="⦏",lbrkslu="⦍",Lcaron="Ľ",lcaron="ľ",Lcedil="Ļ",lcedil="ļ",lceil="⌈",lcub="{",Lcy="Л",lcy="л",ldca="⤶",ldquo="“",ldquor="„",ldrdhar="⥧",ldrushar="⥋",ldsh="↲",le="≤",lE="≦",LeftAngleBracket="⟨",LeftArrowBar="⇤",leftarrow="←",LeftArrow="←",Leftarrow="⇐",LeftArrowRightArrow="⇆",leftarrowtail="↢",LeftCeiling="⌈",LeftDoubleBracket="⟦",LeftDownTeeVector="⥡",LeftDownVectorBar="⥙",LeftDownVector="⇃",LeftFloor="⌊",leftharpoondown="↽",leftharpoonup="↼",leftleftarrows="⇇",leftrightarrow="↔",LeftRightArrow="↔",Leftrightarrow="⇔",leftrightarrows="⇆",leftrightharpoons="⇋",leftrightsquigarrow="↭",LeftRightVector="⥎",LeftTeeArrow="↤",LeftTee="⊣",LeftTeeVector="⥚",leftthreetimes="⋋",LeftTriangleBar="⧏",LeftTriangle="⊲",LeftTriangleEqual="⊴",LeftUpDownVector="⥑",LeftUpTeeVector="⥠",LeftUpVectorBar="⥘",LeftUpVector="↿",LeftVectorBar="⥒",LeftVector="↼",lEg="⪋",leg="⋚",leq="≤",leqq="≦",leqslant="⩽",lescc="⪨",les="⩽",lesdot="⩿",lesdoto="⪁",lesdotor="⪃",lesg="⋚︀",lesges="⪓",lessapprox="⪅",lessdot="⋖",lesseqgtr="⋚",lesseqqgtr="⪋",LessEqualGreater="⋚",LessFullEqual="≦",LessGreater="≶",lessgtr="≶",LessLess="⪡",lesssim="≲",LessSlantEqual="⩽",LessTilde="≲",lfisht="⥼",lfloor="⌊",Lfr="𝔏",lfr="𝔩",lg="≶",lgE="⪑",lHar="⥢",lhard="↽",lharu="↼",lharul="⥪",lhblk="▄",LJcy="Љ",ljcy="љ",llarr="⇇",ll="≪",Ll="⋘",llcorner="⌞",Lleftarrow="⇚",llhard="⥫",lltri="◺",Lmidot="Ŀ",lmidot="ŀ",lmoustache="⎰",lmoust="⎰",lnap="⪉",lnapprox="⪉",lne="⪇",lnE="≨",lneq="⪇",lneqq="≨",lnsim="⋦",loang="⟬",loarr="⇽",lobrk="⟦",longleftarrow="⟵",LongLeftArrow="⟵",Longleftarrow="⟸",longleftrightarrow="⟷",LongLeftRightArrow="⟷",Longleftrightarrow="⟺",longmapsto="⟼",longrightarrow="⟶",LongRightArrow="⟶",Longrightarrow="⟹",looparrowleft="↫",looparrowright="↬",lopar="⦅",Lopf="𝕃",lopf="𝕝",loplus="⨭",lotimes="⨴",lowast="",lowbar="_",LowerLeftArrow="↙",LowerRightArrow="↘",loz="◊",lozenge="◊",lozf="⧫",lpar="(",lparlt="⦓",lrarr="⇆",lrcorner="⌟",lrhar="⇋",lrhard="⥭",lrm="",lrtri="⊿",lsaquo="",lscr="𝓁",Lscr="",lsh="↰",Lsh="↰",lsim="≲",lsime="⪍",lsimg="⪏",lsqb="[",lsquo="",lsquor="",Lstrok="Ł",lstrok="ł",ltcc="⪦",ltcir="⩹",lt="<",LT$1="<",Lt="≪",ltdot="⋖",lthree="⋋",ltimes="⋉",ltlarr="⥶",ltquest="⩻",ltri="◃",ltrie="⊴",ltrif="◂",ltrPar="⦖",lurdshar="⥊",luruhar="⥦",lvertneqq="≨︀",lvnE="≨︀",macr="¯",male="♂",malt="✠",maltese="✠",map$1="↦",mapsto="↦",mapstodown="↧",mapstoleft="↤",mapstoup="↥",marker="▮",mcomma="⨩",Mcy="М",mcy="м",mdash="—",mDDot="∺",measuredangle="∡",MediumSpace="",Mellintrf="",Mfr="𝔐",mfr="𝔪",mho="℧",micro="µ",midast="*",midcir="⫰",mid="",middot="·",minusb="⊟",minus="",minusd="∸",minusdu="⨪",MinusPlus="∓",mlcp="⫛",mldr="…",mnplus="∓",models="⊧",Mopf="𝕄",mopf="𝕞",mp="∓",mscr="𝓂",Mscr="",mstpos="∾",Mu="Μ",mu="μ",multimap="⊸",mumap="⊸",nabla="∇",Nacute="Ń",nacute="ń",nang="∠⃒",nap$1="≉",napE="⩰̸",napid="≋̸",napos="ʼn",napprox="≉",natural="♮",naturals="",natur="♮",nbsp=" ",nbump="≎̸",nbumpe="≏̸",ncap="⩃",Ncaron="Ň",ncaron="ň",Ncedil="Ņ",ncedil="ņ",ncong="≇",ncongdot="⩭̸",ncup="⩂",Ncy="Н",ncy="н",ndash="",nearhk="⤤",nearr="↗",neArr="⇗",nearrow="↗",ne="≠",nedot="≐̸",NegativeMediumSpace="",NegativeThickSpace="",NegativeThinSpace="",NegativeVeryThinSpace="",nequiv="≢",nesear="⤨",nesim="≂̸",NestedGreaterGreater="≫",NestedLessLess="≪",NewLine=`
`,nexist="∄",nexists="∄",Nfr="𝔑",nfr="𝔫",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak="",NonBreakingSpace=" ",nopf="𝕟",Nopf="",Not="⫬",not="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩",nscr="𝓃",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde="Ñ",ntilde="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu="Ν",nu="ν",num="#",numero="№",numsp="",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute="Ó",oacute="ó",oast="⊛",Ocirc="Ô",ocirc="ô",ocir="⊚",Ocy="О",ocy="о",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒",ofr="𝔬",ogon="˛",Ograve="Ò",ograve="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο",omicron="ο",omid="⦶",ominus="⊖",Oopf="𝕆",oopf="𝕠",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="",operp="⦹",oplus="⊕",orarr="↻",Or="⩔",or="",ord="⩝",order="",orderof="",ordf="ª",ordm="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪",oscr="",Oslash="Ø",oslash="ø",osol="⊘",Otilde="Õ",otilde="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml="Ö",ouml="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para="¶",parallel="∥",par="∥",parsim="⫳",parsl="⫽",part="∂",PartialD="∂",Pcy="П",pcy="п",percnt="%",period=".",permil="‰",perp="⊥",pertenk="‱",Pfr="𝔓",pfr="𝔭",Phi="Φ",phi="φ",phiv="ϕ",phmmat="",phone="☎",Pi="Π",pi$1="π",pitchfork="⋔",piv="ϖ",planck="ℏ",planckh="",plankv="ℏ",plusacir="⨣",plusb="⊞",pluscir="⨢",plus="+",plusdo="∔",plusdu="⨥",pluse="⩲",PlusMinus="±",plusmn="±",plussim="⨦",plustwo="⨧",pm="±",Poincareplane="",pointint="⨕",popf="𝕡",Popf="",pound="£",prap="⪷",Pr="⪻",pr="≺",prcue="≼",precapprox="⪷",prec="≺",preccurlyeq="≼",Precedes="≺",PrecedesEqual="⪯",PrecedesSlantEqual="≼",PrecedesTilde="≾",preceq="⪯",precnapprox="⪹",precneqq="⪵",precnsim="⋨",pre="⪯",prE="⪳",precsim="≾",prime="",Prime="″",primes="",prnap="⪹",prnE="⪵",prnsim="⋨",prod="∏",Product="∏",profalar="⌮",profline="⌒",profsurf="⌓",prop="∝",Proportional="∝",Proportion="∷",propto="∝",prsim="≾",prurel="⊰",Pscr="𝒫",pscr="𝓅",Psi="Ψ",psi="ψ",puncsp="",Qfr="𝔔",qfr="𝔮",qint="⨌",qopf="𝕢",Qopf="",qprime="⁗",Qscr="𝒬",qscr="𝓆",quaternions="",quatint="⨖",quest="?",questeq="≟",quot='"',QUOT='"',rAarr="⇛",race="∽̱",Racute="Ŕ",racute="ŕ",radic="√",raemptyv="⦳",rang="⟩",Rang="⟫",rangd="⦒",range="⦥",rangle="⟩",raquo="»",rarrap="⥵",rarrb="⇥",rarrbfs="⤠",rarrc="⤳",rarr="→",Rarr="↠",rArr="⇒",rarrfs="⤞",rarrhk="↪",rarrlp="↬",rarrpl="⥅",rarrsim="⥴",Rarrtl="⤖",rarrtl="↣",rarrw="↝",ratail="⤚",rAtail="⤜",ratio="",rationals="",rbarr="⤍",rBarr="⤏",RBarr="⤐",rbbrk="",rbrace="}",rbrack="]",rbrke="⦌",rbrksld="⦎",rbrkslu="⦐",Rcaron="Ř",rcaron="ř",Rcedil="Ŗ",rcedil="ŗ",rceil="⌉",rcub="}",Rcy="Р",rcy="р",rdca="⤷",rdldhar="⥩",rdquo="”",rdquor="”",rdsh="↳",real="",realine="",realpart="",reals="",Re="",rect="▭",reg="®",REG="®",ReverseElement="∋",ReverseEquilibrium="⇋",ReverseUpEquilibrium="⥯",rfisht="⥽",rfloor="⌋",rfr="𝔯",Rfr="",rHar="⥤",rhard="⇁",rharu="⇀",rharul="⥬",Rho="Ρ",rho="ρ",rhov="ϱ",RightAngleBracket="⟩",RightArrowBar="⇥",rightarrow="→",RightArrow="→",Rightarrow="⇒",RightArrowLeftArrow="⇄",rightarrowtail="↣",RightCeiling="⌉",RightDoubleBracket="⟧",RightDownTeeVector="⥝",RightDownVectorBar="⥕",RightDownVector="⇂",RightFloor="⌋",rightharpoondown="⇁",rightharpoonup="⇀",rightleftarrows="⇄",rightleftharpoons="⇌",rightrightarrows="⇉",rightsquigarrow="↝",RightTeeArrow="↦",RightTee="⊢",RightTeeVector="⥛",rightthreetimes="⋌",RightTriangleBar="⧐",RightTriangle="⊳",RightTriangleEqual="⊵",RightUpDownVector="⥏",RightUpTeeVector="⥜",RightUpVectorBar="⥔",RightUpVector="↾",RightVectorBar="⥓",RightVector="⇀",ring="˚",risingdotseq="≓",rlarr="⇄",rlhar="⇌",rlm="",rmoustache="⎱",rmoust="⎱",rnmid="⫮",roang="⟭",roarr="⇾",robrk="⟧",ropar="⦆",ropf="𝕣",Ropf="",roplus="⨮",rotimes="⨵",RoundImplies="⥰",rpar=")",rpargt="⦔",rppolint="⨒",rrarr="⇉",Rrightarrow="⇛",rsaquo="",rscr="𝓇",Rscr="",rsh="↱",Rsh="↱",rsqb="]",rsquo="",rsquor="",rthree="⋌",rtimes="⋊",rtri="▹",rtrie="⊵",rtrif="▸",rtriltri="⧎",RuleDelayed="⧴",ruluhar="⥨",rx="℞",Sacute="Ś",sacute="ś",sbquo="",scap="⪸",Scaron="Š",scaron="š",Sc="⪼",sc="≻",sccue="≽",sce="⪰",scE="⪴",Scedil="Ş",scedil="ş",Scirc="Ŝ",scirc="ŝ",scnap="⪺",scnE="⪶",scnsim="⋩",scpolint="⨓",scsim="≿",Scy="С",scy="с",sdotb="⊡",sdot="⋅",sdote="⩦",searhk="⤥",searr="↘",seArr="⇘",searrow="↘",sect="§",semi=";",seswar="⤩",setminus="",setmn="",sext="✶",Sfr="𝔖",sfr="𝔰",sfrown="⌢",sharp="♯",SHCHcy="Щ",shchcy="щ",SHcy="Ш",shcy="ш",ShortDownArrow="↓",ShortLeftArrow="←",shortmid="",shortparallel="∥",ShortRightArrow="→",ShortUpArrow="↑",shy="­",Sigma="Σ",sigma="σ",sigmaf="ς",sigmav="ς",sim="",simdot="⩪",sime="≃",simeq="≃",simg="⪞",simgE="⪠",siml="⪝",simlE="⪟",simne="≆",simplus="⨤",simrarr="⥲",slarr="←",SmallCircle="∘",smallsetminus="",smashp="⨳",smeparsl="⧤",smid="",smile="⌣",smt="⪪",smte="⪬",smtes="⪬︀",SOFTcy="Ь",softcy="ь",solbar="⌿",solb="⧄",sol="/",Sopf="𝕊",sopf="𝕤",spades="♠",spadesuit="♠",spar="∥",sqcap="⊓",sqcaps="⊓︀",sqcup="⊔",sqcups="⊔︀",Sqrt="√",sqsub="⊏",sqsube="⊑",sqsubset="⊏",sqsubseteq="⊑",sqsup="⊐",sqsupe="⊒",sqsupset="⊐",sqsupseteq="⊒",square="□",Square="□",SquareIntersection="⊓",SquareSubset="⊏",SquareSubsetEqual="⊑",SquareSuperset="⊐",SquareSupersetEqual="⊒",SquareUnion="⊔",squarf="▪",squ="□",squf="▪",srarr="→",Sscr="𝒮",sscr="𝓈",ssetmn="",ssmile="⌣",sstarf="⋆",Star="⋆",star="☆",starf="★",straightepsilon="ϵ",straightphi="ϕ",strns="¯",sub="⊂",Sub="⋐",subdot="⪽",subE="⫅",sube="⊆",subedot="⫃",submult="⫁",subnE="⫋",subne="⊊",subplus="⪿",subrarr="⥹",subset="⊂",Subset="⋐",subseteq="⊆",subseteqq="⫅",SubsetEqual="⊆",subsetneq="⊊",subsetneqq="⫋",subsim="⫇",subsub="⫕",subsup="⫓",succapprox="⪸",succ="≻",succcurlyeq="≽",Succeeds="≻",SucceedsEqual="⪰",SucceedsSlantEqual="≽",SucceedsTilde="≿",succeq="⪰",succnapprox="⪺",succneqq="⪶",succnsim="⋩",succsim="≿",SuchThat="∋",sum="∑",Sum="∑",sung="♪",sup1="¹",sup2="²",sup3="³",sup="⊃",Sup="⋑",supdot="⪾",supdsub="⫘",supE="⫆",supe="⊇",supedot="⫄",Superset="⊃",SupersetEqual="⊇",suphsol="⟉",suphsub="⫗",suplarr="⥻",supmult="⫂",supnE="⫌",supne="⊋",supplus="⫀",supset="⊃",Supset="⋑",supseteq="⊇",supseteqq="⫆",supsetneq="⊋",supsetneqq="⫌",supsim="⫈",supsub="⫔",supsup="⫖",swarhk="⤦",swarr="↙",swArr="⇙",swarrow="↙",swnwar="⤪",szlig="ß",Tab=" ",target="⌖",Tau="Τ",tau$1="τ",tbrk="⎴",Tcaron="Ť",tcaron="ť",Tcedil="Ţ",tcedil="ţ",Tcy="Т",tcy="т",tdot="⃛",telrec="⌕",Tfr="𝔗",tfr="𝔱",there4="∴",therefore="∴",Therefore="∴",Theta="Θ",theta="θ",thetasym="ϑ",thetav="ϑ",thickapprox="≈",thicksim="",ThickSpace="",ThinSpace="",thinsp="",thkap="≈",thksim="",THORN="Þ",thorn="þ",tilde="˜",Tilde="",TildeEqual="≃",TildeFullEqual="≅",TildeTilde="≈",timesbar="⨱",timesb="⊠",times="×",timesd="⨰",tint="∭",toea="⤨",topbot="⌶",topcir="⫱",top="",Topf="𝕋",topf="𝕥",topfork="⫚",tosa="⤩",tprime="‴",trade="™",TRADE="™",triangle="▵",triangledown="▿",triangleleft="◃",trianglelefteq="⊴",triangleq="≜",triangleright="▹",trianglerighteq="⊵",tridot="◬",trie="≜",triminus="⨺",TripleDot="⃛",triplus="⨹",trisb="⧍",tritime="⨻",trpezium="⏢",Tscr="𝒯",tscr="𝓉",TScy="Ц",tscy="ц",TSHcy="Ћ",tshcy="ћ",Tstrok="Ŧ",tstrok="ŧ",twixt="≬",twoheadleftarrow="↞",twoheadrightarrow="↠",Uacute="Ú",uacute="ú",uarr="↑",Uarr="↟",uArr="⇑",Uarrocir="⥉",Ubrcy="Ў",ubrcy="ў",Ubreve="Ŭ",ubreve="ŭ",Ucirc="Û",ucirc="û",Ucy="У",ucy="у",udarr="⇅",Udblac="Ű",udblac="ű",udhar="⥮",ufisht="⥾",Ufr="𝔘",ufr="𝔲",Ugrave="Ù",ugrave="ù",uHar="⥣",uharl="↿",uharr="↾",uhblk="▀",ulcorn="⌜",ulcorner="⌜",ulcrop="⌏",ultri="◸",Umacr="Ū",umacr="ū",uml="¨",UnderBar="_",UnderBrace="⏟",UnderBracket="⎵",UnderParenthesis="⏝",Union="",UnionPlus="⊎",Uogon="Ų",uogon="ų",Uopf="𝕌",uopf="𝕦",UpArrowBar="⤒",uparrow="↑",UpArrow="↑",Uparrow="⇑",UpArrowDownArrow="⇅",updownarrow="↕",UpDownArrow="↕",Updownarrow="⇕",UpEquilibrium="⥮",upharpoonleft="↿",upharpoonright="↾",uplus="⊎",UpperLeftArrow="↖",UpperRightArrow="↗",upsi="υ",Upsi="ϒ",upsih="ϒ",Upsilon="Υ",upsilon="υ",UpTeeArrow="↥",UpTee="⊥",upuparrows="⇈",urcorn="⌝",urcorner="⌝",urcrop="⌎",Uring="Ů",uring="ů",urtri="◹",Uscr="𝒰",uscr="𝓊",utdot="⋰",Utilde="Ũ",utilde="ũ",utri="▵",utrif="▴",uuarr="⇈",Uuml="Ü",uuml="ü",uwangle="⦧",vangrt="⦜",varepsilon="ϵ",varkappa="ϰ",varnothing="∅",varphi="ϕ",varpi="ϖ",varpropto="∝",varr="↕",vArr="⇕",varrho="ϱ",varsigma="ς",varsubsetneq="⊊︀",varsubsetneqq="⫋︀",varsupsetneq="⊋︀",varsupsetneqq="⫌︀",vartheta="ϑ",vartriangleleft="⊲",vartriangleright="⊳",vBar="⫨",Vbar="⫫",vBarv="⫩",Vcy="В",vcy="в",vdash="⊢",vDash="⊨",Vdash="⊩",VDash="⊫",Vdashl="⫦",veebar="⊻",vee="",Vee="",veeeq="≚",vellip="⋮",verbar="|",Verbar="‖",vert="|",Vert="‖",VerticalBar="",VerticalLine="|",VerticalSeparator="❘",VerticalTilde="≀",VeryThinSpace="",Vfr="𝔙",vfr="𝔳",vltri="⊲",vnsub="⊂⃒",vnsup="⊃⃒",Vopf="𝕍",vopf="𝕧",vprop="∝",vrtri="⊳",Vscr="𝒱",vscr="𝓋",vsubnE="⫋︀",vsubne="⊊︀",vsupnE="⫌︀",vsupne="⊋︀",Vvdash="⊪",vzigzag="⦚",Wcirc="Ŵ",wcirc="ŵ",wedbar="⩟",wedge="∧",Wedge="⋀",wedgeq="≙",weierp="℘",Wfr="𝔚",wfr="𝔴",Wopf="𝕎",wopf="𝕨",wp="℘",wr="≀",wreath="≀",Wscr="𝒲",wscr="𝓌",xcap="⋂",xcirc="◯",xcup="",xdtri="▽",Xfr="𝔛",xfr="𝔵",xharr="⟷",xhArr="⟺",Xi="Ξ",xi="ξ",xlarr="⟵",xlArr="⟸",xmap="⟼",xnis="⋻",xodot="⨀",Xopf="𝕏",xopf="𝕩",xoplus="⨁",xotime="⨂",xrarr="⟶",xrArr="⟹",Xscr="𝒳",xscr="𝓍",xsqcup="⨆",xuplus="⨄",xutri="△",xvee="",xwedge="⋀",Yacute="Ý",yacute="ý",YAcy="Я",yacy="я",Ycirc="Ŷ",ycirc="ŷ",Ycy="Ы",ycy="ы",yen="¥",Yfr="𝔜",yfr="𝔶",YIcy="Ї",yicy="ї",Yopf="𝕐",yopf="𝕪",Yscr="𝒴",yscr="𝓎",YUcy="Ю",yucy="ю",yuml="ÿ",Yuml="Ÿ",Zacute="Ź",zacute="ź",Zcaron="Ž",zcaron="ž",Zcy="З",zcy="з",Zdot="Ż",zdot="ż",zeetrf="",ZeroWidthSpace="",Zeta="Ζ",zeta="ζ",zfr="𝔷",Zfr="",ZHcy="Ж",zhcy="ж",zigrarr="⇝",zopf="𝕫",Zopf="",Zscr="𝒵",zscr="𝓏",zwj="",zwnj="",require$$0={Aacute,aacute,Abreve,abreve,ac,acd,acE,Acirc,acirc,acute,Acy,acy,AElig,aelig,af,Afr,afr,Agrave,agrave,alefsym,aleph,Alpha,alpha,Amacr,amacr,amalg,amp,AMP,andand,And,and,andd,andslope,andv,ang,ange,angle,angmsdaa,angmsdab,angmsdac,angmsdad,angmsdae,angmsdaf,angmsdag,angmsdah,angmsd,angrt,angrtvb,angrtvbd,angsph,angst,angzarr,Aogon,aogon,Aopf,aopf,apacir,ap,apE,ape,apid,apos,ApplyFunction,approx,approxeq,Aring,aring,Ascr,ascr,Assign,ast,asymp,asympeq,Atilde,atilde,Auml,auml,awconint,awint,backcong,backepsilon,backprime,backsim,backsimeq,Backslash,Barv,barvee,barwed,Barwed,barwedge,bbrk,bbrktbrk,bcong,Bcy,bcy,bdquo,becaus,because,Because,bemptyv,bepsi,bernou,Bernoullis,Beta,beta,beth,between,Bfr,bfr,bigcap,bigcirc,bigcup,bigodot,bigoplus,bigotimes,bigsqcup,bigstar,bigtriangledown,bigtriangleup,biguplus,bigvee,bigwedge,bkarow,blacklozenge,blacksquare,blacktriangle,blacktriangledown,blacktriangleleft,blacktriangleright,blank,blk12,blk14,blk34,block:block$1,bne,bnequiv,bNot,bnot,Bopf,bopf,bot,bottom,bowtie,boxbox,boxdl,boxdL,boxDl,boxDL,boxdr,boxdR,boxDr,boxDR,boxh,boxH,boxhd,boxHd,boxhD,boxHD,boxhu,boxHu,boxhU,boxHU,boxminus,boxplus,boxtimes,boxul,boxuL,boxUl,boxUL,boxur,boxuR,boxUr,boxUR,boxv,boxV,boxvh,boxvH,boxVh,boxVH,boxvl,boxvL,boxVl,boxVL,boxvr,boxvR,boxVr,boxVR,bprime,breve,Breve,brvbar,bscr,Bscr,bsemi,bsim,bsime,bsolb,bsol,bsolhsub,bull,bullet,bump,bumpE,bumpe,Bumpeq,bumpeq,Cacute,cacute,capand,capbrcup,capcap,cap,Cap,capcup,capdot,CapitalDifferentialD,caps,caret,caron,Cayleys,ccaps,Ccaron,ccaron,Ccedil,ccedil,Ccirc,ccirc,Cconint,ccups,ccupssm,Cdot,cdot,cedil,Cedilla,cemptyv,cent,centerdot,CenterDot,cfr,Cfr,CHcy,chcy,check:check$1,checkmark,Chi,chi,circ,circeq,circlearrowleft,circlearrowright,circledast,circledcirc,circleddash,CircleDot,circledR,circledS,CircleMinus,CirclePlus,CircleTimes,cir,cirE,cire,cirfnint,cirmid,cirscir,ClockwiseContourIntegral,CloseCurlyDoubleQuote,CloseCurlyQuote,clubs,clubsuit,colon,Colon,Colone,colone,coloneq,comma,commat,comp,compfn,complement,complexes,cong,congdot,Congruent,conint,Conint,ContourIntegral,copf,Copf,coprod,Coproduct,copy,COPY,copysr,CounterClockwiseContourIntegral,crarr,cross,Cross,Cscr,cscr,csub,csube,csup,csupe,ctdot,cudarrl,cudarrr,cuepr,cuesc,cularr,cularrp,cupbrcap,cupcap,CupCap,cup,Cup,cupcup,cupdot,cupor,cups,curarr,curarrm,curlyeqprec,curlyeqsucc,curlyvee,curlywedge,curren,curvearrowleft,curvearrowright,cuvee,cuwed,cwconint,cwint,cylcty,dagger,Dagger,daleth,darr,Darr,dArr,dash,Dashv,dashv,dbkarow,dblac,Dcaron,dcaron,Dcy,dcy,ddagger,ddarr,DD,dd,DDotrahd,ddotseq,deg,Del,Delta,delta,demptyv,dfisht,Dfr,dfr,dHar,dharl,dharr,DiacriticalAcute,DiacriticalDot,DiacriticalDoubleAcute,DiacriticalGrave,DiacriticalTilde,diam,diamond,Diamond,diamondsuit,diams,die,DifferentialD,digamma,disin,div,divide,divideontimes,divonx,DJcy,djcy,dlcorn,dlcrop,dollar,Dopf,dopf,Dot,dot,DotDot,doteq,doteqdot,DotEqual,dotminus,dotplus,dotsquare,doublebarwedge,DoubleContourIntegral,DoubleDot,DoubleDownArrow,DoubleLeftArrow,DoubleLeftRightArrow,DoubleLeftTee,DoubleLongLeftArrow,DoubleLongLeftRightArrow,DoubleLongRightArrow,DoubleRightArrow,DoubleRightTee,DoubleUpArrow,DoubleUpDownArrow,DoubleVerticalBar,DownArrowBar,downarrow,DownArrow,Downarrow,DownArrowUpArrow,DownBreve,downdownarrows,downharpoonleft,downharpoonright,DownLeftRightVector,DownLeftTeeVector,DownLeftVectorBar,DownLeftVector,DownRightTeeVector,DownRightVectorBar,DownRightVector,DownTeeArrow,DownTee,drbkarow,drcorn,drcrop,Dscr,dscr,DScy,dscy,dsol,Dstrok,dstrok,dtdot,dtri,dtrif,duarr,duhar,dwangle,DZcy,dzcy,dzigrarr,Eacute,eacute,easter,Ecaron,ecaron,Ecirc,ecirc,ecir,ecolon,Ecy,ecy,eDDot,Edot,edot,eDot,ee:ee$1,efDot,Efr,efr,eg,Egrave,egrave,egs,egsdot,el,Element:Element$1,elinters,ell,els,elsdot,Emacr,emacr,empty:empty$1,emptyset,EmptySmallSquare,emptyv,EmptyVerySmallSquare,emsp13,emsp14,emsp,ENG,eng,ensp,Eogon,eogon,Eopf,eopf,epar,eparsl,eplus,epsi,Epsilon,epsilon:epsilon$1,epsiv,eqcirc,eqcolon,eqsim,eqslantgtr,eqslantless,Equal,equals,EqualTilde,equest,Equilibrium,equiv,equivDD,eqvparsl,erarr,erDot,escr,Escr,esdot,Esim,esim,Eta,eta,ETH,eth,Euml,euml,euro,excl,exist,Exists,expectation,exponentiale,ExponentialE,fallingdotseq,Fcy,fcy,female,ffilig,fflig,ffllig,Ffr,ffr,filig,FilledSmallSquare,FilledVerySmallSquare,fjlig,flat,fllig,fltns,fnof,Fopf,fopf,forall,ForAll,fork,forkv,Fouriertrf,fpartint,frac12,frac13,frac14,frac15,frac16,frac18,frac23,frac25,frac34,frac35,frac38,frac45,frac56,frac58,frac78,frasl,frown,fscr,Fscr,gacute,Gamma,gamma:gamma$1,Gammad,gammad,gap,Gbreve,gbreve,Gcedil,Gcirc,gcirc,Gcy,gcy,Gdot,gdot,ge:ge$1,gE,gEl,gel,geq,geqq,geqslant,gescc,ges,gesdot,gesdoto,gesdotol,gesl,gesles,Gfr,gfr,gg,Gg,ggg,gimel,GJcy,gjcy,gla,gl,glE,glj,gnap,gnapprox,gne,gnE,gneq,gneqq,gnsim,Gopf,gopf,grave,GreaterEqual,GreaterEqualLess,GreaterFullEqual,GreaterGreater,GreaterLess,GreaterSlantEqual,GreaterTilde,Gscr,gscr,gsim,gsime,gsiml,gtcc,gtcir,gt,GT:GT$1,Gt,gtdot,gtlPar,gtquest,gtrapprox,gtrarr,gtrdot,gtreqless,gtreqqless,gtrless,gtrsim,gvertneqq,gvnE,Hacek,hairsp,half,hamilt,HARDcy,hardcy,harrcir,harr,hArr,harrw,Hat,hbar,Hcirc,hcirc,hearts,heartsuit,hellip,hercon,hfr,Hfr,HilbertSpace,hksearow,hkswarow,hoarr,homtht,hookleftarrow,hookrightarrow,hopf,Hopf,horbar,HorizontalLine,hscr,Hscr,hslash,Hstrok,hstrok,HumpDownHump,HumpEqual,hybull,hyphen,Iacute,iacute,ic,Icirc,icirc,Icy,icy,Idot,IEcy,iecy,iexcl,iff,ifr,Ifr,Igrave,igrave,ii,iiiint,iiint,iinfin,iiota,IJlig,ijlig,Imacr,imacr,image:image$1,ImaginaryI,imagline,imagpart,imath,Im,imof,imped,Implies,incare,in:"∈",infin,infintie,inodot,intcal,int,Int,integers,Integral,intercal,Intersection,intlarhk,intprod,InvisibleComma,InvisibleTimes,IOcy,iocy,Iogon,iogon,Iopf,iopf,Iota,iota,iprod,iquest,iscr,Iscr,isin,isindot,isinE,isins,isinsv,isinv,it,Itilde,itilde,Iukcy,iukcy,Iuml,iuml,Jcirc,jcirc,Jcy,jcy,Jfr,jfr,jmath,Jopf,jopf,Jscr,jscr,Jsercy,jsercy,Jukcy,jukcy,Kappa,kappa,kappav,Kcedil,kcedil,Kcy,kcy,Kfr,kfr,kgreen,KHcy,khcy,KJcy,kjcy,Kopf,kopf,Kscr,kscr,lAarr,Lacute,lacute,laemptyv,lagran,Lambda,lambda,lang,Lang,langd,langle,lap,Laplacetrf,laquo,larrb,larrbfs,larr,Larr,lArr,larrfs,larrhk,larrlp,larrpl,larrsim,larrtl,latail,lAtail,lat,late,lates,lbarr,lBarr,lbbrk,lbrace,lbrack,lbrke,lbrksld,lbrkslu,Lcaron,lcaron,Lcedil,lcedil,lceil,lcub,Lcy,lcy,ldca,ldquo,ldquor,ldrdhar,ldrushar,ldsh,le,lE,LeftAngleBracket,LeftArrowBar,leftarrow,LeftArrow,Leftarrow,LeftArrowRightArrow,leftarrowtail,LeftCeiling,LeftDoubleBracket,LeftDownTeeVector,LeftDownVectorBar,LeftDownVector,LeftFloor,leftharpoondown,leftharpoonup,leftleftarrows,leftrightarrow,LeftRightArrow,Leftrightarrow,leftrightarrows,leftrightharpoons,leftrightsquigarrow,LeftRightVector,LeftTeeArrow,LeftTee,LeftTeeVector,leftthreetimes,LeftTriangleBar,LeftTriangle,LeftTriangleEqual,LeftUpDownVector,LeftUpTeeVector,LeftUpVectorBar,LeftUpVector,LeftVectorBar,LeftVector,lEg,leg,leq,leqq,leqslant,lescc,les,lesdot,lesdoto,lesdotor,lesg,lesges,lessapprox,lessdot,lesseqgtr,lesseqqgtr,LessEqualGreater,LessFullEqual,LessGreater,lessgtr,LessLess,lesssim,LessSlantEqual,LessTilde,lfisht,lfloor,Lfr,lfr,lg,lgE,lHar,lhard,lharu,lharul,lhblk,LJcy,ljcy,llarr,ll,Ll,llcorner,Lleftarrow,llhard,lltri,Lmidot,lmidot,lmoustache,lmoust,lnap,lnapprox,lne,lnE,lneq,lneqq,lnsim,loang,loarr,lobrk,longleftarrow,LongLeftArrow,Longleftarrow,longleftrightarrow,LongLeftRightArrow,Longleftrightarrow,longmapsto,longrightarrow,LongRightArrow,Longrightarrow,looparrowleft,looparrowright,lopar,Lopf,lopf,loplus,lotimes,lowast,lowbar,LowerLeftArrow,LowerRightArrow,loz,lozenge,lozf,lpar,lparlt,lrarr,lrcorner,lrhar,lrhard,lrm,lrtri,lsaquo,lscr,Lscr,lsh,Lsh,lsim,lsime,lsimg,lsqb,lsquo,lsquor,Lstrok,lstrok,ltcc,ltcir,lt,LT:LT$1,Lt,ltdot,lthree,ltimes,ltlarr,ltquest,ltri,ltrie,ltrif,ltrPar,lurdshar,luruhar,lvertneqq,lvnE,macr,male,malt,maltese,Map:"⤅",map:map$1,mapsto,mapstodown,mapstoleft,mapstoup,marker,mcomma,Mcy,mcy,mdash,mDDot,measuredangle,MediumSpace,Mellintrf,Mfr,mfr,mho,micro,midast,midcir,mid,middot,minusb,minus,minusd,minusdu,MinusPlus,mlcp,mldr,mnplus,models,Mopf,mopf,mp,mscr,Mscr,mstpos,Mu,mu,multimap,mumap,nabla,Nacute,nacute,nang,nap:nap$1,napE,napid,napos,napprox,natural,naturals,natur,nbsp,nbump,nbumpe,ncap,Ncaron,ncaron,Ncedil,ncedil,ncong,ncongdot,ncup,Ncy,ncy,ndash,nearhk,nearr,neArr,nearrow,ne,nedot,NegativeMediumSpace,NegativeThickSpace,NegativeThinSpace,NegativeVeryThinSpace,nequiv,nesear,nesim,NestedGreaterGreater,NestedLessLess,NewLine,nexist,nexists,Nfr,nfr,ngE,nge,ngeq,ngeqq,ngeqslant,nges,nGg,ngsim,nGt,ngt,ngtr,nGtv,nharr,nhArr,nhpar,ni,nis,nisd,niv,NJcy,njcy,nlarr,nlArr,nldr,nlE,nle,nleftarrow,nLeftarrow,nleftrightarrow,nLeftrightarrow,nleq,nleqq,nleqslant,nles,nless,nLl,nlsim,nLt,nlt,nltri,nltrie,nLtv,nmid,NoBreak,NonBreakingSpace,nopf,Nopf,Not,not,NotCongruent,NotCupCap,NotDoubleVerticalBar,NotElement,NotEqual,NotEqualTilde,NotExists,NotGreater,NotGreaterEqual,NotGreaterFullEqual,NotGreaterGreater,NotGreaterLess,NotGreaterSlantEqual,NotGreaterTilde,NotHumpDownHump,NotHumpEqual,notin,notindot,notinE,notinva,notinvb,notinvc,NotLeftTriangleBar,NotLeftTriangle,NotLeftTriangleEqual,NotLess,NotLessEqual,NotLessGreater,NotLessLess,NotLessSlantEqual,NotLessTilde,NotNestedGreaterGreater,NotNestedLessLess,notni,notniva,notnivb,notnivc,NotPrecedes,NotPrecedesEqual,NotPrecedesSlantEqual,NotReverseElement,NotRightTriangleBar,NotRightTriangle,NotRightTriangleEqual,NotSquareSubset,NotSquareSubsetEqual,NotSquareSuperset,NotSquareSupersetEqual,NotSubset,NotSubsetEqual,NotSucceeds,NotSucceedsEqual,NotSucceedsSlantEqual,NotSucceedsTilde,NotSuperset,NotSupersetEqual,NotTilde,NotTildeEqual,NotTildeFullEqual,NotTildeTilde,NotVerticalBar,nparallel,npar,nparsl,npart,npolint,npr,nprcue,nprec,npreceq,npre,nrarrc,nrarr,nrArr,nrarrw,nrightarrow,nRightarrow,nrtri,nrtrie,nsc,nsccue,nsce,Nscr,nscr,nshortmid,nshortparallel,nsim,nsime,nsimeq,nsmid,nspar,nsqsube,nsqsupe,nsub,nsubE,nsube,nsubset,nsubseteq,nsubseteqq,nsucc,nsucceq,nsup,nsupE,nsupe,nsupset,nsupseteq,nsupseteqq,ntgl,Ntilde,ntilde,ntlg,ntriangleleft,ntrianglelefteq,ntriangleright,ntrianglerighteq,Nu,nu,num,numero,numsp,nvap,nvdash,nvDash,nVdash,nVDash,nvge,nvgt,nvHarr,nvinfin,nvlArr,nvle,nvlt,nvltrie,nvrArr,nvrtrie,nvsim,nwarhk,nwarr,nwArr,nwarrow,nwnear,Oacute,oacute,oast,Ocirc,ocirc,ocir,Ocy,ocy,odash,Odblac,odblac,odiv,odot,odsold,OElig,oelig,ofcir,Ofr,ofr,ogon,Ograve,ograve,ogt,ohbar,ohm,oint,olarr,olcir,olcross,oline,olt,Omacr,omacr,Omega,omega,Omicron,omicron,omid,ominus,Oopf,oopf,opar,OpenCurlyDoubleQuote,OpenCurlyQuote,operp,oplus,orarr,Or,or,ord,order,orderof,ordf,ordm,origof,oror,orslope,orv,oS,Oscr,oscr,Oslash,oslash,osol,Otilde,otilde,otimesas,Otimes,otimes,Ouml,ouml,ovbar,OverBar,OverBrace,OverBracket,OverParenthesis,para,parallel,par,parsim,parsl,part,PartialD,Pcy,pcy,percnt,period,permil,perp,pertenk,Pfr,pfr,Phi,phi,phiv,phmmat,phone,Pi,pi:pi$1,pitchfork,piv,planck,planckh,plankv,plusacir,plusb,pluscir,plus,plusdo,plusdu,pluse,PlusMinus,plusmn,plussim,plustwo,pm,Poincareplane,pointint,popf,Popf,pound,prap,Pr,pr,prcue,precapprox,prec,preccurlyeq,Precedes,PrecedesEqual,PrecedesSlantEqual,PrecedesTilde,preceq,precnapprox,precneqq,precnsim,pre,prE,precsim,prime,Prime,primes,prnap,prnE,prnsim,prod,Product,profalar,profline,profsurf,prop,Proportional,Proportion,propto,prsim,prurel,Pscr,pscr,Psi,psi,puncsp,Qfr,qfr,qint,qopf,Qopf,qprime,Qscr,qscr,quaternions,quatint,quest,questeq,quot,QUOT,rAarr,race,Racute,racute,radic,raemptyv,rang,Rang,rangd,range,rangle,raquo,rarrap,rarrb,rarrbfs,rarrc,rarr,Rarr,rArr,rarrfs,rarrhk,rarrlp,rarrpl,rarrsim,Rarrtl,rarrtl,rarrw,ratail,rAtail,ratio,rationals,rbarr,rBarr,RBarr,rbbrk,rbrace,rbrack,rbrke,rbrksld,rbrkslu,Rcaron,rcaron,Rcedil,rcedil,rceil,rcub,Rcy,rcy,rdca,rdldhar,rdquo,rdquor,rdsh,real,realine,realpart,reals,Re,rect,reg,REG,ReverseElement,ReverseEquilibrium,ReverseUpEquilibrium,rfisht,rfloor,rfr,Rfr,rHar,rhard,rharu,rharul,Rho,rho,rhov,RightAngleBracket,RightArrowBar,rightarrow,RightArrow,Rightarrow,RightArrowLeftArrow,rightarrowtail,RightCeiling,RightDoubleBracket,RightDownTeeVector,RightDownVectorBar,RightDownVector,RightFloor,rightharpoondown,rightharpoonup,rightleftarrows,rightleftharpoons,rightrightarrows,rightsquigarrow,RightTeeArrow,RightTee,RightTeeVector,rightthreetimes,RightTriangleBar,RightTriangle,RightTriangleEqual,RightUpDownVector,RightUpTeeVector,RightUpVectorBar,RightUpVector,RightVectorBar,RightVector,ring,risingdotseq,rlarr,rlhar,rlm,rmoustache,rmoust,rnmid,roang,roarr,robrk,ropar,ropf,Ropf,roplus,rotimes,RoundImplies,rpar,rpargt,rppolint,rrarr,Rrightarrow,rsaquo,rscr,Rscr,rsh,Rsh,rsqb,rsquo,rsquor,rthree,rtimes,rtri,rtrie,rtrif,rtriltri,RuleDelayed,ruluhar,rx,Sacute,sacute,sbquo,scap,Scaron,scaron,Sc,sc,sccue,sce,scE,Scedil,scedil,Scirc,scirc,scnap,scnE,scnsim,scpolint,scsim,Scy,scy,sdotb,sdot,sdote,searhk,searr,seArr,searrow,sect,semi,seswar,setminus,setmn,sext,Sfr,sfr,sfrown,sharp,SHCHcy,shchcy,SHcy,shcy,ShortDownArrow,ShortLeftArrow,shortmid,shortparallel,ShortRightArrow,ShortUpArrow,shy,Sigma,sigma,sigmaf,sigmav,sim,simdot,sime,simeq,simg,simgE,siml,simlE,simne,simplus,simrarr,slarr,SmallCircle,smallsetminus,smashp,smeparsl,smid,smile,smt,smte,smtes,SOFTcy,softcy,solbar,solb,sol,Sopf,sopf,spades,spadesuit,spar,sqcap,sqcaps,sqcup,sqcups,Sqrt,sqsub,sqsube,sqsubset,sqsubseteq,sqsup,sqsupe,sqsupset,sqsupseteq,square,Square,SquareIntersection,SquareSubset,SquareSubsetEqual,SquareSuperset,SquareSupersetEqual,SquareUnion,squarf,squ,squf,srarr,Sscr,sscr,ssetmn,ssmile,sstarf,Star,star,starf,straightepsilon,straightphi,strns,sub,Sub,subdot,subE,sube,subedot,submult,subnE,subne,subplus,subrarr,subset,Subset,subseteq,subseteqq,SubsetEqual,subsetneq,subsetneqq,subsim,subsub,subsup,succapprox,succ,succcurlyeq,Succeeds,SucceedsEqual,SucceedsSlantEqual,SucceedsTilde,succeq,succnapprox,succneqq,succnsim,succsim,SuchThat,sum,Sum,sung,sup1,sup2,sup3,sup,Sup,supdot,supdsub,supE,supe,supedot,Superset,SupersetEqual,suphsol,suphsub,suplarr,supmult,supnE,supne,supplus,supset,Supset,supseteq,supseteqq,supsetneq,supsetneqq,supsim,supsub,supsup,swarhk,swarr,swArr,swarrow,swnwar,szlig,Tab,target,Tau,tau:tau$1,tbrk,Tcaron,tcaron,Tcedil,tcedil,Tcy,tcy,tdot,telrec,Tfr,tfr,there4,therefore,Therefore,Theta,theta,thetasym,thetav,thickapprox,thicksim,ThickSpace,ThinSpace,thinsp,thkap,thksim,THORN,thorn,tilde,Tilde,TildeEqual,TildeFullEqual,TildeTilde,timesbar,timesb,times,timesd,tint,toea,topbot,topcir,top,Topf,topf,topfork,tosa,tprime,trade,TRADE,triangle,triangledown,triangleleft,trianglelefteq,triangleq,triangleright,trianglerighteq,tridot,trie,triminus,TripleDot,triplus,trisb,tritime,trpezium,Tscr,tscr,TScy,tscy,TSHcy,tshcy,Tstrok,tstrok,twixt,twoheadleftarrow,twoheadrightarrow,Uacute,uacute,uarr,Uarr,uArr,Uarrocir,Ubrcy,ubrcy,Ubreve,ubreve,Ucirc,ucirc,Ucy,ucy,udarr,Udblac,udblac,udhar,ufisht,Ufr,ufr,Ugrave,ugrave,uHar,uharl,uharr,uhblk,ulcorn,ulcorner,ulcrop,ultri,Umacr,umacr,uml,UnderBar,UnderBrace,UnderBracket,UnderParenthesis,Union,UnionPlus,Uogon,uogon,Uopf,uopf,UpArrowBar,uparrow,UpArrow,Uparrow,UpArrowDownArrow,updownarrow,UpDownArrow,Updownarrow,UpEquilibrium,upharpoonleft,upharpoonright,uplus,UpperLeftArrow,UpperRightArrow,upsi,Upsi,upsih,Upsilon,upsilon,UpTeeArrow,UpTee,upuparrows,urcorn,urcorner,urcrop,Uring,uring,urtri,Uscr,uscr,utdot,Utilde,utilde,utri,utrif,uuarr,Uuml,uuml,uwangle,vangrt,varepsilon,varkappa,varnothing,varphi,varpi,varpropto,varr,vArr,varrho,varsigma,varsubsetneq,varsubsetneqq,varsupsetneq,varsupsetneqq,vartheta,vartriangleleft,vartriangleright,vBar,Vbar,vBarv,Vcy,vcy,vdash,vDash,Vdash,VDash,Vdashl,veebar,vee,Vee,veeeq,vellip,verbar,Verbar,vert,Vert,VerticalBar,VerticalLine,VerticalSeparator,VerticalTilde,VeryThinSpace,Vfr,vfr,vltri,vnsub,vnsup,Vopf,vopf,vprop,vrtri,Vscr,vscr,vsubnE,vsubne,vsupnE,vsupne,Vvdash,vzigzag,Wcirc,wcirc,wedbar,wedge,Wedge,wedgeq,weierp,Wfr,wfr,Wopf,wopf,wp,wr,wreath,Wscr,wscr,xcap,xcirc,xcup,xdtri,Xfr,xfr,xharr,xhArr,Xi,xi,xlarr,xlArr,xmap,xnis,xodot,Xopf,xopf,xoplus,xotime,xrarr,xrArr,Xscr,xscr,xsqcup,xuplus,xutri,xvee,xwedge,Yacute,yacute,YAcy,yacy,Ycirc,ycirc,Ycy,ycy,yen,Yfr,yfr,YIcy,yicy,Yopf,yopf,Yscr,yscr,YUcy,yucy,yuml,Yuml,Zacute,zacute,Zcaron,zcaron,Zcy,zcy,Zdot,zdot,zeetrf,ZeroWidthSpace,Zeta,zeta,zfr,Zfr,ZHcy,zhcy,zigrarr,zopf,Zopf,Zscr,zscr,zwj,zwnj};var entities$1=require$$0,regex$4=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,mdurl$1={},encodeCache={};function getEncodeCache(k){var m,M,G=encodeCache[k];if(G)return G;for(G=encodeCache[k]=[],m=0;m<128;m++)M=String.fromCharCode(m),/^[0-9a-z]$/i.test(M)?G.push(M):G.push("%"+("0"+m.toString(16).toUpperCase()).slice(-2));for(m=0;m<k.length;m++)G[k.charCodeAt(m)]=k[m];return G}function encode$1(k,m,M){var G,V,q,$,D,B="";for(typeof m!="string"&&(M=m,m=encode$1.defaultChars),typeof M>"u"&&(M=!0),D=getEncodeCache(m),G=0,V=k.length;G<V;G++){if(q=k.charCodeAt(G),M&&q===37&&G+2<V&&/^[0-9a-f]{2}$/i.test(k.slice(G+1,G+3))){B+=k.slice(G,G+3),G+=2;continue}if(q<128){B+=D[q];continue}if(q>=55296&&q<=57343){if(q>=55296&&q<=56319&&G+1<V&&($=k.charCodeAt(G+1),$>=56320&&$<=57343)){B+=encodeURIComponent(k[G]+k[G+1]),G++;continue}B+="%EF%BF%BD";continue}B+=encodeURIComponent(k[G])}return B}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";var encode_1=encode$1,decodeCache={};function getDecodeCache(k){var m,M,G=decodeCache[k];if(G)return G;for(G=decodeCache[k]=[],m=0;m<128;m++)M=String.fromCharCode(m),G.push(M);for(m=0;m<k.length;m++)M=k.charCodeAt(m),G[M]="%"+("0"+M.toString(16).toUpperCase()).slice(-2);return G}function decode$1(k,m){var M;return typeof m!="string"&&(m=decode$1.defaultChars),M=getDecodeCache(m),k.replace(/(%[a-f0-9]{2})+/gi,function(G){var V,q,$,D,B,R,U,K="";for(V=0,q=G.length;V<q;V+=3){if($=parseInt(G.slice(V+1,V+3),16),$<128){K+=M[$];continue}if(($&224)===192&&V+3<q&&(D=parseInt(G.slice(V+4,V+6),16),(D&192)===128)){U=$<<6&1984|D&63,U<128?K+="<22><>":K+=String.fromCharCode(U),V+=3;continue}if(($&240)===224&&V+6<q&&(D=parseInt(G.slice(V+4,V+6),16),B=parseInt(G.slice(V+7,V+9),16),(D&192)===128&&(B&192)===128)){U=$<<12&61440|D<<6&4032|B&63,U<2048||U>=55296&&U<=57343?K+="<22><><EFBFBD>":K+=String.fromCharCode(U),V+=6;continue}if(($&248)===240&&V+9<q&&(D=parseInt(G.slice(V+4,V+6),16),B=parseInt(G.slice(V+7,V+9),16),R=parseInt(G.slice(V+10,V+12),16),(D&192)===128&&(B&192)===128&&(R&192)===128)){U=$<<18&1835008|D<<12&258048|B<<6&4032|R&63,U<65536||U>1114111?K+="<22><><EFBFBD><EFBFBD>":(U-=65536,K+=String.fromCharCode(55296+(U>>10),56320+(U&1023))),V+=9;continue}K+="<22>"}return K})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";var decode_1=decode$1,format=function(m){var M="";return M+=m.protocol||"",M+=m.slashes?"//":"",M+=m.auth?m.auth+"@":"",m.hostname&&m.hostname.indexOf(":")!==-1?M+="["+m.hostname+"]":M+=m.hostname||"",M+=m.port?":"+m.port:"",M+=m.pathname||"",M+=m.search||"",M+=m.hash||"",M};function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
`," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(k,m){if(k&&k instanceof Url)return k;var M=new Url;return M.parse(k,m),M}Url.prototype.parse=function(k,m){var M,G,V,q,$,D=k;if(D=D.trim(),!m&&k.split("#").length===1){var B=simplePathPattern.exec(D);if(B)return this.pathname=B[1],B[2]&&(this.search=B[2]),this}var R=protocolPattern.exec(D);if(R&&(R=R[0],V=R.toLowerCase(),this.protocol=R,D=D.substr(R.length)),(m||R||D.match(/^\/\/[^@\/]+@[^@\/]+/))&&($=D.substr(0,2)==="//",$&&!(R&&hostlessProtocol[R])&&(D=D.substr(2),this.slashes=!0)),!hostlessProtocol[R]&&($||R&&!slashedProtocol[R])){var U=-1;for(M=0;M<hostEndingChars.length;M++)q=D.indexOf(hostEndingChars[M]),q!==-1&&(U===-1||q<U)&&(U=q);var K,z;for(U===-1?z=D.lastIndexOf("@"):z=D.lastIndexOf("@",U),z!==-1&&(K=D.slice(0,z),D=D.slice(z+1),this.auth=K),U=-1,M=0;M<nonHostChars.length;M++)q=D.indexOf(nonHostChars[M]),q!==-1&&(U===-1||q<U)&&(U=q);U===-1&&(U=D.length),D[U-1]===":"&&U--;var e=D.slice(0,U);D=D.slice(U),this.parseHost(e),this.hostname=this.hostname||"";var ae=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ae){var ie=this.hostname.split(/\./);for(M=0,G=ie.length;M<G;M++){var he=ie[M];if(he&&!he.match(hostnamePartPattern)){for(var J="",W=0,X=he.length;W<X;W++)he.charCodeAt(W)>127?J+="x":J+=he[W];if(!J.match(hostnamePartPattern)){var L=ie.slice(0,M),Q=ie.slice(M+1),ce=he.match(hostnamePartStart);ce&&(L.push(ce[1]),Q.unshift(ce[2])),Q.length&&(D=Q.join(".")+D),this.hostname=L.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),ae&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var de=D.indexOf("#");de!==-1&&(this.hash=D.substr(de),D=D.slice(0,de));var se=D.indexOf("?");return se!==-1&&(this.search=D.substr(se),D=D.slice(0,se)),D&&(this.pathname=D),slashedProtocol[V]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(k){var m=portPattern.exec(k);m&&(m=m[0],m!==":"&&(this.port=m.substr(1)),k=k.substr(0,k.length-m.length)),k&&(this.hostname=k)};var parse=urlParse;mdurl$1.encode=encode_1;mdurl$1.decode=decode_1;mdurl$1.format=format;mdurl$1.parse=parse;var uc_micro={},regex$3,hasRequiredRegex$3;function requireRegex$3(){return hasRequiredRegex$3||(hasRequiredRegex$3=1,regex$3=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),regex$3}var regex$2,hasRequiredRegex$2;function requireRegex$2(){return hasRequiredRegex$2||(hasRequiredRegex$2=1,regex$2=/[\0-\x1F\x7F-\x9F]/),regex$2}var regex$1,hasRequiredRegex$1;function requireRegex$1(){return hasRequiredRegex$1||(hasRequiredRegex$1=1,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),regex$1}var regex,hasRequiredRegex;function requireRegex(){return hasRequiredRegex||(hasRequiredRegex=1,regex=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),regex}var hasRequiredUc_micro;function requireUc_micro(){return hasRequiredUc_micro||(hasRequiredUc_micro=1,uc_micro.Any=requireRegex$3(),uc_micro.Cc=requireRegex$2(),uc_micro.Cf=requireRegex$1(),uc_micro.P=regex$4,uc_micro.Z=requireRegex()),uc_micro}(function(k){function m(fe){return Object.prototype.toString.call(fe)}function M(fe){return m(fe)==="[object String]"}var G=Object.prototype.hasOwnProperty;function V(fe,ve){return G.call(fe,ve)}function q(fe){var ve=Array.prototype.slice.call(arguments,1);return ve.forEach(function(ye){if(ye){if(typeof ye!="object")throw new TypeError(ye+"must be object");Object.keys(ye).forEach(function(Ce){fe[Ce]=ye[Ce]})}}),fe}function $(fe,ve,ye){return[].concat(fe.slice(0,ve),ye,fe.slice(ve+1))}function D(fe){return!(fe>=55296&&fe<=57343||fe>=64976&&fe<=65007||(fe&65535)===65535||(fe&65535)===65534||fe>=0&&fe<=8||fe===11||fe>=14&&fe<=31||fe>=127&&fe<=159||fe>1114111)}function B(fe){if(fe>65535){fe-=65536;var ve=55296+(fe>>10),ye=56320+(fe&1023);return String.fromCharCode(ve,ye)}return String.fromCharCode(fe)}var R=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,U=/&([a-z#][a-z0-9]{1,31});/gi,K=new RegExp(R.source+"|"+U.source,"gi"),z=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,e=entities$1;function ae(fe,ve){var ye;return V(e,ve)?e[ve]:ve.charCodeAt(0)===35&&z.test(ve)&&(ye=ve[1].toLowerCase()==="x"?parseInt(ve.slice(2),16):parseInt(ve.slice(1),10),D(ye))?B(ye):fe}function ie(fe){return fe.indexOf("\\")<0?fe:fe.replace(R,"$1")}function he(fe){return fe.indexOf("\\")<0&&fe.indexOf("&")<0?fe:fe.replace(K,function(ve,ye,Ce){return ye||ae(ve,Ce)})}var J=/[&<>"]/,W=/[&<>"]/g,X={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function L(fe){return X[fe]}function Q(fe){return J.test(fe)?fe.replace(W,L):fe}var ce=/[.?*+^$[\]\\(){}|-]/g;function de(fe){return fe.replace(ce,"\\$&")}function se(fe){switch(fe){case 9:case 32:return!0}return!1}function oe(fe){if(fe>=8192&&fe<=8202)return!0;switch(fe){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var me=regex$4;function Ee(fe){return me.test(fe)}function ke(fe){switch(fe){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xe(fe){return fe=fe.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(fe=fe.replace(/ẞ/g,"ß")),fe.toLowerCase().toUpperCase()}k.lib={},k.lib.mdurl=mdurl$1,k.lib.ucmicro=requireUc_micro(),k.assign=q,k.isString=M,k.has=V,k.unescapeMd=ie,k.unescapeAll=he,k.isValidEntityCode=D,k.fromCodePoint=B,k.escapeHtml=Q,k.arrayReplaceAt=$,k.isSpace=se,k.isWhiteSpace=oe,k.isMdAsciiPunct=ke,k.isPunctChar=Ee,k.escapeRE=de,k.normalizeReference=xe})(utils$1);var helpers$1={},parse_link_label=function(m,M,G){var V,q,$,D,B=-1,R=m.posMax,U=m.pos;for(m.pos=M+1,V=1;m.pos<R;){if($=m.src.charCodeAt(m.pos),$===93&&(V--,V===0)){q=!0;break}if(D=m.pos,m.md.inline.skipToken(m),$===91){if(D===m.pos-1)V++;else if(G)return m.pos=U,-1}}return q&&(B=m.pos),m.pos=U,B},unescapeAll$2=utils$1.unescapeAll,parse_link_destination=function(m,M,G){var V,q,$=M,D={ok:!1,pos:0,lines:0,str:""};if(m.charCodeAt($)===60){for($++;$<G;){if(V=m.charCodeAt($),V===10||V===60)return D;if(V===62)return D.pos=$+1,D.str=unescapeAll$2(m.slice(M+1,$)),D.ok=!0,D;if(V===92&&$+1<G){$+=2;continue}$++}return D}for(q=0;$<G&&(V=m.charCodeAt($),!(V===32||V<32||V===127));){if(V===92&&$+1<G){if(m.charCodeAt($+1)===32)break;$+=2;continue}if(V===40&&(q++,q>32))return D;if(V===41){if(q===0)break;q--}$++}return M===$||q!==0||(D.str=unescapeAll$2(m.slice(M,$)),D.pos=$,D.ok=!0),D},unescapeAll$1=utils$1.unescapeAll,parse_link_title=function(m,M,G){var V,q,$=0,D=M,B={ok:!1,pos:0,lines:0,str:""};if(D>=G||(q=m.charCodeAt(D),q!==34&&q!==39&&q!==40))return B;for(D++,q===40&&(q=41);D<G;){if(V=m.charCodeAt(D),V===q)return B.pos=D+1,B.lines=$,B.str=unescapeAll$1(m.slice(M+1,D)),B.ok=!0,B;if(V===40&&q===41)return B;V===10?$++:V===92&&D+1<G&&(D++,m.charCodeAt(D)===10&&$++),D++}return B};helpers$1.parseLinkLabel=parse_link_label;helpers$1.parseLinkDestination=parse_link_destination;helpers$1.parseLinkTitle=parse_link_title;var assign$1=utils$1.assign,unescapeAll=utils$1.unescapeAll,escapeHtml=utils$1.escapeHtml,default_rules={};default_rules.code_inline=function(k,m,M,G,V){var q=k[m];return"<code"+V.renderAttrs(q)+">"+escapeHtml(q.content)+"</code>"};default_rules.code_block=function(k,m,M,G,V){var q=k[m];return"<pre"+V.renderAttrs(q)+"><code>"+escapeHtml(k[m].content)+`</code></pre>
`};default_rules.fence=function(k,m,M,G,V){var q=k[m],$=q.info?unescapeAll(q.info).trim():"",D="",B="",R,U,K,z,e;return $&&(K=$.split(/(\s+)/g),D=K[0],B=K.slice(2).join("")),M.highlight?R=M.highlight(q.content,D,B)||escapeHtml(q.content):R=escapeHtml(q.content),R.indexOf("<pre")===0?R+`
`:$?(U=q.attrIndex("class"),z=q.attrs?q.attrs.slice():[],U<0?z.push(["class",M.langPrefix+D]):(z[U]=z[U].slice(),z[U][1]+=" "+M.langPrefix+D),e={attrs:z},"<pre><code"+V.renderAttrs(e)+">"+R+`</code></pre>
`):"<pre><code"+V.renderAttrs(q)+">"+R+`</code></pre>
`};default_rules.image=function(k,m,M,G,V){var q=k[m];return q.attrs[q.attrIndex("alt")][1]=V.renderInlineAsText(q.children,M,G),V.renderToken(k,m,M)};default_rules.hardbreak=function(k,m,M){return M.xhtmlOut?`<br />
`:`<br>
`};default_rules.softbreak=function(k,m,M){return M.breaks?M.xhtmlOut?`<br />
`:`<br>
`:`
`};default_rules.text=function(k,m){return escapeHtml(k[m].content)};default_rules.html_block=function(k,m){return k[m].content};default_rules.html_inline=function(k,m){return k[m].content};function Renderer$1(){this.rules=assign$1({},default_rules)}Renderer$1.prototype.renderAttrs=function(m){var M,G,V;if(!m.attrs)return"";for(V="",M=0,G=m.attrs.length;M<G;M++)V+=" "+escapeHtml(m.attrs[M][0])+'="'+escapeHtml(m.attrs[M][1])+'"';return V};Renderer$1.prototype.renderToken=function(m,M,G){var V,q="",$=!1,D=m[M];return D.hidden?"":(D.block&&D.nesting!==-1&&M&&m[M-1].hidden&&(q+=`
`),q+=(D.nesting===-1?"</":"<")+D.tag,q+=this.renderAttrs(D),D.nesting===0&&G.xhtmlOut&&(q+=" /"),D.block&&($=!0,D.nesting===1&&M+1<m.length&&(V=m[M+1],(V.type==="inline"||V.hidden||V.nesting===-1&&V.tag===D.tag)&&($=!1))),q+=$?`>
`:">",q)};Renderer$1.prototype.renderInline=function(k,m,M){for(var G,V="",q=this.rules,$=0,D=k.length;$<D;$++)G=k[$].type,typeof q[G]<"u"?V+=q[G](k,$,m,M,this):V+=this.renderToken(k,$,m);return V};Renderer$1.prototype.renderInlineAsText=function(k,m,M){for(var G="",V=0,q=k.length;V<q;V++)k[V].type==="text"?G+=k[V].content:k[V].type==="image"?G+=this.renderInlineAsText(k[V].children,m,M):k[V].type==="softbreak"&&(G+=`
`);return G};Renderer$1.prototype.render=function(k,m,M){var G,V,q,$="",D=this.rules;for(G=0,V=k.length;G<V;G++)q=k[G].type,q==="inline"?$+=this.renderInline(k[G].children,m,M):typeof D[q]<"u"?$+=D[q](k,G,m,M,this):$+=this.renderToken(k,G,m,M);return $};var renderer=Renderer$1;function Ruler$3(){this.__rules__=[],this.__cache__=null}Ruler$3.prototype.__find__=function(k){for(var m=0;m<this.__rules__.length;m++)if(this.__rules__[m].name===k)return m;return-1};Ruler$3.prototype.__compile__=function(){var k=this,m=[""];k.__rules__.forEach(function(M){M.enabled&&M.alt.forEach(function(G){m.indexOf(G)<0&&m.push(G)})}),k.__cache__={},m.forEach(function(M){k.__cache__[M]=[],k.__rules__.forEach(function(G){G.enabled&&(M&&G.alt.indexOf(M)<0||k.__cache__[M].push(G.fn))})})};Ruler$3.prototype.at=function(k,m,M){var G=this.__find__(k),V=M||{};if(G===-1)throw new Error("Parser rule not found: "+k);this.__rules__[G].fn=m,this.__rules__[G].alt=V.alt||[],this.__cache__=null};Ruler$3.prototype.before=function(k,m,M,G){var V=this.__find__(k),q=G||{};if(V===-1)throw new Error("Parser rule not found: "+k);this.__rules__.splice(V,0,{name:m,enabled:!0,fn:M,alt:q.alt||[]}),this.__cache__=null};Ruler$3.prototype.after=function(k,m,M,G){var V=this.__find__(k),q=G||{};if(V===-1)throw new Error("Parser rule not found: "+k);this.__rules__.splice(V+1,0,{name:m,enabled:!0,fn:M,alt:q.alt||[]}),this.__cache__=null};Ruler$3.prototype.push=function(k,m,M){var G=M||{};this.__rules__.push({name:k,enabled:!0,fn:m,alt:G.alt||[]}),this.__cache__=null};Ruler$3.prototype.enable=function(k,m){Array.isArray(k)||(k=[k]);var M=[];return k.forEach(function(G){var V=this.__find__(G);if(V<0){if(m)return;throw new Error("Rules manager: invalid rule name "+G)}this.__rules__[V].enabled=!0,M.push(G)},this),this.__cache__=null,M};Ruler$3.prototype.enableOnly=function(k,m){Array.isArray(k)||(k=[k]),this.__rules__.forEach(function(M){M.enabled=!1}),this.enable(k,m)};Ruler$3.prototype.disable=function(k,m){Array.isArray(k)||(k=[k]);var M=[];return k.forEach(function(G){var V=this.__find__(G);if(V<0){if(m)return;throw new Error("Rules manager: invalid rule name "+G)}this.__rules__[V].enabled=!1,M.push(G)},this),this.__cache__=null,M};Ruler$3.prototype.getRules=function(k){return this.__cache__===null&&this.__compile__(),this.__cache__[k]||[]};var ruler=Ruler$3,NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g,normalize$1=function(m){var M;M=m.src.replace(NEWLINES_RE,`
`),M=M.replace(NULL_RE,"<22>"),m.src=M},block=function(m){var M;m.inlineMode?(M=new m.Token("inline","",0),M.content=m.src,M.map=[0,1],M.children=[],m.tokens.push(M)):m.md.block.parse(m.src,m.md,m.env,m.tokens)},inline=function(m){var M=m.tokens,G,V,q;for(V=0,q=M.length;V<q;V++)G=M[V],G.type==="inline"&&m.md.inline.parse(G.content,m.md,m.env,G.children)},arrayReplaceAt=utils$1.arrayReplaceAt;function isLinkOpen$1(k){return/^<a[>\s]/i.test(k)}function isLinkClose$1(k){return/^<\/a\s*>/i.test(k)}var linkify$1=function(m){var M,G,V,q,$,D,B,R,U,K,z,e,ae,ie,he,J,W=m.tokens,X;if(m.md.options.linkify){for(G=0,V=W.length;G<V;G++)if(!(W[G].type!=="inline"||!m.md.linkify.pretest(W[G].content)))for(q=W[G].children,ae=0,M=q.length-1;M>=0;M--){if(D=q[M],D.type==="link_close"){for(M--;q[M].level!==D.level&&q[M].type!=="link_open";)M--;continue}if(D.type==="html_inline"&&(isLinkOpen$1(D.content)&&ae>0&&ae--,isLinkClose$1(D.content)&&ae++),!(ae>0)&&D.type==="text"&&m.md.linkify.test(D.content)){for(U=D.content,X=m.md.linkify.match(U),B=[],e=D.level,z=0,X.length>0&&X[0].index===0&&M>0&&q[M-1].type==="text_special"&&(X=X.slice(1)),R=0;R<X.length;R++)ie=X[R].url,he=m.md.normalizeLink(ie),m.md.validateLink(he)&&(J=X[R].text,X[R].schema?X[R].schema==="mailto:"&&!/^mailto:/i.test(J)?J=m.md.normalizeLinkText("mailto:"+J).replace(/^mailto:/,""):J=m.md.normalizeLinkText(J):J=m.md.normalizeLinkText("http://"+J).replace(/^http:\/\//,""),K=X[R].index,K>z&&($=new m.Token("text","",0),$.content=U.slice(z,K),$.level=e,B.push($)),$=new m.Token("link_open","a",1),$.attrs=[["href",he]],$.level=e++,$.markup="linkify",$.info="auto",B.push($),$=new m.Token("text","",0),$.content=J,$.level=e,B.push($),$=new m.Token("link_close","a",-1),$.level=--e,$.markup="linkify",$.info="auto",B.push($),z=X[R].lastIndex);z<U.length&&($=new m.Token("text","",0),$.content=U.slice(z),$.level=e,B.push($)),W[G].children=q=arrayReplaceAt(q,M,B)}}}},RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(k,m){return SCOPED_ABBR[m.toLowerCase()]}function replace_scoped(k){var m,M,G=0;for(m=k.length-1;m>=0;m--)M=k[m],M.type==="text"&&!G&&(M.content=M.content.replace(SCOPED_ABBR_RE,replaceFn)),M.type==="link_open"&&M.info==="auto"&&G--,M.type==="link_close"&&M.info==="auto"&&G++}function replace_rare(k){var m,M,G=0;for(m=k.length-1;m>=0;m--)M=k[m],M.type==="text"&&!G&&RARE_RE.test(M.content)&&(M.content=M.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1")),M.type==="link_open"&&M.info==="auto"&&G--,M.type==="link_close"&&M.info==="auto"&&G++}var replacements=function(m){var M;if(m.md.options.typographer)for(M=m.tokens.length-1;M>=0;M--)m.tokens[M].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(m.tokens[M].content)&&replace_scoped(m.tokens[M].children),RARE_RE.test(m.tokens[M].content)&&replace_rare(m.tokens[M].children))},isWhiteSpace$1=utils$1.isWhiteSpace,isPunctChar$1=utils$1.isPunctChar,isMdAsciiPunct$1=utils$1.isMdAsciiPunct,QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="";function replaceAt(k,m,M){return k.slice(0,m)+M+k.slice(m+1)}function process_inlines(k,m){var M,G,V,q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce;for(L=[],M=0;M<k.length;M++){for(G=k[M],B=k[M].level,W=L.length-1;W>=0&&!(L[W].level<=B);W--);if(L.length=W+1,G.type==="text"){V=G.content,$=0,D=V.length;e:for(;$<D&&(QUOTE_RE.lastIndex=$,q=QUOTE_RE.exec(V),!!q);){if(he=J=!0,$=q.index+1,X=q[0]==="'",U=32,q.index-1>=0)U=V.charCodeAt(q.index-1);else for(W=M-1;W>=0&&!(k[W].type==="softbreak"||k[W].type==="hardbreak");W--)if(k[W].content){U=k[W].content.charCodeAt(k[W].content.length-1);break}if(K=32,$<D)K=V.charCodeAt($);else for(W=M+1;W<k.length&&!(k[W].type==="softbreak"||k[W].type==="hardbreak");W++)if(k[W].content){K=k[W].content.charCodeAt(0);break}if(z=isMdAsciiPunct$1(U)||isPunctChar$1(String.fromCharCode(U)),e=isMdAsciiPunct$1(K)||isPunctChar$1(String.fromCharCode(K)),ae=isWhiteSpace$1(U),ie=isWhiteSpace$1(K),ie?he=!1:e&&(ae||z||(he=!1)),ae?J=!1:z&&(ie||e||(J=!1)),K===34&&q[0]==='"'&&U>=48&&U<=57&&(J=he=!1),he&&J&&(he=z,J=e),!he&&!J){X&&(G.content=replaceAt(G.content,q.index,APOSTROPHE));continue}if(J){for(W=L.length-1;W>=0&&(R=L[W],!(L[W].level<B));W--)if(R.single===X&&L[W].level===B){R=L[W],X?(Q=m.md.options.quotes[2],ce=m.md.options.quotes[3]):(Q=m.md.options.quotes[0],ce=m.md.options.quotes[1]),G.content=replaceAt(G.content,q.index,ce),k[R.token].content=replaceAt(k[R.token].content,R.pos,Q),$+=ce.length-1,R.token===M&&($+=Q.length-1),V=G.content,D=V.length,L.length=W;continue e}}he?L.push({token:M,pos:q.index,single:X,level:B}):J&&X&&(G.content=replaceAt(G.content,q.index,APOSTROPHE))}}}}var smartquotes=function(m){var M;if(m.md.options.typographer)for(M=m.tokens.length-1;M>=0;M--)m.tokens[M].type!=="inline"||!QUOTE_TEST_RE.test(m.tokens[M].content)||process_inlines(m.tokens[M].children,m)},text_join=function(m){var M,G,V,q,$,D,B=m.tokens;for(M=0,G=B.length;M<G;M++)if(B[M].type==="inline"){for(V=B[M].children,$=V.length,q=0;q<$;q++)V[q].type==="text_special"&&(V[q].type="text");for(q=D=0;q<$;q++)V[q].type==="text"&&q+1<$&&V[q+1].type==="text"?V[q+1].content=V[q].content+V[q+1].content:(q!==D&&(V[D]=V[q]),D++);q!==D&&(V.length=D)}};function Token$3(k,m,M){this.type=k,this.tag=m,this.attrs=null,this.map=null,this.nesting=M,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token$3.prototype.attrIndex=function(m){var M,G,V;if(!this.attrs)return-1;for(M=this.attrs,G=0,V=M.length;G<V;G++)if(M[G][0]===m)return G;return-1};Token$3.prototype.attrPush=function(m){this.attrs?this.attrs.push(m):this.attrs=[m]};Token$3.prototype.attrSet=function(m,M){var G=this.attrIndex(m),V=[m,M];G<0?this.attrPush(V):this.attrs[G]=V};Token$3.prototype.attrGet=function(m){var M=this.attrIndex(m),G=null;return M>=0&&(G=this.attrs[M][1]),G};Token$3.prototype.attrJoin=function(m,M){var G=this.attrIndex(m);G<0?this.attrPush([m,M]):this.attrs[G][1]=this.attrs[G][1]+" "+M};var token=Token$3,Token$2=token;function StateCore(k,m,M){this.src=k,this.env=M,this.tokens=[],this.inlineMode=!1,this.md=m}StateCore.prototype.Token=Token$2;var state_core=StateCore,Ruler$2=ruler,_rules$2=[["normalize",normalize$1],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replacements],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler$2;for(var k=0;k<_rules$2.length;k++)this.ruler.push(_rules$2[k][0],_rules$2[k][1])}Core.prototype.process=function(k){var m,M,G;for(G=this.ruler.getRules(""),m=0,M=G.length;m<M;m++)G[m](k)};Core.prototype.State=state_core;var parser_core=Core,isSpace$a=utils$1.isSpace;function getLine(k,m){var M=k.bMarks[m]+k.tShift[m],G=k.eMarks[m];return k.src.slice(M,G)}function escapedSplit(k){var m=[],M=0,G=k.length,V,q=!1,$=0,D="";for(V=k.charCodeAt(M);M<G;)V===124&&(q?(D+=k.substring($,M-1),$=M):(m.push(D+k.substring($,M)),D="",$=M+1)),q=V===92,M++,V=k.charCodeAt(M);return m.push(D+k.substring($)),m}var table=function(m,M,G,V){var q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce;if(M+2>G||(U=M+1,m.sCount[U]<m.blkIndent)||m.sCount[U]-m.blkIndent>=4||(D=m.bMarks[U]+m.tShift[U],D>=m.eMarks[U])||(Q=m.src.charCodeAt(D++),Q!==124&&Q!==45&&Q!==58)||D>=m.eMarks[U]||(ce=m.src.charCodeAt(D++),ce!==124&&ce!==45&&ce!==58&&!isSpace$a(ce))||Q===45&&isSpace$a(ce))return!1;for(;D<m.eMarks[U];){if(q=m.src.charCodeAt(D),q!==124&&q!==45&&q!==58&&!isSpace$a(q))return!1;D++}for($=getLine(m,M+1),K=$.split("|"),ae=[],B=0;B<K.length;B++){if(ie=K[B].trim(),!ie){if(B===0||B===K.length-1)continue;return!1}if(!/^:?-+:?$/.test(ie))return!1;ie.charCodeAt(ie.length-1)===58?ae.push(ie.charCodeAt(0)===58?"center":"right"):ie.charCodeAt(0)===58?ae.push("left"):ae.push("")}if($=getLine(m,M).trim(),$.indexOf("|")===-1||m.sCount[M]-m.blkIndent>=4||(K=escapedSplit($),K.length&&K[0]===""&&K.shift(),K.length&&K[K.length-1]===""&&K.pop(),z=K.length,z===0||z!==ae.length))return!1;if(V)return!0;for(W=m.parentType,m.parentType="table",L=m.md.block.ruler.getRules("blockquote"),e=m.push("table_open","table",1),e.map=he=[M,0],e=m.push("thead_open","thead",1),e.map=[M,M+1],e=m.push("tr_open","tr",1),e.map=[M,M+1],B=0;B<K.length;B++)e=m.push("th_open","th",1),ae[B]&&(e.attrs=[["style","text-align:"+ae[B]]]),e=m.push("inline","",0),e.content=K[B].trim(),e.children=[],e=m.push("th_close","th",-1);for(e=m.push("tr_close","tr",-1),e=m.push("thead_close","thead",-1),U=M+2;U<G&&!(m.sCount[U]<m.blkIndent);U++){for(X=!1,B=0,R=L.length;B<R;B++)if(L[B](m,U,G,!0)){X=!0;break}if(X||($=getLine(m,U).trim(),!$)||m.sCount[U]-m.blkIndent>=4)break;for(K=escapedSplit($),K.length&&K[0]===""&&K.shift(),K.length&&K[K.length-1]===""&&K.pop(),U===M+2&&(e=m.push("tbody_open","tbody",1),e.map=J=[M+2,0]),e=m.push("tr_open","tr",1),e.map=[U,U+1],B=0;B<z;B++)e=m.push("td_open","td",1),ae[B]&&(e.attrs=[["style","text-align:"+ae[B]]]),e=m.push("inline","",0),e.content=K[B]?K[B].trim():"",e.children=[],e=m.push("td_close","td",-1);e=m.push("tr_close","tr",-1)}return J&&(e=m.push("tbody_close","tbody",-1),J[1]=U),e=m.push("table_close","table",-1),he[1]=U,m.parentType=W,m.line=U,!0},code=function(m,M,G){var V,q,$;if(m.sCount[M]-m.blkIndent<4)return!1;for(q=V=M+1;V<G;){if(m.isEmpty(V)){V++;continue}if(m.sCount[V]-m.blkIndent>=4){V++,q=V;continue}break}return m.line=q,$=m.push("code_block","code",0),$.content=m.getLines(M,q,4+m.blkIndent,!1)+`
`,$.map=[M,m.line],!0},fence=function(m,M,G,V){var q,$,D,B,R,U,K,z=!1,e=m.bMarks[M]+m.tShift[M],ae=m.eMarks[M];if(m.sCount[M]-m.blkIndent>=4||e+3>ae||(q=m.src.charCodeAt(e),q!==126&&q!==96)||(R=e,e=m.skipChars(e,q),$=e-R,$<3)||(K=m.src.slice(R,e),D=m.src.slice(e,ae),q===96&&D.indexOf(String.fromCharCode(q))>=0))return!1;if(V)return!0;for(B=M;B++,!(B>=G||(e=R=m.bMarks[B]+m.tShift[B],ae=m.eMarks[B],e<ae&&m.sCount[B]<m.blkIndent));)if(m.src.charCodeAt(e)===q&&!(m.sCount[B]-m.blkIndent>=4)&&(e=m.skipChars(e,q),!(e-R<$)&&(e=m.skipSpaces(e),!(e<ae)))){z=!0;break}return $=m.sCount[M],m.line=B+(z?1:0),U=m.push("fence","code",0),U.info=D,U.content=m.getLines(M+1,B,$,!0),U.markup=K,U.map=[M,m.line],!0},isSpace$9=utils$1.isSpace,blockquote=function(m,M,G,V){var q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce,de,se,oe=m.lineMax,me=m.bMarks[M]+m.tShift[M],Ee=m.eMarks[M];if(m.sCount[M]-m.blkIndent>=4||m.src.charCodeAt(me)!==62)return!1;if(V)return!0;for(ae=[],ie=[],W=[],X=[],ce=m.md.block.ruler.getRules("blockquote"),J=m.parentType,m.parentType="blockquote",z=M;z<G&&(se=m.sCount[z]<m.blkIndent,me=m.bMarks[z]+m.tShift[z],Ee=m.eMarks[z],!(me>=Ee));z++){if(m.src.charCodeAt(me++)===62&&!se){for(B=m.sCount[z]+1,m.src.charCodeAt(me)===32?(me++,B++,q=!1,L=!0):m.src.charCodeAt(me)===9?(L=!0,(m.bsCount[z]+B)%4===3?(me++,B++,q=!1):q=!0):L=!1,e=B,ae.push(m.bMarks[z]),m.bMarks[z]=me;me<Ee&&($=m.src.charCodeAt(me),isSpace$9($));){$===9?e+=4-(e+m.bsCount[z]+(q?1:0))%4:e++;me++}U=me>=Ee,ie.push(m.bsCount[z]),m.bsCount[z]=m.sCount[z]+1+(L?1:0),W.push(m.sCount[z]),m.sCount[z]=e-B,X.push(m.tShift[z]),m.tShift[z]=me-m.bMarks[z];continue}if(U)break;for(Q=!1,D=0,R=ce.length;D<R;D++)if(ce[D](m,z,G,!0)){Q=!0;break}if(Q){m.lineMax=z,m.blkIndent!==0&&(ae.push(m.bMarks[z]),ie.push(m.bsCount[z]),X.push(m.tShift[z]),W.push(m.sCount[z]),m.sCount[z]-=m.blkIndent);break}ae.push(m.bMarks[z]),ie.push(m.bsCount[z]),X.push(m.tShift[z]),W.push(m.sCount[z]),m.sCount[z]=-1}for(he=m.blkIndent,m.blkIndent=0,de=m.push("blockquote_open","blockquote",1),de.markup=">",de.map=K=[M,0],m.md.block.tokenize(m,M,z),de=m.push("blockquote_close","blockquote",-1),de.markup=">",m.lineMax=oe,m.parentType=J,K[1]=m.line,D=0;D<X.length;D++)m.bMarks[D+M]=ae[D],m.tShift[D+M]=X[D],m.sCount[D+M]=W[D],m.bsCount[D+M]=ie[D];return m.blkIndent=he,!0},isSpace$8=utils$1.isSpace,hr=function(m,M,G,V){var q,$,D,B,R=m.bMarks[M]+m.tShift[M],U=m.eMarks[M];if(m.sCount[M]-m.blkIndent>=4||(q=m.src.charCodeAt(R++),q!==42&&q!==45&&q!==95))return!1;for($=1;R<U;){if(D=m.src.charCodeAt(R++),D!==q&&!isSpace$8(D))return!1;D===q&&$++}return $<3?!1:(V||(m.line=M+1,B=m.push("hr","hr",0),B.map=[M,m.line],B.markup=Array($+1).join(String.fromCharCode(q))),!0)},isSpace$7=utils$1.isSpace;function skipBulletListMarker(k,m){var M,G,V,q;return G=k.bMarks[m]+k.tShift[m],V=k.eMarks[m],M=k.src.charCodeAt(G++),M!==42&&M!==45&&M!==43||G<V&&(q=k.src.charCodeAt(G),!isSpace$7(q))?-1:G}function skipOrderedListMarker(k,m){var M,G=k.bMarks[m]+k.tShift[m],V=G,q=k.eMarks[m];if(V+1>=q||(M=k.src.charCodeAt(V++),M<48||M>57))return-1;for(;;){if(V>=q)return-1;if(M=k.src.charCodeAt(V++),M>=48&&M<=57){if(V-G>=10)return-1;continue}if(M===41||M===46)break;return-1}return V<q&&(M=k.src.charCodeAt(V),!isSpace$7(M))?-1:V}function markTightParagraphs(k,m){var M,G,V=k.level+2;for(M=m+2,G=k.tokens.length-2;M<G;M++)k.tokens[M].level===V&&k.tokens[M].type==="paragraph_open"&&(k.tokens[M+2].hidden=!0,k.tokens[M].hidden=!0,M+=2)}var list=function(m,M,G,V){var q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce,de,se,oe,me,Ee,ke,xe,fe,ve,ye=M,Ce=!1,pe=!0;if(m.sCount[ye]-m.blkIndent>=4||m.listIndent>=0&&m.sCount[ye]-m.listIndent>=4&&m.sCount[ye]<m.blkIndent)return!1;if(V&&m.parentType==="paragraph"&&m.sCount[ye]>=m.blkIndent&&(Ce=!0),(me=skipOrderedListMarker(m,ye))>=0){if(K=!0,ke=m.bMarks[ye]+m.tShift[ye],J=Number(m.src.slice(ke,me-1)),Ce&&J!==1)return!1}else if((me=skipBulletListMarker(m,ye))>=0)K=!1;else return!1;if(Ce&&m.skipSpaces(me)>=m.eMarks[ye])return!1;if(V)return!0;for(he=m.src.charCodeAt(me-1),ie=m.tokens.length,K?(ve=m.push("ordered_list_open","ol",1),J!==1&&(ve.attrs=[["start",J]])):ve=m.push("bullet_list_open","ul",1),ve.map=ae=[ye,0],ve.markup=String.fromCharCode(he),Ee=!1,fe=m.md.block.ruler.getRules("list"),Q=m.parentType,m.parentType="list";ye<G;){for(oe=me,W=m.eMarks[ye],U=X=m.sCount[ye]+me-(m.bMarks[ye]+m.tShift[ye]);oe<W;){if(q=m.src.charCodeAt(oe),q===9)X+=4-(X+m.bsCount[ye])%4;else if(q===32)X++;else break;oe++}if($=oe,$>=W?R=1:R=X-U,R>4&&(R=1),B=U+R,ve=m.push("list_item_open","li",1),ve.markup=String.fromCharCode(he),ve.map=z=[ye,0],K&&(ve.info=m.src.slice(ke,me-1)),se=m.tight,de=m.tShift[ye],ce=m.sCount[ye],L=m.listIndent,m.listIndent=m.blkIndent,m.blkIndent=B,m.tight=!0,m.tShift[ye]=$-m.bMarks[ye],m.sCount[ye]=X,$>=W&&m.isEmpty(ye+1)?m.line=Math.min(m.line+2,G):m.md.block.tokenize(m,ye,G,!0),(!m.tight||Ee)&&(pe=!1),Ee=m.line-ye>1&&m.isEmpty(m.line-1),m.blkIndent=m.listIndent,m.listIndent=L,m.tShift[ye]=de,m.sCount[ye]=ce,m.tight=se,ve=m.push("list_item_close","li",-1),ve.markup=String.fromCharCode(he),ye=m.line,z[1]=ye,ye>=G||m.sCount[ye]<m.blkIndent||m.sCount[ye]-m.blkIndent>=4)break;for(xe=!1,D=0,e=fe.length;D<e;D++)if(fe[D](m,ye,G,!0)){xe=!0;break}if(xe)break;if(K){if(me=skipOrderedListMarker(m,ye),me<0)break;ke=m.bMarks[ye]+m.tShift[ye]}else if(me=skipBulletListMarker(m,ye),me<0)break;if(he!==m.src.charCodeAt(me-1))break}return K?ve=m.push("ordered_list_close","ol",-1):ve=m.push("bullet_list_close","ul",-1),ve.markup=String.fromCharCode(he),ae[1]=ye,m.line=ye,m.parentType=Q,pe&&markTightParagraphs(m,ie),!0},normalizeReference$2=utils$1.normalizeReference,isSpace$6=utils$1.isSpace,reference=function(m,M,G,V){var q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q=0,ce=m.bMarks[M]+m.tShift[M],de=m.eMarks[M],se=M+1;if(m.sCount[M]-m.blkIndent>=4||m.src.charCodeAt(ce)!==91)return!1;for(;++ce<de;)if(m.src.charCodeAt(ce)===93&&m.src.charCodeAt(ce-1)!==92){if(ce+1===de||m.src.charCodeAt(ce+1)!==58)return!1;break}for(B=m.lineMax,X=m.md.block.ruler.getRules("reference"),ae=m.parentType,m.parentType="reference";se<B&&!m.isEmpty(se);se++)if(!(m.sCount[se]-m.blkIndent>3)&&!(m.sCount[se]<0)){for(W=!1,U=0,K=X.length;U<K;U++)if(X[U](m,se,B,!0)){W=!0;break}if(W)break}for(J=m.getLines(M,se,m.blkIndent,!1).trim(),de=J.length,ce=1;ce<de;ce++){if(q=J.charCodeAt(ce),q===91)return!1;if(q===93){e=ce;break}else q===10?Q++:q===92&&(ce++,ce<de&&J.charCodeAt(ce)===10&&Q++)}if(e<0||J.charCodeAt(e+1)!==58)return!1;for(ce=e+2;ce<de;ce++)if(q=J.charCodeAt(ce),q===10)Q++;else if(!isSpace$6(q))break;if(ie=m.md.helpers.parseLinkDestination(J,ce,de),!ie.ok||(R=m.md.normalizeLink(ie.str),!m.md.validateLink(R)))return!1;for(ce=ie.pos,Q+=ie.lines,$=ce,D=Q,he=ce;ce<de;ce++)if(q=J.charCodeAt(ce),q===10)Q++;else if(!isSpace$6(q))break;for(ie=m.md.helpers.parseLinkTitle(J,ce,de),ce<de&&he!==ce&&ie.ok?(L=ie.str,ce=ie.pos,Q+=ie.lines):(L="",ce=$,Q=D);ce<de&&(q=J.charCodeAt(ce),!!isSpace$6(q));)ce++;if(ce<de&&J.charCodeAt(ce)!==10&&L)for(L="",ce=$,Q=D;ce<de&&(q=J.charCodeAt(ce),!!isSpace$6(q));)ce++;return ce<de&&J.charCodeAt(ce)!==10||(z=normalizeReference$2(J.slice(1,e)),!z)?!1:(V||(typeof m.env.references>"u"&&(m.env.references={}),typeof m.env.references[z]>"u"&&(m.env.references[z]={title:L,href:R}),m.parentType=ae,m.line=M+Q+1),!0)},html_blocks=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],html_re={},attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Z]+\\s+[^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+")");html_re.HTML_TAG_RE=HTML_TAG_RE$1;html_re.HTML_OPEN_CLOSE_TAG_RE=HTML_OPEN_CLOSE_TAG_RE$1;var block_names=html_blocks,HTML_OPEN_CLOSE_TAG_RE=html_re.HTML_OPEN_CLOSE_TAG_RE,HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]],html_block=function(m,M,G,V){var q,$,D,B,R=m.bMarks[M]+m.tShift[M],U=m.eMarks[M];if(m.sCount[M]-m.blkIndent>=4||!m.md.options.html||m.src.charCodeAt(R)!==60)return!1;for(B=m.src.slice(R,U),q=0;q<HTML_SEQUENCES.length&&!HTML_SEQUENCES[q][0].test(B);q++);if(q===HTML_SEQUENCES.length)return!1;if(V)return HTML_SEQUENCES[q][2];if($=M+1,!HTML_SEQUENCES[q][1].test(B)){for(;$<G&&!(m.sCount[$]<m.blkIndent);$++)if(R=m.bMarks[$]+m.tShift[$],U=m.eMarks[$],B=m.src.slice(R,U),HTML_SEQUENCES[q][1].test(B)){B.length!==0&&$++;break}}return m.line=$,D=m.push("html_block","",0),D.map=[M,$],D.content=m.getLines(M,$,m.blkIndent,!0),!0},isSpace$5=utils$1.isSpace,heading=function(m,M,G,V){var q,$,D,B,R=m.bMarks[M]+m.tShift[M],U=m.eMarks[M];if(m.sCount[M]-m.blkIndent>=4||(q=m.src.charCodeAt(R),q!==35||R>=U))return!1;for($=1,q=m.src.charCodeAt(++R);q===35&&R<U&&$<=6;)$++,q=m.src.charCodeAt(++R);return $>6||R<U&&!isSpace$5(q)?!1:(V||(U=m.skipSpacesBack(U,R),D=m.skipCharsBack(U,35,R),D>R&&isSpace$5(m.src.charCodeAt(D-1))&&(U=D),m.line=M+1,B=m.push("heading_open","h"+String($),1),B.markup="########".slice(0,$),B.map=[M,m.line],B=m.push("inline","",0),B.content=m.src.slice(R,U).trim(),B.map=[M,m.line],B.children=[],B=m.push("heading_close","h"+String($),-1),B.markup="########".slice(0,$)),!0)},lheading=function(m,M,G){var V,q,$,D,B,R,U,K,z,e=M+1,ae,ie=m.md.block.ruler.getRules("paragraph");if(m.sCount[M]-m.blkIndent>=4)return!1;for(ae=m.parentType,m.parentType="paragraph";e<G&&!m.isEmpty(e);e++)if(!(m.sCount[e]-m.blkIndent>3)){if(m.sCount[e]>=m.blkIndent&&(R=m.bMarks[e]+m.tShift[e],U=m.eMarks[e],R<U&&(z=m.src.charCodeAt(R),(z===45||z===61)&&(R=m.skipChars(R,z),R=m.skipSpaces(R),R>=U)))){K=z===61?1:2;break}if(!(m.sCount[e]<0)){for(q=!1,$=0,D=ie.length;$<D;$++)if(ie[$](m,e,G,!0)){q=!0;break}if(q)break}}return K?(V=m.getLines(M,e,m.blkIndent,!1).trim(),m.line=e+1,B=m.push("heading_open","h"+String(K),1),B.markup=String.fromCharCode(z),B.map=[M,m.line],B=m.push("inline","",0),B.content=V,B.map=[M,m.line-1],B.children=[],B=m.push("heading_close","h"+String(K),-1),B.markup=String.fromCharCode(z),m.parentType=ae,!0):!1},paragraph=function(m,M,G){var V,q,$,D,B,R,U=M+1,K=m.md.block.ruler.getRules("paragraph");for(R=m.parentType,m.parentType="paragraph";U<G&&!m.isEmpty(U);U++)if(!(m.sCount[U]-m.blkIndent>3)&&!(m.sCount[U]<0)){for(q=!1,$=0,D=K.length;$<D;$++)if(K[$](m,U,G,!0)){q=!0;break}if(q)break}return V=m.getLines(M,U,m.blkIndent,!1).trim(),m.line=U,B=m.push("paragraph_open","p",1),B.map=[M,m.line],B=m.push("inline","",0),B.content=V,B.map=[M,m.line],B.children=[],B=m.push("paragraph_close","p",-1),m.parentType=R,!0},Token$1=token,isSpace$4=utils$1.isSpace;function StateBlock(k,m,M,G){var V,q,$,D,B,R,U,K;for(this.src=k,this.md=m,this.env=M,this.tokens=G,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",q=this.src,K=!1,$=D=R=U=0,B=q.length;D<B;D++){if(V=q.charCodeAt(D),!K)if(isSpace$4(V)){R++,V===9?U+=4-U%4:U++;continue}else K=!0;(V===10||D===B-1)&&(V!==10&&D++,this.bMarks.push($),this.eMarks.push(D),this.tShift.push(R),this.sCount.push(U),this.bsCount.push(0),K=!1,R=0,U=0,$=D+1)}this.bMarks.push(q.length),this.eMarks.push(q.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(k,m,M){var G=new Token$1(k,m,M);return G.block=!0,M<0&&this.level--,G.level=this.level,M>0&&this.level++,this.tokens.push(G),G};StateBlock.prototype.isEmpty=function(m){return this.bMarks[m]+this.tShift[m]>=this.eMarks[m]};StateBlock.prototype.skipEmptyLines=function(m){for(var M=this.lineMax;m<M&&!(this.bMarks[m]+this.tShift[m]<this.eMarks[m]);m++);return m};StateBlock.prototype.skipSpaces=function(m){for(var M,G=this.src.length;m<G&&(M=this.src.charCodeAt(m),!!isSpace$4(M));m++);return m};StateBlock.prototype.skipSpacesBack=function(m,M){if(m<=M)return m;for(;m>M;)if(!isSpace$4(this.src.charCodeAt(--m)))return m+1;return m};StateBlock.prototype.skipChars=function(m,M){for(var G=this.src.length;m<G&&this.src.charCodeAt(m)===M;m++);return m};StateBlock.prototype.skipCharsBack=function(m,M,G){if(m<=G)return m;for(;m>G;)if(M!==this.src.charCodeAt(--m))return m+1;return m};StateBlock.prototype.getLines=function(m,M,G,V){var q,$,D,B,R,U,K,z=m;if(m>=M)return"";for(U=new Array(M-m),q=0;z<M;z++,q++){for($=0,K=B=this.bMarks[z],z+1<M||V?R=this.eMarks[z]+1:R=this.eMarks[z];B<R&&$<G;){if(D=this.src.charCodeAt(B),isSpace$4(D))D===9?$+=4-($+this.bsCount[z])%4:$++;else if(B-K<this.tShift[z])$++;else break;B++}$>G?U[q]=new Array($-G+1).join(" ")+this.src.slice(B,R):U[q]=this.src.slice(B,R)}return U.join("")};StateBlock.prototype.Token=Token$1;var state_block=StateBlock,Ruler$1=ruler,_rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock$1(){this.ruler=new Ruler$1;for(var k=0;k<_rules$1.length;k++)this.ruler.push(_rules$1[k][0],_rules$1[k][1],{alt:(_rules$1[k][2]||[]).slice()})}ParserBlock$1.prototype.tokenize=function(k,m,M){for(var G,V,q,$=this.ruler.getRules(""),D=$.length,B=m,R=!1,U=k.md.options.maxNesting;B<M&&(k.line=B=k.skipEmptyLines(B),!(B>=M||k.sCount[B]<k.blkIndent));){if(k.level>=U){k.line=M;break}for(q=k.line,V=0;V<D;V++)if(G=$[V](k,B,M,!1),G){if(q>=k.line)throw new Error("block rule didn't increment state.line");break}if(!G)throw new Error("none of the block rules matched");k.tight=!R,k.isEmpty(k.line-1)&&(R=!0),B=k.line,B<M&&k.isEmpty(B)&&(R=!0,B++,k.line=B)}};ParserBlock$1.prototype.parse=function(k,m,M,G){var V;k&&(V=new this.State(k,m,M,G),this.tokenize(V,V.line,V.lineMax))};ParserBlock$1.prototype.State=state_block;var parser_block=ParserBlock$1;function isTerminatorChar(k){switch(k){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var text=function(m,M){for(var G=m.pos;G<m.posMax&&!isTerminatorChar(m.src.charCodeAt(G));)G++;return G===m.pos?!1:(M||(m.pending+=m.src.slice(m.pos,G)),m.pos=G,!0)},SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,linkify=function(m,M){var G,V,q,$,D,B,R,U;return!m.md.options.linkify||m.linkLevel>0||(G=m.pos,V=m.posMax,G+3>V)||m.src.charCodeAt(G)!==58||m.src.charCodeAt(G+1)!==47||m.src.charCodeAt(G+2)!==47||(q=m.pending.match(SCHEME_RE),!q)||($=q[1],D=m.md.linkify.matchAtStart(m.src.slice(G-$.length)),!D)||(B=D.url,B.length<=$.length)||(B=B.replace(/\*+$/,""),R=m.md.normalizeLink(B),!m.md.validateLink(R))?!1:(M||(m.pending=m.pending.slice(0,-$.length),U=m.push("link_open","a",1),U.attrs=[["href",R]],U.markup="linkify",U.info="auto",U=m.push("text","",0),U.content=m.md.normalizeLinkText(B),U=m.push("link_close","a",-1),U.markup="linkify",U.info="auto"),m.pos+=B.length-$.length,!0)},isSpace$3=utils$1.isSpace,newline=function(m,M){var G,V,q,$=m.pos;if(m.src.charCodeAt($)!==10)return!1;if(G=m.pending.length-1,V=m.posMax,!M)if(G>=0&&m.pending.charCodeAt(G)===32)if(G>=1&&m.pending.charCodeAt(G-1)===32){for(q=G-1;q>=1&&m.pending.charCodeAt(q-1)===32;)q--;m.pending=m.pending.slice(0,q),m.push("hardbreak","br",0)}else m.pending=m.pending.slice(0,-1),m.push("softbreak","br",0);else m.push("softbreak","br",0);for($++;$<V&&isSpace$3(m.src.charCodeAt($));)$++;return m.pos=$,!0},isSpace$2=utils$1.isSpace,ESCAPED=[];for(var i$6=0;i$6<256;i$6++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(k){ESCAPED[k.charCodeAt(0)]=1});var _escape=function(m,M){var G,V,q,$,D,B=m.pos,R=m.posMax;if(m.src.charCodeAt(B)!==92||(B++,B>=R))return!1;if(G=m.src.charCodeAt(B),G===10){for(M||m.push("hardbreak","br",0),B++;B<R&&(G=m.src.charCodeAt(B),!!isSpace$2(G));)B++;return m.pos=B,!0}return $=m.src[B],G>=55296&&G<=56319&&B+1<R&&(V=m.src.charCodeAt(B+1),V>=56320&&V<=57343&&($+=m.src[B+1],B++)),q="\\"+$,M||(D=m.push("text_special","",0),G<256&&ESCAPED[G]!==0?D.content=$:D.content=q,D.markup=q,D.info="escape"),m.pos=B+1,!0},backticks=function(m,M){var G,V,q,$,D,B,R,U,K=m.pos,z=m.src.charCodeAt(K);if(z!==96)return!1;for(G=K,K++,V=m.posMax;K<V&&m.src.charCodeAt(K)===96;)K++;if(q=m.src.slice(G,K),R=q.length,m.backticksScanned&&(m.backticks[R]||0)<=G)return M||(m.pending+=q),m.pos+=R,!0;for(B=K;(D=m.src.indexOf("`",B))!==-1;){for(B=D+1;B<V&&m.src.charCodeAt(B)===96;)B++;if(U=B-D,U===R)return M||($=m.push("code_inline","code",0),$.markup=q,$.content=m.src.slice(K,D).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),m.pos=B,!0;m.backticks[U]=D}return m.backticksScanned=!0,M||(m.pending+=q),m.pos+=R,!0},strikethrough={};strikethrough.tokenize=function(m,M){var G,V,q,$,D,B=m.pos,R=m.src.charCodeAt(B);if(M||R!==126||(V=m.scanDelims(m.pos,!0),$=V.length,D=String.fromCharCode(R),$<2))return!1;for($%2&&(q=m.push("text","",0),q.content=D,$--),G=0;G<$;G+=2)q=m.push("text","",0),q.content=D+D,m.delimiters.push({marker:R,length:0,token:m.tokens.length-1,end:-1,open:V.can_open,close:V.can_close});return m.pos+=V.length,!0};function postProcess$1(k,m){var M,G,V,q,$,D=[],B=m.length;for(M=0;M<B;M++)V=m[M],V.marker===126&&V.end!==-1&&(q=m[V.end],$=k.tokens[V.token],$.type="s_open",$.tag="s",$.nesting=1,$.markup="~~",$.content="",$=k.tokens[q.token],$.type="s_close",$.tag="s",$.nesting=-1,$.markup="~~",$.content="",k.tokens[q.token-1].type==="text"&&k.tokens[q.token-1].content==="~"&&D.push(q.token-1));for(;D.length;){for(M=D.pop(),G=M+1;G<k.tokens.length&&k.tokens[G].type==="s_close";)G++;G--,M!==G&&($=k.tokens[G],k.tokens[G]=k.tokens[M],k.tokens[M]=$)}}strikethrough.postProcess=function(m){var M,G=m.tokens_meta,V=m.tokens_meta.length;for(postProcess$1(m,m.delimiters),M=0;M<V;M++)G[M]&&G[M].delimiters&&postProcess$1(m,G[M].delimiters)};var emphasis={};emphasis.tokenize=function(m,M){var G,V,q,$=m.pos,D=m.src.charCodeAt($);if(M||D!==95&&D!==42)return!1;for(V=m.scanDelims(m.pos,D===42),G=0;G<V.length;G++)q=m.push("text","",0),q.content=String.fromCharCode(D),m.delimiters.push({marker:D,length:V.length,token:m.tokens.length-1,end:-1,open:V.can_open,close:V.can_close});return m.pos+=V.length,!0};function postProcess(k,m){var M,G,V,q,$,D,B=m.length;for(M=B-1;M>=0;M--)G=m[M],!(G.marker!==95&&G.marker!==42)&&G.end!==-1&&(V=m[G.end],D=M>0&&m[M-1].end===G.end+1&&m[M-1].marker===G.marker&&m[M-1].token===G.token-1&&m[G.end+1].token===V.token+1,$=String.fromCharCode(G.marker),q=k.tokens[G.token],q.type=D?"strong_open":"em_open",q.tag=D?"strong":"em",q.nesting=1,q.markup=D?$+$:$,q.content="",q=k.tokens[V.token],q.type=D?"strong_close":"em_close",q.tag=D?"strong":"em",q.nesting=-1,q.markup=D?$+$:$,q.content="",D&&(k.tokens[m[M-1].token].content="",k.tokens[m[G.end+1].token].content="",M--))}emphasis.postProcess=function(m){var M,G=m.tokens_meta,V=m.tokens_meta.length;for(postProcess(m,m.delimiters),M=0;M<V;M++)G[M]&&G[M].delimiters&&postProcess(m,G[M].delimiters)};var normalizeReference$1=utils$1.normalizeReference,isSpace$1=utils$1.isSpace,link$1=function(m,M){var G,V,q,$,D,B,R,U,K,z="",e="",ae=m.pos,ie=m.posMax,he=m.pos,J=!0;if(m.src.charCodeAt(m.pos)!==91||(D=m.pos+1,$=m.md.helpers.parseLinkLabel(m,m.pos,!0),$<0))return!1;if(B=$+1,B<ie&&m.src.charCodeAt(B)===40){for(J=!1,B++;B<ie&&(V=m.src.charCodeAt(B),!(!isSpace$1(V)&&V!==10));B++);if(B>=ie)return!1;if(he=B,R=m.md.helpers.parseLinkDestination(m.src,B,m.posMax),R.ok){for(z=m.md.normalizeLink(R.str),m.md.validateLink(z)?B=R.pos:z="",he=B;B<ie&&(V=m.src.charCodeAt(B),!(!isSpace$1(V)&&V!==10));B++);if(R=m.md.helpers.parseLinkTitle(m.src,B,m.posMax),B<ie&&he!==B&&R.ok)for(e=R.str,B=R.pos;B<ie&&(V=m.src.charCodeAt(B),!(!isSpace$1(V)&&V!==10));B++);}(B>=ie||m.src.charCodeAt(B)!==41)&&(J=!0),B++}if(J){if(typeof m.env.references>"u")return!1;if(B<ie&&m.src.charCodeAt(B)===91?(he=B+1,B=m.md.helpers.parseLinkLabel(m,B),B>=0?q=m.src.slice(he,B++):B=$+1):B=$+1,q||(q=m.src.slice(D,$)),U=m.env.references[normalizeReference$1(q)],!U)return m.pos=ae,!1;z=U.href,e=U.title}return M||(m.pos=D,m.posMax=$,K=m.push("link_open","a",1),K.attrs=G=[["href",z]],e&&G.push(["title",e]),m.linkLevel++,m.md.inline.tokenize(m),m.linkLevel--,K=m.push("link_close","a",-1)),m.pos=B,m.posMax=ie,!0},normalizeReference=utils$1.normalizeReference,isSpace=utils$1.isSpace,image=function(m,M){var G,V,q,$,D,B,R,U,K,z,e,ae,ie,he="",J=m.pos,W=m.posMax;if(m.src.charCodeAt(m.pos)!==33||m.src.charCodeAt(m.pos+1)!==91||(B=m.pos+2,D=m.md.helpers.parseLinkLabel(m,m.pos+1,!1),D<0))return!1;if(R=D+1,R<W&&m.src.charCodeAt(R)===40){for(R++;R<W&&(V=m.src.charCodeAt(R),!(!isSpace(V)&&V!==10));R++);if(R>=W)return!1;for(ie=R,K=m.md.helpers.parseLinkDestination(m.src,R,m.posMax),K.ok&&(he=m.md.normalizeLink(K.str),m.md.validateLink(he)?R=K.pos:he=""),ie=R;R<W&&(V=m.src.charCodeAt(R),!(!isSpace(V)&&V!==10));R++);if(K=m.md.helpers.parseLinkTitle(m.src,R,m.posMax),R<W&&ie!==R&&K.ok)for(z=K.str,R=K.pos;R<W&&(V=m.src.charCodeAt(R),!(!isSpace(V)&&V!==10));R++);else z="";if(R>=W||m.src.charCodeAt(R)!==41)return m.pos=J,!1;R++}else{if(typeof m.env.references>"u")return!1;if(R<W&&m.src.charCodeAt(R)===91?(ie=R+1,R=m.md.helpers.parseLinkLabel(m,R),R>=0?$=m.src.slice(ie,R++):R=D+1):R=D+1,$||($=m.src.slice(B,D)),U=m.env.references[normalizeReference($)],!U)return m.pos=J,!1;he=U.href,z=U.title}return M||(q=m.src.slice(B,D),m.md.inline.parse(q,m.md,m.env,ae=[]),e=m.push("image","img",0),e.attrs=G=[["src",he],["alt",""]],e.children=ae,e.content=q,z&&G.push(["title",z])),m.pos=R,m.posMax=W,!0},EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,autolink=function(m,M){var G,V,q,$,D,B,R=m.pos;if(m.src.charCodeAt(R)!==60)return!1;for(D=m.pos,B=m.posMax;;){if(++R>=B||($=m.src.charCodeAt(R),$===60))return!1;if($===62)break}return G=m.src.slice(D+1,R),AUTOLINK_RE.test(G)?(V=m.md.normalizeLink(G),m.md.validateLink(V)?(M||(q=m.push("link_open","a",1),q.attrs=[["href",V]],q.markup="autolink",q.info="auto",q=m.push("text","",0),q.content=m.md.normalizeLinkText(G),q=m.push("link_close","a",-1),q.markup="autolink",q.info="auto"),m.pos+=G.length+2,!0):!1):EMAIL_RE.test(G)?(V=m.md.normalizeLink("mailto:"+G),m.md.validateLink(V)?(M||(q=m.push("link_open","a",1),q.attrs=[["href",V]],q.markup="autolink",q.info="auto",q=m.push("text","",0),q.content=m.md.normalizeLinkText(G),q=m.push("link_close","a",-1),q.markup="autolink",q.info="auto"),m.pos+=G.length+2,!0):!1):!1},HTML_TAG_RE=html_re.HTML_TAG_RE;function isLinkOpen(k){return/^<a[>\s]/i.test(k)}function isLinkClose(k){return/^<\/a\s*>/i.test(k)}function isLetter(k){var m=k|32;return m>=97&&m<=122}var html_inline=function(m,M){var G,V,q,$,D=m.pos;return!m.md.options.html||(q=m.posMax,m.src.charCodeAt(D)!==60||D+2>=q)||(G=m.src.charCodeAt(D+1),G!==33&&G!==63&&G!==47&&!isLetter(G))||(V=m.src.slice(D).match(HTML_TAG_RE),!V)?!1:(M||($=m.push("html_inline","",0),$.content=V[0],isLinkOpen($.content)&&m.linkLevel++,isLinkClose($.content)&&m.linkLevel--),m.pos+=V[0].length,!0)},entities=entities$1,has$2=utils$1.has,isValidEntityCode=utils$1.isValidEntityCode,fromCodePoint=utils$1.fromCodePoint,DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i,entity=function(m,M){var G,V,q,$,D=m.pos,B=m.posMax;if(m.src.charCodeAt(D)!==38||D+1>=B)return!1;if(G=m.src.charCodeAt(D+1),G===35){if(q=m.src.slice(D).match(DIGITAL_RE),q)return M||(V=q[1][0].toLowerCase()==="x"?parseInt(q[1].slice(1),16):parseInt(q[1],10),$=m.push("text_special","",0),$.content=isValidEntityCode(V)?fromCodePoint(V):fromCodePoint(65533),$.markup=q[0],$.info="entity"),m.pos+=q[0].length,!0}else if(q=m.src.slice(D).match(NAMED_RE),q&&has$2(entities,q[1]))return M||($=m.push("text_special","",0),$.content=entities[q[1]],$.markup=q[0],$.info="entity"),m.pos+=q[0].length,!0;return!1};function processDelimiters(k){var m,M,G,V,q,$,D,B,R={},U=k.length;if(U){var K=0,z=-2,e=[];for(m=0;m<U;m++)if(G=k[m],e.push(0),(k[K].marker!==G.marker||z!==G.token-1)&&(K=m),z=G.token,G.length=G.length||0,!!G.close){for(R.hasOwnProperty(G.marker)||(R[G.marker]=[-1,-1,-1,-1,-1,-1]),q=R[G.marker][(G.open?3:0)+G.length%3],M=K-e[K]-1,$=M;M>q;M-=e[M]+1)if(V=k[M],V.marker===G.marker&&V.open&&V.end<0&&(D=!1,(V.close||G.open)&&(V.length+G.length)%3===0&&(V.length%3!==0||G.length%3!==0)&&(D=!0),!D)){B=M>0&&!k[M-1].open?e[M-1]+1:0,e[m]=m-M+B,e[M]=B,G.open=!1,V.end=m,V.close=!1,$=-1,z=-2;break}$!==-1&&(R[G.marker][(G.open?3:0)+(G.length||0)%3]=$)}}}var balance_pairs=function(m){var M,G=m.tokens_meta,V=m.tokens_meta.length;for(processDelimiters(m.delimiters),M=0;M<V;M++)G[M]&&G[M].delimiters&&processDelimiters(G[M].delimiters)},fragments_join=function(m){var M,G,V=0,q=m.tokens,$=m.tokens.length;for(M=G=0;M<$;M++)q[M].nesting<0&&V--,q[M].level=V,q[M].nesting>0&&V++,q[M].type==="text"&&M+1<$&&q[M+1].type==="text"?q[M+1].content=q[M].content+q[M+1].content:(M!==G&&(q[G]=q[M]),G++);M!==G&&(q.length=G)},Token=token,isWhiteSpace=utils$1.isWhiteSpace,isPunctChar=utils$1.isPunctChar,isMdAsciiPunct=utils$1.isMdAsciiPunct;function StateInline(k,m,M,G){this.src=k,this.env=M,this.md=m,this.tokens=G,this.tokens_meta=Array(G.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){var k=new Token("text","",0);return k.content=this.pending,k.level=this.pendingLevel,this.tokens.push(k),this.pending="",k};StateInline.prototype.push=function(k,m,M){this.pending&&this.pushPending();var G=new Token(k,m,M),V=null;return M<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),G.level=this.level,M>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],V={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(G),this.tokens_meta.push(V),G};StateInline.prototype.scanDelims=function(k,m){var M=k,G,V,q,$,D,B,R,U,K,z=!0,e=!0,ae=this.posMax,ie=this.src.charCodeAt(k);for(G=k>0?this.src.charCodeAt(k-1):32;M<ae&&this.src.charCodeAt(M)===ie;)M++;return q=M-k,V=M<ae?this.src.charCodeAt(M):32,R=isMdAsciiPunct(G)||isPunctChar(String.fromCharCode(G)),K=isMdAsciiPunct(V)||isPunctChar(String.fromCharCode(V)),B=isWhiteSpace(G),U=isWhiteSpace(V),U?z=!1:K&&(B||R||(z=!1)),B?e=!1:R&&(U||K||(e=!1)),m?($=z,D=e):($=z&&(!e||R),D=e&&(!z||K)),{can_open:$,can_close:D,length:q}};StateInline.prototype.Token=Token;var state_inline=StateInline,Ruler=ruler,_rules=[["text",text],["linkify",linkify],["newline",newline],["escape",_escape],["backticks",backticks],["strikethrough",strikethrough.tokenize],["emphasis",emphasis.tokenize],["link",link$1],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",balance_pairs],["strikethrough",strikethrough.postProcess],["emphasis",emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline$1(){var k;for(this.ruler=new Ruler,k=0;k<_rules.length;k++)this.ruler.push(_rules[k][0],_rules[k][1]);for(this.ruler2=new Ruler,k=0;k<_rules2.length;k++)this.ruler2.push(_rules2[k][0],_rules2[k][1])}ParserInline$1.prototype.skipToken=function(k){var m,M,G=k.pos,V=this.ruler.getRules(""),q=V.length,$=k.md.options.maxNesting,D=k.cache;if(typeof D[G]<"u"){k.pos=D[G];return}if(k.level<$){for(M=0;M<q;M++)if(k.level++,m=V[M](k,!0),k.level--,m){if(G>=k.pos)throw new Error("inline rule didn't increment state.pos");break}}else k.pos=k.posMax;m||k.pos++,D[G]=k.pos};ParserInline$1.prototype.tokenize=function(k){for(var m,M,G,V=this.ruler.getRules(""),q=V.length,$=k.posMax,D=k.md.options.maxNesting;k.pos<$;){if(G=k.pos,k.level<D){for(M=0;M<q;M++)if(m=V[M](k,!1),m){if(G>=k.pos)throw new Error("inline rule didn't increment state.pos");break}}if(m){if(k.pos>=$)break;continue}k.pending+=k.src[k.pos++]}k.pending&&k.pushPending()};ParserInline$1.prototype.parse=function(k,m,M,G){var V,q,$,D=new this.State(k,m,M,G);for(this.tokenize(D),q=this.ruler2.getRules(""),$=q.length,V=0;V<$;V++)q[V](D)};ParserInline$1.prototype.State=state_inline;var parser_inline=ParserInline$1,re,hasRequiredRe;function requireRe(){return hasRequiredRe||(hasRequiredRe=1,re=function(k){var m={};k=k||{},m.src_Any=requireRegex$3().source,m.src_Cc=requireRegex$2().source,m.src_Z=requireRegex().source,m.src_P=regex$4.source,m.src_ZPCc=[m.src_Z,m.src_P,m.src_Cc].join("|"),m.src_ZCc=[m.src_Z,m.src_Cc].join("|");var M="[><]";return m.src_pseudo_letter="(?:(?!"+M+"|"+m.src_ZPCc+")"+m.src_Any+")",m.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",m.src_auth="(?:(?:(?!"+m.src_ZCc+"|[@/\\[\\]()]).)+@)?",m.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",m.src_host_terminator="(?=$|"+M+"|"+m.src_ZPCc+")(?!"+(k["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+m.src_ZPCc+"))",m.src_path="(?:[/?#](?:(?!"+m.src_ZCc+"|"+M+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+m.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+m.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+m.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+m.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+m.src_ZCc+"|[']).)+\\'|\\'(?="+m.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+m.src_ZCc+"|[.]|$)|"+(k["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+m.src_ZCc+"|$)|;(?!"+m.src_ZCc+"|$)|\\!+(?!"+m.src_ZCc+"|[!]|$)|\\?(?!"+m.src_ZCc+"|[?]|$))+|\\/)?",m.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',m.src_xn="xn--[a-z0-9\\-]{1,59}",m.src_domain_root="(?:"+m.src_xn+"|"+m.src_pseudo_letter+"{1,63})",m.src_domain="(?:"+m.src_xn+"|(?:"+m.src_pseudo_letter+")|(?:"+m.src_pseudo_letter+"(?:-|"+m.src_pseudo_letter+"){0,61}"+m.src_pseudo_letter+"))",m.src_host="(?:(?:(?:(?:"+m.src_domain+")\\.)*"+m.src_domain+"))",m.tpl_host_fuzzy="(?:"+m.src_ip4+"|(?:(?:(?:"+m.src_domain+")\\.)+(?:%TLDS%)))",m.tpl_host_no_ip_fuzzy="(?:(?:(?:"+m.src_domain+")\\.)+(?:%TLDS%))",m.src_host_strict=m.src_host+m.src_host_terminator,m.tpl_host_fuzzy_strict=m.tpl_host_fuzzy+m.src_host_terminator,m.src_host_port_strict=m.src_host+m.src_port+m.src_host_terminator,m.tpl_host_port_fuzzy_strict=m.tpl_host_fuzzy+m.src_port+m.src_host_terminator,m.tpl_host_port_no_ip_fuzzy_strict=m.tpl_host_no_ip_fuzzy+m.src_port+m.src_host_terminator,m.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+m.src_ZPCc+"|>|$))",m.tpl_email_fuzzy="(^|"+M+'|"|\\(|'+m.src_ZCc+")("+m.src_email_name+"@"+m.tpl_host_fuzzy_strict+")",m.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+m.src_ZPCc+"))((?![$+<=>^`|])"+m.tpl_host_port_fuzzy_strict+m.src_path+")",m.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+m.src_ZPCc+"))((?![$+<=>^`|])"+m.tpl_host_port_no_ip_fuzzy_strict+m.src_path+")",m}),re}function assign(k){var m=Array.prototype.slice.call(arguments,1);return m.forEach(function(M){M&&Object.keys(M).forEach(function(G){k[G]=M[G]})}),k}function _class(k){return Object.prototype.toString.call(k)}function isString(k){return _class(k)==="[object String]"}function isObject$1(k){return _class(k)==="[object Object]"}function isRegExp(k){return _class(k)==="[object RegExp]"}function isFunction(k){return _class(k)==="[object Function]"}function escapeRE(k){return k.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(k){return Object.keys(k||{}).reduce(function(m,M){return m||defaultOptions.hasOwnProperty(M)},!1)}var defaultSchemas={"http:":{validate:function(k,m,M){var G=k.slice(m);return M.re.http||(M.re.http=new RegExp("^\\/\\/"+M.re.src_auth+M.re.src_host_port_strict+M.re.src_path,"i")),M.re.http.test(G)?G.match(M.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(k,m,M){var G=k.slice(m);return M.re.no_http||(M.re.no_http=new RegExp("^"+M.re.src_auth+"(?:localhost|(?:(?:"+M.re.src_domain+")\\.)+"+M.re.src_domain_root+")"+M.re.src_port+M.re.src_host_terminator+M.re.src_path,"i")),M.re.no_http.test(G)?m>=3&&k[m-3]===":"||m>=3&&k[m-3]==="/"?0:G.match(M.re.no_http)[0].length:0}},"mailto:":{validate:function(k,m,M){var G=k.slice(m);return M.re.mailto||(M.re.mailto=new RegExp("^"+M.re.src_email_name+"@"+M.re.src_host_strict,"i")),M.re.mailto.test(G)?G.match(M.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(k){k.__index__=-1,k.__text_cache__=""}function createValidator(k){return function(m,M){var G=m.slice(M);return k.test(G)?G.match(k)[0].length:0}}function createNormalizer(){return function(k,m){m.normalize(k)}}function compile(k){var m=k.re=requireRe()(k.__opts__),M=k.__tlds__.slice();k.onCompile(),k.__tlds_replaced__||M.push(tlds_2ch_src_re),M.push(m.src_xn),m.src_tlds=M.join("|");function G(D){return D.replace("%TLDS%",m.src_tlds)}m.email_fuzzy=RegExp(G(m.tpl_email_fuzzy),"i"),m.link_fuzzy=RegExp(G(m.tpl_link_fuzzy),"i"),m.link_no_ip_fuzzy=RegExp(G(m.tpl_link_no_ip_fuzzy),"i"),m.host_fuzzy_test=RegExp(G(m.tpl_host_fuzzy_test),"i");var V=[];k.__compiled__={};function q(D,B){throw new Error('(LinkifyIt) Invalid schema "'+D+'": '+B)}Object.keys(k.__schemas__).forEach(function(D){var B=k.__schemas__[D];if(B!==null){var R={validate:null,link:null};if(k.__compiled__[D]=R,isObject$1(B)){isRegExp(B.validate)?R.validate=createValidator(B.validate):isFunction(B.validate)?R.validate=B.validate:q(D,B),isFunction(B.normalize)?R.normalize=B.normalize:B.normalize?q(D,B):R.normalize=createNormalizer();return}if(isString(B)){V.push(D);return}q(D,B)}}),V.forEach(function(D){k.__compiled__[k.__schemas__[D]]&&(k.__compiled__[D].validate=k.__compiled__[k.__schemas__[D]].validate,k.__compiled__[D].normalize=k.__compiled__[k.__schemas__[D]].normalize)}),k.__compiled__[""]={validate:null,normalize:createNormalizer()};var $=Object.keys(k.__compiled__).filter(function(D){return D.length>0&&k.__compiled__[D]}).map(escapeRE).join("|");k.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+m.src_ZPCc+"))("+$+")","i"),k.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+m.src_ZPCc+"))("+$+")","ig"),k.re.schema_at_start=RegExp("^"+k.re.schema_search.source,"i"),k.re.pretest=RegExp("("+k.re.schema_test.source+")|("+k.re.host_fuzzy_test.source+")|@","i"),resetScanCache(k)}function Match(k,m){var M=k.__index__,G=k.__last_index__,V=k.__text_cache__.slice(M,G);this.schema=k.__schema__.toLowerCase(),this.index=M+m,this.lastIndex=G+m,this.raw=V,this.text=V,this.url=V}function createMatch(k,m){var M=new Match(k,m);return k.__compiled__[M.schema].normalize(M,k),M}function LinkifyIt$1(k,m){if(!(this instanceof LinkifyIt$1))return new LinkifyIt$1(k,m);m||isOptionsObj(k)&&(m=k,k={}),this.__opts__=assign({},defaultOptions,m),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,k),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt$1.prototype.add=function(m,M){return this.__schemas__[m]=M,compile(this),this};LinkifyIt$1.prototype.set=function(m){return this.__opts__=assign(this.__opts__,m),this};LinkifyIt$1.prototype.test=function(m){if(this.__text_cache__=m,this.__index__=-1,!m.length)return!1;var M,G,V,q,$,D,B,R,U;if(this.re.schema_test.test(m)){for(B=this.re.schema_search,B.lastIndex=0;(M=B.exec(m))!==null;)if(q=this.testSchemaAt(m,M[2],B.lastIndex),q){this.__schema__=M[2],this.__index__=M.index+M[1].length,this.__last_index__=M.index+M[0].length+q;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(R=m.search(this.re.host_fuzzy_test),R>=0&&(this.__index__<0||R<this.__index__)&&(G=m.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&($=G.index+G[1].length,(this.__index__<0||$<this.__index__)&&(this.__schema__="",this.__index__=$,this.__last_index__=G.index+G[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(U=m.indexOf("@"),U>=0&&(V=m.match(this.re.email_fuzzy))!==null&&($=V.index+V[1].length,D=V.index+V[0].length,(this.__index__<0||$<this.__index__||$===this.__index__&&D>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=$,this.__last_index__=D))),this.__index__>=0};LinkifyIt$1.prototype.pretest=function(m){return this.re.pretest.test(m)};LinkifyIt$1.prototype.testSchemaAt=function(m,M,G){return this.__compiled__[M.toLowerCase()]?this.__compiled__[M.toLowerCase()].validate(m,G,this):0};LinkifyIt$1.prototype.match=function(m){var M=0,G=[];this.__index__>=0&&this.__text_cache__===m&&(G.push(createMatch(this,M)),M=this.__last_index__);for(var V=M?m.slice(M):m;this.test(V);)G.push(createMatch(this,M)),V=V.slice(this.__last_index__),M+=this.__last_index__;return G.length?G:null};LinkifyIt$1.prototype.matchAtStart=function(m){if(this.__text_cache__=m,this.__index__=-1,!m.length)return null;var M=this.re.schema_at_start.exec(m);if(!M)return null;var G=this.testSchemaAt(m,M[2],M[0].length);return G?(this.__schema__=M[2],this.__index__=M.index+M[1].length,this.__last_index__=M.index+M[0].length+G,createMatch(this,0)):null};LinkifyIt$1.prototype.tlds=function(m,M){return m=Array.isArray(m)?m:[m],M?(this.__tlds__=this.__tlds__.concat(m).sort().filter(function(G,V,q){return G!==q[V-1]}).reverse(),compile(this),this):(this.__tlds__=m.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt$1.prototype.normalize=function(m){m.schema||(m.url="http://"+m.url),m.schema==="mailto:"&&!/^mailto:/i.test(m.url)&&(m.url="mailto:"+m.url)};LinkifyIt$1.prototype.onCompile=function(){};var linkifyIt=LinkifyIt$1;const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor$1=Math.floor,stringFromCharCode=String.fromCharCode;function error(k){throw new RangeError(errors[k])}function map(k,m){const M=[];let G=k.length;for(;G--;)M[G]=m(k[G]);return M}function mapDomain(k,m){const M=k.split("@");let G="";M.length>1&&(G=M[0]+"@",k=M[1]),k=k.replace(regexSeparators,".");const V=k.split("."),q=map(V,m).join(".");return G+q}function ucs2decode(k){const m=[];let M=0;const G=k.length;for(;M<G;){const V=k.charCodeAt(M++);if(V>=55296&&V<=56319&&M<G){const q=k.charCodeAt(M++);(q&64512)==56320?m.push(((V&1023)<<10)+(q&1023)+65536):(m.push(V),M--)}else m.push(V)}return m}const ucs2encode=k=>String.fromCodePoint(...k),basicToDigit=function(k){return k>=48&&k<58?26+(k-48):k>=65&&k<91?k-65:k>=97&&k<123?k-97:base},digitToBasic=function(k,m){return k+22+75*(k<26)-((m!=0)<<5)},adapt=function(k,m,M){let G=0;for(k=M?floor$1(k/damp):k>>1,k+=floor$1(k/m);k>baseMinusTMin*tMax>>1;G+=base)k=floor$1(k/baseMinusTMin);return floor$1(G+(baseMinusTMin+1)*k/(k+skew))},decode=function(k){const m=[],M=k.length;let G=0,V=initialN,q=initialBias,$=k.lastIndexOf(delimiter);$<0&&($=0);for(let D=0;D<$;++D)k.charCodeAt(D)>=128&&error("not-basic"),m.push(k.charCodeAt(D));for(let D=$>0?$+1:0;D<M;){const B=G;for(let U=1,K=base;;K+=base){D>=M&&error("invalid-input");const z=basicToDigit(k.charCodeAt(D++));z>=base&&error("invalid-input"),z>floor$1((maxInt-G)/U)&&error("overflow"),G+=z*U;const e=K<=q?tMin:K>=q+tMax?tMax:K-q;if(z<e)break;const ae=base-e;U>floor$1(maxInt/ae)&&error("overflow"),U*=ae}const R=m.length+1;q=adapt(G-B,R,B==0),floor$1(G/R)>maxInt-V&&error("overflow"),V+=floor$1(G/R),G%=R,m.splice(G++,0,V)}return String.fromCodePoint(...m)},encode=function(k){const m=[];k=ucs2decode(k);const M=k.length;let G=initialN,V=0,q=initialBias;for(const B of k)B<128&&m.push(stringFromCharCode(B));const $=m.length;let D=$;for($&&m.push(delimiter);D<M;){let B=maxInt;for(const U of k)U>=G&&U<B&&(B=U);const R=D+1;B-G>floor$1((maxInt-V)/R)&&error("overflow"),V+=(B-G)*R,G=B;for(const U of k)if(U<G&&++V>maxInt&&error("overflow"),U===G){let K=V;for(let z=base;;z+=base){const e=z<=q?tMin:z>=q+tMax?tMax:z-q;if(K<e)break;const ae=K-e,ie=base-e;m.push(stringFromCharCode(digitToBasic(e+ae%ie,0))),K=floor$1(ae/ie)}m.push(stringFromCharCode(digitToBasic(K,0))),q=adapt(V,R,D===$),V=0,++D}++V,++G}return m.join("")},toUnicode=function(k){return mapDomain(k,function(m){return regexPunycode.test(m)?decode(m.slice(4).toLowerCase()):m})},toASCII=function(k){return mapDomain(k,function(m){return regexNonASCII.test(m)?"xn--"+encode(m):m})},punycode$1={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},punycode_es6=Object.freeze(Object.defineProperty({__proto__:null,decode,default:punycode$1,encode,toASCII,toUnicode,ucs2decode,ucs2encode},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(punycode_es6);var _default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero$1={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},utils=utils$1,helpers=helpers$1,Renderer=renderer,ParserCore=parser_core,ParserBlock=parser_block,ParserInline=parser_inline,LinkifyIt=linkifyIt,mdurl=mdurl$1,punycode=require$$8,config={default:_default,zero:zero$1,commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(k){var m=k.trim().toLowerCase();return BAD_PROTO_RE.test(m)?!!GOOD_DATA_RE.test(m):!0}var RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(k){var m=mdurl.parse(k,!0);if(m.hostname&&(!m.protocol||RECODE_HOSTNAME_FOR.indexOf(m.protocol)>=0))try{m.hostname=punycode.toASCII(m.hostname)}catch{}return mdurl.encode(mdurl.format(m))}function normalizeLinkText(k){var m=mdurl.parse(k,!0);if(m.hostname&&(!m.protocol||RECODE_HOSTNAME_FOR.indexOf(m.protocol)>=0))try{m.hostname=punycode.toUnicode(m.hostname)}catch{}return mdurl.decode(mdurl.format(m),mdurl.decode.defaultChars+"%")}function MarkdownIt$1(k,m){if(!(this instanceof MarkdownIt$1))return new MarkdownIt$1(k,m);m||utils.isString(k)||(m=k||{},k="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new ParserCore,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=utils.assign({},helpers),this.options={},this.configure(k),m&&this.set(m)}MarkdownIt$1.prototype.set=function(k){return utils.assign(this.options,k),this};MarkdownIt$1.prototype.configure=function(k){var m=this,M;if(utils.isString(k)&&(M=k,k=config[M],!k))throw new Error('Wrong `markdown-it` preset "'+M+'", check name');if(!k)throw new Error("Wrong `markdown-it` preset, can't be empty");return k.options&&m.set(k.options),k.components&&Object.keys(k.components).forEach(function(G){k.components[G].rules&&m[G].ruler.enableOnly(k.components[G].rules),k.components[G].rules2&&m[G].ruler2.enableOnly(k.components[G].rules2)}),this};MarkdownIt$1.prototype.enable=function(k,m){var M=[];Array.isArray(k)||(k=[k]),["core","block","inline"].forEach(function(V){M=M.concat(this[V].ruler.enable(k,!0))},this),M=M.concat(this.inline.ruler2.enable(k,!0));var G=k.filter(function(V){return M.indexOf(V)<0});if(G.length&&!m)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+G);return this};MarkdownIt$1.prototype.disable=function(k,m){var M=[];Array.isArray(k)||(k=[k]),["core","block","inline"].forEach(function(V){M=M.concat(this[V].ruler.disable(k,!0))},this),M=M.concat(this.inline.ruler2.disable(k,!0));var G=k.filter(function(V){return M.indexOf(V)<0});if(G.length&&!m)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+G);return this};MarkdownIt$1.prototype.use=function(k){var m=[this].concat(Array.prototype.slice.call(arguments,1));return k.apply(k,m),this};MarkdownIt$1.prototype.parse=function(k,m){if(typeof k!="string")throw new Error("Input data should be a String");var M=new this.core.State(k,this,m);return this.core.process(M),M.tokens};MarkdownIt$1.prototype.render=function(k,m){return m=m||{},this.renderer.render(this.parse(k,m),this.options,m)};MarkdownIt$1.prototype.parseInline=function(k,m){var M=new this.core.State(k,this,m);return M.inlineMode=!0,this.core.process(M),M.tokens};MarkdownIt$1.prototype.renderInline=function(k,m){return m=m||{},this.renderer.render(this.parseInline(k,m),this.options,m)};var lib$1=MarkdownIt$1,markdownIt=lib$1;const MarkdownIt=getDefaultExportFromCjs(markdownIt);function findFirstMatchingConfig(k,m){var M,G,V=k.attrs[k.attrIndex("href")][1];for(M=0;M<m.length;++M){if(G=m[M],typeof G.matcher=="function"){if(G.matcher(V,G))return G;continue}return G}}function applyAttributes(k,m,M){Object.keys(M).forEach(function(G){var V,q=M[G];G==="className"&&(G="class"),V=m[k].attrIndex(G),V<0?m[k].attrPush([G,q]):m[k].attrs[V][1]=q})}function markdownitLinkAttributes(k,m){m?m=Array.isArray(m)?m:[m]:m=[],Object.freeze(m);var M=k.renderer.rules.link_open||this.defaultRender;k.renderer.rules.link_open=function(G,V,q,$,D){var B=findFirstMatchingConfig(G[V],m),R=B&&B.attrs;return R&&applyAttributes(V,G,R),M(G,V,q,$,D)}}markdownitLinkAttributes.defaultRender=function(k,m,M,G,V){return V.renderToken(k,m,M)};var markdownItLinkAttributes=markdownitLinkAttributes;const mila=getDefaultExportFromCjs(markdownItLinkAttributes),_hoisted_1$j={class:"flex flex-col group w-full"},_hoisted_2$i={class:"flex flex-col items-start w-full"},_hoisted_3$h={class:"w-full"},_hoisted_4$e={key:0,class:"loading-anchor"},_hoisted_5$d={class:"flex flex-col items-start"},_hoisted_6$c={class:"w-full"},_hoisted_7$b=["innerHTML"],_hoisted_8$a={class:"text-wrap rounded-lg min-w-12 text-gray-800 dark:text-gray-400"},_hoisted_9$a={key:0},_hoisted_10$9={key:0,class:"mt-2 flex flex-wrap items-center justify-between"},_hoisted_11$8={class:"flex flex-wrap w-full"},_hoisted_12$7={class:"grid grid-cols-2 md:grid-cols-4 gap-4 my-1"},_hoisted_13$6={key:1,class:"mt-2 flex items-center justify-between"},_hoisted_14$6={class:"flex"},_hoisted_15$6={class:"grid grid-cols-2 md:grid-cols-4 gap-4 my-1"},_hoisted_16$6={key:2,class:"mt-2 flex items-center justify-between"},_hoisted_17$6={class:"flex"},_hoisted_18$6={class:"grid grid-cols-2 md:grid-cols-4 gap-4 my-1"},_hoisted_19$5={key:3,class:"mt-2 flex items-center justify-between"},_hoisted_20$5={class:"flex"},_hoisted_21$4={class:"grid grid-cols-2 md:grid-cols-4 gap-4 my-1"},_hoisted_22$4={key:4,class:"mt-2 flex items-center justify-between"},_hoisted_23$4={class:"flex"},_hoisted_24$3={class:"grid grid-cols-2 md:grid-cols-4 gap-4 my-1"},_hoisted_25$3={class:"flex opacity-0 transition-opacity duration-300 group-hover:opacity-100 text-gray-700"},_hoisted_26$3={class:"mt-1 flex"},_hoisted_27$3={class:"flex text-sm"},_hoisted_28$3={class:"flex text-sm"},_sfc_main$i=defineComponent({__name:"Image",props:{inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},model:{},drawId:{},customId:{},modelName:{}},emits:["delete","copy"],setup(k,{expose:m,emit:M}){const G=inject("onConversation"),V=computed(()=>q.fileInfo?q.fileInfo.split(","):[]);computed(()=>{try{return JSON.parse(q.customId).buttons||[]}catch{return[]}});const q=k,$=M;useMessage();const{isMobile:D}=useBasicLayout();let B;watch(()=>q.status,de=>{B!==void 0&&(clearInterval(B),B=void 0),de===2&&(B=window.setInterval(async()=>{await U.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{B!==void 0&&clearInterval(B)}),onUnmounted(()=>{clearInterval(B)});const R=ref(),U=useChatStore(),K=new MarkdownIt({linkify:!0,highlight(de,se){if(!!(se&&HighlightJS.getLanguage(se))){const me=se??"";return ae(HighlightJS.highlight(de,{language:me}).value,me)}return ae(HighlightJS.highlightAuto(de).value,"")}}),z=computed(()=>q.fileInfo);K.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),K.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const e=computed(()=>{const de=q.text??"";return q.asRawText?de:K.render(de)});function ae(de,se){return`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${se}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${se}">${de}</code></pre>`}function ie(){$("copy")}function he(){$("delete")}async function J(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`upsample::${de}`));if(oe){const me=oe.customId;await G({msg:t$3("chat.enlargeImagePrefix")+de+t$3("chat.enlargeImageSuffix"),action:"UPSCALE",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}}catch{}}async function W(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`variation::${de}`));if(oe){const me=oe.customId;await G({msg:t$3("chat.transformImagePrefix")+de+t$3("chat.transformImageSuffix"),action:"UPSCALE",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}}catch{}}async function X(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`MJ::Job::PicReader::${de}`));if(oe){const me=oe.customId;await G({msg:`绘制第 ${de}张图片`,action:"PICREADER",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}else console.error(`未找到适配的绘制任务按钮MJ::Job::PicReader::${de}`)}catch(se){console.error("提交变换绘制任务失败",se)}}async function L(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`Outpaint::${de}`));if(oe){const me=oe.customId;await G({msg:t$3("chat.expandDrawing"),action:"UPSCALE",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}}catch{}}async function Q(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`${de}`));if(oe){const me=oe.customId;await G({msg:t$3("chat.advancedTransform"),action:"UPSCALE",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}}catch{}}async function ce(de){try{let se;se=JSON.parse(q.customId);const oe=se.find(me=>me.customId.includes(`pan_${de}`));if(oe){const me=oe.customId;await G({msg:t$3("chat.translateImage"),action:"UPSCALE",drawId:q.drawId,customId:me,modelType:2,model:"midjourney",modelName:q.modelName})}}catch{}}return m({textRef:R}),(de,se)=>{var oe,me,Ee,ke,xe,fe,ve,ye,Ce,pe;return openBlock(),createElementBlock("div",_hoisted_1$j,[createBaseVNode("div",{ref_key:"textRef",ref:R,class:"leading-relaxed break-words w-full"},[createBaseVNode("div",_hoisted_2$i,[createBaseVNode("div",_hoisted_3$h,[de.status===2&&!e.value?(openBlock(),createElementBlock("span",_hoisted_4$e)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$d,[createBaseVNode("div",_hoisted_6$c,[createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":de.status===1||de.status===2||!e.value}]),innerHTML:e.value},null,10,_hoisted_7$b)])])])])],512),createBaseVNode("div",_hoisted_8$a,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",{class:"my-1 flex w-auto",style:normalizeStyle({maxWidth:unref(D)?"100%":"",maxHeight:unref(D)?"":"30vh",objectFit:"contain"})},[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(V.value,(_e,Ge)=>(openBlock(),createBlock(unref(NImage),{key:Ge,src:_e,"preview-src":_e,alt:"图片",class:"rounded-md flex mb-1 mr-4",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}},null,8,["src","preview-src"]))),128))],4)]),(oe=de.model)!=null&&oe.includes("midjourney")&&z.value&&de.status===3?(openBlock(),createElementBlock("div",_hoisted_9$a,[(me=de.customId)!=null&&me.includes("::upsample::1::")?(openBlock(),createElementBlock("div",_hoisted_10$9,[createBaseVNode("div",_hoisted_11$8,[createBaseVNode("div",_hoisted_12$7,[createBaseVNode("button",{onClick:se[0]||(se[0]=_e=>J(1)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.U1")),1),createBaseVNode("button",{onClick:se[1]||(se[1]=_e=>J(2)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.U2")),1),createBaseVNode("button",{onClick:se[2]||(se[2]=_e=>J(3)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.U3")),1),createBaseVNode("button",{onClick:se[3]||(se[3]=_e=>J(4)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.U4")),1)])])])):createCommentVNode("",!0),(Ee=de.customId)!=null&&Ee.includes("::variation::1::")?(openBlock(),createElementBlock("div",_hoisted_13$6,[createBaseVNode("div",_hoisted_14$6,[createBaseVNode("div",_hoisted_15$6,[createBaseVNode("button",{onClick:se[4]||(se[4]=_e=>W(1)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.V1")),1),createBaseVNode("button",{onClick:se[5]||(se[5]=_e=>W(2)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.V2")),1),createBaseVNode("button",{onClick:se[6]||(se[6]=_e=>W(3)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.V3")),1),createBaseVNode("button",{onClick:se[7]||(se[7]=_e=>W(4)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.V4")),1)])])])):createCommentVNode("",!0),(ke=de.customId)!=null&&ke.includes("::PicReader::")?(openBlock(),createElementBlock("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,[createBaseVNode("div",_hoisted_18$6,[createBaseVNode("button",{onClick:se[8]||(se[8]=_e=>X(1)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"}," 绘制 1⃣ "),createBaseVNode("button",{onClick:se[9]||(se[9]=_e=>X(2)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"}," 绘制 2⃣ "),createBaseVNode("button",{onClick:se[10]||(se[10]=_e=>X(3)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"}," 绘制 3⃣ "),createBaseVNode("button",{onClick:se[11]||(se[11]=_e=>X(4)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"}," 绘制 4⃣ ")])])])):createCommentVNode("",!0),(xe=de.customId)!=null&&xe.includes("::pan_left::1::")?(openBlock(),createElementBlock("div",_hoisted_19$5,[createBaseVNode("div",_hoisted_20$5,[createBaseVNode("div",_hoisted_21$4,[createBaseVNode("button",{onClick:se[12]||(se[12]=_e=>ce("left")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.panLeft")),1),createBaseVNode("button",{onClick:se[13]||(se[13]=_e=>ce("right")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.panRight")),1),createBaseVNode("button",{onClick:se[14]||(se[14]=_e=>ce("up")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.panUp")),1),createBaseVNode("button",{onClick:se[15]||(se[15]=_e=>ce("down")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.panDown")),1)])])])):createCommentVNode("",!0),(fe=de.customId)!=null&&fe.includes("Outpaint::50")?(openBlock(),createElementBlock("div",_hoisted_22$4,[createBaseVNode("div",_hoisted_23$4,[createBaseVNode("div",_hoisted_24$3,[(ve=de.customId)!=null&&ve.includes("Outpaint::50")?(openBlock(),createElementBlock("button",{key:0,onClick:se[16]||(se[16]=_e=>L(75)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.zoomIn15x")),1)):createCommentVNode("",!0),(ye=de.customId)!=null&&ye.includes("Outpaint::50")?(openBlock(),createElementBlock("button",{key:1,onClick:se[17]||(se[17]=_e=>L(50)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.zoomIn2x")),1)):createCommentVNode("",!0),(Ce=de.customId)!=null&&Ce.includes("low_variation")?(openBlock(),createElementBlock("button",{key:2,onClick:se[18]||(se[18]=_e=>Q("low")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.minorTransform")),1)):createCommentVNode("",!0),(pe=de.customId)!=null&&pe.includes("low_variation")?(openBlock(),createElementBlock("button",{key:3,onClick:se[19]||(se[19]=_e=>Q("high")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t$3)("chat.strongTransform")),1)):createCommentVNode("",!0)])])])):createCommentVNode("",!0)])):createCommentVNode("",!0)])])]),createBaseVNode("div",_hoisted_25$3,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_26$3,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:ie},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_27$3,toDisplayString(unref(t$3)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:he},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_28$3,toDisplayString(unref(t$3)("chat.delete")),1)])])])])])}}});var browser={exports:{}};/*! markmap-lib v0.14.4 | MIT License */(function(k,m){(function(M,G){G(m,katexExports)})(commonjsGlobal$1,function(M,G){function V(Y){return Y&&typeof Y=="object"&&"default"in Y?Y.default:Y}var q=V(G);function $(){return $=Object.assign?Object.assign.bind():function(Y){for(var nt=1;nt<arguments.length;nt++){var _t=arguments[nt];for(var Ct in _t)Object.prototype.hasOwnProperty.call(_t,Ct)&&(Y[Ct]=_t[Ct])}return Y},$.apply(this,arguments)}/*! markmap-common v0.14.2 | MIT License */class D{constructor(){this.listeners=[]}tap(nt){return this.listeners.push(nt),()=>this.revoke(nt)}revoke(nt){const _t=this.listeners.indexOf(nt);_t>=0&&this.listeners.splice(_t,1)}revokeAll(){this.listeners.splice(0)}call(...nt){for(const _t of this.listeners)_t(...nt)}}function B(){return B=Object.assign||function(Y){for(var nt=1;nt<arguments.length;nt++){var _t=arguments[nt];for(var Ct in _t)Object.prototype.hasOwnProperty.call(_t,Ct)&&(Y[Ct]=_t[Ct])}return Y},B.apply(this,arguments)}function R(Y,nt){if(Y==null)return{};var _t={},Ct=Object.keys(Y),Et,kt;for(kt=0;kt<Ct.length;kt++)Et=Ct[kt],!(nt.indexOf(Et)>=0)&&(_t[Et]=Y[Et]);return _t}const U=["textContent"];function K(Y){return Y.replace(/[&<"]/g,nt=>({"&":"&amp;","<":"&lt;",'"':"&quot;"})[nt])}function z(Y){return Y.replace(/<(\/script>)/g,"\\x3c$2")}function e(Y,nt){const _t=nt?Object.entries(nt).map(([Ct,Et])=>{if(!(Et==null||Et===!1))return Ct=` ${K(Ct)}`,Et===!0?Ct:`${Ct}="${K(Et)}"`}).filter(Boolean).join(""):"";return`<${Y}${_t}>`}function ae(Y){return`</${Y}>`}function ie(Y,nt,_t){return nt==null?e(Y,_t):e(Y,_t)+(nt||"")+ae(Y)}function he(Y,nt){const _t=nt.map(Ct=>typeof Ct=="function"?Ct.toString():JSON.stringify(Ct??null)).join(",");return`(${Y.toString()})(${_t})`}function J(Y,nt){return Y.map(_t=>{if(_t.type==="script"){const Ct=_t.data,{textContent:Et}=Ct,kt=R(Ct,U);return ie("script",Et||"",kt)}if(_t.type==="iife"){const{fn:Ct,getParams:Et}=_t.data;return ie("script",z(he(Ct,(Et==null?void 0:Et(nt))||[])))}return""})}function W(Y){return Y.map(nt=>nt.type==="stylesheet"?ie("link",null,B({rel:"stylesheet"},nt.data)):ie("style",nt.data))}Math.random().toString(36).slice(2,8);function X(Y,{before:nt,after:_t}){return function(...Et){const kt={args:Et,thisObj:this};try{nt&&nt(kt)}catch{}kt.result=Y.apply(kt.thisObj,kt.args);try{_t&&_t(kt)}catch{}return kt.result}}function L(Y){const nt={};return function(...Ct){const Et=`${Ct[0]}`;let kt=nt[Et];return kt||(kt={value:Y(...Ct)},nt[Et]=kt),kt.value}}function Q(Y,nt,_t){const Ct=document.createElement(Y);return nt&&Object.entries(nt).forEach(([Et,kt])=>{Ct[Et]=kt}),_t&&Object.entries(_t).forEach(([Et,kt])=>{Ct.setAttribute(Et,kt)}),Ct}const ce=L(Y=>{document.head.append(Q("link",{rel:"preload",as:"script",href:Y}))});async function de(Y,nt){if(!Y.loaded&&(Y.type==="script"&&(Y.loaded=new Promise((_t,Ct)=>{var Et;document.head.append(Q("script",B({},Y.data,{onload:_t,onerror:Ct}))),(Et=Y.data)!=null&&Et.src||_t(void 0)}).then(()=>{Y.loaded=!0})),Y.type==="iife")){const{fn:_t,getParams:Ct}=Y.data;_t(...(Ct==null?void 0:Ct(nt))||[]),Y.loaded=!0}await Y.loaded}async function se(Y,nt){const _t=Y.filter(Ct=>{var Et;return Ct.type==="script"&&((Et=Ct.data)==null?void 0:Et.src)});_t.length>1&&_t.forEach(Ct=>ce(Ct.data.src)),nt=B({getMarkmap:()=>window.markmap},nt);for(const Ct of Y)await de(Ct,nt)}const oe=`<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<!--CSS-->
</head>
<body>
<svg id="mindmap"></svg>
<!--JS-->
</body>
</html>
`,me=["https://cdn.jsdelivr.net/npm/d3@6.7.0","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4"].map(Y=>({type:"script",data:{src:Y}}));function Ee(Y,nt,_t){_t=$({baseJs:me},_t);const{scripts:Ct,styles:Et}=nt,kt=[...Et?W(Et):[]],Ut={getMarkmap:()=>window.markmap,getOptions:_t.getOptions,jsonOptions:_t.jsonOptions,root:Y},Ht=[...J([..._t.baseJs,...Ct||[],{type:"iife",data:{fn:(Sr,_r,Nr,Yr)=>{const jr=Sr();window.mm=jr.Markmap.create("svg#mindmap",(_r||jr.deriveOptions)(Yr),Nr)},getParams:({getMarkmap:Sr,getOptions:_r,root:Nr,jsonOptions:Yr})=>[Sr,_r,Nr,Yr]}}],Ut)];return oe.replace("<!--CSS-->",()=>kt.join("")).replace("<!--JS-->",()=>Ht.join(""))}var ke={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"",caps:"∩︀",caret:"",caron:"ˇ",Cayleys:"",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"",dd:"",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:"",emsp13:"",emsp14:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"",escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",ExponentialE:"",exponentiale:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",Fscr:"",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"",hfr:"𝔥",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"",Imacr:"Ī",imacr:"ī",image:"",ImaginaryI:"",imagline:"",imagpart:"",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",Lscr:"",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",Or:"⩔",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"",pointint:"⨕",Popf:"",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"",primes:"",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:"",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"",rationals:"",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"",real:"",realine:"",realpart:"",reals:"",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"",Rscr:"",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",ThickSpace:"",thinsp:"",ThinSpace:"",thkap:"≈",thksim:"",THORN:"Þ",thorn:"þ",Tilde:"",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"",vee:"",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},xe=Object.prototype.hasOwnProperty;function fe(Y,nt){return Y?xe.call(Y,nt):!1}function ve(Y){return fe(ke,Y)?ke[Y]:Y}var ye=Object.prototype.hasOwnProperty;function Ce(Y,nt){return Y?ye.call(Y,nt):!1}function pe(Y){var nt=[].slice.call(arguments,1);return nt.forEach(function(_t){if(_t){if(typeof _t!="object")throw new TypeError(_t+"must be object");Object.keys(_t).forEach(function(Ct){Y[Ct]=_t[Ct]})}}),Y}var _e=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Ge(Y){return Y.indexOf("\\")<0?Y:Y.replace(_e,"$1")}function Ae(Y){return!(Y>=55296&&Y<=57343||Y>=64976&&Y<=65007||(Y&65535)===65535||(Y&65535)===65534||Y>=0&&Y<=8||Y===11||Y>=14&&Y<=31||Y>=127&&Y<=159||Y>1114111)}function Ne(Y){if(Y>65535){Y-=65536;var nt=55296+(Y>>10),_t=56320+(Y&1023);return String.fromCharCode(nt,_t)}return String.fromCharCode(Y)}var Ze=/&([a-z#][a-z0-9]{1,31});/gi,ze=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Te(Y,nt){var _t=0,Ct=ve(nt);return nt!==Ct?Ct:nt.charCodeAt(0)===35&&ze.test(nt)&&(_t=nt[1].toLowerCase()==="x"?parseInt(nt.slice(2),16):parseInt(nt.slice(1),10),Ae(_t))?Ne(_t):Y}function Fe(Y){return Y.indexOf("&")<0?Y:Y.replace(Ze,Te)}var Pe=/[&<>"]/,we=/[&<>"]/g,Ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Be(Y){return Ie[Y]}function Ke(Y){return Pe.test(Y)?Y.replace(we,Be):Y}var Ve={};Ve.blockquote_open=function(){return`<blockquote>
`},Ve.blockquote_close=function(Y,nt){return"</blockquote>"+Le(Y,nt)},Ve.code=function(Y,nt){return Y[nt].block?"<pre><code>"+Ke(Y[nt].content)+"</code></pre>"+Le(Y,nt):"<code>"+Ke(Y[nt].content)+"</code>"},Ve.fence=function(Y,nt,_t,Ct,Et){var kt=Y[nt],Ut="",Ht=_t.langPrefix,nr="",Sr,_r,Nr;if(kt.params){if(Sr=kt.params.split(/\s+/g),_r=Sr.join(" "),Ce(Et.rules.fence_custom,Sr[0]))return Et.rules.fence_custom[Sr[0]](Y,nt,_t,Ct,Et);nr=Ke(Fe(Ge(_r))),Ut=' class="'+Ht+nr+'"'}return _t.highlight?Nr=_t.highlight.apply(_t.highlight,[kt.content].concat(Sr))||Ke(kt.content):Nr=Ke(kt.content),"<pre><code"+Ut+">"+Nr+"</code></pre>"+Le(Y,nt)},Ve.fence_custom={},Ve.heading_open=function(Y,nt){return"<h"+Y[nt].hLevel+">"},Ve.heading_close=function(Y,nt){return"</h"+Y[nt].hLevel+`>
`},Ve.hr=function(Y,nt,_t){return(_t.xhtmlOut?"<hr />":"<hr>")+Le(Y,nt)},Ve.bullet_list_open=function(){return`<ul>
`},Ve.bullet_list_close=function(Y,nt){return"</ul>"+Le(Y,nt)},Ve.list_item_open=function(){return"<li>"},Ve.list_item_close=function(){return`</li>
`},Ve.ordered_list_open=function(Y,nt){var _t=Y[nt],Ct=_t.order>1?' start="'+_t.order+'"':"";return"<ol"+Ct+`>
`},Ve.ordered_list_close=function(Y,nt){return"</ol>"+Le(Y,nt)},Ve.paragraph_open=function(Y,nt){return Y[nt].tight?"":"<p>"},Ve.paragraph_close=function(Y,nt){var _t=!(Y[nt].tight&&nt&&Y[nt-1].type==="inline"&&!Y[nt-1].content);return(Y[nt].tight?"":"</p>")+(_t?Le(Y,nt):"")},Ve.link_open=function(Y,nt,_t){var Ct=Y[nt].title?' title="'+Ke(Fe(Y[nt].title))+'"':"",Et=_t.linkTarget?' target="'+_t.linkTarget+'"':"";return'<a href="'+Ke(Y[nt].href)+'"'+Ct+Et+">"},Ve.link_close=function(){return"</a>"},Ve.image=function(Y,nt,_t){var Ct=' src="'+Ke(Y[nt].src)+'"',Et=Y[nt].title?' title="'+Ke(Fe(Y[nt].title))+'"':"",kt=' alt="'+(Y[nt].alt?Ke(Fe(Ge(Y[nt].alt))):"")+'"',Ut=_t.xhtmlOut?" /":"";return"<img"+Ct+kt+Et+Ut+">"},Ve.table_open=function(){return`<table>
`},Ve.table_close=function(){return`</table>
`},Ve.thead_open=function(){return`<thead>
`},Ve.thead_close=function(){return`</thead>
`},Ve.tbody_open=function(){return`<tbody>
`},Ve.tbody_close=function(){return`</tbody>
`},Ve.tr_open=function(){return"<tr>"},Ve.tr_close=function(){return`</tr>
`},Ve.th_open=function(Y,nt){var _t=Y[nt];return"<th"+(_t.align?' style="text-align:'+_t.align+'"':"")+">"},Ve.th_close=function(){return"</th>"},Ve.td_open=function(Y,nt){var _t=Y[nt];return"<td"+(_t.align?' style="text-align:'+_t.align+'"':"")+">"},Ve.td_close=function(){return"</td>"},Ve.strong_open=function(){return"<strong>"},Ve.strong_close=function(){return"</strong>"},Ve.em_open=function(){return"<em>"},Ve.em_close=function(){return"</em>"},Ve.del_open=function(){return"<del>"},Ve.del_close=function(){return"</del>"},Ve.ins_open=function(){return"<ins>"},Ve.ins_close=function(){return"</ins>"},Ve.mark_open=function(){return"<mark>"},Ve.mark_close=function(){return"</mark>"},Ve.sub=function(Y,nt){return"<sub>"+Ke(Y[nt].content)+"</sub>"},Ve.sup=function(Y,nt){return"<sup>"+Ke(Y[nt].content)+"</sup>"},Ve.hardbreak=function(Y,nt,_t){return _t.xhtmlOut?`<br />
`:`<br>
`},Ve.softbreak=function(Y,nt,_t){return _t.breaks?_t.xhtmlOut?`<br />
`:`<br>
`:`
`},Ve.text=function(Y,nt){return Ke(Y[nt].content)},Ve.htmlblock=function(Y,nt){return Y[nt].content},Ve.htmltag=function(Y,nt){return Y[nt].content},Ve.abbr_open=function(Y,nt){return'<abbr title="'+Ke(Fe(Y[nt].title))+'">'},Ve.abbr_close=function(){return"</abbr>"},Ve.footnote_ref=function(Y,nt){var _t=Number(Y[nt].id+1).toString(),Ct="fnref"+_t;return Y[nt].subId>0&&(Ct+=":"+Y[nt].subId),'<sup class="footnote-ref"><a href="#fn'+_t+'" id="'+Ct+'">['+_t+"]</a></sup>"},Ve.footnote_block_open=function(Y,nt,_t){var Ct=_t.xhtmlOut?`<hr class="footnotes-sep" />
`:`<hr class="footnotes-sep">
`;return Ct+`<section class="footnotes">
<ol class="footnotes-list">
`},Ve.footnote_block_close=function(){return`</ol>
</section>
`},Ve.footnote_open=function(Y,nt){var _t=Number(Y[nt].id+1).toString();return'<li id="fn'+_t+'" class="footnote-item">'},Ve.footnote_close=function(){return`</li>
`},Ve.footnote_anchor=function(Y,nt){var _t=Number(Y[nt].id+1).toString(),Ct="fnref"+_t;return Y[nt].subId>0&&(Ct+=":"+Y[nt].subId),' <a href="#'+Ct+'" class="footnote-backref">↩</a>'},Ve.dl_open=function(){return`<dl>
`},Ve.dt_open=function(){return"<dt>"},Ve.dd_open=function(){return"<dd>"},Ve.dl_close=function(){return`</dl>
`},Ve.dt_close=function(){return`</dt>
`},Ve.dd_close=function(){return`</dd>
`};function je(Y,nt){return++nt>=Y.length-2?nt:Y[nt].type==="paragraph_open"&&Y[nt].tight&&Y[nt+1].type==="inline"&&Y[nt+1].content.length===0&&Y[nt+2].type==="paragraph_close"&&Y[nt+2].tight?je(Y,nt+2):nt}var Le=Ve.getBreak=function(nt,_t){return _t=je(nt,_t),_t<nt.length&&nt[_t].type==="list_item_close"?"":`
`};function et(){this.rules=pe({},Ve),this.getBreak=Ve.getBreak}et.prototype.renderInline=function(Y,nt,_t){for(var Ct=this.rules,Et=Y.length,kt=0,Ut="";Et--;)Ut+=Ct[Y[kt].type](Y,kt++,nt,_t,this);return Ut},et.prototype.render=function(Y,nt,_t){for(var Ct=this.rules,Et=Y.length,kt=-1,Ut="";++kt<Et;)Y[kt].type==="inline"?Ut+=this.renderInline(Y[kt].children,nt,_t):Ut+=Ct[Y[kt].type](Y,kt,nt,_t,this);return Ut};function Qe(){this.__rules__=[],this.__cache__=null}Qe.prototype.__find__=function(Y){for(var nt=this.__rules__.length,_t=-1;nt--;)if(this.__rules__[++_t].name===Y)return _t;return-1},Qe.prototype.__compile__=function(){var Y=this,nt=[""];Y.__rules__.forEach(function(_t){_t.enabled&&_t.alt.forEach(function(Ct){nt.indexOf(Ct)<0&&nt.push(Ct)})}),Y.__cache__={},nt.forEach(function(_t){Y.__cache__[_t]=[],Y.__rules__.forEach(function(Ct){Ct.enabled&&(_t&&Ct.alt.indexOf(_t)<0||Y.__cache__[_t].push(Ct.fn))})})},Qe.prototype.at=function(Y,nt,_t){var Ct=this.__find__(Y),Et=_t||{};if(Ct===-1)throw new Error("Parser rule not found: "+Y);this.__rules__[Ct].fn=nt,this.__rules__[Ct].alt=Et.alt||[],this.__cache__=null},Qe.prototype.before=function(Y,nt,_t,Ct){var Et=this.__find__(Y),kt=Ct||{};if(Et===-1)throw new Error("Parser rule not found: "+Y);this.__rules__.splice(Et,0,{name:nt,enabled:!0,fn:_t,alt:kt.alt||[]}),this.__cache__=null},Qe.prototype.after=function(Y,nt,_t,Ct){var Et=this.__find__(Y),kt=Ct||{};if(Et===-1)throw new Error("Parser rule not found: "+Y);this.__rules__.splice(Et+1,0,{name:nt,enabled:!0,fn:_t,alt:kt.alt||[]}),this.__cache__=null},Qe.prototype.push=function(Y,nt,_t){var Ct=_t||{};this.__rules__.push({name:Y,enabled:!0,fn:nt,alt:Ct.alt||[]}),this.__cache__=null},Qe.prototype.enable=function(Y,nt){Y=Array.isArray(Y)?Y:[Y],nt&&this.__rules__.forEach(function(_t){_t.enabled=!1}),Y.forEach(function(_t){var Ct=this.__find__(_t);if(Ct<0)throw new Error("Rules manager: invalid rule name "+_t);this.__rules__[Ct].enabled=!0},this),this.__cache__=null},Qe.prototype.disable=function(Y){Y=Array.isArray(Y)?Y:[Y],Y.forEach(function(nt){var _t=this.__find__(nt);if(_t<0)throw new Error("Rules manager: invalid rule name "+nt);this.__rules__[_t].enabled=!1},this),this.__cache__=null},Qe.prototype.getRules=function(Y){return this.__cache__===null&&this.__compile__(),this.__cache__[Y]||[]};function Ue(Y){Y.inlineMode?Y.tokens.push({type:"inline",content:Y.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):Y.block.parse(Y.src,Y.options,Y.env,Y.tokens)}function $e(Y,nt,_t,Ct,Et){this.src=Y,this.env=Ct,this.options=_t,this.parser=nt,this.tokens=Et,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}$e.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},$e.prototype.push=function(Y){this.pending&&this.pushPending(),this.tokens.push(Y),this.pendingLevel=this.level},$e.prototype.cacheSet=function(Y,nt){for(var _t=this.cache.length;_t<=Y;_t++)this.cache.push(0);this.cache[Y]=nt},$e.prototype.cacheGet=function(Y){return Y<this.cache.length?this.cache[Y]:0};function Ye(Y,nt){var _t,Ct,Et,kt=-1,Ut=Y.posMax,Ht=Y.pos,nr=Y.isInLabel;if(Y.isInLabel)return-1;if(Y.labelUnmatchedScopes)return Y.labelUnmatchedScopes--,-1;for(Y.pos=nt+1,Y.isInLabel=!0,_t=1;Y.pos<Ut;){if(Et=Y.src.charCodeAt(Y.pos),Et===91)_t++;else if(Et===93&&(_t--,_t===0)){Ct=!0;break}Y.parser.skipToken(Y)}return Ct?(kt=Y.pos,Y.labelUnmatchedScopes=0):Y.labelUnmatchedScopes=_t-1,Y.pos=Ht,Y.isInLabel=nr,kt}function tt(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr;if(Y.charCodeAt(0)!==42||Y.charCodeAt(1)!==91||Y.indexOf("]:")===-1||(Et=new $e(Y,nt,_t,Ct,[]),kt=Ye(Et,1),kt<0||Y.charCodeAt(kt+1)!==58))return-1;for(Ht=Et.posMax,Ut=kt+2;Ut<Ht&&Et.src.charCodeAt(Ut)!==10;Ut++);return nr=Y.slice(2,kt),Sr=Y.slice(kt+2,Ut).trim(),Sr.length===0?-1:(Ct.abbreviations||(Ct.abbreviations={}),typeof Ct.abbreviations[":"+nr]>"u"&&(Ct.abbreviations[":"+nr]=Sr),Ut)}function ot(Y){var nt=Y.tokens,_t,Ct,Et,kt;if(!Y.inlineMode){for(_t=1,Ct=nt.length-1;_t<Ct;_t++)if(nt[_t-1].type==="paragraph_open"&&nt[_t].type==="inline"&&nt[_t+1].type==="paragraph_close"){for(Et=nt[_t].content;Et.length&&(kt=tt(Et,Y.inline,Y.options,Y.env),!(kt<0));)Et=Et.slice(kt).trim();nt[_t].content=Et,Et.length||(nt[_t-1].tight=!0,nt[_t+1].tight=!0)}}}function st(Y){var nt=Fe(Y);try{nt=decodeURI(nt)}catch{}return encodeURI(nt)}function dt(Y,nt){var _t,Ct,Et,kt=nt,Ut=Y.posMax;if(Y.src.charCodeAt(nt)===60){for(nt++;nt<Ut;){if(_t=Y.src.charCodeAt(nt),_t===10)return!1;if(_t===62)return Et=st(Ge(Y.src.slice(kt+1,nt))),Y.parser.validateLink(Et)?(Y.pos=nt+1,Y.linkContent=Et,!0):!1;if(_t===92&&nt+1<Ut){nt+=2;continue}nt++}return!1}for(Ct=0;nt<Ut&&(_t=Y.src.charCodeAt(nt),!(_t===32||_t<32||_t===127));){if(_t===92&&nt+1<Ut){nt+=2;continue}if(_t===40&&(Ct++,Ct>1)||_t===41&&(Ct--,Ct<0))break;nt++}return kt===nt||(Et=Ge(Y.src.slice(kt,nt)),!Y.parser.validateLink(Et))?!1:(Y.linkContent=Et,Y.pos=nt,!0)}function ct(Y,nt){var _t,Ct=nt,Et=Y.posMax,kt=Y.src.charCodeAt(nt);if(kt!==34&&kt!==39&&kt!==40)return!1;for(nt++,kt===40&&(kt=41);nt<Et;){if(_t=Y.src.charCodeAt(nt),_t===kt)return Y.pos=nt+1,Y.linkContent=Ge(Y.src.slice(Ct+1,nt)),!0;if(_t===92&&nt+1<Et){nt+=2;continue}nt++}return!1}function mt(Y){return Y.trim().replace(/\s+/g," ").toUpperCase()}function ut(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr;if(Y.charCodeAt(0)!==91||Y.indexOf("]:")===-1||(Et=new $e(Y,nt,_t,Ct,[]),kt=Ye(Et,0),kt<0||Y.charCodeAt(kt+1)!==58))return-1;for(Ht=Et.posMax,Ut=kt+2;Ut<Ht&&(nr=Et.src.charCodeAt(Ut),!(nr!==32&&nr!==10));Ut++);if(!dt(Et,Ut))return-1;for(_r=Et.linkContent,Ut=Et.pos,Sr=Ut,Ut=Ut+1;Ut<Ht&&(nr=Et.src.charCodeAt(Ut),!(nr!==32&&nr!==10));Ut++);for(Ut<Ht&&Sr!==Ut&&ct(Et,Ut)?(Nr=Et.linkContent,Ut=Et.pos):(Nr="",Ut=Sr);Ut<Ht&&Et.src.charCodeAt(Ut)===32;)Ut++;return Ut<Ht&&Et.src.charCodeAt(Ut)!==10?-1:(Yr=mt(Y.slice(1,kt)),typeof Ct.references[Yr]>"u"&&(Ct.references[Yr]={title:Nr,href:_r}),Ut)}function rt(Y){var nt=Y.tokens,_t,Ct,Et,kt;if(Y.env.references=Y.env.references||{},!Y.inlineMode){for(_t=1,Ct=nt.length-1;_t<Ct;_t++)if(nt[_t].type==="inline"&&nt[_t-1].type==="paragraph_open"&&nt[_t+1].type==="paragraph_close"){for(Et=nt[_t].content;Et.length&&(kt=ut(Et,Y.inline,Y.options,Y.env),!(kt<0));)Et=Et.slice(kt).trim();nt[_t].content=Et,Et.length||(nt[_t-1].tight=!0,nt[_t+1].tight=!0)}}}function He(Y){var nt=Y.tokens,_t,Ct,Et;for(Ct=0,Et=nt.length;Ct<Et;Ct++)_t=nt[Ct],_t.type==="inline"&&Y.inline.parse(_t.content,Y.options,Y.env,_t.children)}function Je(Y){var nt,_t,Ct,Et,kt,Ut,Ht,nr,Sr,_r=0,Nr=!1,Yr={};if(Y.env.footnotes&&(Y.tokens=Y.tokens.filter(function(jr){return jr.type==="footnote_reference_open"?(Nr=!0,nr=[],Sr=jr.label,!1):jr.type==="footnote_reference_close"?(Nr=!1,Yr[":"+Sr]=nr,!1):(Nr&&nr.push(jr),!Nr)}),!!Y.env.footnotes.list)){for(Ut=Y.env.footnotes.list,Y.tokens.push({type:"footnote_block_open",level:_r++}),nt=0,_t=Ut.length;nt<_t;nt++){for(Y.tokens.push({type:"footnote_open",id:nt,level:_r++}),Ut[nt].tokens?(Ht=[],Ht.push({type:"paragraph_open",tight:!1,level:_r++}),Ht.push({type:"inline",content:"",level:_r,children:Ut[nt].tokens}),Ht.push({type:"paragraph_close",tight:!1,level:--_r})):Ut[nt].label&&(Ht=Yr[":"+Ut[nt].label]),Y.tokens=Y.tokens.concat(Ht),Y.tokens[Y.tokens.length-1].type==="paragraph_close"?kt=Y.tokens.pop():kt=null,Et=Ut[nt].count>0?Ut[nt].count:1,Ct=0;Ct<Et;Ct++)Y.tokens.push({type:"footnote_anchor",id:nt,subId:Ct,level:_r});kt&&Y.tokens.push(kt),Y.tokens.push({type:"footnote_close",level:--_r})}Y.tokens.push({type:"footnote_block_close",level:--_r})}}var St=`
()[]'".,!?-`;function bt(Y){return Y.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function pt(Y){var nt,_t,Ct,Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr=Y.tokens;if(Y.env.abbreviations){for(Y.env.abbrRegExp||(Yr="(^|["+St.split("").map(bt).join("")+"])("+Object.keys(Y.env.abbreviations).map(function(tn){return tn.substr(1)}).sort(function(tn,hn){return hn.length-tn.length}).map(bt).join("|")+")($|["+St.split("").map(bt).join("")+"])",Y.env.abbrRegExp=new RegExp(Yr,"g")),_r=Y.env.abbrRegExp,_t=0,Ct=jr.length;_t<Ct;_t++)if(jr[_t].type==="inline"){for(Et=jr[_t].children,nt=Et.length-1;nt>=0;nt--)if(kt=Et[nt],kt.type==="text"){for(nr=0,Ut=kt.content,_r.lastIndex=0,Sr=kt.level,Ht=[];Nr=_r.exec(Ut);)_r.lastIndex>nr&&Ht.push({type:"text",content:Ut.slice(nr,Nr.index+Nr[1].length),level:Sr}),Ht.push({type:"abbr_open",title:Y.env.abbreviations[":"+Nr[2]],level:Sr++}),Ht.push({type:"text",content:Nr[2],level:Sr}),Ht.push({type:"abbr_close",level:--Sr}),nr=_r.lastIndex-Nr[3].length;Ht.length&&(nr<Ut.length&&Ht.push({type:"text",content:Ut.slice(nr),level:Sr}),jr[_t].children=Et=[].concat(Et.slice(0,nt),Ht,Et.slice(nt+1)))}}}}var wt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Pt=/\((c|tm|r|p)\)/ig,Nt={c:"©",r:"®",p:"§",tm:"™"};function Vt(Y){return Y.indexOf("(")<0?Y:Y.replace(Pt,function(nt,_t){return Nt[_t.toLowerCase()]})}function Wt(Y){var nt,_t,Ct,Et,kt;if(Y.options.typographer){for(kt=Y.tokens.length-1;kt>=0;kt--)if(Y.tokens[kt].type==="inline")for(Et=Y.tokens[kt].children,nt=Et.length-1;nt>=0;nt--)_t=Et[nt],_t.type==="text"&&(Ct=_t.content,Ct=Vt(Ct),wt.test(Ct)&&(Ct=Ct.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1$2")),_t.content=Ct)}}var Mt=/['"]/,$t=/['"]/g,Yt=/[-\s()\[\]]/,Ft="";function Jt(Y,nt){return nt<0||nt>=Y.length?!1:!Yt.test(Y[nt])}function er(Y,nt,_t){return Y.substr(0,nt)+_t+Y.substr(nt+1)}function Bt(Y){var nt,_t,Ct,Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr,tn,hn,wn,Fn;if(Y.options.typographer){for(Fn=[],hn=Y.tokens.length-1;hn>=0;hn--)if(Y.tokens[hn].type==="inline"){for(wn=Y.tokens[hn].children,Fn.length=0,nt=0;nt<wn.length;nt++)if(_t=wn[nt],!(_t.type!=="text"||Mt.test(_t.text))){for(Ht=wn[nt].level,jr=Fn.length-1;jr>=0&&!(Fn[jr].level<=Ht);jr--);Fn.length=jr+1,Ct=_t.content,kt=0,Ut=Ct.length;e:for(;kt<Ut&&($t.lastIndex=kt,Et=$t.exec(Ct),!!Et);){if(nr=!Jt(Ct,Et.index-1),kt=Et.index+1,tn=Et[0]==="'",Sr=!Jt(Ct,kt),!Sr&&!nr){tn&&(_t.content=er(_t.content,Et.index,Ft));continue}if(Nr=!Sr,Yr=!nr,Yr){for(jr=Fn.length-1;jr>=0&&(_r=Fn[jr],!(Fn[jr].level<Ht));jr--)if(_r.single===tn&&Fn[jr].level===Ht){_r=Fn[jr],tn?(wn[_r.token].content=er(wn[_r.token].content,_r.pos,Y.options.quotes[2]),_t.content=er(_t.content,Et.index,Y.options.quotes[3])):(wn[_r.token].content=er(wn[_r.token].content,_r.pos,Y.options.quotes[0]),_t.content=er(_t.content,Et.index,Y.options.quotes[1])),Fn.length=jr;continue e}}Nr?Fn.push({token:nt,pos:Et.index,single:tn,level:Ht}):Yr&&tn&&(_t.content=er(_t.content,Et.index,Ft))}}}}}var It=[["block",Ue],["abbr",ot],["references",rt],["inline",He],["footnote_tail",Je],["abbr2",pt],["replacements",Wt],["smartquotes",Bt]];function Dt(){this.options={},this.ruler=new Qe;for(var Y=0;Y<It.length;Y++)this.ruler.push(It[Y][0],It[Y][1])}Dt.prototype.process=function(Y){var nt,_t,Ct;for(Ct=this.ruler.getRules(""),nt=0,_t=Ct.length;nt<_t;nt++)Ct[nt](Y)};function Zt(Y,nt,_t,Ct,Et){var kt,Ut,Ht,nr,Sr,_r,Nr;for(this.src=Y,this.parser=nt,this.options=_t,this.env=Ct,this.tokens=Et,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",Ut=this.src,_r=0,Nr=!1,Ht=nr=_r=0,Sr=Ut.length;nr<Sr;nr++){if(kt=Ut.charCodeAt(nr),!Nr)if(kt===32){_r++;continue}else Nr=!0;(kt===10||nr===Sr-1)&&(kt!==10&&nr++,this.bMarks.push(Ht),this.eMarks.push(nr),this.tShift.push(_r),Nr=!1,_r=0,Ht=nr+1)}this.bMarks.push(Ut.length),this.eMarks.push(Ut.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}Zt.prototype.isEmpty=function(nt){return this.bMarks[nt]+this.tShift[nt]>=this.eMarks[nt]},Zt.prototype.skipEmptyLines=function(nt){for(var _t=this.lineMax;nt<_t&&!(this.bMarks[nt]+this.tShift[nt]<this.eMarks[nt]);nt++);return nt},Zt.prototype.skipSpaces=function(nt){for(var _t=this.src.length;nt<_t&&this.src.charCodeAt(nt)===32;nt++);return nt},Zt.prototype.skipChars=function(nt,_t){for(var Ct=this.src.length;nt<Ct&&this.src.charCodeAt(nt)===_t;nt++);return nt},Zt.prototype.skipCharsBack=function(nt,_t,Ct){if(nt<=Ct)return nt;for(;nt>Ct;)if(_t!==this.src.charCodeAt(--nt))return nt+1;return nt},Zt.prototype.getLines=function(nt,_t,Ct,Et){var kt,Ut,Ht,nr,Sr,_r=nt;if(nt>=_t)return"";if(_r+1===_t)return Ut=this.bMarks[_r]+Math.min(this.tShift[_r],Ct),Ht=Et?this.eMarks[_r]+1:this.eMarks[_r],this.src.slice(Ut,Ht);for(nr=new Array(_t-nt),kt=0;_r<_t;_r++,kt++)Sr=this.tShift[_r],Sr>Ct&&(Sr=Ct),Sr<0&&(Sr=0),Ut=this.bMarks[_r]+Sr,_r+1<_t||Et?Ht=this.eMarks[_r]+1:Ht=this.eMarks[_r],nr[kt]=this.src.slice(Ut,Ht);return nr.join("")};function gr(Y,nt,_t){var Ct,Et;if(Y.tShift[nt]-Y.blkIndent<4)return!1;for(Et=Ct=nt+1;Ct<_t;){if(Y.isEmpty(Ct)){Ct++;continue}if(Y.tShift[Ct]-Y.blkIndent>=4){Ct++,Et=Ct;continue}break}return Y.line=Ct,Y.tokens.push({type:"code",content:Y.getLines(nt,Et,4+Y.blkIndent,!0),block:!0,lines:[nt,Y.line],level:Y.level}),!0}function fr(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr=!1,_r=Y.bMarks[nt]+Y.tShift[nt],Nr=Y.eMarks[nt];if(_r+3>Nr||(Et=Y.src.charCodeAt(_r),Et!==126&&Et!==96)||(nr=_r,_r=Y.skipChars(_r,Et),kt=_r-nr,kt<3)||(Ut=Y.src.slice(_r,Nr).trim(),Ut.indexOf("`")>=0))return!1;if(Ct)return!0;for(Ht=nt;Ht++,!(Ht>=_t||(_r=nr=Y.bMarks[Ht]+Y.tShift[Ht],Nr=Y.eMarks[Ht],_r<Nr&&Y.tShift[Ht]<Y.blkIndent));)if(Y.src.charCodeAt(_r)===Et&&!(Y.tShift[Ht]-Y.blkIndent>=4)&&(_r=Y.skipChars(_r,Et),!(_r-nr<kt)&&(_r=Y.skipSpaces(_r),!(_r<Nr)))){Sr=!0;break}return kt=Y.tShift[nt],Y.line=Ht+(Sr?1:0),Y.tokens.push({type:"fence",params:Ut,content:Y.getLines(nt+1,Ht,kt,!0),lines:[nt,Y.line],level:Y.level}),!0}function Dr(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr,tn,hn=Y.bMarks[nt]+Y.tShift[nt],wn=Y.eMarks[nt];if(hn>wn||Y.src.charCodeAt(hn++)!==62||Y.level>=Y.options.maxNesting)return!1;if(Ct)return!0;for(Y.src.charCodeAt(hn)===32&&hn++,nr=Y.blkIndent,Y.blkIndent=0,Ht=[Y.bMarks[nt]],Y.bMarks[nt]=hn,hn=hn<wn?Y.skipSpaces(hn):hn,kt=hn>=wn,Ut=[Y.tShift[nt]],Y.tShift[nt]=hn-Y.bMarks[nt],Nr=Y.parser.ruler.getRules("blockquote"),Et=nt+1;Et<_t&&(hn=Y.bMarks[Et]+Y.tShift[Et],wn=Y.eMarks[Et],!(hn>=wn));Et++){if(Y.src.charCodeAt(hn++)===62){Y.src.charCodeAt(hn)===32&&hn++,Ht.push(Y.bMarks[Et]),Y.bMarks[Et]=hn,hn=hn<wn?Y.skipSpaces(hn):hn,kt=hn>=wn,Ut.push(Y.tShift[Et]),Y.tShift[Et]=hn-Y.bMarks[Et];continue}if(kt)break;for(tn=!1,Yr=0,jr=Nr.length;Yr<jr;Yr++)if(Nr[Yr](Y,Et,_t,!0)){tn=!0;break}if(tn)break;Ht.push(Y.bMarks[Et]),Ut.push(Y.tShift[Et]),Y.tShift[Et]=-1337}for(Sr=Y.parentType,Y.parentType="blockquote",Y.tokens.push({type:"blockquote_open",lines:_r=[nt,0],level:Y.level++}),Y.parser.tokenize(Y,nt,Et),Y.tokens.push({type:"blockquote_close",level:--Y.level}),Y.parentType=Sr,_r[1]=Y.line,Yr=0;Yr<Ut.length;Yr++)Y.bMarks[Yr+nt]=Ht[Yr],Y.tShift[Yr+nt]=Ut[Yr];return Y.blkIndent=nr,!0}function kr(Y,nt,_t,Ct){var Et,kt,Ut,Ht=Y.bMarks[nt],nr=Y.eMarks[nt];if(Ht+=Y.tShift[nt],Ht>nr||(Et=Y.src.charCodeAt(Ht++),Et!==42&&Et!==45&&Et!==95))return!1;for(kt=1;Ht<nr;){if(Ut=Y.src.charCodeAt(Ht++),Ut!==Et&&Ut!==32)return!1;Ut===Et&&kt++}return kt<3?!1:(Ct||(Y.line=nt+1,Y.tokens.push({type:"hr",lines:[nt,Y.line],level:Y.level})),!0)}function cr(Y,nt){var _t,Ct,Et;return Ct=Y.bMarks[nt]+Y.tShift[nt],Et=Y.eMarks[nt],Ct>=Et||(_t=Y.src.charCodeAt(Ct++),_t!==42&&_t!==45&&_t!==43)||Ct<Et&&Y.src.charCodeAt(Ct)!==32?-1:Ct}function Ar(Y,nt){var _t,Ct=Y.bMarks[nt]+Y.tShift[nt],Et=Y.eMarks[nt];if(Ct+1>=Et||(_t=Y.src.charCodeAt(Ct++),_t<48||_t>57))return-1;for(;;){if(Ct>=Et)return-1;if(_t=Y.src.charCodeAt(Ct++),!(_t>=48&&_t<=57)){if(_t===41||_t===46)break;return-1}}return Ct<Et&&Y.src.charCodeAt(Ct)!==32?-1:Ct}function yt(Y,nt){var _t,Ct,Et=Y.level+2;for(_t=nt+2,Ct=Y.tokens.length-2;_t<Ct;_t++)Y.tokens[_t].level===Et&&Y.tokens[_t].type==="paragraph_open"&&(Y.tokens[_t+2].tight=!0,Y.tokens[_t].tight=!0,_t+=2)}function vt(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr,tn,hn,wn,Fn,Un,qi,Wa,Qo,cl=!0,nl,Zo,ul,il;if((Nr=Ar(Y,nt))>=0)wn=!0;else if((Nr=cr(Y,nt))>=0)wn=!1;else return!1;if(Y.level>=Y.options.maxNesting)return!1;if(hn=Y.src.charCodeAt(Nr-1),Ct)return!0;for(Un=Y.tokens.length,wn?(_r=Y.bMarks[nt]+Y.tShift[nt],tn=Number(Y.src.substr(_r,Nr-_r-1)),Y.tokens.push({type:"ordered_list_open",order:tn,lines:Wa=[nt,0],level:Y.level++})):Y.tokens.push({type:"bullet_list_open",lines:Wa=[nt,0],level:Y.level++}),Et=nt,qi=!1,nl=Y.parser.ruler.getRules("list");Et<_t&&(Fn=Y.skipSpaces(Nr),Yr=Y.eMarks[Et],Fn>=Yr?jr=1:jr=Fn-Nr,jr>4&&(jr=1),jr<1&&(jr=1),kt=Nr-Y.bMarks[Et]+jr,Y.tokens.push({type:"list_item_open",lines:Qo=[nt,0],level:Y.level++}),Ht=Y.blkIndent,nr=Y.tight,Ut=Y.tShift[nt],Sr=Y.parentType,Y.tShift[nt]=Fn-Y.bMarks[nt],Y.blkIndent=kt,Y.tight=!0,Y.parentType="list",Y.parser.tokenize(Y,nt,_t,!0),(!Y.tight||qi)&&(cl=!1),qi=Y.line-nt>1&&Y.isEmpty(Y.line-1),Y.blkIndent=Ht,Y.tShift[nt]=Ut,Y.tight=nr,Y.parentType=Sr,Y.tokens.push({type:"list_item_close",level:--Y.level}),Et=nt=Y.line,Qo[1]=Et,Fn=Y.bMarks[nt],!(Et>=_t||Y.isEmpty(Et)||Y.tShift[Et]<Y.blkIndent));){for(il=!1,Zo=0,ul=nl.length;Zo<ul;Zo++)if(nl[Zo](Y,Et,_t,!0)){il=!0;break}if(il)break;if(wn){if(Nr=Ar(Y,Et),Nr<0)break}else if(Nr=cr(Y,Et),Nr<0)break;if(hn!==Y.src.charCodeAt(Nr-1))break}return Y.tokens.push({type:wn?"ordered_list_close":"bullet_list_close",level:--Y.level}),Wa[1]=Et,Y.line=Et,cl&&yt(Y,Un),!0}function Xt(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr=Y.bMarks[nt]+Y.tShift[nt],_r=Y.eMarks[nt];if(Sr+4>_r||Y.src.charCodeAt(Sr)!==91||Y.src.charCodeAt(Sr+1)!==94||Y.level>=Y.options.maxNesting)return!1;for(Ht=Sr+2;Ht<_r;Ht++){if(Y.src.charCodeAt(Ht)===32)return!1;if(Y.src.charCodeAt(Ht)===93)break}return Ht===Sr+2||Ht+1>=_r||Y.src.charCodeAt(++Ht)!==58?!1:(Ct||(Ht++,Y.env.footnotes||(Y.env.footnotes={}),Y.env.footnotes.refs||(Y.env.footnotes.refs={}),nr=Y.src.slice(Sr+2,Ht-2),Y.env.footnotes.refs[":"+nr]=-1,Y.tokens.push({type:"footnote_reference_open",label:nr,level:Y.level++}),Et=Y.bMarks[nt],kt=Y.tShift[nt],Ut=Y.parentType,Y.tShift[nt]=Y.skipSpaces(Ht)-Ht,Y.bMarks[nt]=Ht,Y.blkIndent+=4,Y.parentType="footnote",Y.tShift[nt]<Y.blkIndent&&(Y.tShift[nt]+=Y.blkIndent,Y.bMarks[nt]-=Y.blkIndent),Y.parser.tokenize(Y,nt,_t,!0),Y.parentType=Ut,Y.blkIndent-=4,Y.tShift[nt]=kt,Y.bMarks[nt]=Et,Y.tokens.push({type:"footnote_reference_close",level:--Y.level})),!0)}function At(Y,nt,_t,Ct){var Et,kt,Ut,Ht=Y.bMarks[nt]+Y.tShift[nt],nr=Y.eMarks[nt];if(Ht>=nr||(Et=Y.src.charCodeAt(Ht),Et!==35||Ht>=nr))return!1;for(kt=1,Et=Y.src.charCodeAt(++Ht);Et===35&&Ht<nr&&kt<=6;)kt++,Et=Y.src.charCodeAt(++Ht);return kt>6||Ht<nr&&Et!==32?!1:(Ct||(nr=Y.skipCharsBack(nr,32,Ht),Ut=Y.skipCharsBack(nr,35,Ht),Ut>Ht&&Y.src.charCodeAt(Ut-1)===32&&(nr=Ut),Y.line=nt+1,Y.tokens.push({type:"heading_open",hLevel:kt,lines:[nt,Y.line],level:Y.level}),Ht<nr&&Y.tokens.push({type:"inline",content:Y.src.slice(Ht,nr).trim(),level:Y.level+1,lines:[nt,Y.line],children:[]}),Y.tokens.push({type:"heading_close",hLevel:kt,level:Y.level})),!0)}function zt(Y,nt,_t){var Ct,Et,kt,Ut=nt+1;return Ut>=_t||Y.tShift[Ut]<Y.blkIndent||Y.tShift[Ut]-Y.blkIndent>3||(Et=Y.bMarks[Ut]+Y.tShift[Ut],kt=Y.eMarks[Ut],Et>=kt)||(Ct=Y.src.charCodeAt(Et),Ct!==45&&Ct!==61)||(Et=Y.skipChars(Et,Ct),Et=Y.skipSpaces(Et),Et<kt)?!1:(Et=Y.bMarks[nt]+Y.tShift[nt],Y.line=Ut+1,Y.tokens.push({type:"heading_open",hLevel:Ct===61?1:2,lines:[nt,Y.line],level:Y.level}),Y.tokens.push({type:"inline",content:Y.src.slice(Et,Y.eMarks[nt]).trim(),level:Y.level+1,lines:[nt,Y.line-1],children:[]}),Y.tokens.push({type:"heading_close",hLevel:Ct===61?1:2,level:Y.level}),!0)}var Br={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(Y){Br[Y]=!0});var br=/^<([a-zA-Z]{1,15})[\s\/>]/,Ur=/^<\/([a-zA-Z]{1,15})[\s>]/;function un(Y){var nt=Y|32;return nt>=97&&nt<=122}function sr(Y,nt,_t,Ct){var Et,kt,Ut,Ht=Y.bMarks[nt],nr=Y.eMarks[nt],Sr=Y.tShift[nt];if(Ht+=Sr,!Y.options.html||Sr>3||Ht+2>=nr||Y.src.charCodeAt(Ht)!==60)return!1;if(Et=Y.src.charCodeAt(Ht+1),Et===33||Et===63){if(Ct)return!0}else if(Et===47||un(Et)){if(Et===47){if(kt=Y.src.slice(Ht,nr).match(Ur),!kt)return!1}else if(kt=Y.src.slice(Ht,nr).match(br),!kt)return!1;if(Br[kt[1].toLowerCase()]!==!0)return!1;if(Ct)return!0}else return!1;for(Ut=nt+1;Ut<Y.lineMax&&!Y.isEmpty(Ut);)Ut++;return Y.line=Ut,Y.tokens.push({type:"htmlblock",level:Y.level,lines:[nt,Y.line],content:Y.getLines(nt,Ut,0,!0)}),!0}function ur(Y,nt){var _t=Y.bMarks[nt]+Y.blkIndent,Ct=Y.eMarks[nt];return Y.src.substr(_t,Ct-_t)}function Cr(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr,tn;if(nt+2>_t||(nr=nt+1,Y.tShift[nr]<Y.blkIndent)||(Ut=Y.bMarks[nr]+Y.tShift[nr],Ut>=Y.eMarks[nr])||(Et=Y.src.charCodeAt(Ut),Et!==124&&Et!==45&&Et!==58)||(kt=ur(Y,nt+1),!/^[-:| ]+$/.test(kt))||(Sr=kt.split("|"),Sr<=2))return!1;for(Nr=[],Ht=0;Ht<Sr.length;Ht++){if(Yr=Sr[Ht].trim(),!Yr){if(Ht===0||Ht===Sr.length-1)continue;return!1}if(!/^:?-+:?$/.test(Yr))return!1;Yr.charCodeAt(Yr.length-1)===58?Nr.push(Yr.charCodeAt(0)===58?"center":"right"):Yr.charCodeAt(0)===58?Nr.push("left"):Nr.push("")}if(kt=ur(Y,nt).trim(),kt.indexOf("|")===-1||(Sr=kt.replace(/^\||\|$/g,"").split("|"),Nr.length!==Sr.length))return!1;if(Ct)return!0;for(Y.tokens.push({type:"table_open",lines:jr=[nt,0],level:Y.level++}),Y.tokens.push({type:"thead_open",lines:[nt,nt+1],level:Y.level++}),Y.tokens.push({type:"tr_open",lines:[nt,nt+1],level:Y.level++}),Ht=0;Ht<Sr.length;Ht++)Y.tokens.push({type:"th_open",align:Nr[Ht],lines:[nt,nt+1],level:Y.level++}),Y.tokens.push({type:"inline",content:Sr[Ht].trim(),lines:[nt,nt+1],level:Y.level,children:[]}),Y.tokens.push({type:"th_close",level:--Y.level});for(Y.tokens.push({type:"tr_close",level:--Y.level}),Y.tokens.push({type:"thead_close",level:--Y.level}),Y.tokens.push({type:"tbody_open",lines:tn=[nt+2,0],level:Y.level++}),nr=nt+2;nr<_t&&!(Y.tShift[nr]<Y.blkIndent||(kt=ur(Y,nr).trim(),kt.indexOf("|")===-1));nr++){for(Sr=kt.replace(/^\||\|$/g,"").split("|"),Y.tokens.push({type:"tr_open",level:Y.level++}),Ht=0;Ht<Sr.length;Ht++)Y.tokens.push({type:"td_open",align:Nr[Ht],level:Y.level++}),_r=Sr[Ht].substring(Sr[Ht].charCodeAt(0)===124?1:0,Sr[Ht].charCodeAt(Sr[Ht].length-1)===124?Sr[Ht].length-1:Sr[Ht].length).trim(),Y.tokens.push({type:"inline",content:_r,level:Y.level,children:[]}),Y.tokens.push({type:"td_close",level:--Y.level});Y.tokens.push({type:"tr_close",level:--Y.level})}return Y.tokens.push({type:"tbody_close",level:--Y.level}),Y.tokens.push({type:"table_close",level:--Y.level}),jr[1]=tn[1]=nr,Y.line=nr,!0}function Tr(Y,nt){var _t,Ct,Et=Y.bMarks[nt]+Y.tShift[nt],kt=Y.eMarks[nt];return Et>=kt||(Ct=Y.src.charCodeAt(Et++),Ct!==126&&Ct!==58)||(_t=Y.skipSpaces(Et),Et===_t)||_t>=kt?-1:_t}function jt(Y,nt){var _t,Ct,Et=Y.level+2;for(_t=nt+2,Ct=Y.tokens.length-2;_t<Ct;_t++)Y.tokens[_t].level===Et&&Y.tokens[_t].type==="paragraph_open"&&(Y.tokens[_t+2].tight=!0,Y.tokens[_t].tight=!0,_t+=2)}function Wr(Y,nt,_t,Ct){var Et,kt,Ut,Ht,nr,Sr,_r,Nr,Yr,jr,tn,hn,wn,Fn;if(Ct)return Y.ddIndent<0?!1:Tr(Y,nt)>=0;if(_r=nt+1,Y.isEmpty(_r)&&++_r>_t||Y.tShift[_r]<Y.blkIndent||(Et=Tr(Y,_r),Et<0)||Y.level>=Y.options.maxNesting)return!1;Sr=Y.tokens.length,Y.tokens.push({type:"dl_open",lines:nr=[nt,0],level:Y.level++}),Ut=nt,kt=_r;e:for(;;){for(Fn=!0,wn=!1,Y.tokens.push({type:"dt_open",lines:[Ut,Ut],level:Y.level++}),Y.tokens.push({type:"inline",content:Y.getLines(Ut,Ut+1,Y.blkIndent,!1).trim(),level:Y.level+1,lines:[Ut,Ut],children:[]}),Y.tokens.push({type:"dt_close",level:--Y.level});;){if(Y.tokens.push({type:"dd_open",lines:Ht=[_r,0],level:Y.level++}),hn=Y.tight,Yr=Y.ddIndent,Nr=Y.blkIndent,tn=Y.tShift[kt],jr=Y.parentType,Y.blkIndent=Y.ddIndent=Y.tShift[kt]+2,Y.tShift[kt]=Et-Y.bMarks[kt],Y.tight=!0,Y.parentType="deflist",Y.parser.tokenize(Y,kt,_t,!0),(!Y.tight||wn)&&(Fn=!1),wn=Y.line-kt>1&&Y.isEmpty(Y.line-1),Y.tShift[kt]=tn,Y.tight=hn,Y.parentType=jr,Y.blkIndent=Nr,Y.ddIndent=Yr,Y.tokens.push({type:"dd_close",level:--Y.level}),Ht[1]=_r=Y.line,_r>=_t||Y.tShift[_r]<Y.blkIndent)break e;if(Et=Tr(Y,_r),Et<0)break;kt=_r}if(_r>=_t||(Ut=_r,Y.isEmpty(Ut))||Y.tShift[Ut]<Y.blkIndent||(kt=Ut+1,kt>=_t)||(Y.isEmpty(kt)&&kt++,kt>=_t)||Y.tShift[kt]<Y.blkIndent||(Et=Tr(Y,kt),Et<0))break}return Y.tokens.push({type:"dl_close",level:--Y.level}),nr[1]=_r,Y.line=_r,Fn&&jt(Y,Sr),!0}function ir(Y,nt){var _t,Ct,Et,kt,Ut,Ht=nt+1,nr;if(_t=Y.lineMax,Ht<_t&&!Y.isEmpty(Ht)){for(nr=Y.parser.ruler.getRules("paragraph");Ht<_t&&!Y.isEmpty(Ht);Ht++)if(!(Y.tShift[Ht]-Y.blkIndent>3)){for(Et=!1,kt=0,Ut=nr.length;kt<Ut;kt++)if(nr[kt](Y,Ht,_t,!0)){Et=!0;break}if(Et)break}}return Ct=Y.getLines(nt,Ht,Y.blkIndent,!1).trim(),Y.line=Ht,Ct.length&&(Y.tokens.push({type:"paragraph_open",tight:!1,lines:[nt,Y.line],level:Y.level}),Y.tokens.push({type:"inline",content:Ct,level:Y.level+1,lines:[nt,Y.line],children:[]}),Y.tokens.push({type:"paragraph_close",tight:!1,level:Y.level})),!0}var Gr=[["code",gr],["fences",fr,["paragraph","blockquote","list"]],["blockquote",Dr,["paragraph","blockquote","list"]],["hr",kr,["paragraph","blockquote","list"]],["list",vt,["paragraph","blockquote"]],["footnote",Xt,["paragraph"]],["heading",At,["paragraph","blockquote"]],["lheading",zt],["htmlblock",sr,["paragraph","blockquote"]],["table",Cr,["paragraph"]],["deflist",Wr,["paragraph"]],["paragraph",ir]];function Jr(){this.ruler=new Qe;for(var Y=0;Y<Gr.length;Y++)this.ruler.push(Gr[Y][0],Gr[Y][1],{alt:(Gr[Y][2]||[]).slice()})}Jr.prototype.tokenize=function(Y,nt,_t){for(var Ct=this.ruler.getRules(""),Et=Ct.length,kt=nt,Ut=!1,Ht,nr;kt<_t&&(Y.line=kt=Y.skipEmptyLines(kt),!(kt>=_t||Y.tShift[kt]<Y.blkIndent));){for(nr=0;nr<Et&&(Ht=Ct[nr](Y,kt,_t,!1),!Ht);nr++);if(Y.tight=!Ut,Y.isEmpty(Y.line-1)&&(Ut=!0),kt=Y.line,kt<_t&&Y.isEmpty(kt)){if(Ut=!0,kt++,kt<_t&&Y.parentType==="list"&&Y.isEmpty(kt))break;Y.line=kt}}};var Xr=/[\n\t]/g,fn=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,cn=/\u00a0/g;Jr.prototype.parse=function(Y,nt,_t,Ct){var Et,kt=0,Ut=0;if(!Y)return[];Y=Y.replace(cn," "),Y=Y.replace(fn,`
`),Y.indexOf(" ")>=0&&(Y=Y.replace(Xr,function(Ht,nr){var Sr;return Y.charCodeAt(nr)===10?(kt=nr+1,Ut=0,Ht):(Sr=" ".slice((nr-kt-Ut)%4),Ut=nr-kt+1,Sr)})),Et=new Zt(Y,this,nt,_t,Ct),this.tokenize(Et,Et.line,Et.lineMax)};function nn(Y){switch(Y){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function ar(Y,nt){for(var _t=Y.pos;_t<Y.posMax&&!nn(Y.src.charCodeAt(_t));)_t++;return _t===Y.pos?!1:(nt||(Y.pending+=Y.src.slice(Y.pos,_t)),Y.pos=_t,!0)}function xr(Y,nt){var _t,Ct,Et=Y.pos;if(Y.src.charCodeAt(Et)!==10)return!1;if(_t=Y.pending.length-1,Ct=Y.posMax,!nt)if(_t>=0&&Y.pending.charCodeAt(_t)===32)if(_t>=1&&Y.pending.charCodeAt(_t-1)===32){for(var kt=_t-2;kt>=0;kt--)if(Y.pending.charCodeAt(kt)!==32){Y.pending=Y.pending.substring(0,kt+1);break}Y.push({type:"hardbreak",level:Y.level})}else Y.pending=Y.pending.slice(0,-1),Y.push({type:"softbreak",level:Y.level});else Y.push({type:"softbreak",level:Y.level});for(Et++;Et<Ct&&Y.src.charCodeAt(Et)===32;)Et++;return Y.pos=Et,!0}for(var Lr=[],Rr=0;Rr<256;Rr++)Lr.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(Y){Lr[Y.charCodeAt(0)]=1});function Mr(Y,nt){var _t,Ct=Y.pos,Et=Y.posMax;if(Y.src.charCodeAt(Ct)!==92)return!1;if(Ct++,Ct<Et){if(_t=Y.src.charCodeAt(Ct),_t<256&&Lr[_t]!==0)return nt||(Y.pending+=Y.src[Ct]),Y.pos+=2,!0;if(_t===10){for(nt||Y.push({type:"hardbreak",level:Y.level}),Ct++;Ct<Et&&Y.src.charCodeAt(Ct)===32;)Ct++;return Y.pos=Ct,!0}}return nt||(Y.pending+="\\"),Y.pos++,!0}function an(Y,nt){var _t,Ct,Et,kt,Ut,Ht=Y.pos,nr=Y.src.charCodeAt(Ht);if(nr!==96)return!1;for(_t=Ht,Ht++,Ct=Y.posMax;Ht<Ct&&Y.src.charCodeAt(Ht)===96;)Ht++;for(Et=Y.src.slice(_t,Ht),kt=Ut=Ht;(kt=Y.src.indexOf("`",Ut))!==-1;){for(Ut=kt+1;Ut<Ct&&Y.src.charCodeAt(Ut)===96;)Ut++;if(Ut-kt===Et.length)return nt||Y.push({type:"code",content:Y.src.slice(Ht,kt).replace(/[ \n]+/g," ").trim(),block:!1,level:Y.level}),Y.pos=Ut,!0}return nt||(Y.pending+=Et),Y.pos+=Et.length,!0}function gn(Y,nt){var _t,Ct,Et,kt=Y.posMax,Ut=Y.pos,Ht,nr;if(Y.src.charCodeAt(Ut)!==126||nt||Ut+4>=kt||Y.src.charCodeAt(Ut+1)!==126||Y.level>=Y.options.maxNesting||(Ht=Ut>0?Y.src.charCodeAt(Ut-1):-1,nr=Y.src.charCodeAt(Ut+2),Ht===126)||nr===126||nr===32||nr===10)return!1;for(Ct=Ut+2;Ct<kt&&Y.src.charCodeAt(Ct)===126;)Ct++;if(Ct>Ut+3)return Y.pos+=Ct-Ut,nt||(Y.pending+=Y.src.slice(Ut,Ct)),!0;for(Y.pos=Ut+2,Et=1;Y.pos+1<kt;){if(Y.src.charCodeAt(Y.pos)===126&&Y.src.charCodeAt(Y.pos+1)===126&&(Ht=Y.src.charCodeAt(Y.pos-1),nr=Y.pos+2<kt?Y.src.charCodeAt(Y.pos+2):-1,nr!==126&&Ht!==126&&(Ht!==32&&Ht!==10?Et--:nr!==32&&nr!==10&&Et++,Et<=0))){_t=!0;break}Y.parser.skipToken(Y)}return _t?(Y.posMax=Y.pos,Y.pos=Ut+2,nt||(Y.push({type:"del_open",level:Y.level++}),Y.parser.tokenize(Y),Y.push({type:"del_close",level:--Y.level})),Y.pos=Y.posMax+2,Y.posMax=kt,!0):(Y.pos=Ut,!1)}function dn(Y,nt){var _t,Ct,Et,kt=Y.posMax,Ut=Y.pos,Ht,nr;if(Y.src.charCodeAt(Ut)!==43||nt||Ut+4>=kt||Y.src.charCodeAt(Ut+1)!==43||Y.level>=Y.options.maxNesting||(Ht=Ut>0?Y.src.charCodeAt(Ut-1):-1,nr=Y.src.charCodeAt(Ut+2),Ht===43)||nr===43||nr===32||nr===10)return!1;for(Ct=Ut+2;Ct<kt&&Y.src.charCodeAt(Ct)===43;)Ct++;if(Ct!==Ut+2)return Y.pos+=Ct-Ut,nt||(Y.pending+=Y.src.slice(Ut,Ct)),!0;for(Y.pos=Ut+2,Et=1;Y.pos+1<kt;){if(Y.src.charCodeAt(Y.pos)===43&&Y.src.charCodeAt(Y.pos+1)===43&&(Ht=Y.src.charCodeAt(Y.pos-1),nr=Y.pos+2<kt?Y.src.charCodeAt(Y.pos+2):-1,nr!==43&&Ht!==43&&(Ht!==32&&Ht!==10?Et--:nr!==32&&nr!==10&&Et++,Et<=0))){_t=!0;break}Y.parser.skipToken(Y)}return _t?(Y.posMax=Y.pos,Y.pos=Ut+2,nt||(Y.push({type:"ins_open",level:Y.level++}),Y.parser.tokenize(Y),Y.push({type:"ins_close",level:--Y.level})),Y.pos=Y.posMax+2,Y.posMax=kt,!0):(Y.pos=Ut,!1)}function pn(Y,nt){var _t,Ct,Et,kt=Y.posMax,Ut=Y.pos,Ht,nr;if(Y.src.charCodeAt(Ut)!==61||nt||Ut+4>=kt||Y.src.charCodeAt(Ut+1)!==61||Y.level>=Y.options.maxNesting||(Ht=Ut>0?Y.src.charCodeAt(Ut-1):-1,nr=Y.src.charCodeAt(Ut+2),Ht===61)||nr===61||nr===32||nr===10)return!1;for(Ct=Ut+2;Ct<kt&&Y.src.charCodeAt(Ct)===61;)Ct++;if(Ct!==Ut+2)return Y.pos+=Ct-Ut,nt||(Y.pending+=Y.src.slice(Ut,Ct)),!0;for(Y.pos=Ut+2,Et=1;Y.pos+1<kt;){if(Y.src.charCodeAt(Y.pos)===61&&Y.src.charCodeAt(Y.pos+1)===61&&(Ht=Y.src.charCodeAt(Y.pos-1),nr=Y.pos+2<kt?Y.src.charCodeAt(Y.pos+2):-1,nr!==61&&Ht!==61&&(Ht!==32&&Ht!==10?Et--:nr!==32&&nr!==10&&Et++,Et<=0))){_t=!0;break}Y.parser.skipToken(Y)}return _t?(Y.posMax=Y.pos,Y.pos=Ut+2,nt||(Y.push({type:"mark_open",level:Y.level++}),Y.parser.tokenize(Y),Y.push({type:"mark_close",level:--Y.level})),Y.pos=Y.posMax+2,Y.posMax=kt,!0):(Y.pos=Ut,!1)}function Mn(Y){return Y>=48&&Y<=57||Y>=65&&Y<=90||Y>=97&&Y<=122}function Yn(Y,nt){var _t=nt,Ct,Et,kt,Ut=!0,Ht=!0,nr=Y.posMax,Sr=Y.src.charCodeAt(nt);for(Ct=nt>0?Y.src.charCodeAt(nt-1):-1;_t<nr&&Y.src.charCodeAt(_t)===Sr;)_t++;return _t>=nr&&(Ut=!1),kt=_t-nt,kt>=4?Ut=Ht=!1:(Et=_t<nr?Y.src.charCodeAt(_t):-1,(Et===32||Et===10)&&(Ut=!1),(Ct===32||Ct===10)&&(Ht=!1),Sr===95&&(Mn(Ct)&&(Ut=!1),Mn(Et)&&(Ht=!1))),{can_open:Ut,can_close:Ht,delims:kt}}function hi(Y,nt){var _t,Ct,Et,kt,Ut,Ht,nr,Sr=Y.posMax,_r=Y.pos,Nr=Y.src.charCodeAt(_r);if(Nr!==95&&Nr!==42||nt)return!1;if(nr=Yn(Y,_r),_t=nr.delims,!nr.can_open)return Y.pos+=_t,nt||(Y.pending+=Y.src.slice(_r,Y.pos)),!0;if(Y.level>=Y.options.maxNesting)return!1;for(Y.pos=_r+_t,Ht=[_t];Y.pos<Sr;){if(Y.src.charCodeAt(Y.pos)===Nr){if(nr=Yn(Y,Y.pos),Ct=nr.delims,nr.can_close){for(kt=Ht.pop(),Ut=Ct;kt!==Ut;){if(Ut<kt){Ht.push(kt-Ut);break}if(Ut-=kt,Ht.length===0)break;Y.pos+=kt,kt=Ht.pop()}if(Ht.length===0){_t=kt,Et=!0;break}Y.pos+=Ct;continue}nr.can_open&&Ht.push(Ct),Y.pos+=Ct;continue}Y.parser.skipToken(Y)}return Et?(Y.posMax=Y.pos,Y.pos=_r+_t,nt||((_t===2||_t===3)&&Y.push({type:"strong_open",level:Y.level++}),(_t===1||_t===3)&&Y.push({type:"em_open",level:Y.level++}),Y.parser.tokenize(Y),(_t===1||_t===3)&&Y.push({type:"em_close",level:--Y.level}),(_t===2||_t===3)&&Y.push({type:"strong_close",level:--Y.level})),Y.pos=Y.posMax+_t,Y.posMax=Sr,!0):(Y.pos=_r,!1)}var Ci=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function da(Y,nt){var _t,Ct,Et=Y.posMax,kt=Y.pos;if(Y.src.charCodeAt(kt)!==126||nt||kt+2>=Et||Y.level>=Y.options.maxNesting)return!1;for(Y.pos=kt+1;Y.pos<Et;){if(Y.src.charCodeAt(Y.pos)===126){_t=!0;break}Y.parser.skipToken(Y)}return!_t||kt+1===Y.pos||(Ct=Y.src.slice(kt+1,Y.pos),Ct.match(/(^|[^\\])(\\\\)*\s/))?(Y.pos=kt,!1):(Y.posMax=Y.pos,Y.pos=kt+1,nt||Y.push({type:"sub",level:Y.level,content:Ct.replace(Ci,"$1")}),Y.pos=Y.posMax+1,Y.posMax=Et,!0)}var ra=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Ri(Y,nt){var _t,Ct,Et=Y.posMax,kt=Y.pos;if(Y.src.charCodeAt(kt)!==94||nt||kt+2>=Et||Y.level>=Y.options.maxNesting)return!1;for(Y.pos=kt+1;Y.pos<Et;){if(Y.src.charCodeAt(Y.pos)===94){_t=!0;break}Y.parser.skipToken(Y)}return!_t||kt+1===Y.pos||(Ct=Y.src.slice(kt+1,Y.pos),Ct.match(/(^|[^\\])(\\\\)*\s/))?(Y.pos=kt,!1):(Y.posMax=Y.pos,Y.pos=kt+1,nt||Y.push({type:"sup",level:Y.level,content:Ct.replace(ra,"$1")}),Y.pos=Y.posMax+1,Y.posMax=Et,!0)}function oi(Y,nt){var _t,Ct,Et,kt,Ut,Ht,nr,Sr,_r=!1,Nr=Y.pos,Yr=Y.posMax,jr=Y.pos,tn=Y.src.charCodeAt(jr);if(tn===33&&(_r=!0,tn=Y.src.charCodeAt(++jr)),tn!==91||Y.level>=Y.options.maxNesting||(_t=jr+1,Ct=Ye(Y,jr),Ct<0))return!1;if(Ht=Ct+1,Ht<Yr&&Y.src.charCodeAt(Ht)===40){for(Ht++;Ht<Yr&&(Sr=Y.src.charCodeAt(Ht),!(Sr!==32&&Sr!==10));Ht++);if(Ht>=Yr)return!1;for(jr=Ht,dt(Y,Ht)?(kt=Y.linkContent,Ht=Y.pos):kt="",jr=Ht;Ht<Yr&&(Sr=Y.src.charCodeAt(Ht),!(Sr!==32&&Sr!==10));Ht++);if(Ht<Yr&&jr!==Ht&&ct(Y,Ht))for(Ut=Y.linkContent,Ht=Y.pos;Ht<Yr&&(Sr=Y.src.charCodeAt(Ht),!(Sr!==32&&Sr!==10));Ht++);else Ut="";if(Ht>=Yr||Y.src.charCodeAt(Ht)!==41)return Y.pos=Nr,!1;Ht++}else{if(Y.linkLevel>0)return!1;for(;Ht<Yr&&(Sr=Y.src.charCodeAt(Ht),!(Sr!==32&&Sr!==10));Ht++);if(Ht<Yr&&Y.src.charCodeAt(Ht)===91&&(jr=Ht+1,Ht=Ye(Y,Ht),Ht>=0?Et=Y.src.slice(jr,Ht++):Ht=jr-1),Et||(typeof Et>"u"&&(Ht=Ct+1),Et=Y.src.slice(_t,Ct)),nr=Y.env.references[mt(Et)],!nr)return Y.pos=Nr,!1;kt=nr.href,Ut=nr.title}return nt||(Y.pos=_t,Y.posMax=Ct,_r?Y.push({type:"image",src:kt,title:Ut,alt:Y.src.substr(_t,Ct-_t),level:Y.level}):(Y.push({type:"link_open",href:kt,title:Ut,level:Y.level++}),Y.linkLevel++,Y.parser.tokenize(Y),Y.linkLevel--,Y.push({type:"link_close",level:--Y.level}))),Y.pos=Ht,Y.posMax=Yr,!0}function mi(Y,nt){var _t,Ct,Et,kt,Ut=Y.posMax,Ht=Y.pos;return Ht+2>=Ut||Y.src.charCodeAt(Ht)!==94||Y.src.charCodeAt(Ht+1)!==91||Y.level>=Y.options.maxNesting||(_t=Ht+2,Ct=Ye(Y,Ht+1),Ct<0)?!1:(nt||(Y.env.footnotes||(Y.env.footnotes={}),Y.env.footnotes.list||(Y.env.footnotes.list=[]),Et=Y.env.footnotes.list.length,Y.pos=_t,Y.posMax=Ct,Y.push({type:"footnote_ref",id:Et,level:Y.level}),Y.linkLevel++,kt=Y.tokens.length,Y.parser.tokenize(Y),Y.env.footnotes.list[Et]={tokens:Y.tokens.splice(kt)},Y.linkLevel--),Y.pos=Ct+1,Y.posMax=Ut,!0)}function Ia(Y,nt){var _t,Ct,Et,kt,Ut=Y.posMax,Ht=Y.pos;if(Ht+3>Ut||!Y.env.footnotes||!Y.env.footnotes.refs||Y.src.charCodeAt(Ht)!==91||Y.src.charCodeAt(Ht+1)!==94||Y.level>=Y.options.maxNesting)return!1;for(Ct=Ht+2;Ct<Ut;Ct++){if(Y.src.charCodeAt(Ct)===32||Y.src.charCodeAt(Ct)===10)return!1;if(Y.src.charCodeAt(Ct)===93)break}return Ct===Ht+2||Ct>=Ut||(Ct++,_t=Y.src.slice(Ht+2,Ct-1),typeof Y.env.footnotes.refs[":"+_t]>"u")?!1:(nt||(Y.env.footnotes.list||(Y.env.footnotes.list=[]),Y.env.footnotes.refs[":"+_t]<0?(Et=Y.env.footnotes.list.length,Y.env.footnotes.list[Et]={label:_t,count:0},Y.env.footnotes.refs[":"+_t]=Et):Et=Y.env.footnotes.refs[":"+_t],kt=Y.env.footnotes.list[Et].count,Y.env.footnotes.list[Et].count++,Y.push({type:"footnote_ref",id:Et,subId:kt,level:Y.level})),Y.pos=Ct,Y.posMax=Ut,!0)}var ha=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],ka=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,na=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Fi(Y,nt){var _t,Ct,Et,kt,Ut,Ht=Y.pos;return Y.src.charCodeAt(Ht)!==60||(_t=Y.src.slice(Ht),_t.indexOf(">")<0)?!1:(Ct=_t.match(na),Ct?ha.indexOf(Ct[1].toLowerCase())<0||(kt=Ct[0].slice(1,-1),Ut=st(kt),!Y.parser.validateLink(kt))?!1:(nt||(Y.push({type:"link_open",href:Ut,level:Y.level}),Y.push({type:"text",content:kt,level:Y.level+1}),Y.push({type:"link_close",level:Y.level})),Y.pos+=Ct[0].length,!0):(Et=_t.match(ka),Et?(kt=Et[0].slice(1,-1),Ut=st("mailto:"+kt),Y.parser.validateLink(Ut)?(nt||(Y.push({type:"link_open",href:Ut,level:Y.level}),Y.push({type:"text",content:kt,level:Y.level+1}),Y.push({type:"link_close",level:Y.level})),Y.pos+=Et[0].length,!0):!1):!1))}function Zn(Y,nt){return Y=Y.source,nt=nt||"",function _t(Ct,Et){return Ct?(Et=Et.source||Et,Y=Y.replace(Ct,Et),_t):new RegExp(Y,nt)}}var ia=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Oa=/[^"'=<>`\x00-\x20]+/,aa=/'[^']*'/,Ii=/"[^"]*"/,fa=Zn(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Oa)("single_quoted",aa)("double_quoted",Ii)(),Na=Zn(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",ia)("attr_value",fa)(),pa=Zn(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Na)(),Vi=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,ki=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,ma=/<[?].*?[?]>/,sa=/<![A-Z]+\s+[^>]*>/,oa=/<!\[CDATA\[[\s\S]*?\]\]>/,Ir=Zn(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",pa)("close_tag",Vi)("comment",ki)("processing",ma)("declaration",sa)("cdata",oa)();function $n(Y){var nt=Y|32;return nt>=97&&nt<=122}function Ai(Y,nt){var _t,Ct,Et,kt=Y.pos;return!Y.options.html||(Et=Y.posMax,Y.src.charCodeAt(kt)!==60||kt+2>=Et)||(_t=Y.src.charCodeAt(kt+1),_t!==33&&_t!==63&&_t!==47&&!$n(_t))||(Ct=Y.src.slice(kt).match(Ir),!Ct)?!1:(nt||Y.push({type:"htmltag",content:Y.src.slice(kt,kt+Ct[0].length),level:Y.level}),Y.pos+=Ct[0].length,!0)}var Oi=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,ga=/^&([a-z][a-z0-9]{1,31});/i;function Er(Y,nt){var _t,Ct,Et,kt=Y.pos,Ut=Y.posMax;if(Y.src.charCodeAt(kt)!==38)return!1;if(kt+1<Ut){if(_t=Y.src.charCodeAt(kt+1),_t===35){if(Et=Y.src.slice(kt).match(Oi),Et)return nt||(Ct=Et[1][0].toLowerCase()==="x"?parseInt(Et[1].slice(1),16):parseInt(Et[1],10),Y.pending+=Ae(Ct)?Ne(Ct):Ne(65533)),Y.pos+=Et[0].length,!0}else if(Et=Y.src.slice(kt).match(ga),Et){var Ht=ve(Et[1]);if(Et[1]!==Ht)return nt||(Y.pending+=Ht),Y.pos+=Et[0].length,!0}}return nt||(Y.pending+="&"),Y.pos++,!0}var Oe=[["text",ar],["newline",xr],["escape",Mr],["backticks",an],["del",gn],["ins",dn],["mark",pn],["emphasis",hi],["sub",da],["sup",Ri],["links",oi],["footnote_inline",mi],["footnote_ref",Ia],["autolink",Fi],["htmltag",Ai],["entity",Er]];function ft(){this.ruler=new Qe;for(var Y=0;Y<Oe.length;Y++)this.ruler.push(Oe[Y][0],Oe[Y][1]);this.validateLink=yr}ft.prototype.skipToken=function(Y){var nt=this.ruler.getRules(""),_t=nt.length,Ct=Y.pos,Et,kt;if((kt=Y.cacheGet(Ct))>0){Y.pos=kt;return}for(Et=0;Et<_t;Et++)if(nt[Et](Y,!0)){Y.cacheSet(Ct,Y.pos);return}Y.pos++,Y.cacheSet(Ct,Y.pos)},ft.prototype.tokenize=function(Y){for(var nt=this.ruler.getRules(""),_t=nt.length,Ct=Y.posMax,Et,kt;Y.pos<Ct;){for(kt=0;kt<_t&&(Et=nt[kt](Y,!1),!Et);kt++);if(Et){if(Y.pos>=Ct)break;continue}Y.pending+=Y.src[Y.pos++]}Y.pending&&Y.pushPending()},ft.prototype.parse=function(Y,nt,_t,Ct){var Et=new $e(Y,this,nt,_t,Ct);this.tokenize(Et)};function yr(Y){var nt=["vbscript","javascript","file","data"],_t=Y.trim().toLowerCase();return _t=Fe(_t),!(_t.indexOf(":")!==-1&&nt.indexOf(_t.split(":")[0])!==-1)}var lr={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},qr={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},sn={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},Kr={default:lr,full:qr,commonmark:sn};function on(Y,nt,_t){this.src=nt,this.env=_t,this.options=Y.options,this.tokens=[],this.inlineMode=!1,this.inline=Y.inline,this.block=Y.block,this.renderer=Y.renderer,this.typographer=Y.typographer}function bn(Y,nt){typeof Y!="string"&&(nt=Y,Y="default"),nt&&nt.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
import Remarkable from 'remarkable';
import linkify from 'remarkable/linkify';
new Remarkable().use(linkify)
`),this.inline=new ft,this.block=new Jr,this.core=new Dt,this.renderer=new et,this.ruler=new Qe,this.options={},this.configure(Kr[Y]),this.set(nt||{})}bn.prototype.set=function(Y){pe(this.options,Y)},bn.prototype.configure=function(Y){var nt=this;if(!Y)throw new Error("Wrong `remarkable` preset, check name/content");Y.options&&nt.set(Y.options),Y.components&&Object.keys(Y.components).forEach(function(_t){Y.components[_t].rules&&nt[_t].ruler.enable(Y.components[_t].rules,!0)})},bn.prototype.use=function(Y,nt){return Y(this,nt),this},bn.prototype.parse=function(Y,nt){var _t=new on(this,Y,nt);return this.core.process(_t),_t.tokens},bn.prototype.render=function(Y,nt){return nt=nt||{},this.renderer.render(this.parse(Y,nt),this.options,nt)},bn.prototype.parseInline=function(Y,nt){var _t=new on(this,Y,nt);return _t.inlineMode=!0,this.core.process(_t),_t.tokens},bn.prototype.renderInline=function(Y,nt){return nt=nt||{},this.renderer.render(this.parseInline(Y,nt),this.options,nt)};var zn=(Y,nt)=>{const _t="\\",Ct="$",kt=(nt||{}).delimiter||Ct;if(kt.length!==1)throw new Error("invalid delimiter");const Ut=q,Ht=(_r,Nr)=>Ut.renderToString(_r,{displayMode:Nr,throwOnError:!1}),nr=(_r,Nr,Yr)=>{let jr=!1,tn=_r.bMarks[Nr]+_r.tShift[Nr],hn=_r.eMarks[Nr];if(tn+1>hn)return!1;const wn=_r.src.charAt(tn);if(wn!==kt)return!1;let Fn=tn;tn=_r.skipChars(tn,wn);let Un=tn-Fn;if(Un!==2)return!1;let qi=Nr;for(;++qi,!(qi>=Yr||(tn=Fn=_r.bMarks[qi]+_r.tShift[qi],hn=_r.eMarks[qi],tn<hn&&_r.tShift[qi]<_r.blkIndent));)if(_r.src.charAt(tn)===kt&&!(_r.tShift[qi]-_r.blkIndent>=4)&&(tn=_r.skipChars(tn,wn),!(tn-Fn<Un)&&(tn=_r.skipSpaces(tn),!(tn<hn)))){jr=!0;break}Un=_r.tShift[Nr],_r.line=qi+(jr?1:0);const Wa=_r.getLines(Nr+1,qi,Un,!0).replace(/[ \n]+/g," ").trim();return _r.tokens.push({type:"katex",params:null,content:Wa,lines:[Nr,_r.line],level:_r.level,block:!0}),!0},Sr=(_r,Nr)=>{const Yr=_r.pos,jr=_r.posMax;let tn=Yr;if(_r.src.charAt(tn)!==kt)return!1;for(++tn;tn<jr&&_r.src.charAt(tn)===kt;)++tn;const hn=_r.src.slice(Yr,tn);if(hn.length>2)return!1;const wn=tn;let Fn=0;for(;tn<jr;){const Un=_r.src.charAt(tn);if(Un==="{"&&(tn==0||_r.src.charAt(tn-1)!=_t))Fn+=1;else if(Un==="}"&&(tn==0||_r.src.charAt(tn-1)!=_t)){if(Fn-=1,Fn<0)return!1}else if(Un===kt&&Fn===0){const qi=tn;let Wa=tn+1;for(;Wa<jr&&_r.src.charAt(Wa)===kt;)++Wa;if(Wa-qi===hn.length){if(!Nr){const Qo=_r.src.slice(wn,qi).replace(/[ \n]+/g," ").trim();_r.push({type:"katex",content:Qo,block:hn.length>1,level:_r.level})}return _r.pos=Wa,!0}}tn+=1}return Nr||(_r.pending+=hn),_r.pos+=hn.length,!0};Y.inline.ruler.push("katex",Sr,nt),Y.block.ruler.push("katex",nr,nt),Y.renderer.rules.katex=(_r,Nr)=>Ht(_r[Nr].content,_r[Nr].block),Y.renderer.rules.katex.delimiter=kt},Bn={versions:{katex:"0.16.0",webfontloader:"1.6.28"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"}}],scripts:[{type:"iife",data:{fn:Y=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{Y().refreshHook.call()}}},getParams({getMarkmap:Y}){return[Y]}}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js",defer:!0}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"}}]};const kn="https://cdn.jsdelivr.net/npm/";function Gn(Y,nt,_t){return Y.map(Ct=>(typeof Ct=="string"&&(Ct.startsWith(`${nt}/`)?Ct=`${kn}${nt}@${_t}${Ct.slice(nt.length)}`:Ct.startsWith(`${nt}@`)&&(Ct=`${kn}${Ct}`)),Ct))}function En(){return{parser:new D,beforeParse:new D,afterParse:new D,htmltag:new D,retransform:new D}}function li(Y){return Y}let Sn;const In=()=>(Sn||(Sn=se(Bn.preloadScripts)),Sn),vn="katex";var Cn={name:vn,config:Bn,transform(Y){const nt=(Ct,Et)=>{const{katex:kt}=window;return kt?kt.renderToString(Ct,{displayMode:Et,throwOnError:!1}):(In().then(()=>{Y.retransform.call()}),Ct)};let _t=()=>{};return Y.parser.tap(Ct=>{Ct.use(zn),Ct.renderer.rules.katex=(Et,kt)=>(_t(),nt(Et[kt].content,Et[kt].block))}),Y.beforeParse.tap((Ct,Et)=>{_t=()=>{Et.features[vn]=!0}}),Y.afterParse.tap((Ct,Et)=>{const{frontmatter:kt}=Et;kt!=null&&kt.markmap&&["extraJs","extraCss"].forEach(Ut=>{kt.markmap[Ut]&&(kt.markmap[Ut]=Gn(kt.markmap[Ut],vn,Bn.versions.katex))})}),{styles:Bn.styles,scripts:Bn.scripts}}},Ti={versions:{prismjs:"1.28.0"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-core.min.js"}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/autoloader/prism-autoloader.min.js"}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css"}}]};let vi;const Hn=()=>(vi||(vi=se(Ti.preloadScripts)),vi);function Ni(Y,nt){Hn().then(()=>{window.Prism.plugins.autoloader.loadLanguages([Y],()=>{nt.retransform.call()})})}const zi="prism";var Qr={name:zi,config:Ti,transform(Y){let nt=()=>{};return Y.parser.tap(_t=>{_t.set({highlight:(Ct,Et)=>{var kt;nt();const{Prism:Ut}=window,Ht=Ut==null||(kt=Ut.languages)==null?void 0:kt[Et];return Ht?Ut.highlight(Ct,Ht,Et):(Ni(Et,Y),"")}})}),Y.beforeParse.tap((_t,Ct)=>{nt=()=>{Ct.features[zi]=!0}}),{styles:Ti.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function gi(Y){return typeof Y>"u"||Y===null}function Zs(Y){return typeof Y=="object"&&Y!==null}function Js(Y){return Array.isArray(Y)?Y:gi(Y)?[]:[Y]}function ti(Y,nt){var _t,Ct,Et,kt;if(nt)for(kt=Object.keys(nt),_t=0,Ct=kt.length;_t<Ct;_t+=1)Et=kt[_t],Y[Et]=nt[Et];return Y}function Da(Y,nt){var _t="",Ct;for(Ct=0;Ct<nt;Ct+=1)_t+=Y;return _t}function Kn(Y){return Y===0&&Number.NEGATIVE_INFINITY===1/Y}var mo=gi,as=Zs,Ss=Js,_a=Da,Ga=Kn,Uo=ti,ui={isNothing:mo,isObject:as,toArray:Ss,repeat:_a,isNegativeZero:Ga,extend:Uo};function go(Y,nt){var _t="",Ct=Y.reason||"(unknown reason)";return Y.mark?(Y.mark.name&&(_t+='in "'+Y.mark.name+'" '),_t+="("+(Y.mark.line+1)+":"+(Y.mark.column+1)+")",!nt&&Y.mark.snippet&&(_t+=`
`+Y.mark.snippet),Ct+" "+_t):Ct}function ss(Y,nt){Error.call(this),this.name="YAMLException",this.reason=Y,this.mark=nt,this.message=go(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ss.prototype=Object.create(Error.prototype),ss.prototype.constructor=ss,ss.prototype.toString=function(nt){return this.name+": "+go(this,nt)};var Si=ss;function eo(Y,nt,_t,Ct,Et){var kt="",Ut="",Ht=Math.floor(Et/2)-1;return Ct-nt>Ht&&(kt=" ... ",nt=Ct-Ht+kt.length),_t-Ct>Ht&&(Ut=" ...",_t=Ct+Ht-Ut.length),{str:kt+Y.slice(nt,_t).replace(/\t/g,"→")+Ut,pos:Ct-nt+kt.length}}function Bi(Y,nt){return ui.repeat(" ",nt-Y.length)+Y}function On(Y,nt){if(nt=Object.create(nt||null),!Y.buffer)return null;nt.maxLength||(nt.maxLength=79),typeof nt.indent!="number"&&(nt.indent=1),typeof nt.linesBefore!="number"&&(nt.linesBefore=3),typeof nt.linesAfter!="number"&&(nt.linesAfter=2);for(var _t=/\r?\n|\r|\0/g,Ct=[0],Et=[],kt,Ut=-1;kt=_t.exec(Y.buffer);)Et.push(kt.index),Ct.push(kt.index+kt[0].length),Y.position<=kt.index&&Ut<0&&(Ut=Ct.length-2);Ut<0&&(Ut=Ct.length-1);var Ht="",nr,Sr,_r=Math.min(Y.line+nt.linesAfter,Et.length).toString().length,Nr=nt.maxLength-(nt.indent+_r+3);for(nr=1;nr<=nt.linesBefore&&!(Ut-nr<0);nr++)Sr=eo(Y.buffer,Ct[Ut-nr],Et[Ut-nr],Y.position-(Ct[Ut]-Ct[Ut-nr]),Nr),Ht=ui.repeat(" ",nt.indent)+Bi((Y.line-nr+1).toString(),_r)+" | "+Sr.str+`
`+Ht;for(Sr=eo(Y.buffer,Ct[Ut],Et[Ut],Y.position,Nr),Ht+=ui.repeat(" ",nt.indent)+Bi((Y.line+1).toString(),_r)+" | "+Sr.str+`
`,Ht+=ui.repeat("-",nt.indent+_r+3+Sr.pos)+`^
`,nr=1;nr<=nt.linesAfter&&!(Ut+nr>=Et.length);nr++)Sr=eo(Y.buffer,Ct[Ut+nr],Et[Ut+nr],Y.position-(Ct[Ut]-Ct[Ut+nr]),Nr),Ht+=ui.repeat(" ",nt.indent)+Bi((Y.line+nr+1).toString(),_r)+" | "+Sr.str+`
`;return Ht.replace(/\n$/,"")}var xs=On,ba=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],os=["scalar","sequence","mapping"];function to(Y){var nt={};return Y!==null&&Object.keys(Y).forEach(function(_t){Y[_t].forEach(function(Ct){nt[String(Ct)]=_t})}),nt}function Go(Y,nt){if(nt=nt||{},Object.keys(nt).forEach(function(_t){if(ba.indexOf(_t)===-1)throw new Si('Unknown option "'+_t+'" is met in definition of "'+Y+'" YAML type.')}),this.options=nt,this.tag=Y,this.kind=nt.kind||null,this.resolve=nt.resolve||function(){return!0},this.construct=nt.construct||function(_t){return _t},this.instanceOf=nt.instanceOf||null,this.predicate=nt.predicate||null,this.represent=nt.represent||null,this.representName=nt.representName||null,this.defaultStyle=nt.defaultStyle||null,this.multi=nt.multi||!1,this.styleAliases=to(nt.styleAliases||null),os.indexOf(this.kind)===-1)throw new Si('Unknown kind "'+this.kind+'" is specified for "'+Y+'" YAML type.')}var ri=Go;function _o(Y,nt){var _t=[];return Y[nt].forEach(function(Ct){var Et=_t.length;_t.forEach(function(kt,Ut){kt.tag===Ct.tag&&kt.kind===Ct.kind&&kt.multi===Ct.multi&&(Et=Ut)}),_t[Et]=Ct}),_t}function bo(){var Y={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},nt,_t;function Ct(Et){Et.multi?(Y.multi[Et.kind].push(Et),Y.multi.fallback.push(Et)):Y[Et.kind][Et.tag]=Y.fallback[Et.tag]=Et}for(nt=0,_t=arguments.length;nt<_t;nt+=1)arguments[nt].forEach(Ct);return Y}function ls(Y){return this.extend(Y)}ls.prototype.extend=function(nt){var _t=[],Ct=[];if(nt instanceof ri)Ct.push(nt);else if(Array.isArray(nt))Ct=Ct.concat(nt);else if(nt&&(Array.isArray(nt.implicit)||Array.isArray(nt.explicit)))nt.implicit&&(_t=_t.concat(nt.implicit)),nt.explicit&&(Ct=Ct.concat(nt.explicit));else throw new Si("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");_t.forEach(function(kt){if(!(kt instanceof ri))throw new Si("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(kt.loadKind&&kt.loadKind!=="scalar")throw new Si("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(kt.multi)throw new Si("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Ct.forEach(function(kt){if(!(kt instanceof ri))throw new Si("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var Et=Object.create(ls.prototype);return Et.implicit=(this.implicit||[]).concat(_t),Et.explicit=(this.explicit||[]).concat(Ct),Et.compiledImplicit=_o(Et,"implicit"),Et.compiledExplicit=_o(Et,"explicit"),Et.compiledTypeMap=bo(Et.compiledImplicit,Et.compiledExplicit),Et};var cs=ls,us=new ri("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Y){return Y!==null?Y:""}}),$a=new ri("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Y){return Y!==null?Y:[]}}),ro=new ri("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Y){return Y!==null?Y:{}}}),yo=new cs({explicit:[us,$a,ro]});function no(Y){if(Y===null)return!0;var nt=Y.length;return nt===1&&Y==="~"||nt===4&&(Y==="null"||Y==="Null"||Y==="NULL")}function vo(){return null}function ds(Y){return Y===null}var hs=new ri("tag:yaml.org,2002:null",{kind:"scalar",resolve:no,construct:vo,predicate:ds,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function ya(Y){if(Y===null)return!1;var nt=Y.length;return nt===4&&(Y==="true"||Y==="True"||Y==="TRUE")||nt===5&&(Y==="false"||Y==="False"||Y==="FALSE")}function Ya(Y){return Y==="true"||Y==="True"||Y==="TRUE"}function Es(Y){return Object.prototype.toString.call(Y)==="[object Boolean]"}var Cs=new ri("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ya,construct:Ya,predicate:Es,represent:{lowercase:function(Y){return Y?"true":"false"},uppercase:function(Y){return Y?"TRUE":"FALSE"},camelcase:function(Y){return Y?"True":"False"}},defaultStyle:"lowercase"});function fs(Y){return 48<=Y&&Y<=57||65<=Y&&Y<=70||97<=Y&&Y<=102}function ps(Y){return 48<=Y&&Y<=55}function So(Y){return 48<=Y&&Y<=57}function xo(Y){if(Y===null)return!1;var nt=Y.length,_t=0,Ct=!1,Et;if(!nt)return!1;if(Et=Y[_t],(Et==="-"||Et==="+")&&(Et=Y[++_t]),Et==="0"){if(_t+1===nt)return!0;if(Et=Y[++_t],Et==="b"){for(_t++;_t<nt;_t++)if(Et=Y[_t],Et!=="_"){if(Et!=="0"&&Et!=="1")return!1;Ct=!0}return Ct&&Et!=="_"}if(Et==="x"){for(_t++;_t<nt;_t++)if(Et=Y[_t],Et!=="_"){if(!fs(Y.charCodeAt(_t)))return!1;Ct=!0}return Ct&&Et!=="_"}if(Et==="o"){for(_t++;_t<nt;_t++)if(Et=Y[_t],Et!=="_"){if(!ps(Y.charCodeAt(_t)))return!1;Ct=!0}return Ct&&Et!=="_"}}if(Et==="_")return!1;for(;_t<nt;_t++)if(Et=Y[_t],Et!=="_"){if(!So(Y.charCodeAt(_t)))return!1;Ct=!0}return!(!Ct||Et==="_")}function As(Y){var nt=Y,_t=1,Ct;if(nt.indexOf("_")!==-1&&(nt=nt.replace(/_/g,"")),Ct=nt[0],(Ct==="-"||Ct==="+")&&(Ct==="-"&&(_t=-1),nt=nt.slice(1),Ct=nt[0]),nt==="0")return 0;if(Ct==="0"){if(nt[1]==="b")return _t*parseInt(nt.slice(2),2);if(nt[1]==="x")return _t*parseInt(nt.slice(2),16);if(nt[1]==="o")return _t*parseInt(nt.slice(2),8)}return _t*parseInt(nt,10)}function Ts(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&Y%1===0&&!ui.isNegativeZero(Y)}var ms=new ri("tag:yaml.org,2002:int",{kind:"scalar",resolve:xo,construct:As,predicate:Ts,represent:{binary:function(Y){return Y>=0?"0b"+Y.toString(2):"-0b"+Y.toString(2).slice(1)},octal:function(Y){return Y>=0?"0o"+Y.toString(8):"-0o"+Y.toString(8).slice(1)},decimal:function(Y){return Y.toString(10)},hexadecimal:function(Y){return Y>=0?"0x"+Y.toString(16).toUpperCase():"-0x"+Y.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ws=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function io(Y){return!(Y===null||!ws.test(Y)||Y[Y.length-1]==="_")}function Rs(Y){var nt,_t;return nt=Y.replace(/_/g,"").toLowerCase(),_t=nt[0]==="-"?-1:1,"+-".indexOf(nt[0])>=0&&(nt=nt.slice(1)),nt===".inf"?_t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:nt===".nan"?NaN:_t*parseFloat(nt,10)}var ao=/^[-+]?[0-9]+e/;function $o(Y,nt){var _t;if(isNaN(Y))switch(nt){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Y)switch(nt){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Y)switch(nt){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ui.isNegativeZero(Y))return"-0.0";return _t=Y.toString(10),ao.test(_t)?_t.replace("e",".e"):_t}function Is(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&(Y%1!==0||ui.isNegativeZero(Y))}var ks=new ri("tag:yaml.org,2002:float",{kind:"scalar",resolve:io,construct:Rs,predicate:Is,represent:$o,defaultStyle:"lowercase"}),Os=yo.extend({implicit:[hs,Cs,ms,ks]}),Ns=Os,Eo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ds=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function va(Y){return Y===null?!1:Eo.exec(Y)!==null||Ds.exec(Y)!==null}function gs(Y){var nt,_t,Ct,Et,kt,Ut,Ht,nr=0,Sr=null,_r,Nr,Yr;if(nt=Eo.exec(Y),nt===null&&(nt=Ds.exec(Y)),nt===null)throw new Error("Date resolve error");if(_t=+nt[1],Ct=+nt[2]-1,Et=+nt[3],!nt[4])return new Date(Date.UTC(_t,Ct,Et));if(kt=+nt[4],Ut=+nt[5],Ht=+nt[6],nt[7]){for(nr=nt[7].slice(0,3);nr.length<3;)nr+="0";nr=+nr}return nt[9]&&(_r=+nt[10],Nr=+(nt[11]||0),Sr=(_r*60+Nr)*6e4,nt[9]==="-"&&(Sr=-Sr)),Yr=new Date(Date.UTC(_t,Ct,Et,kt,Ut,Ht,nr)),Sr&&Yr.setTime(Yr.getTime()-Sr),Yr}function Sa(Y){return Y.toISOString()}var so=new ri("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:va,construct:gs,instanceOf:Date,represent:Sa});function Ms(Y){return Y==="<<"||Y===null}var Ma=new ri("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ms}),xa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Hi(Y){if(Y===null)return!1;var nt,_t,Ct=0,Et=Y.length,kt=xa;for(_t=0;_t<Et;_t++)if(nt=kt.indexOf(Y.charAt(_t)),!(nt>64)){if(nt<0)return!1;Ct+=6}return Ct%8===0}function Ls(Y){var nt,_t,Ct=Y.replace(/[\r\n=]/g,""),Et=Ct.length,kt=xa,Ut=0,Ht=[];for(nt=0;nt<Et;nt++)nt%4===0&&nt&&(Ht.push(Ut>>16&255),Ht.push(Ut>>8&255),Ht.push(Ut&255)),Ut=Ut<<6|kt.indexOf(Ct.charAt(nt));return _t=Et%4*6,_t===0?(Ht.push(Ut>>16&255),Ht.push(Ut>>8&255),Ht.push(Ut&255)):_t===18?(Ht.push(Ut>>10&255),Ht.push(Ut>>2&255)):_t===12&&Ht.push(Ut>>4&255),new Uint8Array(Ht)}function Co(Y){var nt="",_t=0,Ct,Et,kt=Y.length,Ut=xa;for(Ct=0;Ct<kt;Ct++)Ct%3===0&&Ct&&(nt+=Ut[_t>>18&63],nt+=Ut[_t>>12&63],nt+=Ut[_t>>6&63],nt+=Ut[_t&63]),_t=(_t<<8)+Y[Ct];return Et=kt%3,Et===0?(nt+=Ut[_t>>18&63],nt+=Ut[_t>>12&63],nt+=Ut[_t>>6&63],nt+=Ut[_t&63]):Et===2?(nt+=Ut[_t>>10&63],nt+=Ut[_t>>4&63],nt+=Ut[_t<<2&63],nt+=Ut[64]):Et===1&&(nt+=Ut[_t>>2&63],nt+=Ut[_t<<4&63],nt+=Ut[64],nt+=Ut[64]),nt}function ja(Y){return Object.prototype.toString.call(Y)==="[object Uint8Array]"}var Wi=new ri("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hi,construct:Ls,predicate:ja,represent:Co}),Ao=Object.prototype.hasOwnProperty,Ps=Object.prototype.toString;function Fs(Y){if(Y===null)return!0;var nt=[],_t,Ct,Et,kt,Ut,Ht=Y;for(_t=0,Ct=Ht.length;_t<Ct;_t+=1){if(Et=Ht[_t],Ut=!1,Ps.call(Et)!=="[object Object]")return!1;for(kt in Et)if(Ao.call(Et,kt))if(!Ut)Ut=!0;else return!1;if(!Ut)return!1;if(nt.indexOf(kt)===-1)nt.push(kt);else return!1}return!0}function To(Y){return Y!==null?Y:[]}var Bs=new ri("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Fs,construct:To}),oo=Object.prototype.toString;function wo(Y){if(Y===null)return!0;var nt,_t,Ct,Et,kt,Ut=Y;for(kt=new Array(Ut.length),nt=0,_t=Ut.length;nt<_t;nt+=1){if(Ct=Ut[nt],oo.call(Ct)!=="[object Object]"||(Et=Object.keys(Ct),Et.length!==1))return!1;kt[nt]=[Et[0],Ct[Et[0]]]}return!0}function la(Y){if(Y===null)return[];var nt,_t,Ct,Et,kt,Ut=Y;for(kt=new Array(Ut.length),nt=0,_t=Ut.length;nt<_t;nt+=1)Ct=Ut[nt],Et=Object.keys(Ct),kt[nt]=[Et[0],Ct[Et[0]]];return kt}var lo=new ri("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:wo,construct:la}),Qt=Object.prototype.hasOwnProperty;function Yi(Y){if(Y===null)return!0;var nt,_t=Y;for(nt in _t)if(Qt.call(_t,nt)&&_t[nt]!==null)return!1;return!0}function La(Y){return Y!==null?Y:{}}var co=new ri("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yi,construct:La}),Xa=Ns.extend({implicit:[so,Ma],explicit:[Wi,Bs,lo,co]}),ca=Object.prototype.hasOwnProperty,Ui=1,Us=2,ji=3,fi=4,Ei=1,uo=2,Gs=3,Ea=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ca=/[\x85\u2028\u2029]/,Gi=/[,\[\]\{\}]/,qa=/^(?:!|!!|![a-z\-]+!)$/i,$s=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ua(Y){return Object.prototype.toString.call(Y)}function Di(Y){return Y===10||Y===13}function Aa(Y){return Y===9||Y===32}function _i(Y){return Y===9||Y===32||Y===10||Y===13}function Pa(Y){return Y===44||Y===91||Y===93||Y===123||Y===125}function Ro(Y){var nt;return 48<=Y&&Y<=57?Y-48:(nt=Y|32,97<=nt&&nt<=102?nt-97+10:-1)}function qs(Y){return Y===120?2:Y===117?4:Y===85?8:0}function _s(Y){return 48<=Y&&Y<=57?Y-48:-1}function Vs(Y){return Y===48?"\0":Y===97?"\x07":Y===98?"\b":Y===116||Y===9?" ":Y===110?`
`:Y===118?"\v":Y===102?"\f":Y===114?"\r":Y===101?"\x1B":Y===32?" ":Y===34?'"':Y===47?"/":Y===92?"\\":Y===78?"…":Y===95?" ":Y===76?"\u2028":Y===80?"\u2029":""}function ho(Y){return Y<=65535?String.fromCharCode(Y):String.fromCharCode((Y-65536>>10)+55296,(Y-65536&1023)+56320)}for(var Va=new Array(256),Ka=new Array(256),Qa=0;Qa<256;Qa++)Va[Qa]=Vs(Qa)?1:0,Ka[Qa]=Vs(Qa);function qo(Y,nt){this.input=Y,this.filename=nt.filename||null,this.schema=nt.schema||Xa,this.onWarning=nt.onWarning||null,this.legacy=nt.legacy||!1,this.json=nt.json||!1,this.listener=nt.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Y.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function fo(Y,nt){var _t={name:Y.filename,buffer:Y.input.slice(0,-1),position:Y.position,line:Y.line,column:Y.position-Y.lineStart};return _t.snippet=xs(_t),new Si(nt,_t)}function yn(Y,nt){throw fo(Y,nt)}function bs(Y,nt){Y.onWarning&&Y.onWarning.call(null,fo(Y,nt))}var zs={YAML:function(nt,_t,Ct){var Et,kt,Ut;nt.version!==null&&yn(nt,"duplication of %YAML directive"),Ct.length!==1&&yn(nt,"YAML directive accepts exactly one argument"),Et=/^([0-9]+)\.([0-9]+)$/.exec(Ct[0]),Et===null&&yn(nt,"ill-formed argument of the YAML directive"),kt=parseInt(Et[1],10),Ut=parseInt(Et[2],10),kt!==1&&yn(nt,"unacceptable YAML version of the document"),nt.version=Ct[0],nt.checkLineBreaks=Ut<2,Ut!==1&&Ut!==2&&bs(nt,"unsupported YAML version of the document")},TAG:function(nt,_t,Ct){var Et,kt;Ct.length!==2&&yn(nt,"TAG directive accepts exactly two arguments"),Et=Ct[0],kt=Ct[1],qa.test(Et)||yn(nt,"ill-formed tag handle (first argument) of the TAG directive"),ca.call(nt.tagMap,Et)&&yn(nt,'there is a previously declared suffix for "'+Et+'" tag handle'),$s.test(kt)||yn(nt,"ill-formed tag prefix (second argument) of the TAG directive");try{kt=decodeURIComponent(kt)}catch{yn(nt,"tag prefix is malformed: "+kt)}nt.tagMap[Et]=kt}};function Ta(Y,nt,_t,Ct){var Et,kt,Ut,Ht;if(nt<_t){if(Ht=Y.input.slice(nt,_t),Ct)for(Et=0,kt=Ht.length;Et<kt;Et+=1)Ut=Ht.charCodeAt(Et),Ut===9||32<=Ut&&Ut<=1114111||yn(Y,"expected valid JSON character");else Ea.test(Ht)&&yn(Y,"the stream contains non-printable characters");Y.result+=Ht}}function ys(Y,nt,_t,Ct){var Et,kt,Ut,Ht;for(ui.isObject(_t)||yn(Y,"cannot merge mappings; the provided source object is unacceptable"),Et=Object.keys(_t),Ut=0,Ht=Et.length;Ut<Ht;Ut+=1)kt=Et[Ut],ca.call(nt,kt)||(nt[kt]=_t[kt],Ct[kt]=!0)}function Fa(Y,nt,_t,Ct,Et,kt,Ut,Ht,nr){var Sr,_r;if(Array.isArray(Et))for(Et=Array.prototype.slice.call(Et),Sr=0,_r=Et.length;Sr<_r;Sr+=1)Array.isArray(Et[Sr])&&yn(Y,"nested arrays are not supported inside keys"),typeof Et=="object"&&ua(Et[Sr])==="[object Object]"&&(Et[Sr]="[object Object]");if(typeof Et=="object"&&ua(Et)==="[object Object]"&&(Et="[object Object]"),Et=String(Et),nt===null&&(nt={}),Ct==="tag:yaml.org,2002:merge")if(Array.isArray(kt))for(Sr=0,_r=kt.length;Sr<_r;Sr+=1)ys(Y,nt,kt[Sr],_t);else ys(Y,nt,kt,_t);else!Y.json&&!ca.call(_t,Et)&&ca.call(nt,Et)&&(Y.line=Ut||Y.line,Y.lineStart=Ht||Y.lineStart,Y.position=nr||Y.position,yn(Y,"duplicated mapping key")),Et==="__proto__"?Object.defineProperty(nt,Et,{configurable:!0,enumerable:!0,writable:!0,value:kt}):nt[Et]=kt,delete _t[Et];return nt}function za(Y){var nt;nt=Y.input.charCodeAt(Y.position),nt===10?Y.position++:nt===13?(Y.position++,Y.input.charCodeAt(Y.position)===10&&Y.position++):yn(Y,"a line break is expected"),Y.line+=1,Y.lineStart=Y.position,Y.firstTabInLine=-1}function jn(Y,nt,_t){for(var Ct=0,Et=Y.input.charCodeAt(Y.position);Et!==0;){for(;Aa(Et);)Et===9&&Y.firstTabInLine===-1&&(Y.firstTabInLine=Y.position),Et=Y.input.charCodeAt(++Y.position);if(nt&&Et===35)do Et=Y.input.charCodeAt(++Y.position);while(Et!==10&&Et!==13&&Et!==0);if(Di(Et))for(za(Y),Et=Y.input.charCodeAt(Y.position),Ct++,Y.lineIndent=0;Et===32;)Y.lineIndent++,Et=Y.input.charCodeAt(++Y.position);else break}return _t!==-1&&Ct!==0&&Y.lineIndent<_t&&bs(Y,"deficient indentation"),Ct}function wa(Y){var nt=Y.position,_t;return _t=Y.input.charCodeAt(nt),!!((_t===45||_t===46)&&_t===Y.input.charCodeAt(nt+1)&&_t===Y.input.charCodeAt(nt+2)&&(nt+=3,_t=Y.input.charCodeAt(nt),_t===0||_i(_t)))}function Hs(Y,nt){nt===1?Y.result+=" ":nt>1&&(Y.result+=ui.repeat(`
`,nt-1))}function Io(Y,nt,_t){var Ct,Et,kt,Ut,Ht,nr,Sr,_r,Nr=Y.kind,Yr=Y.result,jr;if(jr=Y.input.charCodeAt(Y.position),_i(jr)||Pa(jr)||jr===35||jr===38||jr===42||jr===33||jr===124||jr===62||jr===39||jr===34||jr===37||jr===64||jr===96||(jr===63||jr===45)&&(Et=Y.input.charCodeAt(Y.position+1),_i(Et)||_t&&Pa(Et)))return!1;for(Y.kind="scalar",Y.result="",kt=Ut=Y.position,Ht=!1;jr!==0;){if(jr===58){if(Et=Y.input.charCodeAt(Y.position+1),_i(Et)||_t&&Pa(Et))break}else if(jr===35){if(Ct=Y.input.charCodeAt(Y.position-1),_i(Ct))break}else{if(Y.position===Y.lineStart&&wa(Y)||_t&&Pa(jr))break;if(Di(jr))if(nr=Y.line,Sr=Y.lineStart,_r=Y.lineIndent,jn(Y,!1,-1),Y.lineIndent>=nt){Ht=!0,jr=Y.input.charCodeAt(Y.position);continue}else{Y.position=Ut,Y.line=nr,Y.lineStart=Sr,Y.lineIndent=_r;break}}Ht&&(Ta(Y,kt,Ut,!1),Hs(Y,Y.line-nr),kt=Ut=Y.position,Ht=!1),Aa(jr)||(Ut=Y.position+1),jr=Y.input.charCodeAt(++Y.position)}return Ta(Y,kt,Ut,!1),Y.result?!0:(Y.kind=Nr,Y.result=Yr,!1)}function vs(Y,nt){var _t,Ct,Et;if(_t=Y.input.charCodeAt(Y.position),_t!==39)return!1;for(Y.kind="scalar",Y.result="",Y.position++,Ct=Et=Y.position;(_t=Y.input.charCodeAt(Y.position))!==0;)if(_t===39)if(Ta(Y,Ct,Y.position,!0),_t=Y.input.charCodeAt(++Y.position),_t===39)Ct=Y.position,Y.position++,Et=Y.position;else return!0;else Di(_t)?(Ta(Y,Ct,Et,!0),Hs(Y,jn(Y,!1,nt)),Ct=Et=Y.position):Y.position===Y.lineStart&&wa(Y)?yn(Y,"unexpected end of the document within a single quoted scalar"):(Y.position++,Et=Y.position);yn(Y,"unexpected end of the stream within a single quoted scalar")}function ko(Y,nt){var _t,Ct,Et,kt,Ut,Ht;if(Ht=Y.input.charCodeAt(Y.position),Ht!==34)return!1;for(Y.kind="scalar",Y.result="",Y.position++,_t=Ct=Y.position;(Ht=Y.input.charCodeAt(Y.position))!==0;){if(Ht===34)return Ta(Y,_t,Y.position,!0),Y.position++,!0;if(Ht===92){if(Ta(Y,_t,Y.position,!0),Ht=Y.input.charCodeAt(++Y.position),Di(Ht))jn(Y,!1,nt);else if(Ht<256&&Va[Ht])Y.result+=Ka[Ht],Y.position++;else if((Ut=qs(Ht))>0){for(Et=Ut,kt=0;Et>0;Et--)Ht=Y.input.charCodeAt(++Y.position),(Ut=Ro(Ht))>=0?kt=(kt<<4)+Ut:yn(Y,"expected hexadecimal character");Y.result+=ho(kt),Y.position++}else yn(Y,"unknown escape sequence");_t=Ct=Y.position}else Di(Ht)?(Ta(Y,_t,Ct,!0),Hs(Y,jn(Y,!1,nt)),_t=Ct=Y.position):Y.position===Y.lineStart&&wa(Y)?yn(Y,"unexpected end of the document within a double quoted scalar"):(Y.position++,Ct=Y.position)}yn(Y,"unexpected end of the stream within a double quoted scalar")}function Oo(Y,nt){var _t=!0,Ct,Et,kt,Ut=Y.tag,Ht,nr=Y.anchor,Sr,_r,Nr,Yr,jr,tn=Object.create(null),hn,wn,Fn,Un;if(Un=Y.input.charCodeAt(Y.position),Un===91)_r=93,jr=!1,Ht=[];else if(Un===123)_r=125,jr=!0,Ht={};else return!1;for(Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Ht),Un=Y.input.charCodeAt(++Y.position);Un!==0;){if(jn(Y,!0,nt),Un=Y.input.charCodeAt(Y.position),Un===_r)return Y.position++,Y.tag=Ut,Y.anchor=nr,Y.kind=jr?"mapping":"sequence",Y.result=Ht,!0;_t?Un===44&&yn(Y,"expected the node content, but found ','"):yn(Y,"missed comma between flow collection entries"),wn=hn=Fn=null,Nr=Yr=!1,Un===63&&(Sr=Y.input.charCodeAt(Y.position+1),_i(Sr)&&(Nr=Yr=!0,Y.position++,jn(Y,!0,nt))),Ct=Y.line,Et=Y.lineStart,kt=Y.position,Za(Y,nt,Ui,!1,!0),wn=Y.tag,hn=Y.result,jn(Y,!0,nt),Un=Y.input.charCodeAt(Y.position),(Yr||Y.line===Ct)&&Un===58&&(Nr=!0,Un=Y.input.charCodeAt(++Y.position),jn(Y,!0,nt),Za(Y,nt,Ui,!1,!0),Fn=Y.result),jr?Fa(Y,Ht,tn,wn,hn,Fn,Ct,Et,kt):Nr?Ht.push(Fa(Y,null,tn,wn,hn,Fn,Ct,Et,kt)):Ht.push(hn),jn(Y,!0,nt),Un=Y.input.charCodeAt(Y.position),Un===44?(_t=!0,Un=Y.input.charCodeAt(++Y.position)):_t=!1}yn(Y,"unexpected end of the stream within a flow collection")}function po(Y,nt){var _t,Ct,Et=Ei,kt=!1,Ut=!1,Ht=nt,nr=0,Sr=!1,_r,Nr;if(Nr=Y.input.charCodeAt(Y.position),Nr===124)Ct=!1;else if(Nr===62)Ct=!0;else return!1;for(Y.kind="scalar",Y.result="";Nr!==0;)if(Nr=Y.input.charCodeAt(++Y.position),Nr===43||Nr===45)Ei===Et?Et=Nr===43?Gs:uo:yn(Y,"repeat of a chomping mode identifier");else if((_r=_s(Nr))>=0)_r===0?yn(Y,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ut?yn(Y,"repeat of an indentation width identifier"):(Ht=nt+_r-1,Ut=!0);else break;if(Aa(Nr)){do Nr=Y.input.charCodeAt(++Y.position);while(Aa(Nr));if(Nr===35)do Nr=Y.input.charCodeAt(++Y.position);while(!Di(Nr)&&Nr!==0)}for(;Nr!==0;){for(za(Y),Y.lineIndent=0,Nr=Y.input.charCodeAt(Y.position);(!Ut||Y.lineIndent<Ht)&&Nr===32;)Y.lineIndent++,Nr=Y.input.charCodeAt(++Y.position);if(!Ut&&Y.lineIndent>Ht&&(Ht=Y.lineIndent),Di(Nr)){nr++;continue}if(Y.lineIndent<Ht){Et===Gs?Y.result+=ui.repeat(`
`,kt?1+nr:nr):Et===Ei&&kt&&(Y.result+=`
`);break}for(Ct?Aa(Nr)?(Sr=!0,Y.result+=ui.repeat(`
`,kt?1+nr:nr)):Sr?(Sr=!1,Y.result+=ui.repeat(`
`,nr+1)):nr===0?kt&&(Y.result+=" "):Y.result+=ui.repeat(`
`,nr):Y.result+=ui.repeat(`
`,kt?1+nr:nr),kt=!0,Ut=!0,nr=0,_t=Y.position;!Di(Nr)&&Nr!==0;)Nr=Y.input.charCodeAt(++Y.position);Ta(Y,_t,Y.position,!1)}return!0}function No(Y,nt){var _t,Ct=Y.tag,Et=Y.anchor,kt=[],Ut,Ht=!1,nr;if(Y.firstTabInLine!==-1)return!1;for(Y.anchor!==null&&(Y.anchorMap[Y.anchor]=kt),nr=Y.input.charCodeAt(Y.position);nr!==0&&(Y.firstTabInLine!==-1&&(Y.position=Y.firstTabInLine,yn(Y,"tab characters must not be used in indentation")),!(nr!==45||(Ut=Y.input.charCodeAt(Y.position+1),!_i(Ut))));){if(Ht=!0,Y.position++,jn(Y,!0,-1)&&Y.lineIndent<=nt){kt.push(null),nr=Y.input.charCodeAt(Y.position);continue}if(_t=Y.line,Za(Y,nt,ji,!1,!0),kt.push(Y.result),jn(Y,!0,-1),nr=Y.input.charCodeAt(Y.position),(Y.line===_t||Y.lineIndent>nt)&&nr!==0)yn(Y,"bad indentation of a sequence entry");else if(Y.lineIndent<nt)break}return Ht?(Y.tag=Ct,Y.anchor=Et,Y.kind="sequence",Y.result=kt,!0):!1}function Ba(Y,nt,_t){var Ct,Et,kt,Ut,Ht,nr,Sr=Y.tag,_r=Y.anchor,Nr={},Yr=Object.create(null),jr=null,tn=null,hn=null,wn=!1,Fn=!1,Un;if(Y.firstTabInLine!==-1)return!1;for(Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Nr),Un=Y.input.charCodeAt(Y.position);Un!==0;){if(!wn&&Y.firstTabInLine!==-1&&(Y.position=Y.firstTabInLine,yn(Y,"tab characters must not be used in indentation")),Ct=Y.input.charCodeAt(Y.position+1),kt=Y.line,(Un===63||Un===58)&&_i(Ct))Un===63?(wn&&(Fa(Y,Nr,Yr,jr,tn,null,Ut,Ht,nr),jr=tn=hn=null),Fn=!0,wn=!0,Et=!0):wn?(wn=!1,Et=!0):yn(Y,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Y.position+=1,Un=Ct;else{if(Ut=Y.line,Ht=Y.lineStart,nr=Y.position,!Za(Y,_t,Us,!1,!0))break;if(Y.line===kt){for(Un=Y.input.charCodeAt(Y.position);Aa(Un);)Un=Y.input.charCodeAt(++Y.position);if(Un===58)Un=Y.input.charCodeAt(++Y.position),_i(Un)||yn(Y,"a whitespace character is expected after the key-value separator within a block mapping"),wn&&(Fa(Y,Nr,Yr,jr,tn,null,Ut,Ht,nr),jr=tn=hn=null),Fn=!0,wn=!1,Et=!1,jr=Y.tag,tn=Y.result;else if(Fn)yn(Y,"can not read an implicit mapping pair; a colon is missed");else return Y.tag=Sr,Y.anchor=_r,!0}else if(Fn)yn(Y,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Y.tag=Sr,Y.anchor=_r,!0}if((Y.line===kt||Y.lineIndent>nt)&&(wn&&(Ut=Y.line,Ht=Y.lineStart,nr=Y.position),Za(Y,nt,fi,!0,Et)&&(wn?tn=Y.result:hn=Y.result),wn||(Fa(Y,Nr,Yr,jr,tn,hn,Ut,Ht,nr),jr=tn=hn=null),jn(Y,!0,-1),Un=Y.input.charCodeAt(Y.position)),(Y.line===kt||Y.lineIndent>nt)&&Un!==0)yn(Y,"bad indentation of a mapping entry");else if(Y.lineIndent<nt)break}return wn&&Fa(Y,Nr,Yr,jr,tn,null,Ut,Ht,nr),Fn&&(Y.tag=Sr,Y.anchor=_r,Y.kind="mapping",Y.result=Nr),Fn}function Do(Y){var nt,_t=!1,Ct=!1,Et,kt,Ut;if(Ut=Y.input.charCodeAt(Y.position),Ut!==33)return!1;if(Y.tag!==null&&yn(Y,"duplication of a tag property"),Ut=Y.input.charCodeAt(++Y.position),Ut===60?(_t=!0,Ut=Y.input.charCodeAt(++Y.position)):Ut===33?(Ct=!0,Et="!!",Ut=Y.input.charCodeAt(++Y.position)):Et="!",nt=Y.position,_t){do Ut=Y.input.charCodeAt(++Y.position);while(Ut!==0&&Ut!==62);Y.position<Y.length?(kt=Y.input.slice(nt,Y.position),Ut=Y.input.charCodeAt(++Y.position)):yn(Y,"unexpected end of the stream within a verbatim tag")}else{for(;Ut!==0&&!_i(Ut);)Ut===33&&(Ct?yn(Y,"tag suffix cannot contain exclamation marks"):(Et=Y.input.slice(nt-1,Y.position+1),qa.test(Et)||yn(Y,"named tag handle cannot contain such characters"),Ct=!0,nt=Y.position+1)),Ut=Y.input.charCodeAt(++Y.position);kt=Y.input.slice(nt,Y.position),Gi.test(kt)&&yn(Y,"tag suffix cannot contain flow indicator characters")}kt&&!$s.test(kt)&&yn(Y,"tag name cannot contain such characters: "+kt);try{kt=decodeURIComponent(kt)}catch{yn(Y,"tag name is malformed: "+kt)}return _t?Y.tag=kt:ca.call(Y.tagMap,Et)?Y.tag=Y.tagMap[Et]+kt:Et==="!"?Y.tag="!"+kt:Et==="!!"?Y.tag="tag:yaml.org,2002:"+kt:yn(Y,'undeclared tag handle "'+Et+'"'),!0}function Vo(Y){var nt,_t;if(_t=Y.input.charCodeAt(Y.position),_t!==38)return!1;for(Y.anchor!==null&&yn(Y,"duplication of an anchor property"),_t=Y.input.charCodeAt(++Y.position),nt=Y.position;_t!==0&&!_i(_t)&&!Pa(_t);)_t=Y.input.charCodeAt(++Y.position);return Y.position===nt&&yn(Y,"name of an anchor node must contain at least one character"),Y.anchor=Y.input.slice(nt,Y.position),!0}function zo(Y){var nt,_t,Ct;if(Ct=Y.input.charCodeAt(Y.position),Ct!==42)return!1;for(Ct=Y.input.charCodeAt(++Y.position),nt=Y.position;Ct!==0&&!_i(Ct)&&!Pa(Ct);)Ct=Y.input.charCodeAt(++Y.position);return Y.position===nt&&yn(Y,"name of an alias node must contain at least one character"),_t=Y.input.slice(nt,Y.position),ca.call(Y.anchorMap,_t)||yn(Y,'unidentified alias "'+_t+'"'),Y.result=Y.anchorMap[_t],jn(Y,!0,-1),!0}function Za(Y,nt,_t,Ct,Et){var kt,Ut,Ht,nr=1,Sr=!1,_r=!1,Nr,Yr,jr,tn,hn,wn;if(Y.listener!==null&&Y.listener("open",Y),Y.tag=null,Y.anchor=null,Y.kind=null,Y.result=null,kt=Ut=Ht=fi===_t||ji===_t,Ct&&jn(Y,!0,-1)&&(Sr=!0,Y.lineIndent>nt?nr=1:Y.lineIndent===nt?nr=0:Y.lineIndent<nt&&(nr=-1)),nr===1)for(;Do(Y)||Vo(Y);)jn(Y,!0,-1)?(Sr=!0,Ht=kt,Y.lineIndent>nt?nr=1:Y.lineIndent===nt?nr=0:Y.lineIndent<nt&&(nr=-1)):Ht=!1;if(Ht&&(Ht=Sr||Et),(nr===1||fi===_t)&&(Ui===_t||Us===_t?hn=nt:hn=nt+1,wn=Y.position-Y.lineStart,nr===1?Ht&&(No(Y,wn)||Ba(Y,wn,hn))||Oo(Y,hn)?_r=!0:(Ut&&po(Y,hn)||vs(Y,hn)||ko(Y,hn)?_r=!0:zo(Y)?(_r=!0,(Y.tag!==null||Y.anchor!==null)&&yn(Y,"alias node should not have any properties")):Io(Y,hn,Ui===_t)&&(_r=!0,Y.tag===null&&(Y.tag="?")),Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Y.result)):nr===0&&(_r=Ht&&No(Y,wn))),Y.tag===null)Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Y.result);else if(Y.tag==="?"){for(Y.result!==null&&Y.kind!=="scalar"&&yn(Y,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Y.kind+'"'),Nr=0,Yr=Y.implicitTypes.length;Nr<Yr;Nr+=1)if(tn=Y.implicitTypes[Nr],tn.resolve(Y.result)){Y.result=tn.construct(Y.result),Y.tag=tn.tag,Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Y.result);break}}else if(Y.tag!=="!"){if(ca.call(Y.typeMap[Y.kind||"fallback"],Y.tag))tn=Y.typeMap[Y.kind||"fallback"][Y.tag];else for(tn=null,jr=Y.typeMap.multi[Y.kind||"fallback"],Nr=0,Yr=jr.length;Nr<Yr;Nr+=1)if(Y.tag.slice(0,jr[Nr].tag.length)===jr[Nr].tag){tn=jr[Nr];break}tn||yn(Y,"unknown tag !<"+Y.tag+">"),Y.result!==null&&tn.kind!==Y.kind&&yn(Y,"unacceptable node kind for !<"+Y.tag+'> tag; it should be "'+tn.kind+'", not "'+Y.kind+'"'),tn.resolve(Y.result,Y.tag)?(Y.result=tn.construct(Y.result,Y.tag),Y.anchor!==null&&(Y.anchorMap[Y.anchor]=Y.result)):yn(Y,"cannot resolve a node with !<"+Y.tag+"> explicit tag")}return Y.listener!==null&&Y.listener("close",Y),Y.tag!==null||Y.anchor!==null||_r}function Ws(Y){var nt=Y.position,_t,Ct,Et,kt=!1,Ut;for(Y.version=null,Y.checkLineBreaks=Y.legacy,Y.tagMap=Object.create(null),Y.anchorMap=Object.create(null);(Ut=Y.input.charCodeAt(Y.position))!==0&&(jn(Y,!0,-1),Ut=Y.input.charCodeAt(Y.position),!(Y.lineIndent>0||Ut!==37));){for(kt=!0,Ut=Y.input.charCodeAt(++Y.position),_t=Y.position;Ut!==0&&!_i(Ut);)Ut=Y.input.charCodeAt(++Y.position);for(Ct=Y.input.slice(_t,Y.position),Et=[],Ct.length<1&&yn(Y,"directive name must not be less than one character in length");Ut!==0;){for(;Aa(Ut);)Ut=Y.input.charCodeAt(++Y.position);if(Ut===35){do Ut=Y.input.charCodeAt(++Y.position);while(Ut!==0&&!Di(Ut));break}if(Di(Ut))break;for(_t=Y.position;Ut!==0&&!_i(Ut);)Ut=Y.input.charCodeAt(++Y.position);Et.push(Y.input.slice(_t,Y.position))}Ut!==0&&za(Y),ca.call(zs,Ct)?zs[Ct](Y,Ct,Et):bs(Y,'unknown document directive "'+Ct+'"')}if(jn(Y,!0,-1),Y.lineIndent===0&&Y.input.charCodeAt(Y.position)===45&&Y.input.charCodeAt(Y.position+1)===45&&Y.input.charCodeAt(Y.position+2)===45?(Y.position+=3,jn(Y,!0,-1)):kt&&yn(Y,"directives end mark is expected"),Za(Y,Y.lineIndent-1,fi,!1,!0),jn(Y,!0,-1),Y.checkLineBreaks&&Ca.test(Y.input.slice(nt,Y.position))&&bs(Y,"non-ASCII line breaks are interpreted as content"),Y.documents.push(Y.result),Y.position===Y.lineStart&&wa(Y)){Y.input.charCodeAt(Y.position)===46&&(Y.position+=3,jn(Y,!0,-1));return}if(Y.position<Y.length-1)yn(Y,"end of the stream or a document separator is expected");else return}function Ja(Y,nt){Y=String(Y),nt=nt||{},Y.length!==0&&(Y.charCodeAt(Y.length-1)!==10&&Y.charCodeAt(Y.length-1)!==13&&(Y+=`
`),Y.charCodeAt(0)===65279&&(Y=Y.slice(1)));var _t=new qo(Y,nt),Ct=Y.indexOf("\0");for(Ct!==-1&&(_t.position=Ct,yn(_t,"null byte is not allowed in input")),_t.input+="\0";_t.input.charCodeAt(_t.position)===32;)_t.lineIndent+=1,_t.position+=1;for(;_t.position<_t.length-1;)Ws(_t);return _t.documents}function es(Y,nt,_t){nt!==null&&typeof nt=="object"&&typeof _t>"u"&&(_t=nt,nt=null);var Ct=Ja(Y,_t);if(typeof nt!="function")return Ct;for(var Et=0,kt=Ct.length;Et<kt;Et+=1)nt(Ct[Et])}function Mo(Y,nt){var _t=Ja(Y,nt);if(_t.length!==0){if(_t.length===1)return _t[0];throw new Si("expected a single document in the stream, but found more")}}var Xe=es,ht=Mo,Ot={loadAll:Xe,load:ht},tr=Object.prototype.toString,dr=Object.prototype.hasOwnProperty,vr=65279,$r=9,Zr=10,_n=13,en=32,Tn=33,Nn=34,Ln=35,ai=37,wi=38,Mi=39,Ki=42,bi=44,$i=45,yi=58,Ra=61,si=62,Rn=63,Wn=64,Jn=91,Qi=93,Ua=96,Tt=123,De=124,qe=125,We={};We[0]="\\0",We[7]="\\a",We[8]="\\b",We[9]="\\t",We[10]="\\n",We[11]="\\v",We[12]="\\f",We[13]="\\r",We[27]="\\e",We[34]='\\"',We[92]="\\\\",We[133]="\\N",We[160]="\\_",We[8232]="\\L",We[8233]="\\P";var at=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],xt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Rt(Y,nt){var _t,Ct,Et,kt,Ut,Ht,nr;if(nt===null)return{};for(_t={},Ct=Object.keys(nt),Et=0,kt=Ct.length;Et<kt;Et+=1)Ut=Ct[Et],Ht=String(nt[Ut]),Ut.slice(0,2)==="!!"&&(Ut="tag:yaml.org,2002:"+Ut.slice(2)),nr=Y.compiledTypeMap.fallback[Ut],nr&&dr.call(nr.styleAliases,Ht)&&(Ht=nr.styleAliases[Ht]),_t[Ut]=Ht;return _t}function qt(Y){var nt,_t,Ct;if(nt=Y.toString(16).toUpperCase(),Y<=255)_t="x",Ct=2;else if(Y<=65535)_t="u",Ct=4;else if(Y<=4294967295)_t="U",Ct=8;else throw new Si("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+_t+ui.repeat("0",Ct-nt.length)+nt}var Kt=1,rr=2;function mr(Y){this.schema=Y.schema||Xa,this.indent=Math.max(1,Y.indent||2),this.noArrayIndent=Y.noArrayIndent||!1,this.skipInvalid=Y.skipInvalid||!1,this.flowLevel=ui.isNothing(Y.flowLevel)?-1:Y.flowLevel,this.styleMap=Rt(this.schema,Y.styles||null),this.sortKeys=Y.sortKeys||!1,this.lineWidth=Y.lineWidth||80,this.noRefs=Y.noRefs||!1,this.noCompatMode=Y.noCompatMode||!1,this.condenseFlow=Y.condenseFlow||!1,this.quotingType=Y.quotingType==='"'?rr:Kt,this.forceQuotes=Y.forceQuotes||!1,this.replacer=typeof Y.replacer=="function"?Y.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Fr(Y,nt){for(var _t=ui.repeat(" ",nt),Ct=0,Et=-1,kt="",Ut,Ht=Y.length;Ct<Ht;)Et=Y.indexOf(`
`,Ct),Et===-1?(Ut=Y.slice(Ct),Ct=Ht):(Ut=Y.slice(Ct,Et+1),Ct=Et+1),Ut.length&&Ut!==`
`&&(kt+=_t),kt+=Ut;return kt}function Vr(Y,nt){return`
`+ui.repeat(" ",Y.indent*nt)}function zr(Y,nt){var _t,Ct,Et;for(_t=0,Ct=Y.implicitTypes.length;_t<Ct;_t+=1)if(Et=Y.implicitTypes[_t],Et.resolve(nt))return!0;return!1}function Hr(Y){return Y===en||Y===$r}function rn(Y){return 32<=Y&&Y<=126||161<=Y&&Y<=55295&&Y!==8232&&Y!==8233||57344<=Y&&Y<=65533&&Y!==vr||65536<=Y&&Y<=1114111}function ln(Y){return rn(Y)&&Y!==vr&&Y!==_n&&Y!==Zr}function mn(Y,nt,_t){var Ct=ln(Y),Et=Ct&&!Hr(Y);return(_t?Ct:Ct&&Y!==bi&&Y!==Jn&&Y!==Qi&&Y!==Tt&&Y!==qe)&&Y!==Ln&&!(nt===yi&&!Et)||ln(nt)&&!Hr(nt)&&Y===Ln||nt===yi&&Et}function xn(Y){return rn(Y)&&Y!==vr&&!Hr(Y)&&Y!==$i&&Y!==Rn&&Y!==yi&&Y!==bi&&Y!==Jn&&Y!==Qi&&Y!==Tt&&Y!==qe&&Y!==Ln&&Y!==wi&&Y!==Ki&&Y!==Tn&&Y!==De&&Y!==Ra&&Y!==si&&Y!==Mi&&Y!==Nn&&Y!==ai&&Y!==Wn&&Y!==Ua}function An(Y){return!Hr(Y)&&Y!==yi}function qn(Y,nt){var _t=Y.charCodeAt(nt),Ct;return _t>=55296&&_t<=56319&&nt+1<Y.length&&(Ct=Y.charCodeAt(nt+1),Ct>=56320&&Ct<=57343)?(_t-55296)*1024+Ct-56320+65536:_t}function Pn(Y){var nt=/^\n* /;return nt.test(Y)}var Xn=1,Vn=2,Qn=3,ei=4,di=5;function Zi(Y,nt,_t,Ct,Et,kt,Ut,Ht){var nr,Sr=0,_r=null,Nr=!1,Yr=!1,jr=Ct!==-1,tn=-1,hn=xn(qn(Y,0))&&An(qn(Y,Y.length-1));if(nt||Ut)for(nr=0;nr<Y.length;Sr>=65536?nr+=2:nr++){if(Sr=qn(Y,nr),!rn(Sr))return di;hn=hn&&mn(Sr,_r,Ht),_r=Sr}else{for(nr=0;nr<Y.length;Sr>=65536?nr+=2:nr++){if(Sr=qn(Y,nr),Sr===Zr)Nr=!0,jr&&(Yr=Yr||nr-tn-1>Ct&&Y[tn+1]!==" ",tn=nr);else if(!rn(Sr))return di;hn=hn&&mn(Sr,_r,Ht),_r=Sr}Yr=Yr||jr&&nr-tn-1>Ct&&Y[tn+1]!==" "}return!Nr&&!Yr?hn&&!Ut&&!Et(Y)?Xn:kt===rr?di:Vn:_t>9&&Pn(Y)?di:Ut?kt===rr?di:Vn:Yr?ei:Qn}function ci(Y,nt,_t,Ct,Et){Y.dump=function(){if(nt.length===0)return Y.quotingType===rr?'""':"''";if(!Y.noCompatMode&&(at.indexOf(nt)!==-1||xt.test(nt)))return Y.quotingType===rr?'"'+nt+'"':"'"+nt+"'";var kt=Y.indent*Math.max(1,_t),Ut=Y.lineWidth===-1?-1:Math.max(Math.min(Y.lineWidth,40),Y.lineWidth-kt),Ht=Ct||Y.flowLevel>-1&&_t>=Y.flowLevel;function nr(Sr){return zr(Y,Sr)}switch(Zi(nt,Ht,Y.indent,Ut,nr,Y.quotingType,Y.forceQuotes&&!Ct,Et)){case Xn:return nt;case Vn:return"'"+nt.replace(/'/g,"''")+"'";case Qn:return"|"+ts(nt,Y.indent)+Ji(Fr(nt,kt));case ei:return">"+ts(nt,Y.indent)+Ji(Fr(Li(nt,Ut),kt));case di:return'"'+Ys(nt)+'"';default:throw new Si("impossible error: invalid scalar style")}}()}function ts(Y,nt){var _t=Pn(Y)?String(nt):"",Ct=Y[Y.length-1]===`
`,Et=Ct&&(Y[Y.length-2]===`
`||Y===`
`),kt=Et?"+":Ct?"":"-";return _t+kt+`
`}function Ji(Y){return Y[Y.length-1]===`
`?Y.slice(0,-1):Y}function Li(Y,nt){for(var _t=/(\n+)([^\n]*)/g,Ct=function(){var Sr=Y.indexOf(`
`);return Sr=Sr!==-1?Sr:Y.length,_t.lastIndex=Sr,Ha(Y.slice(0,Sr),nt)}(),Et=Y[0]===`
`||Y[0]===" ",kt,Ut;Ut=_t.exec(Y);){var Ht=Ut[1],nr=Ut[2];kt=nr[0]===" ",Ct+=Ht+(!Et&&!kt&&nr!==""?`
`:"")+Ha(nr,nt),Et=kt}return Ct}function Ha(Y,nt){if(Y===""||Y[0]===" ")return Y;for(var _t=/ [^ ]/g,Ct,Et=0,kt,Ut=0,Ht=0,nr="";Ct=_t.exec(Y);)Ht=Ct.index,Ht-Et>nt&&(kt=Ut>Et?Ut:Ht,nr+=`
`+Y.slice(Et,kt),Et=kt+1),Ut=Ht;return nr+=`
`,Y.length-Et>nt&&Ut>Et?nr+=Y.slice(Et,Ut)+`
`+Y.slice(Ut+1):nr+=Y.slice(Et),nr.slice(1)}function Ys(Y){for(var nt="",_t=0,Ct,Et=0;Et<Y.length;_t>=65536?Et+=2:Et++)_t=qn(Y,Et),Ct=We[_t],!Ct&&rn(_t)?(nt+=Y[Et],_t>=65536&&(nt+=Y[Et+1])):nt+=Ct||qt(_t);return nt}function js(Y,nt,_t){var Ct="",Et=Y.tag,kt,Ut,Ht;for(kt=0,Ut=_t.length;kt<Ut;kt+=1)Ht=_t[kt],Y.replacer&&(Ht=Y.replacer.call(_t,String(kt),Ht)),(ta(Y,nt,Ht,!1,!1)||typeof Ht>"u"&&ta(Y,nt,null,!1,!1))&&(Ct!==""&&(Ct+=","+(Y.condenseFlow?"":" ")),Ct+=Y.dump);Y.tag=Et,Y.dump="["+Ct+"]"}function Lo(Y,nt,_t,Ct){var Et="",kt=Y.tag,Ut,Ht,nr;for(Ut=0,Ht=_t.length;Ut<Ht;Ut+=1)nr=_t[Ut],Y.replacer&&(nr=Y.replacer.call(_t,String(Ut),nr)),(ta(Y,nt+1,nr,!0,!0,!1,!0)||typeof nr>"u"&&ta(Y,nt+1,null,!0,!0,!1,!0))&&((!Ct||Et!=="")&&(Et+=Vr(Y,nt)),Y.dump&&Zr===Y.dump.charCodeAt(0)?Et+="-":Et+="- ",Et+=Y.dump);Y.tag=kt,Y.dump=Et||"[]"}function rs(Y,nt,_t){var Ct="",Et=Y.tag,kt=Object.keys(_t),Ut,Ht,nr,Sr,_r;for(Ut=0,Ht=kt.length;Ut<Ht;Ut+=1)_r="",Ct!==""&&(_r+=", "),Y.condenseFlow&&(_r+='"'),nr=kt[Ut],Sr=_t[nr],Y.replacer&&(Sr=Y.replacer.call(_t,nr,Sr)),ta(Y,nt,nr,!1,!1)&&(Y.dump.length>1024&&(_r+="? "),_r+=Y.dump+(Y.condenseFlow?'"':"")+":"+(Y.condenseFlow?"":" "),ta(Y,nt,Sr,!1,!1)&&(_r+=Y.dump,Ct+=_r));Y.tag=Et,Y.dump="{"+Ct+"}"}function ns(Y,nt,_t,Ct){var Et="",kt=Y.tag,Ut=Object.keys(_t),Ht,nr,Sr,_r,Nr,Yr;if(Y.sortKeys===!0)Ut.sort();else if(typeof Y.sortKeys=="function")Ut.sort(Y.sortKeys);else if(Y.sortKeys)throw new Si("sortKeys must be a boolean or a function");for(Ht=0,nr=Ut.length;Ht<nr;Ht+=1)Yr="",(!Ct||Et!=="")&&(Yr+=Vr(Y,nt)),Sr=Ut[Ht],_r=_t[Sr],Y.replacer&&(_r=Y.replacer.call(_t,Sr,_r)),ta(Y,nt+1,Sr,!0,!0,!0)&&(Nr=Y.tag!==null&&Y.tag!=="?"||Y.dump&&Y.dump.length>1024,Nr&&(Y.dump&&Zr===Y.dump.charCodeAt(0)?Yr+="?":Yr+="? "),Yr+=Y.dump,Nr&&(Yr+=Vr(Y,nt)),ta(Y,nt+1,_r,!0,Nr)&&(Y.dump&&Zr===Y.dump.charCodeAt(0)?Yr+=":":Yr+=": ",Yr+=Y.dump,Et+=Yr));Y.tag=kt,Y.dump=Et||"{}"}function ea(Y,nt,_t){var Ct,Et,kt,Ut,Ht,nr;for(Et=_t?Y.explicitTypes:Y.implicitTypes,kt=0,Ut=Et.length;kt<Ut;kt+=1)if(Ht=Et[kt],(Ht.instanceOf||Ht.predicate)&&(!Ht.instanceOf||typeof nt=="object"&&nt instanceof Ht.instanceOf)&&(!Ht.predicate||Ht.predicate(nt))){if(_t?Ht.multi&&Ht.representName?Y.tag=Ht.representName(nt):Y.tag=Ht.tag:Y.tag="?",Ht.represent){if(nr=Y.styleMap[Ht.tag]||Ht.defaultStyle,tr.call(Ht.represent)==="[object Function]")Ct=Ht.represent(nt,nr);else if(dr.call(Ht.represent,nr))Ct=Ht.represent[nr](nt,nr);else throw new Si("!<"+Ht.tag+'> tag resolver accepts not "'+nr+'" style');Y.dump=Ct}return!0}return!1}function ta(Y,nt,_t,Ct,Et,kt,Ut){Y.tag=null,Y.dump=_t,ea(Y,_t,!1)||ea(Y,_t,!0);var Ht=tr.call(Y.dump),nr=Ct,Sr;Ct&&(Ct=Y.flowLevel<0||Y.flowLevel>nt);var _r=Ht==="[object Object]"||Ht==="[object Array]",Nr,Yr;if(_r&&(Nr=Y.duplicates.indexOf(_t),Yr=Nr!==-1),(Y.tag!==null&&Y.tag!=="?"||Yr||Y.indent!==2&&nt>0)&&(Et=!1),Yr&&Y.usedDuplicates[Nr])Y.dump="*ref_"+Nr;else{if(_r&&Yr&&!Y.usedDuplicates[Nr]&&(Y.usedDuplicates[Nr]=!0),Ht==="[object Object]")Ct&&Object.keys(Y.dump).length!==0?(ns(Y,nt,Y.dump,Et),Yr&&(Y.dump="&ref_"+Nr+Y.dump)):(rs(Y,nt,Y.dump),Yr&&(Y.dump="&ref_"+Nr+" "+Y.dump));else if(Ht==="[object Array]")Ct&&Y.dump.length!==0?(Y.noArrayIndent&&!Ut&&nt>0?Lo(Y,nt-1,Y.dump,Et):Lo(Y,nt,Y.dump,Et),Yr&&(Y.dump="&ref_"+Nr+Y.dump)):(js(Y,nt,Y.dump),Yr&&(Y.dump="&ref_"+Nr+" "+Y.dump));else if(Ht==="[object String]")Y.tag!=="?"&&ci(Y,Y.dump,nt,kt,nr);else{if(Ht==="[object Undefined]")return!1;if(Y.skipInvalid)return!1;throw new Si("unacceptable kind of an object to dump "+Ht)}Y.tag!==null&&Y.tag!=="?"&&(Sr=encodeURI(Y.tag[0]==="!"?Y.tag.slice(1):Y.tag).replace(/!/g,"%21"),Y.tag[0]==="!"?Sr="!"+Sr:Sr.slice(0,18)==="tag:yaml.org,2002:"?Sr="!!"+Sr.slice(18):Sr="!<"+Sr+">",Y.dump=Sr+" "+Y.dump)}return!0}function Ho(Y,nt){var _t=[],Ct=[],Et,kt;for(is(Y,_t,Ct),Et=0,kt=Ct.length;Et<kt;Et+=1)nt.duplicates.push(_t[Ct[Et]]);nt.usedDuplicates=new Array(kt)}function is(Y,nt,_t){var Ct,Et,kt;if(Y!==null&&typeof Y=="object")if(Et=nt.indexOf(Y),Et!==-1)_t.indexOf(Et)===-1&&_t.push(Et);else if(nt.push(Y),Array.isArray(Y))for(Et=0,kt=Y.length;Et<kt;Et+=1)is(Y[Et],nt,_t);else for(Ct=Object.keys(Y),Et=0,kt=Ct.length;Et<kt;Et+=1)is(Y[Ct[Et]],nt,_t)}function jo(Y,nt){nt=nt||{};var _t=new mr(nt);_t.noRefs||Ho(Y,_t);var Ct=Y;return _t.replacer&&(Ct=_t.replacer.call({"":Ct},"",Ct)),ta(_t,0,Ct,!0,!0)?_t.dump+`
`:""}var Xs=jo,Ks={dump:Xs};function Qs(Y,nt){return function(){throw new Error("Function yaml."+Y+" is removed in js-yaml 4. Use yaml."+nt+" instead, which is now safe by default.")}}var Po=ri,Jo=cs,tl=yo,rl=Os,Wo=Ns,Xo=Xa,Ko=Ot.load,Yo=Ot.loadAll,Fo=Ks.dump,Bo=Si,hl={binary:Wi,float:ks,map:ro,null:hs,pairs:lo,set:co,timestamp:so,bool:Cs,int:ms,merge:Ma,omap:Bs,seq:$a,str:us},fl=Qs("safeLoad","load"),pl=Qs("safeLoadAll","loadAll"),ml=Qs("safeDump","dump"),_l={Type:Po,Schema:Jo,FAILSAFE_SCHEMA:tl,JSON_SCHEMA:rl,CORE_SCHEMA:Wo,DEFAULT_SCHEMA:Xo,load:Ko,loadAll:Yo,dump:Fo,YAMLException:Bo,types:hl,safeLoad:fl,safeLoadAll:pl,safeDump:ml},bl={name:"frontmatter",transform(Y){return Y.beforeParse.tap((nt,_t)=>{const Ct=nt.parse;nt.parse=X(Ct,{before(Et){const[kt]=Et.args;if(!kt.startsWith(`---
`))return;const Ut=kt.indexOf(`
---
`);if(Ut<0)return;const Ht=kt.slice(4,Ut);let nr;try{var Sr;nr=_l.load(Ht),(Sr=nr)!=null&&Sr.markmap&&(nr.markmap=yl(nr.markmap))}catch{return}_t.frontmatter=nr;const _r=Ut+5;Et.args[0]=kt.slice(_r)},after(){nt.parse=Ct}})}),{}}};function yl(Y){if(Y)return["color","extraJs","extraCss"].forEach(nt=>{Y[nt]!=null&&(Y[nt]=vl(Y[nt]))}),["duration","maxWidth","initialExpandLevel"].forEach(nt=>{Y[nt]!=null&&(Y[nt]=Sl(Y[nt]))}),Y}function vl(Y){var nt;let _t;return typeof Y=="string"?_t=[Y]:Array.isArray(Y)&&(_t=Y.filter(Ct=>Ct&&typeof Ct=="string")),(nt=_t)!=null&&nt.length?_t:void 0}function Sl(Y){if(!isNaN(+Y))return+Y}const al=[bl,Cn,Qr];function sl(Y){if(Y.type==="heading")Y.children=Y.children.filter(Et=>Et.type!=="paragraph");else if(Y.type==="list_item"){var nt;Y.children=Y.children.filter(Et=>["paragraph","fence"].includes(Et.type)?(Y.content||(Y.content=Et.content,Y.payload=$({},Y.payload,Et.payload)),!1):!0),((nt=Y.payload)==null?void 0:nt.index)!=null&&(Y.content=`${Y.payload.index}. ${Y.content}`)}else if(Y.type==="ordered_list"){var _t,Ct;let Et=(_t=(Ct=Y.payload)==null?void 0:Ct.startIndex)!=null?_t:1;Y.children.forEach(kt=>{kt.type==="list_item"&&(kt.payload=$({},kt.payload,{index:Et}),Et+=1)})}Y.children.length===0?delete Y.children:(Y.children.forEach(Et=>sl(Et)),Y.children.length===1&&!Y.children[0].content&&(Y.children=Y.children[0].children))}function ol(Y,nt=0){var _t;Y.depth=nt,(_t=Y.children)==null||_t.forEach(Ct=>{ol(Ct,nt+1)})}class xl{constructor(nt=al){this.assetsMap={},this.plugins=nt,this.hooks=En();const _t={};for(const{name:Et,transform:kt}of nt)_t[Et]=kt(this.hooks);this.assetsMap=_t;const Ct=new bn("full",{html:!0,breaks:!0,maxNesting:1/0});Ct.renderer.rules.htmltag=X(Ct.renderer.rules.htmltag,{after:Et=>{this.hooks.htmltag.call(Et)}}),this.md=Ct,this.hooks.parser.call(Ct)}buildTree(nt){const{md:_t}=this,Ct={type:"root",depth:0,content:"",children:[],payload:{}},Et=[Ct];let kt=0;for(const nr of nt){let Sr=Et[Et.length-1];if(nr.type.endsWith("_open")){const _r=nr.type.slice(0,-5),Nr={};if(nr.lines&&(Nr.lines=nr.lines),_r==="heading")for(kt=nr.hLevel;((Ut=Sr)==null?void 0:Ut.depth)>=kt;){var Ut;Et.pop(),Sr=Et[Et.length-1]}else{var Ht;kt=Math.max(kt,((Ht=Sr)==null?void 0:Ht.depth)||0)+1,_r==="ordered_list"&&(Nr.startIndex=nr.order)}const Yr={type:_r,depth:kt,payload:Nr,content:"",children:[]};Sr.children.push(Yr),Et.push(Yr)}else if(Sr){if(nr.type===`${Sr.type}_close`)Sr.type==="heading"?kt=Sr.depth:(Et.pop(),kt=0);else if(nr.type==="inline"){const _r=this.hooks.htmltag.tap(Yr=>{const jr=Yr.result.match(/^<!--([\s\S]*?)-->$/),tn=jr==null?void 0:jr[1].trim().split(" ");tn[0]==="fold"&&(Sr.payload.fold=["all","recursively"].includes(tn[1])?2:1,Yr.result="")}),Nr=_t.renderer.render([nr],_t.options,{});_r(),Sr.content=`${Sr.content||""}${Nr}`}else if(nr.type==="fence"){let _r=_t.renderer.render([nr],_t.options,{});const Nr=_r.match(/<code( class="[^"]*")>/);Nr&&(_r=_r.replace("<pre>",`<pre${Nr[1]}>`)),Sr.children.push({type:nr.type,depth:kt+1,content:_r,children:[]})}}else continue}return Ct}transform(nt){var _t;const Ct={features:{}};this.hooks.beforeParse.call(this.md,Ct);const Et=this.md.parse(nt,{});this.hooks.afterParse.call(this.md,Ct);let kt=this.buildTree(Et);return sl(kt),((_t=kt.children)==null?void 0:_t.length)===1&&(kt=kt.children[0]),ol(kt),$({},Ct,{root:kt})}getAssets(nt){var _t;const Ct=[],Et=[];(_t=nt)!=null||(nt=this.plugins.map(kt=>kt.name));for(const kt of nt.map(Ut=>this.assetsMap[Ut]))kt&&(kt.styles&&Ct.push(...kt.styles),kt.scripts&&Et.push(...kt.scripts));return{styles:Ct,scripts:Et}}getUsedAssets(nt){const _t=this.plugins.map(Ct=>Ct.name).filter(Ct=>nt[Ct]);return this.getAssets(_t)}}const El={"markmap-lib":"0.14.4",d3:"6.7.0"};M.Transformer=xl,M.builtInPlugins=al,M.fillTemplate=Ee,M.transformerVersions=El})})(browser,browser.exports);var browserExports=browser.exports;/*! markmap-common v0.14.2 | MIT License */class Hook{constructor(){this.listeners=[]}tap(m){return this.listeners.push(m),()=>this.revoke(m)}revoke(m){const M=this.listeners.indexOf(m);M>=0&&this.listeners.splice(M,1)}revokeAll(){this.listeners.splice(0)}call(...m){for(const M of this.listeners)M(...m)}}const uniqId=Math.random().toString(36).slice(2,8);let globalIndex=0;function getId(){return globalIndex+=1,`mm-${uniqId}-${globalIndex}`}function noop$1(){}function walkTree(k,m,M="children"){const G=(V,q)=>m(V,()=>{var $;($=V[M])==null||$.forEach(D=>{G(D,V)})},q);G(k)}function arrayFrom(k){if(Array.from)return Array.from(k);const m=[];for(let M=0;M<k.length;M+=1)m.push(k[M]);return m}function addClass(k,...m){const M=(k||"").split(" ").filter(Boolean);return m.forEach(G=>{G&&M.indexOf(G)<0&&M.push(G)}),M.join(" ")}function childSelector(k){if(typeof k=="string"){const M=k;k=G=>G.tagName===M}const m=k;return function(){let G=arrayFrom(this.childNodes);return m&&(G=G.filter(V=>m(V))),G}}function max$1(k,m){let M;if(m===void 0)for(const G of k)G!=null&&(M<G||M===void 0&&G>=G)&&(M=G);else{let G=-1;for(let V of k)(V=m(V,++G,k))!=null&&(M<V||M===void 0&&V>=V)&&(M=V)}return M}function min$2(k,m){let M;if(m===void 0)for(const G of k)G!=null&&(M>G||M===void 0&&G>=G)&&(M=G);else{let G=-1;for(let V of k)(V=m(V,++G,k))!=null&&(M>V||M===void 0&&V>=V)&&(M=V)}return M}function minIndex(k,m){let M,G=-1,V=-1;if(m===void 0)for(const q of k)++V,q!=null&&(M>q||M===void 0&&q>=q)&&(M=q,G=V);else for(let q of k)(q=m(q,++V,k))!=null&&(M>q||M===void 0&&q>=q)&&(M=q,G=V);return G}var noop={value:()=>{}};function dispatch(){for(var k=0,m=arguments.length,M={},G;k<m;++k){if(!(G=arguments[k]+"")||G in M||/[\s.]/.test(G))throw new Error("illegal type: "+G);M[G]=[]}return new Dispatch(M)}function Dispatch(k){this._=k}function parseTypenames$1(k,m){return k.trim().split(/^|\s+/).map(function(M){var G="",V=M.indexOf(".");if(V>=0&&(G=M.slice(V+1),M=M.slice(0,V)),M&&!m.hasOwnProperty(M))throw new Error("unknown type: "+M);return{type:M,name:G}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(k,m){var M=this._,G=parseTypenames$1(k+"",M),V,q=-1,$=G.length;if(arguments.length<2){for(;++q<$;)if((V=(k=G[q]).type)&&(V=get$2(M[V],k.name)))return V;return}if(m!=null&&typeof m!="function")throw new Error("invalid callback: "+m);for(;++q<$;)if(V=(k=G[q]).type)M[V]=set$2(M[V],k.name,m);else if(m==null)for(V in M)M[V]=set$2(M[V],k.name,null);return this},copy:function(){var k={},m=this._;for(var M in m)k[M]=m[M].slice();return new Dispatch(k)},call:function(k,m){if((V=arguments.length-2)>0)for(var M=new Array(V),G=0,V,q;G<V;++G)M[G]=arguments[G+2];if(!this._.hasOwnProperty(k))throw new Error("unknown type: "+k);for(q=this._[k],G=0,V=q.length;G<V;++G)q[G].value.apply(m,M)},apply:function(k,m,M){if(!this._.hasOwnProperty(k))throw new Error("unknown type: "+k);for(var G=this._[k],V=0,q=G.length;V<q;++V)G[V].value.apply(m,M)}};function get$2(k,m){for(var M=0,G=k.length,V;M<G;++M)if((V=k[M]).name===m)return V.value}function set$2(k,m,M){for(var G=0,V=k.length;G<V;++G)if(k[G].name===m){k[G]=noop,k=k.slice(0,G).concat(k.slice(G+1));break}return M!=null&&k.push({name:m,value:M}),k}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(k){var m=k+="",M=m.indexOf(":");return M>=0&&(m=k.slice(0,M))!=="xmlns"&&(k=k.slice(M+1)),namespaces.hasOwnProperty(m)?{space:namespaces[m],local:k}:k}function creatorInherit(k){return function(){var m=this.ownerDocument,M=this.namespaceURI;return M===xhtml&&m.documentElement.namespaceURI===xhtml?m.createElement(k):m.createElementNS(M,k)}}function creatorFixed(k){return function(){return this.ownerDocument.createElementNS(k.space,k.local)}}function creator(k){var m=namespace(k);return(m.local?creatorFixed:creatorInherit)(m)}function none(){}function selector(k){return k==null?none:function(){return this.querySelector(k)}}function selection_select(k){typeof k!="function"&&(k=selector(k));for(var m=this._groups,M=m.length,G=new Array(M),V=0;V<M;++V)for(var q=m[V],$=q.length,D=G[V]=new Array($),B,R,U=0;U<$;++U)(B=q[U])&&(R=k.call(B,B.__data__,U,q))&&("__data__"in B&&(R.__data__=B.__data__),D[U]=R);return new Selection$1(G,this._parents)}function array(k){return typeof k=="object"&&"length"in k?k:Array.from(k)}function empty(){return[]}function selectorAll(k){return k==null?empty:function(){return this.querySelectorAll(k)}}function arrayAll(k){return function(){var m=k.apply(this,arguments);return m==null?[]:array(m)}}function selection_selectAll(k){typeof k=="function"?k=arrayAll(k):k=selectorAll(k);for(var m=this._groups,M=m.length,G=[],V=[],q=0;q<M;++q)for(var $=m[q],D=$.length,B,R=0;R<D;++R)(B=$[R])&&(G.push(k.call(B,B.__data__,R,$)),V.push(B));return new Selection$1(G,V)}function matcher(k){return function(){return this.matches(k)}}function childMatcher(k){return function(m){return m.matches(k)}}var find=Array.prototype.find;function childFind(k){return function(){return find.call(this.children,k)}}function childFirst(){return this.firstElementChild}function selection_selectChild(k){return this.select(k==null?childFirst:childFind(typeof k=="function"?k:childMatcher(k)))}var filter=Array.prototype.filter;function children$1(){return this.children}function childrenFilter(k){return function(){return filter.call(this.children,k)}}function selection_selectChildren(k){return this.selectAll(k==null?children$1:childrenFilter(typeof k=="function"?k:childMatcher(k)))}function selection_filter(k){typeof k!="function"&&(k=matcher(k));for(var m=this._groups,M=m.length,G=new Array(M),V=0;V<M;++V)for(var q=m[V],$=q.length,D=G[V]=[],B,R=0;R<$;++R)(B=q[R])&&k.call(B,B.__data__,R,q)&&D.push(B);return new Selection$1(G,this._parents)}function sparse(k){return new Array(k.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(k,m){this.ownerDocument=k.ownerDocument,this.namespaceURI=k.namespaceURI,this._next=null,this._parent=k,this.__data__=m}EnterNode.prototype={constructor:EnterNode,appendChild:function(k){return this._parent.insertBefore(k,this._next)},insertBefore:function(k,m){return this._parent.insertBefore(k,m)},querySelector:function(k){return this._parent.querySelector(k)},querySelectorAll:function(k){return this._parent.querySelectorAll(k)}};function constant$3(k){return function(){return k}}function bindIndex(k,m,M,G,V,q){for(var $=0,D,B=m.length,R=q.length;$<R;++$)(D=m[$])?(D.__data__=q[$],G[$]=D):M[$]=new EnterNode(k,q[$]);for(;$<B;++$)(D=m[$])&&(V[$]=D)}function bindKey(k,m,M,G,V,q,$){var D,B,R=new Map,U=m.length,K=q.length,z=new Array(U),e;for(D=0;D<U;++D)(B=m[D])&&(z[D]=e=$.call(B,B.__data__,D,m)+"",R.has(e)?V[D]=B:R.set(e,B));for(D=0;D<K;++D)e=$.call(k,q[D],D,q)+"",(B=R.get(e))?(G[D]=B,B.__data__=q[D],R.delete(e)):M[D]=new EnterNode(k,q[D]);for(D=0;D<U;++D)(B=m[D])&&R.get(z[D])===B&&(V[D]=B)}function datum(k){return k.__data__}function selection_data(k,m){if(!arguments.length)return Array.from(this,datum);var M=m?bindKey:bindIndex,G=this._parents,V=this._groups;typeof k!="function"&&(k=constant$3(k));for(var q=V.length,$=new Array(q),D=new Array(q),B=new Array(q),R=0;R<q;++R){var U=G[R],K=V[R],z=K.length,e=array(k.call(U,U&&U.__data__,R,G)),ae=e.length,ie=D[R]=new Array(ae),he=$[R]=new Array(ae),J=B[R]=new Array(z);M(U,K,ie,he,J,e,m);for(var W=0,X=0,L,Q;W<ae;++W)if(L=ie[W]){for(W>=X&&(X=W+1);!(Q=he[X])&&++X<ae;);L._next=Q||null}}return $=new Selection$1($,G),$._enter=D,$._exit=B,$}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(k,m,M){var G=this.enter(),V=this,q=this.exit();return G=typeof k=="function"?k(G):G.append(k+""),m!=null&&(V=m(V)),M==null?q.remove():M(q),G&&V?G.merge(V).order():V}function selection_merge(k){if(!(k instanceof Selection$1))throw new Error("invalid merge");for(var m=this._groups,M=k._groups,G=m.length,V=M.length,q=Math.min(G,V),$=new Array(G),D=0;D<q;++D)for(var B=m[D],R=M[D],U=B.length,K=$[D]=new Array(U),z,e=0;e<U;++e)(z=B[e]||R[e])&&(K[e]=z);for(;D<G;++D)$[D]=m[D];return new Selection$1($,this._parents)}function selection_order(){for(var k=this._groups,m=-1,M=k.length;++m<M;)for(var G=k[m],V=G.length-1,q=G[V],$;--V>=0;)($=G[V])&&(q&&$.compareDocumentPosition(q)^4&&q.parentNode.insertBefore($,q),q=$);return this}function selection_sort(k){k||(k=ascending);function m(K,z){return K&&z?k(K.__data__,z.__data__):!K-!z}for(var M=this._groups,G=M.length,V=new Array(G),q=0;q<G;++q){for(var $=M[q],D=$.length,B=V[q]=new Array(D),R,U=0;U<D;++U)(R=$[U])&&(B[U]=R);B.sort(m)}return new Selection$1(V,this._parents).order()}function ascending(k,m){return k<m?-1:k>m?1:k>=m?0:NaN}function selection_call(){var k=arguments[0];return arguments[0]=this,k.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var k=this._groups,m=0,M=k.length;m<M;++m)for(var G=k[m],V=0,q=G.length;V<q;++V){var $=G[V];if($)return $}return null}function selection_size(){let k=0;for(const m of this)++k;return k}function selection_empty(){return!this.node()}function selection_each(k){for(var m=this._groups,M=0,G=m.length;M<G;++M)for(var V=m[M],q=0,$=V.length,D;q<$;++q)(D=V[q])&&k.call(D,D.__data__,q,V);return this}function attrRemove$1(k){return function(){this.removeAttribute(k)}}function attrRemoveNS$1(k){return function(){this.removeAttributeNS(k.space,k.local)}}function attrConstant$1(k,m){return function(){this.setAttribute(k,m)}}function attrConstantNS$1(k,m){return function(){this.setAttributeNS(k.space,k.local,m)}}function attrFunction$1(k,m){return function(){var M=m.apply(this,arguments);M==null?this.removeAttribute(k):this.setAttribute(k,M)}}function attrFunctionNS$1(k,m){return function(){var M=m.apply(this,arguments);M==null?this.removeAttributeNS(k.space,k.local):this.setAttributeNS(k.space,k.local,M)}}function selection_attr(k,m){var M=namespace(k);if(arguments.length<2){var G=this.node();return M.local?G.getAttributeNS(M.space,M.local):G.getAttribute(M)}return this.each((m==null?M.local?attrRemoveNS$1:attrRemove$1:typeof m=="function"?M.local?attrFunctionNS$1:attrFunction$1:M.local?attrConstantNS$1:attrConstant$1)(M,m))}function defaultView(k){return k.ownerDocument&&k.ownerDocument.defaultView||k.document&&k||k.defaultView}function styleRemove$1(k){return function(){this.style.removeProperty(k)}}function styleConstant$1(k,m,M){return function(){this.style.setProperty(k,m,M)}}function styleFunction$1(k,m,M){return function(){var G=m.apply(this,arguments);G==null?this.style.removeProperty(k):this.style.setProperty(k,G,M)}}function selection_style(k,m,M){return arguments.length>1?this.each((m==null?styleRemove$1:typeof m=="function"?styleFunction$1:styleConstant$1)(k,m,M??"")):styleValue(this.node(),k)}function styleValue(k,m){return k.style.getPropertyValue(m)||defaultView(k).getComputedStyle(k,null).getPropertyValue(m)}function propertyRemove(k){return function(){delete this[k]}}function propertyConstant(k,m){return function(){this[k]=m}}function propertyFunction(k,m){return function(){var M=m.apply(this,arguments);M==null?delete this[k]:this[k]=M}}function selection_property(k,m){return arguments.length>1?this.each((m==null?propertyRemove:typeof m=="function"?propertyFunction:propertyConstant)(k,m)):this.node()[k]}function classArray(k){return k.trim().split(/^|\s+/)}function classList$1(k){return k.classList||new ClassList(k)}function ClassList(k){this._node=k,this._names=classArray(k.getAttribute("class")||"")}ClassList.prototype={add:function(k){var m=this._names.indexOf(k);m<0&&(this._names.push(k),this._node.setAttribute("class",this._names.join(" ")))},remove:function(k){var m=this._names.indexOf(k);m>=0&&(this._names.splice(m,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(k){return this._names.indexOf(k)>=0}};function classedAdd(k,m){for(var M=classList$1(k),G=-1,V=m.length;++G<V;)M.add(m[G])}function classedRemove(k,m){for(var M=classList$1(k),G=-1,V=m.length;++G<V;)M.remove(m[G])}function classedTrue(k){return function(){classedAdd(this,k)}}function classedFalse(k){return function(){classedRemove(this,k)}}function classedFunction(k,m){return function(){(m.apply(this,arguments)?classedAdd:classedRemove)(this,k)}}function selection_classed(k,m){var M=classArray(k+"");if(arguments.length<2){for(var G=classList$1(this.node()),V=-1,q=M.length;++V<q;)if(!G.contains(M[V]))return!1;return!0}return this.each((typeof m=="function"?classedFunction:m?classedTrue:classedFalse)(M,m))}function textRemove(){this.textContent=""}function textConstant$1(k){return function(){this.textContent=k}}function textFunction$1(k){return function(){var m=k.apply(this,arguments);this.textContent=m??""}}function selection_text(k){return arguments.length?this.each(k==null?textRemove:(typeof k=="function"?textFunction$1:textConstant$1)(k)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(k){return function(){this.innerHTML=k}}function htmlFunction(k){return function(){var m=k.apply(this,arguments);this.innerHTML=m??""}}function selection_html(k){return arguments.length?this.each(k==null?htmlRemove:(typeof k=="function"?htmlFunction:htmlConstant)(k)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(k){var m=typeof k=="function"?k:creator(k);return this.select(function(){return this.appendChild(m.apply(this,arguments))})}function constantNull(){return null}function selection_insert(k,m){var M=typeof k=="function"?k:creator(k),G=m==null?constantNull:typeof m=="function"?m:selector(m);return this.select(function(){return this.insertBefore(M.apply(this,arguments),G.apply(this,arguments)||null)})}function remove(){var k=this.parentNode;k&&k.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var k=this.cloneNode(!1),m=this.parentNode;return m?m.insertBefore(k,this.nextSibling):k}function selection_cloneDeep(){var k=this.cloneNode(!0),m=this.parentNode;return m?m.insertBefore(k,this.nextSibling):k}function selection_clone(k){return this.select(k?selection_cloneDeep:selection_cloneShallow)}function selection_datum(k){return arguments.length?this.property("__data__",k):this.node().__data__}function contextListener(k){return function(m){k.call(this,m,this.__data__)}}function parseTypenames(k){return k.trim().split(/^|\s+/).map(function(m){var M="",G=m.indexOf(".");return G>=0&&(M=m.slice(G+1),m=m.slice(0,G)),{type:m,name:M}})}function onRemove(k){return function(){var m=this.__on;if(m){for(var M=0,G=-1,V=m.length,q;M<V;++M)q=m[M],(!k.type||q.type===k.type)&&q.name===k.name?this.removeEventListener(q.type,q.listener,q.options):m[++G]=q;++G?m.length=G:delete this.__on}}}function onAdd(k,m,M){return function(){var G=this.__on,V,q=contextListener(m);if(G){for(var $=0,D=G.length;$<D;++$)if((V=G[$]).type===k.type&&V.name===k.name){this.removeEventListener(V.type,V.listener,V.options),this.addEventListener(V.type,V.listener=q,V.options=M),V.value=m;return}}this.addEventListener(k.type,q,M),V={type:k.type,name:k.name,value:m,listener:q,options:M},G?G.push(V):this.__on=[V]}}function selection_on(k,m,M){var G=parseTypenames(k+""),V,q=G.length,$;if(arguments.length<2){var D=this.node().__on;if(D){for(var B=0,R=D.length,U;B<R;++B)for(V=0,U=D[B];V<q;++V)if(($=G[V]).type===U.type&&$.name===U.name)return U.value}return}for(D=m?onAdd:onRemove,V=0;V<q;++V)this.each(D(G[V],m,M));return this}function dispatchEvent(k,m,M){var G=defaultView(k),V=G.CustomEvent;typeof V=="function"?V=new V(m,M):(V=G.document.createEvent("Event"),M?(V.initEvent(m,M.bubbles,M.cancelable),V.detail=M.detail):V.initEvent(m,!1,!1)),k.dispatchEvent(V)}function dispatchConstant(k,m){return function(){return dispatchEvent(this,k,m)}}function dispatchFunction(k,m){return function(){return dispatchEvent(this,k,m.apply(this,arguments))}}function selection_dispatch(k,m){return this.each((typeof m=="function"?dispatchFunction:dispatchConstant)(k,m))}function*selection_iterator(){for(var k=this._groups,m=0,M=k.length;m<M;++m)for(var G=k[m],V=0,q=G.length,$;V<q;++V)($=G[V])&&(yield $)}var root=[null];function Selection$1(k,m){this._groups=k,this._parents=m}function selection(){return new Selection$1([[document.documentElement]],root)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(k){return typeof k=="string"?new Selection$1([[document.querySelector(k)]],[document.documentElement]):new Selection$1([[k]],root)}function sourceEvent(k){let m;for(;m=k.sourceEvent;)k=m;return k}function pointer(k,m){if(k=sourceEvent(k),m===void 0&&(m=k.currentTarget),m){var M=m.ownerSVGElement||m;if(M.createSVGPoint){var G=M.createSVGPoint();return G.x=k.clientX,G.y=k.clientY,G=G.matrixTransform(m.getScreenCTM().inverse()),[G.x,G.y]}if(m.getBoundingClientRect){var V=m.getBoundingClientRect();return[k.clientX-V.left-m.clientLeft,k.clientY-V.top-m.clientTop]}}return[k.pageX,k.pageY]}function noevent$1(k){k.preventDefault(),k.stopImmediatePropagation()}function dragDisable(k){var m=k.document.documentElement,M=select(k).on("dragstart.drag",noevent$1,!0);"onselectstart"in m?M.on("selectstart.drag",noevent$1,!0):(m.__noselect=m.style.MozUserSelect,m.style.MozUserSelect="none")}function yesdrag(k,m){var M=k.document.documentElement,G=select(k).on("dragstart.drag",null);m&&(G.on("click.drag",noevent$1,!0),setTimeout(function(){G.on("click.drag",null)},0)),"onselectstart"in M?G.on("selectstart.drag",null):(M.style.MozUserSelect=M.__noselect,delete M.__noselect)}function define(k,m,M){k.prototype=m.prototype=M,M.constructor=k}function extend(k,m){var M=Object.create(k.prototype);for(var G in m)M[G]=m[G];return M}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp("^rgb\\("+[reI,reI,reI]+"\\)$"),reRgbPercent=new RegExp("^rgb\\("+[reP,reP,reP]+"\\)$"),reRgbaInteger=new RegExp("^rgba\\("+[reI,reI,reI,reN]+"\\)$"),reRgbaPercent=new RegExp("^rgba\\("+[reP,reP,reP,reN]+"\\)$"),reHslPercent=new RegExp("^hsl\\("+[reN,reP,reP]+"\\)$"),reHslaPercent=new RegExp("^hsla\\("+[reN,reP,reP,reN]+"\\)$"),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy:function(k){return Object.assign(new this.constructor,this,k)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(k){var m,M;return k=(k+"").trim().toLowerCase(),(m=reHex.exec(k))?(M=m[1].length,m=parseInt(m[1],16),M===6?rgbn(m):M===3?new Rgb(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1):M===8?rgba(m>>24&255,m>>16&255,m>>8&255,(m&255)/255):M===4?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|m&240,((m&15)<<4|m&15)/255):null):(m=reRgbInteger.exec(k))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(k))?new Rgb(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=reRgbaInteger.exec(k))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(k))?rgba(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=reHslPercent.exec(k))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(k))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(k)?rgbn(named[k]):k==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(k){return new Rgb(k>>16&255,k>>8&255,k&255,1)}function rgba(k,m,M,G){return G<=0&&(k=m=M=NaN),new Rgb(k,m,M,G)}function rgbConvert(k){return k instanceof Color||(k=color(k)),k?(k=k.rgb(),new Rgb(k.r,k.g,k.b,k.opacity)):new Rgb}function rgb(k,m,M,G){return arguments.length===1?rgbConvert(k):new Rgb(k,m,M,G??1)}function Rgb(k,m,M,G){this.r=+k,this.g=+m,this.b=+M,this.opacity=+G}define(Rgb,rgb,extend(Color,{brighter:function(k){return k=k==null?brighter:Math.pow(brighter,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker:function(k){return k=k==null?darker:Math.pow(darker,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return"#"+hex(this.r)+hex(this.g)+hex(this.b)}function rgb_formatRgb(){var k=this.opacity;return k=isNaN(k)?1:Math.max(0,Math.min(1,k)),(k===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(k===1?")":", "+k+")")}function hex(k){return k=Math.max(0,Math.min(255,Math.round(k)||0)),(k<16?"0":"")+k.toString(16)}function hsla(k,m,M,G){return G<=0?k=m=M=NaN:M<=0||M>=1?k=m=NaN:m<=0&&(k=NaN),new Hsl(k,m,M,G)}function hslConvert(k){if(k instanceof Hsl)return new Hsl(k.h,k.s,k.l,k.opacity);if(k instanceof Color||(k=color(k)),!k)return new Hsl;if(k instanceof Hsl)return k;k=k.rgb();var m=k.r/255,M=k.g/255,G=k.b/255,V=Math.min(m,M,G),q=Math.max(m,M,G),$=NaN,D=q-V,B=(q+V)/2;return D?(m===q?$=(M-G)/D+(M<G)*6:M===q?$=(G-m)/D+2:$=(m-M)/D+4,D/=B<.5?q+V:2-q-V,$*=60):D=B>0&&B<1?0:$,new Hsl($,D,B,k.opacity)}function hsl(k,m,M,G){return arguments.length===1?hslConvert(k):new Hsl(k,m,M,G??1)}function Hsl(k,m,M,G){this.h=+k,this.s=+m,this.l=+M,this.opacity=+G}define(Hsl,hsl,extend(Color,{brighter:function(k){return k=k==null?brighter:Math.pow(brighter,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},darker:function(k){return k=k==null?darker:Math.pow(darker,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb:function(){var k=this.h%360+(this.h<0)*360,m=isNaN(k)||isNaN(this.s)?0:this.s,M=this.l,G=M+(M<.5?M:1-M)*m,V=2*M-G;return new Rgb(hsl2rgb(k>=240?k-240:k+120,V,G),hsl2rgb(k,V,G),hsl2rgb(k<120?k+240:k-120,V,G),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var k=this.opacity;return k=isNaN(k)?1:Math.max(0,Math.min(1,k)),(k===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(k===1?")":", "+k+")")}}));function hsl2rgb(k,m,M){return(k<60?m+(M-m)*k/60:k<180?M:k<240?m+(M-m)*(240-k)/60:m)*255}const constant$2=k=>()=>k;function linear(k,m){return function(M){return k+M*m}}function exponential(k,m,M){return k=Math.pow(k,M),m=Math.pow(m,M)-k,M=1/M,function(G){return Math.pow(k+G*m,M)}}function gamma(k){return(k=+k)==1?nogamma:function(m,M){return M-m?exponential(m,M,k):constant$2(isNaN(m)?M:m)}}function nogamma(k,m){var M=m-k;return M?linear(k,M):constant$2(isNaN(k)?m:k)}const interpolateRgb=function k(m){var M=gamma(m);function G(V,q){var $=M((V=rgb(V)).r,(q=rgb(q)).r),D=M(V.g,q.g),B=M(V.b,q.b),R=nogamma(V.opacity,q.opacity);return function(U){return V.r=$(U),V.g=D(U),V.b=B(U),V.opacity=R(U),V+""}}return G.gamma=k,G}(1);function interpolateNumber(k,m){return k=+k,m=+m,function(M){return k*(1-M)+m*M}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(k){return function(){return k}}function one(k){return function(m){return k(m)+""}}function interpolateString(k,m){var M=reA.lastIndex=reB.lastIndex=0,G,V,q,$=-1,D=[],B=[];for(k=k+"",m=m+"";(G=reA.exec(k))&&(V=reB.exec(m));)(q=V.index)>M&&(q=m.slice(M,q),D[$]?D[$]+=q:D[++$]=q),(G=G[0])===(V=V[0])?D[$]?D[$]+=V:D[++$]=V:(D[++$]=null,B.push({i:$,x:interpolateNumber(G,V)})),M=reB.lastIndex;return M<m.length&&(q=m.slice(M),D[$]?D[$]+=q:D[++$]=q),D.length<2?B[0]?one(B[0].x):zero(m):(m=B.length,function(R){for(var U=0,K;U<m;++U)D[(K=B[U]).i]=K.x(R);return D.join("")})}var degrees=180/Math.PI,identity$1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(k,m,M,G,V,q){var $,D,B;return($=Math.sqrt(k*k+m*m))&&(k/=$,m/=$),(B=k*M+m*G)&&(M-=k*B,G-=m*B),(D=Math.sqrt(M*M+G*G))&&(M/=D,G/=D,B/=D),k*G<m*M&&(k=-k,m=-m,B=-B,$=-$),{translateX:V,translateY:q,rotate:Math.atan2(m,k)*degrees,skewX:Math.atan(B)*degrees,scaleX:$,scaleY:D}}var svgNode;function parseCss(k){const m=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(k+"");return m.isIdentity?identity$1:decompose(m.a,m.b,m.c,m.d,m.e,m.f)}function parseSvg(k){return k==null||(svgNode||(svgNode=document.createElementNS("http://www.w3.org/2000/svg","g")),svgNode.setAttribute("transform",k),!(k=svgNode.transform.baseVal.consolidate()))?identity$1:(k=k.matrix,decompose(k.a,k.b,k.c,k.d,k.e,k.f))}function interpolateTransform(k,m,M,G){function V(R){return R.length?R.pop()+" ":""}function q(R,U,K,z,e,ae){if(R!==K||U!==z){var ie=e.push("translate(",null,m,null,M);ae.push({i:ie-4,x:interpolateNumber(R,K)},{i:ie-2,x:interpolateNumber(U,z)})}else(K||z)&&e.push("translate("+K+m+z+M)}function $(R,U,K,z){R!==U?(R-U>180?U+=360:U-R>180&&(R+=360),z.push({i:K.push(V(K)+"rotate(",null,G)-2,x:interpolateNumber(R,U)})):U&&K.push(V(K)+"rotate("+U+G)}function D(R,U,K,z){R!==U?z.push({i:K.push(V(K)+"skewX(",null,G)-2,x:interpolateNumber(R,U)}):U&&K.push(V(K)+"skewX("+U+G)}function B(R,U,K,z,e,ae){if(R!==K||U!==z){var ie=e.push(V(e)+"scale(",null,",",null,")");ae.push({i:ie-4,x:interpolateNumber(R,K)},{i:ie-2,x:interpolateNumber(U,z)})}else(K!==1||z!==1)&&e.push(V(e)+"scale("+K+","+z+")")}return function(R,U){var K=[],z=[];return R=k(R),U=k(U),q(R.translateX,R.translateY,U.translateX,U.translateY,K,z),$(R.rotate,U.rotate,K,z),D(R.skewX,U.skewX,K,z),B(R.scaleX,R.scaleY,U.scaleX,U.scaleY,K,z),R=U=null,function(e){for(var ae=-1,ie=z.length,he;++ae<ie;)K[(he=z[ae]).i]=he.x(e);return K.join("")}}}var interpolateTransformCss=interpolateTransform(parseCss,"px, ","px)","deg)"),interpolateTransformSvg=interpolateTransform(parseSvg,", ",")",")"),epsilon2=1e-12;function cosh(k){return((k=Math.exp(k))+1/k)/2}function sinh(k){return((k=Math.exp(k))-1/k)/2}function tanh(k){return((k=Math.exp(2*k))-1)/(k+1)}const interpolateZoom=function k(m,M,G){function V(q,$){var D=q[0],B=q[1],R=q[2],U=$[0],K=$[1],z=$[2],e=U-D,ae=K-B,ie=e*e+ae*ae,he,J;if(ie<epsilon2)J=Math.log(z/R)/m,he=function(de){return[D+de*e,B+de*ae,R*Math.exp(m*de*J)]};else{var W=Math.sqrt(ie),X=(z*z-R*R+G*ie)/(2*R*M*W),L=(z*z-R*R-G*ie)/(2*z*M*W),Q=Math.log(Math.sqrt(X*X+1)-X),ce=Math.log(Math.sqrt(L*L+1)-L);J=(ce-Q)/m,he=function(de){var se=de*J,oe=cosh(Q),me=R/(M*W)*(oe*tanh(m*se+Q)-sinh(Q));return[D+me*e,B+me*ae,R*oe/cosh(m*se+Q)]}}return he.duration=J*1e3*m/Math.SQRT2,he}return V.rho=function(q){var $=Math.max(.001,+q),D=$*$,B=D*D;return k($,D,B)},V}(Math.SQRT2,2,4);var frame=0,timeout$1=0,interval=0,pokeDelay=1e3,taskHead,taskTail,clockLast=0,clockNow=0,clockSkew=0,clock=typeof performance=="object"&&performance.now?performance:Date,setFrame=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(k,m,M){if(typeof k!="function")throw new TypeError("callback is not a function");M=(M==null?now():+M)+(m==null?0:+m),!this._next&&taskTail!==this&&(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=k,this._time=M,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};function timer(k,m,M){var G=new Timer;return G.restart(k,m,M),G}function timerFlush(){now(),++frame;for(var k=taskHead,m;k;)(m=clockNow-k._time)>=0&&k._call.call(null,m),k=k._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var k=clock.now(),m=k-clockLast;m>pokeDelay&&(clockSkew-=m,clockLast=k)}function nap(){for(var k,m=taskHead,M,G=1/0;m;)m._call?(G>m._time&&(G=m._time),k=m,m=m._next):(M=m._next,m._next=null,m=k?k._next=M:taskHead=M);taskTail=k,sleep(G)}function sleep(k){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var m=k-clockNow;m>24?(k<1/0&&(timeout$1=setTimeout(wake,k-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(k,m,M){var G=new Timer;return m=m==null?0:+m,G.restart(V=>{G.stop(),k(V+m)},m,M),G}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(k,m,M,G,V,q){var $=k.__transition;if(!$)k.__transition={};else if(M in $)return;create(k,M,{name:m,index:G,group:V,on:emptyOn,tween:emptyTween,time:q.time,delay:q.delay,duration:q.duration,ease:q.ease,timer:null,state:CREATED})}function init(k,m){var M=get$1(k,m);if(M.state>CREATED)throw new Error("too late; already scheduled");return M}function set$1(k,m){var M=get$1(k,m);if(M.state>STARTED)throw new Error("too late; already running");return M}function get$1(k,m){var M=k.__transition;if(!M||!(M=M[m]))throw new Error("transition not found");return M}function create(k,m,M){var G=k.__transition,V;G[m]=M,M.timer=timer(q,0,M.time);function q(R){M.state=SCHEDULED,M.timer.restart($,M.delay,M.time),M.delay<=R&&$(R-M.delay)}function $(R){var U,K,z,e;if(M.state!==SCHEDULED)return B();for(U in G)if(e=G[U],e.name===M.name){if(e.state===STARTED)return timeout($);e.state===RUNNING?(e.state=ENDED,e.timer.stop(),e.on.call("interrupt",k,k.__data__,e.index,e.group),delete G[U]):+U<m&&(e.state=ENDED,e.timer.stop(),e.on.call("cancel",k,k.__data__,e.index,e.group),delete G[U])}if(timeout(function(){M.state===STARTED&&(M.state=RUNNING,M.timer.restart(D,M.delay,M.time),D(R))}),M.state=STARTING,M.on.call("start",k,k.__data__,M.index,M.group),M.state===STARTING){for(M.state=STARTED,V=new Array(z=M.tween.length),U=0,K=-1;U<z;++U)(e=M.tween[U].value.call(k,k.__data__,M.index,M.group))&&(V[++K]=e);V.length=K+1}}function D(R){for(var U=R<M.duration?M.ease.call(null,R/M.duration):(M.timer.restart(B),M.state=ENDING,1),K=-1,z=V.length;++K<z;)V[K].call(k,U);M.state===ENDING&&(M.on.call("end",k,k.__data__,M.index,M.group),B())}function B(){M.state=ENDED,M.timer.stop(),delete G[m];for(var R in G)return;delete k.__transition}}function interrupt(k,m){var M=k.__transition,G,V,q=!0,$;if(M){m=m==null?null:m+"";for($ in M){if((G=M[$]).name!==m){q=!1;continue}V=G.state>STARTING&&G.state<ENDING,G.state=ENDED,G.timer.stop(),G.on.call(V?"interrupt":"cancel",k,k.__data__,G.index,G.group),delete M[$]}q&&delete k.__transition}}function selection_interrupt(k){return this.each(function(){interrupt(this,k)})}function tweenRemove(k,m){var M,G;return function(){var V=set$1(this,k),q=V.tween;if(q!==M){G=M=q;for(var $=0,D=G.length;$<D;++$)if(G[$].name===m){G=G.slice(),G.splice($,1);break}}V.tween=G}}function tweenFunction(k,m,M){var G,V;if(typeof M!="function")throw new Error;return function(){var q=set$1(this,k),$=q.tween;if($!==G){V=(G=$).slice();for(var D={name:m,value:M},B=0,R=V.length;B<R;++B)if(V[B].name===m){V[B]=D;break}B===R&&V.push(D)}q.tween=V}}function transition_tween(k,m){var M=this._id;if(k+="",arguments.length<2){for(var G=get$1(this.node(),M).tween,V=0,q=G.length,$;V<q;++V)if(($=G[V]).name===k)return $.value;return null}return this.each((m==null?tweenRemove:tweenFunction)(M,k,m))}function tweenValue(k,m,M){var G=k._id;return k.each(function(){var V=set$1(this,G);(V.value||(V.value={}))[m]=M.apply(this,arguments)}),function(V){return get$1(V,G).value[m]}}function interpolate(k,m){var M;return(typeof m=="number"?interpolateNumber:m instanceof color?interpolateRgb:(M=color(m))?(m=M,interpolateRgb):interpolateString)(k,m)}function attrRemove(k){return function(){this.removeAttribute(k)}}function attrRemoveNS(k){return function(){this.removeAttributeNS(k.space,k.local)}}function attrConstant(k,m,M){var G,V=M+"",q;return function(){var $=this.getAttribute(k);return $===V?null:$===G?q:q=m(G=$,M)}}function attrConstantNS(k,m,M){var G,V=M+"",q;return function(){var $=this.getAttributeNS(k.space,k.local);return $===V?null:$===G?q:q=m(G=$,M)}}function attrFunction(k,m,M){var G,V,q;return function(){var $,D=M(this),B;return D==null?void this.removeAttribute(k):($=this.getAttribute(k),B=D+"",$===B?null:$===G&&B===V?q:(V=B,q=m(G=$,D)))}}function attrFunctionNS(k,m,M){var G,V,q;return function(){var $,D=M(this),B;return D==null?void this.removeAttributeNS(k.space,k.local):($=this.getAttributeNS(k.space,k.local),B=D+"",$===B?null:$===G&&B===V?q:(V=B,q=m(G=$,D)))}}function transition_attr(k,m){var M=namespace(k),G=M==="transform"?interpolateTransformSvg:interpolate;return this.attrTween(k,typeof m=="function"?(M.local?attrFunctionNS:attrFunction)(M,G,tweenValue(this,"attr."+k,m)):m==null?(M.local?attrRemoveNS:attrRemove)(M):(M.local?attrConstantNS:attrConstant)(M,G,m))}function attrInterpolate(k,m){return function(M){this.setAttribute(k,m.call(this,M))}}function attrInterpolateNS(k,m){return function(M){this.setAttributeNS(k.space,k.local,m.call(this,M))}}function attrTweenNS(k,m){var M,G;function V(){var q=m.apply(this,arguments);return q!==G&&(M=(G=q)&&attrInterpolateNS(k,q)),M}return V._value=m,V}function attrTween(k,m){var M,G;function V(){var q=m.apply(this,arguments);return q!==G&&(M=(G=q)&&attrInterpolate(k,q)),M}return V._value=m,V}function transition_attrTween(k,m){var M="attr."+k;if(arguments.length<2)return(M=this.tween(M))&&M._value;if(m==null)return this.tween(M,null);if(typeof m!="function")throw new Error;var G=namespace(k);return this.tween(M,(G.local?attrTweenNS:attrTween)(G,m))}function delayFunction(k,m){return function(){init(this,k).delay=+m.apply(this,arguments)}}function delayConstant(k,m){return m=+m,function(){init(this,k).delay=m}}function transition_delay(k){var m=this._id;return arguments.length?this.each((typeof k=="function"?delayFunction:delayConstant)(m,k)):get$1(this.node(),m).delay}function durationFunction(k,m){return function(){set$1(this,k).duration=+m.apply(this,arguments)}}function durationConstant(k,m){return m=+m,function(){set$1(this,k).duration=m}}function transition_duration(k){var m=this._id;return arguments.length?this.each((typeof k=="function"?durationFunction:durationConstant)(m,k)):get$1(this.node(),m).duration}function easeConstant(k,m){if(typeof m!="function")throw new Error;return function(){set$1(this,k).ease=m}}function transition_ease(k){var m=this._id;return arguments.length?this.each(easeConstant(m,k)):get$1(this.node(),m).ease}function easeVarying(k,m){return function(){var M=m.apply(this,arguments);if(typeof M!="function")throw new Error;set$1(this,k).ease=M}}function transition_easeVarying(k){if(typeof k!="function")throw new Error;return this.each(easeVarying(this._id,k))}function transition_filter(k){typeof k!="function"&&(k=matcher(k));for(var m=this._groups,M=m.length,G=new Array(M),V=0;V<M;++V)for(var q=m[V],$=q.length,D=G[V]=[],B,R=0;R<$;++R)(B=q[R])&&k.call(B,B.__data__,R,q)&&D.push(B);return new Transition(G,this._parents,this._name,this._id)}function transition_merge(k){if(k._id!==this._id)throw new Error;for(var m=this._groups,M=k._groups,G=m.length,V=M.length,q=Math.min(G,V),$=new Array(G),D=0;D<q;++D)for(var B=m[D],R=M[D],U=B.length,K=$[D]=new Array(U),z,e=0;e<U;++e)(z=B[e]||R[e])&&(K[e]=z);for(;D<G;++D)$[D]=m[D];return new Transition($,this._parents,this._name,this._id)}function start(k){return(k+"").trim().split(/^|\s+/).every(function(m){var M=m.indexOf(".");return M>=0&&(m=m.slice(0,M)),!m||m==="start"})}function onFunction(k,m,M){var G,V,q=start(m)?init:set$1;return function(){var $=q(this,k),D=$.on;D!==G&&(V=(G=D).copy()).on(m,M),$.on=V}}function transition_on(k,m){var M=this._id;return arguments.length<2?get$1(this.node(),M).on.on(k):this.each(onFunction(M,k,m))}function removeFunction(k){return function(){var m=this.parentNode;for(var M in this.__transition)if(+M!==k)return;m&&m.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(k){var m=this._name,M=this._id;typeof k!="function"&&(k=selector(k));for(var G=this._groups,V=G.length,q=new Array(V),$=0;$<V;++$)for(var D=G[$],B=D.length,R=q[$]=new Array(B),U,K,z=0;z<B;++z)(U=D[z])&&(K=k.call(U,U.__data__,z,D))&&("__data__"in U&&(K.__data__=U.__data__),R[z]=K,schedule(R[z],m,M,z,R,get$1(U,M)));return new Transition(q,this._parents,m,M)}function transition_selectAll(k){var m=this._name,M=this._id;typeof k!="function"&&(k=selectorAll(k));for(var G=this._groups,V=G.length,q=[],$=[],D=0;D<V;++D)for(var B=G[D],R=B.length,U,K=0;K<R;++K)if(U=B[K]){for(var z=k.call(U,U.__data__,K,B),e,ae=get$1(U,M),ie=0,he=z.length;ie<he;++ie)(e=z[ie])&&schedule(e,m,M,ie,z,ae);q.push(z),$.push(U)}return new Transition(q,$,m,M)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(k,m){var M,G,V;return function(){var q=styleValue(this,k),$=(this.style.removeProperty(k),styleValue(this,k));return q===$?null:q===M&&$===G?V:V=m(M=q,G=$)}}function styleRemove(k){return function(){this.style.removeProperty(k)}}function styleConstant(k,m,M){var G,V=M+"",q;return function(){var $=styleValue(this,k);return $===V?null:$===G?q:q=m(G=$,M)}}function styleFunction(k,m,M){var G,V,q;return function(){var $=styleValue(this,k),D=M(this),B=D+"";return D==null&&(B=D=(this.style.removeProperty(k),styleValue(this,k))),$===B?null:$===G&&B===V?q:(V=B,q=m(G=$,D))}}function styleMaybeRemove(k,m){var M,G,V,q="style."+m,$="end."+q,D;return function(){var B=set$1(this,k),R=B.on,U=B.value[q]==null?D||(D=styleRemove(m)):void 0;(R!==M||V!==U)&&(G=(M=R).copy()).on($,V=U),B.on=G}}function transition_style(k,m,M){var G=(k+="")=="transform"?interpolateTransformCss:interpolate;return m==null?this.styleTween(k,styleNull(k,G)).on("end.style."+k,styleRemove(k)):typeof m=="function"?this.styleTween(k,styleFunction(k,G,tweenValue(this,"style."+k,m))).each(styleMaybeRemove(this._id,k)):this.styleTween(k,styleConstant(k,G,m),M).on("end.style."+k,null)}function styleInterpolate(k,m,M){return function(G){this.style.setProperty(k,m.call(this,G),M)}}function styleTween(k,m,M){var G,V;function q(){var $=m.apply(this,arguments);return $!==V&&(G=(V=$)&&styleInterpolate(k,$,M)),G}return q._value=m,q}function transition_styleTween(k,m,M){var G="style."+(k+="");if(arguments.length<2)return(G=this.tween(G))&&G._value;if(m==null)return this.tween(G,null);if(typeof m!="function")throw new Error;return this.tween(G,styleTween(k,m,M??""))}function textConstant(k){return function(){this.textContent=k}}function textFunction(k){return function(){var m=k(this);this.textContent=m??""}}function transition_text(k){return this.tween("text",typeof k=="function"?textFunction(tweenValue(this,"text",k)):textConstant(k==null?"":k+""))}function textInterpolate(k){return function(m){this.textContent=k.call(this,m)}}function textTween(k){var m,M;function G(){var V=k.apply(this,arguments);return V!==M&&(m=(M=V)&&textInterpolate(V)),m}return G._value=k,G}function transition_textTween(k){var m="text";if(arguments.length<1)return(m=this.tween(m))&&m._value;if(k==null)return this.tween(m,null);if(typeof k!="function")throw new Error;return this.tween(m,textTween(k))}function transition_transition(){for(var k=this._name,m=this._id,M=newId(),G=this._groups,V=G.length,q=0;q<V;++q)for(var $=G[q],D=$.length,B,R=0;R<D;++R)if(B=$[R]){var U=get$1(B,m);schedule(B,k,M,R,$,{time:U.time+U.delay+U.duration,delay:0,duration:U.duration,ease:U.ease})}return new Transition(G,this._parents,k,M)}function transition_end(){var k,m,M=this,G=M._id,V=M.size();return new Promise(function(q,$){var D={value:$},B={value:function(){--V===0&&q()}};M.each(function(){var R=set$1(this,G),U=R.on;U!==k&&(m=(k=U).copy(),m._.cancel.push(D),m._.interrupt.push(D),m._.end.push(B)),R.on=m}),V===0&&q()})}var id$1=0;function Transition(k,m,M,G){this._groups=k,this._parents=m,this._name=M,this._id=G}function newId(){return++id$1}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(k){return((k*=2)<=1?k*k*k:(k-=2)*k*k+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(k,m){for(var M;!(M=k.__transition)||!(M=M[m]);)if(!(k=k.parentNode))throw new Error(`transition ${m} not found`);return M}function selection_transition(k){var m,M;k instanceof Transition?(m=k._id,k=k._name):(m=newId(),(M=defaultTiming).time=now(),k=k==null?null:k+"");for(var G=this._groups,V=G.length,q=0;q<V;++q)for(var $=G[q],D=$.length,B,R=0;R<D;++R)(B=$[R])&&schedule(B,k,m,R,$,M||inherit(B,m));return new Transition(G,this._parents,k,m)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;const pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(k,m){this._+="M"+(this._x0=this._x1=+k)+","+(this._y0=this._y1=+m)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(k,m){this._+="L"+(this._x1=+k)+","+(this._y1=+m)},quadraticCurveTo:function(k,m,M,G){this._+="Q"+ +k+","+ +m+","+(this._x1=+M)+","+(this._y1=+G)},bezierCurveTo:function(k,m,M,G,V,q){this._+="C"+ +k+","+ +m+","+ +M+","+ +G+","+(this._x1=+V)+","+(this._y1=+q)},arcTo:function(k,m,M,G,V){k=+k,m=+m,M=+M,G=+G,V=+V;var q=this._x1,$=this._y1,D=M-k,B=G-m,R=q-k,U=$-m,K=R*R+U*U;if(V<0)throw new Error("negative radius: "+V);if(this._x1===null)this._+="M"+(this._x1=k)+","+(this._y1=m);else if(K>epsilon)if(!(Math.abs(U*D-B*R)>epsilon)||!V)this._+="L"+(this._x1=k)+","+(this._y1=m);else{var z=M-q,e=G-$,ae=D*D+B*B,ie=z*z+e*e,he=Math.sqrt(ae),J=Math.sqrt(K),W=V*Math.tan((pi-Math.acos((ae+K-ie)/(2*he*J)))/2),X=W/J,L=W/he;Math.abs(X-1)>epsilon&&(this._+="L"+(k+X*R)+","+(m+X*U)),this._+="A"+V+","+V+",0,0,"+ +(U*z>R*e)+","+(this._x1=k+L*D)+","+(this._y1=m+L*B)}},arc:function(k,m,M,G,V,q){k=+k,m=+m,M=+M,q=!!q;var $=M*Math.cos(G),D=M*Math.sin(G),B=k+$,R=m+D,U=1^q,K=q?G-V:V-G;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+B+","+R:(Math.abs(this._x1-B)>epsilon||Math.abs(this._y1-R)>epsilon)&&(this._+="L"+B+","+R),M&&(K<0&&(K=K%tau+tau),K>tauEpsilon?this._+="A"+M+","+M+",0,1,"+U+","+(k-$)+","+(m-D)+"A"+M+","+M+",0,1,"+U+","+(this._x1=B)+","+(this._y1=R):K>epsilon&&(this._+="A"+M+","+M+",0,"+ +(K>=pi)+","+U+","+(this._x1=k+M*Math.cos(V))+","+(this._y1=m+M*Math.sin(V))))},rect:function(k,m,M,G){this._+="M"+(this._x0=this._x1=+k)+","+(this._y0=this._y1=+m)+"h"+ +M+"v"+ +G+"h"+-M+"Z"},toString:function(){return this._}};function initRange(k,m){switch(arguments.length){case 0:break;case 1:this.range(k);break;default:this.range(m).domain(k);break}return this}const implicit=Symbol("implicit");function ordinal(){var k=new Map,m=[],M=[],G=implicit;function V(q){var $=q+"",D=k.get($);if(!D){if(G!==implicit)return G;k.set($,D=m.push(q))}return M[(D-1)%M.length]}return V.domain=function(q){if(!arguments.length)return m.slice();m=[],k=new Map;for(const $ of q){const D=$+"";k.has(D)||k.set(D,m.push($))}return V},V.range=function(q){return arguments.length?(M=Array.from(q),V):M.slice()},V.unknown=function(q){return arguments.length?(G=q,V):G},V.copy=function(){return ordinal(m,M).unknown(G)},initRange.apply(V,arguments),V}function colors(k){for(var m=k.length/6|0,M=new Array(m),G=0;G<m;)M[G]="#"+k.slice(G*6,++G*6);return M}const category10=colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function constant$1(k){return function(){return k}}var slice$1=Array.prototype.slice;function x(k){return k[0]}function y$2(k){return k[1]}function linkSource(k){return k.source}function linkTarget(k){return k.target}function link(k){var m=linkSource,M=linkTarget,G=x,V=y$2,q=null;function $(){var D,B=slice$1.call(arguments),R=m.apply(this,B),U=M.apply(this,B);if(q||(q=D=path()),k(q,+G.apply(this,(B[0]=R,B)),+V.apply(this,B),+G.apply(this,(B[0]=U,B)),+V.apply(this,B)),D)return q=null,D+""||null}return $.source=function(D){return arguments.length?(m=D,$):m},$.target=function(D){return arguments.length?(M=D,$):M},$.x=function(D){return arguments.length?(G=typeof D=="function"?D:constant$1(+D),$):G},$.y=function(D){return arguments.length?(V=typeof D=="function"?D:constant$1(+D),$):V},$.context=function(D){return arguments.length?(q=D??null,$):q},$}function curveHorizontal(k,m,M,G,V){k.moveTo(m,M),k.bezierCurveTo(m=(m+G)/2,M,m,V,G,V)}function linkHorizontal(){return link(curveHorizontal)}const constant=k=>()=>k;function ZoomEvent(k,{sourceEvent:m,target:M,transform:G,dispatch:V}){Object.defineProperties(this,{type:{value:k,enumerable:!0,configurable:!0},sourceEvent:{value:m,enumerable:!0,configurable:!0},target:{value:M,enumerable:!0,configurable:!0},transform:{value:G,enumerable:!0,configurable:!0},_:{value:V}})}function Transform(k,m,M){this.k=k,this.x=m,this.y=M}Transform.prototype={constructor:Transform,scale:function(k){return k===1?this:new Transform(this.k*k,this.x,this.y)},translate:function(k,m){return k===0&m===0?this:new Transform(this.k,this.x+this.k*k,this.y+this.k*m)},apply:function(k){return[k[0]*this.k+this.x,k[1]*this.k+this.y]},applyX:function(k){return k*this.k+this.x},applyY:function(k){return k*this.k+this.y},invert:function(k){return[(k[0]-this.x)/this.k,(k[1]-this.y)/this.k]},invertX:function(k){return(k-this.x)/this.k},invertY:function(k){return(k-this.y)/this.k},rescaleX:function(k){return k.copy().domain(k.range().map(this.invertX,this).map(k.invert,k))},rescaleY:function(k){return k.copy().domain(k.range().map(this.invertY,this).map(k.invert,k))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var identity=new Transform(1,0,0);transform.prototype=Transform.prototype;function transform(k){for(;!k.__zoom;)if(!(k=k.parentNode))return identity;return k.__zoom}function nopropagation(k){k.stopImmediatePropagation()}function noevent(k){k.preventDefault(),k.stopImmediatePropagation()}function defaultFilter(k){return(!k.ctrlKey||k.type==="wheel")&&!k.button}function defaultExtent(){var k=this;return k instanceof SVGElement?(k=k.ownerSVGElement||k,k.hasAttribute("viewBox")?(k=k.viewBox.baseVal,[[k.x,k.y],[k.x+k.width,k.y+k.height]]):[[0,0],[k.width.baseVal.value,k.height.baseVal.value]]):[[0,0],[k.clientWidth,k.clientHeight]]}function defaultTransform(){return this.__zoom||identity}function defaultWheelDelta(k){return-k.deltaY*(k.deltaMode===1?.05:k.deltaMode?1:.002)*(k.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||"ontouchstart"in this}function defaultConstrain(k,m,M){var G=k.invertX(m[0][0])-M[0][0],V=k.invertX(m[1][0])-M[1][0],q=k.invertY(m[0][1])-M[0][1],$=k.invertY(m[1][1])-M[1][1];return k.translate(V>G?(G+V)/2:Math.min(0,G)||Math.max(0,V),$>q?(q+$)/2:Math.min(0,q)||Math.max(0,$))}function zoom(){var k=defaultFilter,m=defaultExtent,M=defaultConstrain,G=defaultWheelDelta,V=defaultTouchable,q=[0,1/0],$=[[-1/0,-1/0],[1/0,1/0]],D=250,B=interpolateZoom,R=dispatch("start","zoom","end"),U,K,z,e=500,ae=150,ie=0,he=10;function J(fe){fe.property("__zoom",defaultTransform).on("wheel.zoom",se).on("mousedown.zoom",oe).on("dblclick.zoom",me).filter(V).on("touchstart.zoom",Ee).on("touchmove.zoom",ke).on("touchend.zoom touchcancel.zoom",xe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}J.transform=function(fe,ve,ye,Ce){var pe=fe.selection?fe.selection():fe;pe.property("__zoom",defaultTransform),fe!==pe?Q(fe,ve,ye,Ce):pe.interrupt().each(function(){ce(this,arguments).event(Ce).start().zoom(null,typeof ve=="function"?ve.apply(this,arguments):ve).end()})},J.scaleBy=function(fe,ve,ye,Ce){J.scaleTo(fe,function(){var pe=this.__zoom.k,_e=typeof ve=="function"?ve.apply(this,arguments):ve;return pe*_e},ye,Ce)},J.scaleTo=function(fe,ve,ye,Ce){J.transform(fe,function(){var pe=m.apply(this,arguments),_e=this.__zoom,Ge=ye==null?L(pe):typeof ye=="function"?ye.apply(this,arguments):ye,Ae=_e.invert(Ge),Ne=typeof ve=="function"?ve.apply(this,arguments):ve;return M(X(W(_e,Ne),Ge,Ae),pe,$)},ye,Ce)},J.translateBy=function(fe,ve,ye,Ce){J.transform(fe,function(){return M(this.__zoom.translate(typeof ve=="function"?ve.apply(this,arguments):ve,typeof ye=="function"?ye.apply(this,arguments):ye),m.apply(this,arguments),$)},null,Ce)},J.translateTo=function(fe,ve,ye,Ce,pe){J.transform(fe,function(){var _e=m.apply(this,arguments),Ge=this.__zoom,Ae=Ce==null?L(_e):typeof Ce=="function"?Ce.apply(this,arguments):Ce;return M(identity.translate(Ae[0],Ae[1]).scale(Ge.k).translate(typeof ve=="function"?-ve.apply(this,arguments):-ve,typeof ye=="function"?-ye.apply(this,arguments):-ye),_e,$)},Ce,pe)};function W(fe,ve){return ve=Math.max(q[0],Math.min(q[1],ve)),ve===fe.k?fe:new Transform(ve,fe.x,fe.y)}function X(fe,ve,ye){var Ce=ve[0]-ye[0]*fe.k,pe=ve[1]-ye[1]*fe.k;return Ce===fe.x&&pe===fe.y?fe:new Transform(fe.k,Ce,pe)}function L(fe){return[(+fe[0][0]+ +fe[1][0])/2,(+fe[0][1]+ +fe[1][1])/2]}function Q(fe,ve,ye,Ce){fe.on("start.zoom",function(){ce(this,arguments).event(Ce).start()}).on("interrupt.zoom end.zoom",function(){ce(this,arguments).event(Ce).end()}).tween("zoom",function(){var pe=this,_e=arguments,Ge=ce(pe,_e).event(Ce),Ae=m.apply(pe,_e),Ne=ye==null?L(Ae):typeof ye=="function"?ye.apply(pe,_e):ye,Ze=Math.max(Ae[1][0]-Ae[0][0],Ae[1][1]-Ae[0][1]),ze=pe.__zoom,Te=typeof ve=="function"?ve.apply(pe,_e):ve,Fe=B(ze.invert(Ne).concat(Ze/ze.k),Te.invert(Ne).concat(Ze/Te.k));return function(Pe){if(Pe===1)Pe=Te;else{var we=Fe(Pe),Ie=Ze/we[2];Pe=new Transform(Ie,Ne[0]-we[0]*Ie,Ne[1]-we[1]*Ie)}Ge.zoom(null,Pe)}})}function ce(fe,ve,ye){return!ye&&fe.__zooming||new de(fe,ve)}function de(fe,ve){this.that=fe,this.args=ve,this.active=0,this.sourceEvent=null,this.extent=m.apply(fe,ve),this.taps=0}de.prototype={event:function(fe){return fe&&(this.sourceEvent=fe),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(fe,ve){return this.mouse&&fe!=="mouse"&&(this.mouse[1]=ve.invert(this.mouse[0])),this.touch0&&fe!=="touch"&&(this.touch0[1]=ve.invert(this.touch0[0])),this.touch1&&fe!=="touch"&&(this.touch1[1]=ve.invert(this.touch1[0])),this.that.__zoom=ve,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(fe){var ve=select(this.that).datum();R.call(fe,this.that,new ZoomEvent(fe,{sourceEvent:this.sourceEvent,target:J,type:fe,transform:this.that.__zoom,dispatch:R}),ve)}};function se(fe,...ve){if(!k.apply(this,arguments))return;var ye=ce(this,ve).event(fe),Ce=this.__zoom,pe=Math.max(q[0],Math.min(q[1],Ce.k*Math.pow(2,G.apply(this,arguments)))),_e=pointer(fe);if(ye.wheel)(ye.mouse[0][0]!==_e[0]||ye.mouse[0][1]!==_e[1])&&(ye.mouse[1]=Ce.invert(ye.mouse[0]=_e)),clearTimeout(ye.wheel);else{if(Ce.k===pe)return;ye.mouse=[_e,Ce.invert(_e)],interrupt(this),ye.start()}noevent(fe),ye.wheel=setTimeout(Ge,ae),ye.zoom("mouse",M(X(W(Ce,pe),ye.mouse[0],ye.mouse[1]),ye.extent,$));function Ge(){ye.wheel=null,ye.end()}}function oe(fe,...ve){if(z||!k.apply(this,arguments))return;var ye=ce(this,ve,!0).event(fe),Ce=select(fe.view).on("mousemove.zoom",Ne,!0).on("mouseup.zoom",Ze,!0),pe=pointer(fe,_e),_e=fe.currentTarget,Ge=fe.clientX,Ae=fe.clientY;dragDisable(fe.view),nopropagation(fe),ye.mouse=[pe,this.__zoom.invert(pe)],interrupt(this),ye.start();function Ne(ze){if(noevent(ze),!ye.moved){var Te=ze.clientX-Ge,Fe=ze.clientY-Ae;ye.moved=Te*Te+Fe*Fe>ie}ye.event(ze).zoom("mouse",M(X(ye.that.__zoom,ye.mouse[0]=pointer(ze,_e),ye.mouse[1]),ye.extent,$))}function Ze(ze){Ce.on("mousemove.zoom mouseup.zoom",null),yesdrag(ze.view,ye.moved),noevent(ze),ye.event(ze).end()}}function me(fe,...ve){if(k.apply(this,arguments)){var ye=this.__zoom,Ce=pointer(fe.changedTouches?fe.changedTouches[0]:fe,this),pe=ye.invert(Ce),_e=ye.k*(fe.shiftKey?.5:2),Ge=M(X(W(ye,_e),Ce,pe),m.apply(this,ve),$);noevent(fe),D>0?select(this).transition().duration(D).call(Q,Ge,Ce,fe):select(this).call(J.transform,Ge,Ce,fe)}}function Ee(fe,...ve){if(k.apply(this,arguments)){var ye=fe.touches,Ce=ye.length,pe=ce(this,ve,fe.changedTouches.length===Ce).event(fe),_e,Ge,Ae,Ne;for(nopropagation(fe),Ge=0;Ge<Ce;++Ge)Ae=ye[Ge],Ne=pointer(Ae,this),Ne=[Ne,this.__zoom.invert(Ne),Ae.identifier],pe.touch0?!pe.touch1&&pe.touch0[2]!==Ne[2]&&(pe.touch1=Ne,pe.taps=0):(pe.touch0=Ne,_e=!0,pe.taps=1+!!U);U&&(U=clearTimeout(U)),_e&&(pe.taps<2&&(K=Ne[0],U=setTimeout(function(){U=null},e)),interrupt(this),pe.start())}}function ke(fe,...ve){if(this.__zooming){var ye=ce(this,ve).event(fe),Ce=fe.changedTouches,pe=Ce.length,_e,Ge,Ae,Ne;for(noevent(fe),_e=0;_e<pe;++_e)Ge=Ce[_e],Ae=pointer(Ge,this),ye.touch0&&ye.touch0[2]===Ge.identifier?ye.touch0[0]=Ae:ye.touch1&&ye.touch1[2]===Ge.identifier&&(ye.touch1[0]=Ae);if(Ge=ye.that.__zoom,ye.touch1){var Ze=ye.touch0[0],ze=ye.touch0[1],Te=ye.touch1[0],Fe=ye.touch1[1],Pe=(Pe=Te[0]-Ze[0])*Pe+(Pe=Te[1]-Ze[1])*Pe,we=(we=Fe[0]-ze[0])*we+(we=Fe[1]-ze[1])*we;Ge=W(Ge,Math.sqrt(Pe/we)),Ae=[(Ze[0]+Te[0])/2,(Ze[1]+Te[1])/2],Ne=[(ze[0]+Fe[0])/2,(ze[1]+Fe[1])/2]}else if(ye.touch0)Ae=ye.touch0[0],Ne=ye.touch0[1];else return;ye.zoom("touch",M(X(Ge,Ae,Ne),ye.extent,$))}}function xe(fe,...ve){if(this.__zooming){var ye=ce(this,ve).event(fe),Ce=fe.changedTouches,pe=Ce.length,_e,Ge;for(nopropagation(fe),z&&clearTimeout(z),z=setTimeout(function(){z=null},e),_e=0;_e<pe;++_e)Ge=Ce[_e],ye.touch0&&ye.touch0[2]===Ge.identifier?delete ye.touch0:ye.touch1&&ye.touch1[2]===Ge.identifier&&delete ye.touch1;if(ye.touch1&&!ye.touch0&&(ye.touch0=ye.touch1,delete ye.touch1),ye.touch0)ye.touch0[1]=this.__zoom.invert(ye.touch0[0]);else if(ye.end(),ye.taps===2&&(Ge=pointer(Ge,this),Math.hypot(K[0]-Ge[0],K[1]-Ge[1])<he)){var Ae=select(this).on("dblclick.zoom");Ae&&Ae.apply(this,arguments)}}}return J.wheelDelta=function(fe){return arguments.length?(G=typeof fe=="function"?fe:constant(+fe),J):G},J.filter=function(fe){return arguments.length?(k=typeof fe=="function"?fe:constant(!!fe),J):k},J.touchable=function(fe){return arguments.length?(V=typeof fe=="function"?fe:constant(!!fe),J):V},J.extent=function(fe){return arguments.length?(m=typeof fe=="function"?fe:constant([[+fe[0][0],+fe[0][1]],[+fe[1][0],+fe[1][1]]]),J):m},J.scaleExtent=function(fe){return arguments.length?(q[0]=+fe[0],q[1]=+fe[1],J):[q[0],q[1]]},J.translateExtent=function(fe){return arguments.length?($[0][0]=+fe[0][0],$[1][0]=+fe[1][0],$[0][1]=+fe[0][1],$[1][1]=+fe[1][1],J):[[$[0][0],$[0][1]],[$[1][0],$[1][1]]]},J.constrain=function(fe){return arguments.length?(M=fe,J):M},J.duration=function(fe){return arguments.length?(D=+fe,J):D},J.interpolate=function(fe){return arguments.length?(B=fe,J):B},J.on=function(){var fe=R.on.apply(R,arguments);return fe===R?J:fe},J.clickDistance=function(fe){return arguments.length?(ie=(fe=+fe)*fe,J):Math.sqrt(ie)},J.tapDistance=function(fe){return arguments.length?(he=+fe,J):he},J}/*! markmap-view v0.14.4 | MIT License */function _extends(){return _extends=Object.assign||function(k){for(var m=1;m<arguments.length;m++){var M=arguments[m];for(var G in M)Object.prototype.hasOwnProperty.call(M,G)&&(k[G]=M[G])}return k},_extends.apply(this,arguments)}function count(k){var m=0,M=k.children,G=M&&M.length;if(!G)m=1;else for(;--G>=0;)m+=M[G].value;k.value=m}function node_count(){return this.eachAfter(count)}function node_each(k){var m=this,M,G=[m],V,q,$;do for(M=G.reverse(),G=[];m=M.pop();)if(k(m),V=m.children,V)for(q=0,$=V.length;q<$;++q)G.push(V[q]);while(G.length);return this}function node_eachBefore(k){for(var m=this,M=[m],G,V;m=M.pop();)if(k(m),G=m.children,G)for(V=G.length-1;V>=0;--V)M.push(G[V]);return this}function node_eachAfter(k){for(var m=this,M=[m],G=[],V,q,$;m=M.pop();)if(G.push(m),V=m.children,V)for(q=0,$=V.length;q<$;++q)M.push(V[q]);for(;m=G.pop();)k(m);return this}function node_sum(k){return this.eachAfter(function(m){for(var M=+k(m.data)||0,G=m.children,V=G&&G.length;--V>=0;)M+=G[V].value;m.value=M})}function node_sort(k){return this.eachBefore(function(m){m.children&&m.children.sort(k)})}function node_path(k){for(var m=this,M=leastCommonAncestor(m,k),G=[m];m!==M;)m=m.parent,G.push(m);for(var V=G.length;k!==M;)G.splice(V,0,k),k=k.parent;return G}function leastCommonAncestor(k,m){if(k===m)return k;var M=k.ancestors(),G=m.ancestors(),V=null;for(k=M.pop(),m=G.pop();k===m;)V=k,k=M.pop(),m=G.pop();return V}function node_ancestors(){for(var k=this,m=[k];k=k.parent;)m.push(k);return m}function node_descendants(){var k=[];return this.each(function(m){k.push(m)}),k}function node_leaves(){var k=[];return this.eachBefore(function(m){m.children||k.push(m)}),k}function node_links(){var k=this,m=[];return k.each(function(M){M!==k&&m.push({source:M.parent,target:M})}),m}function hierarchy(k,m){var M=new Node$1(k),G=+k.value&&(M.value=k.value),V,q=[M],$,D,B,R;for(m==null&&(m=defaultChildren);V=q.pop();)if(G&&(V.value=+V.data.value),(D=m(V.data))&&(R=D.length))for(V.children=new Array(R),B=R-1;B>=0;--B)q.push($=V.children[B]=new Node$1(D[B])),$.parent=V,$.depth=V.depth+1;return M.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function defaultChildren(k){return k.children}function copyData(k){k.data=k.data.data}function computeHeight(k){var m=0;do k.height=m;while((k=k.parent)&&k.height<++m)}function Node$1(k){this.data=k,this.depth=this.height=0,this.parent=null}Node$1.prototype=hierarchy.prototype={constructor:Node$1,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy};var name="d3-flextree",version$1="2.1.2",main="build/d3-flextree.js",module="index",author={name:"Chris Maloney",url:"http://chrismaloney.org"},description="Flexible tree layout algorithm that allows for variable node sizes.",keywords=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],homepage="https://github.com/klortho/d3-flextree",license="WTFPL",repository={type:"git",url:"https://github.com/klortho/d3-flextree.git"},scripts={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},dependencies={"d3-hierarchy":"^1.1.5"},devDependencies={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},packageInfo={name,version:version$1,main,module,"jsnext:main":"index",author,description,keywords,homepage,license,repository,scripts,dependencies,devDependencies};const{version:version$2}=packageInfo,defaults$1=Object.freeze({children:k=>k.children,nodeSize:k=>k.data.size,spacing:0});function flextree(k){const m=Object.assign({},defaults$1,k);function M(D){const B=m[D];return typeof B=="function"?B:()=>B}function G(D){const B=$(q(),D,R=>R.children);return B.update(),B.data}function V(){const D=M("nodeSize"),B=M("spacing");return class dl extends hierarchy.prototype.constructor{constructor(U){super(U)}copy(){const U=$(this.constructor,this,K=>K.children);return U.each(K=>K.data=K.data.data),U}get size(){return D(this)}spacing(U){return B(this,U)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const U=this.ancestors();return U[U.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((U,K)=>dl.maxExtents(U,K.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(U,K){return{top:Math.min(U.top,K.top),bottom:Math.max(U.bottom,K.bottom),left:Math.min(U.left,K.left),right:Math.max(U.right,K.right)}}}}function q(){const D=V(),B=M("nodeSize"),R=M("spacing");return class extends D{constructor(U){super(U),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return B(this.data)}spacing(U){return R(this.data,U.data)}get x(){return this.data.x}set x(U){this.data.x=U}get y(){return this.data.y}set y(U){this.data.y=U}update(){return layoutChildren(this),resolveX(this),this}}}function $(D,B,R){const U=(K,z)=>{const e=new D(K);Object.assign(e,{parent:z,depth:z===null?0:z.depth+1,height:0,length:1});const ae=R(K)||[];return e.children=ae.length===0?null:ae.map(ie=>U(ie,e)),e.children&&Object.assign(e,e.children.reduce((ie,he)=>({height:Math.max(ie.height,he.height+1),length:ie.length+he.length}),e)),e};return U(B,null)}return Object.assign(G,{nodeSize(D){return arguments.length?(m.nodeSize=D,G):m.nodeSize},spacing(D){return arguments.length?(m.spacing=D,G):m.spacing},children(D){return arguments.length?(m.children=D,G):m.children},hierarchy(D,B){const R=typeof B>"u"?m.children:B;return $(V(),D,R)},dump(D){const B=M("nodeSize"),R=U=>K=>{const z=U+" ",e=U+" ",{x:ae,y:ie}=K,he=B(K),J=K.children||[],W=J.length===0?" ":`,${z}children: [${e}${J.map(R(e)).join(e)}${z}],${U}`;return`{ size: [${he.join(", ")}],${z}x: ${ae}, y: ${ie}${W}},`};return R(`
`)(D)}}),G}flextree.version=version$2;const layoutChildren=(k,m=0)=>(k.y=m,(k.children||[]).reduce((M,G)=>{const[V,q]=M;layoutChildren(G,k.y+k.ySize);const $=(V===0?G.lExt:G.rExt).bottom;V!==0&&separate(k,V,q);const D=updateLows($,V,q);return[V+1,D]},[0,null]),shiftChange(k),positionRoot(k),k),resolveX=(k,m,M)=>{typeof m>"u"&&(m=-k.relX-k.prelim,M=0);const G=m+k.relX;return k.relX=G+k.prelim-M,k.prelim=0,k.x=M+k.relX,(k.children||[]).forEach(V=>resolveX(V,G,k.x)),k},shiftChange=k=>{(k.children||[]).reduce((m,M)=>{const[G,V]=m,q=G+M.shift,$=V+q+M.change;return M.relX+=$,[q,$]},[0,0])},separate=(k,m,M)=>{const G=k.children[m-1],V=k.children[m];let q=G,$=G.relX,D=V,B=V.relX,R=!0;for(;q&&D;){q.bottom>M.lowY&&(M=M.next);const U=$+q.prelim-(B+D.prelim)+q.xSize/2+D.xSize/2+q.spacing(D);(U>0||U<0&&R)&&(B+=U,moveSubtree(V,U),distributeExtra(k,m,M.index,U)),R=!1;const K=q.bottom,z=D.bottom;K<=z&&(q=nextRContour(q),q&&($+=q.relX)),K>=z&&(D=nextLContour(D),D&&(B+=D.relX))}!q&&D?setLThr(k,m,D,B):q&&!D&&setRThr(k,m,q,$)},moveSubtree=(k,m)=>{k.relX+=m,k.lExtRelX+=m,k.rExtRelX+=m},distributeExtra=(k,m,M,G)=>{const V=k.children[m],q=m-M;if(q>1){const $=G/q;k.children[M+1].shift+=$,V.shift-=$,V.change-=G-$}},nextLContour=k=>k.hasChildren?k.firstChild:k.lThr,nextRContour=k=>k.hasChildren?k.lastChild:k.rThr,setLThr=(k,m,M,G)=>{const V=k.firstChild,q=V.lExt,$=k.children[m];q.lThr=M;const D=G-M.relX-V.lExtRelX;q.relX+=D,q.prelim-=D,V.lExt=$.lExt,V.lExtRelX=$.lExtRelX},setRThr=(k,m,M,G)=>{const V=k.children[m],q=V.rExt,$=k.children[m-1];q.rThr=M;const D=G-M.relX-V.rExtRelX;q.relX+=D,q.prelim-=D,V.rExt=$.rExt,V.rExtRelX=$.rExtRelX},positionRoot=k=>{if(k.hasChildren){const m=k.firstChild,M=k.lastChild,G=(m.prelim+m.relX-m.xSize/2+M.relX+M.prelim+M.xSize/2)/2;Object.assign(k,{prelim:G,lExt:m.lExt,lExtRelX:m.lExtRelX,rExt:M.rExt,rExtRelX:M.rExtRelX})}},updateLows=(k,m,M)=>{for(;M!==null&&k>=M.lowY;)M=M.next;return{lowY:k,index:m,next:M}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var VTYPE_ELEMENT=1,VTYPE_FUNCTION=2,MOUNT_SINGLE=1,MOUNT_ARRAY=4,SVG_NS="http://www.w3.org/2000/svg",XLINK_NS="http://www.w3.org/1999/xlink",NS_ATTRS={show:XLINK_NS,actuate:XLINK_NS,href:XLINK_NS},isLeaf=function(m){return typeof m=="string"||typeof m=="number"},isElement=function(m){return(m==null?void 0:m.vtype)===VTYPE_ELEMENT},isRenderFunction=function(m){return(m==null?void 0:m.vtype)===VTYPE_FUNCTION};function jsx(k,m){var M;if(typeof k=="string")M=VTYPE_ELEMENT;else if(typeof k=="function")M=VTYPE_FUNCTION;else throw new Error("Invalid VNode type");return{vtype:M,type:k,props:m}}function Fragment(k){return k.children}var DEFAULT_ENV={isSvg:!1};function insertDom(k,m){if(m.type===MOUNT_SINGLE)m.node!=null&&k.append(m.node);else if(m.type===MOUNT_ARRAY)m.children.forEach(function(M){insertDom(k,M)});else throw new Error("Unkown ref type "+JSON.stringify(m))}function mountAttributes(k,m,M){for(var G in m)G==="key"||G==="children"||G==="ref"||(G==="dangerouslySetInnerHTML"?k.innerHTML=m[G].__html:G==="innerHTML"||G==="textContent"||G==="innerText"?k[G]=m[G]:G.startsWith("on")?k[G.toLowerCase()]=m[G]:setDOMAttribute(k,G,m[G],M.isSvg))}var attrMap={className:"class",labelFor:"for"};function setDOMAttribute(k,m,M,G){if(m=attrMap[m]||m,M===!0)k.setAttribute(m,"");else if(M===!1)k.removeAttribute(m);else{var V=G?NS_ATTRS[m]:void 0;V!==void 0?k.setAttributeNS(V,m,M):k.setAttribute(m,M)}}function mount(k,m){if(m===void 0&&(m=DEFAULT_ENV),k==null||typeof k=="boolean")return{type:MOUNT_SINGLE,node:null};if(k instanceof Node)return{type:MOUNT_SINGLE,node:k};if(isRenderFunction(k)){var M=k,G=M.type,V=M.props;if(G===Fragment){var q=document.createDocumentFragment();if(V.children){var $=mount(V.children,m);insertDom(q,$)}return{type:MOUNT_SINGLE,node:q}}var D=G(V);return mount(D,m)}if(isLeaf(k))return{type:MOUNT_SINGLE,node:document.createTextNode(""+k)};if(isElement(k)){var B,R=k,U=R.type,K=R.props;!m.isSvg&&U==="svg"&&(m=Object.assign({},m,{isSvg:!0})),m.isSvg?B=document.createElementNS(SVG_NS,U):B=document.createElement(U),mountAttributes(B,K,m);var z;if(K.children){var e=m;m.isSvg&&U==="foreignObject"&&(e=Object.assign({},e,{isSvg:!1})),z=mount(K.children,e)}z!=null&&insertDom(B,z);var ae=K.ref;return typeof ae=="function"&&ae(B),{type:MOUNT_SINGLE,node:B}}if(Array.isArray(k))return{type:MOUNT_ARRAY,children:k.map(function(ie){return mount(ie,m)})};throw new Error("mount: Invalid Vnode!")}function flattenWithoutNull(k){for(var m=[],M=0;M<k.length;M+=1){var G=k[M];Array.isArray(G)?m=m.concat(flattenWithoutNull(G)):G!=null&&m.push(G)}return m}function asDom(k){return k.type===MOUNT_SINGLE?k.node:k.children.map(asDom)}function mountDom(k){return Array.isArray(k)?flattenWithoutNull(k.map(mountDom)):asDom(mount(k))}var css_248z$1=".markmap{font:300 16px/20px sans-serif}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{background-color:#f0f0f0;border-radius:2px;color:#555;font-size:calc(1em - 2px)}.markmap-foreign :not(pre)>code{padding:.2em .4em}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:bolder}.markmap-foreign mark{background:#ffeaa7}.markmap-foreign pre,.markmap-foreign pre[class*=language-]{margin:0;padding:.2em .4em}",css_248z$2=".markmap-container{height:0;left:-100px;overflow:hidden;position:absolute;top:-100px;width:0}.markmap-container>.markmap-foreign{display:inline-block}.markmap-container>.markmap-foreign>div:last-child{white-space:nowrap}";function linkWidth(k){const m=k.data;return Math.max(4-2*m.depth,1.5)}function adjustSpacing(k,m){walkTree(k,(M,G)=>{M.ySizeInner=M.ySize-m,M.y+=m,G()},"children")}function minBy(k,m){const M=minIndex(k,m);return k[M]}function stopPropagation(k){k.stopPropagation()}function createViewHooks(){return{transformHtml:new Hook}}const refreshHook=new Hook,defaultColorFn=ordinal(category10),isMacintosh=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Markmap{constructor(m,M){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(G=>{this[G]=this[G].bind(this)}),this.viewHooks=createViewHooks(),this.svg=m.datum?m:select(m),this.styleNode=this.svg.append("style"),this.zoom=zoom().filter(G=>this.options.scrollForPan&&G.type==="wheel"?G.ctrlKey&&!G.button:(!G.ctrlKey||G.type==="wheel")&&!G.button).on("zoom",this.handleZoom),this.setOptions(M),this.state={id:this.options.id||this.svg.attr("id")||getId()},this.g=this.svg.append("g"),this.revokers.push(refreshHook.tap(()=>{this.setData()}))}getStyleContent(){const{style:m}=this.options,{id:M}=this.state,G=typeof m=="function"?m(M):"";return[this.options.embedGlobalCSS&&css_248z$1,G].filter(Boolean).join(`
`)}updateStyle(){this.svg.attr("class",addClass(this.svg.attr("class"),"markmap",this.state.id));const m=this.getStyleContent();this.styleNode.text(m)}handleZoom(m){const{transform:M}=m;this.g.attr("transform",M)}handlePan(m){m.preventDefault();const M=transform(this.svg.node()),G=M.translate(-m.deltaX/M.k,-m.deltaY/M.k);this.svg.call(this.zoom.transform,G)}handleClick(m,M){var G;const{data:V}=M;V.payload=_extends({},V.payload,{fold:(G=V.payload)!=null&&G.fold?0:1}),this.renderData(M.data)}initializeData(m){let M=0;const{color:G,nodeMinHeight:V,maxWidth:q,initialExpandLevel:$}=this.options,{id:D}=this.state,B=mountDom(jsx("div",{className:`markmap-container markmap ${D}-g`})),R=mountDom(jsx("style",{children:[this.getStyleContent(),css_248z$2].join(`
`)}));document.body.append(B,R);const U=q?`max-width: ${q}px`:"";let K=0;walkTree(m,(e,ae,ie)=>{var he,J,W;e.children=(he=e.children)==null?void 0:he.map(Q=>_extends({},Q)),M+=1;const X=mountDom(jsx("div",{className:"markmap-foreign",style:U,children:jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})}));B.append(X),e.state=_extends({},e.state,{id:M,el:X.firstChild}),e.state.path=[ie==null||(J=ie.state)==null?void 0:J.path,e.state.id].filter(Boolean).join("."),G(e);const L=((W=e.payload)==null?void 0:W.fold)===2;L?K+=1:(K||$>=0&&e.depth>=$)&&(e.payload=_extends({},e.payload,{fold:1})),ae(),L&&(K-=1)});const z=arrayFrom(B.childNodes).map(e=>e.firstChild);this.viewHooks.transformHtml.call(this,z),z.forEach(e=>{e.parentNode.append(e.cloneNode(!0))}),walkTree(m,(e,ae,ie)=>{var he;const J=e.state.el.getBoundingClientRect();e.content=e.state.el.innerHTML,e.state.size=[Math.ceil(J.width)+1,Math.max(Math.ceil(J.height),V)],e.state.key=[ie==null||(he=ie.state)==null?void 0:he.id,e.state.id].filter(Boolean).join(".")+e.content,ae()}),B.remove(),R.remove()}setOptions(m){this.options=_extends({},Markmap.defaultOptions,m),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(m,M){m&&(this.state.data=m),M&&this.setOptions(M),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(m){var M,G;if(!this.state.data)return;const{spacingHorizontal:V,paddingX:q,spacingVertical:$,autoFit:D,color:B}=this.options,R=flextree().children(xe=>{var fe;return!((fe=xe.payload)!=null&&fe.fold)&&xe.children}).nodeSize(xe=>{const[fe,ve]=xe.data.state.size;return[ve,fe+(fe?q*2:0)+V]}).spacing((xe,fe)=>xe.parent===fe.parent?$:$*2),U=R.hierarchy(this.state.data);R(U),adjustSpacing(U,V);const K=U.descendants().reverse(),z=U.links(),e=linkHorizontal(),ae=min$2(K,xe=>xe.x-xe.xSize/2),ie=max$1(K,xe=>xe.x+xe.xSize/2),he=min$2(K,xe=>xe.y),J=max$1(K,xe=>xe.y+xe.ySizeInner);Object.assign(this.state,{minX:ae,maxX:ie,minY:he,maxY:J}),D&&this.fit();const W=m&&K.find(xe=>xe.data===m)||U,X=(M=W.data.state.x0)!=null?M:W.x,L=(G=W.data.state.y0)!=null?G:W.y,Q=this.g.selectAll(childSelector("g")).data(K,xe=>xe.data.state.key),ce=Q.enter().append("g").attr("data-depth",xe=>xe.data.depth).attr("data-path",xe=>xe.data.state.path).attr("transform",xe=>`translate(${L+W.ySizeInner-xe.ySizeInner},${X+W.xSize/2-xe.xSize})`),de=this.transition(Q.exit());de.select("line").attr("x1",xe=>xe.ySizeInner).attr("x2",xe=>xe.ySizeInner),de.select("foreignObject").style("opacity",0),de.attr("transform",xe=>`translate(${W.y+W.ySizeInner-xe.ySizeInner},${W.x+W.xSize/2-xe.xSize})`).remove();const se=Q.merge(ce).attr("class",xe=>{var fe;return["markmap-node",((fe=xe.data.payload)==null?void 0:fe.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(se).attr("transform",xe=>`translate(${xe.y},${xe.x-xe.xSize/2})`);const oe=se.selectAll(childSelector("line")).data(xe=>[xe],xe=>xe.data.state.key).join(xe=>xe.append("line").attr("x1",fe=>fe.ySizeInner).attr("x2",fe=>fe.ySizeInner),xe=>xe,xe=>xe.remove());this.transition(oe).attr("x1",-1).attr("x2",xe=>xe.ySizeInner+2).attr("y1",xe=>xe.xSize).attr("y2",xe=>xe.xSize).attr("stroke",xe=>B(xe.data)).attr("stroke-width",linkWidth);const me=se.selectAll(childSelector("circle")).data(xe=>xe.data.children?[xe]:[],xe=>xe.data.state.key).join(xe=>xe.append("circle").attr("stroke-width","1.5").attr("cx",fe=>fe.ySizeInner).attr("cy",fe=>fe.xSize).attr("r",0).on("click",(fe,ve)=>this.handleClick(fe,ve)),xe=>xe,xe=>xe.remove());this.transition(me).attr("r",6).attr("cx",xe=>xe.ySizeInner).attr("cy",xe=>xe.xSize).attr("stroke",xe=>B(xe.data)).attr("fill",xe=>{var fe;return(fe=xe.data.payload)!=null&&fe.fold&&xe.data.children?B(xe.data):"#fff"});const Ee=se.selectAll(childSelector("foreignObject")).data(xe=>[xe],xe=>xe.data.state.key).join(xe=>{const fe=xe.append("foreignObject").attr("class","markmap-foreign").attr("x",q).attr("y",0).style("opacity",0).on("mousedown",stopPropagation).on("dblclick",stopPropagation);return fe.append("xhtml:div").select(function(ye){const Ce=ye.data.state.el.cloneNode(!0);return this.replaceWith(Ce),Ce}).attr("xmlns","http://www.w3.org/1999/xhtml"),fe},xe=>xe,xe=>xe.remove()).attr("width",xe=>Math.max(0,xe.ySizeInner-q*2)).attr("height",xe=>xe.xSize);this.transition(Ee).style("opacity",1);const ke=this.g.selectAll(childSelector("path")).data(z,xe=>xe.target.data.state.key).join(xe=>{const fe=[L+W.ySizeInner,X+W.xSize/2];return xe.insert("path","g").attr("class","markmap-link").attr("data-depth",ve=>ve.target.data.depth).attr("data-path",ve=>ve.target.data.state.path).attr("d",e({source:fe,target:fe}))},xe=>xe,xe=>{const fe=[W.y+W.ySizeInner,W.x+W.xSize/2];return this.transition(xe).attr("d",e({source:fe,target:fe})).remove()});this.transition(ke).attr("stroke",xe=>B(xe.target.data)).attr("stroke-width",xe=>linkWidth(xe.target)).attr("d",xe=>{const fe=[xe.source.y+xe.source.ySizeInner,xe.source.x+xe.source.xSize/2],ve=[xe.target.y,xe.target.x+xe.target.xSize/2];return e({source:fe,target:ve})}),K.forEach(xe=>{xe.data.state.x0=xe.x,xe.data.state.y0=xe.y})}transition(m){const{duration:M}=this.options;return m.transition().duration(M)}async fit(){const m=this.svg.node(),{width:M,height:G}=m.getBoundingClientRect(),{fitRatio:V}=this.options,{minX:q,maxX:$,minY:D,maxY:B}=this.state,R=B-D,U=$-q,K=Math.min(M/R*V,G/U*V,2),z=identity.translate((M-R*K)/2-D*K,(G-U*K)/2-q*K).scale(K);return this.transition(this.svg).call(this.zoom.transform,z).end().catch(noop$1)}async ensureView(m,M){let G,V;if(this.g.selectAll(childSelector("g")).each(function(W){W.data===m&&(G=this,V=W)}),!G||!V)return;const q=this.svg.node(),$=q.getBoundingClientRect(),D=transform(q),[B,R]=[V.y,V.y+V.ySizeInner+2].map(J=>J*D.k+D.x),[U,K]=[V.x-V.xSize/2,V.x+V.xSize/2].map(J=>J*D.k+D.y),z=_extends({left:0,right:0,top:0,bottom:0},M),e=[z.left-B,$.width-z.right-R],ae=[z.top-U,$.height-z.bottom-K],ie=e[0]*e[1]>0?minBy(e,Math.abs)/D.k:0,he=ae[0]*ae[1]>0?minBy(ae,Math.abs)/D.k:0;if(ie||he){const J=D.translate(ie,he);return this.transition(this.svg).call(this.zoom.transform,J).end().catch(noop$1)}}async rescale(m){const M=this.svg.node(),{width:G,height:V}=M.getBoundingClientRect(),q=G/2,$=V/2,D=transform(M),B=D.translate((q-D.x)*(1-m)/D.k,($-D.y)*(1-m)/D.k).scale(m);return this.transition(this.svg).call(this.zoom.transform,B).end().catch(noop$1)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(m=>{m()})}static create(m,M,G){const V=new Markmap(m,M);return G&&(V.setData(G),V.fit()),V}}Markmap.defaultOptions={autoFit:!1,color:k=>defaultColorFn(`${k.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:isMacintosh,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};var FileSaver_min={exports:{}};(function(k,m){(function(M,G){G()})(commonjsGlobal$1,function(){function M(R,U){return typeof U>"u"?U={autoBom:!1}:typeof U!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(R.type)?new Blob(["\uFEFF",R],{type:R.type}):R}function G(R,U,K){var z=new XMLHttpRequest;z.open("GET",R),z.responseType="blob",z.onload=function(){B(z.response,U,K)},z.onerror=function(){console.error("could not download file")},z.send()}function V(R){var U=new XMLHttpRequest;U.open("HEAD",R,!1);try{U.send()}catch{}return 200<=U.status&&299>=U.status}function q(R){try{R.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),R.dispatchEvent(U)}}var $=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal$1=="object"&&commonjsGlobal$1.global===commonjsGlobal$1?commonjsGlobal$1:void 0,D=$.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),B=$.saveAs||(typeof window!="object"||window!==$?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(R,U,K){var z=$.URL||$.webkitURL,e=document.createElement("a");U=U||R.name||"download",e.download=U,e.rel="noopener",typeof R=="string"?(e.href=R,e.origin===location.origin?q(e):V(e.href)?G(R,U,K):q(e,e.target="_blank")):(e.href=z.createObjectURL(R),setTimeout(function(){z.revokeObjectURL(e.href)},4e4),setTimeout(function(){q(e)},0))}:"msSaveOrOpenBlob"in navigator?function(R,U,K){if(U=U||R.name||"download",typeof R!="string")navigator.msSaveOrOpenBlob(M(R,K),U);else if(V(R))G(R,U,K);else{var z=document.createElement("a");z.href=R,z.target="_blank",setTimeout(function(){q(z)})}}:function(R,U,K,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof R=="string")return G(R,U,K);var e=R.type==="application/octet-stream",ae=/constructor/i.test($.HTMLElement)||$.safari,ie=/CriOS\/[\d]+/.test(navigator.userAgent);if((ie||e&&ae||D)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var X=he.result;X=ie?X:X.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=X:location=X,z=null},he.readAsDataURL(R)}else{var J=$.URL||$.webkitURL,W=J.createObjectURL(R);z?z.location=W:location.href=W,z=null,setTimeout(function(){J.revokeObjectURL(W)},4e4)}});$.saveAs=B.saveAs=B,k.exports=B})})(FileSaver_min);var FileSaver_minExports=FileSaver_min.exports;function resolveUrl(k,m){if(k.match(/^[a-z]+:\/\//i))return k;if(k.match(/^\/\//))return window.location.protocol+k;if(k.match(/^[a-z]+:/i))return k;const M=document.implementation.createHTMLDocument(),G=M.createElement("base"),V=M.createElement("a");return M.head.appendChild(G),M.body.appendChild(V),m&&(G.href=m),V.href=k,V.href}const uuid=(()=>{let k=0;const m=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(k+=1,`u${m()}${k}`)})();function toArray(k){const m=[];for(let M=0,G=k.length;M<G;M++)m.push(k[M]);return m}function px(k,m){const G=(k.ownerDocument.defaultView||window).getComputedStyle(k).getPropertyValue(m);return G?parseFloat(G.replace("px","")):0}function getNodeWidth(k){const m=px(k,"border-left-width"),M=px(k,"border-right-width");return k.clientWidth+m+M}function getNodeHeight(k){const m=px(k,"border-top-width"),M=px(k,"border-bottom-width");return k.clientHeight+m+M}function getImageSize(k,m={}){const M=m.width||getNodeWidth(k),G=m.height||getNodeHeight(k);return{width:M,height:G}}function getPixelRatio(){let k,m;try{m=process}catch{}const M=m&&m.env?m.env.devicePixelRatio:null;return M&&(k=parseInt(M,10),Number.isNaN(k)&&(k=1)),k||window.devicePixelRatio||1}const canvasDimensionLimit=16384;function checkCanvasDimensions(k){(k.width>canvasDimensionLimit||k.height>canvasDimensionLimit)&&(k.width>canvasDimensionLimit&&k.height>canvasDimensionLimit?k.width>k.height?(k.height*=canvasDimensionLimit/k.width,k.width=canvasDimensionLimit):(k.width*=canvasDimensionLimit/k.height,k.height=canvasDimensionLimit):k.width>canvasDimensionLimit?(k.height*=canvasDimensionLimit/k.width,k.width=canvasDimensionLimit):(k.width*=canvasDimensionLimit/k.height,k.height=canvasDimensionLimit))}function createImage(k){return new Promise((m,M)=>{const G=new Image;G.decode=()=>m(G),G.onload=()=>m(G),G.onerror=M,G.crossOrigin="anonymous",G.decoding="async",G.src=k})}async function svgToDataURL(k){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(k)).then(encodeURIComponent).then(m=>`data:image/svg+xml;charset=utf-8,${m}`)}async function nodeToDataURL(k,m,M){const G="http://www.w3.org/2000/svg",V=document.createElementNS(G,"svg"),q=document.createElementNS(G,"foreignObject");return V.setAttribute("width",`${m}`),V.setAttribute("height",`${M}`),V.setAttribute("viewBox",`0 0 ${m} ${M}`),q.setAttribute("width","100%"),q.setAttribute("height","100%"),q.setAttribute("x","0"),q.setAttribute("y","0"),q.setAttribute("externalResourcesRequired","true"),V.appendChild(q),q.appendChild(k),svgToDataURL(V)}const isInstanceOfElement=(k,m)=>{if(k instanceof m)return!0;const M=Object.getPrototypeOf(k);return M===null?!1:M.constructor.name===m.name||isInstanceOfElement(M,m)};function formatCSSText(k){const m=k.getPropertyValue("content");return`${k.cssText} content: '${m.replace(/'|"/g,"")}';`}function formatCSSProperties(k){return toArray(k).map(m=>{const M=k.getPropertyValue(m),G=k.getPropertyPriority(m);return`${m}: ${M}${G?" !important":""};`}).join(" ")}function getPseudoElementStyle(k,m,M){const G=`.${k}:${m}`,V=M.cssText?formatCSSText(M):formatCSSProperties(M);return document.createTextNode(`${G}{${V}}`)}function clonePseudoElement(k,m,M){const G=window.getComputedStyle(k,M),V=G.getPropertyValue("content");if(V===""||V==="none")return;const q=uuid();try{m.className=`${m.className} ${q}`}catch{return}const $=document.createElement("style");$.appendChild(getPseudoElementStyle(q,M,G)),m.appendChild($)}function clonePseudoElements(k,m){clonePseudoElement(k,m,":before"),clonePseudoElement(k,m,":after")}const WOFF="application/font-woff",JPEG="image/jpeg",mimes={woff:WOFF,woff2:WOFF,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:JPEG,jpeg:JPEG,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function getExtension(k){const m=/\.([^./]*?)$/g.exec(k);return m?m[1]:""}function getMimeType(k){const m=getExtension(k).toLowerCase();return mimes[m]||""}function getContentFromDataUrl(k){return k.split(/,/)[1]}function isDataUrl(k){return k.search(/^(data:)/)!==-1}function makeDataUrl(k,m){return`data:${m};base64,${k}`}async function fetchAsDataURL(k,m,M){const G=await fetch(k,m);if(G.status===404)throw new Error(`Resource "${G.url}" not found`);const V=await G.blob();return new Promise((q,$)=>{const D=new FileReader;D.onerror=$,D.onloadend=()=>{try{q(M({res:G,result:D.result}))}catch(B){$(B)}},D.readAsDataURL(V)})}const cache={};function getCacheKey(k,m,M){let G=k.replace(/\?.*/,"");return M&&(G=k),/ttf|otf|eot|woff2?/i.test(G)&&(G=G.replace(/.*\//,"")),m?`[${m}]${G}`:G}async function resourceToDataURL(k,m,M){const G=getCacheKey(k,m,M.includeQueryParams);if(cache[G]!=null)return cache[G];M.cacheBust&&(k+=(/\?/.test(k)?"&":"?")+new Date().getTime());let V;try{const q=await fetchAsDataURL(k,M.fetchRequestInit,({res:$,result:D})=>(m||(m=$.headers.get("Content-Type")||""),getContentFromDataUrl(D)));V=makeDataUrl(q,m)}catch(q){V=M.imagePlaceholder||"";let $=`Failed to fetch resource: ${k}`;q&&($=typeof q=="string"?q:q.message),$&&console.warn($)}return cache[G]=V,V}async function cloneCanvasElement(k){const m=k.toDataURL();return m==="data:,"?k.cloneNode(!1):createImage(m)}async function cloneVideoElement(k,m){if(k.currentSrc){const q=document.createElement("canvas"),$=q.getContext("2d");q.width=k.clientWidth,q.height=k.clientHeight,$==null||$.drawImage(k,0,0,q.width,q.height);const D=q.toDataURL();return createImage(D)}const M=k.poster,G=getMimeType(M),V=await resourceToDataURL(M,G,m);return createImage(V)}async function cloneIFrameElement(k){var m;try{if(!((m=k==null?void 0:k.contentDocument)===null||m===void 0)&&m.body)return await cloneNode(k.contentDocument.body,{},!0)}catch{}return k.cloneNode(!1)}async function cloneSingleNode(k,m){return isInstanceOfElement(k,HTMLCanvasElement)?cloneCanvasElement(k):isInstanceOfElement(k,HTMLVideoElement)?cloneVideoElement(k,m):isInstanceOfElement(k,HTMLIFrameElement)?cloneIFrameElement(k):k.cloneNode(!1)}const isSlotElement=k=>k.tagName!=null&&k.tagName.toUpperCase()==="SLOT";async function cloneChildren(k,m,M){var G,V;let q=[];return isSlotElement(k)&&k.assignedNodes?q=toArray(k.assignedNodes()):isInstanceOfElement(k,HTMLIFrameElement)&&(!((G=k.contentDocument)===null||G===void 0)&&G.body)?q=toArray(k.contentDocument.body.childNodes):q=toArray(((V=k.shadowRoot)!==null&&V!==void 0?V:k).childNodes),q.length===0||isInstanceOfElement(k,HTMLVideoElement)||await q.reduce(($,D)=>$.then(()=>cloneNode(D,M)).then(B=>{B&&m.appendChild(B)}),Promise.resolve()),m}function cloneCSSStyle(k,m){const M=m.style;if(!M)return;const G=window.getComputedStyle(k);G.cssText?(M.cssText=G.cssText,M.transformOrigin=G.transformOrigin):toArray(G).forEach(V=>{let q=G.getPropertyValue(V);V==="font-size"&&q.endsWith("px")&&(q=`${Math.floor(parseFloat(q.substring(0,q.length-2)))-.1}px`),isInstanceOfElement(k,HTMLIFrameElement)&&V==="display"&&q==="inline"&&(q="block"),V==="d"&&m.getAttribute("d")&&(q=`path(${m.getAttribute("d")})`),M.setProperty(V,q,G.getPropertyPriority(V))})}function cloneInputValue(k,m){isInstanceOfElement(k,HTMLTextAreaElement)&&(m.innerHTML=k.value),isInstanceOfElement(k,HTMLInputElement)&&m.setAttribute("value",k.value)}function cloneSelectValue(k,m){if(isInstanceOfElement(k,HTMLSelectElement)){const M=m,G=Array.from(M.children).find(V=>k.value===V.getAttribute("value"));G&&G.setAttribute("selected","")}}function decorate(k,m){return isInstanceOfElement(m,Element)&&(cloneCSSStyle(k,m),clonePseudoElements(k,m),cloneInputValue(k,m),cloneSelectValue(k,m)),m}async function ensureSVGSymbols(k,m){const M=k.querySelectorAll?k.querySelectorAll("use"):[];if(M.length===0)return k;const G={};for(let q=0;q<M.length;q++){const D=M[q].getAttribute("xlink:href");if(D){const B=k.querySelector(D),R=document.querySelector(D);!B&&R&&!G[D]&&(G[D]=await cloneNode(R,m,!0))}}const V=Object.values(G);if(V.length){const q="http://www.w3.org/1999/xhtml",$=document.createElementNS(q,"svg");$.setAttribute("xmlns",q),$.style.position="absolute",$.style.width="0",$.style.height="0",$.style.overflow="hidden",$.style.display="none";const D=document.createElementNS(q,"defs");$.appendChild(D);for(let B=0;B<V.length;B++)D.appendChild(V[B]);k.appendChild($)}return k}async function cloneNode(k,m,M){return!M&&m.filter&&!m.filter(k)?null:Promise.resolve(k).then(G=>cloneSingleNode(G,m)).then(G=>cloneChildren(k,G,m)).then(G=>decorate(k,G)).then(G=>ensureSVGSymbols(G,m))}const URL_REGEX=/url\((['"]?)([^'"]+?)\1\)/g,URL_WITH_FORMAT_REGEX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,FONT_SRC_REGEX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function toRegex(k){const m=k.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${m})(['"]?\\))`,"g")}function parseURLs(k){const m=[];return k.replace(URL_REGEX,(M,G,V)=>(m.push(V),M)),m.filter(M=>!isDataUrl(M))}async function embed(k,m,M,G,V){try{const q=M?resolveUrl(m,M):m,$=getMimeType(m);let D;if(V){const B=await V(q);D=makeDataUrl(B,$)}else D=await resourceToDataURL(q,$,G);return k.replace(toRegex(m),`$1${D}$3`)}catch{}return k}function filterPreferredFontFormat(k,{preferredFontFormat:m}){return m?k.replace(FONT_SRC_REGEX,M=>{for(;;){const[G,,V]=URL_WITH_FORMAT_REGEX.exec(M)||[];if(!V)return"";if(V===m)return`src: ${G};`}}):k}function shouldEmbed(k){return k.search(URL_REGEX)!==-1}async function embedResources(k,m,M){if(!shouldEmbed(k))return k;const G=filterPreferredFontFormat(k,M);return parseURLs(G).reduce((q,$)=>q.then(D=>embed(D,$,m,M)),Promise.resolve(G))}async function embedProp(k,m,M){var G;const V=(G=m.style)===null||G===void 0?void 0:G.getPropertyValue(k);if(V){const q=await embedResources(V,null,M);return m.style.setProperty(k,q,m.style.getPropertyPriority(k)),!0}return!1}async function embedBackground(k,m){await embedProp("background",k,m)||await embedProp("background-image",k,m),await embedProp("mask",k,m)||await embedProp("mask-image",k,m)}async function embedImageNode(k,m){const M=isInstanceOfElement(k,HTMLImageElement);if(!(M&&!isDataUrl(k.src))&&!(isInstanceOfElement(k,SVGImageElement)&&!isDataUrl(k.href.baseVal)))return;const G=M?k.src:k.href.baseVal,V=await resourceToDataURL(G,getMimeType(G),m);await new Promise((q,$)=>{k.onload=q,k.onerror=$;const D=k;D.decode&&(D.decode=q),D.loading==="lazy"&&(D.loading="eager"),M?(k.srcset="",k.src=V):k.href.baseVal=V})}async function embedChildren(k,m){const G=toArray(k.childNodes).map(V=>embedImages(V,m));await Promise.all(G).then(()=>k)}async function embedImages(k,m){isInstanceOfElement(k,Element)&&(await embedBackground(k,m),await embedImageNode(k,m),await embedChildren(k,m))}function applyStyle(k,m){const{style:M}=k;m.backgroundColor&&(M.backgroundColor=m.backgroundColor),m.width&&(M.width=`${m.width}px`),m.height&&(M.height=`${m.height}px`);const G=m.style;return G!=null&&Object.keys(G).forEach(V=>{M[V]=G[V]}),k}const cssFetchCache={};async function fetchCSS(k){let m=cssFetchCache[k];if(m!=null)return m;const G=await(await fetch(k)).text();return m={url:k,cssText:G},cssFetchCache[k]=m,m}async function embedFonts(k,m){let M=k.cssText;const G=/url\(["']?([^"')]+)["']?\)/g,q=(M.match(/url\([^)]+\)/g)||[]).map(async $=>{let D=$.replace(G,"$1");return D.startsWith("https://")||(D=new URL(D,k.url).href),fetchAsDataURL(D,m.fetchRequestInit,({result:B})=>(M=M.replace($,`url(${B})`),[$,B]))});return Promise.all(q).then(()=>M)}function parseCSS(k){if(k==null)return[];const m=[],M=/(\/\*[\s\S]*?\*\/)/gi;let G=k.replace(M,"");const V=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const B=V.exec(G);if(B===null)break;m.push(B[0])}G=G.replace(V,"");const q=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,$="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",D=new RegExp($,"gi");for(;;){let B=q.exec(G);if(B===null){if(B=D.exec(G),B===null)break;q.lastIndex=D.lastIndex}else D.lastIndex=q.lastIndex;m.push(B[0])}return m}async function getCSSRules(k,m){const M=[],G=[];return k.forEach(V=>{if("cssRules"in V)try{toArray(V.cssRules||[]).forEach((q,$)=>{if(q.type===CSSRule.IMPORT_RULE){let D=$+1;const B=q.href,R=fetchCSS(B).then(U=>embedFonts(U,m)).then(U=>parseCSS(U).forEach(K=>{try{V.insertRule(K,K.startsWith("@import")?D+=1:V.cssRules.length)}catch(z){console.error("Error inserting rule from remote css",{rule:K,error:z})}})).catch(U=>{console.error("Error loading remote css",U.toString())});G.push(R)}})}catch(q){const $=k.find(D=>D.href==null)||document.styleSheets[0];V.href!=null&&G.push(fetchCSS(V.href).then(D=>embedFonts(D,m)).then(D=>parseCSS(D).forEach(B=>{$.insertRule(B,V.cssRules.length)})).catch(D=>{console.error("Error loading remote stylesheet",D)})),console.error("Error inlining remote css file",q)}}),Promise.all(G).then(()=>(k.forEach(V=>{if("cssRules"in V)try{toArray(V.cssRules||[]).forEach(q=>{M.push(q)})}catch(q){console.error(`Error while reading CSS rules from ${V.href}`,q)}}),M))}function getWebFontRules(k){return k.filter(m=>m.type===CSSRule.FONT_FACE_RULE).filter(m=>shouldEmbed(m.style.getPropertyValue("src")))}async function parseWebFontRules(k,m){if(k.ownerDocument==null)throw new Error("Provided element is not within a Document");const M=toArray(k.ownerDocument.styleSheets),G=await getCSSRules(M,m);return getWebFontRules(G)}async function getWebFontCSS(k,m){const M=await parseWebFontRules(k,m);return(await Promise.all(M.map(V=>{const q=V.parentStyleSheet?V.parentStyleSheet.href:null;return embedResources(V.cssText,q,m)}))).join(`
`)}async function embedWebFonts(k,m){const M=m.fontEmbedCSS!=null?m.fontEmbedCSS:m.skipFonts?null:await getWebFontCSS(k,m);if(M){const G=document.createElement("style"),V=document.createTextNode(M);G.appendChild(V),k.firstChild?k.insertBefore(G,k.firstChild):k.appendChild(G)}}async function toSvg(k,m={}){const{width:M,height:G}=getImageSize(k,m),V=await cloneNode(k,m,!0);return await embedWebFonts(V,m),await embedImages(V,m),applyStyle(V,m),await nodeToDataURL(V,M,G)}async function toCanvas(k,m={}){const{width:M,height:G}=getImageSize(k,m),V=await toSvg(k,m),q=await createImage(V),$=document.createElement("canvas"),D=$.getContext("2d"),B=m.pixelRatio||getPixelRatio(),R=m.canvasWidth||M,U=m.canvasHeight||G;return $.width=R*B,$.height=U*B,m.skipAutoScale||checkCanvasDimensions($),$.style.width=`${R}`,$.style.height=`${U}`,m.backgroundColor&&(D.fillStyle=m.backgroundColor,D.fillRect(0,0,$.width,$.height)),D.drawImage(q,0,0,$.width,$.height),$}async function toPng(k,m={}){return(await toCanvas(k,m)).toDataURL()}const _hoisted_1$i={class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"},_hoisted_2$h={key:0,class:"p-2 w-full h-1/2"},_hoisted_3$g={key:1,class:"w-3/4 p-2"},_sfc_main$h=defineComponent({__name:"FullScreenModal",props:{text:{},close:{type:Function}},setup(k){const m=k,M=ref(),G=ref(m.text),{isMobile:V}=useBasicLayout(),q=new browserExports.Transformer;let $;onMounted(()=>{M.value&&($=Markmap.create(M.value),D())}),watch(G,()=>{D()}),watchEffect(()=>{G.value=m.text});const D=()=>{const{root:U}=q.transform(G.value);$.setData(U),$.fit()},B=()=>{m.close()},R=async()=>{if(M.value){const U=await toPng(M.value);FileSaver_minExports.saveAs(U,"mindmap.png")}};return(U,K)=>(openBlock(),createElementBlock("div",_hoisted_1$i,[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:B}),createBaseVNode("div",{class:normalizeClass(["bg-white dark:bg-gray-900 w-full h-full p-4",[unref(V)?"flex-col":"flex"]])},[unref(V)?(openBlock(),createElementBlock("div",_hoisted_2$h,[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:M,class:"box-border w-full h-full border rounded-md dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700",draggable:"false"},null,512))])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["p-2 flex flex-col",[unref(V)?"w-full h-1/2":"w-1/4"]])},[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":K[0]||(K[0]=z=>G.value=z),class:"w-full h-full p-2 border rounded-md resize-none text-base dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700"},null,512),[[vModelText,G.value]]),createBaseVNode("div",{class:"mt-2 flex justify-end"},[createBaseVNode("button",{onClick:B,class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 取消 "),createBaseVNode("button",{onClick:R,class:"px-4 py-2 shadow-sm bg-primary-600 hover:bg-primary-500 text-white dark rounded-md"}," 保存 ")])],2),unref(V)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_3$g,[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:M,class:"box-border w-full h-full border rounded-md dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700",draggable:"false"},null,512))]))],2)]))}}),_hoisted_1$h={class:"flex flex-col group max-w-full"},_hoisted_2$g={class:"text-wrap rounded-lg min-w-12 text-gray-800 dark:text-gray-400"},_hoisted_3$f={class:"flex transition-opacity duration-300 text-gray-700 opacity-0 group-hover:opacity-100"},_hoisted_4$d={class:"mt-1 flex"},_hoisted_5$c=createBaseVNode("span",{class:"flex text-sm"},"复制",-1),_hoisted_6$b=createBaseVNode("span",{class:"flex text-sm"},"删除",-1),_sfc_main$g=defineComponent({__name:"index",props:{chatId:{},inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},ttsUrl:{},model:{}},emits:["delete","copy"],setup(k,{expose:m,emit:M}){useBasicLayout();const G=new browserExports.Transformer,V=k,q=M,$=ref(),D=ref(),B=ref(!1),R=ref(V.text);useChatStore();let U=null;onMounted(()=>{z=Markmap.create($.value),K()});const K=()=>{U&&clearTimeout(U),U=setTimeout(()=>{const{root:X}=G.transform(V.text);z.setData(X),z.fit()},200)};let z;const e=new MarkdownIt({linkify:!0,highlight(X,L){if(!!(L&&HighlightJS.getLanguage(L))){const ce=L??"";return ae(HighlightJS.highlight(X,{language:ce}).value,ce)}return ae(HighlightJS.highlightAuto(X).value,"")}});e.renderer.rules.image=function(X,L){const Q=X[L],ce=Q.attrGet("src"),de=Q.attrGet("title"),se=Q.content;return`<img src="${ce}" alt="${se}" title="${de||se}" class="rounded-md" style=" max-width:100% ;max-height: 30vh; "/>`},e.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),e.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),onUpdated(K);function ae(X,L){return`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${L}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${L}">${X}</code></pre>`}function ie(){q("copy")}function he(){q("delete")}async function J(){R.value=V.text,B.value=!0}function W(){B.value=!1}return m({textRef:D}),(X,L)=>(openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("div",_hoisted_1$h,[createBaseVNode("div",_hoisted_2$g,[createBaseVNode("div",{class:"flex w-full relative",onClick:J},[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:$,class:"box-border w-[600px] h-[400px] border rounded-md border-gray-200 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100",style:{"pointer-events":"none"},draggable:"false"},null,512))])]),createBaseVNode("div",_hoisted_3$f,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_4$d,[createBaseVNode("button",{class:"flex items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",onClick:ie},[createVNode(unref(Copy),{class:"flex mr-1"}),_hoisted_5$c]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",onClick:he},[createVNode(unref(Delete),{class:"mr-1"}),_hoisted_6$b])])])])]),B.value?(openBlock(),createBlock(_sfc_main$h,{key:0,text:R.value,close:W},null,8,["text"])):createCommentVNode("",!0)],64))}}),index_vue_vue_type_style_index_0_lang$2="";function d$1(k,m,M){let G=ref(M==null?void 0:M.value),V=computed(()=>k.value!==void 0);return[computed(()=>V.value?k.value:G.value),function(q){return V.value||(G.value=q),m==null?void 0:m(q)}]}let t$2=Symbol("headlessui.useid"),i$5=0;function I$1(){return inject(t$2,()=>`${++i$5}`)()}function o$2(k){var m;if(k==null||k.value==null)return null;let M=(m=k.value.$el)!=null?m:k.value;return M instanceof Node?M:null}function u$4(k,m,...M){if(k in m){let V=m[k];return typeof V=="function"?V(...M):V}let G=new Error(`Tried to handle "${k}" but there is no handler defined. Only defined handlers are: ${Object.keys(m).map(V=>`"${V}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(G,u$4),G}var i$4=Object.defineProperty,d=(k,m,M)=>m in k?i$4(k,m,{enumerable:!0,configurable:!0,writable:!0,value:M}):k[m]=M,n$2=(k,m,M)=>(d(k,typeof m!="symbol"?m+"":m,M),M);let s$1=class{constructor(){n$2(this,"current",this.detect()),n$2(this,"currentId",0)}set(m){this.current!==m&&(this.currentId=0,this.current=m)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},c$2=new s$1;function i$3(k){if(c$2.isServer)return null;if(k instanceof Node)return k.ownerDocument;if(k!=null&&k.hasOwnProperty("value")){let m=o$2(k);if(m)return m.ownerDocument}return document}let c$1=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(k=>`${k}:not([tabindex='-1'])`).join(",");var N$1=(k=>(k[k.First=1]="First",k[k.Previous=2]="Previous",k[k.Next=4]="Next",k[k.Last=8]="Last",k[k.WrapAround=16]="WrapAround",k[k.NoScroll=32]="NoScroll",k))(N$1||{}),T$1=(k=>(k[k.Error=0]="Error",k[k.Overflow=1]="Overflow",k[k.Success=2]="Success",k[k.Underflow=3]="Underflow",k))(T$1||{}),F=(k=>(k[k.Previous=-1]="Previous",k[k.Next=1]="Next",k))(F||{});function E$1(k=document.body){return k==null?[]:Array.from(k.querySelectorAll(c$1)).sort((m,M)=>Math.sign((m.tabIndex||Number.MAX_SAFE_INTEGER)-(M.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=(k=>(k[k.Strict=0]="Strict",k[k.Loose=1]="Loose",k))(h||{});function w$2(k,m=0){var M;return k===((M=i$3(k))==null?void 0:M.body)?!1:u$4(m,{0(){return k.matches(c$1)},1(){let G=k;for(;G!==null;){if(G.matches(c$1))return!0;G=G.parentElement}return!1}})}function _(k){let m=i$3(k);nextTick(()=>{m&&!w$2(m.activeElement,0)&&S$1(k)})}var y$1=(k=>(k[k.Keyboard=0]="Keyboard",k[k.Mouse=1]="Mouse",k))(y$1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",k=>{k.metaKey||k.altKey||k.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",k=>{k.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:k.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function S$1(k){k==null||k.focus({preventScroll:!0})}let H=["textarea","input"].join(",");function I(k){var m,M;return(M=(m=k==null?void 0:k.matches)==null?void 0:m.call(k,H))!=null?M:!1}function O$1(k,m=M=>M){return k.slice().sort((M,G)=>{let V=m(M),q=m(G);if(V===null||q===null)return 0;let $=V.compareDocumentPosition(q);return $&Node.DOCUMENT_POSITION_FOLLOWING?-1:$&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function v$1(k,m){return P(E$1(),m,{relativeTo:k})}function P(k,m,{sorted:M=!0,relativeTo:G=null,skipElements:V=[]}={}){var q;let $=(q=Array.isArray(k)?k.length>0?k[0].ownerDocument:document:k==null?void 0:k.ownerDocument)!=null?q:document,D=Array.isArray(k)?M?O$1(k):k:E$1(k);V.length>0&&D.length>1&&(D=D.filter(ae=>!V.includes(ae))),G=G??$.activeElement;let B=(()=>{if(m&5)return 1;if(m&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),R=(()=>{if(m&1)return 0;if(m&2)return Math.max(0,D.indexOf(G))-1;if(m&4)return Math.max(0,D.indexOf(G))+1;if(m&8)return D.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),U=m&32?{preventScroll:!0}:{},K=0,z=D.length,e;do{if(K>=z||K+z<=0)return 0;let ae=R+K;if(m&16)ae=(ae+z)%z;else{if(ae<0)return 3;if(ae>=z)return 1}e=D[ae],e==null||e.focus(U),K+=B}while(e!==$.activeElement);return m&6&&I(e)&&e.select(),2}function t$1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i$2(){return/Android/gi.test(window.navigator.userAgent)}function n$1(){return t$1()||i$2()}function u$3(k,m,M){c$2.isServer||watchEffect(G=>{document.addEventListener(k,m,M),G(()=>document.removeEventListener(k,m,M))})}function w$1(k,m,M){c$2.isServer||watchEffect(G=>{window.addEventListener(k,m,M),G(()=>window.removeEventListener(k,m,M))})}function w(k,m,M=computed(()=>!0)){function G(q,$){if(!M.value||q.defaultPrevented)return;let D=$(q);if(D===null||!D.getRootNode().contains(D))return;let B=function R(U){return typeof U=="function"?R(U()):Array.isArray(U)||U instanceof Set?U:[U]}(k);for(let R of B){if(R===null)continue;let U=R instanceof HTMLElement?R:o$2(R);if(U!=null&&U.contains(D)||q.composed&&q.composedPath().includes(U))return}return!w$2(D,h.Loose)&&D.tabIndex!==-1&&q.preventDefault(),m(q,D)}let V=ref(null);u$3("pointerdown",q=>{var $,D;M.value&&(V.value=((D=($=q.composedPath)==null?void 0:$.call(q))==null?void 0:D[0])||q.target)},!0),u$3("mousedown",q=>{var $,D;M.value&&(V.value=((D=($=q.composedPath)==null?void 0:$.call(q))==null?void 0:D[0])||q.target)},!0),u$3("click",q=>{n$1()||V.value&&(G(q,()=>V.value),V.value=null)},!0),u$3("touchend",q=>G(q,()=>q.target instanceof HTMLElement?q.target:null),!0),w$1("blur",q=>G(q,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function r$1(k,m){if(k)return k;let M=m??"button";if(typeof M=="string"&&M.toLowerCase()==="button")return"button"}function s(k,m){let M=ref(r$1(k.value.type,k.value.as));return onMounted(()=>{M.value=r$1(k.value.type,k.value.as)}),watchEffect(()=>{var G;M.value||o$2(m)&&o$2(m)instanceof HTMLButtonElement&&!((G=o$2(m))!=null&&G.hasAttribute("type"))&&(M.value="button")}),M}function r(k){return[k.screenX,k.screenY]}function u$2(){let k=ref([-1,-1]);return{wasMoved(m){let M=r(m);return k.value[0]===M[0]&&k.value[1]===M[1]?!1:(k.value=M,!0)},update(m){k.value=r(m)}}}function i$1({container:k,accept:m,walk:M,enabled:G}){watchEffect(()=>{let V=k.value;if(!V||G!==void 0&&!G.value)return;let q=i$3(k);if(!q)return;let $=Object.assign(B=>m(B),{acceptNode:m}),D=q.createTreeWalker(V,NodeFilter.SHOW_ELEMENT,$,!1);for(;D.nextNode();)M(D.currentNode)})}var N=(k=>(k[k.None=0]="None",k[k.RenderStrategy=1]="RenderStrategy",k[k.Static=2]="Static",k))(N||{}),S=(k=>(k[k.Unmount=0]="Unmount",k[k.Hidden=1]="Hidden",k))(S||{});function A$1({visible:k=!0,features:m=0,ourProps:M,theirProps:G,...V}){var q;let $=j$1(G,M),D=Object.assign(V,{props:$});if(k||m&2&&$.static)return y(D);if(m&1){let B=(q=$.unmount)==null||q?0:1;return u$4(B,{0(){return null},1(){return y({...V,props:{...$,hidden:!0,style:{display:"none"}}})}})}return y(D)}function y({props:k,attrs:m,slots:M,slot:G,name:V}){var q,$;let{as:D,...B}=T(k,["unmount","static"]),R=(q=M.default)==null?void 0:q.call(M,G),U={};if(G){let K=!1,z=[];for(let[e,ae]of Object.entries(G))typeof ae=="boolean"&&(K=!0),ae===!0&&z.push(e);K&&(U["data-headlessui-state"]=z.join(" "))}if(D==="template"){if(R=b(R??[]),Object.keys(B).length>0||Object.keys(m).length>0){let[K,...z]=R??[];if(!v(K)||z.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${V} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(B).concat(Object.keys(m)).map(ie=>ie.trim()).filter((ie,he,J)=>J.indexOf(ie)===he).sort((ie,he)=>ie.localeCompare(he)).map(ie=>` - ${ie}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(ie=>` - ${ie}`).join(`
`)].join(`
`));let e=j$1(($=K.props)!=null?$:{},B,U),ae=cloneVNode(K,e,!0);for(let ie in e)ie.startsWith("on")&&(ae.props||(ae.props={}),ae.props[ie]=e[ie]);return ae}return Array.isArray(R)&&R.length===1?R[0]:R}return h$1(D,Object.assign({},B,U),{default:()=>R})}function b(k){return k.flatMap(m=>m.type===Fragment$1?b(m.children):[m])}function j$1(...k){if(k.length===0)return{};if(k.length===1)return k[0];let m={},M={};for(let G of k)for(let V in G)V.startsWith("on")&&typeof G[V]=="function"?(M[V]!=null||(M[V]=[]),M[V].push(G[V])):m[V]=G[V];if(m.disabled||m["aria-disabled"])return Object.assign(m,Object.fromEntries(Object.keys(M).map(G=>[G,void 0])));for(let G in M)Object.assign(m,{[G](V,...q){let $=M[G];for(let D of $){if(V instanceof Event&&V.defaultPrevented)return;D(V,...q)}}});return m}function E(k){let m=Object.assign({},k);for(let M in m)m[M]===void 0&&delete m[M];return m}function T(k,m=[]){let M=Object.assign({},k);for(let G of m)G in M&&delete M[G];return M}function v(k){return k==null?!1:typeof k.type=="string"||typeof k.type=="object"||typeof k.type=="function"}var u$1=(k=>(k[k.None=1]="None",k[k.Focusable=2]="Focusable",k[k.Hidden=4]="Hidden",k))(u$1||{});let f$6=defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(k,{slots:m,attrs:M}){return()=>{var G;let{features:V,...q}=k,$={"aria-hidden":(V&2)===2?!0:(G=q["aria-hidden"])!=null?G:void 0,hidden:(V&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(V&4)===4&&(V&2)!==2&&{display:"none"}}};return A$1({ourProps:$,theirProps:q,slot:{},attrs:M,slots:m,name:"Hidden"})}}}),n=Symbol("Context");var i=(k=>(k[k.Open=1]="Open",k[k.Closed=2]="Closed",k[k.Closing=4]="Closing",k[k.Opening=8]="Opening",k))(i||{});function l(){return inject(n,null)}function t(k){provide(n,k)}var o$1=(k=>(k.Space=" ",k.Enter="Enter",k.Escape="Escape",k.Backspace="Backspace",k.Delete="Delete",k.ArrowLeft="ArrowLeft",k.ArrowUp="ArrowUp",k.ArrowRight="ArrowRight",k.ArrowDown="ArrowDown",k.Home="Home",k.End="End",k.PageUp="PageUp",k.PageDown="PageDown",k.Tab="Tab",k))(o$1||{});function u(k){throw new Error("Unexpected object: "+k)}var c=(k=>(k[k.First=0]="First",k[k.Previous=1]="Previous",k[k.Next=2]="Next",k[k.Last=3]="Last",k[k.Specific=4]="Specific",k[k.Nothing=5]="Nothing",k))(c||{});function f$5(k,m){let M=m.resolveItems();if(M.length<=0)return null;let G=m.resolveActiveIndex(),V=G??-1;switch(k.focus){case 0:{for(let q=0;q<M.length;++q)if(!m.resolveDisabled(M[q],q,M))return q;return G}case 1:{V===-1&&(V=M.length);for(let q=V-1;q>=0;--q)if(!m.resolveDisabled(M[q],q,M))return q;return G}case 2:{for(let q=V+1;q<M.length;++q)if(!m.resolveDisabled(M[q],q,M))return q;return G}case 3:{for(let q=M.length-1;q>=0;--q)if(!m.resolveDisabled(M[q],q,M))return q;return G}case 4:{for(let q=0;q<M.length;++q)if(m.resolveId(M[q],q,M)===k.id)return q;return G}case 5:return null;default:u(k)}}function p$1(k){var m,M;let G=(m=k==null?void 0:k.form)!=null?m:k.closest("form");if(G){for(let V of G.elements)if(V!==k&&(V.tagName==="INPUT"&&V.type==="submit"||V.tagName==="BUTTON"&&V.type==="submit"||V.nodeName==="INPUT"&&V.type==="image")){V.click();return}(M=G.requestSubmit)==null||M.call(G)}}let a=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(k){var m,M;let G=(m=k.innerText)!=null?m:"",V=k.cloneNode(!0);if(!(V instanceof HTMLElement))return G;let q=!1;for(let D of V.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))D.remove(),q=!0;let $=q?(M=V.innerText)!=null?M:"":G;return a.test($)&&($=$.replace(a,"")),$}function g(k){let m=k.getAttribute("aria-label");if(typeof m=="string")return m.trim();let M=k.getAttribute("aria-labelledby");if(M){let G=M.split(" ").map(V=>{let q=document.getElementById(V);if(q){let $=q.getAttribute("aria-label");return typeof $=="string"?$.trim():o(q).trim()}return null}).filter(Boolean);if(G.length>0)return G.join(", ")}return o(k).trim()}function p(k){let m=ref(""),M=ref("");return()=>{let G=o$2(k);if(!G)return"";let V=G.innerText;if(m.value===V)return M.value;let q=g(G).trim().toLowerCase();return m.value=V,M.value=q,q}}var Z=(k=>(k[k.Open=0]="Open",k[k.Closed=1]="Closed",k))(Z||{}),ee=(k=>(k[k.Pointer=0]="Pointer",k[k.Other=1]="Other",k))(ee||{});function te(k){requestAnimationFrame(()=>requestAnimationFrame(k))}let A=Symbol("MenuContext");function O(k){let m=inject(A,null);if(m===null){let M=new Error(`<${k} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(M,O),M}return m}let ge=defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(k,{slots:m,attrs:M}){let G=ref(1),V=ref(null),q=ref(null),$=ref([]),D=ref(""),B=ref(null),R=ref(1);function U(z=e=>e){let e=B.value!==null?$.value[B.value]:null,ae=O$1(z($.value.slice()),he=>o$2(he.dataRef.domRef)),ie=e?ae.indexOf(e):null;return ie===-1&&(ie=null),{items:ae,activeItemIndex:ie}}let K={menuState:G,buttonRef:V,itemsRef:q,items:$,searchQuery:D,activeItemIndex:B,activationTrigger:R,closeMenu:()=>{G.value=1,B.value=null},openMenu:()=>G.value=0,goToItem(z,e,ae){let ie=U(),he=f$5(z===c.Specific?{focus:c.Specific,id:e}:{focus:z},{resolveItems:()=>ie.items,resolveActiveIndex:()=>ie.activeItemIndex,resolveId:J=>J.id,resolveDisabled:J=>J.dataRef.disabled});D.value="",B.value=he,R.value=ae??1,$.value=ie.items},search(z){let e=D.value!==""?0:1;D.value+=z.toLowerCase();let ae=(B.value!==null?$.value.slice(B.value+e).concat($.value.slice(0,B.value+e)):$.value).find(he=>he.dataRef.textValue.startsWith(D.value)&&!he.dataRef.disabled),ie=ae?$.value.indexOf(ae):-1;ie===-1||ie===B.value||(B.value=ie,R.value=1)},clearSearch(){D.value=""},registerItem(z,e){let ae=U(ie=>[...ie,{id:z,dataRef:e}]);$.value=ae.items,B.value=ae.activeItemIndex,R.value=1},unregisterItem(z){let e=U(ae=>{let ie=ae.findIndex(he=>he.id===z);return ie!==-1&&ae.splice(ie,1),ae});$.value=e.items,B.value=e.activeItemIndex,R.value=1}};return w([V,q],(z,e)=>{var ae;K.closeMenu(),w$2(e,h.Loose)||(z.preventDefault(),(ae=o$2(V))==null||ae.focus())},computed(()=>G.value===0)),provide(A,K),t(computed(()=>u$4(G.value,{0:i.Open,1:i.Closed}))),()=>{let z={open:G.value===0,close:K.closeMenu};return A$1({ourProps:{},theirProps:k,slot:z,slots:m,attrs:M,name:"Menu"})}}}),Se=defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(k,{attrs:m,slots:M,expose:G}){var V;let q=(V=k.id)!=null?V:`headlessui-menu-button-${I$1()}`,$=O("MenuButton");G({el:$.buttonRef,$el:$.buttonRef});function D(K){switch(K.key){case o$1.Space:case o$1.Enter:case o$1.ArrowDown:K.preventDefault(),K.stopPropagation(),$.openMenu(),nextTick(()=>{var z;(z=o$2($.itemsRef))==null||z.focus({preventScroll:!0}),$.goToItem(c.First)});break;case o$1.ArrowUp:K.preventDefault(),K.stopPropagation(),$.openMenu(),nextTick(()=>{var z;(z=o$2($.itemsRef))==null||z.focus({preventScroll:!0}),$.goToItem(c.Last)});break}}function B(K){switch(K.key){case o$1.Space:K.preventDefault();break}}function R(K){k.disabled||($.menuState.value===0?($.closeMenu(),nextTick(()=>{var z;return(z=o$2($.buttonRef))==null?void 0:z.focus({preventScroll:!0})})):(K.preventDefault(),$.openMenu(),te(()=>{var z;return(z=o$2($.itemsRef))==null?void 0:z.focus({preventScroll:!0})})))}let U=s(computed(()=>({as:k.as,type:m.type})),$.buttonRef);return()=>{var K;let z={open:$.menuState.value===0},{...e}=k,ae={ref:$.buttonRef,id:q,type:U.value,"aria-haspopup":"menu","aria-controls":(K=o$2($.itemsRef))==null?void 0:K.id,"aria-expanded":$.menuState.value===0,onKeydown:D,onKeyup:B,onClick:R};return A$1({ourProps:ae,theirProps:e,slot:z,attrs:m,slots:M,name:"MenuButton"})}}}),Me=defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(k,{attrs:m,slots:M,expose:G}){var V;let q=(V=k.id)!=null?V:`headlessui-menu-items-${I$1()}`,$=O("MenuItems"),D=ref(null);G({el:$.itemsRef,$el:$.itemsRef}),i$1({container:computed(()=>o$2($.itemsRef)),enabled:computed(()=>$.menuState.value===0),accept(z){return z.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:z.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(z){z.setAttribute("role","none")}});function B(z){var e;switch(D.value&&clearTimeout(D.value),z.key){case o$1.Space:if($.searchQuery.value!=="")return z.preventDefault(),z.stopPropagation(),$.search(z.key);case o$1.Enter:if(z.preventDefault(),z.stopPropagation(),$.activeItemIndex.value!==null){let ae=$.items.value[$.activeItemIndex.value];(e=o$2(ae.dataRef.domRef))==null||e.click()}$.closeMenu(),_(o$2($.buttonRef));break;case o$1.ArrowDown:return z.preventDefault(),z.stopPropagation(),$.goToItem(c.Next);case o$1.ArrowUp:return z.preventDefault(),z.stopPropagation(),$.goToItem(c.Previous);case o$1.Home:case o$1.PageUp:return z.preventDefault(),z.stopPropagation(),$.goToItem(c.First);case o$1.End:case o$1.PageDown:return z.preventDefault(),z.stopPropagation(),$.goToItem(c.Last);case o$1.Escape:z.preventDefault(),z.stopPropagation(),$.closeMenu(),nextTick(()=>{var ae;return(ae=o$2($.buttonRef))==null?void 0:ae.focus({preventScroll:!0})});break;case o$1.Tab:z.preventDefault(),z.stopPropagation(),$.closeMenu(),nextTick(()=>v$1(o$2($.buttonRef),z.shiftKey?N$1.Previous:N$1.Next));break;default:z.key.length===1&&($.search(z.key),D.value=setTimeout(()=>$.clearSearch(),350));break}}function R(z){switch(z.key){case o$1.Space:z.preventDefault();break}}let U=l(),K=computed(()=>U!==null?(U.value&i.Open)===i.Open:$.menuState.value===0);return()=>{var z,e;let ae={open:$.menuState.value===0},{...ie}=k,he={"aria-activedescendant":$.activeItemIndex.value===null||(z=$.items.value[$.activeItemIndex.value])==null?void 0:z.id,"aria-labelledby":(e=o$2($.buttonRef))==null?void 0:e.id,id:q,onKeydown:B,onKeyup:R,role:"menu",tabIndex:0,ref:$.itemsRef};return A$1({ourProps:he,theirProps:ie,slot:ae,attrs:m,slots:M,features:N.RenderStrategy|N.Static,visible:K.value,name:"MenuItems"})}}}),be=defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(k,{slots:m,attrs:M,expose:G}){var V;let q=(V=k.id)!=null?V:`headlessui-menu-item-${I$1()}`,$=O("MenuItem"),D=ref(null);G({el:D,$el:D});let B=computed(()=>$.activeItemIndex.value!==null?$.items.value[$.activeItemIndex.value].id===q:!1),R=p(D),U=computed(()=>({disabled:k.disabled,get textValue(){return R()},domRef:D}));onMounted(()=>$.registerItem(q,U)),onUnmounted(()=>$.unregisterItem(q)),watchEffect(()=>{$.menuState.value===0&&B.value&&$.activationTrigger.value!==0&&nextTick(()=>{var J,W;return(W=(J=o$2(D))==null?void 0:J.scrollIntoView)==null?void 0:W.call(J,{block:"nearest"})})});function K(J){if(k.disabled)return J.preventDefault();$.closeMenu(),_(o$2($.buttonRef))}function z(){if(k.disabled)return $.goToItem(c.Nothing);$.goToItem(c.Specific,q)}let e=u$2();function ae(J){e.update(J)}function ie(J){e.wasMoved(J)&&(k.disabled||B.value||$.goToItem(c.Specific,q,0))}function he(J){e.wasMoved(J)&&(k.disabled||B.value&&$.goToItem(c.Nothing))}return()=>{let{disabled:J,...W}=k,X={active:B.value,disabled:J,close:$.closeMenu};return A$1({ourProps:{id:q,ref:D,role:"menuitem",tabIndex:J===!0?void 0:-1,"aria-disabled":J===!0?!0:void 0,onClick:K,onFocus:z,onPointerenter:ae,onMouseenter:ae,onPointermove:ie,onMousemove:ie,onPointerleave:he,onMouseleave:he},theirProps:{...M,...W},slot:X,attrs:M,slots:m,name:"MenuItem"})}}}),C=Symbol("GroupContext"),ue=defineComponent({name:"Switch",emits:{"update:modelValue":k=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(k,{emit:m,attrs:M,slots:G,expose:V}){var q;let $=(q=k.id)!=null?q:`headlessui-switch-${I$1()}`,D=inject(C,null),[B,R]=d$1(computed(()=>k.modelValue),W=>m("update:modelValue",W),computed(()=>k.defaultChecked));function U(){R(!B.value)}let K=ref(null),z=D===null?K:D.switchRef,e=s(computed(()=>({as:k.as,type:M.type})),z);V({el:z,$el:z});function ae(W){W.preventDefault(),U()}function ie(W){W.key===o$1.Space?(W.preventDefault(),U()):W.key===o$1.Enter&&p$1(W.currentTarget)}function he(W){W.preventDefault()}let J=computed(()=>{var W,X;return(X=(W=o$2(z))==null?void 0:W.closest)==null?void 0:X.call(W,"form")});return onMounted(()=>{watch([J],()=>{if(!J.value||k.defaultChecked===void 0)return;function W(){R(k.defaultChecked)}return J.value.addEventListener("reset",W),()=>{var X;(X=J.value)==null||X.removeEventListener("reset",W)}},{immediate:!0})}),()=>{let{name:W,value:X,form:L,tabIndex:Q,...ce}=k,de={checked:B.value},se={id:$,ref:z,role:"switch",type:e.value,tabIndex:Q===-1?0:Q,"aria-checked":B.value,"aria-labelledby":D==null?void 0:D.labelledby.value,"aria-describedby":D==null?void 0:D.describedby.value,onClick:ae,onKeyup:ie,onKeypress:he};return h$1(Fragment$1,[W!=null&&B.value!=null?h$1(f$6,E({features:u$1.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:B.value,form:L,disabled:ce.disabled,name:W,value:X})):null,A$1({ourProps:se,theirProps:{...M,...T(ce,["modelValue","defaultChecked"])},slot:de,attrs:M,slots:G,name:"Switch"})])}}});const _hoisted_1$g={class:"flex flex-col group max-w-full"},_hoisted_2$f={class:"pr-12 w-full flex flex-col items-start"},_hoisted_3$e={key:0,class:"relative flex items-center justify-center group hover:opacity-80 transition-opacity duration-300"},_hoisted_4$c=["src","onClick"],_hoisted_5$b={class:"flex flex-col ml-4 w-full"},_hoisted_6$a={class:"flex justify-between items-center"},_hoisted_7$a=["onClick"],_hoisted_8$9=["onClick"],_hoisted_9$9={key:0,class:"flex items-center justify-start mt-8 w-full"},_hoisted_10$8={class:"text-white text-sm mr-2 w-8 text-right flex items-center"},_hoisted_11$7={class:"flex-grow flex items-center min-w-0"},_hoisted_12$6=["onUpdate:modelValue","onInput","onChange"],_hoisted_13$5={class:"text-white text-sm ml-4 mr-2 flex items-center"},_hoisted_14$5=["src","onTimeupdate"],_hoisted_15$5={key:0,class:"w-full"},_hoisted_16$5={key:0,class:"loading-anchor"},_hoisted_17$5=["innerHTML"],_hoisted_18$5={key:0,class:"flex-none mt-2 mb-1"},_hoisted_19$4={class:"flex transition-opacity duration-300 text-gray-700 opacity-0 group-hover:opacity-100"},_hoisted_20$4={class:"mt-1 flex"},_hoisted_21$3={class:"flex text-sm"},_hoisted_22$3={class:"flex text-sm"},_hoisted_23$3=["src"],_hoisted_24$2={key:1,class:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black bg-opacity-50"},_hoisted_25$2=createBaseVNode("div",{class:"flex-none"},[createBaseVNode("h2",{class:"text-2xl mb-4 font-semibold"},"歌词编辑"),createBaseVNode("p",{class:"mb-4"},"您可以点击内容进行编辑修改")],-1),_hoisted_26$2={class:"flex-1 overflow-y-auto p-4 rounded-lg border-2 dark:border-gray-700"},_hoisted_27$2={class:"flex items-center mb-4"},_hoisted_28$2=createBaseVNode("label",{class:"w-12 text-gray-500 font-semibold"},"标题",-1),_hoisted_29$2={class:"mb-4"},_hoisted_30$2={class:"flex flex-col"},_hoisted_31$2={key:0,class:"text-gray-500 font-semibold"},_hoisted_32$2=["onUpdate:modelValue"],_hoisted_33$2={class:"flex mt-4"},_hoisted_34$2={class:"flex-1 justify-start"},_hoisted_35$2={class:"py-1"},_hoisted_36$2=["onClick"],_hoisted_37$2={href:"#",class:"flex w-full items-center pl-3 pr-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"},_hoisted_38$2={class:"w-28"},_hoisted_39$2={class:"py-1"},_hoisted_40$2=["onClick"],_hoisted_41$2={href:"#",class:"flex w-full items-center pl-3 pr-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"},_hoisted_42$2={class:"w-28"},_sfc_main$f=defineComponent({__name:"Music",props:{inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},videoUrl:{},audioUrl:{},model:{},drawId:{},customId:{},modelName:{},action:{},taskData:{},fileInfo:{},modelAvatar:{}},emits:["delete","copy"],setup(k,{expose:m,emit:M}){const G=ref(-1),V=ref(!1),q=ref(""),$=inject("onConversation"),D=k,B=M,{isMobile:R}=useBasicLayout();let U;const K=ref(!1),z=ref({title:"",text:""}),e=()=>{z.value=JSON.parse(D.taskData||"{}"),K.value=!0},ae=()=>{z.value=JSON.parse(D.taskData||"{}")};watch(()=>D.taskData,()=>{ae()},{immediate:!0}),onMounted(()=>{ae()});const ie=()=>{K.value=!1},he=ref([{id:"default",title:"普通歌曲",values:!1},{id:"instrumental",title:"纯音乐",values:!0}]),J=ref([{id:"default",title:"默认",values:""},{id:"pop",title:"流行",values:"pop"},{id:"rock",title:"摇滚",values:"rock"},{id:"hiphop",title:"嘻哈/说唱",values:"hiphop"},{id:"jazz",title:"爵士",values:"jazz"},{id:"blues",title:"蓝调/灵魂",values:"blues"},{id:"country",title:"乡村",values:"country"},{id:"classical",title:"古典",values:"classical"},{id:"folk",title:"民谣",values:"folk"},{id:"latin",title:"拉丁",values:"latin"},{id:"world",title:"世界音乐",values:"world"},{id:"electronic",title:"电子",values:"electronic"},{id:"newage",title:"新世纪",values:"newage"},{id:"metal",title:"重金属",values:"metal"},{id:"punk",title:"朋克",values:"punk"},{id:"rnb",title:"节奏布鲁斯",values:"rnb"}]),W=ref(he.value[0]),X=ref(J.value[0]),L=Le=>{V.value=Le.values,W.value=Le},Q=Le=>{q.value=Le.values,X.value=Le},ce=computed(()=>z.value.text.split(`
`).filter(Le=>Le.trim()!=="")),de=async()=>{K.value=!1;try{const Le=JSON.stringify({title:z.value.title,prompt:V.value?"":ce.value.join(`
`),mv:"chirp-v4",make_instrumental:V.value,tags:q.value});await $({msg:`${z.value.title}`,action:"MUSIC",customId:Le,modelType:2,model:D.model||"suno-music",modelName:D.modelName||"AI音乐",modelAvatar:D.modelAvatar})}catch{}};watch(()=>D.status,Le=>{U!==void 0&&(clearInterval(U),U=void 0),Le===2&&(U=window.setInterval(async()=>{await Ne.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{U!==void 0&&clearInterval(U)});const se=computed(()=>D.fileInfo?D.fileInfo.split(",").map(Le=>({type:"image",url:Le})):[]),oe=computed(()=>D.videoUrl?D.videoUrl.split(",").map(Le=>({type:"video",url:Le})):[]),me=computed(()=>D.audioUrl?D.audioUrl.split(",").map(Le=>({type:"audio",url:Le})):[]),Ee=computed(()=>(z.value=JSON.parse(D.taskData||"{}"),se.value.map((Le,et)=>({image:Le,video:oe.value[et]||{type:"video",url:""},audio:me.value[et]||{type:"audio",url:""},title:"标题",subtitle:"媒体风格"})))),ke=ref(new Array(Ee.value.length).fill(0)),xe=Le=>{const et=ye.value[Le];et&&(_e.value[Le]=et.currentTime,et.duration&&(Ge.value[Le]=et.duration),ke.value[Le]=et.currentTime/et.duration*100)},fe=(Le,et)=>{const Qe=et.target;ke.value[Le]=Number(Qe.value)},ve=(Le,et)=>{const Qe=ye.value[Le],Ue=et.target;if(Qe){const $e=Number(Ue.value)/100*Qe.duration;Qe.currentTime=$e}},ye=ref([]),Ce=Le=>{const et=ye.value[Le];et&&(ye.value.forEach((Qe,Ue)=>{Qe&&Ue!==Le&&(Qe.pause(),Qe.currentTime=0)}),et.paused?(et.play(),G.value=Le):(et.pause(),G.value=-1))},pe=Le=>{if(!isFinite(Le)||isNaN(Le))return"";const et=Math.floor(Le/60),Qe=Math.floor(Le%60);return`${et}:${Qe<10?"0":""}${Qe}`},_e=ref([]),Ge=ref([]),Ae=ref(),Ne=useChatStore(),Ze=new MarkdownIt({linkify:!0,highlight(Le,et){if(!!(et&&HighlightJS.getLanguage(et))){const Ue=et??"";return Fe(HighlightJS.highlight(Le,{language:Ue}).value,Ue)}return Fe(HighlightJS.highlightAuto(Le).value,"")}});Ze.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),Ze.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const ze=computed(()=>{const Le=D.text??"";return D.asRawText?Le:Ze.render(Le)});function Te(Le){fetch(Le).then(et=>et.blob()).then(et=>{const Qe=document.createElement("a"),Ue=URL.createObjectURL(et);Qe.href=Ue;const $e=D.text||"音频文件";Qe.setAttribute("download",`${$e}.mp3`),Qe.style.display="none",document.body.appendChild(Qe),Qe.click(),document.body.removeChild(Qe),URL.revokeObjectURL(Ue)}).catch(et=>{})}function Fe(Le,et){return`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${et}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${et}">${Le}</code></pre>`}function Pe(){B("copy")}function we(){B("delete")}m({textRef:Ae});const Ie=async()=>{try{z.value=JSON.parse(D.taskData||"{}");const Le=JSON.stringify({title:z.value.title,prompt:z.value.text,mv:"chirp-v3-5",make_instrumental:V.value});await $({msg:`${z.value.title}`,action:"MUSIC",customId:Le,modelType:2,model:D.model||"suno-music",modelName:D.modelName||"AI音乐",modelAvatar:D.modelAvatar})}catch{}},Be=ref(!1),Ke=ref(""),Ve=Le=>{if(!Le){Ne.queryActiveChatLogList();return}Ke.value=Le,Be.value=!0},je=()=>{Be.value=!1};return(Le,et)=>(openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("div",_hoisted_1$g,[createBaseVNode("div",{ref_key:"textRef",ref:Ae,class:"leading-relaxed break-words"},[createBaseVNode("div",_hoisted_2$f,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(Ee.value,(Qe,Ue)=>(openBlock(),createElementBlock("div",{key:Ue,class:normalizeClass(["flex justify-between items-center p-2 bg-gray-800 rounded-md mb-2",unref(R)?"w-[80vw]":"min-w-[35vw]"])},[Qe.audio.url?(openBlock(),createElementBlock("div",_hoisted_3$e,[createBaseVNode("img",{src:Qe.image.url,onClick:$e=>Ce(Ue),class:normalizeClass(["rounded-md cursor-pointer transition-opacity duration-300",{"opacity-80":G.value===Ue}]),style:normalizeStyle({maxWidth:unref(R)?"80px":"100px",maxHeight:unref(R)?"80px":"100px"})},null,14,_hoisted_4$c),(openBlock(),createBlock(resolveDynamicComponent(G.value===Ue?unref(Pause):unref(PlayOne)),{class:normalizeClass(["absolute text-white text-3xl opacity-80 cursor-pointer transition-opacity duration-300",{"opacity-100":G.value===Ue}]),onClick:$e=>Ce(Ue)},null,8,["onClick","class"]))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$b,[createBaseVNode("div",_hoisted_6$a,[createBaseVNode("h3",{class:"text-white text-sm hover:underline cursor-pointer",onClick:$e=>Ve(Qe.video.url)},toDisplayString(D.text),9,_hoisted_7$a),createBaseVNode("button",{onClick:$e=>Te(Qe.audio.url),class:"w-8 h-8 text-white text-sm rounded-full hover:bg-gray-700 px-2 py-1 mr-2"},[createVNode(unref(DownloadOne),{size:"16"})],8,_hoisted_8$9)]),Qe.audio.url?(openBlock(),createElementBlock("div",_hoisted_9$9,[createBaseVNode("span",_hoisted_10$8,toDisplayString(pe(_e.value[Ue]||0)),1),createBaseVNode("div",_hoisted_11$7,[withDirectives(createBaseVNode("input",{type:"range",min:"0",max:"100",step:"1","onUpdate:modelValue":$e=>ke.value[Ue]=$e,onInput:$e=>fe(Ue,$e),onChange:$e=>ve(Ue,$e),class:"flex-grow flex max-w-full"},null,40,_hoisted_12$6),[[vModelText,ke.value[Ue]]])]),createBaseVNode("span",_hoisted_13$5,toDisplayString(pe(Ge.value[Ue]||0)),1)])):createCommentVNode("",!0)]),createBaseVNode("audio",{ref_for:!0,ref_key:"audioRefs",ref:ye,src:Qe.audio.url,onTimeupdate:$e=>xe(Ue),hidden:""},null,40,_hoisted_14$5)],2))),128)),Le.fileInfo?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_15$5,[Le.status===2&&!ze.value?(openBlock(),createElementBlock("span",_hoisted_16$5)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":Le.status===2||!ze.value}]),innerHTML:ze.value},null,10,_hoisted_17$5)]))]),Le.status===3&&Le.action==="LYRICS"?(openBlock(),createElementBlock("div",_hoisted_18$5,[createBaseVNode("div",{class:"flex justify-start"},[createBaseVNode("button",{onClick:e,class:"px-4 py-1 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 编辑 "),createBaseVNode("button",{onClick:Ie,class:"px-4 py-1 shadow-sm bg-primary-600 hover:bg-primary-500 text-white dark rounded-md"}," 一键创作音乐 ")])])):createCommentVNode("",!0)],512),createBaseVNode("div",_hoisted_19$4,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_20$4,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Pe},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_21$3,toDisplayString(unref(t$3)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:we},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_22$3,toDisplayString(unref(t$3)("chat.delete")),1)])])])])]),Be.value?(openBlock(),createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:je},[createBaseVNode("div",{class:"relative p-0 rounded-md shadow-md max-w-full max-h-full",onClick:et[0]||(et[0]=withModifiers(()=>{},["stop"]))},[createVNode(unref(Close),{onClick:je,class:"absolute top-2 -right-8 text-gray-500 hover:text-gray-600",size:"26"}),createBaseVNode("video",{src:Ke.value,controls:"",class:"w-full h-full rounded-md"},null,8,_hoisted_23$3)])])):createCommentVNode("",!0),K.value?(openBlock(),createElementBlock("div",_hoisted_24$2,[createBaseVNode("div",{class:normalizeClass(["bg-white p-6 w-full flex flex-col dark:bg-gray-900 dark:text-gray-400 relative",[unref(R)?"w-full h-full":"max-h-[80vh] max-w-3xl rounded-lg shadow-lg"]])},[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:ie}),_hoisted_25$2,createBaseVNode("div",_hoisted_26$2,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_27$2,[_hoisted_28$2,withDirectives(createBaseVNode("input",{type:"text","onUpdate:modelValue":et[1]||(et[1]=Qe=>z.value.title=Qe),class:"flex-1 p-2 text-lg font-semibold dark:bg-gray-900 dark:text-gray-400"},null,512),[[vModelText,z.value.title]])]),createBaseVNode("div",_hoisted_29$2,[createBaseVNode("div",_hoisted_30$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(ce.value,(Qe,Ue)=>(openBlock(),createElementBlock("div",{key:Ue,class:"py-2"},[Qe.startsWith("[")&&Qe.endsWith("]")?(openBlock(),createElementBlock("span",_hoisted_31$2,toDisplayString(Qe),1)):withDirectives((openBlock(),createElementBlock("textarea",{key:1,"onUpdate:modelValue":$e=>ce.value[Ue]=$e,class:"ml-3 flex-1 py-1 w-full dark:bg-gray-900 dark:text-gray-400",rows:"1",style:{resize:"none"}},null,8,_hoisted_32$2)),[[vModelText,ce.value[Ue]]])]))),128))])])])]),createBaseVNode("div",_hoisted_33$2,[createBaseVNode("div",_hoisted_34$2,[createVNode(unref(ge),{as:"div",class:"relative inline-block text-left shadow-sm rounded-md group mr-4"},{default:withCtx(()=>[createVNode(unref(Se),{class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600 inline-flex w-full justify-center text-sm group-hover:bg-gray-50 dark:group-hover:bg-gray-700 group-hover:text-gray-900 dark:group-hover:text-gray-400 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(W.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute left-0 bottom-full mb-2 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-800 dark:text-gray-400 text-gray-900 overflow-y-auto"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_35$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(he.value,(Qe,Ue)=>(openBlock(),createBlock(unref(be),{key:Ue},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:$e=>L(Qe)},[createBaseVNode("a",_hoisted_37$2,[createBaseVNode("div",_hoisted_38$2,toDisplayString(Qe.title),1)])],8,_hoisted_36$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1}),createVNode(unref(ge),{as:"div",class:"relative inline-block text-left shadow-sm rounded-md group"},{default:withCtx(()=>[createVNode(unref(Se),{class:"px-3 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600 inline-flex w-full justify-center text-sm group-hover:bg-gray-50 dark:group-hover:bg-gray-700 group-hover:text-gray-900 dark:group-hover:text-gray-400 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(" 风格:"+toDisplayString(X.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute left-0 bottom-full mb-2 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-800 dark:text-gray-400 text-gray-900 overflow-y-auto max-h-[60vh]"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_39$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(J.value,(Qe,Ue)=>(openBlock(),createBlock(unref(be),{key:Ue},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:$e=>Q(Qe)},[createBaseVNode("a",_hoisted_41$2,[createBaseVNode("div",_hoisted_42$2,toDisplayString(Qe.title),1)])],8,_hoisted_40$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})]),createBaseVNode("div",{class:"flex justify-end"},[createBaseVNode("button",{onClick:ie,class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 取消 "),createBaseVNode("button",{onClick:de,class:"px-4 py-2 shadow-sm bg-primary-600 hover:bg-primary-500 text-white rounded-md"}," 提交 ")])])],2)])):createCommentVNode("",!0)],64))}}),_hoisted_1$f={class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"},_hoisted_2$e={key:0,class:"p-2 w-full h-1/2"},_hoisted_3$d=["srcDoc"],_hoisted_4$b={key:1,class:"w-3/4 p-2"},_hoisted_5$a=["srcDoc"],_sfc_main$e=defineComponent({__name:"htmlModal",props:{text:{},close:{type:Function}},setup(k){const m=k,M=ref(null),G=ref(m.text),{isMobile:V}=useBasicLayout();watch(G,()=>{q()}),watchEffect(()=>{G.value=m.text});const q=()=>{if(M.value){const B=M.value.contentDocument;B&&(B.body.innerHTML=G.value)}},$=()=>{m.close()},D=async()=>{var B,R;try{await navigator.clipboard.writeText(G.value),(B=window.$message)==null||B.success("内容已复制到剪贴板")}catch{(R=window.$message)==null||R.error("复制失败")}};return(B,R)=>(openBlock(),createElementBlock("div",_hoisted_1$f,[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:$}),createBaseVNode("div",{class:normalizeClass(["bg-white dark:bg-gray-900 w-full h-full p-4",[unref(V)?"flex-col":"flex"]])},[unref(V)?(openBlock(),createElementBlock("div",_hoisted_2$e,[createBaseVNode("iframe",{srcDoc:G.value,class:"box-border w-full h-full border rounded-md"},null,8,_hoisted_3$d)])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["p-2 flex flex-col",[unref(V)?"w-full h-1/2":"w-1/4"]])},[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":R[0]||(R[0]=U=>G.value=U),class:"w-full h-full p-2 border rounded-md resize-none text-base dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700"},null,512),[[vModelText,G.value]]),createBaseVNode("div",{class:"mt-2 flex justify-end"},[createBaseVNode("button",{onClick:$,class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 取消 "),createBaseVNode("button",{onClick:D,class:"px-4 py-2 shadow-sm bg-primary-600 hover:bg-primary-500 text-white dark rounded-md"}," 复制 ")])],2),unref(V)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$b,[createBaseVNode("iframe",{srcDoc:G.value,class:"box-border w-full h-full border rounded-md"},null,8,_hoisted_5$a)]))],2)]))}}),htmlModal_vue_vue_type_style_index_0_scoped_e09b87ec_lang="",HtmlModal=_export_sfc(_sfc_main$e,[["__scopeId","data-v-e09b87ec"]]),_hoisted_1$e={class:"flex flex-col group w-full"},_hoisted_2$d={class:"text-wrap rounded-lg min-w-12 flex w-full flex-col"},_hoisted_3$c={key:1,class:"text-gray-600 flex items-center mb-1 text-base hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300 cursor-pointer"},_hoisted_4$a=createBaseVNode("span",null,"深度思考",-1),_hoisted_5$9={key:0,class:"flex flex-col items-start",style:{"max-width":"100%"}},_hoisted_6$9={class:"w-full"},_hoisted_7$9={key:0,class:"inline-block w-3.5 h-3.5 ml-0.5 align-middle rounded-full animate-breathe dark:bg-gray-100 bg-gray-950"},_hoisted_8$8=["innerHTML"],_hoisted_9$8=["innerHTML"],_hoisted_10$7={key:0,class:"p-3 rounded-2xl w-full bg-opacity dark:bg-gray-750 break-words",style:{"max-width":"100%"}},_hoisted_11$6=["textContent"],_hoisted_12$5={class:"flex p-3 items-center justify-center ring-1 ring-inset ring-gray-200 dark:ring-gray-700 rounded-lg hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"},_hoisted_13$4={key:0,class:"flex-none mt-2 mb-1"},_hoisted_14$4={key:1,class:"flex-none transition-opacity duration-500"},_hoisted_15$4=["onClick"],_hoisted_16$4={class:"mt-2 flex"},_hoisted_17$4={class:"flex text-sm"},_hoisted_18$4={class:"flex text-sm"},_hoisted_19$3=createBaseVNode("span",{class:"flex text-sm"},"取消",-1),_hoisted_20$3=createBaseVNode("span",{class:"flex text-sm"},"提交",-1),_hoisted_21$2=createBaseVNode("span",{class:"flex text-sm"},"编辑",-1),_hoisted_22$2=createBaseVNode("span",{class:"flex text-sm"},"重新生成",-1),_hoisted_23$2={class:"flex text-sm"},_sfc_main$d=defineComponent({__name:"index",props:{chatId:{},index:{},inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},ttsUrl:{},model:{},promptReference:{},isLast:{type:Boolean}},emits:["regenerate","delete","copy"],setup(k,{expose:m,emit:M}){const G=useAuthStore(),{isMobile:V}=useBasicLayout(),q=inject("onConversation"),$=inject("handleRegenerate"),D=k,B=M,R=ref(!1),U=ref(D.text),K=ref(!0),z=ref(),e=ref(D.ttsUrl),ae=ref(""),ie=ref(!1),he=ref("paused"),J=ref(D.text),W=ref(!1),X=ref(null);let L=null;const Q=computed(()=>{var Pe;return Number((Pe=G.globalConfig)==null?void 0:Pe.isHideTts)===1}),ce=computed(()=>he.value!=="paused"||W.value?"opacity-100":"opacity-0 group-hover:opacity-100"),de=async()=>{if(!(he.value==="loading"||he.value==="playing")){if(e.value){se(e.value);return}he.value="loading";try{if(!D.chatId)return;const we=(await fetchTtsAPIProces({chatId:D.chatId,prompt:D.text})).ttsUrl;if(we)e.value=we,se(we);else throw new Error("TTS URL is undefined")}catch{he.value="paused"}}};function se(Pe){L&&L.pause(),L=new Audio(Pe),L.play().then(()=>{he.value="playing"}).catch(we=>{he.value="paused"}),L.onended=()=>{he.value="paused",L=null}}function oe(){L&&(L.pause(),he.value="paused")}function me(){he.value==="playing"?oe():de()}const Ee=new MarkdownIt({linkify:!0,html:!0,highlight(Pe,we){if(!!(we&&HighlightJS.getLanguage(we))){const Be=we??"";return console.log("language",we),we==="html"&&(ae.value=Pe,ie.value=!0,console.log("htmlContent",ae.value)),pe(HighlightJS.highlight(Pe,{language:Be}).value,Be)}return pe(HighlightJS.highlightAuto(Pe).value,"")}});Ee.renderer.rules.image=function(Pe,we,Ie,Be,Ke){const Ve=Pe[we],je=Ve.attrGet("src"),Le=Ve.attrGet("title"),et=Ve.content;return V.value?`<img src="${je}" alt="${et}" title="${Le||et}" class="rounded-md"
style=" max-width:100% "
onclick="(function() {
const modal = document.createElement('div');
modal.style.position = 'fixed';
modal.style.top = 0;
modal.style.left = 0;
modal.style.width = '100vw';
modal.style.height = '100vh';
modal.style.background = 'rgba(0, 0, 0, 1)';
modal.style.display = 'flex';
modal.style.justifyContent = 'center';
modal.style.alignItems = 'center';
modal.style.zIndex = 1000;
modal.style.overflow = 'hidden';
modal.onclick = (event) => {
document.body.removeChild(modal);
};
const img = document.createElement('img');
img.src = '${je}';
img.style.maxWidth = '100%';
img.style.maxHeight = '95%';
img.style.transform = 'scale(1) translate(0px, 0px)';
img.style.transition = 'transform 0.2s';
let scale = 1;
let posX = 0, posY = 0;
let isDragging = false;
let startX, startY;
let initialDistance = null;
modal.addEventListener('touchmove', (event) => {
if (event.touches.length === 2) {
const touch1 = event.touches[0];
const touch2 = event.touches[1];
const currentDistance = Math.sqrt(
(touch2.clientX - touch1.clientX) ** 2 +
(touch2.clientY - touch1.clientY) ** 2
);
if (initialDistance === null) {
initialDistance = currentDistance;
} else {
const scaleChange = currentDistance / initialDistance;
scale = Math.max(0.5, Math.min(scale * scaleChange, 3));
img.style.transform = \`scale(\${scale}) translate(\${posX}px, \${posY}px)\`;
initialDistance = currentDistance;
}
}
});
modal.addEventListener('touchend', () => {
initialDistance = null;
});
modal.appendChild(img);
document.body.appendChild(modal);
})()"
/>`:`<img src="${je}" alt="${et}" title="${Le||et}" class="rounded-md"
style="max-width:100% ;max-height: 30vh;"
onclick="(function() {
const modal = document.createElement('div');
modal.style.position = 'fixed';
modal.style.top = 0;
modal.style.left = 0;
modal.style.width = '100vw';
modal.style.height = '100vh';
modal.style.background = 'rgba(0, 0, 0, 0.5)';
modal.style.display = 'flex';
modal.style.justifyContent = 'center';
modal.style.alignItems = 'center';
modal.style.zIndex = 1000;
modal.style.overflow = 'hidden';
modal.onclick = (event) => {
if (event.target === modal) {
document.body.removeChild(modal);
}
};
const img = document.createElement('img');
img.src = '${je}';
img.style.maxWidth = '95%';
img.style.maxHeight = '95%';
img.style.borderRadius = '8px';
img.style.transform = 'scale(1) translate(0px, 0px)';
img.style.transition = 'transform 0.2s';
let scale = 1;
let posX = 0, posY = 0;
let isDragging = false;
let startX, startY;
modal.addEventListener('wheel', (event) => {
event.preventDefault();
const zoomFactor = 0.1;
if (event.deltaY < 0) {
scale = Math.min(scale + zoomFactor, 3);
} else {
scale = Math.max(scale - zoomFactor, 0.5);
}
img.style.transform = \`scale(\${scale}) translate(\${posX}px, \${posY}px)\`;
});
let initialDistance = null;
modal.addEventListener('touchmove', (event) => {
if (event.touches.length === 2) {
const touch1 = event.touches[0];
const touch2 = event.touches[1];
const currentDistance = Math.sqrt(
(touch2.clientX - touch1.clientX) ** 2 +
(touch2.clientY - touch1.clientY) ** 2
);
if (initialDistance === null) {
initialDistance = currentDistance;
} else {
const scaleChange = currentDistance / initialDistance;
scale = Math.max(0.5, Math.min(scale * scaleChange, 3));
img.style.transform = \`scale(\${scale}) translate(\${posX}px, \${posY}px)\`;
initialDistance = currentDistance;
}
}
});
modal.addEventListener('touchend', () => {
initialDistance = null;
});
const close = document.createElement('span');
close.innerText = '×';
close.style.position = 'absolute';
close.style.top = '24px';
close.style.right = '24px';
close.style.color = 'white';
close.style.fontSize = '1.5rem';
close.style.cursor = 'pointer';
close.onclick = () => document.body.removeChild(modal);
modal.appendChild(img);
modal.appendChild(close);
document.body.appendChild(modal);
})()"
/>`};const ke=computed(()=>D.fileInfo),xe=computed(()=>{var Pe;return(Pe=ke==null?void 0:ke.value)==null?void 0:Pe.split(",").map(we=>we.trim())}),fe=computed(()=>ke.value?/\.(mp4|avi|mov|wmv|flv)$/i.test(ke.value):!1),ve=computed(()=>ke.value?/\.(jpg|jpeg|png|gif|webp)$/i.test(ke.value):!1);Ee.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),Ee.use(mdKatex,{blockClass:"katexmath-block p-0 flex h-full items-center justify-start",inlineClass:"katexmath-inline",errorColor:" #cc0000"});const ye=computed(()=>{let Pe=D.text||"";if(Pe.startsWith("<think>")){const Ie=Pe.indexOf("</think>");Ie!==-1?Pe=Pe.slice(0,Pe.indexOf("<think>"))+Pe.slice(Ie+8):Pe=""}let we=Pe.replace(/\\\(\s*/g,"$").replace(/\s*\\\)/g,"$").replace(/\\\[\s*/g,"$$").replace(/\s*\\\]/g,"$$").replace(/\[\[(\d+)\]\((https?:\/\/[^\)]+)\)\]/g,`<button class="bg-gray-500 text-white rounded-full w-4 h-4 mx-1 flex justify-center items-center text-sm hover:bg-gray-600 dark:bg-gray-600 dark:hover:bg-gray-500 inline-flex" onclick="window.open('$2', '_blank')">$1</button>`);return D.asRawText?we:Ee.render(we)}),Ce=computed(()=>{var Ie,Be;let Pe="";if((Ie=D.text)!=null&&Ie.includes("<think>")&&!D.text.includes("</think>"))Pe=D.text.replace(/<think>/g,"").trim();else{const Ke=(Be=D.text)==null?void 0:Be.match(/<think>([\s\S]*?)<\/think>/);Ke&&(Pe=Ke[1])}const we=Pe.replace(/\\\(\s*/g,"$").replace(/\s*\\\)/g,"$").replace(/\\\[\s*/g,"$$").replace(/\s*\\\]/g,"$$");return D.asRawText?we:Ee.render(we)});function pe(Pe,we){return`<pre
style=" max-width:100%; background-color: #212121; "
class="code-block-wrapper"
><div class="code-block-header "><span class="code-block-header__lang">${we}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${we}">${Pe}</code></pre>`}async function _e(){U.value=D.text,R.value=!0}function Ge(){R.value=!1}async function Ae(){if(W.value){const Pe=J.value;await q({msg:Pe,chatId:D.chatId}),W.value=!1}else J.value=D.text,W.value=!0,await nextTick(),Fe()}async function Ne(Pe){await q({msg:Pe})}function Ze(){B("copy")}function ze(){B("delete")}const Te=()=>{W.value=!1,J.value=D.text},Fe=()=>{X.value&&(X.value.style.height="auto",X.value.style.height=`${X.value.scrollHeight}px`)};return m({textRef:z}),onMounted(()=>{var Ie;const Pe=(Ie=document.querySelector(".preview-button"))==null?void 0:Ie.id,we=Pe?document.getElementById(Pe):null;we&&we.addEventListener("click",_e)}),(Pe,we)=>{var Ie;return openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",_hoisted_2$d,[Ce.value&&!Pe.inversion?(openBlock(),createElementBlock("div",{key:0,onClick:we[0]||(we[0]=Be=>K.value=!K.value),class:"text-gray-600 flex items-center mb-1 text-base hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300 cursor-pointer"},[createBaseVNode("span",null,toDisplayString(ye.value||!Pe.loading?"已深度思考":"深度思考中"),1),!ye.value&&Pe.loading?(openBlock(),createBlock(unref(LoadingOne),{key:0,class:"rotate-icon flex mx-1"})):createCommentVNode("",!0),K.value?(openBlock(),createBlock(unref(Up),{key:2,size:"20",class:"mr-1 flex"})):(openBlock(),createBlock(unref(Down),{key:1,size:"20",class:"mr-1 flex"}))])):Pe.loading&&Ce.value&&!Pe.inversion?(openBlock(),createElementBlock("div",_hoisted_3$c,[_hoisted_4$a,createVNode(unref(LoadingOne),{class:"rotate-icon flex mx-1"})])):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"textRef",ref:z,class:"flex w-full"},[Pe.inversion?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex justify-end w-full",[unref(V)?"pl-20":"pl-28 "]]),style:{"max-width":"100%"}},[W.value?(openBlock(),createElementBlock("div",_hoisted_10$7,[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":we[1]||(we[1]=Be=>J.value=Be),class:"min-w-full text-base resize-none overflow-hidden bg-transparent whitespace-pre-wrap text-gray-950 dark:text-gray-100",onInput:Fe,onKeydown:withKeys(Ae,["enter"]),ref_key:"textarea",ref:X},null,544),[[vModelText,J.value]])])):(openBlock(),createElementBlock("div",{key:1,class:"p-3 rounded-2xl text-base bg-opacity dark:bg-gray-750 break-words whitespace-pre-wrap text-gray-950 dark:text-gray-100",textContent:toDisplayString(Pe.text),style:{"max-width":"100%"}},null,8,_hoisted_11$6))],2)):(openBlock(),createElementBlock("div",_hoisted_5$9,[createBaseVNode("div",_hoisted_6$9,[Pe.loading&&!Pe.text?(openBlock(),createElementBlock("span",_hoisted_7$9)):createCommentVNode("",!0),Ce.value&&K.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["markdown-body text-gray-600 dark:text-gray-400 pl-5 mt-2 mb-4 border-l-2 border-gray-300 dark:border-gray-600 overflow-hidden transition-opacity duration-500 ease-in-out",{"markdown-body-generate":Pe.loading&&!ye.value}]),innerHTML:Ce.value},null,10,_hoisted_8$8)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["markdown-body text-gray-950 dark:text-gray-100",{"markdown-body-generate":Pe.loading||!ye.value}]),innerHTML:ye.value},null,10,_hoisted_9$8)])]))],512),ke.value&&!ve.value&&!fe.value?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["my-1 flex w-full",[{"justify-end":Pe.inversion}]])},[createBaseVNode("div",_hoisted_12$5,[createBaseVNode("span",null,toDisplayString(unref(t$3)("chat.fileAnalysis")),1)])],2)):createCommentVNode("",!0),xe.value&&ve.value?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(["my-2 w-full flex",[unref(V)?"pl-20":"pl-28",{"justify-end":Pe.inversion}]]),style:normalizeStyle({maxHeight:unref(V)?"":"30vh",maxWidth:(unref(V),"100%")})},[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(xe.value,(Be,Ke)=>(openBlock(),createBlock(unref(NImage),{key:Ke,src:Be,"preview-src":Be,alt:"图片",class:normalizeClass(["rounded-md flex ml-2",[{"justify-end":Pe.inversion}]]),style:{maxHeight:"100%",height:"auto",objectFit:"contain"}},null,8,["src","preview-src","class"]))),128))],6)):createCommentVNode("",!0)]),ie.value&&!Pe.inversion?(openBlock(),createElementBlock("div",_hoisted_13$4,[createBaseVNode("div",{class:"flex justify-start"},[createBaseVNode("button",{onClick:_e,class:"px-4 py-1 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-lg mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 预览代码 ")])])):createCommentVNode("",!0),Pe.promptReference&&!Pe.inversion&&Pe.isLast?(openBlock(),createElementBlock("div",_hoisted_14$4,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(Pe.promptReference?(Ie=Pe.promptReference.match(/{(.*?)}/g))==null?void 0:Ie.map(Be=>Be.slice(1,-1)).slice(0,3):[],(Be,Ke)=>(openBlock(),createElementBlock("button",{key:Ke,onClick:Ve=>Ne(Be),class:"flex flex-row items-center my-3 px-3 py-2 shadow-sm bg-opacity hover:bg-gray-50 text-left text-gray-900 rounded-full overflow-hidden dark:bg-gray-750 dark:text-gray-400"},[createTextVNode(toDisplayString(Be)+" ",1),createVNode(unref(ArrowRight),{class:"ml-1"})],8,_hoisted_15$4))),128))])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex transition-opacity duration-300 text-gray-700 ",ce.value,{"justify-end":Pe.inversion}])},[createBaseVNode("div",_hoisted_16$4,[W.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Ze},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_17$4,toDisplayString(unref(t$3)("chat.copy")),1)])),W.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:ze},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_18$4,toDisplayString(unref(t$3)("chat.delete")),1)])),W.value?(openBlock(),createElementBlock("button",{key:2,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Te},[createVNode(unref(Close),{class:"mr-1"}),_hoisted_19$3])):createCommentVNode("",!0),W.value?(openBlock(),createElementBlock("button",{key:3,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Ae},[createVNode(unref(Send),{class:"mr-1"}),_hoisted_20$3])):createCommentVNode("",!0),Pe.inversion&&!W.value&&Pe.modelType===1?(openBlock(),createElementBlock("button",{key:4,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Ae},[createVNode(unref(Edit),{class:"mr-1"}),_hoisted_21$2])):createCommentVNode("",!0),!Pe.inversion&&Pe.modelType===1?(openBlock(),createElementBlock("button",{key:5,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:we[2]||(we[2]=Be=>unref($)(Pe.index,Pe.chatId))},[createVNode(unref(Refresh),{class:"mr-1"}),_hoisted_22$2])):createCommentVNode("",!0),!Pe.inversion&&!Q.value?(openBlock(),createElementBlock("button",{key:6,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:me},[he.value==="paused"?(openBlock(),createBlock(unref(VoiceMessage),{key:0,class:"flex mr-1"})):createCommentVNode("",!0),he.value==="loading"?(openBlock(),createBlock(unref(Rotation),{key:1,class:"rotate-icon flex mr-1"})):he.value==="playing"?(openBlock(),createBlock(unref(PauseOne),{key:2,class:"flex mr-1"})):createCommentVNode("",!0),createBaseVNode("span",_hoisted_23$2,toDisplayString(he.value==="playing"?unref(t$3)("chat.pause"):he.value==="loading"?unref(t$3)("chat.loading"):unref(t$3)("chat.readAloud")),1)])):createCommentVNode("",!0)])],2),R.value?(openBlock(),createBlock(HtmlModal,{key:2,text:ae.value,close:Ge},null,8,["text"])):createCommentVNode("",!0)])}}}),index_vue_vue_type_style_index_0_lang$1="",_hoisted_1$d={class:"flex flex-col group max-w-full"},_hoisted_2$c={class:"flex flex-col items-start"},_hoisted_3$b={class:"w-full"},_hoisted_4$9={key:0,class:"loading-anchor"},_hoisted_5$8=["innerHTML"],_hoisted_6$8=["src"],_hoisted_7$8={class:"text-wrap rounded-lg min-w-12 text-gray-800 dark:text-gray-400"},_hoisted_8$7={class:"mt-1 flex"},_hoisted_9$7={class:"flex text-sm"},_hoisted_10$6={class:"flex text-sm"},_sfc_main$c=defineComponent({__name:"Video",props:{inversion:{type:Boolean},error:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},model:{},drawId:{},customId:{},modelName:{}},emits:["regenerate","delete","copy"],setup(k,{expose:m,emit:M}){const G=k,V=M,{isMobile:q}=useBasicLayout();let $;watch(()=>G.status,J=>{$!==void 0&&(clearInterval($),$=void 0),J===2&&($=window.setInterval(async()=>{await B.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{$!==void 0&&clearInterval($)});const D=ref(),B=useChatStore(),R=new MarkdownIt({linkify:!0,highlight(J,W){if(!!(W&&HighlightJS.getLanguage(W))){const L=W??"";return z(HighlightJS.highlight(J,{language:L}).value,L)}return z(HighlightJS.highlightAuto(J).value,"")}}),U=computed(()=>G.fileInfo);R.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),R.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const K=computed(()=>{const J=G.text??"";return G.asRawText?J:R.render(J)});function z(J,W){return`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${W}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${W}">${J}</code></pre>`}function e(){V("copy")}function ae(){V("delete")}m({textRef:D});const ie=ref("paused"),he=computed(()=>ie.value!=="paused"?"opacity-100":"opacity-0 group-hover:opacity-100");return(J,W)=>(openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",{ref_key:"textRef",ref:D,class:"leading-relaxed break-words"},[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("div",_hoisted_3$b,[J.status===2&&!K.value?(openBlock(),createElementBlock("span",_hoisted_4$9)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":J.status===2||!K.value}]),innerHTML:K.value},null,10,_hoisted_5$8)]),createBaseVNode("div",null,[withDirectives((openBlock(),createElementBlock("div",{key:U.value},[createBaseVNode("video",{src:U.value,controls:"",class:"rounded-md flex",style:normalizeStyle({maxWidth:unref(q)?"90%":"30vw",maxHeight:unref(q)?"":"30vh"})}," 您的浏览器不支持视频标签。 ",12,_hoisted_6$8)])),[[vShow,U.value]])])])],512),createBaseVNode("div",_hoisted_7$8,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",{class:"my-1 flex w-auto",style:normalizeStyle({maxWidth:unref(q)?"100%":"25rem"})},null,4)])])]),createBaseVNode("div",{class:normalizeClass(["flex transition-opacity duration-300 text-gray-700",he.value])},[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_8$7,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:e},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_9$7,toDisplayString(unref(t$3)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:ae},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_10$6,toDisplayString(unref(t$3)("chat.delete")),1)])])])],2)]))}}),Video_vue_vue_type_style_index_0_lang="",_hoisted_1$c={key:0,class:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black bg-opacity-50 py-6"},_hoisted_2$b={class:"bg-white p-6 rounded-lg shadow-lg w-3/4 max-w-3xl max-h-[80vh] flex flex-col"},_hoisted_3$a=createBaseVNode("div",{class:"flex-none"},[createBaseVNode("h2",{class:"text-2xl mb-4 font-semibold"},"PPT大纲编辑调整"),createBaseVNode("p",{class:"mb-4"},"您可以点击标题或章节进行大纲的编辑修改")],-1),_hoisted_4$8={class:"flex-1 overflow-y-auto p-4 rounded-lg border"},_hoisted_5$7={class:"bg-white"},_hoisted_6$7={class:"flex items-center mb-4"},_hoisted_7$7=createBaseVNode("label",{class:"w-16 text-gray-500 font-semibold"},"主标题",-1),_hoisted_8$6={class:"flex items-center mb-2"},_hoisted_9$6={class:"w-12 font-semibold text-gray-500"},_hoisted_10$5=["onUpdate:modelValue"],_hoisted_11$5=["onClick"],_hoisted_12$4=["onClick"],_hoisted_13$3={class:"pl-8"},_hoisted_14$3=["onUpdate:modelValue"],_hoisted_15$3=["onClick"],_hoisted_16$3={class:"flex-none mt-4"},_hoisted_17$3={class:"flex justify-between items-center"},_hoisted_18$3={class:"flex items-center"},_hoisted_19$2={class:"py-1"},_hoisted_20$2=["onClick"],_hoisted_21$1={href:"#",class:"flex items-center px-4 py-2 text-sm group-hover:bg-gray-100 dark:group-hover:bg-gray-700"},_hoisted_22$1={key:1,class:"fixed inset-0 z-50 flex flex-col bg-black bg-opacity-50"},_hoisted_23$1={class:"flex flex-1 h-full"},_hoisted_24$1={class:"w-1/5 bg-white p-4 overflow-y-auto"},_hoisted_25$1=["onClick"],_hoisted_26$1=["src"],_hoisted_27$1={class:"flex-1 flex items-center justify-center bg-gray-200 h-full"},_hoisted_28$1=["src"],_hoisted_29$1={class:"flex flex-col group max-w-full"},_hoisted_30$1={class:"flex flex-col items-start bg-primary-gradient rounded-lg"},_hoisted_31$1={class:"w-full"},_hoisted_32$1={key:0,class:"loading-anchor"},_hoisted_33$1={class:"flex flex-col items-start"},_hoisted_34$1={class:"w-full"},_hoisted_35$1=["innerHTML"],_hoisted_36$1={class:"flex flex-wrap mt-4"},_hoisted_37$1=["src","alt","onClick"],_hoisted_38$1={class:"mb-1 mt-2 flex items-center justify-between w-full"},_hoisted_39$1={class:"flex items-center"},_hoisted_40$1=createBaseVNode("div",null,"换一组",-1),_hoisted_41$1=[_hoisted_40$1],_hoisted_42$1={class:"flex items-center"},_hoisted_43$1=["disabled"],_hoisted_44$1=["src"],_hoisted_45$1={class:"flex opacity-0 transition-opacity duration-300 group-hover:opacity-100 text-gray-700"},_hoisted_46$1={class:"mt-1 flex"},_hoisted_47$1={class:"flex text-sm"},_hoisted_48$1={class:"flex text-sm"},_sfc_main$b=defineComponent({__name:"AiPpt",props:{error:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},model:{},drawId:{},customId:{},modelName:{}},emits:["regenerate","delete","copy"],setup(k,{expose:m,emit:M}){const G=ref(!1),V=inject("onConversation"),q=ref({title:"",catalogs:[{catalog:"",sub_catalog:[""]}]}),$=ref([""]),D=computed(()=>B.fileInfo?B.fileInfo.split(","):[]),B=k,R=M;useBasicLayout();let U;const K=ref(!1),z=ref(!1),e=ref(0),ae=()=>{q.value=JSON.parse(B.customId),K.value=!0},ie=()=>{B.customId&&($.value=JSON.parse(B.customId)),console.log("customImageUrls:",$.value),z.value=!0},he=()=>{z.value=!1},J=()=>{K.value=!1},W=async()=>{K.value=!1;try{await V({msg:"使用大纲生成 PPT",action:"PPTCREATE",customId:q.value,modelType:2,model:"ai-ppt",modelName:"AiPPT",extraParam:{color:ke.value,style:xe.value,cover_id:fe.value,complex:ve.value}}),console.log("PPT生成请求已发送")}catch(Te){console.error("PPT生成请求失败:",Te)}};watch(()=>B.status,Te=>{U!==void 0&&(clearInterval(U),U=void 0),Te===2&&(U=window.setInterval(async()=>{await ce.queryActiveChatLogList(),B.customId&&($.value=JSON.parse(B.customId))},5e3))},{immediate:!0}),watch(()=>B.text,Te=>{Te&&Te.length>20&&_e()}),onMounted(()=>{B.text&&B.text.length>20&&_e(),B.customId&&($.value=JSON.parse(B.customId))}),onUnmounted(()=>{U!==void 0&&clearInterval(U)}),onUnmounted(()=>{clearInterval(U)});const X=()=>{const Te=document.createElement("a");Te.href=D.value[0],Te.download="PPT文件.ppt",document.body.appendChild(Te),Te.click(),document.body.removeChild(Te)},L=Te=>{e.value=Te},Q=ref(),ce=useChatStore(),de=new MarkdownIt({linkify:!0,highlight(Te,Fe){if(!!(Fe&&HighlightJS.getLanguage(Fe))){const we=Fe??"";return oe(HighlightJS.highlight(Te,{language:we}).value,we)}return oe(HighlightJS.highlightAuto(Te).value,"")}});de.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),de.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const se=computed(()=>{const Te=B.text??"";return B.asRawText?Te:de.render(Te)});function oe(Te,Fe){return`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${Fe}</span><span class="code-block-header__copy">${t$3("chat.copyCode")}</span></div><code class="hljs code-block-body ${Fe}">${Te}</code></pre>`}function me(){R("copy")}function Ee(){R("delete")}const ke=ref(""),xe=ref(""),fe=ref(""),ve=ref(""),ye=[{label:"简单",value:"1"},{label:"中等",value:"2"},{label:"复杂",value:"3"}],Ce=Te=>{ve.value=Te.value},pe=ref(""),_e=async()=>{try{G.value=!0,fe.value="",console.log("PPT封面生成请求已发送",B.customId);const Te=await fetchPptCoverAPIProcess({title:JSON.parse(B.customId).title,color:"",style:""});pe.value=Te.data,console.log("PPT封面生成请求已发送",Te.data),G.value=!1}catch(Te){console.error("PPT封面生成请求失败:",Te),G.value=!1}},Ge=Te=>{fe.value=Te.cover_id,console.log("点击了封面:",Te)},Ae=()=>{q.value.catalogs.push({catalog:"小标题",sub_catalog:[" "," "]})},Ne=Te=>{q.value.catalogs[Te].sub_catalog.push(" ")},Ze=(Te,Fe)=>{const Pe=q.value.catalogs[Te].sub_catalog;Pe.length>Fe&&(Pe.splice(Fe,1),q.value.catalogs[Te].sub_catalog=[...Pe])},ze=Te=>{q.value.catalogs.splice(Te,1)};return m({textRef:Q}),(Te,Fe)=>{const Pe=resolveComponent("Down"),we=resolveComponent("Button");return openBlock(),createElementBlock(Fragment$1,null,[K.value?(openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$b,[_hoisted_3$a,createBaseVNode("div",_hoisted_4$8,[createBaseVNode("div",_hoisted_5$7,[createBaseVNode("div",_hoisted_6$7,[_hoisted_7$7,withDirectives(createBaseVNode("input",{type:"text","onUpdate:modelValue":Fe[0]||(Fe[0]=Ie=>q.value.title=Ie),class:"flex-1 p-2 text-lg font-semibold"},null,512),[[vModelText,q.value.title]])]),(openBlock(!0),createElementBlock(Fragment$1,null,renderList(q.value.catalogs,(Ie,Be)=>(openBlock(),createElementBlock("div",{key:Be,class:"mb-4 p-4 border rounded-md shadow-sm relative"},[createBaseVNode("div",_hoisted_8$6,[createBaseVNode("label",_hoisted_9$6,"章节 "+toDisplayString(Be+1),1),withDirectives(createBaseVNode("input",{type:"text","onUpdate:modelValue":Ke=>Ie.catalog=Ke,class:"flex-1 p-2 border rounded-md"},null,8,_hoisted_10$5),[[vModelText,Ie.catalog]]),createBaseVNode("button",{onClick:Ke=>ze(Be),class:"ml-2 px-3 py-1 bg-red-500 hover:bg-red-700 text-white rounded-md"}," 删除 ",8,_hoisted_11$5),createBaseVNode("button",{onClick:Ke=>Ne(Be),class:"ml-2 px-3 py-1 bg-blue-500 hover:bg-blue-700 text-white rounded-md"}," 添加小节 ",8,_hoisted_12$4)]),createBaseVNode("div",_hoisted_13$3,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(Ie.sub_catalog,(Ke,Ve)=>(openBlock(),createElementBlock("div",{key:Ve,class:"flex items-center mb-2"},[withDirectives(createBaseVNode("input",{type:"text","onUpdate:modelValue":je=>Ie.sub_catalog[Ve]=je,class:"flex-1 p-2 border rounded-md"},null,8,_hoisted_14$3),[[vModelText,Ie.sub_catalog[Ve]]]),createBaseVNode("button",{onClick:je=>Ze(Be,Ve),class:"ml-2 px-3 py-1 bg-red-500 hover:bg-red-700 text-white rounded-md"}," 删除 ",8,_hoisted_15$3)]))),128))])]))),128))])]),createBaseVNode("div",_hoisted_16$3,[createBaseVNode("div",_hoisted_17$3,[createBaseVNode("div",_hoisted_18$3,[createVNode(unref(ge),{as:"div",class:"relative ml-4"},{default:withCtx(()=>[createBaseVNode("div",null,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold hover:bg-gray-50 dark:hover:bg-gray-800 dark:text-gray-400 text-gray-500"},{default:withCtx(()=>{var Ie;return[createTextVNode(toDisplayString(((Ie=ye.find(Be=>Be.value===ve.value))==null?void 0:Ie.label)||"选择复杂度")+" ",1),createVNode(Pe,{size:"18"})]}),_:1})]),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute left-0 bottom-full w-20 z-10 origin-top-left divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-800 dark:text-gray-400 text-gray-900 overflow-y-auto",style:{maxHeight:"60vh"}},{default:withCtx(()=>[createBaseVNode("div",_hoisted_19$2,[(openBlock(),createElementBlock(Fragment$1,null,renderList(ye,(Ie,Be)=>createVNode(unref(be),{key:Be},{default:withCtx(()=>[createBaseVNode("div",{class:"group",onClick:Ke=>Ce(Ie)},[createBaseVNode("a",_hoisted_21$1,toDisplayString(Ie.label),1)],8,_hoisted_20$2)]),_:2},1024)),64))])]),_:1})]),_:1})]),_:1})]),createBaseVNode("div",{class:"flex justify-end"},[createBaseVNode("button",{onClick:J,class:"px-4 py-2 bg-gray-500 hover:bg-gray-700 text-white rounded-md mr-4"}," 取消 "),createBaseVNode("button",{onClick:Ae,class:"px-4 py-2 bg-primary-500 hover:bg-primary-700 text-white rounded-md mr-4"}," 插入章节 "),createBaseVNode("button",{onClick:W,class:"px-4 py-2 bg-primary-500 hover:bg-primary-700 text-white rounded-md"}," 生成PPT ")])])])])])):createCommentVNode("",!0),z.value?(openBlock(),createElementBlock("div",_hoisted_22$1,[createBaseVNode("div",_hoisted_23$1,[createBaseVNode("div",_hoisted_24$1,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList($.value,(Ie,Be)=>(openBlock(),createElementBlock("div",{key:Be,class:"mb-4 cursor-pointer",onClick:Ke=>L(Be)},[createBaseVNode("img",{src:Ie.url,class:normalizeClass(["w-full h-auto border-2",{"border-primary-500":e.value===Be}])},null,10,_hoisted_26$1)],8,_hoisted_25$1))),128))]),createBaseVNode("div",_hoisted_27$1,[createBaseVNode("img",{src:$.value[e.value].url,class:"max-h-full max-w-full px-6"},null,8,_hoisted_28$1)])]),createBaseVNode("div",{class:"absolute top-4 right-4 h-10"},[createBaseVNode("button",{onClick:he,class:"px-4 py-1 mr-4 h-8 rounded-md border border-1 border-primary-500 text-primary-500"}," 关闭 "),createBaseVNode("button",{onClick:X,class:"px-4 py-1 mr-2 bg-primary-500 h-8 border-1 border-primary-500 text-white rounded-md"}," 下载PPT ")])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_29$1,[createBaseVNode("div",{ref_key:"textRef",ref:Q,class:"leading-relaxed break-words"},[createBaseVNode("div",_hoisted_30$1,[createBaseVNode("div",_hoisted_31$1,[Te.status===2&&!se.value?(openBlock(),createElementBlock("span",_hoisted_32$1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_33$1,[createBaseVNode("div",_hoisted_34$1,[createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":Te.status===1||Te.status===2||!se.value}]),innerHTML:se.value},null,10,_hoisted_35$1)])])]),createBaseVNode("div",_hoisted_36$1,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(pe.value,(Ie,Be)=>(openBlock(),createElementBlock("div",{key:Be,class:"p-2 w-1/2 sm:w-1/2 md:w-1/3"},[createBaseVNode("img",{src:Ie.cover_image,alt:"封面"+(Be+1),class:normalizeClass({"w-full h-auto object-cover cursor-pointer border-4 rounded-lg":!0,"border-primary-500":fe.value===Ie.cover_id,"hover:border-primary-500":fe.value!==Ie.cover_id}),onClick:Ke=>Ge(Ie)},null,10,_hoisted_37$1)]))),128))]),createBaseVNode("div",_hoisted_38$1,[createBaseVNode("div",_hoisted_39$1,[G.value?(openBlock(),createBlock(unref(LoadingFour),{key:0,size:"24",class:"rotate-icon text-primary-500 ml-3"})):createCommentVNode("",!0),Te.status===3&&se.value.length>20&&!G.value?(openBlock(),createElementBlock("button",{key:1,onClick:_e,class:"ml-2 rounded-md py-2 px-3 text-primary-500"},_hoisted_41$1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_42$1,[Te.status===3&&se.value.length>20?(openBlock(),createElementBlock("button",{key:0,onClick:ae,class:normalizeClass({"shadow rounded-md py-2 px-5 mr-2":!0,"bg-primary-500 text-white cursor-pointer":fe.value,"bg-gray-300 text-gray-500 cursor-not-allowed":!fe.value}),disabled:!fe.value}," 使用 ",10,_hoisted_43$1)):createCommentVNode("",!0),Te.status===3&&Te.fileInfo?(openBlock(),createElementBlock("img",{key:1,src:$.value[0].url,class:"rounded-md shadow",style:{maxWidth:"100%",maxHeight:"30vh"},onClick:ie},null,8,_hoisted_44$1)):createCommentVNode("",!0)])])])],512),createBaseVNode("div",_hoisted_45$1,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_46$1,[createVNode(we,{class:"flex items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",type:"primary",onClick:me},{default:withCtx(()=>[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_47$1,toDisplayString(unref(t$3)("chat.copy")),1)]),_:1}),createVNode(we,{class:"flex ml-0 items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",type:"primary",onClick:Ee},{default:withCtx(()=>[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_48$1,toDisplayString(unref(t$3)("chat.delete")),1)]),_:1})])])])])],64)}}}),AiPpt_vue_vue_type_style_index_0_lang="";function copyText(k){const m={origin:!0,...k};let M;m.origin?M=document.createElement("textarea"):M=document.createElement("input"),M.setAttribute("readonly","readonly"),M.value=m.text,document.body.appendChild(M),M.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(M)}const _hoisted_1$b={class:"flex items-center justify-center flex-shrink-0 mr-2"},_hoisted_2$a={class:"overflow-hidden text-sm items-start w-full"},_hoisted_3$9={class:"flex items-end gap-1 flex-row"},_sfc_main$a=defineComponent({__name:"index",props:{chatId:{},dateTime:{},text:{},model:{},modelName:{},modelType:{},status:{},inversion:{type:Boolean},loading:{type:Boolean},fileInfo:{},ttsUrl:{},videoUrl:{},audioUrl:{},drawId:{},extend:{},customId:{},modelAvatar:{},action:{},taskData:{},pluginParam:{},index:{},promptReference:{},isLast:{type:Boolean}},emits:["regenerate","delete"],setup(k,{emit:m}){const M=k,G=m,V=useMessage(),q=ref(),$=ref(M.inversion),D=ref();function B(){G("delete")}function R(){copyText({text:M.text??""}),M.text&&V.success("复制成功!")}function U(){var K;(K=D.value)==null||K.scrollIntoView(),G("regenerate")}return(K,z)=>(openBlock(),createElementBlock("div",{ref_key:"messageRef",ref:D,class:"flex w-full my-2 overflow-hidden items-start flex-row"},[createVNode(unref(NTooltip),{trigger:"hover",placement:"top-start"},{trigger:withCtx(()=>[createBaseVNode("div",_hoisted_1$b,[K.inversion?createCommentVNode("",!0):(openBlock(),createBlock(_sfc_main$j,{key:0,image:K.inversion,model:K.model,modelAvatar:K.modelAvatar},null,8,["image","model","modelAvatar"]))])]),default:withCtx(()=>[createTextVNode(" "+toDisplayString(K.modelName),1)]),_:1}),createBaseVNode("div",_hoisted_2$a,[createBaseVNode("div",_hoisted_3$9,[K.pluginParam==="mind-map"&&!K.inversion?(openBlock(),createBlock(_sfc_main$g,{key:0,ref_key:"textRef",ref:q,inversion:K.inversion,drawId:K.drawId,extend:K.extend,customId:K.customId,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,model:K.model,modelName:K.modelName,loading:K.loading,status:K.status,"as-raw-text":$.value,onRegenerate:U,onCopy:R,onDelete:B},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","model","modelName","loading","status","as-raw-text"])):(K.model==="luma-video"||K.model==="cog-video")&&!K.inversion?(openBlock(),createBlock(_sfc_main$c,{key:1,ref_key:"textRef",ref:q,inversion:K.inversion,drawId:K.drawId,extend:K.extend,customId:K.customId,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,audioUrl:K.audioUrl,videoUrl:K.videoUrl,model:K.model,modelName:K.modelName,loading:K.loading,status:K.status,"as-raw-text":$.value,action:K.action,taskData:K.taskData,modelAvatar:K.modelAvatar,onRegenerate:U,onCopy:R,onDelete:B},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","audioUrl","videoUrl","model","modelName","loading","status","as-raw-text","action","taskData","modelAvatar"])):K.model==="suno-music"&&!K.inversion?(openBlock(),createBlock(_sfc_main$f,{key:2,ref_key:"textRef",ref:q,inversion:K.inversion,drawId:K.drawId,extend:K.extend,customId:K.customId,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,audioUrl:K.audioUrl,videoUrl:K.videoUrl,model:K.model,modelName:K.modelName,loading:K.loading,status:K.status,"as-raw-text":$.value,action:K.action,taskData:K.taskData,modelAvatar:K.modelAvatar,onRegenerate:U,onCopy:R,onDelete:B},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","audioUrl","videoUrl","model","modelName","loading","status","as-raw-text","action","taskData","modelAvatar"])):K.model==="ai-ppt"&&!K.inversion?(openBlock(),createBlock(_sfc_main$b,{key:3,ref_key:"textRef",ref:q,inversion:K.inversion,drawId:K.drawId,extend:K.extend,customId:K.customId,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,model:K.model,modelName:K.modelName,loading:K.loading,status:K.status,"as-raw-text":$.value,onRegenerate:U,onCopy:R,onDelete:B},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","model","modelName","loading","status","as-raw-text"])):K.modelType===2&&!K.inversion?(openBlock(),createBlock(_sfc_main$i,{key:4,ref_key:"textRef",ref:q,inversion:K.inversion,drawId:K.drawId,extend:K.extend,customId:K.customId,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,model:K.model,modelName:K.modelName,loading:K.loading,status:K.status,"as-raw-text":$.value,onRegenerate:U,onCopy:R,onDelete:B},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","model","modelName","loading","status","as-raw-text"])):(openBlock(),createBlock(_sfc_main$d,{key:5,ref_key:"textRef",ref:q,index:K.index,modelName:K.modelName,chatId:K.chatId,inversion:K.inversion,text:K.text,modelType:K.modelType,fileInfo:K.fileInfo,ttsUrl:K.ttsUrl,model:K.model,loading:K.loading,"as-raw-text":$.value,promptReference:K.promptReference,isLast:K.isLast,onRegenerate:U,onCopy:R,onDelete:B},null,8,["index","modelName","chatId","inversion","text","modelType","fileInfo","ttsUrl","model","loading","as-raw-text","promptReference","isLast"]))])])],512))}}),defaultPdfPreset=[{title:"文件概要总结",prompt:"为当前文件生成简短的概要,概述主要内容和关键点。",icon:"ri:booklet-line"},{title:"提取大纲结构",prompt:"自动提取文件中的章节和子章节,列出文件的大纲结构。",icon:"ri:layout-line"},{title:"文件内容解析",prompt:"解析文件的内容,并提供每一章节的详细说明。",icon:"ri:file-list-2-line"},{title:"文章主题分析",prompt:"分析文件的核心主题,提供简要描述。",icon:"ri:lightbulb-line"},{title:"快速浏览",prompt:"提供文件的快速浏览,包括主要段落的摘录和关键论点。",icon:"ri:eye-line"},{title:"总结要点",prompt:"从文件中提取出最重要的要点和核心思想。",icon:"ri:focus-2-line"}],defaultPreset=[{title:"英语翻译官",prompt:"我希望你能担任英语翻译、拼写校对和修辞改进的角色。我会用任何语言和你交流你会识别语言将其翻译并用更为优美和精炼的英语回答我。请将我简单的词汇和句子替换成更为优美和高雅的表达方式确保意思不变但使其更具文学性。请仅回答更正和改进的部分不要写解释。我的第一句话是“how are you ?”,请翻译它。",icon:"ri:ai-generate"},{title:"心理学家",prompt:"我想让你扮演一个心理学家。我会告诉你我的想法。我希望你能给我科学的建议,让我感觉更好。我的第一个想法,{ 在这里输入你的想法,如果你解释得更详细,我想你会得到更准确的答案。}",icon:"ri:heart-line"},{title:"产品经理",prompt:"请确认我的以下请求。请您作为产品经理回复我。我将会提供一个主题您将帮助我编写一份包括以下章节标题的PRD文档主题、简介、问题陈述、目标与目的、用户故事、技术要求、收益、KPI指标、开发风险以及结论。在我要求具体主题、功能或开发的PRD之前请不要先写任何一份PRD文档。",icon:"ri:projector-line"},{title:"如何学做菜",prompt:"我要你做我的私人厨师。我会告诉你我的饮食偏好和过敏,你会建议我尝试的食谱。你应该只回复你推荐的食谱,别无其他。不要写解释。我的第一个请求是“我是一名素食主义者,我正在寻找健康的晚餐点子。”",icon:"ri:restaurant-line"},{title:"规划一个去上海的旅游攻略 参观博物馆",prompt:"我想让你做一个旅游指南。我会把我的位置写给你,你会推荐一个靠近我的位置的地方。在某些情况下,我还会告诉您我将访问的地方类型。您还会向我推荐靠近我的第一个位置的类似类型的地方。我的第一个建议请求是“我在上海,我只想参观博物馆。”",icon:"ri:map-pin-line"},{title:"穿越时空",prompt:"如果你能穿越时空,你会去哪个时代?",icon:"ri:time-line"},{title:"量子力学",prompt:"解释一下量子力学是什么?",icon:"ri:flask-line"},{title:"人工智能",prompt:"介绍一下人工智能的历史",icon:"ri:robot-line"},{title:"深度学习",prompt:"讲解一下深度学习是如何工作的?",icon:"ri:brain-line"},{title:"冯诺依曼体系结构",prompt:"请举例说明什么是冯诺依曼体系结构?",icon:"ri:computer-line"},{title:"红楼梦情感分析",prompt:"请分析《红楼梦》中林黛玉与贾宝玉的情感关系。",icon:"ri:book-2-line"},{title:"100米短跑训练",prompt:"如何训练才能提高100米短跑成绩",icon:"ri:run-line"},{title:"北京旅游攻略",prompt:"请推荐一份适合初次来中国的外国人的北京旅游攻略。",icon:"ri:road-map-line"},{title:"低GI饮食",prompt:"什么是低GI饮食这种饮食有哪些好处",icon:"ri:restaurant-2-line",iconColor:"text-orange-500"},{title:"全球环境问题",prompt:"请列出目前全球主要面临的三大环境问题,并简单阐述其影响和应对措施。",icon:"ri:earth-line"},{title:"提高社交影响力",prompt:"在社交场合,如何提高自己的感染力和影响力?",icon:"ri:team-line"},{title:"地中海地理特征",prompt:"请描述一下地中海的地理特征,以及这些特征对于古代世界的影响。",icon:"ri:map-pin-line"},{title:"《肖申克的救赎》影评",prompt:"请评价电影《肖申克的救赎》的剧情、角色塑造和拍摄手法。",icon:"ri:film-line"},{title:"苹果公司成功分析",prompt:"为什么苹果公司的产品总是比其他公司的产品更受欢迎?请从市场策略、产品设计、品牌形象等方面进行分析。",icon:"ri:apple-line"},{title:"健康饮食计划",prompt:"如何制定一份健康的饮食计划?",icon:"ri:heart-line"},{title:"编程学习指南",prompt:"怎样学习编程?",icon:"ri:code-line"},{title:"巴厘岛旅游景点",prompt:"在巴厘岛旅游有哪些值得参观的景点?",icon:"ri:map-pin-2-line"},{title:"处理亲密关系分歧",prompt:"如何处理亲密关系中的分歧?",icon:"ri:heart-2-line"},{title:"费马大定理证明",prompt:"如何证明费马大定理?",icon:"ri:function-line"},{title:"吸烟相关疾病预防",prompt:"长期吸烟引起的疾病有哪些?应该如何预防?",icon:"ri:lungs-line"},{title:"克服拖延症",prompt:"如何克服拖延症?",icon:"ri:time-line"},{title:"减少家庭垃圾",prompt:"如何减少家庭垃圾产生?",icon:"ri:recycle-line"},{title:"股票价值评估",prompt:"如何评估股票的价值?",icon:"ri:stock-line"},{title:"自信的社交表现",prompt:"如何在社交场合自信地表现自己?",icon:"ri:team-line"},{title:"推荐科幻电影",prompt:"给我一个最近评分不错的科幻电影的名字和简介",icon:"ri:movie-line"},{title:"英文翻译校对",prompt:"将下面这句英文翻译成中文并纠正其中的语法错误:'Me and him goes to the store yesterday.'",icon:"ri:translate-2",iconColor:"text-orange-500"},{title:"科技类大市值股票",prompt:"给我一些市值超过1000亿美元的科技类股票",icon:"ri:bar-chart-box-line"},{title:"商品销售量预测",prompt:"基于历史销售数据,预测下周某商品的销售量。",icon:"ri:line-chart-line",iconColor:"text-cyan-500"},{title:"思念诗歌创作",prompt:"请用七言绝句写一首表达思念之情的诗歌。",icon:"ri:quill-pen-line"},{title:"情侣约会餐厅推荐",prompt:"给我一个适合情侣约会的餐厅的名字和地址。",icon:"ri:restaurant-2-line"},{title:"西班牙旅游行程规划",prompt:"我计划去西班牙旅游请帮我安排一个10天的行程。",icon:"ri:suitcase-3-line",iconColor:"text-orange-500"},{title:"电影分类归类",prompt:"将电影从爱情片、动作片和恐怖片三种分类中分别归类。",icon:"ri:film-line"},{title:"豆腐美食推荐",prompt:"推荐一道以豆腐为主要原料的美食,附上制作方法。",icon:"ri:restaurant-line"},{title:"流行华语歌曲推荐",prompt:"推荐最近流行的三首华语歌曲,并简要介绍它们的风格和歌词主题。",icon:"ri:music-line"},{title:"减少塑料污染生活指南",prompt:"请提供三条减少塑料污染的生活指南。",icon:"ri:leaf-line"},{title:"团队合作处理矛盾",prompt:"如何在团队合作中处理与同事之间的矛盾?",icon:"ri:team-line"},{title:"前景股票投资",prompt:"你认为现在买入哪些股票比较有前景?",icon:"ri:stock-line"},{title:"科幻片推荐",prompt:"你能否给我推荐一部最近上映的好看的科幻片?",icon:"ri:film-line"},{title:"三亚旅游攻略",prompt:"希望去三亚旅游,你能提供一份详细的旅游攻略吗?",icon:"ri:suitcase-2-line",iconColor:"text-orange-500"},{title:"意大利面烹饪技巧",prompt:"我想学做意大利面,你有什么简单易学的做法推荐吗?",icon:"ri:restaurant-line"},{title:"缓解焦虑的方法",prompt:"我感到很紧张,有什么方法能够缓解焦虑吗?",icon:"ri:heart-pulse-line"},{title:"电商平台投诉处理",prompt:"我在某电商平台购买的商品质量不佳,该如何向平台进行投诉处理?",icon:"ri:feedback-line"},{title:"有效学外语的方法",prompt:"你觉得学外语最有效的方法是什么?",icon:"ri:translate-2"},{title:"职场发展建议",prompt:"我正在寻找新的工作机会,有哪些职业领域前景较好?",icon:"ri:briefcase-line",iconColor:"text-cyan-500"},{title:"日本旅游攻略",prompt:"提供至少三个去日本旅游必去的景点,并描述其特色和适合的旅游时间。",icon:"ri:map-pin-line"},{title:"提高保险销售业绩",prompt:"如何提高保险销售员的业绩?",icon:"ri:money-dollar-box-line"},{title:"公司网站改版建议",prompt:"公司网站需要进行改版,请列举至少五个需要更新的页面元素并说明更新的理由。",icon:"ri:layout-5-line"},{title:"印度首都查询",prompt:"请问印度的首都是哪里?",icon:"ri:flag-line"},{title:"红旗渠修建历史",prompt:"请问红旗渠修建的时间和地点分别是什么?",icon:"ri:history-line"},{title:"DNA结构与功能",prompt:"请简要介绍一下DNA的结构及其功能。",icon:"ri:dna-line"},{title:"GDP定义与计算",prompt:"请问什么是GDP如何计算GDP",icon:"ri:bar-chart-2-line"},{title:"原子核组成",prompt:"请问原子核由哪些粒子组成?它们各自的电荷和质量分别是多少?",icon:"ri:leaf-line"},{title:"莫扎特代表作",prompt:"请问莫扎特的代表作有哪些?",icon:"ri:music-2-line"},{title:"汉字词源",prompt:"请问“汉字”这个词最早出现的时间和在哪本书中出现的?",icon:"ri:book-line",iconColor:"text-orange-500"},{title:"全运会历史",prompt:"请问全运会是哪年开始举办的?每隔几年举办一次?",icon:"ri:football-line"},{title:"石油用途",prompt:"请问石油的主要用途有哪些?",icon:"ri:oil-line"},{title:"心脏起搏器介绍",prompt:"请简要介绍一下心脏起搏器的原理和使用方法。",icon:"ri:heart-2-line",iconColor:"text-cyan-500"},{title:"观众情感分析",prompt:"这部电影的观众反应如何?",icon:"ri:emotion-laugh-line"},{title:"沙滩美景短文",prompt:"请写出一篇描述橙色阳光下沙滩美景的短文。",icon:"ri:sun-line",iconColor:"text-orange-500"},{title:"亚马逊财报数据查询",prompt:"亚马逊公司的年度财报数据是多少?",icon:"ri:money-dollar-box-line"},{title:"苹果新产品新闻",prompt:"请问最近有关于苹果公司新发布产品的新闻吗?",icon:"ri:apple-line"},{title:"一加与华为手机性能对比",prompt:"请比较一加手机和华为手机的性能差异。",icon:"ri:smartphone-line"},{title:"文章主要观点提取",prompt:"请从这篇文章中提取出主要观点。",icon:"ri:article-line"},{title:"用户意图分类",prompt:"用户输入“我想要预定机票”,它的意图是什么?",icon:"ri:question-line"},{title:"文章可读性修改",prompt:"请编辑这篇文章,使得它更易读。",icon:"ri:edit-line"},{title:"星期推理",prompt:"如果今天是星期三,那么后天是星期几?",icon:"ri:calendar-line",iconColor:"text-cyan-500"},{title:"微软创始人查询",prompt:"谁创办了微软公司?",icon:"ri:building-4-line"},{title:"电影类型分类",prompt:"这个电影是哪个类型的?",icon:"ri:film-line"},{title:"乐器描述",prompt:"描述一下你最喜欢的乐器。",icon:"ri:music-line",iconColor:"text-orange-500"},{title:"句子改写",prompt:"请改写这句话:“天空飘着几朵云彩。”",icon:"ri:edit-2-line"},{title:"书籍对比",prompt:"这本书和那本书有什么区别?",icon:"ri:book-line"},{title:"自然风景描写",prompt:"写一段自然风景的描写。",icon:"ri:landscape-line"},{title:"音乐年代分类",prompt:"这首歌曲属于哪个年代的音乐?",icon:"ri:music-2-line"},{title:"餐厅美食对比",prompt:"这家餐厅和那家餐厅哪家更好吃?",icon:"ri:restaurant-line"},{title:"电影喜好",prompt:"把这句话翻译成英文:“我喜欢看电影,尤其是科幻电影。”",icon:"ri:movie-line"},{title:"理想度假胜地描述",prompt:"描述一下你理想中的度假胜地。",icon:"ri:tree-line",iconColor:"text-orange-500"},{title:"动物分类",prompt:"这个动物属于哪个门类?",icon:"ri:bug-line"},{title:"新闻摘要生成",prompt:"请问如何利用 GPT-3.5 生成一篇 100 字左右的新闻摘要?",icon:"ri:newspaper-line"},{title:"自动翻译实现",prompt:"请问如何让 GPT-3.5 实现从中文到英文的自动翻译?",icon:"ri:translate"},{title:"全球医疗保健评价",prompt:"你如何评价当前全球范围内的医疗保健体系?",icon:"ri:stethoscope-line"},{title:"文化多样性保护",prompt:"请问有哪些国家在法律层面上保护本国的文化多样性?",icon:"ri:global-line"},{title:"新能源普及国家",prompt:"现今世界上使用新能源最为普及的国家是哪些?",icon:"ri:flashlight-line"},{title:"股市走势预测",prompt:"你认为全球股市未来一个季度会走势如何?",icon:"ri:line-chart-line",iconColor:"text-orange-500"},{title:"前沿科技研究",prompt:"请列举一些目前全球前沿的科技研究领域。",icon:"ri:rocket-line"},{title:"社交媒体影响",prompt:"社交媒体对年轻人的影响有哪些?",icon:"ri:chat-3-line"},{title:"电商平台市场份额",prompt:"当前哪些电商平台在全球拥有最大的市场份额?",icon:"ri:shopping-cart-line",iconColor:"text-cyan-500"},{title:"气候变化影响",prompt:"气候变化对世界各地造成了哪些影响?",icon:"ri:sun-cloudy-line"},{title:"全球顶尖大学排名",prompt:"请问哪些国家拥有全球最顶尖的大学排名?",icon:"ri:school-line",iconColor:"text-orange-500"},{title:"手机发明者",prompt:"手机是谁发明的?",icon:"ri:smartphone-line"},{title:"旅行故事创作",prompt:"给我写一个关于旅行的故事。",icon:"ri:suitcase-3-line"},{title:"文章情感分析",prompt:"这篇文章中的情感倾向是积极、消极还是中性?",icon:"ri:emotion-line"},{title:"拼写错误纠正",prompt:"句子中的哪个单词拼写有误:“昨天我去了餐馆,品尝了他们的招牌菜。”",icon:"ri:check-line"},{title:"文章摘要生成",prompt:"请为这篇长文章生成一段简要的摘要。",icon:"ri:file-text-line"},{title:"任务执行指令",prompt:"请告诉我现在怎么做。",icon:"ri:task-line",iconColor:"text-orange-500"},{title:"明朝社会阶层研究",prompt:"针对明朝时期的社会阶层结构,你能列出几种不同的人群并描述他们的特征吗?",icon:"ri:book-line",iconColor:"text-brown-500"},{title:"物种区别解释",prompt:"两个相似物种的区别在哪里?请用一种易于理解的方式解释。",icon:"ri:leaf-line"},{title:"政治参与度分析",prompt:"哪些因素影响政治参与度?你认为如何激发公民参与政治?",icon:"ri:government-line"},{title:"情感分析技术",prompt:"如何利用自然语言处理技术进行情感分析?您可以列举一些常见的情感分析算法和应用场景吗?",icon:"ri:emotion-line"},{title:"经济发展水平衡量",prompt:"如何衡量一个国家的经济发展水平?您如何评估不同国家之间的贸易关系?",icon:"ri:money-dollar-circle-line"},{title:"机器学习简介",prompt:"讲述一下什么是机器学习,以及它在现代计算机科学中扮演的角色。",icon:"ri:robot-line"},{title:"气候变化影响",prompt:"近年来,气候变化对我们的环境造成了哪些影响?未来还可能会引起哪些灾难?",icon:"ri:sun-cloudy-line"},{title:"创新教育方法",prompt:"教师应该如何培养学生的创新思维和实践能力?您认为有效的教育方法是什么?",icon:"ri:lightbulb-line",iconColor:"text-orange-500"},{title:"学习心理素质",prompt:"学习一门新技能需要哪些心理素质?如何在学习过程中保持积极的情绪状态?",icon:"ri:psychotherapy-line"},{title:"未来科技趋势",prompt:"未来科技发展的趋势是什么?您认为会有哪些领域会得到革命性的改变?",icon:"ri:rocket-line"},{title:"电影推荐",prompt:"根据我的口味推荐一部近期上映的电影。",icon:"ri:film-line"},{title:"手机产品比较",prompt:"请分析一下 iPhone 和 Android 手机的优缺点,说明它们适合不同的用户群体。",icon:"ri:smartphone-line"},{title:"新闻头条创作",prompt:"请为明天的头条新闻写一个简短但有吸引力的标题,并提出三个相关问题。",icon:"ri:newspaper-line",iconColor:"text-orange-500"},{title:"市场零食品牌分析",prompt:"请列举五种最受欢迎的零食品牌,并分析其在市场上的竞争优势。",icon:"ri:shopping-bag-line"},{title:"自然之美短文",prompt:"请根据以下关键词写一篇题为“自然之美”的 300 字左右的短文:山水、湖泊、森林、鸟儿、日出日落。",icon:"ri:palette-line"},{title:"英文文本编辑",prompt:"翻译以下这段英文同时对其进行适当的调整和编辑He was lay down.",icon:"ri:edit-line"},{title:"近期电影推荐",prompt:"可以给我推荐几部最近比较值得观看的电影吗?",icon:"ri:film-line"},{title:"马克思主义知识问答",prompt:"马克思主义的基本原理是什么?",icon:"ri:questionnaire-line"},{title:"北京旅游攻略",prompt:"如果想去北京旅游,有哪些必去的景点和美食呢?",icon:"ri:road-map-line",iconColor:"text-orange-500"},{title:"经济形势分析",prompt:"分析一下目前国内外经济形势,对未来的发展有何预测?",icon:"ri:line-chart-line"},{title:"文章情感分类",prompt:"这篇文章是正面的还是负面的?",icon:"ri:emotion-line"},{title:"写作效率提升方法",prompt:"有哪些方法可以提高写作效率?",icon:"ri:keyboard-box-line"},{title:"电子书与纸质书对比",prompt:"阅读电子书和纸质书有什么区别?",icon:"ri:book-2-line"},{title:"论文语法修改",prompt:"请帮我修改这篇论文中的语法错误。",icon:"ri:file-edit-line"},{title:"人工智能知识查询",prompt:"什么是人工智能?",icon:"ri:robot-line"},{title:"实体识别",prompt:"在这段文字中,'苹果'指的是手机品牌还是水果?",icon:"ri:barcode-box-line"},{title:"文章主题分类",prompt:"这篇文章的主题是什么?",icon:"ri:layout-line",iconColor:"text-orange-500"},{title:"文章摘要生成",prompt:"请用一句话概括这篇文章的核心内容。",icon:"ri:file-text-line"},{title:"新上映电影推荐",prompt:"有哪些值得一看的新上映电影?",icon:"ri:movie-line"},{title:"欧洲杯赛程",prompt:"请列出近期欧洲杯足球赛程表。",icon:"ri:trophy-line",iconColor:"text-gold-500"},{title:"健康饮食方案",prompt:"有哪些适合控制体重的健康饮食方案?",icon:"ri:restaurant-line",iconColor:"text-orange-500"},{title:"日本旅游攻略",prompt:"如果我想去日本旅游,应该怎样规划我的行程和预算?",icon:"ri:suitcase-line"},{title:"最新科技新闻",prompt:"有哪些最近的科技进展值得关注?",icon:"ri:news-line"},{title:"编程语言选择",prompt:"当你需要开发一个新项目时,该如何选择合适的编程语言?",icon:"ri:code-box-line"},{title:"健康饮食搭配",prompt:"请问在平衡健康饮食方面,应该怎样搭配膳食结构?",icon:"ri:restaurant-2-line"},{title:"科技公司伦理标准",prompt:"微软、谷歌等科技公司是否有明确的伦理标准?如果有,请简要列举这些标准。",icon:"ri:shield-check-line"},{title:"机器人研究方向",prompt:"机器人研究领域都包括哪些方向?",icon:"ri:robot-line"},{title:"气候变化影响",prompt:"你认为气候变化对人类有哪些不利影响?",icon:"ri:cloud-windy-line"}],_hoisted_1$a={class:"mb-10 rounded px-4 py-2 text-center text-3xl font-bold text-primary-500"},_hoisted_2$9={key:0,class:"w-full md:max-w-[40rem]"},_hoisted_3$8=["onClick"],_hoisted_4$7={class:"mt-8 line-clamp-2 break-all overflow-hidden text-gray-600 dark:text-gray-500 flex-grow text-sm"},_sfc_main$9=defineComponent({__name:"index",setup(k){var ie;const m=inject("onConversation"),M=useAuthStore(),G=useChatStore(),V=computed(()=>G.groupList),{isMobile:q}=useBasicLayout(),$=ref(),D=useRoute(),B=computed(()=>{var he;return Number((he=M.globalConfig)==null?void 0:he.isHideDefaultPreset)===1}),R=()=>{if(D.path==="/pdf"){$.value=defaultPdfPreset.sort(()=>.5-Math.random()).slice(0,4);return}else $.value=defaultPreset.sort(()=>.5-Math.random()).slice(0,4)};onMounted(()=>{R()}),onMounted(()=>{R()});const U=((ie=M.globalConfig)==null?void 0:ie.siteName)||"AIWeb",K=computed(()=>D.path==="/pdf"),z=inject("createNewChatGroup",()=>Promise.resolve());async function e(he){V.value.length===0&&await z();const{appId:J,prompt:W}=he;if(J&&J>0)try{await G.addNewChatGroup(J),await G.queryMyGroup()}catch{}else m({msg:W})}const ae=()=>{const he=["text-red-500","text-blue-500","text-green-500","text-yellow-500","text-purple-500","text-pink-500","text-indigo-500"];return he[Math.floor(Math.random()*he.length)]};return(he,J)=>(openBlock(),createElementBlock("div",{class:normalizeClass([[unref(q)?"mb-16":"mt-8"],"px-4 select-none w-full flex flex-col items-center justify-center h-full"])},[createBaseVNode("h1",_hoisted_1$a,toDisplayString(unref(U)),1),B.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$9,[createBaseVNode("div",{class:normalizeClass([K.value?"grid-cols-2 mx-2":"grid-cols-2 sm:grid-cols-2 lg:grid-cols-4","grid gap-4"])},[(openBlock(!0),createElementBlock(Fragment$1,null,renderList($.value,W=>(openBlock(),createElementBlock("div",{key:W.title,class:"space-y-4"},[createBaseVNode("button",{onClick:X=>e(W),class:"relative shadow-sm flex flex-col gap-2 rounded-xl ring-1 ring-gray-200 dark:ring-gray-700 px-3 pb-4 pt-3 text-start align-top text-sm transition dark:bg-gray-800 dark:hover:bg-gray-750 hover:bg-gray-50 w-full h-full min-h-[4rem] min-w-[8rem] flex-grow"},[createVNode(unref(_sfc_main$k),{icon:W.icon,class:normalizeClass(["mb-3 inline-block text-base absolute top-3 left-3",ae()])},null,8,["icon","class"]),createBaseVNode("div",_hoisted_4$7,toDisplayString(W.title),1)],8,_hoisted_3$8)]))),128))],2)]))],2))}}),_hoisted_1$9={class:"w-full md:max-w-[40rem] mb-4"},_hoisted_2$8={class:"flex items-center justify-center"},_hoisted_3$7={key:0,class:"flex-shrink-0 dark:ring-gray-400 rounded-lg"},_hoisted_4$6=["src"],_hoisted_5$6={class:"text-white text-sm md:text-lg"},_hoisted_6$6={class:"rounded px-4 py-2 text-3xl font-bold text-primary-500"},_hoisted_7$6={class:"w-full md:max-w-[40rem] mb-5"},_hoisted_8$5={class:"flex items-center justify-center"},_hoisted_9$5={class:"w-full md:max-w-[40rem] mt-2"},_hoisted_10$4={class:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-4 justify-center"},_hoisted_11$4=["onClick"],_hoisted_12$3={class:"mt-8 line-clamp-2 break-all overflow-hidden text-gray-600 dark:text-gray-500 flex-grow text-sm"},_sfc_main$8=defineComponent({__name:"index",props:{appId:{}},setup(k){const{isMobile:m}=useBasicLayout(),M=ref(null),G=k,V=inject("onConversation"),q=async B=>{try{const R=await fetchQueryOneCatAPI({id:B});M.value=R.data}catch{}};function $(B){var R;V({msg:B,model:(R=M==null?void 0:M.value)==null?void 0:R.model,modelAvatar:M.value.modelAvatar})}function D(){const B=["bg-blue-300","bg-red-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"];return B[Math.floor(Math.random()*B.length)]}return onMounted(()=>{G.appId&&q(G.appId)}),watch(()=>G.appId,B=>{B&&q(B)}),(B,R)=>{var U,K,z;return M.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([[unref(m)?"mb-16":"mt-8"],"px-4 select-none w-full flex flex-col items-center justify-center h-full"])},[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$8,[M.value.coverImg?(openBlock(),createElementBlock("div",_hoisted_3$7,[createBaseVNode("img",{src:M.value.coverImg,class:"rounded-full w-10 h-10 mr-4",alt:"app-image"},null,8,_hoisted_4$6)])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([D(),"flex-shrink-0 dark:ring-gray-400 rounded-full w-10 h-10 flex items-center justify-center mr-4"])},[createBaseVNode("span",_hoisted_5$6,toDisplayString(M.value.name.slice(0,1)),1)],2)),createBaseVNode("h1",_hoisted_6$6,toDisplayString((U=M.value)==null?void 0:U.name),1)])]),createBaseVNode("div",_hoisted_7$6,[createBaseVNode("div",_hoisted_8$5,[createBaseVNode("p",null,toDisplayString((K=M.value)==null?void 0:K.des),1)])]),createBaseVNode("div",_hoisted_9$5,[createBaseVNode("div",_hoisted_10$4,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList((z=M.value)==null?void 0:z.demoData,(e,ae)=>(openBlock(),createElementBlock("div",{key:ae,class:"space-y-4"},[createBaseVNode("button",{onClick:ie=>$(e),class:"relative flex flex-col gap-2 rounded-xl border border-gray-200 dark:border-gray-800 px-3 pb-4 pt-3 text-start align-top text-sm shadow-sm transition dark:bg-gray-800 dark:hover:bg-gray-700 hover:bg-gray-50 w-full h-full min-h-[4rem] min-w-[8rem] flex-grow"},[createVNode(unref(_sfc_main$k),{class:"mb-3 inline-block text-base absolute top-3 left-3",icon:"material-symbols:tips-and-updates-outline"}),createBaseVNode("div",_hoisted_12$3,toDisplayString(e),1)],8,_hoisted_11$4)]))),128))])])],2)):createCommentVNode("",!0)}}});var jszip_min={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(k,m){(function(M){k.exports=M()})(function(){return function M(G,V,q){function $(R,U){if(!V[R]){if(!G[R]){var K=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!U&&K)return K(R,!0);if(D)return D(R,!0);var z=new Error("Cannot find module '"+R+"'");throw z.code="MODULE_NOT_FOUND",z}var e=V[R]={exports:{}};G[R][0].call(e.exports,function(ae){var ie=G[R][1][ae];return $(ie||ae)},e,e.exports,M,G,V,q)}return V[R].exports}for(var D=typeof commonjsRequire$1=="function"&&commonjsRequire$1,B=0;B<q.length;B++)$(q[B]);return $}({1:[function(M,G,V){var q=M("./utils"),$=M("./support"),D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";V.encode=function(B){for(var R,U,K,z,e,ae,ie,he=[],J=0,W=B.length,X=W,L=q.getTypeOf(B)!=="string";J<B.length;)X=W-J,K=L?(R=B[J++],U=J<W?B[J++]:0,J<W?B[J++]:0):(R=B.charCodeAt(J++),U=J<W?B.charCodeAt(J++):0,J<W?B.charCodeAt(J++):0),z=R>>2,e=(3&R)<<4|U>>4,ae=1<X?(15&U)<<2|K>>6:64,ie=2<X?63&K:64,he.push(D.charAt(z)+D.charAt(e)+D.charAt(ae)+D.charAt(ie));return he.join("")},V.decode=function(B){var R,U,K,z,e,ae,ie=0,he=0,J="data:";if(B.substr(0,J.length)===J)throw new Error("Invalid base64 input, it looks like a data url.");var W,X=3*(B=B.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(B.charAt(B.length-1)===D.charAt(64)&&X--,B.charAt(B.length-2)===D.charAt(64)&&X--,X%1!=0)throw new Error("Invalid base64 input, bad content length.");for(W=$.uint8array?new Uint8Array(0|X):new Array(0|X);ie<B.length;)R=D.indexOf(B.charAt(ie++))<<2|(z=D.indexOf(B.charAt(ie++)))>>4,U=(15&z)<<4|(e=D.indexOf(B.charAt(ie++)))>>2,K=(3&e)<<6|(ae=D.indexOf(B.charAt(ie++))),W[he++]=R,e!==64&&(W[he++]=U),ae!==64&&(W[he++]=K);return W}},{"./support":30,"./utils":32}],2:[function(M,G,V){var q=M("./external"),$=M("./stream/DataWorker"),D=M("./stream/Crc32Probe"),B=M("./stream/DataLengthProbe");function R(U,K,z,e,ae){this.compressedSize=U,this.uncompressedSize=K,this.crc32=z,this.compression=e,this.compressedContent=ae}R.prototype={getContentWorker:function(){var U=new $(q.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new B("data_length")),K=this;return U.on("end",function(){if(this.streamInfo.data_length!==K.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),U},getCompressedWorker:function(){return new $(q.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},R.createWorkerFrom=function(U,K,z){return U.pipe(new D).pipe(new B("uncompressedSize")).pipe(K.compressWorker(z)).pipe(new B("compressedSize")).withStreamInfo("compression",K)},G.exports=R},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(M,G,V){var q=M("./stream/GenericWorker");V.STORE={magic:"\0\0",compressWorker:function(){return new q("STORE compression")},uncompressWorker:function(){return new q("STORE decompression")}},V.DEFLATE=M("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(M,G,V){var q=M("./utils"),$=function(){for(var D,B=[],R=0;R<256;R++){D=R;for(var U=0;U<8;U++)D=1&D?3988292384^D>>>1:D>>>1;B[R]=D}return B}();G.exports=function(D,B){return D!==void 0&&D.length?q.getTypeOf(D)!=="string"?function(R,U,K,z){var e=$,ae=z+K;R^=-1;for(var ie=z;ie<ae;ie++)R=R>>>8^e[255&(R^U[ie])];return-1^R}(0|B,D,D.length,0):function(R,U,K,z){var e=$,ae=z+K;R^=-1;for(var ie=z;ie<ae;ie++)R=R>>>8^e[255&(R^U.charCodeAt(ie))];return-1^R}(0|B,D,D.length,0):0}},{"./utils":32}],5:[function(M,G,V){V.base64=!1,V.binary=!1,V.dir=!1,V.createFolders=!0,V.date=null,V.compression=null,V.compressionOptions=null,V.comment=null,V.unixPermissions=null,V.dosPermissions=null},{}],6:[function(M,G,V){var q=null;q=typeof Promise<"u"?Promise:M("lie"),G.exports={Promise:q}},{lie:37}],7:[function(M,G,V){var q=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",$=M("pako"),D=M("./utils"),B=M("./stream/GenericWorker"),R=q?"uint8array":"array";function U(K,z){B.call(this,"FlateWorker/"+K),this._pako=null,this._pakoAction=K,this._pakoOptions=z,this.meta={}}V.magic="\b\0",D.inherits(U,B),U.prototype.processChunk=function(K){this.meta=K.meta,this._pako===null&&this._createPako(),this._pako.push(D.transformTo(R,K.data),!1)},U.prototype.flush=function(){B.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},U.prototype.cleanUp=function(){B.prototype.cleanUp.call(this),this._pako=null},U.prototype._createPako=function(){this._pako=new $[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var K=this;this._pako.onData=function(z){K.push({data:z,meta:K.meta})}},V.compressWorker=function(K){return new U("Deflate",K)},V.uncompressWorker=function(){return new U("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(M,G,V){function q(e,ae){var ie,he="";for(ie=0;ie<ae;ie++)he+=String.fromCharCode(255&e),e>>>=8;return he}function $(e,ae,ie,he,J,W){var X,L,Q=e.file,ce=e.compression,de=W!==R.utf8encode,se=D.transformTo("string",W(Q.name)),oe=D.transformTo("string",R.utf8encode(Q.name)),me=Q.comment,Ee=D.transformTo("string",W(me)),ke=D.transformTo("string",R.utf8encode(me)),xe=oe.length!==Q.name.length,fe=ke.length!==me.length,ve="",ye="",Ce="",pe=Q.dir,_e=Q.date,Ge={crc32:0,compressedSize:0,uncompressedSize:0};ae&&!ie||(Ge.crc32=e.crc32,Ge.compressedSize=e.compressedSize,Ge.uncompressedSize=e.uncompressedSize);var Ae=0;ae&&(Ae|=8),de||!xe&&!fe||(Ae|=2048);var Ne=0,Ze=0;pe&&(Ne|=16),J==="UNIX"?(Ze=798,Ne|=function(Te,Fe){var Pe=Te;return Te||(Pe=Fe?16893:33204),(65535&Pe)<<16}(Q.unixPermissions,pe)):(Ze=20,Ne|=function(Te){return 63&(Te||0)}(Q.dosPermissions)),X=_e.getUTCHours(),X<<=6,X|=_e.getUTCMinutes(),X<<=5,X|=_e.getUTCSeconds()/2,L=_e.getUTCFullYear()-1980,L<<=4,L|=_e.getUTCMonth()+1,L<<=5,L|=_e.getUTCDate(),xe&&(ye=q(1,1)+q(U(se),4)+oe,ve+="up"+q(ye.length,2)+ye),fe&&(Ce=q(1,1)+q(U(Ee),4)+ke,ve+="uc"+q(Ce.length,2)+Ce);var ze="";return ze+=`
\0`,ze+=q(Ae,2),ze+=ce.magic,ze+=q(X,2),ze+=q(L,2),ze+=q(Ge.crc32,4),ze+=q(Ge.compressedSize,4),ze+=q(Ge.uncompressedSize,4),ze+=q(se.length,2),ze+=q(ve.length,2),{fileRecord:K.LOCAL_FILE_HEADER+ze+se+ve,dirRecord:K.CENTRAL_FILE_HEADER+q(Ze,2)+ze+q(Ee.length,2)+"\0\0\0\0"+q(Ne,4)+q(he,4)+se+ve+Ee}}var D=M("../utils"),B=M("../stream/GenericWorker"),R=M("../utf8"),U=M("../crc32"),K=M("../signature");function z(e,ae,ie,he){B.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=ae,this.zipPlatform=ie,this.encodeFileName=he,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}D.inherits(z,B),z.prototype.push=function(e){var ae=e.meta.percent||0,ie=this.entriesCount,he=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,B.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:ie?(ae+100*(ie-he-1))/ie:100}}))},z.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var ae=this.streamFiles&&!e.file.dir;if(ae){var ie=$(e,ae,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:ie.fileRecord,meta:{percent:0}})}else this.accumulate=!0},z.prototype.closedSource=function(e){this.accumulate=!1;var ae=this.streamFiles&&!e.file.dir,ie=$(e,ae,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(ie.dirRecord),ae)this.push({data:function(he){return K.DATA_DESCRIPTOR+q(he.crc32,4)+q(he.compressedSize,4)+q(he.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:ie.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},z.prototype.flush=function(){for(var e=this.bytesWritten,ae=0;ae<this.dirRecords.length;ae++)this.push({data:this.dirRecords[ae],meta:{percent:100}});var ie=this.bytesWritten-e,he=function(J,W,X,L,Q){var ce=D.transformTo("string",Q(L));return K.CENTRAL_DIRECTORY_END+"\0\0\0\0"+q(J,2)+q(J,2)+q(W,4)+q(X,4)+q(ce.length,2)+ce}(this.dirRecords.length,ie,e,this.zipComment,this.encodeFileName);this.push({data:he,meta:{percent:100}})},z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},z.prototype.registerPrevious=function(e){this._sources.push(e);var ae=this;return e.on("data",function(ie){ae.processChunk(ie)}),e.on("end",function(){ae.closedSource(ae.previous.streamInfo),ae._sources.length?ae.prepareNextSource():ae.end()}),e.on("error",function(ie){ae.error(ie)}),this},z.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},z.prototype.error=function(e){var ae=this._sources;if(!B.prototype.error.call(this,e))return!1;for(var ie=0;ie<ae.length;ie++)try{ae[ie].error(e)}catch{}return!0},z.prototype.lock=function(){B.prototype.lock.call(this);for(var e=this._sources,ae=0;ae<e.length;ae++)e[ae].lock()},G.exports=z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(M,G,V){var q=M("../compressions"),$=M("./ZipFileWorker");V.generateWorker=function(D,B,R){var U=new $(B.streamFiles,R,B.platform,B.encodeFileName),K=0;try{D.forEach(function(z,e){K++;var ae=function(W,X){var L=W||X,Q=q[L];if(!Q)throw new Error(L+" is not a valid compression method !");return Q}(e.options.compression,B.compression),ie=e.options.compressionOptions||B.compressionOptions||{},he=e.dir,J=e.date;e._compressWorker(ae,ie).withStreamInfo("file",{name:z,dir:he,date:J,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(U)}),U.entriesCount=K}catch(z){U.error(z)}return U}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(M,G,V){function q(){if(!(this instanceof q))return new q;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new q;for(var D in this)typeof this[D]!="function"&&($[D]=this[D]);return $}}(q.prototype=M("./object")).loadAsync=M("./load"),q.support=M("./support"),q.defaults=M("./defaults"),q.version="3.10.1",q.loadAsync=function($,D){return new q().loadAsync($,D)},q.external=M("./external"),G.exports=q},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(M,G,V){var q=M("./utils"),$=M("./external"),D=M("./utf8"),B=M("./zipEntries"),R=M("./stream/Crc32Probe"),U=M("./nodejsUtils");function K(z){return new $.Promise(function(e,ae){var ie=z.decompressed.getContentWorker().pipe(new R);ie.on("error",function(he){ae(he)}).on("end",function(){ie.streamInfo.crc32!==z.decompressed.crc32?ae(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}G.exports=function(z,e){var ae=this;return e=q.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:D.utf8decode}),U.isNode&&U.isStream(z)?$.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):q.prepareContent("the loaded zip file",z,!0,e.optimizedBinaryString,e.base64).then(function(ie){var he=new B(e);return he.load(ie),he}).then(function(ie){var he=[$.Promise.resolve(ie)],J=ie.files;if(e.checkCRC32)for(var W=0;W<J.length;W++)he.push(K(J[W]));return $.Promise.all(he)}).then(function(ie){for(var he=ie.shift(),J=he.files,W=0;W<J.length;W++){var X=J[W],L=X.fileNameStr,Q=q.resolve(X.fileNameStr);ae.file(Q,X.decompressed,{binary:!0,optimizedBinaryString:!0,date:X.date,dir:X.dir,comment:X.fileCommentStr.length?X.fileCommentStr:null,unixPermissions:X.unixPermissions,dosPermissions:X.dosPermissions,createFolders:e.createFolders}),X.dir||(ae.file(Q).unsafeOriginalName=L)}return he.zipComment.length&&(ae.comment=he.zipComment),ae})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(M,G,V){var q=M("../utils"),$=M("../stream/GenericWorker");function D(B,R){$.call(this,"Nodejs stream input adapter for "+B),this._upstreamEnded=!1,this._bindStream(R)}q.inherits(D,$),D.prototype._bindStream=function(B){var R=this;(this._stream=B).pause(),B.on("data",function(U){R.push({data:U,meta:{percent:0}})}).on("error",function(U){R.isPaused?this.generatedError=U:R.error(U)}).on("end",function(){R.isPaused?R._upstreamEnded=!0:R.end()})},D.prototype.pause=function(){return!!$.prototype.pause.call(this)&&(this._stream.pause(),!0)},D.prototype.resume=function(){return!!$.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},G.exports=D},{"../stream/GenericWorker":28,"../utils":32}],13:[function(M,G,V){var q=M("readable-stream").Readable;function $(D,B,R){q.call(this,B),this._helper=D;var U=this;D.on("data",function(K,z){U.push(K)||U._helper.pause(),R&&R(z)}).on("error",function(K){U.emit("error",K)}).on("end",function(){U.push(null)})}M("../utils").inherits($,q),$.prototype._read=function(){this._helper.resume()},G.exports=$},{"../utils":32,"readable-stream":16}],14:[function(M,G,V){G.exports={isNode:typeof Buffer<"u",newBufferFrom:function(q,$){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(q,$);if(typeof q=="number")throw new Error('The "data" argument must not be a number');return new Buffer(q,$)},allocBuffer:function(q){if(Buffer.alloc)return Buffer.alloc(q);var $=new Buffer(q);return $.fill(0),$},isBuffer:function(q){return Buffer.isBuffer(q)},isStream:function(q){return q&&typeof q.on=="function"&&typeof q.pause=="function"&&typeof q.resume=="function"}}},{}],15:[function(M,G,V){function q(Q,ce,de){var se,oe=D.getTypeOf(ce),me=D.extend(de||{},U);me.date=me.date||new Date,me.compression!==null&&(me.compression=me.compression.toUpperCase()),typeof me.unixPermissions=="string"&&(me.unixPermissions=parseInt(me.unixPermissions,8)),me.unixPermissions&&16384&me.unixPermissions&&(me.dir=!0),me.dosPermissions&&16&me.dosPermissions&&(me.dir=!0),me.dir&&(Q=J(Q)),me.createFolders&&(se=he(Q))&&W.call(this,se,!0);var Ee=oe==="string"&&me.binary===!1&&me.base64===!1;de&&de.binary!==void 0||(me.binary=!Ee),(ce instanceof K&&ce.uncompressedSize===0||me.dir||!ce||ce.length===0)&&(me.base64=!1,me.binary=!0,ce="",me.compression="STORE",oe="string");var ke=null;ke=ce instanceof K||ce instanceof B?ce:ae.isNode&&ae.isStream(ce)?new ie(Q,ce):D.prepareContent(Q,ce,me.binary,me.optimizedBinaryString,me.base64);var xe=new z(Q,ke,me);this.files[Q]=xe}var $=M("./utf8"),D=M("./utils"),B=M("./stream/GenericWorker"),R=M("./stream/StreamHelper"),U=M("./defaults"),K=M("./compressedObject"),z=M("./zipObject"),e=M("./generate"),ae=M("./nodejsUtils"),ie=M("./nodejs/NodejsStreamInputAdapter"),he=function(Q){Q.slice(-1)==="/"&&(Q=Q.substring(0,Q.length-1));var ce=Q.lastIndexOf("/");return 0<ce?Q.substring(0,ce):""},J=function(Q){return Q.slice(-1)!=="/"&&(Q+="/"),Q},W=function(Q,ce){return ce=ce!==void 0?ce:U.createFolders,Q=J(Q),this.files[Q]||q.call(this,Q,null,{dir:!0,createFolders:ce}),this.files[Q]};function X(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var L={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var ce,de,se;for(ce in this.files)se=this.files[ce],(de=ce.slice(this.root.length,ce.length))&&ce.slice(0,this.root.length)===this.root&&Q(de,se)},filter:function(Q){var ce=[];return this.forEach(function(de,se){Q(de,se)&&ce.push(se)}),ce},file:function(Q,ce,de){if(arguments.length!==1)return Q=this.root+Q,q.call(this,Q,ce,de),this;if(X(Q)){var se=Q;return this.filter(function(me,Ee){return!Ee.dir&&se.test(me)})}var oe=this.files[this.root+Q];return oe&&!oe.dir?oe:null},folder:function(Q){if(!Q)return this;if(X(Q))return this.filter(function(oe,me){return me.dir&&Q.test(oe)});var ce=this.root+Q,de=W.call(this,ce),se=this.clone();return se.root=de.name,se},remove:function(Q){Q=this.root+Q;var ce=this.files[Q];if(ce||(Q.slice(-1)!=="/"&&(Q+="/"),ce=this.files[Q]),ce&&!ce.dir)delete this.files[Q];else for(var de=this.filter(function(oe,me){return me.name.slice(0,Q.length)===Q}),se=0;se<de.length;se++)delete this.files[de[se].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var ce,de={};try{if((de=D.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:$.utf8encode})).type=de.type.toLowerCase(),de.compression=de.compression.toUpperCase(),de.type==="binarystring"&&(de.type="string"),!de.type)throw new Error("No output type specified.");D.checkSupport(de.type),de.platform!=="darwin"&&de.platform!=="freebsd"&&de.platform!=="linux"&&de.platform!=="sunos"||(de.platform="UNIX"),de.platform==="win32"&&(de.platform="DOS");var se=de.comment||this.comment||"";ce=e.generateWorker(this,de,se)}catch(oe){(ce=new B("error")).error(oe)}return new R(ce,de.type||"string",de.mimeType)},generateAsync:function(Q,ce){return this.generateInternalStream(Q).accumulate(ce)},generateNodeStream:function(Q,ce){return(Q=Q||{}).type||(Q.type="nodebuffer"),this.generateInternalStream(Q).toNodejsStream(ce)}};G.exports=L},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(M,G,V){G.exports=M("stream")},{stream:void 0}],17:[function(M,G,V){var q=M("./DataReader");function $(D){q.call(this,D);for(var B=0;B<this.data.length;B++)D[B]=255&D[B]}M("../utils").inherits($,q),$.prototype.byteAt=function(D){return this.data[this.zero+D]},$.prototype.lastIndexOfSignature=function(D){for(var B=D.charCodeAt(0),R=D.charCodeAt(1),U=D.charCodeAt(2),K=D.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===B&&this.data[z+1]===R&&this.data[z+2]===U&&this.data[z+3]===K)return z-this.zero;return-1},$.prototype.readAndCheckSignature=function(D){var B=D.charCodeAt(0),R=D.charCodeAt(1),U=D.charCodeAt(2),K=D.charCodeAt(3),z=this.readData(4);return B===z[0]&&R===z[1]&&U===z[2]&&K===z[3]},$.prototype.readData=function(D){if(this.checkOffset(D),D===0)return[];var B=this.data.slice(this.zero+this.index,this.zero+this.index+D);return this.index+=D,B},G.exports=$},{"../utils":32,"./DataReader":18}],18:[function(M,G,V){var q=M("../utils");function $(D){this.data=D,this.length=D.length,this.index=0,this.zero=0}$.prototype={checkOffset:function(D){this.checkIndex(this.index+D)},checkIndex:function(D){if(this.length<this.zero+D||D<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+D+"). Corrupted zip ?")},setIndex:function(D){this.checkIndex(D),this.index=D},skip:function(D){this.setIndex(this.index+D)},byteAt:function(){},readInt:function(D){var B,R=0;for(this.checkOffset(D),B=this.index+D-1;B>=this.index;B--)R=(R<<8)+this.byteAt(B);return this.index+=D,R},readString:function(D){return q.transformTo("string",this.readData(D))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var D=this.readInt(4);return new Date(Date.UTC(1980+(D>>25&127),(D>>21&15)-1,D>>16&31,D>>11&31,D>>5&63,(31&D)<<1))}},G.exports=$},{"../utils":32}],19:[function(M,G,V){var q=M("./Uint8ArrayReader");function $(D){q.call(this,D)}M("../utils").inherits($,q),$.prototype.readData=function(D){this.checkOffset(D);var B=this.data.slice(this.zero+this.index,this.zero+this.index+D);return this.index+=D,B},G.exports=$},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(M,G,V){var q=M("./DataReader");function $(D){q.call(this,D)}M("../utils").inherits($,q),$.prototype.byteAt=function(D){return this.data.charCodeAt(this.zero+D)},$.prototype.lastIndexOfSignature=function(D){return this.data.lastIndexOf(D)-this.zero},$.prototype.readAndCheckSignature=function(D){return D===this.readData(4)},$.prototype.readData=function(D){this.checkOffset(D);var B=this.data.slice(this.zero+this.index,this.zero+this.index+D);return this.index+=D,B},G.exports=$},{"../utils":32,"./DataReader":18}],21:[function(M,G,V){var q=M("./ArrayReader");function $(D){q.call(this,D)}M("../utils").inherits($,q),$.prototype.readData=function(D){if(this.checkOffset(D),D===0)return new Uint8Array(0);var B=this.data.subarray(this.zero+this.index,this.zero+this.index+D);return this.index+=D,B},G.exports=$},{"../utils":32,"./ArrayReader":17}],22:[function(M,G,V){var q=M("../utils"),$=M("../support"),D=M("./ArrayReader"),B=M("./StringReader"),R=M("./NodeBufferReader"),U=M("./Uint8ArrayReader");G.exports=function(K){var z=q.getTypeOf(K);return q.checkSupport(z),z!=="string"||$.uint8array?z==="nodebuffer"?new R(K):$.uint8array?new U(q.transformTo("uint8array",K)):new D(q.transformTo("array",K)):new B(K)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(M,G,V){V.LOCAL_FILE_HEADER="PK",V.CENTRAL_FILE_HEADER="PK",V.CENTRAL_DIRECTORY_END="PK",V.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",V.ZIP64_CENTRAL_DIRECTORY_END="PK",V.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(M,G,V){var q=M("./GenericWorker"),$=M("../utils");function D(B){q.call(this,"ConvertWorker to "+B),this.destType=B}$.inherits(D,q),D.prototype.processChunk=function(B){this.push({data:$.transformTo(this.destType,B.data),meta:B.meta})},G.exports=D},{"../utils":32,"./GenericWorker":28}],25:[function(M,G,V){var q=M("./GenericWorker"),$=M("../crc32");function D(){q.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}M("../utils").inherits(D,q),D.prototype.processChunk=function(B){this.streamInfo.crc32=$(B.data,this.streamInfo.crc32||0),this.push(B)},G.exports=D},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(M,G,V){var q=M("../utils"),$=M("./GenericWorker");function D(B){$.call(this,"DataLengthProbe for "+B),this.propName=B,this.withStreamInfo(B,0)}q.inherits(D,$),D.prototype.processChunk=function(B){if(B){var R=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=R+B.data.length}$.prototype.processChunk.call(this,B)},G.exports=D},{"../utils":32,"./GenericWorker":28}],27:[function(M,G,V){var q=M("../utils"),$=M("./GenericWorker");function D(B){$.call(this,"DataWorker");var R=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,B.then(function(U){R.dataIsReady=!0,R.data=U,R.max=U&&U.length||0,R.type=q.getTypeOf(U),R.isPaused||R._tickAndRepeat()},function(U){R.error(U)})}q.inherits(D,$),D.prototype.cleanUp=function(){$.prototype.cleanUp.call(this),this.data=null},D.prototype.resume=function(){return!!$.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,q.delay(this._tickAndRepeat,[],this)),!0)},D.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(q.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},D.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var B=null,R=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":B=this.data.substring(this.index,R);break;case"uint8array":B=this.data.subarray(this.index,R);break;case"array":case"nodebuffer":B=this.data.slice(this.index,R)}return this.index=R,this.push({data:B,meta:{percent:this.max?this.index/this.max*100:0}})},G.exports=D},{"../utils":32,"./GenericWorker":28}],28:[function(M,G,V){function q($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}q.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){return!this.isFinished&&(this.isPaused?this.generatedError=$:(this.isFinished=!0,this.emit("error",$),this.previous&&this.previous.error($),this.cleanUp()),!0)},on:function($,D){return this._listeners[$].push(D),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,D){if(this._listeners[$])for(var B=0;B<this._listeners[$].length;B++)this._listeners[$][B].call(this,D)},pipe:function($){return $.registerPrevious(this)},registerPrevious:function($){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=$.streamInfo,this.mergeStreamInfo(),this.previous=$;var D=this;return $.on("data",function(B){D.processChunk(B)}),$.on("end",function(){D.end()}),$.on("error",function(B){D.error(B)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var $=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),$=!0),this.previous&&this.previous.resume(),!$},flush:function(){},processChunk:function($){this.push($)},withStreamInfo:function($,D){return this.extraStreamInfo[$]=D,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var $ in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,$)&&(this.streamInfo[$]=this.extraStreamInfo[$])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var $="Worker "+this.name;return this.previous?this.previous+" -> "+$:$}},G.exports=q},{}],29:[function(M,G,V){var q=M("../utils"),$=M("./ConvertWorker"),D=M("./GenericWorker"),B=M("../base64"),R=M("../support"),U=M("../external"),K=null;if(R.nodestream)try{K=M("../nodejs/NodejsStreamOutputAdapter")}catch{}function z(ae,ie){return new U.Promise(function(he,J){var W=[],X=ae._internalType,L=ae._outputType,Q=ae._mimeType;ae.on("data",function(ce,de){W.push(ce),ie&&ie(de)}).on("error",function(ce){W=[],J(ce)}).on("end",function(){try{var ce=function(de,se,oe){switch(de){case"blob":return q.newBlob(q.transformTo("arraybuffer",se),oe);case"base64":return B.encode(se);default:return q.transformTo(de,se)}}(L,function(de,se){var oe,me=0,Ee=null,ke=0;for(oe=0;oe<se.length;oe++)ke+=se[oe].length;switch(de){case"string":return se.join("");case"array":return Array.prototype.concat.apply([],se);case"uint8array":for(Ee=new Uint8Array(ke),oe=0;oe<se.length;oe++)Ee.set(se[oe],me),me+=se[oe].length;return Ee;case"nodebuffer":return Buffer.concat(se);default:throw new Error("concat : unsupported type '"+de+"'")}}(X,W),Q);he(ce)}catch(de){J(de)}W=[]}).resume()})}function e(ae,ie,he){var J=ie;switch(ie){case"blob":case"arraybuffer":J="uint8array";break;case"base64":J="string"}try{this._internalType=J,this._outputType=ie,this._mimeType=he,q.checkSupport(J),this._worker=ae.pipe(new $(J)),ae.lock()}catch(W){this._worker=new D("error"),this._worker.error(W)}}e.prototype={accumulate:function(ae){return z(this,ae)},on:function(ae,ie){var he=this;return ae==="data"?this._worker.on(ae,function(J){ie.call(he,J.data,J.meta)}):this._worker.on(ae,function(){q.delay(ie,arguments,he)}),this},resume:function(){return q.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(ae){if(q.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new K(this,{objectMode:this._outputType!=="nodebuffer"},ae)}},G.exports=e},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(M,G,V){if(V.base64=!0,V.array=!0,V.string=!0,V.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",V.nodebuffer=typeof Buffer<"u",V.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")V.blob=!1;else{var q=new ArrayBuffer(0);try{V.blob=new Blob([q],{type:"application/zip"}).size===0}catch{try{var $=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);$.append(q),V.blob=$.getBlob("application/zip").size===0}catch{V.blob=!1}}}try{V.nodestream=!!M("readable-stream").Readable}catch{V.nodestream=!1}},{"readable-stream":16}],31:[function(M,G,V){for(var q=M("./utils"),$=M("./support"),D=M("./nodejsUtils"),B=M("./stream/GenericWorker"),R=new Array(256),U=0;U<256;U++)R[U]=252<=U?6:248<=U?5:240<=U?4:224<=U?3:192<=U?2:1;R[254]=R[254]=1;function K(){B.call(this,"utf-8 decode"),this.leftOver=null}function z(){B.call(this,"utf-8 encode")}V.utf8encode=function(e){return $.nodebuffer?D.newBufferFrom(e,"utf-8"):function(ae){var ie,he,J,W,X,L=ae.length,Q=0;for(W=0;W<L;W++)(64512&(he=ae.charCodeAt(W)))==55296&&W+1<L&&(64512&(J=ae.charCodeAt(W+1)))==56320&&(he=65536+(he-55296<<10)+(J-56320),W++),Q+=he<128?1:he<2048?2:he<65536?3:4;for(ie=$.uint8array?new Uint8Array(Q):new Array(Q),W=X=0;X<Q;W++)(64512&(he=ae.charCodeAt(W)))==55296&&W+1<L&&(64512&(J=ae.charCodeAt(W+1)))==56320&&(he=65536+(he-55296<<10)+(J-56320),W++),he<128?ie[X++]=he:(he<2048?ie[X++]=192|he>>>6:(he<65536?ie[X++]=224|he>>>12:(ie[X++]=240|he>>>18,ie[X++]=128|he>>>12&63),ie[X++]=128|he>>>6&63),ie[X++]=128|63&he);return ie}(e)},V.utf8decode=function(e){return $.nodebuffer?q.transformTo("nodebuffer",e).toString("utf-8"):function(ae){var ie,he,J,W,X=ae.length,L=new Array(2*X);for(ie=he=0;ie<X;)if((J=ae[ie++])<128)L[he++]=J;else if(4<(W=R[J]))L[he++]=65533,ie+=W-1;else{for(J&=W===2?31:W===3?15:7;1<W&&ie<X;)J=J<<6|63&ae[ie++],W--;1<W?L[he++]=65533:J<65536?L[he++]=J:(J-=65536,L[he++]=55296|J>>10&1023,L[he++]=56320|1023&J)}return L.length!==he&&(L.subarray?L=L.subarray(0,he):L.length=he),q.applyFromCharCode(L)}(e=q.transformTo($.uint8array?"uint8array":"array",e))},q.inherits(K,B),K.prototype.processChunk=function(e){var ae=q.transformTo($.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if($.uint8array){var ie=ae;(ae=new Uint8Array(ie.length+this.leftOver.length)).set(this.leftOver,0),ae.set(ie,this.leftOver.length)}else ae=this.leftOver.concat(ae);this.leftOver=null}var he=function(W,X){var L;for((X=X||W.length)>W.length&&(X=W.length),L=X-1;0<=L&&(192&W[L])==128;)L--;return L<0||L===0?X:L+R[W[L]]>X?L:X}(ae),J=ae;he!==ae.length&&($.uint8array?(J=ae.subarray(0,he),this.leftOver=ae.subarray(he,ae.length)):(J=ae.slice(0,he),this.leftOver=ae.slice(he,ae.length))),this.push({data:V.utf8decode(J),meta:e.meta})},K.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:V.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},V.Utf8DecodeWorker=K,q.inherits(z,B),z.prototype.processChunk=function(e){this.push({data:V.utf8encode(e.data),meta:e.meta})},V.Utf8EncodeWorker=z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(M,G,V){var q=M("./support"),$=M("./base64"),D=M("./nodejsUtils"),B=M("./external");function R(ie){return ie}function U(ie,he){for(var J=0;J<ie.length;++J)he[J]=255&ie.charCodeAt(J);return he}M("setimmediate"),V.newBlob=function(ie,he){V.checkSupport("blob");try{return new Blob([ie],{type:he})}catch{try{var J=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return J.append(ie),J.getBlob(he)}catch{throw new Error("Bug : can't construct the Blob.")}}};var K={stringifyByChunk:function(ie,he,J){var W=[],X=0,L=ie.length;if(L<=J)return String.fromCharCode.apply(null,ie);for(;X<L;)he==="array"||he==="nodebuffer"?W.push(String.fromCharCode.apply(null,ie.slice(X,Math.min(X+J,L)))):W.push(String.fromCharCode.apply(null,ie.subarray(X,Math.min(X+J,L)))),X+=J;return W.join("")},stringifyByChar:function(ie){for(var he="",J=0;J<ie.length;J++)he+=String.fromCharCode(ie[J]);return he},applyCanBeUsed:{uint8array:function(){try{return q.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return q.nodebuffer&&String.fromCharCode.apply(null,D.allocBuffer(1)).length===1}catch{return!1}}()}};function z(ie){var he=65536,J=V.getTypeOf(ie),W=!0;if(J==="uint8array"?W=K.applyCanBeUsed.uint8array:J==="nodebuffer"&&(W=K.applyCanBeUsed.nodebuffer),W)for(;1<he;)try{return K.stringifyByChunk(ie,J,he)}catch{he=Math.floor(he/2)}return K.stringifyByChar(ie)}function e(ie,he){for(var J=0;J<ie.length;J++)he[J]=ie[J];return he}V.applyFromCharCode=z;var ae={};ae.string={string:R,array:function(ie){return U(ie,new Array(ie.length))},arraybuffer:function(ie){return ae.string.uint8array(ie).buffer},uint8array:function(ie){return U(ie,new Uint8Array(ie.length))},nodebuffer:function(ie){return U(ie,D.allocBuffer(ie.length))}},ae.array={string:z,array:R,arraybuffer:function(ie){return new Uint8Array(ie).buffer},uint8array:function(ie){return new Uint8Array(ie)},nodebuffer:function(ie){return D.newBufferFrom(ie)}},ae.arraybuffer={string:function(ie){return z(new Uint8Array(ie))},array:function(ie){return e(new Uint8Array(ie),new Array(ie.byteLength))},arraybuffer:R,uint8array:function(ie){return new Uint8Array(ie)},nodebuffer:function(ie){return D.newBufferFrom(new Uint8Array(ie))}},ae.uint8array={string:z,array:function(ie){return e(ie,new Array(ie.length))},arraybuffer:function(ie){return ie.buffer},uint8array:R,nodebuffer:function(ie){return D.newBufferFrom(ie)}},ae.nodebuffer={string:z,array:function(ie){return e(ie,new Array(ie.length))},arraybuffer:function(ie){return ae.nodebuffer.uint8array(ie).buffer},uint8array:function(ie){return e(ie,new Uint8Array(ie.length))},nodebuffer:R},V.transformTo=function(ie,he){if(he=he||"",!ie)return he;V.checkSupport(ie);var J=V.getTypeOf(he);return ae[J][ie](he)},V.resolve=function(ie){for(var he=ie.split("/"),J=[],W=0;W<he.length;W++){var X=he[W];X==="."||X===""&&W!==0&&W!==he.length-1||(X===".."?J.pop():J.push(X))}return J.join("/")},V.getTypeOf=function(ie){return typeof ie=="string"?"string":Object.prototype.toString.call(ie)==="[object Array]"?"array":q.nodebuffer&&D.isBuffer(ie)?"nodebuffer":q.uint8array&&ie instanceof Uint8Array?"uint8array":q.arraybuffer&&ie instanceof ArrayBuffer?"arraybuffer":void 0},V.checkSupport=function(ie){if(!q[ie.toLowerCase()])throw new Error(ie+" is not supported by this platform")},V.MAX_VALUE_16BITS=65535,V.MAX_VALUE_32BITS=-1,V.pretty=function(ie){var he,J,W="";for(J=0;J<(ie||"").length;J++)W+="\\x"+((he=ie.charCodeAt(J))<16?"0":"")+he.toString(16).toUpperCase();return W},V.delay=function(ie,he,J){setImmediate(function(){ie.apply(J||null,he||[])})},V.inherits=function(ie,he){function J(){}J.prototype=he.prototype,ie.prototype=new J},V.extend=function(){var ie,he,J={};for(ie=0;ie<arguments.length;ie++)for(he in arguments[ie])Object.prototype.hasOwnProperty.call(arguments[ie],he)&&J[he]===void 0&&(J[he]=arguments[ie][he]);return J},V.prepareContent=function(ie,he,J,W,X){return B.Promise.resolve(he).then(function(L){return q.blob&&(L instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(L))!==-1)&&typeof FileReader<"u"?new B.Promise(function(Q,ce){var de=new FileReader;de.onload=function(se){Q(se.target.result)},de.onerror=function(se){ce(se.target.error)},de.readAsArrayBuffer(L)}):L}).then(function(L){var Q=V.getTypeOf(L);return Q?(Q==="arraybuffer"?L=V.transformTo("uint8array",L):Q==="string"&&(X?L=$.decode(L):J&&W!==!0&&(L=function(ce){return U(ce,q.uint8array?new Uint8Array(ce.length):new Array(ce.length))}(L))),L):B.Promise.reject(new Error("Can't read the data of '"+ie+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(M,G,V){var q=M("./reader/readerFor"),$=M("./utils"),D=M("./signature"),B=M("./zipEntry"),R=M("./support");function U(K){this.files=[],this.loadOptions=K}U.prototype={checkSignature:function(K){if(!this.reader.readAndCheckSignature(K)){this.reader.index-=4;var z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+$.pretty(z)+", expected "+$.pretty(K)+")")}},isSignature:function(K,z){var e=this.reader.index;this.reader.setIndex(K);var ae=this.reader.readString(4)===z;return this.reader.setIndex(e),ae},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var K=this.reader.readData(this.zipCommentLength),z=R.uint8array?"uint8array":"array",e=$.transformTo(z,K);this.zipComment=this.loadOptions.decodeFileName(e)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var K,z,e,ae=this.zip64EndOfCentralSize-44;0<ae;)K=this.reader.readInt(2),z=this.reader.readInt(4),e=this.reader.readData(z),this.zip64ExtensibleData[K]={id:K,length:z,value:e}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var K,z;for(K=0;K<this.files.length;K++)z=this.files[K],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(D.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var K;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(D.CENTRAL_FILE_HEADER);)(K=new B({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(K);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var K=this.reader.lastIndexOfSignature(D.CENTRAL_DIRECTORY_END);if(K<0)throw this.isSignature(0,D.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(K);var z=K;if(this.checkSignature(D.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===$.MAX_VALUE_16BITS||this.diskWithCentralDirStart===$.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===$.MAX_VALUE_16BITS||this.centralDirRecords===$.MAX_VALUE_16BITS||this.centralDirSize===$.MAX_VALUE_32BITS||this.centralDirOffset===$.MAX_VALUE_32BITS){if(this.zip64=!0,(K=this.reader.lastIndexOfSignature(D.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(K),this.checkSignature(D.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,D.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(D.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(D.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var e=this.centralDirOffset+this.centralDirSize;this.zip64&&(e+=20,e+=12+this.zip64EndOfCentralSize);var ae=z-e;if(0<ae)this.isSignature(z,D.CENTRAL_FILE_HEADER)||(this.reader.zero=ae);else if(ae<0)throw new Error("Corrupted zip: missing "+Math.abs(ae)+" bytes.")},prepareReader:function(K){this.reader=q(K)},load:function(K){this.prepareReader(K),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},G.exports=U},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(M,G,V){var q=M("./reader/readerFor"),$=M("./utils"),D=M("./compressedObject"),B=M("./crc32"),R=M("./utf8"),U=M("./compressions"),K=M("./support");function z(e,ae){this.options=e,this.loadOptions=ae}z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var ae,ie;if(e.skip(22),this.fileNameLength=e.readInt(2),ie=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(ie),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((ae=function(he){for(var J in U)if(Object.prototype.hasOwnProperty.call(U,J)&&U[J].magic===he)return U[J];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+$.pretty(this.compressionMethod)+" unknown (inner file : "+$.transformTo("string",this.fileName)+")");this.decompressed=new D(this.compressedSize,this.uncompressedSize,this.crc32,ae,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var ae=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(ae),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=q(this.extraFields[1].value);this.uncompressedSize===$.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===$.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===$.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===$.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var ae,ie,he,J=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<J;)ae=e.readInt(2),ie=e.readInt(2),he=e.readData(ie),this.extraFields[ae]={id:ae,length:ie,value:he};e.setIndex(J)},handleUTF8:function(){var e=K.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=R.utf8decode(this.fileName),this.fileCommentStr=R.utf8decode(this.fileComment);else{var ae=this.findExtraFieldUnicodePath();if(ae!==null)this.fileNameStr=ae;else{var ie=$.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(ie)}var he=this.findExtraFieldUnicodeComment();if(he!==null)this.fileCommentStr=he;else{var J=$.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(J)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var ae=q(e.value);return ae.readInt(1)!==1||B(this.fileName)!==ae.readInt(4)?null:R.utf8decode(ae.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var ae=q(e.value);return ae.readInt(1)!==1||B(this.fileComment)!==ae.readInt(4)?null:R.utf8decode(ae.readData(e.length-5))}return null}},G.exports=z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(M,G,V){function q(ae,ie,he){this.name=ae,this.dir=he.dir,this.date=he.date,this.comment=he.comment,this.unixPermissions=he.unixPermissions,this.dosPermissions=he.dosPermissions,this._data=ie,this._dataBinary=he.binary,this.options={compression:he.compression,compressionOptions:he.compressionOptions}}var $=M("./stream/StreamHelper"),D=M("./stream/DataWorker"),B=M("./utf8"),R=M("./compressedObject"),U=M("./stream/GenericWorker");q.prototype={internalStream:function(ae){var ie=null,he="string";try{if(!ae)throw new Error("No output type specified.");var J=(he=ae.toLowerCase())==="string"||he==="text";he!=="binarystring"&&he!=="text"||(he="string"),ie=this._decompressWorker();var W=!this._dataBinary;W&&!J&&(ie=ie.pipe(new B.Utf8EncodeWorker)),!W&&J&&(ie=ie.pipe(new B.Utf8DecodeWorker))}catch(X){(ie=new U("error")).error(X)}return new $(ie,he,"")},async:function(ae,ie){return this.internalStream(ae).accumulate(ie)},nodeStream:function(ae,ie){return this.internalStream(ae||"nodebuffer").toNodejsStream(ie)},_compressWorker:function(ae,ie){if(this._data instanceof R&&this._data.compression.magic===ae.magic)return this._data.getCompressedWorker();var he=this._decompressWorker();return this._dataBinary||(he=he.pipe(new B.Utf8EncodeWorker)),R.createWorkerFrom(he,ae,ie)},_decompressWorker:function(){return this._data instanceof R?this._data.getContentWorker():this._data instanceof U?this._data:new D(this._data)}};for(var K=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},e=0;e<K.length;e++)q.prototype[K[e]]=z;G.exports=q},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(M,G,V){(function(q){var $,D,B=q.MutationObserver||q.WebKitMutationObserver;if(B){var R=0,U=new B(ae),K=q.document.createTextNode("");U.observe(K,{characterData:!0}),$=function(){K.data=R=++R%2}}else if(q.setImmediate||q.MessageChannel===void 0)$="document"in q&&"onreadystatechange"in q.document.createElement("script")?function(){var ie=q.document.createElement("script");ie.onreadystatechange=function(){ae(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},q.document.documentElement.appendChild(ie)}:function(){setTimeout(ae,0)};else{var z=new q.MessageChannel;z.port1.onmessage=ae,$=function(){z.port2.postMessage(0)}}var e=[];function ae(){var ie,he;D=!0;for(var J=e.length;J;){for(he=e,e=[],ie=-1;++ie<J;)he[ie]();J=e.length}D=!1}G.exports=function(ie){e.push(ie)!==1||D||$()}}).call(this,typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(M,G,V){var q=M("immediate");function $(){}var D={},B=["REJECTED"],R=["FULFILLED"],U=["PENDING"];function K(J){if(typeof J!="function")throw new TypeError("resolver must be a function");this.state=U,this.queue=[],this.outcome=void 0,J!==$&&ie(this,J)}function z(J,W,X){this.promise=J,typeof W=="function"&&(this.onFulfilled=W,this.callFulfilled=this.otherCallFulfilled),typeof X=="function"&&(this.onRejected=X,this.callRejected=this.otherCallRejected)}function e(J,W,X){q(function(){var L;try{L=W(X)}catch(Q){return D.reject(J,Q)}L===J?D.reject(J,new TypeError("Cannot resolve promise with itself")):D.resolve(J,L)})}function ae(J){var W=J&&J.then;if(J&&(typeof J=="object"||typeof J=="function")&&typeof W=="function")return function(){W.apply(J,arguments)}}function ie(J,W){var X=!1;function L(de){X||(X=!0,D.reject(J,de))}function Q(de){X||(X=!0,D.resolve(J,de))}var ce=he(function(){W(Q,L)});ce.status==="error"&&L(ce.value)}function he(J,W){var X={};try{X.value=J(W),X.status="success"}catch(L){X.status="error",X.value=L}return X}(G.exports=K).prototype.finally=function(J){if(typeof J!="function")return this;var W=this.constructor;return this.then(function(X){return W.resolve(J()).then(function(){return X})},function(X){return W.resolve(J()).then(function(){throw X})})},K.prototype.catch=function(J){return this.then(null,J)},K.prototype.then=function(J,W){if(typeof J!="function"&&this.state===R||typeof W!="function"&&this.state===B)return this;var X=new this.constructor($);return this.state!==U?e(X,this.state===R?J:W,this.outcome):this.queue.push(new z(X,J,W)),X},z.prototype.callFulfilled=function(J){D.resolve(this.promise,J)},z.prototype.otherCallFulfilled=function(J){e(this.promise,this.onFulfilled,J)},z.prototype.callRejected=function(J){D.reject(this.promise,J)},z.prototype.otherCallRejected=function(J){e(this.promise,this.onRejected,J)},D.resolve=function(J,W){var X=he(ae,W);if(X.status==="error")return D.reject(J,X.value);var L=X.value;if(L)ie(J,L);else{J.state=R,J.outcome=W;for(var Q=-1,ce=J.queue.length;++Q<ce;)J.queue[Q].callFulfilled(W)}return J},D.reject=function(J,W){J.state=B,J.outcome=W;for(var X=-1,L=J.queue.length;++X<L;)J.queue[X].callRejected(W);return J},K.resolve=function(J){return J instanceof this?J:D.resolve(new this($),J)},K.reject=function(J){var W=new this($);return D.reject(W,J)},K.all=function(J){var W=this;if(Object.prototype.toString.call(J)!=="[object Array]")return this.reject(new TypeError("must be an array"));var X=J.length,L=!1;if(!X)return this.resolve([]);for(var Q=new Array(X),ce=0,de=-1,se=new this($);++de<X;)oe(J[de],de);return se;function oe(me,Ee){W.resolve(me).then(function(ke){Q[Ee]=ke,++ce!==X||L||(L=!0,D.resolve(se,Q))},function(ke){L||(L=!0,D.reject(se,ke))})}},K.race=function(J){var W=this;if(Object.prototype.toString.call(J)!=="[object Array]")return this.reject(new TypeError("must be an array"));var X=J.length,L=!1;if(!X)return this.resolve([]);for(var Q=-1,ce=new this($);++Q<X;)de=J[Q],W.resolve(de).then(function(se){L||(L=!0,D.resolve(ce,se))},function(se){L||(L=!0,D.reject(ce,se))});var de;return ce}},{immediate:36}],38:[function(M,G,V){var q={};(0,M("./lib/utils/common").assign)(q,M("./lib/deflate"),M("./lib/inflate"),M("./lib/zlib/constants")),G.exports=q},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(M,G,V){var q=M("./zlib/deflate"),$=M("./utils/common"),D=M("./utils/strings"),B=M("./zlib/messages"),R=M("./zlib/zstream"),U=Object.prototype.toString,K=0,z=-1,e=0,ae=8;function ie(J){if(!(this instanceof ie))return new ie(J);this.options=$.assign({level:z,method:ae,chunkSize:16384,windowBits:15,memLevel:8,strategy:e,to:""},J||{});var W=this.options;W.raw&&0<W.windowBits?W.windowBits=-W.windowBits:W.gzip&&0<W.windowBits&&W.windowBits<16&&(W.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new R,this.strm.avail_out=0;var X=q.deflateInit2(this.strm,W.level,W.method,W.windowBits,W.memLevel,W.strategy);if(X!==K)throw new Error(B[X]);if(W.header&&q.deflateSetHeader(this.strm,W.header),W.dictionary){var L;if(L=typeof W.dictionary=="string"?D.string2buf(W.dictionary):U.call(W.dictionary)==="[object ArrayBuffer]"?new Uint8Array(W.dictionary):W.dictionary,(X=q.deflateSetDictionary(this.strm,L))!==K)throw new Error(B[X]);this._dict_set=!0}}function he(J,W){var X=new ie(W);if(X.push(J,!0),X.err)throw X.msg||B[X.err];return X.result}ie.prototype.push=function(J,W){var X,L,Q=this.strm,ce=this.options.chunkSize;if(this.ended)return!1;L=W===~~W?W:W===!0?4:0,typeof J=="string"?Q.input=D.string2buf(J):U.call(J)==="[object ArrayBuffer]"?Q.input=new Uint8Array(J):Q.input=J,Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0&&(Q.output=new $.Buf8(ce),Q.next_out=0,Q.avail_out=ce),(X=q.deflate(Q,L))!==1&&X!==K)return this.onEnd(X),!(this.ended=!0);Q.avail_out!==0&&(Q.avail_in!==0||L!==4&&L!==2)||(this.options.to==="string"?this.onData(D.buf2binstring($.shrinkBuf(Q.output,Q.next_out))):this.onData($.shrinkBuf(Q.output,Q.next_out)))}while((0<Q.avail_in||Q.avail_out===0)&&X!==1);return L===4?(X=q.deflateEnd(this.strm),this.onEnd(X),this.ended=!0,X===K):L!==2||(this.onEnd(K),!(Q.avail_out=0))},ie.prototype.onData=function(J){this.chunks.push(J)},ie.prototype.onEnd=function(J){J===K&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=$.flattenChunks(this.chunks)),this.chunks=[],this.err=J,this.msg=this.strm.msg},V.Deflate=ie,V.deflate=he,V.deflateRaw=function(J,W){return(W=W||{}).raw=!0,he(J,W)},V.gzip=function(J,W){return(W=W||{}).gzip=!0,he(J,W)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(M,G,V){var q=M("./zlib/inflate"),$=M("./utils/common"),D=M("./utils/strings"),B=M("./zlib/constants"),R=M("./zlib/messages"),U=M("./zlib/zstream"),K=M("./zlib/gzheader"),z=Object.prototype.toString;function e(ie){if(!(this instanceof e))return new e(ie);this.options=$.assign({chunkSize:16384,windowBits:0,to:""},ie||{});var he=this.options;he.raw&&0<=he.windowBits&&he.windowBits<16&&(he.windowBits=-he.windowBits,he.windowBits===0&&(he.windowBits=-15)),!(0<=he.windowBits&&he.windowBits<16)||ie&&ie.windowBits||(he.windowBits+=32),15<he.windowBits&&he.windowBits<48&&!(15&he.windowBits)&&(he.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new U,this.strm.avail_out=0;var J=q.inflateInit2(this.strm,he.windowBits);if(J!==B.Z_OK)throw new Error(R[J]);this.header=new K,q.inflateGetHeader(this.strm,this.header)}function ae(ie,he){var J=new e(he);if(J.push(ie,!0),J.err)throw J.msg||R[J.err];return J.result}e.prototype.push=function(ie,he){var J,W,X,L,Q,ce,de=this.strm,se=this.options.chunkSize,oe=this.options.dictionary,me=!1;if(this.ended)return!1;W=he===~~he?he:he===!0?B.Z_FINISH:B.Z_NO_FLUSH,typeof ie=="string"?de.input=D.binstring2buf(ie):z.call(ie)==="[object ArrayBuffer]"?de.input=new Uint8Array(ie):de.input=ie,de.next_in=0,de.avail_in=de.input.length;do{if(de.avail_out===0&&(de.output=new $.Buf8(se),de.next_out=0,de.avail_out=se),(J=q.inflate(de,B.Z_NO_FLUSH))===B.Z_NEED_DICT&&oe&&(ce=typeof oe=="string"?D.string2buf(oe):z.call(oe)==="[object ArrayBuffer]"?new Uint8Array(oe):oe,J=q.inflateSetDictionary(this.strm,ce)),J===B.Z_BUF_ERROR&&me===!0&&(J=B.Z_OK,me=!1),J!==B.Z_STREAM_END&&J!==B.Z_OK)return this.onEnd(J),!(this.ended=!0);de.next_out&&(de.avail_out!==0&&J!==B.Z_STREAM_END&&(de.avail_in!==0||W!==B.Z_FINISH&&W!==B.Z_SYNC_FLUSH)||(this.options.to==="string"?(X=D.utf8border(de.output,de.next_out),L=de.next_out-X,Q=D.buf2string(de.output,X),de.next_out=L,de.avail_out=se-L,L&&$.arraySet(de.output,de.output,X,L,0),this.onData(Q)):this.onData($.shrinkBuf(de.output,de.next_out)))),de.avail_in===0&&de.avail_out===0&&(me=!0)}while((0<de.avail_in||de.avail_out===0)&&J!==B.Z_STREAM_END);return J===B.Z_STREAM_END&&(W=B.Z_FINISH),W===B.Z_FINISH?(J=q.inflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===B.Z_OK):W!==B.Z_SYNC_FLUSH||(this.onEnd(B.Z_OK),!(de.avail_out=0))},e.prototype.onData=function(ie){this.chunks.push(ie)},e.prototype.onEnd=function(ie){ie===B.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=$.flattenChunks(this.chunks)),this.chunks=[],this.err=ie,this.msg=this.strm.msg},V.Inflate=e,V.inflate=ae,V.inflateRaw=function(ie,he){return(he=he||{}).raw=!0,ae(ie,he)},V.ungzip=ae},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(M,G,V){var q=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";V.assign=function(B){for(var R=Array.prototype.slice.call(arguments,1);R.length;){var U=R.shift();if(U){if(typeof U!="object")throw new TypeError(U+"must be non-object");for(var K in U)U.hasOwnProperty(K)&&(B[K]=U[K])}}return B},V.shrinkBuf=function(B,R){return B.length===R?B:B.subarray?B.subarray(0,R):(B.length=R,B)};var $={arraySet:function(B,R,U,K,z){if(R.subarray&&B.subarray)B.set(R.subarray(U,U+K),z);else for(var e=0;e<K;e++)B[z+e]=R[U+e]},flattenChunks:function(B){var R,U,K,z,e,ae;for(R=K=0,U=B.length;R<U;R++)K+=B[R].length;for(ae=new Uint8Array(K),R=z=0,U=B.length;R<U;R++)e=B[R],ae.set(e,z),z+=e.length;return ae}},D={arraySet:function(B,R,U,K,z){for(var e=0;e<K;e++)B[z+e]=R[U+e]},flattenChunks:function(B){return[].concat.apply([],B)}};V.setTyped=function(B){B?(V.Buf8=Uint8Array,V.Buf16=Uint16Array,V.Buf32=Int32Array,V.assign(V,$)):(V.Buf8=Array,V.Buf16=Array,V.Buf32=Array,V.assign(V,D))},V.setTyped(q)},{}],42:[function(M,G,V){var q=M("./common"),$=!0,D=!0;try{String.fromCharCode.apply(null,[0])}catch{$=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{D=!1}for(var B=new q.Buf8(256),R=0;R<256;R++)B[R]=252<=R?6:248<=R?5:240<=R?4:224<=R?3:192<=R?2:1;function U(K,z){if(z<65537&&(K.subarray&&D||!K.subarray&&$))return String.fromCharCode.apply(null,q.shrinkBuf(K,z));for(var e="",ae=0;ae<z;ae++)e+=String.fromCharCode(K[ae]);return e}B[254]=B[254]=1,V.string2buf=function(K){var z,e,ae,ie,he,J=K.length,W=0;for(ie=0;ie<J;ie++)(64512&(e=K.charCodeAt(ie)))==55296&&ie+1<J&&(64512&(ae=K.charCodeAt(ie+1)))==56320&&(e=65536+(e-55296<<10)+(ae-56320),ie++),W+=e<128?1:e<2048?2:e<65536?3:4;for(z=new q.Buf8(W),ie=he=0;he<W;ie++)(64512&(e=K.charCodeAt(ie)))==55296&&ie+1<J&&(64512&(ae=K.charCodeAt(ie+1)))==56320&&(e=65536+(e-55296<<10)+(ae-56320),ie++),e<128?z[he++]=e:(e<2048?z[he++]=192|e>>>6:(e<65536?z[he++]=224|e>>>12:(z[he++]=240|e>>>18,z[he++]=128|e>>>12&63),z[he++]=128|e>>>6&63),z[he++]=128|63&e);return z},V.buf2binstring=function(K){return U(K,K.length)},V.binstring2buf=function(K){for(var z=new q.Buf8(K.length),e=0,ae=z.length;e<ae;e++)z[e]=K.charCodeAt(e);return z},V.buf2string=function(K,z){var e,ae,ie,he,J=z||K.length,W=new Array(2*J);for(e=ae=0;e<J;)if((ie=K[e++])<128)W[ae++]=ie;else if(4<(he=B[ie]))W[ae++]=65533,e+=he-1;else{for(ie&=he===2?31:he===3?15:7;1<he&&e<J;)ie=ie<<6|63&K[e++],he--;1<he?W[ae++]=65533:ie<65536?W[ae++]=ie:(ie-=65536,W[ae++]=55296|ie>>10&1023,W[ae++]=56320|1023&ie)}return U(W,ae)},V.utf8border=function(K,z){var e;for((z=z||K.length)>K.length&&(z=K.length),e=z-1;0<=e&&(192&K[e])==128;)e--;return e<0||e===0?z:e+B[K[e]]>z?e:z}},{"./common":41}],43:[function(M,G,V){G.exports=function(q,$,D,B){for(var R=65535&q|0,U=q>>>16&65535|0,K=0;D!==0;){for(D-=K=2e3<D?2e3:D;U=U+(R=R+$[B++]|0)|0,--K;);R%=65521,U%=65521}return R|U<<16|0}},{}],44:[function(M,G,V){G.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(M,G,V){var q=function(){for(var $,D=[],B=0;B<256;B++){$=B;for(var R=0;R<8;R++)$=1&$?3988292384^$>>>1:$>>>1;D[B]=$}return D}();G.exports=function($,D,B,R){var U=q,K=R+B;$^=-1;for(var z=R;z<K;z++)$=$>>>8^U[255&($^D[z])];return-1^$}},{}],46:[function(M,G,V){var q,$=M("../utils/common"),D=M("./trees"),B=M("./adler32"),R=M("./crc32"),U=M("./messages"),K=0,z=4,e=0,ae=-2,ie=-1,he=4,J=2,W=8,X=9,L=286,Q=30,ce=19,de=2*L+1,se=15,oe=3,me=258,Ee=me+oe+1,ke=42,xe=113,fe=1,ve=2,ye=3,Ce=4;function pe(Le,et){return Le.msg=U[et],et}function _e(Le){return(Le<<1)-(4<Le?9:0)}function Ge(Le){for(var et=Le.length;0<=--et;)Le[et]=0}function Ae(Le){var et=Le.state,Qe=et.pending;Qe>Le.avail_out&&(Qe=Le.avail_out),Qe!==0&&($.arraySet(Le.output,et.pending_buf,et.pending_out,Qe,Le.next_out),Le.next_out+=Qe,et.pending_out+=Qe,Le.total_out+=Qe,Le.avail_out-=Qe,et.pending-=Qe,et.pending===0&&(et.pending_out=0))}function Ne(Le,et){D._tr_flush_block(Le,0<=Le.block_start?Le.block_start:-1,Le.strstart-Le.block_start,et),Le.block_start=Le.strstart,Ae(Le.strm)}function Ze(Le,et){Le.pending_buf[Le.pending++]=et}function ze(Le,et){Le.pending_buf[Le.pending++]=et>>>8&255,Le.pending_buf[Le.pending++]=255&et}function Te(Le,et){var Qe,Ue,$e=Le.max_chain_length,Ye=Le.strstart,tt=Le.prev_length,ot=Le.nice_match,st=Le.strstart>Le.w_size-Ee?Le.strstart-(Le.w_size-Ee):0,dt=Le.window,ct=Le.w_mask,mt=Le.prev,ut=Le.strstart+me,rt=dt[Ye+tt-1],He=dt[Ye+tt];Le.prev_length>=Le.good_match&&($e>>=2),ot>Le.lookahead&&(ot=Le.lookahead);do if(dt[(Qe=et)+tt]===He&&dt[Qe+tt-1]===rt&&dt[Qe]===dt[Ye]&&dt[++Qe]===dt[Ye+1]){Ye+=2,Qe++;do;while(dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&dt[++Ye]===dt[++Qe]&&Ye<ut);if(Ue=me-(ut-Ye),Ye=ut-me,tt<Ue){if(Le.match_start=et,ot<=(tt=Ue))break;rt=dt[Ye+tt-1],He=dt[Ye+tt]}}while((et=mt[et&ct])>st&&--$e!=0);return tt<=Le.lookahead?tt:Le.lookahead}function Fe(Le){var et,Qe,Ue,$e,Ye,tt,ot,st,dt,ct,mt=Le.w_size;do{if($e=Le.window_size-Le.lookahead-Le.strstart,Le.strstart>=mt+(mt-Ee)){for($.arraySet(Le.window,Le.window,mt,mt,0),Le.match_start-=mt,Le.strstart-=mt,Le.block_start-=mt,et=Qe=Le.hash_size;Ue=Le.head[--et],Le.head[et]=mt<=Ue?Ue-mt:0,--Qe;);for(et=Qe=mt;Ue=Le.prev[--et],Le.prev[et]=mt<=Ue?Ue-mt:0,--Qe;);$e+=mt}if(Le.strm.avail_in===0)break;if(tt=Le.strm,ot=Le.window,st=Le.strstart+Le.lookahead,dt=$e,ct=void 0,ct=tt.avail_in,dt<ct&&(ct=dt),Qe=ct===0?0:(tt.avail_in-=ct,$.arraySet(ot,tt.input,tt.next_in,ct,st),tt.state.wrap===1?tt.adler=B(tt.adler,ot,ct,st):tt.state.wrap===2&&(tt.adler=R(tt.adler,ot,ct,st)),tt.next_in+=ct,tt.total_in+=ct,ct),Le.lookahead+=Qe,Le.lookahead+Le.insert>=oe)for(Ye=Le.strstart-Le.insert,Le.ins_h=Le.window[Ye],Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Ye+1])&Le.hash_mask;Le.insert&&(Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Ye+oe-1])&Le.hash_mask,Le.prev[Ye&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Ye,Ye++,Le.insert--,!(Le.lookahead+Le.insert<oe)););}while(Le.lookahead<Ee&&Le.strm.avail_in!==0)}function Pe(Le,et){for(var Qe,Ue;;){if(Le.lookahead<Ee){if(Fe(Le),Le.lookahead<Ee&&et===K)return fe;if(Le.lookahead===0)break}if(Qe=0,Le.lookahead>=oe&&(Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Le.strstart+oe-1])&Le.hash_mask,Qe=Le.prev[Le.strstart&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Le.strstart),Qe!==0&&Le.strstart-Qe<=Le.w_size-Ee&&(Le.match_length=Te(Le,Qe)),Le.match_length>=oe)if(Ue=D._tr_tally(Le,Le.strstart-Le.match_start,Le.match_length-oe),Le.lookahead-=Le.match_length,Le.match_length<=Le.max_lazy_match&&Le.lookahead>=oe){for(Le.match_length--;Le.strstart++,Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Le.strstart+oe-1])&Le.hash_mask,Qe=Le.prev[Le.strstart&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Le.strstart,--Le.match_length!=0;);Le.strstart++}else Le.strstart+=Le.match_length,Le.match_length=0,Le.ins_h=Le.window[Le.strstart],Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Le.strstart+1])&Le.hash_mask;else Ue=D._tr_tally(Le,0,Le.window[Le.strstart]),Le.lookahead--,Le.strstart++;if(Ue&&(Ne(Le,!1),Le.strm.avail_out===0))return fe}return Le.insert=Le.strstart<oe-1?Le.strstart:oe-1,et===z?(Ne(Le,!0),Le.strm.avail_out===0?ye:Ce):Le.last_lit&&(Ne(Le,!1),Le.strm.avail_out===0)?fe:ve}function we(Le,et){for(var Qe,Ue,$e;;){if(Le.lookahead<Ee){if(Fe(Le),Le.lookahead<Ee&&et===K)return fe;if(Le.lookahead===0)break}if(Qe=0,Le.lookahead>=oe&&(Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Le.strstart+oe-1])&Le.hash_mask,Qe=Le.prev[Le.strstart&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Le.strstart),Le.prev_length=Le.match_length,Le.prev_match=Le.match_start,Le.match_length=oe-1,Qe!==0&&Le.prev_length<Le.max_lazy_match&&Le.strstart-Qe<=Le.w_size-Ee&&(Le.match_length=Te(Le,Qe),Le.match_length<=5&&(Le.strategy===1||Le.match_length===oe&&4096<Le.strstart-Le.match_start)&&(Le.match_length=oe-1)),Le.prev_length>=oe&&Le.match_length<=Le.prev_length){for($e=Le.strstart+Le.lookahead-oe,Ue=D._tr_tally(Le,Le.strstart-1-Le.prev_match,Le.prev_length-oe),Le.lookahead-=Le.prev_length-1,Le.prev_length-=2;++Le.strstart<=$e&&(Le.ins_h=(Le.ins_h<<Le.hash_shift^Le.window[Le.strstart+oe-1])&Le.hash_mask,Qe=Le.prev[Le.strstart&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Le.strstart),--Le.prev_length!=0;);if(Le.match_available=0,Le.match_length=oe-1,Le.strstart++,Ue&&(Ne(Le,!1),Le.strm.avail_out===0))return fe}else if(Le.match_available){if((Ue=D._tr_tally(Le,0,Le.window[Le.strstart-1]))&&Ne(Le,!1),Le.strstart++,Le.lookahead--,Le.strm.avail_out===0)return fe}else Le.match_available=1,Le.strstart++,Le.lookahead--}return Le.match_available&&(Ue=D._tr_tally(Le,0,Le.window[Le.strstart-1]),Le.match_available=0),Le.insert=Le.strstart<oe-1?Le.strstart:oe-1,et===z?(Ne(Le,!0),Le.strm.avail_out===0?ye:Ce):Le.last_lit&&(Ne(Le,!1),Le.strm.avail_out===0)?fe:ve}function Ie(Le,et,Qe,Ue,$e){this.good_length=Le,this.max_lazy=et,this.nice_length=Qe,this.max_chain=Ue,this.func=$e}function Be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=W,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new $.Buf16(2*de),this.dyn_dtree=new $.Buf16(2*(2*Q+1)),this.bl_tree=new $.Buf16(2*(2*ce+1)),Ge(this.dyn_ltree),Ge(this.dyn_dtree),Ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new $.Buf16(se+1),this.heap=new $.Buf16(2*L+1),Ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new $.Buf16(2*L+1),Ge(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ke(Le){var et;return Le&&Le.state?(Le.total_in=Le.total_out=0,Le.data_type=J,(et=Le.state).pending=0,et.pending_out=0,et.wrap<0&&(et.wrap=-et.wrap),et.status=et.wrap?ke:xe,Le.adler=et.wrap===2?0:1,et.last_flush=K,D._tr_init(et),e):pe(Le,ae)}function Ve(Le){var et=Ke(Le);return et===e&&function(Qe){Qe.window_size=2*Qe.w_size,Ge(Qe.head),Qe.max_lazy_match=q[Qe.level].max_lazy,Qe.good_match=q[Qe.level].good_length,Qe.nice_match=q[Qe.level].nice_length,Qe.max_chain_length=q[Qe.level].max_chain,Qe.strstart=0,Qe.block_start=0,Qe.lookahead=0,Qe.insert=0,Qe.match_length=Qe.prev_length=oe-1,Qe.match_available=0,Qe.ins_h=0}(Le.state),et}function je(Le,et,Qe,Ue,$e,Ye){if(!Le)return ae;var tt=1;if(et===ie&&(et=6),Ue<0?(tt=0,Ue=-Ue):15<Ue&&(tt=2,Ue-=16),$e<1||X<$e||Qe!==W||Ue<8||15<Ue||et<0||9<et||Ye<0||he<Ye)return pe(Le,ae);Ue===8&&(Ue=9);var ot=new Be;return(Le.state=ot).strm=Le,ot.wrap=tt,ot.gzhead=null,ot.w_bits=Ue,ot.w_size=1<<ot.w_bits,ot.w_mask=ot.w_size-1,ot.hash_bits=$e+7,ot.hash_size=1<<ot.hash_bits,ot.hash_mask=ot.hash_size-1,ot.hash_shift=~~((ot.hash_bits+oe-1)/oe),ot.window=new $.Buf8(2*ot.w_size),ot.head=new $.Buf16(ot.hash_size),ot.prev=new $.Buf16(ot.w_size),ot.lit_bufsize=1<<$e+6,ot.pending_buf_size=4*ot.lit_bufsize,ot.pending_buf=new $.Buf8(ot.pending_buf_size),ot.d_buf=1*ot.lit_bufsize,ot.l_buf=3*ot.lit_bufsize,ot.level=et,ot.strategy=Ye,ot.method=Qe,Ve(Le)}q=[new Ie(0,0,0,0,function(Le,et){var Qe=65535;for(Qe>Le.pending_buf_size-5&&(Qe=Le.pending_buf_size-5);;){if(Le.lookahead<=1){if(Fe(Le),Le.lookahead===0&&et===K)return fe;if(Le.lookahead===0)break}Le.strstart+=Le.lookahead,Le.lookahead=0;var Ue=Le.block_start+Qe;if((Le.strstart===0||Le.strstart>=Ue)&&(Le.lookahead=Le.strstart-Ue,Le.strstart=Ue,Ne(Le,!1),Le.strm.avail_out===0)||Le.strstart-Le.block_start>=Le.w_size-Ee&&(Ne(Le,!1),Le.strm.avail_out===0))return fe}return Le.insert=0,et===z?(Ne(Le,!0),Le.strm.avail_out===0?ye:Ce):(Le.strstart>Le.block_start&&(Ne(Le,!1),Le.strm.avail_out),fe)}),new Ie(4,4,8,4,Pe),new Ie(4,5,16,8,Pe),new Ie(4,6,32,32,Pe),new Ie(4,4,16,16,we),new Ie(8,16,32,32,we),new Ie(8,16,128,128,we),new Ie(8,32,128,256,we),new Ie(32,128,258,1024,we),new Ie(32,258,258,4096,we)],V.deflateInit=function(Le,et){return je(Le,et,W,15,8,0)},V.deflateInit2=je,V.deflateReset=Ve,V.deflateResetKeep=Ke,V.deflateSetHeader=function(Le,et){return Le&&Le.state?Le.state.wrap!==2?ae:(Le.state.gzhead=et,e):ae},V.deflate=function(Le,et){var Qe,Ue,$e,Ye;if(!Le||!Le.state||5<et||et<0)return Le?pe(Le,ae):ae;if(Ue=Le.state,!Le.output||!Le.input&&Le.avail_in!==0||Ue.status===666&&et!==z)return pe(Le,Le.avail_out===0?-5:ae);if(Ue.strm=Le,Qe=Ue.last_flush,Ue.last_flush=et,Ue.status===ke)if(Ue.wrap===2)Le.adler=0,Ze(Ue,31),Ze(Ue,139),Ze(Ue,8),Ue.gzhead?(Ze(Ue,(Ue.gzhead.text?1:0)+(Ue.gzhead.hcrc?2:0)+(Ue.gzhead.extra?4:0)+(Ue.gzhead.name?8:0)+(Ue.gzhead.comment?16:0)),Ze(Ue,255&Ue.gzhead.time),Ze(Ue,Ue.gzhead.time>>8&255),Ze(Ue,Ue.gzhead.time>>16&255),Ze(Ue,Ue.gzhead.time>>24&255),Ze(Ue,Ue.level===9?2:2<=Ue.strategy||Ue.level<2?4:0),Ze(Ue,255&Ue.gzhead.os),Ue.gzhead.extra&&Ue.gzhead.extra.length&&(Ze(Ue,255&Ue.gzhead.extra.length),Ze(Ue,Ue.gzhead.extra.length>>8&255)),Ue.gzhead.hcrc&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending,0)),Ue.gzindex=0,Ue.status=69):(Ze(Ue,0),Ze(Ue,0),Ze(Ue,0),Ze(Ue,0),Ze(Ue,0),Ze(Ue,Ue.level===9?2:2<=Ue.strategy||Ue.level<2?4:0),Ze(Ue,3),Ue.status=xe);else{var tt=W+(Ue.w_bits-8<<4)<<8;tt|=(2<=Ue.strategy||Ue.level<2?0:Ue.level<6?1:Ue.level===6?2:3)<<6,Ue.strstart!==0&&(tt|=32),tt+=31-tt%31,Ue.status=xe,ze(Ue,tt),Ue.strstart!==0&&(ze(Ue,Le.adler>>>16),ze(Ue,65535&Le.adler)),Le.adler=1}if(Ue.status===69)if(Ue.gzhead.extra){for($e=Ue.pending;Ue.gzindex<(65535&Ue.gzhead.extra.length)&&(Ue.pending!==Ue.pending_buf_size||(Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ae(Le),$e=Ue.pending,Ue.pending!==Ue.pending_buf_size));)Ze(Ue,255&Ue.gzhead.extra[Ue.gzindex]),Ue.gzindex++;Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ue.gzindex===Ue.gzhead.extra.length&&(Ue.gzindex=0,Ue.status=73)}else Ue.status=73;if(Ue.status===73)if(Ue.gzhead.name){$e=Ue.pending;do{if(Ue.pending===Ue.pending_buf_size&&(Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ae(Le),$e=Ue.pending,Ue.pending===Ue.pending_buf_size)){Ye=1;break}Ye=Ue.gzindex<Ue.gzhead.name.length?255&Ue.gzhead.name.charCodeAt(Ue.gzindex++):0,Ze(Ue,Ye)}while(Ye!==0);Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ye===0&&(Ue.gzindex=0,Ue.status=91)}else Ue.status=91;if(Ue.status===91)if(Ue.gzhead.comment){$e=Ue.pending;do{if(Ue.pending===Ue.pending_buf_size&&(Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ae(Le),$e=Ue.pending,Ue.pending===Ue.pending_buf_size)){Ye=1;break}Ye=Ue.gzindex<Ue.gzhead.comment.length?255&Ue.gzhead.comment.charCodeAt(Ue.gzindex++):0,Ze(Ue,Ye)}while(Ye!==0);Ue.gzhead.hcrc&&Ue.pending>$e&&(Le.adler=R(Le.adler,Ue.pending_buf,Ue.pending-$e,$e)),Ye===0&&(Ue.status=103)}else Ue.status=103;if(Ue.status===103&&(Ue.gzhead.hcrc?(Ue.pending+2>Ue.pending_buf_size&&Ae(Le),Ue.pending+2<=Ue.pending_buf_size&&(Ze(Ue,255&Le.adler),Ze(Ue,Le.adler>>8&255),Le.adler=0,Ue.status=xe)):Ue.status=xe),Ue.pending!==0){if(Ae(Le),Le.avail_out===0)return Ue.last_flush=-1,e}else if(Le.avail_in===0&&_e(et)<=_e(Qe)&&et!==z)return pe(Le,-5);if(Ue.status===666&&Le.avail_in!==0)return pe(Le,-5);if(Le.avail_in!==0||Ue.lookahead!==0||et!==K&&Ue.status!==666){var ot=Ue.strategy===2?function(st,dt){for(var ct;;){if(st.lookahead===0&&(Fe(st),st.lookahead===0)){if(dt===K)return fe;break}if(st.match_length=0,ct=D._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++,ct&&(Ne(st,!1),st.strm.avail_out===0))return fe}return st.insert=0,dt===z?(Ne(st,!0),st.strm.avail_out===0?ye:Ce):st.last_lit&&(Ne(st,!1),st.strm.avail_out===0)?fe:ve}(Ue,et):Ue.strategy===3?function(st,dt){for(var ct,mt,ut,rt,He=st.window;;){if(st.lookahead<=me){if(Fe(st),st.lookahead<=me&&dt===K)return fe;if(st.lookahead===0)break}if(st.match_length=0,st.lookahead>=oe&&0<st.strstart&&(mt=He[ut=st.strstart-1])===He[++ut]&&mt===He[++ut]&&mt===He[++ut]){rt=st.strstart+me;do;while(mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&mt===He[++ut]&&ut<rt);st.match_length=me-(rt-ut),st.match_length>st.lookahead&&(st.match_length=st.lookahead)}if(st.match_length>=oe?(ct=D._tr_tally(st,1,st.match_length-oe),st.lookahead-=st.match_length,st.strstart+=st.match_length,st.match_length=0):(ct=D._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++),ct&&(Ne(st,!1),st.strm.avail_out===0))return fe}return st.insert=0,dt===z?(Ne(st,!0),st.strm.avail_out===0?ye:Ce):st.last_lit&&(Ne(st,!1),st.strm.avail_out===0)?fe:ve}(Ue,et):q[Ue.level].func(Ue,et);if(ot!==ye&&ot!==Ce||(Ue.status=666),ot===fe||ot===ye)return Le.avail_out===0&&(Ue.last_flush=-1),e;if(ot===ve&&(et===1?D._tr_align(Ue):et!==5&&(D._tr_stored_block(Ue,0,0,!1),et===3&&(Ge(Ue.head),Ue.lookahead===0&&(Ue.strstart=0,Ue.block_start=0,Ue.insert=0))),Ae(Le),Le.avail_out===0))return Ue.last_flush=-1,e}return et!==z?e:Ue.wrap<=0?1:(Ue.wrap===2?(Ze(Ue,255&Le.adler),Ze(Ue,Le.adler>>8&255),Ze(Ue,Le.adler>>16&255),Ze(Ue,Le.adler>>24&255),Ze(Ue,255&Le.total_in),Ze(Ue,Le.total_in>>8&255),Ze(Ue,Le.total_in>>16&255),Ze(Ue,Le.total_in>>24&255)):(ze(Ue,Le.adler>>>16),ze(Ue,65535&Le.adler)),Ae(Le),0<Ue.wrap&&(Ue.wrap=-Ue.wrap),Ue.pending!==0?e:1)},V.deflateEnd=function(Le){var et;return Le&&Le.state?(et=Le.state.status)!==ke&&et!==69&&et!==73&&et!==91&&et!==103&&et!==xe&&et!==666?pe(Le,ae):(Le.state=null,et===xe?pe(Le,-3):e):ae},V.deflateSetDictionary=function(Le,et){var Qe,Ue,$e,Ye,tt,ot,st,dt,ct=et.length;if(!Le||!Le.state||(Ye=(Qe=Le.state).wrap)===2||Ye===1&&Qe.status!==ke||Qe.lookahead)return ae;for(Ye===1&&(Le.adler=B(Le.adler,et,ct,0)),Qe.wrap=0,ct>=Qe.w_size&&(Ye===0&&(Ge(Qe.head),Qe.strstart=0,Qe.block_start=0,Qe.insert=0),dt=new $.Buf8(Qe.w_size),$.arraySet(dt,et,ct-Qe.w_size,Qe.w_size,0),et=dt,ct=Qe.w_size),tt=Le.avail_in,ot=Le.next_in,st=Le.input,Le.avail_in=ct,Le.next_in=0,Le.input=et,Fe(Qe);Qe.lookahead>=oe;){for(Ue=Qe.strstart,$e=Qe.lookahead-(oe-1);Qe.ins_h=(Qe.ins_h<<Qe.hash_shift^Qe.window[Ue+oe-1])&Qe.hash_mask,Qe.prev[Ue&Qe.w_mask]=Qe.head[Qe.ins_h],Qe.head[Qe.ins_h]=Ue,Ue++,--$e;);Qe.strstart=Ue,Qe.lookahead=oe-1,Fe(Qe)}return Qe.strstart+=Qe.lookahead,Qe.block_start=Qe.strstart,Qe.insert=Qe.lookahead,Qe.lookahead=0,Qe.match_length=Qe.prev_length=oe-1,Qe.match_available=0,Le.next_in=ot,Le.input=st,Le.avail_in=tt,Qe.wrap=Ye,e},V.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(M,G,V){G.exports=function(){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}},{}],48:[function(M,G,V){G.exports=function(q,$){var D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce,de,se,oe,me,Ee,ke,xe,fe,ve;D=q.state,B=q.next_in,fe=q.input,R=B+(q.avail_in-5),U=q.next_out,ve=q.output,K=U-($-q.avail_out),z=U+(q.avail_out-257),e=D.dmax,ae=D.wsize,ie=D.whave,he=D.wnext,J=D.window,W=D.hold,X=D.bits,L=D.lencode,Q=D.distcode,ce=(1<<D.lenbits)-1,de=(1<<D.distbits)-1;e:do{X<15&&(W+=fe[B++]<<X,X+=8,W+=fe[B++]<<X,X+=8),se=L[W&ce];t:for(;;){if(W>>>=oe=se>>>24,X-=oe,(oe=se>>>16&255)===0)ve[U++]=65535&se;else{if(!(16&oe)){if(!(64&oe)){se=L[(65535&se)+(W&(1<<oe)-1)];continue t}if(32&oe){D.mode=12;break e}q.msg="invalid literal/length code",D.mode=30;break e}me=65535&se,(oe&=15)&&(X<oe&&(W+=fe[B++]<<X,X+=8),me+=W&(1<<oe)-1,W>>>=oe,X-=oe),X<15&&(W+=fe[B++]<<X,X+=8,W+=fe[B++]<<X,X+=8),se=Q[W&de];r:for(;;){if(W>>>=oe=se>>>24,X-=oe,!(16&(oe=se>>>16&255))){if(!(64&oe)){se=Q[(65535&se)+(W&(1<<oe)-1)];continue r}q.msg="invalid distance code",D.mode=30;break e}if(Ee=65535&se,X<(oe&=15)&&(W+=fe[B++]<<X,(X+=8)<oe&&(W+=fe[B++]<<X,X+=8)),e<(Ee+=W&(1<<oe)-1)){q.msg="invalid distance too far back",D.mode=30;break e}if(W>>>=oe,X-=oe,(oe=U-K)<Ee){if(ie<(oe=Ee-oe)&&D.sane){q.msg="invalid distance too far back",D.mode=30;break e}if(xe=J,(ke=0)===he){if(ke+=ae-oe,oe<me){for(me-=oe;ve[U++]=J[ke++],--oe;);ke=U-Ee,xe=ve}}else if(he<oe){if(ke+=ae+he-oe,(oe-=he)<me){for(me-=oe;ve[U++]=J[ke++],--oe;);if(ke=0,he<me){for(me-=oe=he;ve[U++]=J[ke++],--oe;);ke=U-Ee,xe=ve}}}else if(ke+=he-oe,oe<me){for(me-=oe;ve[U++]=J[ke++],--oe;);ke=U-Ee,xe=ve}for(;2<me;)ve[U++]=xe[ke++],ve[U++]=xe[ke++],ve[U++]=xe[ke++],me-=3;me&&(ve[U++]=xe[ke++],1<me&&(ve[U++]=xe[ke++]))}else{for(ke=U-Ee;ve[U++]=ve[ke++],ve[U++]=ve[ke++],ve[U++]=ve[ke++],2<(me-=3););me&&(ve[U++]=ve[ke++],1<me&&(ve[U++]=ve[ke++]))}break}}break}}while(B<R&&U<z);B-=me=X>>3,W&=(1<<(X-=me<<3))-1,q.next_in=B,q.next_out=U,q.avail_in=B<R?R-B+5:5-(B-R),q.avail_out=U<z?z-U+257:257-(U-z),D.hold=W,D.bits=X}},{}],49:[function(M,G,V){var q=M("../utils/common"),$=M("./adler32"),D=M("./crc32"),B=M("./inffast"),R=M("./inftrees"),U=1,K=2,z=0,e=-2,ae=1,ie=852,he=592;function J(ke){return(ke>>>24&255)+(ke>>>8&65280)+((65280&ke)<<8)+((255&ke)<<24)}function W(){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 q.Buf16(320),this.work=new q.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function X(ke){var xe;return ke&&ke.state?(xe=ke.state,ke.total_in=ke.total_out=xe.total=0,ke.msg="",xe.wrap&&(ke.adler=1&xe.wrap),xe.mode=ae,xe.last=0,xe.havedict=0,xe.dmax=32768,xe.head=null,xe.hold=0,xe.bits=0,xe.lencode=xe.lendyn=new q.Buf32(ie),xe.distcode=xe.distdyn=new q.Buf32(he),xe.sane=1,xe.back=-1,z):e}function L(ke){var xe;return ke&&ke.state?((xe=ke.state).wsize=0,xe.whave=0,xe.wnext=0,X(ke)):e}function Q(ke,xe){var fe,ve;return ke&&ke.state?(ve=ke.state,xe<0?(fe=0,xe=-xe):(fe=1+(xe>>4),xe<48&&(xe&=15)),xe&&(xe<8||15<xe)?e:(ve.window!==null&&ve.wbits!==xe&&(ve.window=null),ve.wrap=fe,ve.wbits=xe,L(ke))):e}function ce(ke,xe){var fe,ve;return ke?(ve=new W,(ke.state=ve).window=null,(fe=Q(ke,xe))!==z&&(ke.state=null),fe):e}var de,se,oe=!0;function me(ke){if(oe){var xe;for(de=new q.Buf32(512),se=new q.Buf32(32),xe=0;xe<144;)ke.lens[xe++]=8;for(;xe<256;)ke.lens[xe++]=9;for(;xe<280;)ke.lens[xe++]=7;for(;xe<288;)ke.lens[xe++]=8;for(R(U,ke.lens,0,288,de,0,ke.work,{bits:9}),xe=0;xe<32;)ke.lens[xe++]=5;R(K,ke.lens,0,32,se,0,ke.work,{bits:5}),oe=!1}ke.lencode=de,ke.lenbits=9,ke.distcode=se,ke.distbits=5}function Ee(ke,xe,fe,ve){var ye,Ce=ke.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new q.Buf8(Ce.wsize)),ve>=Ce.wsize?(q.arraySet(Ce.window,xe,fe-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(ve<(ye=Ce.wsize-Ce.wnext)&&(ye=ve),q.arraySet(Ce.window,xe,fe-ve,ye,Ce.wnext),(ve-=ye)?(q.arraySet(Ce.window,xe,fe-ve,ve,0),Ce.wnext=ve,Ce.whave=Ce.wsize):(Ce.wnext+=ye,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=ye))),0}V.inflateReset=L,V.inflateReset2=Q,V.inflateResetKeep=X,V.inflateInit=function(ke){return ce(ke,15)},V.inflateInit2=ce,V.inflate=function(ke,xe){var fe,ve,ye,Ce,pe,_e,Ge,Ae,Ne,Ze,ze,Te,Fe,Pe,we,Ie,Be,Ke,Ve,je,Le,et,Qe,Ue,$e=0,Ye=new q.Buf8(4),tt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ke||!ke.state||!ke.output||!ke.input&&ke.avail_in!==0)return e;(fe=ke.state).mode===12&&(fe.mode=13),pe=ke.next_out,ye=ke.output,Ge=ke.avail_out,Ce=ke.next_in,ve=ke.input,_e=ke.avail_in,Ae=fe.hold,Ne=fe.bits,Ze=_e,ze=Ge,et=z;e:for(;;)switch(fe.mode){case ae:if(fe.wrap===0){fe.mode=13;break}for(;Ne<16;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(2&fe.wrap&&Ae===35615){Ye[fe.check=0]=255&Ae,Ye[1]=Ae>>>8&255,fe.check=D(fe.check,Ye,2,0),Ne=Ae=0,fe.mode=2;break}if(fe.flags=0,fe.head&&(fe.head.done=!1),!(1&fe.wrap)||(((255&Ae)<<8)+(Ae>>8))%31){ke.msg="incorrect header check",fe.mode=30;break}if((15&Ae)!=8){ke.msg="unknown compression method",fe.mode=30;break}if(Ne-=4,Le=8+(15&(Ae>>>=4)),fe.wbits===0)fe.wbits=Le;else if(Le>fe.wbits){ke.msg="invalid window size",fe.mode=30;break}fe.dmax=1<<Le,ke.adler=fe.check=1,fe.mode=512&Ae?10:12,Ne=Ae=0;break;case 2:for(;Ne<16;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(fe.flags=Ae,(255&fe.flags)!=8){ke.msg="unknown compression method",fe.mode=30;break}if(57344&fe.flags){ke.msg="unknown header flags set",fe.mode=30;break}fe.head&&(fe.head.text=Ae>>8&1),512&fe.flags&&(Ye[0]=255&Ae,Ye[1]=Ae>>>8&255,fe.check=D(fe.check,Ye,2,0)),Ne=Ae=0,fe.mode=3;case 3:for(;Ne<32;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.head&&(fe.head.time=Ae),512&fe.flags&&(Ye[0]=255&Ae,Ye[1]=Ae>>>8&255,Ye[2]=Ae>>>16&255,Ye[3]=Ae>>>24&255,fe.check=D(fe.check,Ye,4,0)),Ne=Ae=0,fe.mode=4;case 4:for(;Ne<16;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.head&&(fe.head.xflags=255&Ae,fe.head.os=Ae>>8),512&fe.flags&&(Ye[0]=255&Ae,Ye[1]=Ae>>>8&255,fe.check=D(fe.check,Ye,2,0)),Ne=Ae=0,fe.mode=5;case 5:if(1024&fe.flags){for(;Ne<16;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.length=Ae,fe.head&&(fe.head.extra_len=Ae),512&fe.flags&&(Ye[0]=255&Ae,Ye[1]=Ae>>>8&255,fe.check=D(fe.check,Ye,2,0)),Ne=Ae=0}else fe.head&&(fe.head.extra=null);fe.mode=6;case 6:if(1024&fe.flags&&(_e<(Te=fe.length)&&(Te=_e),Te&&(fe.head&&(Le=fe.head.extra_len-fe.length,fe.head.extra||(fe.head.extra=new Array(fe.head.extra_len)),q.arraySet(fe.head.extra,ve,Ce,Te,Le)),512&fe.flags&&(fe.check=D(fe.check,ve,Te,Ce)),_e-=Te,Ce+=Te,fe.length-=Te),fe.length))break e;fe.length=0,fe.mode=7;case 7:if(2048&fe.flags){if(_e===0)break e;for(Te=0;Le=ve[Ce+Te++],fe.head&&Le&&fe.length<65536&&(fe.head.name+=String.fromCharCode(Le)),Le&&Te<_e;);if(512&fe.flags&&(fe.check=D(fe.check,ve,Te,Ce)),_e-=Te,Ce+=Te,Le)break e}else fe.head&&(fe.head.name=null);fe.length=0,fe.mode=8;case 8:if(4096&fe.flags){if(_e===0)break e;for(Te=0;Le=ve[Ce+Te++],fe.head&&Le&&fe.length<65536&&(fe.head.comment+=String.fromCharCode(Le)),Le&&Te<_e;);if(512&fe.flags&&(fe.check=D(fe.check,ve,Te,Ce)),_e-=Te,Ce+=Te,Le)break e}else fe.head&&(fe.head.comment=null);fe.mode=9;case 9:if(512&fe.flags){for(;Ne<16;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(Ae!==(65535&fe.check)){ke.msg="header crc mismatch",fe.mode=30;break}Ne=Ae=0}fe.head&&(fe.head.hcrc=fe.flags>>9&1,fe.head.done=!0),ke.adler=fe.check=0,fe.mode=12;break;case 10:for(;Ne<32;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}ke.adler=fe.check=J(Ae),Ne=Ae=0,fe.mode=11;case 11:if(fe.havedict===0)return ke.next_out=pe,ke.avail_out=Ge,ke.next_in=Ce,ke.avail_in=_e,fe.hold=Ae,fe.bits=Ne,2;ke.adler=fe.check=1,fe.mode=12;case 12:if(xe===5||xe===6)break e;case 13:if(fe.last){Ae>>>=7&Ne,Ne-=7&Ne,fe.mode=27;break}for(;Ne<3;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}switch(fe.last=1&Ae,Ne-=1,3&(Ae>>>=1)){case 0:fe.mode=14;break;case 1:if(me(fe),fe.mode=20,xe!==6)break;Ae>>>=2,Ne-=2;break e;case 2:fe.mode=17;break;case 3:ke.msg="invalid block type",fe.mode=30}Ae>>>=2,Ne-=2;break;case 14:for(Ae>>>=7&Ne,Ne-=7&Ne;Ne<32;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if((65535&Ae)!=(Ae>>>16^65535)){ke.msg="invalid stored block lengths",fe.mode=30;break}if(fe.length=65535&Ae,Ne=Ae=0,fe.mode=15,xe===6)break e;case 15:fe.mode=16;case 16:if(Te=fe.length){if(_e<Te&&(Te=_e),Ge<Te&&(Te=Ge),Te===0)break e;q.arraySet(ye,ve,Ce,Te,pe),_e-=Te,Ce+=Te,Ge-=Te,pe+=Te,fe.length-=Te;break}fe.mode=12;break;case 17:for(;Ne<14;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(fe.nlen=257+(31&Ae),Ae>>>=5,Ne-=5,fe.ndist=1+(31&Ae),Ae>>>=5,Ne-=5,fe.ncode=4+(15&Ae),Ae>>>=4,Ne-=4,286<fe.nlen||30<fe.ndist){ke.msg="too many length or distance symbols",fe.mode=30;break}fe.have=0,fe.mode=18;case 18:for(;fe.have<fe.ncode;){for(;Ne<3;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.lens[tt[fe.have++]]=7&Ae,Ae>>>=3,Ne-=3}for(;fe.have<19;)fe.lens[tt[fe.have++]]=0;if(fe.lencode=fe.lendyn,fe.lenbits=7,Qe={bits:fe.lenbits},et=R(0,fe.lens,0,19,fe.lencode,0,fe.work,Qe),fe.lenbits=Qe.bits,et){ke.msg="invalid code lengths set",fe.mode=30;break}fe.have=0,fe.mode=19;case 19:for(;fe.have<fe.nlen+fe.ndist;){for(;Ie=($e=fe.lencode[Ae&(1<<fe.lenbits)-1])>>>16&255,Be=65535&$e,!((we=$e>>>24)<=Ne);){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(Be<16)Ae>>>=we,Ne-=we,fe.lens[fe.have++]=Be;else{if(Be===16){for(Ue=we+2;Ne<Ue;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(Ae>>>=we,Ne-=we,fe.have===0){ke.msg="invalid bit length repeat",fe.mode=30;break}Le=fe.lens[fe.have-1],Te=3+(3&Ae),Ae>>>=2,Ne-=2}else if(Be===17){for(Ue=we+3;Ne<Ue;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}Ne-=we,Le=0,Te=3+(7&(Ae>>>=we)),Ae>>>=3,Ne-=3}else{for(Ue=we+7;Ne<Ue;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}Ne-=we,Le=0,Te=11+(127&(Ae>>>=we)),Ae>>>=7,Ne-=7}if(fe.have+Te>fe.nlen+fe.ndist){ke.msg="invalid bit length repeat",fe.mode=30;break}for(;Te--;)fe.lens[fe.have++]=Le}}if(fe.mode===30)break;if(fe.lens[256]===0){ke.msg="invalid code -- missing end-of-block",fe.mode=30;break}if(fe.lenbits=9,Qe={bits:fe.lenbits},et=R(U,fe.lens,0,fe.nlen,fe.lencode,0,fe.work,Qe),fe.lenbits=Qe.bits,et){ke.msg="invalid literal/lengths set",fe.mode=30;break}if(fe.distbits=6,fe.distcode=fe.distdyn,Qe={bits:fe.distbits},et=R(K,fe.lens,fe.nlen,fe.ndist,fe.distcode,0,fe.work,Qe),fe.distbits=Qe.bits,et){ke.msg="invalid distances set",fe.mode=30;break}if(fe.mode=20,xe===6)break e;case 20:fe.mode=21;case 21:if(6<=_e&&258<=Ge){ke.next_out=pe,ke.avail_out=Ge,ke.next_in=Ce,ke.avail_in=_e,fe.hold=Ae,fe.bits=Ne,B(ke,ze),pe=ke.next_out,ye=ke.output,Ge=ke.avail_out,Ce=ke.next_in,ve=ke.input,_e=ke.avail_in,Ae=fe.hold,Ne=fe.bits,fe.mode===12&&(fe.back=-1);break}for(fe.back=0;Ie=($e=fe.lencode[Ae&(1<<fe.lenbits)-1])>>>16&255,Be=65535&$e,!((we=$e>>>24)<=Ne);){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(Ie&&!(240&Ie)){for(Ke=we,Ve=Ie,je=Be;Ie=($e=fe.lencode[je+((Ae&(1<<Ke+Ve)-1)>>Ke)])>>>16&255,Be=65535&$e,!(Ke+(we=$e>>>24)<=Ne);){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}Ae>>>=Ke,Ne-=Ke,fe.back+=Ke}if(Ae>>>=we,Ne-=we,fe.back+=we,fe.length=Be,Ie===0){fe.mode=26;break}if(32&Ie){fe.back=-1,fe.mode=12;break}if(64&Ie){ke.msg="invalid literal/length code",fe.mode=30;break}fe.extra=15&Ie,fe.mode=22;case 22:if(fe.extra){for(Ue=fe.extra;Ne<Ue;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.length+=Ae&(1<<fe.extra)-1,Ae>>>=fe.extra,Ne-=fe.extra,fe.back+=fe.extra}fe.was=fe.length,fe.mode=23;case 23:for(;Ie=($e=fe.distcode[Ae&(1<<fe.distbits)-1])>>>16&255,Be=65535&$e,!((we=$e>>>24)<=Ne);){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(!(240&Ie)){for(Ke=we,Ve=Ie,je=Be;Ie=($e=fe.distcode[je+((Ae&(1<<Ke+Ve)-1)>>Ke)])>>>16&255,Be=65535&$e,!(Ke+(we=$e>>>24)<=Ne);){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}Ae>>>=Ke,Ne-=Ke,fe.back+=Ke}if(Ae>>>=we,Ne-=we,fe.back+=we,64&Ie){ke.msg="invalid distance code",fe.mode=30;break}fe.offset=Be,fe.extra=15&Ie,fe.mode=24;case 24:if(fe.extra){for(Ue=fe.extra;Ne<Ue;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}fe.offset+=Ae&(1<<fe.extra)-1,Ae>>>=fe.extra,Ne-=fe.extra,fe.back+=fe.extra}if(fe.offset>fe.dmax){ke.msg="invalid distance too far back",fe.mode=30;break}fe.mode=25;case 25:if(Ge===0)break e;if(Te=ze-Ge,fe.offset>Te){if((Te=fe.offset-Te)>fe.whave&&fe.sane){ke.msg="invalid distance too far back",fe.mode=30;break}Fe=Te>fe.wnext?(Te-=fe.wnext,fe.wsize-Te):fe.wnext-Te,Te>fe.length&&(Te=fe.length),Pe=fe.window}else Pe=ye,Fe=pe-fe.offset,Te=fe.length;for(Ge<Te&&(Te=Ge),Ge-=Te,fe.length-=Te;ye[pe++]=Pe[Fe++],--Te;);fe.length===0&&(fe.mode=21);break;case 26:if(Ge===0)break e;ye[pe++]=fe.length,Ge--,fe.mode=21;break;case 27:if(fe.wrap){for(;Ne<32;){if(_e===0)break e;_e--,Ae|=ve[Ce++]<<Ne,Ne+=8}if(ze-=Ge,ke.total_out+=ze,fe.total+=ze,ze&&(ke.adler=fe.check=fe.flags?D(fe.check,ye,ze,pe-ze):$(fe.check,ye,ze,pe-ze)),ze=Ge,(fe.flags?Ae:J(Ae))!==fe.check){ke.msg="incorrect data check",fe.mode=30;break}Ne=Ae=0}fe.mode=28;case 28:if(fe.wrap&&fe.flags){for(;Ne<32;){if(_e===0)break e;_e--,Ae+=ve[Ce++]<<Ne,Ne+=8}if(Ae!==(4294967295&fe.total)){ke.msg="incorrect length check",fe.mode=30;break}Ne=Ae=0}fe.mode=29;case 29:et=1;break e;case 30:et=-3;break e;case 31:return-4;case 32:default:return e}return ke.next_out=pe,ke.avail_out=Ge,ke.next_in=Ce,ke.avail_in=_e,fe.hold=Ae,fe.bits=Ne,(fe.wsize||ze!==ke.avail_out&&fe.mode<30&&(fe.mode<27||xe!==4))&&Ee(ke,ke.output,ke.next_out,ze-ke.avail_out)?(fe.mode=31,-4):(Ze-=ke.avail_in,ze-=ke.avail_out,ke.total_in+=Ze,ke.total_out+=ze,fe.total+=ze,fe.wrap&&ze&&(ke.adler=fe.check=fe.flags?D(fe.check,ye,ze,ke.next_out-ze):$(fe.check,ye,ze,ke.next_out-ze)),ke.data_type=fe.bits+(fe.last?64:0)+(fe.mode===12?128:0)+(fe.mode===20||fe.mode===15?256:0),(Ze==0&&ze===0||xe===4)&&et===z&&(et=-5),et)},V.inflateEnd=function(ke){if(!ke||!ke.state)return e;var xe=ke.state;return xe.window&&(xe.window=null),ke.state=null,z},V.inflateGetHeader=function(ke,xe){var fe;return ke&&ke.state&&2&(fe=ke.state).wrap?((fe.head=xe).done=!1,z):e},V.inflateSetDictionary=function(ke,xe){var fe,ve=xe.length;return ke&&ke.state?(fe=ke.state).wrap!==0&&fe.mode!==11?e:fe.mode===11&&$(1,xe,ve,0)!==fe.check?-3:Ee(ke,xe,ve,ve)?(fe.mode=31,-4):(fe.havedict=1,z):e},V.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(M,G,V){var q=M("../utils/common"),$=[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],D=[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],B=[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],R=[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];G.exports=function(U,K,z,e,ae,ie,he,J){var W,X,L,Q,ce,de,se,oe,me,Ee=J.bits,ke=0,xe=0,fe=0,ve=0,ye=0,Ce=0,pe=0,_e=0,Ge=0,Ae=0,Ne=null,Ze=0,ze=new q.Buf16(16),Te=new q.Buf16(16),Fe=null,Pe=0;for(ke=0;ke<=15;ke++)ze[ke]=0;for(xe=0;xe<e;xe++)ze[K[z+xe]]++;for(ye=Ee,ve=15;1<=ve&&ze[ve]===0;ve--);if(ve<ye&&(ye=ve),ve===0)return ae[ie++]=20971520,ae[ie++]=20971520,J.bits=1,0;for(fe=1;fe<ve&&ze[fe]===0;fe++);for(ye<fe&&(ye=fe),ke=_e=1;ke<=15;ke++)if(_e<<=1,(_e-=ze[ke])<0)return-1;if(0<_e&&(U===0||ve!==1))return-1;for(Te[1]=0,ke=1;ke<15;ke++)Te[ke+1]=Te[ke]+ze[ke];for(xe=0;xe<e;xe++)K[z+xe]!==0&&(he[Te[K[z+xe]]++]=xe);if(de=U===0?(Ne=Fe=he,19):U===1?(Ne=$,Ze-=257,Fe=D,Pe-=257,256):(Ne=B,Fe=R,-1),ke=fe,ce=ie,pe=xe=Ae=0,L=-1,Q=(Ge=1<<(Ce=ye))-1,U===1&&852<Ge||U===2&&592<Ge)return 1;for(;;){for(se=ke-pe,me=he[xe]<de?(oe=0,he[xe]):he[xe]>de?(oe=Fe[Pe+he[xe]],Ne[Ze+he[xe]]):(oe=96,0),W=1<<ke-pe,fe=X=1<<Ce;ae[ce+(Ae>>pe)+(X-=W)]=se<<24|oe<<16|me|0,X!==0;);for(W=1<<ke-1;Ae&W;)W>>=1;if(W!==0?(Ae&=W-1,Ae+=W):Ae=0,xe++,--ze[ke]==0){if(ke===ve)break;ke=K[z+he[xe]]}if(ye<ke&&(Ae&Q)!==L){for(pe===0&&(pe=ye),ce+=fe,_e=1<<(Ce=ke-pe);Ce+pe<ve&&!((_e-=ze[Ce+pe])<=0);)Ce++,_e<<=1;if(Ge+=1<<Ce,U===1&&852<Ge||U===2&&592<Ge)return 1;ae[L=Ae&Q]=ye<<24|Ce<<16|ce-ie|0}}return Ae!==0&&(ae[ce+Ae]=ke-pe<<24|64<<16|0),J.bits=ye,0}},{"../utils/common":41}],51:[function(M,G,V){G.exports={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"}},{}],52:[function(M,G,V){var q=M("../utils/common"),$=0,D=1;function B($e){for(var Ye=$e.length;0<=--Ye;)$e[Ye]=0}var R=0,U=29,K=256,z=K+1+U,e=30,ae=19,ie=2*z+1,he=15,J=16,W=7,X=256,L=16,Q=17,ce=18,de=[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],se=[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],oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],me=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ee=new Array(2*(z+2));B(Ee);var ke=new Array(2*e);B(ke);var xe=new Array(512);B(xe);var fe=new Array(256);B(fe);var ve=new Array(U);B(ve);var ye,Ce,pe,_e=new Array(e);function Ge($e,Ye,tt,ot,st){this.static_tree=$e,this.extra_bits=Ye,this.extra_base=tt,this.elems=ot,this.max_length=st,this.has_stree=$e&&$e.length}function Ae($e,Ye){this.dyn_tree=$e,this.max_code=0,this.stat_desc=Ye}function Ne($e){return $e<256?xe[$e]:xe[256+($e>>>7)]}function Ze($e,Ye){$e.pending_buf[$e.pending++]=255&Ye,$e.pending_buf[$e.pending++]=Ye>>>8&255}function ze($e,Ye,tt){$e.bi_valid>J-tt?($e.bi_buf|=Ye<<$e.bi_valid&65535,Ze($e,$e.bi_buf),$e.bi_buf=Ye>>J-$e.bi_valid,$e.bi_valid+=tt-J):($e.bi_buf|=Ye<<$e.bi_valid&65535,$e.bi_valid+=tt)}function Te($e,Ye,tt){ze($e,tt[2*Ye],tt[2*Ye+1])}function Fe($e,Ye){for(var tt=0;tt|=1&$e,$e>>>=1,tt<<=1,0<--Ye;);return tt>>>1}function Pe($e,Ye,tt){var ot,st,dt=new Array(he+1),ct=0;for(ot=1;ot<=he;ot++)dt[ot]=ct=ct+tt[ot-1]<<1;for(st=0;st<=Ye;st++){var mt=$e[2*st+1];mt!==0&&($e[2*st]=Fe(dt[mt]++,mt))}}function we($e){var Ye;for(Ye=0;Ye<z;Ye++)$e.dyn_ltree[2*Ye]=0;for(Ye=0;Ye<e;Ye++)$e.dyn_dtree[2*Ye]=0;for(Ye=0;Ye<ae;Ye++)$e.bl_tree[2*Ye]=0;$e.dyn_ltree[2*X]=1,$e.opt_len=$e.static_len=0,$e.last_lit=$e.matches=0}function Ie($e){8<$e.bi_valid?Ze($e,$e.bi_buf):0<$e.bi_valid&&($e.pending_buf[$e.pending++]=$e.bi_buf),$e.bi_buf=0,$e.bi_valid=0}function Be($e,Ye,tt,ot){var st=2*Ye,dt=2*tt;return $e[st]<$e[dt]||$e[st]===$e[dt]&&ot[Ye]<=ot[tt]}function Ke($e,Ye,tt){for(var ot=$e.heap[tt],st=tt<<1;st<=$e.heap_len&&(st<$e.heap_len&&Be(Ye,$e.heap[st+1],$e.heap[st],$e.depth)&&st++,!Be(Ye,ot,$e.heap[st],$e.depth));)$e.heap[tt]=$e.heap[st],tt=st,st<<=1;$e.heap[tt]=ot}function Ve($e,Ye,tt){var ot,st,dt,ct,mt=0;if($e.last_lit!==0)for(;ot=$e.pending_buf[$e.d_buf+2*mt]<<8|$e.pending_buf[$e.d_buf+2*mt+1],st=$e.pending_buf[$e.l_buf+mt],mt++,ot===0?Te($e,st,Ye):(Te($e,(dt=fe[st])+K+1,Ye),(ct=de[dt])!==0&&ze($e,st-=ve[dt],ct),Te($e,dt=Ne(--ot),tt),(ct=se[dt])!==0&&ze($e,ot-=_e[dt],ct)),mt<$e.last_lit;);Te($e,X,Ye)}function je($e,Ye){var tt,ot,st,dt=Ye.dyn_tree,ct=Ye.stat_desc.static_tree,mt=Ye.stat_desc.has_stree,ut=Ye.stat_desc.elems,rt=-1;for($e.heap_len=0,$e.heap_max=ie,tt=0;tt<ut;tt++)dt[2*tt]!==0?($e.heap[++$e.heap_len]=rt=tt,$e.depth[tt]=0):dt[2*tt+1]=0;for(;$e.heap_len<2;)dt[2*(st=$e.heap[++$e.heap_len]=rt<2?++rt:0)]=1,$e.depth[st]=0,$e.opt_len--,mt&&($e.static_len-=ct[2*st+1]);for(Ye.max_code=rt,tt=$e.heap_len>>1;1<=tt;tt--)Ke($e,dt,tt);for(st=ut;tt=$e.heap[1],$e.heap[1]=$e.heap[$e.heap_len--],Ke($e,dt,1),ot=$e.heap[1],$e.heap[--$e.heap_max]=tt,$e.heap[--$e.heap_max]=ot,dt[2*st]=dt[2*tt]+dt[2*ot],$e.depth[st]=($e.depth[tt]>=$e.depth[ot]?$e.depth[tt]:$e.depth[ot])+1,dt[2*tt+1]=dt[2*ot+1]=st,$e.heap[1]=st++,Ke($e,dt,1),2<=$e.heap_len;);$e.heap[--$e.heap_max]=$e.heap[1],function(He,Je){var St,bt,pt,wt,Pt,Nt,Vt=Je.dyn_tree,Wt=Je.max_code,Mt=Je.stat_desc.static_tree,$t=Je.stat_desc.has_stree,Yt=Je.stat_desc.extra_bits,Ft=Je.stat_desc.extra_base,Jt=Je.stat_desc.max_length,er=0;for(wt=0;wt<=he;wt++)He.bl_count[wt]=0;for(Vt[2*He.heap[He.heap_max]+1]=0,St=He.heap_max+1;St<ie;St++)Jt<(wt=Vt[2*Vt[2*(bt=He.heap[St])+1]+1]+1)&&(wt=Jt,er++),Vt[2*bt+1]=wt,Wt<bt||(He.bl_count[wt]++,Pt=0,Ft<=bt&&(Pt=Yt[bt-Ft]),Nt=Vt[2*bt],He.opt_len+=Nt*(wt+Pt),$t&&(He.static_len+=Nt*(Mt[2*bt+1]+Pt)));if(er!==0){do{for(wt=Jt-1;He.bl_count[wt]===0;)wt--;He.bl_count[wt]--,He.bl_count[wt+1]+=2,He.bl_count[Jt]--,er-=2}while(0<er);for(wt=Jt;wt!==0;wt--)for(bt=He.bl_count[wt];bt!==0;)Wt<(pt=He.heap[--St])||(Vt[2*pt+1]!==wt&&(He.opt_len+=(wt-Vt[2*pt+1])*Vt[2*pt],Vt[2*pt+1]=wt),bt--)}}($e,Ye),Pe(dt,rt,$e.bl_count)}function Le($e,Ye,tt){var ot,st,dt=-1,ct=Ye[1],mt=0,ut=7,rt=4;for(ct===0&&(ut=138,rt=3),Ye[2*(tt+1)+1]=65535,ot=0;ot<=tt;ot++)st=ct,ct=Ye[2*(ot+1)+1],++mt<ut&&st===ct||(mt<rt?$e.bl_tree[2*st]+=mt:st!==0?(st!==dt&&$e.bl_tree[2*st]++,$e.bl_tree[2*L]++):mt<=10?$e.bl_tree[2*Q]++:$e.bl_tree[2*ce]++,dt=st,rt=(mt=0)===ct?(ut=138,3):st===ct?(ut=6,3):(ut=7,4))}function et($e,Ye,tt){var ot,st,dt=-1,ct=Ye[1],mt=0,ut=7,rt=4;for(ct===0&&(ut=138,rt=3),ot=0;ot<=tt;ot++)if(st=ct,ct=Ye[2*(ot+1)+1],!(++mt<ut&&st===ct)){if(mt<rt)for(;Te($e,st,$e.bl_tree),--mt!=0;);else st!==0?(st!==dt&&(Te($e,st,$e.bl_tree),mt--),Te($e,L,$e.bl_tree),ze($e,mt-3,2)):mt<=10?(Te($e,Q,$e.bl_tree),ze($e,mt-3,3)):(Te($e,ce,$e.bl_tree),ze($e,mt-11,7));dt=st,rt=(mt=0)===ct?(ut=138,3):st===ct?(ut=6,3):(ut=7,4)}}B(_e);var Qe=!1;function Ue($e,Ye,tt,ot){ze($e,(R<<1)+(ot?1:0),3),function(st,dt,ct,mt){Ie(st),mt&&(Ze(st,ct),Ze(st,~ct)),q.arraySet(st.pending_buf,st.window,dt,ct,st.pending),st.pending+=ct}($e,Ye,tt,!0)}V._tr_init=function($e){Qe||(function(){var Ye,tt,ot,st,dt,ct=new Array(he+1);for(st=ot=0;st<U-1;st++)for(ve[st]=ot,Ye=0;Ye<1<<de[st];Ye++)fe[ot++]=st;for(fe[ot-1]=st,st=dt=0;st<16;st++)for(_e[st]=dt,Ye=0;Ye<1<<se[st];Ye++)xe[dt++]=st;for(dt>>=7;st<e;st++)for(_e[st]=dt<<7,Ye=0;Ye<1<<se[st]-7;Ye++)xe[256+dt++]=st;for(tt=0;tt<=he;tt++)ct[tt]=0;for(Ye=0;Ye<=143;)Ee[2*Ye+1]=8,Ye++,ct[8]++;for(;Ye<=255;)Ee[2*Ye+1]=9,Ye++,ct[9]++;for(;Ye<=279;)Ee[2*Ye+1]=7,Ye++,ct[7]++;for(;Ye<=287;)Ee[2*Ye+1]=8,Ye++,ct[8]++;for(Pe(Ee,z+1,ct),Ye=0;Ye<e;Ye++)ke[2*Ye+1]=5,ke[2*Ye]=Fe(Ye,5);ye=new Ge(Ee,de,K+1,z,he),Ce=new Ge(ke,se,0,e,he),pe=new Ge(new Array(0),oe,0,ae,W)}(),Qe=!0),$e.l_desc=new Ae($e.dyn_ltree,ye),$e.d_desc=new Ae($e.dyn_dtree,Ce),$e.bl_desc=new Ae($e.bl_tree,pe),$e.bi_buf=0,$e.bi_valid=0,we($e)},V._tr_stored_block=Ue,V._tr_flush_block=function($e,Ye,tt,ot){var st,dt,ct=0;0<$e.level?($e.strm.data_type===2&&($e.strm.data_type=function(mt){var ut,rt=4093624447;for(ut=0;ut<=31;ut++,rt>>>=1)if(1&rt&&mt.dyn_ltree[2*ut]!==0)return $;if(mt.dyn_ltree[18]!==0||mt.dyn_ltree[20]!==0||mt.dyn_ltree[26]!==0)return D;for(ut=32;ut<K;ut++)if(mt.dyn_ltree[2*ut]!==0)return D;return $}($e)),je($e,$e.l_desc),je($e,$e.d_desc),ct=function(mt){var ut;for(Le(mt,mt.dyn_ltree,mt.l_desc.max_code),Le(mt,mt.dyn_dtree,mt.d_desc.max_code),je(mt,mt.bl_desc),ut=ae-1;3<=ut&&mt.bl_tree[2*me[ut]+1]===0;ut--);return mt.opt_len+=3*(ut+1)+5+5+4,ut}($e),st=$e.opt_len+3+7>>>3,(dt=$e.static_len+3+7>>>3)<=st&&(st=dt)):st=dt=tt+5,tt+4<=st&&Ye!==-1?Ue($e,Ye,tt,ot):$e.strategy===4||dt===st?(ze($e,2+(ot?1:0),3),Ve($e,Ee,ke)):(ze($e,4+(ot?1:0),3),function(mt,ut,rt,He){var Je;for(ze(mt,ut-257,5),ze(mt,rt-1,5),ze(mt,He-4,4),Je=0;Je<He;Je++)ze(mt,mt.bl_tree[2*me[Je]+1],3);et(mt,mt.dyn_ltree,ut-1),et(mt,mt.dyn_dtree,rt-1)}($e,$e.l_desc.max_code+1,$e.d_desc.max_code+1,ct+1),Ve($e,$e.dyn_ltree,$e.dyn_dtree)),we($e),ot&&Ie($e)},V._tr_tally=function($e,Ye,tt){return $e.pending_buf[$e.d_buf+2*$e.last_lit]=Ye>>>8&255,$e.pending_buf[$e.d_buf+2*$e.last_lit+1]=255&Ye,$e.pending_buf[$e.l_buf+$e.last_lit]=255&tt,$e.last_lit++,Ye===0?$e.dyn_ltree[2*tt]++:($e.matches++,Ye--,$e.dyn_ltree[2*(fe[tt]+K+1)]++,$e.dyn_dtree[2*Ne(Ye)]++),$e.last_lit===$e.lit_bufsize-1},V._tr_align=function($e){ze($e,2,3),Te($e,X,Ee),function(Ye){Ye.bi_valid===16?(Ze(Ye,Ye.bi_buf),Ye.bi_buf=0,Ye.bi_valid=0):8<=Ye.bi_valid&&(Ye.pending_buf[Ye.pending++]=255&Ye.bi_buf,Ye.bi_buf>>=8,Ye.bi_valid-=8)}($e)}},{"../utils/common":41}],53:[function(M,G,V){G.exports=function(){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}},{}],54:[function(M,G,V){(function(q){(function($,D){if(!$.setImmediate){var B,R,U,K,z=1,e={},ae=!1,ie=$.document,he=Object.getPrototypeOf&&Object.getPrototypeOf($);he=he&&he.setTimeout?he:$,B={}.toString.call($.process)==="[object process]"?function(L){process.nextTick(function(){W(L)})}:function(){if($.postMessage&&!$.importScripts){var L=!0,Q=$.onmessage;return $.onmessage=function(){L=!1},$.postMessage("","*"),$.onmessage=Q,L}}()?(K="setImmediate$"+Math.random()+"$",$.addEventListener?$.addEventListener("message",X,!1):$.attachEvent("onmessage",X),function(L){$.postMessage(K+L,"*")}):$.MessageChannel?((U=new MessageChannel).port1.onmessage=function(L){W(L.data)},function(L){U.port2.postMessage(L)}):ie&&"onreadystatechange"in ie.createElement("script")?(R=ie.documentElement,function(L){var Q=ie.createElement("script");Q.onreadystatechange=function(){W(L),Q.onreadystatechange=null,R.removeChild(Q),Q=null},R.appendChild(Q)}):function(L){setTimeout(W,0,L)},he.setImmediate=function(L){typeof L!="function"&&(L=new Function(""+L));for(var Q=new Array(arguments.length-1),ce=0;ce<Q.length;ce++)Q[ce]=arguments[ce+1];var de={callback:L,args:Q};return e[z]=de,B(z),z++},he.clearImmediate=J}function J(L){delete e[L]}function W(L){if(ae)setTimeout(W,0,L);else{var Q=e[L];if(Q){ae=!0;try{(function(ce){var de=ce.callback,se=ce.args;switch(se.length){case 0:de();break;case 1:de(se[0]);break;case 2:de(se[0],se[1]);break;case 3:de(se[0],se[1],se[2]);break;default:de.apply(D,se)}})(Q)}finally{J(L),ae=!1}}}}function X(L){L.source===$&&typeof L.data=="string"&&L.data.indexOf(K)===0&&W(+L.data.slice(K.length))}})(typeof self>"u"?q===void 0?this:q:self)}).call(this,typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(jszip_min);var jszip_minExports=jszip_min.exports;const JSZip=getDefaultExportFromCjs(jszip_minExports);var defaults={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal$1)),defaults}var builder={},lib={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var k,m,M,G,V,q,$,D=[].slice,B={}.hasOwnProperty;k=function(){var R,U,K,z,e,ae;if(ae=arguments[0],e=2<=arguments.length?D.call(arguments,1):[],V(Object.assign))Object.assign.apply(null,arguments);else for(R=0,K=e.length;R<K;R++)if(z=e[R],z!=null)for(U in z)B.call(z,U)&&(ae[U]=z[U]);return ae},V=function(R){return!!R&&Object.prototype.toString.call(R)==="[object Function]"},q=function(R){var U;return!!R&&((U=typeof R)=="function"||U==="object")},M=function(R){return V(Array.isArray)?Array.isArray(R):Object.prototype.toString.call(R)==="[object Array]"},G=function(R){var U;if(M(R))return!R.length;for(U in R)if(B.call(R,U))return!1;return!0},$=function(R){var U,K;return q(R)&&(K=Object.getPrototypeOf(R))&&(U=K.constructor)&&typeof U=="function"&&U instanceof U&&Function.prototype.toString.call(U)===Function.prototype.toString.call(Object)},m=function(R){return V(R.valueOf)?R.valueOf():R},Utility.assign=k,Utility.isFunction=V,Utility.isObject=q,Utility.isArray=M,Utility.isEmpty=G,Utility.isPlainObject=$,Utility.getValue=m}).call(commonjsGlobal$1)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function k(){}return k.prototype.hasFeature=function(m,M){return!0},k.prototype.createDocumentType=function(m,M,G){throw new Error("This DOM method is not implemented.")},k.prototype.createDocument=function(m,M,G){throw new Error("This DOM method is not implemented.")},k.prototype.createHTMLDocument=function(m){throw new Error("This DOM method is not implemented.")},k.prototype.getFeature=function(m,M){throw new Error("This DOM method is not implemented.")},k}()}).call(commonjsGlobal$1)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function k(){}return k.prototype.handleError=function(m){throw new Error(m)},k}()}).call(commonjsGlobal$1)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function k(m){this.arr=m||[]}return Object.defineProperty(k.prototype,"length",{get:function(){return this.arr.length}}),k.prototype.item=function(m){return this.arr[m]||null},k.prototype.contains=function(m){return this.arr.indexOf(m)!==-1},k}()}).call(commonjsGlobal$1)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var k,m;k=requireXMLDOMErrorHandler(),m=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function M(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new k,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(M.prototype,"parameterNames",{get:function(){return new m(Object.keys(this.defaultParams))}}),M.prototype.getParameter=function(G){return this.params.hasOwnProperty(G)?this.params[G]:null},M.prototype.canSetParameter=function(G,V){return!0},M.prototype.setParameter=function(G,V){return V!=null?this.params[G]=V:delete this.params[G]},M}()}).call(commonjsGlobal$1)),XMLDOMConfiguration.exports}var XMLNode={exports:{}},XMLElement={exports:{}},NodeType={exports:{}},hasRequiredNodeType;function requireNodeType(){return hasRequiredNodeType||(hasRequiredNodeType=1,(function(){NodeType.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(commonjsGlobal$1)),NodeType.exports}var XMLAttribute={exports:{}},hasRequiredXMLAttribute;function requireXMLAttribute(){return hasRequiredXMLAttribute||(hasRequiredXMLAttribute=1,(function(){var k;k=requireNodeType(),requireXMLNode(),XMLAttribute.exports=function(){function m(M,G,V){if(this.parent=M,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),G==null)throw new Error("Missing attribute name. "+this.debugInfo(G));this.name=this.stringify.name(G),this.value=this.stringify.attValue(V),this.type=k.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(m.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(m.prototype,"textContent",{get:function(){return this.value},set:function(M){return this.value=M||""}}),Object.defineProperty(m.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(m.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(m.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"specified",{get:function(){return!0}}),m.prototype.clone=function(){return Object.create(this)},m.prototype.toString=function(M){return this.options.writer.attribute(this,this.options.writer.filterOptions(M))},m.prototype.debugInfo=function(M){return M=M||this.name,M==null?"parent: <"+this.parent.name+">":"attribute: {"+M+"}, parent: <"+this.parent.name+">"},m.prototype.isEqualNode=function(M){return!(M.namespaceURI!==this.namespaceURI||M.prefix!==this.prefix||M.localName!==this.localName||M.value!==this.value)},m}()}).call(commonjsGlobal$1)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function k(m){this.nodes=m}return Object.defineProperty(k.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),k.prototype.clone=function(){return this.nodes=null},k.prototype.getNamedItem=function(m){return this.nodes[m]},k.prototype.setNamedItem=function(m){var M;return M=this.nodes[m.nodeName],this.nodes[m.nodeName]=m,M||null},k.prototype.removeNamedItem=function(m){var M;return M=this.nodes[m],delete this.nodes[m],M||null},k.prototype.item=function(m){return this.nodes[Object.keys(this.nodes)[m]]||null},k.prototype.getNamedItemNS=function(m,M){throw new Error("This DOM method is not implemented.")},k.prototype.setNamedItemNS=function(m){throw new Error("This DOM method is not implemented.")},k.prototype.removeNamedItemNS=function(m,M){throw new Error("This DOM method is not implemented.")},k}()}).call(commonjsGlobal$1)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var k,m,M,G,V,q,$,D,B=function(U,K){for(var z in K)R.call(K,z)&&(U[z]=K[z]);function e(){this.constructor=U}return e.prototype=K.prototype,U.prototype=new e,U.__super__=K.prototype,U},R={}.hasOwnProperty;D=requireUtility(),$=D.isObject,q=D.isFunction,V=D.getValue,G=requireXMLNode(),k=requireNodeType(),m=requireXMLAttribute(),M=requireXMLNamedNodeMap(),XMLElement.exports=function(U){B(K,U);function K(z,e,ae){var ie,he,J,W;if(K.__super__.constructor.call(this,z),e==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(e),this.type=k.Element,this.attribs={},this.schemaTypeInfo=null,ae!=null&&this.attribute(ae),z.type===k.Document&&(this.isRoot=!0,this.documentObject=z,z.rootObject=this,z.children)){for(W=z.children,he=0,J=W.length;he<J;he++)if(ie=W[he],ie.type===k.DocType){ie.name=this.name;break}}}return Object.defineProperty(K.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(K.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(K.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(K.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(K.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(K.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(K.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(K.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new M(this.attribs)),this.attributeMap}}),K.prototype.clone=function(){var z,e,ae,ie;ae=Object.create(this),ae.isRoot&&(ae.documentObject=null),ae.attribs={},ie=this.attribs;for(e in ie)R.call(ie,e)&&(z=ie[e],ae.attribs[e]=z.clone());return ae.children=[],this.children.forEach(function(he){var J;return J=he.clone(),J.parent=ae,ae.children.push(J)}),ae},K.prototype.attribute=function(z,e){var ae,ie;if(z!=null&&(z=V(z)),$(z))for(ae in z)R.call(z,ae)&&(ie=z[ae],this.attribute(ae,ie));else q(e)&&(e=e.apply()),this.options.keepNullAttributes&&e==null?this.attribs[z]=new m(this,z,""):e!=null&&(this.attribs[z]=new m(this,z,e));return this},K.prototype.removeAttribute=function(z){var e,ae,ie;if(z==null)throw new Error("Missing attribute name. "+this.debugInfo());if(z=V(z),Array.isArray(z))for(ae=0,ie=z.length;ae<ie;ae++)e=z[ae],delete this.attribs[e];else delete this.attribs[z];return this},K.prototype.toString=function(z){return this.options.writer.element(this,this.options.writer.filterOptions(z))},K.prototype.att=function(z,e){return this.attribute(z,e)},K.prototype.a=function(z,e){return this.attribute(z,e)},K.prototype.getAttribute=function(z){return this.attribs.hasOwnProperty(z)?this.attribs[z].value:null},K.prototype.setAttribute=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getAttributeNode=function(z){return this.attribs.hasOwnProperty(z)?this.attribs[z]:null},K.prototype.setAttributeNode=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.removeAttributeNode=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getElementsByTagName=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getAttributeNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setAttributeNS=function(z,e,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.removeAttributeNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getAttributeNodeNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setAttributeNodeNS=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getElementsByTagNameNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.hasAttribute=function(z){return this.attribs.hasOwnProperty(z)},K.prototype.hasAttributeNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setIdAttribute=function(z,e){return this.attribs.hasOwnProperty(z)?this.attribs[z].isId:e},K.prototype.setIdAttributeNS=function(z,e,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setIdAttributeNode=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getElementsByTagName=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getElementsByTagNameNS=function(z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getElementsByClassName=function(z){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isEqualNode=function(z){var e,ae,ie;if(!K.__super__.isEqualNode.apply(this,arguments).isEqualNode(z)||z.namespaceURI!==this.namespaceURI||z.prefix!==this.prefix||z.localName!==this.localName||z.attribs.length!==this.attribs.length)return!1;for(e=ae=0,ie=this.attribs.length-1;0<=ie?ae<=ie:ae>=ie;e=0<=ie?++ae:--ae)if(!this.attribs[e].isEqualNode(z.attribs[e]))return!1;return!0},K}(G)}).call(commonjsGlobal$1)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var k,m=function(G,V){for(var q in V)M.call(V,q)&&(G[q]=V[q]);function $(){this.constructor=G}return $.prototype=V.prototype,G.prototype=new $,G.__super__=V.prototype,G},M={}.hasOwnProperty;k=requireXMLNode(),XMLCharacterData.exports=function(G){m(V,G);function V(q){V.__super__.constructor.call(this,q),this.value=""}return Object.defineProperty(V.prototype,"data",{get:function(){return this.value},set:function(q){return this.value=q||""}}),Object.defineProperty(V.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){return this.value},set:function(q){return this.value=q||""}}),V.prototype.clone=function(){return Object.create(this)},V.prototype.substringData=function(q,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.appendData=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.insertData=function(q,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.deleteData=function(q,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.replaceData=function(q,$,D){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.isEqualNode=function(q){return!(!V.__super__.isEqualNode.apply(this,arguments).isEqualNode(q)||q.data!==this.data)},V}(k)}).call(commonjsGlobal$1)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;k=requireNodeType(),m=requireXMLCharacterData(),XMLCData.exports=function(V){M(q,V);function q($,D){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=k.CData,this.value=this.stringify.cdata(D)}return q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return this.options.writer.cdata(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;k=requireNodeType(),m=requireXMLCharacterData(),XMLComment.exports=function(V){M(q,V);function q($,D){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=k.Comment,this.value=this.stringify.comment(D)}return q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return this.options.writer.comment(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var k,m,M,G=function(q,$){for(var D in $)V.call($,D)&&(q[D]=$[D]);function B(){this.constructor=q}return B.prototype=$.prototype,q.prototype=new B,q.__super__=$.prototype,q},V={}.hasOwnProperty;M=requireUtility().isObject,m=requireXMLNode(),k=requireNodeType(),XMLDeclaration.exports=function(q){G($,q);function $(D,B,R,U){var K;$.__super__.constructor.call(this,D),M(B)&&(K=B,B=K.version,R=K.encoding,U=K.standalone),B||(B="1.0"),this.type=k.Declaration,this.version=this.stringify.xmlVersion(B),R!=null&&(this.encoding=this.stringify.xmlEncoding(R)),U!=null&&(this.standalone=this.stringify.xmlStandalone(U))}return $.prototype.toString=function(D){return this.options.writer.declaration(this,this.options.writer.filterOptions(D))},$}(m)}).call(commonjsGlobal$1)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;m=requireXMLNode(),k=requireNodeType(),XMLDTDAttList.exports=function(V){M(q,V);function q($,D,B,R,U,K){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(B==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(D));if(!R)throw new Error("Missing DTD attribute type. "+this.debugInfo(D));if(!U)throw new Error("Missing DTD attribute default. "+this.debugInfo(D));if(U.indexOf("#")!==0&&(U="#"+U),!U.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(D));if(K&&!U.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(D));this.elementName=this.stringify.name(D),this.type=k.AttributeDeclaration,this.attributeName=this.stringify.name(B),this.attributeType=this.stringify.dtdAttType(R),K&&(this.defaultValue=this.stringify.dtdAttDefault(K)),this.defaultValueType=U}return q.prototype.toString=function($){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var k,m,M,G=function(q,$){for(var D in $)V.call($,D)&&(q[D]=$[D]);function B(){this.constructor=q}return B.prototype=$.prototype,q.prototype=new B,q.__super__=$.prototype,q},V={}.hasOwnProperty;M=requireUtility().isObject,m=requireXMLNode(),k=requireNodeType(),XMLDTDEntity.exports=function(q){G($,q);function $(D,B,R,U){if($.__super__.constructor.call(this,D),R==null)throw new Error("Missing DTD entity name. "+this.debugInfo(R));if(U==null)throw new Error("Missing DTD entity value. "+this.debugInfo(R));if(this.pe=!!B,this.name=this.stringify.name(R),this.type=k.EntityDeclaration,!M(U))this.value=this.stringify.dtdEntityValue(U),this.internal=!0;else{if(!U.pubID&&!U.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(R));if(U.pubID&&!U.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(R));if(this.internal=!1,U.pubID!=null&&(this.pubID=this.stringify.dtdPubID(U.pubID)),U.sysID!=null&&(this.sysID=this.stringify.dtdSysID(U.sysID)),U.nData!=null&&(this.nData=this.stringify.dtdNData(U.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(R))}}return Object.defineProperty($.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty($.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty($.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty($.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty($.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty($.prototype,"xmlVersion",{get:function(){return null}}),$.prototype.toString=function(D){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(D))},$}(m)}).call(commonjsGlobal$1)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;m=requireXMLNode(),k=requireNodeType(),XMLDTDElement.exports=function(V){M(q,V);function q($,D,B){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing DTD element name. "+this.debugInfo());B||(B="(#PCDATA)"),Array.isArray(B)&&(B="("+B.join(",")+")"),this.name=this.stringify.name(D),this.type=k.ElementDeclaration,this.value=this.stringify.dtdElementValue(B)}return q.prototype.toString=function($){return this.options.writer.dtdElement(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;m=requireXMLNode(),k=requireNodeType(),XMLDTDNotation.exports=function(V){M(q,V);function q($,D,B){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing DTD notation name. "+this.debugInfo(D));if(!B.pubID&&!B.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(D));this.name=this.stringify.name(D),this.type=k.NotationDeclaration,B.pubID!=null&&(this.pubID=this.stringify.dtdPubID(B.pubID)),B.sysID!=null&&(this.sysID=this.stringify.dtdSysID(B.sysID))}return Object.defineProperty(q.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(q.prototype,"systemId",{get:function(){return this.sysID}}),q.prototype.toString=function($){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var k,m,M,G,V,q,$,D,B=function(U,K){for(var z in K)R.call(K,z)&&(U[z]=K[z]);function e(){this.constructor=U}return e.prototype=K.prototype,U.prototype=new e,U.__super__=K.prototype,U},R={}.hasOwnProperty;D=requireUtility().isObject,$=requireXMLNode(),k=requireNodeType(),m=requireXMLDTDAttList(),G=requireXMLDTDEntity(),M=requireXMLDTDElement(),V=requireXMLDTDNotation(),q=requireXMLNamedNodeMap(),XMLDocType.exports=function(U){B(K,U);function K(z,e,ae){var ie,he,J,W,X,L;if(K.__super__.constructor.call(this,z),this.type=k.DocType,z.children){for(W=z.children,he=0,J=W.length;he<J;he++)if(ie=W[he],ie.type===k.Element){this.name=ie.name;break}}this.documentObject=z,D(e)&&(X=e,e=X.pubID,ae=X.sysID),ae==null&&(L=[e,ae],ae=L[0],e=L[1]),e!=null&&(this.pubID=this.stringify.dtdPubID(e)),ae!=null&&(this.sysID=this.stringify.dtdSysID(ae))}return Object.defineProperty(K.prototype,"entities",{get:function(){var z,e,ae,ie,he;for(ie={},he=this.children,e=0,ae=he.length;e<ae;e++)z=he[e],z.type===k.EntityDeclaration&&!z.pe&&(ie[z.name]=z);return new q(ie)}}),Object.defineProperty(K.prototype,"notations",{get:function(){var z,e,ae,ie,he;for(ie={},he=this.children,e=0,ae=he.length;e<ae;e++)z=he[e],z.type===k.NotationDeclaration&&(ie[z.name]=z);return new q(ie)}}),Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),K.prototype.element=function(z,e){var ae;return ae=new M(this,z,e),this.children.push(ae),this},K.prototype.attList=function(z,e,ae,ie,he){var J;return J=new m(this,z,e,ae,ie,he),this.children.push(J),this},K.prototype.entity=function(z,e){var ae;return ae=new G(this,!1,z,e),this.children.push(ae),this},K.prototype.pEntity=function(z,e){var ae;return ae=new G(this,!0,z,e),this.children.push(ae),this},K.prototype.notation=function(z,e){var ae;return ae=new V(this,z,e),this.children.push(ae),this},K.prototype.toString=function(z){return this.options.writer.docType(this,this.options.writer.filterOptions(z))},K.prototype.ele=function(z,e){return this.element(z,e)},K.prototype.att=function(z,e,ae,ie,he){return this.attList(z,e,ae,ie,he)},K.prototype.ent=function(z,e){return this.entity(z,e)},K.prototype.pent=function(z,e){return this.pEntity(z,e)},K.prototype.not=function(z,e){return this.notation(z,e)},K.prototype.up=function(){return this.root()||this.documentObject},K.prototype.isEqualNode=function(z){return!(!K.__super__.isEqualNode.apply(this,arguments).isEqualNode(z)||z.name!==this.name||z.publicId!==this.publicId||z.systemId!==this.systemId)},K}($)}).call(commonjsGlobal$1)),XMLDocType.exports}var XMLRaw={exports:{}},hasRequiredXMLRaw;function requireXMLRaw(){return hasRequiredXMLRaw||(hasRequiredXMLRaw=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;k=requireNodeType(),m=requireXMLNode(),XMLRaw.exports=function(V){M(q,V);function q($,D){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=k.Raw,this.value=this.stringify.raw(D)}return q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return this.options.writer.raw(this,this.options.writer.filterOptions($))},q}(m)}).call(commonjsGlobal$1)),XMLRaw.exports}var XMLText={exports:{}},hasRequiredXMLText;function requireXMLText(){return hasRequiredXMLText||(hasRequiredXMLText=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;k=requireNodeType(),m=requireXMLCharacterData(),XMLText.exports=function(V){M(q,V);function q($,D){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=k.Text,this.value=this.stringify.text(D)}return Object.defineProperty(q.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"wholeText",{get:function(){var $,D,B;for(B="",D=this.previousSibling;D;)B=D.data+B,D=D.previousSibling;for(B+=this.data,$=this.nextSibling;$;)B=B+$.data,$=$.nextSibling;return B}}),q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return this.options.writer.text(this,this.options.writer.filterOptions($))},q.prototype.splitText=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.replaceWholeText=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},q}(m)}).call(commonjsGlobal$1)),XMLText.exports}var XMLProcessingInstruction={exports:{}},hasRequiredXMLProcessingInstruction;function requireXMLProcessingInstruction(){return hasRequiredXMLProcessingInstruction||(hasRequiredXMLProcessingInstruction=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;k=requireNodeType(),m=requireXMLCharacterData(),XMLProcessingInstruction.exports=function(V){M(q,V);function q($,D,B){if(q.__super__.constructor.call(this,$),D==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=k.ProcessingInstruction,this.target=this.stringify.insTarget(D),this.name=this.target,B&&(this.value=this.stringify.insValue(B))}return q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions($))},q.prototype.isEqualNode=function($){return!(!q.__super__.isEqualNode.apply(this,arguments).isEqualNode($)||$.target!==this.target)},q}(m)}).call(commonjsGlobal$1)),XMLProcessingInstruction.exports}var XMLDummy={exports:{}},hasRequiredXMLDummy;function requireXMLDummy(){return hasRequiredXMLDummy||(hasRequiredXMLDummy=1,(function(){var k,m,M=function(V,q){for(var $ in q)G.call(q,$)&&(V[$]=q[$]);function D(){this.constructor=V}return D.prototype=q.prototype,V.prototype=new D,V.__super__=q.prototype,V},G={}.hasOwnProperty;m=requireXMLNode(),k=requireNodeType(),XMLDummy.exports=function(V){M(q,V);function q($){q.__super__.constructor.call(this,$),this.type=k.Dummy}return q.prototype.clone=function(){return Object.create(this)},q.prototype.toString=function($){return""},q}(m)}).call(commonjsGlobal$1)),XMLDummy.exports}var XMLNodeList={exports:{}},hasRequiredXMLNodeList;function requireXMLNodeList(){return hasRequiredXMLNodeList||(hasRequiredXMLNodeList=1,(function(){XMLNodeList.exports=function(){function k(m){this.nodes=m}return Object.defineProperty(k.prototype,"length",{get:function(){return this.nodes.length||0}}),k.prototype.clone=function(){return this.nodes=null},k.prototype.item=function(m){return this.nodes[m]||null},k}()}).call(commonjsGlobal$1)),XMLNodeList.exports}var DocumentPosition={exports:{}},hasRequiredDocumentPosition;function requireDocumentPosition(){return hasRequiredDocumentPosition||(hasRequiredDocumentPosition=1,(function(){DocumentPosition.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(commonjsGlobal$1)),DocumentPosition.exports}var hasRequiredXMLNode;function requireXMLNode(){return hasRequiredXMLNode||(hasRequiredXMLNode=1,(function(){var k,m,M,G,V,q,$,D,B,R,U,K,z,e,ae,ie,he,J={}.hasOwnProperty;he=requireUtility(),ie=he.isObject,ae=he.isFunction,e=he.isEmpty,z=he.getValue,D=null,M=null,G=null,V=null,q=null,U=null,K=null,R=null,$=null,m=null,B=null,k=null,XMLNode.exports=function(){function W(X){this.parent=X,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,D||(D=requireXMLElement(),M=requireXMLCData(),G=requireXMLComment(),V=requireXMLDeclaration(),q=requireXMLDocType(),U=requireXMLRaw(),K=requireXMLText(),R=requireXMLProcessingInstruction(),$=requireXMLDummy(),m=requireNodeType(),B=requireXMLNodeList(),requireXMLNamedNodeMap(),k=requireDocumentPosition())}return Object.defineProperty(W.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(W.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(W.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(W.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(W.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new B(this.children)),this.childNodeList}}),Object.defineProperty(W.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(W.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(W.prototype,"previousSibling",{get:function(){var X;return X=this.parent.children.indexOf(this),this.parent.children[X-1]||null}}),Object.defineProperty(W.prototype,"nextSibling",{get:function(){var X;return X=this.parent.children.indexOf(this),this.parent.children[X+1]||null}}),Object.defineProperty(W.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(W.prototype,"textContent",{get:function(){var X,L,Q,ce,de;if(this.nodeType===m.Element||this.nodeType===m.DocumentFragment){for(de="",ce=this.children,L=0,Q=ce.length;L<Q;L++)X=ce[L],X.textContent&&(de+=X.textContent);return de}else return null},set:function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),W.prototype.setParent=function(X){var L,Q,ce,de,se;for(this.parent=X,X&&(this.options=X.options,this.stringify=X.stringify),de=this.children,se=[],Q=0,ce=de.length;Q<ce;Q++)L=de[Q],se.push(L.setParent(this));return se},W.prototype.element=function(X,L,Q){var ce,de,se,oe,me,Ee,ke,xe,fe,ve,ye;if(Ee=null,L===null&&Q==null&&(fe=[{},null],L=fe[0],Q=fe[1]),L==null&&(L={}),L=z(L),ie(L)||(ve=[L,Q],Q=ve[0],L=ve[1]),X!=null&&(X=z(X)),Array.isArray(X))for(se=0,ke=X.length;se<ke;se++)de=X[se],Ee=this.element(de);else if(ae(X))Ee=this.element(X.apply());else if(ie(X)){for(me in X)if(J.call(X,me))if(ye=X[me],ae(ye)&&(ye=ye.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&me.indexOf(this.stringify.convertAttKey)===0)Ee=this.attribute(me.substr(this.stringify.convertAttKey.length),ye);else if(!this.options.separateArrayItems&&Array.isArray(ye)&&e(ye))Ee=this.dummy();else if(ie(ye)&&e(ye))Ee=this.element(me);else if(!this.options.keepNullNodes&&ye==null)Ee=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(ye))for(oe=0,xe=ye.length;oe<xe;oe++)de=ye[oe],ce={},ce[me]=de,Ee=this.element(ce);else ie(ye)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&me.indexOf(this.stringify.convertTextKey)===0?Ee=this.element(ye):(Ee=this.element(me),Ee.element(ye)):Ee=this.element(me,ye)}else!this.options.keepNullNodes&&Q===null?Ee=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&X.indexOf(this.stringify.convertTextKey)===0?Ee=this.text(Q):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&X.indexOf(this.stringify.convertCDataKey)===0?Ee=this.cdata(Q):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&X.indexOf(this.stringify.convertCommentKey)===0?Ee=this.comment(Q):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&X.indexOf(this.stringify.convertRawKey)===0?Ee=this.raw(Q):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&X.indexOf(this.stringify.convertPIKey)===0?Ee=this.instruction(X.substr(this.stringify.convertPIKey.length),Q):Ee=this.node(X,L,Q);if(Ee==null)throw new Error("Could not create any elements with: "+X+". "+this.debugInfo());return Ee},W.prototype.insertBefore=function(X,L,Q){var ce,de,se,oe,me;if(X!=null&&X.type)return se=X,oe=L,se.setParent(this),oe?(de=children.indexOf(oe),me=children.splice(de),children.push(se),Array.prototype.push.apply(children,me)):children.push(se),se;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(X));return de=this.parent.children.indexOf(this),me=this.parent.children.splice(de),ce=this.parent.element(X,L,Q),Array.prototype.push.apply(this.parent.children,me),ce},W.prototype.insertAfter=function(X,L,Q){var ce,de,se;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(X));return de=this.parent.children.indexOf(this),se=this.parent.children.splice(de+1),ce=this.parent.element(X,L,Q),Array.prototype.push.apply(this.parent.children,se),ce},W.prototype.remove=function(){var X;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return X=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[X,X-X+1].concat([])),this.parent},W.prototype.node=function(X,L,Q){var ce,de;return X!=null&&(X=z(X)),L||(L={}),L=z(L),ie(L)||(de=[L,Q],Q=de[0],L=de[1]),ce=new D(this,X,L),Q!=null&&ce.text(Q),this.children.push(ce),ce},W.prototype.text=function(X){var L;return ie(X)&&this.element(X),L=new K(this,X),this.children.push(L),this},W.prototype.cdata=function(X){var L;return L=new M(this,X),this.children.push(L),this},W.prototype.comment=function(X){var L;return L=new G(this,X),this.children.push(L),this},W.prototype.commentBefore=function(X){var L,Q;return L=this.parent.children.indexOf(this),Q=this.parent.children.splice(L),this.parent.comment(X),Array.prototype.push.apply(this.parent.children,Q),this},W.prototype.commentAfter=function(X){var L,Q;return L=this.parent.children.indexOf(this),Q=this.parent.children.splice(L+1),this.parent.comment(X),Array.prototype.push.apply(this.parent.children,Q),this},W.prototype.raw=function(X){var L;return L=new U(this,X),this.children.push(L),this},W.prototype.dummy=function(){var X;return X=new $(this),X},W.prototype.instruction=function(X,L){var Q,ce,de,se,oe;if(X!=null&&(X=z(X)),L!=null&&(L=z(L)),Array.isArray(X))for(se=0,oe=X.length;se<oe;se++)Q=X[se],this.instruction(Q);else if(ie(X))for(Q in X)J.call(X,Q)&&(ce=X[Q],this.instruction(Q,ce));else ae(L)&&(L=L.apply()),de=new R(this,X,L),this.children.push(de);return this},W.prototype.instructionBefore=function(X,L){var Q,ce;return Q=this.parent.children.indexOf(this),ce=this.parent.children.splice(Q),this.parent.instruction(X,L),Array.prototype.push.apply(this.parent.children,ce),this},W.prototype.instructionAfter=function(X,L){var Q,ce;return Q=this.parent.children.indexOf(this),ce=this.parent.children.splice(Q+1),this.parent.instruction(X,L),Array.prototype.push.apply(this.parent.children,ce),this},W.prototype.declaration=function(X,L,Q){var ce,de;return ce=this.document(),de=new V(ce,X,L,Q),ce.children.length===0?ce.children.unshift(de):ce.children[0].type===m.Declaration?ce.children[0]=de:ce.children.unshift(de),ce.root()||ce},W.prototype.dtd=function(X,L){var Q,ce,de,se,oe,me,Ee,ke,xe,fe;for(ce=this.document(),de=new q(ce,X,L),xe=ce.children,se=oe=0,Ee=xe.length;oe<Ee;se=++oe)if(Q=xe[se],Q.type===m.DocType)return ce.children[se]=de,de;for(fe=ce.children,se=me=0,ke=fe.length;me<ke;se=++me)if(Q=fe[se],Q.isRoot)return ce.children.splice(se,0,de),de;return ce.children.push(de),de},W.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},W.prototype.root=function(){var X;for(X=this;X;){if(X.type===m.Document)return X.rootObject;if(X.isRoot)return X;X=X.parent}},W.prototype.document=function(){var X;for(X=this;X;){if(X.type===m.Document)return X;X=X.parent}},W.prototype.end=function(X){return this.document().end(X)},W.prototype.prev=function(){var X;if(X=this.parent.children.indexOf(this),X<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[X-1]},W.prototype.next=function(){var X;if(X=this.parent.children.indexOf(this),X===-1||X===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[X+1]},W.prototype.importDocument=function(X){var L;return L=X.root().clone(),L.parent=this,L.isRoot=!1,this.children.push(L),this},W.prototype.debugInfo=function(X){var L,Q;return X=X||this.name,X==null&&!((L=this.parent)!=null&&L.name)?"":X==null?"parent: <"+this.parent.name+">":(Q=this.parent)!=null&&Q.name?"node: <"+X+">, parent: <"+this.parent.name+">":"node: <"+X+">"},W.prototype.ele=function(X,L,Q){return this.element(X,L,Q)},W.prototype.nod=function(X,L,Q){return this.node(X,L,Q)},W.prototype.txt=function(X){return this.text(X)},W.prototype.dat=function(X){return this.cdata(X)},W.prototype.com=function(X){return this.comment(X)},W.prototype.ins=function(X,L){return this.instruction(X,L)},W.prototype.doc=function(){return this.document()},W.prototype.dec=function(X,L,Q){return this.declaration(X,L,Q)},W.prototype.e=function(X,L,Q){return this.element(X,L,Q)},W.prototype.n=function(X,L,Q){return this.node(X,L,Q)},W.prototype.t=function(X){return this.text(X)},W.prototype.d=function(X){return this.cdata(X)},W.prototype.c=function(X){return this.comment(X)},W.prototype.r=function(X){return this.raw(X)},W.prototype.i=function(X,L){return this.instruction(X,L)},W.prototype.u=function(){return this.up()},W.prototype.importXMLBuilder=function(X){return this.importDocument(X)},W.prototype.replaceChild=function(X,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.removeChild=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.appendChild=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.hasChildNodes=function(){return this.children.length!==0},W.prototype.cloneNode=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.isSupported=function(X,L){return!0},W.prototype.hasAttributes=function(){return this.attribs.length!==0},W.prototype.compareDocumentPosition=function(X){var L,Q;return L=this,L===X?0:this.document()!==X.document()?(Q=k.Disconnected|k.ImplementationSpecific,Math.random()<.5?Q|=k.Preceding:Q|=k.Following,Q):L.isAncestor(X)?k.Contains|k.Preceding:L.isDescendant(X)?k.Contains|k.Following:L.isPreceding(X)?k.Preceding:k.Following},W.prototype.isSameNode=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.lookupPrefix=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.isDefaultNamespace=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.lookupNamespaceURI=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.isEqualNode=function(X){var L,Q,ce;if(X.nodeType!==this.nodeType||X.children.length!==this.children.length)return!1;for(L=Q=0,ce=this.children.length-1;0<=ce?Q<=ce:Q>=ce;L=0<=ce?++Q:--Q)if(!this.children[L].isEqualNode(X.children[L]))return!1;return!0},W.prototype.getFeature=function(X,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.setUserData=function(X,L,Q){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.getUserData=function(X){throw new Error("This DOM method is not implemented."+this.debugInfo())},W.prototype.contains=function(X){return X?X===this||this.isDescendant(X):!1},W.prototype.isDescendant=function(X){var L,Q,ce,de,se;for(se=this.children,ce=0,de=se.length;ce<de;ce++)if(L=se[ce],X===L||(Q=L.isDescendant(X),Q))return!0;return!1},W.prototype.isAncestor=function(X){return X.isDescendant(this)},W.prototype.isPreceding=function(X){var L,Q;return L=this.treePosition(X),Q=this.treePosition(this),L===-1||Q===-1?!1:L<Q},W.prototype.isFollowing=function(X){var L,Q;return L=this.treePosition(X),Q=this.treePosition(this),L===-1||Q===-1?!1:L>Q},W.prototype.treePosition=function(X){var L,Q;return Q=0,L=!1,this.foreachTreeNode(this.document(),function(ce){if(Q++,!L&&ce===X)return L=!0}),L?Q:-1},W.prototype.foreachTreeNode=function(X,L){var Q,ce,de,se,oe;for(X||(X=this.document()),se=X.children,ce=0,de=se.length;ce<de;ce++){if(Q=se[ce],oe=L(Q))return oe;if(oe=this.foreachTreeNode(Q,L),oe)return oe}},W}()}).call(commonjsGlobal$1)),XMLNode.exports}var XMLStringifier={exports:{}},hasRequiredXMLStringifier;function requireXMLStringifier(){return hasRequiredXMLStringifier||(hasRequiredXMLStringifier=1,(function(){var k=function(M,G){return function(){return M.apply(G,arguments)}},m={}.hasOwnProperty;XMLStringifier.exports=function(){function M(G){this.assertLegalName=k(this.assertLegalName,this),this.assertLegalChar=k(this.assertLegalChar,this);var V,q,$;G||(G={}),this.options=G,this.options.version||(this.options.version="1.0"),q=G.stringify||{};for(V in q)m.call(q,V)&&($=q[V],this[V]=$)}return M.prototype.name=function(G){return this.options.noValidation?G:this.assertLegalName(""+G||"")},M.prototype.text=function(G){return this.options.noValidation?G:this.assertLegalChar(this.textEscape(""+G||""))},M.prototype.cdata=function(G){return this.options.noValidation?G:(G=""+G||"",G=G.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(G))},M.prototype.comment=function(G){if(this.options.noValidation)return G;if(G=""+G||"",G.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+G);return this.assertLegalChar(G)},M.prototype.raw=function(G){return this.options.noValidation?G:""+G||""},M.prototype.attValue=function(G){return this.options.noValidation?G:this.assertLegalChar(this.attEscape(G=""+G||""))},M.prototype.insTarget=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.insValue=function(G){if(this.options.noValidation)return G;if(G=""+G||"",G.match(/\?>/))throw new Error("Invalid processing instruction value: "+G);return this.assertLegalChar(G)},M.prototype.xmlVersion=function(G){if(this.options.noValidation)return G;if(G=""+G||"",!G.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+G);return G},M.prototype.xmlEncoding=function(G){if(this.options.noValidation)return G;if(G=""+G||"",!G.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+G);return this.assertLegalChar(G)},M.prototype.xmlStandalone=function(G){return this.options.noValidation?G:G?"yes":"no"},M.prototype.dtdPubID=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdSysID=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdElementValue=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdAttType=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdAttDefault=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdEntityValue=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.dtdNData=function(G){return this.options.noValidation?G:this.assertLegalChar(""+G||"")},M.prototype.convertAttKey="@",M.prototype.convertPIKey="?",M.prototype.convertTextKey="#text",M.prototype.convertCDataKey="#cdata",M.prototype.convertCommentKey="#comment",M.prototype.convertRawKey="#raw",M.prototype.assertLegalChar=function(G){var V,q;if(this.options.noValidation)return G;if(V="",this.options.version==="1.0"){if(V=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=G.match(V))throw new Error("Invalid character in string: "+G+" at index "+q.index)}else if(this.options.version==="1.1"&&(V=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=G.match(V)))throw new Error("Invalid character in string: "+G+" at index "+q.index);return G},M.prototype.assertLegalName=function(G){var V;if(this.options.noValidation)return G;if(this.assertLegalChar(G),V=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!G.match(V))throw new Error("Invalid character in name");return G},M.prototype.textEscape=function(G){var V;return this.options.noValidation?G:(V=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,G.replace(V,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},M.prototype.attEscape=function(G){var V;return this.options.noValidation?G:(V=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,G.replace(V,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},M}()}).call(commonjsGlobal$1)),XMLStringifier.exports}var XMLStringWriter={exports:{}},XMLWriterBase={exports:{}},WriterState={exports:{}},hasRequiredWriterState;function requireWriterState(){return hasRequiredWriterState||(hasRequiredWriterState=1,(function(){WriterState.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(commonjsGlobal$1)),WriterState.exports}var hasRequiredXMLWriterBase;function requireXMLWriterBase(){return hasRequiredXMLWriterBase||(hasRequiredXMLWriterBase=1,(function(){var k,m,M,G={}.hasOwnProperty;M=requireUtility().assign,k=requireNodeType(),requireXMLDeclaration(),requireXMLDocType(),requireXMLCData(),requireXMLComment(),requireXMLElement(),requireXMLRaw(),requireXMLText(),requireXMLProcessingInstruction(),requireXMLDummy(),requireXMLDTDAttList(),requireXMLDTDElement(),requireXMLDTDEntity(),requireXMLDTDNotation(),m=requireWriterState(),XMLWriterBase.exports=function(){function V(q){var $,D,B;q||(q={}),this.options=q,D=q.writer||{};for($ in D)G.call(D,$)&&(B=D[$],this["_"+$]=this[$],this[$]=B)}return V.prototype.filterOptions=function(q){var $,D,B,R,U,K,z,e;return q||(q={}),q=M({},this.options,q),$={writer:this},$.pretty=q.pretty||!1,$.allowEmpty=q.allowEmpty||!1,$.indent=(D=q.indent)!=null?D:" ",$.newline=(B=q.newline)!=null?B:`
`,$.offset=(R=q.offset)!=null?R:0,$.dontPrettyTextNodes=(U=(K=q.dontPrettyTextNodes)!=null?K:q.dontprettytextnodes)!=null?U:0,$.spaceBeforeSlash=(z=(e=q.spaceBeforeSlash)!=null?e:q.spacebeforeslash)!=null?z:"",$.spaceBeforeSlash===!0&&($.spaceBeforeSlash=" "),$.suppressPrettyCount=0,$.user={},$.state=m.None,$},V.prototype.indent=function(q,$,D){var B;return!$.pretty||$.suppressPrettyCount?"":$.pretty&&(B=(D||0)+$.offset+1,B>0)?new Array(B).join($.indent):""},V.prototype.endline=function(q,$,D){return!$.pretty||$.suppressPrettyCount?"":$.newline},V.prototype.attribute=function(q,$,D){var B;return this.openAttribute(q,$,D),B=" "+q.name+'="'+q.value+'"',this.closeAttribute(q,$,D),B},V.prototype.cdata=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<![CDATA[",$.state=m.InsideTag,B+=q.value,$.state=m.CloseTag,B+="]]>"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.comment=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<!-- ",$.state=m.InsideTag,B+=q.value,$.state=m.CloseTag,B+=" -->"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.declaration=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<?xml",$.state=m.InsideTag,B+=' version="'+q.version+'"',q.encoding!=null&&(B+=' encoding="'+q.encoding+'"'),q.standalone!=null&&(B+=' standalone="'+q.standalone+'"'),$.state=m.CloseTag,B+=$.spaceBeforeSlash+"?>",B+=this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.docType=function(q,$,D){var B,R,U,K,z;if(D||(D=0),this.openNode(q,$,D),$.state=m.OpenTag,K=this.indent(q,$,D),K+="<!DOCTYPE "+q.root().name,q.pubID&&q.sysID?K+=' PUBLIC "'+q.pubID+'" "'+q.sysID+'"':q.sysID&&(K+=' SYSTEM "'+q.sysID+'"'),q.children.length>0){for(K+=" [",K+=this.endline(q,$,D),$.state=m.InsideTag,z=q.children,R=0,U=z.length;R<U;R++)B=z[R],K+=this.writeChildNode(B,$,D+1);$.state=m.CloseTag,K+="]"}return $.state=m.CloseTag,K+=$.spaceBeforeSlash+">",K+=this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),K},V.prototype.element=function(q,$,D){var B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q;D||(D=0),J=!1,W="",this.openNode(q,$,D),$.state=m.OpenTag,W+=this.indent(q,$,D)+"<"+q.name,X=q.attribs;for(he in X)G.call(X,he)&&(B=X[he],W+=this.attribute(B,$,D));if(U=q.children.length,K=U===0?null:q.children[0],U===0||q.children.every(function(ce){return(ce.type===k.Text||ce.type===k.Raw)&&ce.value===""}))$.allowEmpty?(W+=">",$.state=m.CloseTag,W+="</"+q.name+">"+this.endline(q,$,D)):($.state=m.CloseTag,W+=$.spaceBeforeSlash+"/>"+this.endline(q,$,D));else if($.pretty&&U===1&&(K.type===k.Text||K.type===k.Raw)&&K.value!=null)W+=">",$.state=m.InsideTag,$.suppressPrettyCount++,J=!0,W+=this.writeChildNode(K,$,D+1),$.suppressPrettyCount--,J=!1,$.state=m.CloseTag,W+="</"+q.name+">"+this.endline(q,$,D);else{if($.dontPrettyTextNodes){for(L=q.children,z=0,ae=L.length;z<ae;z++)if(R=L[z],(R.type===k.Text||R.type===k.Raw)&&R.value!=null){$.suppressPrettyCount++,J=!0;break}}for(W+=">"+this.endline(q,$,D),$.state=m.InsideTag,Q=q.children,e=0,ie=Q.length;e<ie;e++)R=Q[e],W+=this.writeChildNode(R,$,D+1);$.state=m.CloseTag,W+=this.indent(q,$,D)+"</"+q.name+">",J&&$.suppressPrettyCount--,W+=this.endline(q,$,D),$.state=m.None}return this.closeNode(q,$,D),W},V.prototype.writeChildNode=function(q,$,D){switch(q.type){case k.CData:return this.cdata(q,$,D);case k.Comment:return this.comment(q,$,D);case k.Element:return this.element(q,$,D);case k.Raw:return this.raw(q,$,D);case k.Text:return this.text(q,$,D);case k.ProcessingInstruction:return this.processingInstruction(q,$,D);case k.Dummy:return"";case k.Declaration:return this.declaration(q,$,D);case k.DocType:return this.docType(q,$,D);case k.AttributeDeclaration:return this.dtdAttList(q,$,D);case k.ElementDeclaration:return this.dtdElement(q,$,D);case k.EntityDeclaration:return this.dtdEntity(q,$,D);case k.NotationDeclaration:return this.dtdNotation(q,$,D);default:throw new Error("Unknown XML node type: "+q.constructor.name)}},V.prototype.processingInstruction=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<?",$.state=m.InsideTag,B+=q.target,q.value&&(B+=" "+q.value),$.state=m.CloseTag,B+=$.spaceBeforeSlash+"?>",B+=this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.raw=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D),$.state=m.InsideTag,B+=q.value,$.state=m.CloseTag,B+=this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.text=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D),$.state=m.InsideTag,B+=q.value,$.state=m.CloseTag,B+=this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.dtdAttList=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<!ATTLIST",$.state=m.InsideTag,B+=" "+q.elementName+" "+q.attributeName+" "+q.attributeType,q.defaultValueType!=="#DEFAULT"&&(B+=" "+q.defaultValueType),q.defaultValue&&(B+=' "'+q.defaultValue+'"'),$.state=m.CloseTag,B+=$.spaceBeforeSlash+">"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.dtdElement=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<!ELEMENT",$.state=m.InsideTag,B+=" "+q.name+" "+q.value,$.state=m.CloseTag,B+=$.spaceBeforeSlash+">"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.dtdEntity=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<!ENTITY",$.state=m.InsideTag,q.pe&&(B+=" %"),B+=" "+q.name,q.value?B+=' "'+q.value+'"':(q.pubID&&q.sysID?B+=' PUBLIC "'+q.pubID+'" "'+q.sysID+'"':q.sysID&&(B+=' SYSTEM "'+q.sysID+'"'),q.nData&&(B+=" NDATA "+q.nData)),$.state=m.CloseTag,B+=$.spaceBeforeSlash+">"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.dtdNotation=function(q,$,D){var B;return this.openNode(q,$,D),$.state=m.OpenTag,B=this.indent(q,$,D)+"<!NOTATION",$.state=m.InsideTag,B+=" "+q.name,q.pubID&&q.sysID?B+=' PUBLIC "'+q.pubID+'" "'+q.sysID+'"':q.pubID?B+=' PUBLIC "'+q.pubID+'"':q.sysID&&(B+=' SYSTEM "'+q.sysID+'"'),$.state=m.CloseTag,B+=$.spaceBeforeSlash+">"+this.endline(q,$,D),$.state=m.None,this.closeNode(q,$,D),B},V.prototype.openNode=function(q,$,D){},V.prototype.closeNode=function(q,$,D){},V.prototype.openAttribute=function(q,$,D){},V.prototype.closeAttribute=function(q,$,D){},V}()}).call(commonjsGlobal$1)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var k,m=function(G,V){for(var q in V)M.call(V,q)&&(G[q]=V[q]);function $(){this.constructor=G}return $.prototype=V.prototype,G.prototype=new $,G.__super__=V.prototype,G},M={}.hasOwnProperty;k=requireXMLWriterBase(),XMLStringWriter.exports=function(G){m(V,G);function V(q){V.__super__.constructor.call(this,q)}return V.prototype.document=function(q,$){var D,B,R,U,K;for($=this.filterOptions($),U="",K=q.children,B=0,R=K.length;B<R;B++)D=K[B],U+=this.writeChildNode(D,$,0);return $.pretty&&U.slice(-$.newline.length)===$.newline&&(U=U.slice(0,-$.newline.length)),U},V}(k)}).call(commonjsGlobal$1)),XMLStringWriter.exports}var hasRequiredXMLDocument;function requireXMLDocument(){return hasRequiredXMLDocument||(hasRequiredXMLDocument=1,(function(){var k,m,M,G,V,q,$,D=function(R,U){for(var K in U)B.call(U,K)&&(R[K]=U[K]);function z(){this.constructor=R}return z.prototype=U.prototype,R.prototype=new z,R.__super__=U.prototype,R},B={}.hasOwnProperty;$=requireUtility().isPlainObject,M=requireXMLDOMImplementation(),m=requireXMLDOMConfiguration(),G=requireXMLNode(),k=requireNodeType(),q=requireXMLStringifier(),V=requireXMLStringWriter(),XMLDocument.exports=function(R){D(U,R);function U(K){U.__super__.constructor.call(this,null),this.name="#document",this.type=k.Document,this.documentURI=null,this.domConfig=new m,K||(K={}),K.writer||(K.writer=new V),this.options=K,this.stringify=new q(K)}return Object.defineProperty(U.prototype,"implementation",{value:new M}),Object.defineProperty(U.prototype,"doctype",{get:function(){var K,z,e,ae;for(ae=this.children,z=0,e=ae.length;z<e;z++)if(K=ae[z],K.type===k.DocType)return K;return null}}),Object.defineProperty(U.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(U.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(U.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(U.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].encoding:null}}),Object.defineProperty(U.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(U.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(U.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(U.prototype,"origin",{get:function(){return null}}),Object.defineProperty(U.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(U.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(U.prototype,"contentType",{get:function(){return null}}),U.prototype.end=function(K){var z;return z={},K?$(K)&&(z=K,K=this.options.writer):K=this.options.writer,K.document(this,K.filterOptions(z))},U.prototype.toString=function(K){return this.options.writer.document(this,this.options.writer.filterOptions(K))},U.prototype.createElement=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createTextNode=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createComment=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createCDATASection=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createProcessingInstruction=function(K,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createAttribute=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createEntityReference=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getElementsByTagName=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.importNode=function(K,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createElementNS=function(K,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createAttributeNS=function(K,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getElementsByTagNameNS=function(K,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getElementById=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.adoptNode=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.renameNode=function(K,z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getElementsByClassName=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createEvent=function(K){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createNodeIterator=function(K,z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.createTreeWalker=function(K,z,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},U}(G)}).call(commonjsGlobal$1)),XMLDocument.exports}var XMLDocumentCB={exports:{}},hasRequiredXMLDocumentCB;function requireXMLDocumentCB(){return hasRequiredXMLDocumentCB||(hasRequiredXMLDocumentCB=1,(function(){var k,m,M,G,V,q,$,D,B,R,U,K,z,e,ae,ie,he,J,W,X,L,Q,ce,de={}.hasOwnProperty;ce=requireUtility(),L=ce.isObject,X=ce.isFunction,Q=ce.isPlainObject,W=ce.getValue,k=requireNodeType(),K=requireXMLDocument(),z=requireXMLElement(),G=requireXMLCData(),V=requireXMLComment(),ae=requireXMLRaw(),J=requireXMLText(),e=requireXMLProcessingInstruction(),R=requireXMLDeclaration(),U=requireXMLDocType(),q=requireXMLDTDAttList(),D=requireXMLDTDEntity(),$=requireXMLDTDElement(),B=requireXMLDTDNotation(),M=requireXMLAttribute(),he=requireXMLStringifier(),ie=requireXMLStringWriter(),m=requireWriterState(),XMLDocumentCB.exports=function(){function se(oe,me,Ee){var ke;this.name="?xml",this.type=k.Document,oe||(oe={}),ke={},oe.writer?Q(oe.writer)&&(ke=oe.writer,oe.writer=new ie):oe.writer=new ie,this.options=oe,this.writer=oe.writer,this.writerOptions=this.writer.filterOptions(ke),this.stringify=new he(oe),this.onDataCallback=me||function(){},this.onEndCallback=Ee||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return se.prototype.createChildNode=function(oe){var me,Ee,ke,xe,fe,ve,ye,Ce;switch(oe.type){case k.CData:this.cdata(oe.value);break;case k.Comment:this.comment(oe.value);break;case k.Element:ke={},ye=oe.attribs;for(Ee in ye)de.call(ye,Ee)&&(me=ye[Ee],ke[Ee]=me.value);this.node(oe.name,ke);break;case k.Dummy:this.dummy();break;case k.Raw:this.raw(oe.value);break;case k.Text:this.text(oe.value);break;case k.ProcessingInstruction:this.instruction(oe.target,oe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+oe.constructor.name)}for(Ce=oe.children,fe=0,ve=Ce.length;fe<ve;fe++)xe=Ce[fe],this.createChildNode(xe),xe.type===k.Element&&this.up();return this},se.prototype.dummy=function(){return this},se.prototype.node=function(oe,me,Ee){var ke;if(oe==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(oe));return this.openCurrent(),oe=W(oe),me==null&&(me={}),me=W(me),L(me)||(ke=[me,Ee],Ee=ke[0],me=ke[1]),this.currentNode=new z(this,oe,me),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ee!=null&&this.text(Ee),this},se.prototype.element=function(oe,me,Ee){var ke,xe,fe,ve,ye,Ce;if(this.currentNode&&this.currentNode.type===k.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(oe)||L(oe)||X(oe))for(ve=this.options.noValidation,this.options.noValidation=!0,Ce=new K(this.options).element("TEMP_ROOT"),Ce.element(oe),this.options.noValidation=ve,ye=Ce.children,xe=0,fe=ye.length;xe<fe;xe++)ke=ye[xe],this.createChildNode(ke),ke.type===k.Element&&this.up();else this.node(oe,me,Ee);return this},se.prototype.attribute=function(oe,me){var Ee,ke;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(oe));if(oe!=null&&(oe=W(oe)),L(oe))for(Ee in oe)de.call(oe,Ee)&&(ke=oe[Ee],this.attribute(Ee,ke));else X(me)&&(me=me.apply()),this.options.keepNullAttributes&&me==null?this.currentNode.attribs[oe]=new M(this,oe,""):me!=null&&(this.currentNode.attribs[oe]=new M(this,oe,me));return this},se.prototype.text=function(oe){var me;return this.openCurrent(),me=new J(this,oe),this.onData(this.writer.text(me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.cdata=function(oe){var me;return this.openCurrent(),me=new G(this,oe),this.onData(this.writer.cdata(me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.comment=function(oe){var me;return this.openCurrent(),me=new V(this,oe),this.onData(this.writer.comment(me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.raw=function(oe){var me;return this.openCurrent(),me=new ae(this,oe),this.onData(this.writer.raw(me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.instruction=function(oe,me){var Ee,ke,xe,fe,ve;if(this.openCurrent(),oe!=null&&(oe=W(oe)),me!=null&&(me=W(me)),Array.isArray(oe))for(Ee=0,fe=oe.length;Ee<fe;Ee++)ke=oe[Ee],this.instruction(ke);else if(L(oe))for(ke in oe)de.call(oe,ke)&&(xe=oe[ke],this.instruction(ke,xe));else X(me)&&(me=me.apply()),ve=new e(this,oe,me),this.onData(this.writer.processingInstruction(ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},se.prototype.declaration=function(oe,me,Ee){var ke;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ke=new R(this,oe,me,Ee),this.onData(this.writer.declaration(ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.doctype=function(oe,me,Ee){if(this.openCurrent(),oe==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new U(this,me,Ee),this.currentNode.rootNodeName=oe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},se.prototype.dtdElement=function(oe,me){var Ee;return this.openCurrent(),Ee=new $(this,oe,me),this.onData(this.writer.dtdElement(Ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.attList=function(oe,me,Ee,ke,xe){var fe;return this.openCurrent(),fe=new q(this,oe,me,Ee,ke,xe),this.onData(this.writer.dtdAttList(fe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.entity=function(oe,me){var Ee;return this.openCurrent(),Ee=new D(this,!1,oe,me),this.onData(this.writer.dtdEntity(Ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.pEntity=function(oe,me){var Ee;return this.openCurrent(),Ee=new D(this,!0,oe,me),this.onData(this.writer.dtdEntity(Ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.notation=function(oe,me){var Ee;return this.openCurrent(),Ee=new B(this,oe,me),this.onData(this.writer.dtdNotation(Ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},se.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},se.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},se.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},se.prototype.openNode=function(oe){var me,Ee,ke,xe;if(!oe.isOpen){if(!this.root&&this.currentLevel===0&&oe.type===k.Element&&(this.root=oe),Ee="",oe.type===k.Element){this.writerOptions.state=m.OpenTag,Ee=this.writer.indent(oe,this.writerOptions,this.currentLevel)+"<"+oe.name,xe=oe.attribs;for(ke in xe)de.call(xe,ke)&&(me=xe[ke],Ee+=this.writer.attribute(me,this.writerOptions,this.currentLevel));Ee+=(oe.children?">":"/>")+this.writer.endline(oe,this.writerOptions,this.currentLevel),this.writerOptions.state=m.InsideTag}else this.writerOptions.state=m.OpenTag,Ee=this.writer.indent(oe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+oe.rootNodeName,oe.pubID&&oe.sysID?Ee+=' PUBLIC "'+oe.pubID+'" "'+oe.sysID+'"':oe.sysID&&(Ee+=' SYSTEM "'+oe.sysID+'"'),oe.children?(Ee+=" [",this.writerOptions.state=m.InsideTag):(this.writerOptions.state=m.CloseTag,Ee+=">"),Ee+=this.writer.endline(oe,this.writerOptions,this.currentLevel);return this.onData(Ee,this.currentLevel),oe.isOpen=!0}},se.prototype.closeNode=function(oe){var me;if(!oe.isClosed)return me="",this.writerOptions.state=m.CloseTag,oe.type===k.Element?me=this.writer.indent(oe,this.writerOptions,this.currentLevel)+"</"+oe.name+">"+this.writer.endline(oe,this.writerOptions,this.currentLevel):me=this.writer.indent(oe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(oe,this.writerOptions,this.currentLevel),this.writerOptions.state=m.None,this.onData(me,this.currentLevel),oe.isClosed=!0},se.prototype.onData=function(oe,me){return this.documentStarted=!0,this.onDataCallback(oe,me+1)},se.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},se.prototype.debugInfo=function(oe){return oe==null?"":"node: <"+oe+">"},se.prototype.ele=function(){return this.element.apply(this,arguments)},se.prototype.nod=function(oe,me,Ee){return this.node(oe,me,Ee)},se.prototype.txt=function(oe){return this.text(oe)},se.prototype.dat=function(oe){return this.cdata(oe)},se.prototype.com=function(oe){return this.comment(oe)},se.prototype.ins=function(oe,me){return this.instruction(oe,me)},se.prototype.dec=function(oe,me,Ee){return this.declaration(oe,me,Ee)},se.prototype.dtd=function(oe,me,Ee){return this.doctype(oe,me,Ee)},se.prototype.e=function(oe,me,Ee){return this.element(oe,me,Ee)},se.prototype.n=function(oe,me,Ee){return this.node(oe,me,Ee)},se.prototype.t=function(oe){return this.text(oe)},se.prototype.d=function(oe){return this.cdata(oe)},se.prototype.c=function(oe){return this.comment(oe)},se.prototype.r=function(oe){return this.raw(oe)},se.prototype.i=function(oe,me){return this.instruction(oe,me)},se.prototype.att=function(){return this.currentNode&&this.currentNode.type===k.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},se.prototype.a=function(){return this.currentNode&&this.currentNode.type===k.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},se.prototype.ent=function(oe,me){return this.entity(oe,me)},se.prototype.pent=function(oe,me){return this.pEntity(oe,me)},se.prototype.not=function(oe,me){return this.notation(oe,me)},se}()}).call(commonjsGlobal$1)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var k,m,M,G=function(q,$){for(var D in $)V.call($,D)&&(q[D]=$[D]);function B(){this.constructor=q}return B.prototype=$.prototype,q.prototype=new B,q.__super__=$.prototype,q},V={}.hasOwnProperty;k=requireNodeType(),M=requireXMLWriterBase(),m=requireWriterState(),XMLStreamWriter.exports=function(q){G($,q);function $(D,B){this.stream=D,$.__super__.constructor.call(this,B)}return $.prototype.endline=function(D,B,R){return D.isLastRootNode&&B.state===m.CloseTag?"":$.__super__.endline.call(this,D,B,R)},$.prototype.document=function(D,B){var R,U,K,z,e,ae,ie,he,J;for(ie=D.children,U=K=0,e=ie.length;K<e;U=++K)R=ie[U],R.isLastRootNode=U===D.children.length-1;for(B=this.filterOptions(B),he=D.children,J=[],z=0,ae=he.length;z<ae;z++)R=he[z],J.push(this.writeChildNode(R,B,0));return J},$.prototype.attribute=function(D,B,R){return this.stream.write($.__super__.attribute.call(this,D,B,R))},$.prototype.cdata=function(D,B,R){return this.stream.write($.__super__.cdata.call(this,D,B,R))},$.prototype.comment=function(D,B,R){return this.stream.write($.__super__.comment.call(this,D,B,R))},$.prototype.declaration=function(D,B,R){return this.stream.write($.__super__.declaration.call(this,D,B,R))},$.prototype.docType=function(D,B,R){var U,K,z,e;if(R||(R=0),this.openNode(D,B,R),B.state=m.OpenTag,this.stream.write(this.indent(D,B,R)),this.stream.write("<!DOCTYPE "+D.root().name),D.pubID&&D.sysID?this.stream.write(' PUBLIC "'+D.pubID+'" "'+D.sysID+'"'):D.sysID&&this.stream.write(' SYSTEM "'+D.sysID+'"'),D.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(D,B,R)),B.state=m.InsideTag,e=D.children,K=0,z=e.length;K<z;K++)U=e[K],this.writeChildNode(U,B,R+1);B.state=m.CloseTag,this.stream.write("]")}return B.state=m.CloseTag,this.stream.write(B.spaceBeforeSlash+">"),this.stream.write(this.endline(D,B,R)),B.state=m.None,this.closeNode(D,B,R)},$.prototype.element=function(D,B,R){var U,K,z,e,ae,ie,he,J,W;R||(R=0),this.openNode(D,B,R),B.state=m.OpenTag,this.stream.write(this.indent(D,B,R)+"<"+D.name),J=D.attribs;for(he in J)V.call(J,he)&&(U=J[he],this.attribute(U,B,R));if(z=D.children.length,e=z===0?null:D.children[0],z===0||D.children.every(function(X){return(X.type===k.Text||X.type===k.Raw)&&X.value===""}))B.allowEmpty?(this.stream.write(">"),B.state=m.CloseTag,this.stream.write("</"+D.name+">")):(B.state=m.CloseTag,this.stream.write(B.spaceBeforeSlash+"/>"));else if(B.pretty&&z===1&&(e.type===k.Text||e.type===k.Raw)&&e.value!=null)this.stream.write(">"),B.state=m.InsideTag,B.suppressPrettyCount++,this.writeChildNode(e,B,R+1),B.suppressPrettyCount--,B.state=m.CloseTag,this.stream.write("</"+D.name+">");else{for(this.stream.write(">"+this.endline(D,B,R)),B.state=m.InsideTag,W=D.children,ae=0,ie=W.length;ae<ie;ae++)K=W[ae],this.writeChildNode(K,B,R+1);B.state=m.CloseTag,this.stream.write(this.indent(D,B,R)+"</"+D.name+">")}return this.stream.write(this.endline(D,B,R)),B.state=m.None,this.closeNode(D,B,R)},$.prototype.processingInstruction=function(D,B,R){return this.stream.write($.__super__.processingInstruction.call(this,D,B,R))},$.prototype.raw=function(D,B,R){return this.stream.write($.__super__.raw.call(this,D,B,R))},$.prototype.text=function(D,B,R){return this.stream.write($.__super__.text.call(this,D,B,R))},$.prototype.dtdAttList=function(D,B,R){return this.stream.write($.__super__.dtdAttList.call(this,D,B,R))},$.prototype.dtdElement=function(D,B,R){return this.stream.write($.__super__.dtdElement.call(this,D,B,R))},$.prototype.dtdEntity=function(D,B,R){return this.stream.write($.__super__.dtdEntity.call(this,D,B,R))},$.prototype.dtdNotation=function(D,B,R){return this.stream.write($.__super__.dtdNotation.call(this,D,B,R))},$}(M)}).call(commonjsGlobal$1)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var k,m,M,G,V,q,$,D,B,R;R=requireUtility(),D=R.assign,B=R.isFunction,M=requireXMLDOMImplementation(),G=requireXMLDocument(),V=requireXMLDocumentCB(),$=requireXMLStringWriter(),q=requireXMLStreamWriter(),k=requireNodeType(),m=requireWriterState(),lib.create=function(U,K,z,e){var ae,ie;if(U==null)throw new Error("Root element needs a name.");return e=D({},K,z,e),ae=new G(e),ie=ae.element(U),e.headless||(ae.declaration(e),(e.pubID!=null||e.sysID!=null)&&ae.dtd(e)),ie},lib.begin=function(U,K,z){var e;return B(U)&&(e=[U,K],K=e[0],z=e[1],U={}),K?new V(U,K,z):new G(U)},lib.stringWriter=function(U){return new $(U)},lib.streamWriter=function(U,K){return new q(U,K)},lib.implementation=new M,lib.nodeType=k,lib.writerState=m}).call(commonjsGlobal$1)),lib}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var k,m,M,G,V,q={}.hasOwnProperty;k=requireLib(),m=requireDefaults().defaults,G=function($){return typeof $=="string"&&($.indexOf("&")>=0||$.indexOf(">")>=0||$.indexOf("<")>=0)},V=function($){return"<![CDATA["+M($)+"]]>"},M=function($){return $.replace("]]>","]]]]><![CDATA[>")},builder.Builder=function(){function $(D){var B,R,U;this.options={},R=m["0.2"];for(B in R)q.call(R,B)&&(U=R[B],this.options[B]=U);for(B in D)q.call(D,B)&&(U=D[B],this.options[B]=U)}return $.prototype.buildObject=function(D){var B,R,U,K,z;return B=this.options.attrkey,R=this.options.charkey,Object.keys(D).length===1&&this.options.rootName===m["0.2"].rootName?(z=Object.keys(D)[0],D=D[z]):z=this.options.rootName,U=function(e){return function(ae,ie){var he,J,W,X,L,Q;if(typeof ie!="object")e.options.cdata&&G(ie)?ae.raw(V(ie)):ae.txt(ie);else if(Array.isArray(ie)){for(X in ie)if(q.call(ie,X)){J=ie[X];for(L in J)W=J[L],ae=U(ae.ele(L),W).up()}}else for(L in ie)if(q.call(ie,L))if(J=ie[L],L===B){if(typeof J=="object")for(he in J)Q=J[he],ae=ae.att(he,Q)}else if(L===R)e.options.cdata&&G(J)?ae=ae.raw(V(J)):ae=ae.txt(J);else if(Array.isArray(J))for(X in J)q.call(J,X)&&(W=J[X],typeof W=="string"?e.options.cdata&&G(W)?ae=ae.ele(L).raw(V(W)).up():ae=ae.ele(L,W).up():ae=U(ae.ele(L),W).up());else typeof J=="object"?ae=U(ae.ele(L),J).up():typeof J=="string"&&e.options.cdata&&G(J)?ae=ae.ele(L).raw(V(J)).up():(J==null&&(J=""),ae=ae.ele(L,J.toString()).up());return ae}}(this),K=k.create(z,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),U(K,D).end(this.options.renderOpts)},$}()}).call(commonjsGlobal$1)),builder}var parser={},sax={},string_decoder={},safeBuffer={exports:{}},buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=D,base64Js.toByteArray=R,base64Js.fromByteArray=z;for(var k=[],m=[],M=typeof Uint8Array<"u"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=0,q=G.length;V<q;++V)k[V]=G[V],m[G.charCodeAt(V)]=V;m["-".charCodeAt(0)]=62,m["_".charCodeAt(0)]=63;function $(e){var ae=e.length;if(ae%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ie=e.indexOf("=");ie===-1&&(ie=ae);var he=ie===ae?0:4-ie%4;return[ie,he]}function D(e){var ae=$(e),ie=ae[0],he=ae[1];return(ie+he)*3/4-he}function B(e,ae,ie){return(ae+ie)*3/4-ie}function R(e){var ae,ie=$(e),he=ie[0],J=ie[1],W=new M(B(e,he,J)),X=0,L=J>0?he-4:he,Q;for(Q=0;Q<L;Q+=4)ae=m[e.charCodeAt(Q)]<<18|m[e.charCodeAt(Q+1)]<<12|m[e.charCodeAt(Q+2)]<<6|m[e.charCodeAt(Q+3)],W[X++]=ae>>16&255,W[X++]=ae>>8&255,W[X++]=ae&255;return J===2&&(ae=m[e.charCodeAt(Q)]<<2|m[e.charCodeAt(Q+1)]>>4,W[X++]=ae&255),J===1&&(ae=m[e.charCodeAt(Q)]<<10|m[e.charCodeAt(Q+1)]<<4|m[e.charCodeAt(Q+2)]>>2,W[X++]=ae>>8&255,W[X++]=ae&255),W}function U(e){return k[e>>18&63]+k[e>>12&63]+k[e>>6&63]+k[e&63]}function K(e,ae,ie){for(var he,J=[],W=ae;W<ie;W+=3)he=(e[W]<<16&16711680)+(e[W+1]<<8&65280)+(e[W+2]&255),J.push(U(he));return J.join("")}function z(e){for(var ae,ie=e.length,he=ie%3,J=[],W=16383,X=0,L=ie-he;X<L;X+=W)J.push(K(e,X,X+W>L?L:X+W));return he===1?(ae=e[ie-1],J.push(k[ae>>2]+k[ae<<4&63]+"==")):he===2&&(ae=(e[ie-2]<<8)+e[ie-1],J.push(k[ae>>10]+k[ae>>4&63]+k[ae<<2&63]+"=")),J.join("")}return base64Js}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(k,m,M,G,V){var q,$,D=V*8-G-1,B=(1<<D)-1,R=B>>1,U=-7,K=M?V-1:0,z=M?-1:1,e=k[m+K];for(K+=z,q=e&(1<<-U)-1,e>>=-U,U+=D;U>0;q=q*256+k[m+K],K+=z,U-=8);for($=q&(1<<-U)-1,q>>=-U,U+=G;U>0;$=$*256+k[m+K],K+=z,U-=8);if(q===0)q=1-R;else{if(q===B)return $?NaN:(e?-1:1)*(1/0);$=$+Math.pow(2,G),q=q-R}return(e?-1:1)*$*Math.pow(2,q-G)},ieee754.write=function(k,m,M,G,V,q){var $,D,B,R=q*8-V-1,U=(1<<R)-1,K=U>>1,z=V===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=G?0:q-1,ae=G?1:-1,ie=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(D=isNaN(m)?1:0,$=U):($=Math.floor(Math.log(m)/Math.LN2),m*(B=Math.pow(2,-$))<1&&($--,B*=2),$+K>=1?m+=z/B:m+=z*Math.pow(2,1-K),m*B>=2&&($++,B/=2),$+K>=U?(D=0,$=U):$+K>=1?(D=(m*B-1)*Math.pow(2,V),$=$+K):(D=m*Math.pow(2,K-1)*Math.pow(2,V),$=0));V>=8;k[M+e]=D&255,e+=ae,D/=256,V-=8);for($=$<<V|D,R+=V;R>0;k[M+e]=$&255,e+=ae,$/=256,R-=8);k[M+e-ae]|=ie*128}),ieee754}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(k){const m=requireBase64Js(),M=requireIeee754(),G=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=D,k.SlowBuffer=W,k.INSPECT_MAX_BYTES=50;const V=2147483647;k.kMaxLength=V,D.TYPED_ARRAY_SUPPORT=q(),!D.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function q(){try{const rt=new Uint8Array(1),He={foo:function(){return 42}};return Object.setPrototypeOf(He,Uint8Array.prototype),Object.setPrototypeOf(rt,He),rt.foo()===42}catch{return!1}}Object.defineProperty(D.prototype,"parent",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.buffer}}),Object.defineProperty(D.prototype,"offset",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.byteOffset}});function $(rt){if(rt>V)throw new RangeError('The value "'+rt+'" is invalid for option "size"');const He=new Uint8Array(rt);return Object.setPrototypeOf(He,D.prototype),He}function D(rt,He,Je){if(typeof rt=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(rt)}return B(rt,He,Je)}D.poolSize=8192;function B(rt,He,Je){if(typeof rt=="string")return z(rt,He);if(ArrayBuffer.isView(rt))return ae(rt);if(rt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof rt);if(st(rt,ArrayBuffer)||rt&&st(rt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(rt,SharedArrayBuffer)||rt&&st(rt.buffer,SharedArrayBuffer)))return ie(rt,He,Je);if(typeof rt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const St=rt.valueOf&&rt.valueOf();if(St!=null&&St!==rt)return D.from(St,He,Je);const bt=he(rt);if(bt)return bt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof rt[Symbol.toPrimitive]=="function")return D.from(rt[Symbol.toPrimitive]("string"),He,Je);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof rt)}D.from=function(rt,He,Je){return B(rt,He,Je)},Object.setPrototypeOf(D.prototype,Uint8Array.prototype),Object.setPrototypeOf(D,Uint8Array);function R(rt){if(typeof rt!="number")throw new TypeError('"size" argument must be of type number');if(rt<0)throw new RangeError('The value "'+rt+'" is invalid for option "size"')}function U(rt,He,Je){return R(rt),rt<=0?$(rt):He!==void 0?typeof Je=="string"?$(rt).fill(He,Je):$(rt).fill(He):$(rt)}D.alloc=function(rt,He,Je){return U(rt,He,Je)};function K(rt){return R(rt),$(rt<0?0:J(rt)|0)}D.allocUnsafe=function(rt){return K(rt)},D.allocUnsafeSlow=function(rt){return K(rt)};function z(rt,He){if((typeof He!="string"||He==="")&&(He="utf8"),!D.isEncoding(He))throw new TypeError("Unknown encoding: "+He);const Je=X(rt,He)|0;let St=$(Je);const bt=St.write(rt,He);return bt!==Je&&(St=St.slice(0,bt)),St}function e(rt){const He=rt.length<0?0:J(rt.length)|0,Je=$(He);for(let St=0;St<He;St+=1)Je[St]=rt[St]&255;return Je}function ae(rt){if(st(rt,Uint8Array)){const He=new Uint8Array(rt);return ie(He.buffer,He.byteOffset,He.byteLength)}return e(rt)}function ie(rt,He,Je){if(He<0||rt.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(rt.byteLength<He+(Je||0))throw new RangeError('"length" is outside of buffer bounds');let St;return He===void 0&&Je===void 0?St=new Uint8Array(rt):Je===void 0?St=new Uint8Array(rt,He):St=new Uint8Array(rt,He,Je),Object.setPrototypeOf(St,D.prototype),St}function he(rt){if(D.isBuffer(rt)){const He=J(rt.length)|0,Je=$(He);return Je.length===0||rt.copy(Je,0,0,He),Je}if(rt.length!==void 0)return typeof rt.length!="number"||dt(rt.length)?$(0):e(rt);if(rt.type==="Buffer"&&Array.isArray(rt.data))return e(rt.data)}function J(rt){if(rt>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return rt|0}function W(rt){return+rt!=rt&&(rt=0),D.alloc(+rt)}D.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==D.prototype},D.compare=function(He,Je){if(st(He,Uint8Array)&&(He=D.from(He,He.offset,He.byteLength)),st(Je,Uint8Array)&&(Je=D.from(Je,Je.offset,Je.byteLength)),!D.isBuffer(He)||!D.isBuffer(Je))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===Je)return 0;let St=He.length,bt=Je.length;for(let pt=0,wt=Math.min(St,bt);pt<wt;++pt)if(He[pt]!==Je[pt]){St=He[pt],bt=Je[pt];break}return St<bt?-1:bt<St?1:0},D.isEncoding=function(He){switch(String(He).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},D.concat=function(He,Je){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return D.alloc(0);let St;if(Je===void 0)for(Je=0,St=0;St<He.length;++St)Je+=He[St].length;const bt=D.allocUnsafe(Je);let pt=0;for(St=0;St<He.length;++St){let wt=He[St];if(st(wt,Uint8Array))pt+wt.length>bt.length?(D.isBuffer(wt)||(wt=D.from(wt)),wt.copy(bt,pt)):Uint8Array.prototype.set.call(bt,wt,pt);else if(D.isBuffer(wt))wt.copy(bt,pt);else throw new TypeError('"list" argument must be an Array of Buffers');pt+=wt.length}return bt};function X(rt,He){if(D.isBuffer(rt))return rt.length;if(ArrayBuffer.isView(rt)||st(rt,ArrayBuffer))return rt.byteLength;if(typeof rt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof rt);const Je=rt.length,St=arguments.length>2&&arguments[2]===!0;if(!St&&Je===0)return 0;let bt=!1;for(;;)switch(He){case"ascii":case"latin1":case"binary":return Je;case"utf8":case"utf-8":return Ue(rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Je*2;case"hex":return Je>>>1;case"base64":return tt(rt).length;default:if(bt)return St?-1:Ue(rt).length;He=(""+He).toLowerCase(),bt=!0}}D.byteLength=X;function L(rt,He,Je){let St=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((Je===void 0||Je>this.length)&&(Je=this.length),Je<=0)||(Je>>>=0,He>>>=0,Je<=He))return"";for(rt||(rt="utf8");;)switch(rt){case"hex":return _e(this,He,Je);case"utf8":case"utf-8":return fe(this,He,Je);case"ascii":return Ce(this,He,Je);case"latin1":case"binary":return pe(this,He,Je);case"base64":return xe(this,He,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,He,Je);default:if(St)throw new TypeError("Unknown encoding: "+rt);rt=(rt+"").toLowerCase(),St=!0}}D.prototype._isBuffer=!0;function Q(rt,He,Je){const St=rt[He];rt[He]=rt[Je],rt[Je]=St}D.prototype.swap16=function(){const He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Je=0;Je<He;Je+=2)Q(this,Je,Je+1);return this},D.prototype.swap32=function(){const He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Je=0;Je<He;Je+=4)Q(this,Je,Je+3),Q(this,Je+1,Je+2);return this},D.prototype.swap64=function(){const He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Je=0;Je<He;Je+=8)Q(this,Je,Je+7),Q(this,Je+1,Je+6),Q(this,Je+2,Je+5),Q(this,Je+3,Je+4);return this},D.prototype.toString=function(){const He=this.length;return He===0?"":arguments.length===0?fe(this,0,He):L.apply(this,arguments)},D.prototype.toLocaleString=D.prototype.toString,D.prototype.equals=function(He){if(!D.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:D.compare(this,He)===0},D.prototype.inspect=function(){let He="";const Je=k.INSPECT_MAX_BYTES;return He=this.toString("hex",0,Je).replace(/(.{2})/g,"$1 ").trim(),this.length>Je&&(He+=" ... "),"<Buffer "+He+">"},G&&(D.prototype[G]=D.prototype.inspect),D.prototype.compare=function(He,Je,St,bt,pt){if(st(He,Uint8Array)&&(He=D.from(He,He.offset,He.byteLength)),!D.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(Je===void 0&&(Je=0),St===void 0&&(St=He?He.length:0),bt===void 0&&(bt=0),pt===void 0&&(pt=this.length),Je<0||St>He.length||bt<0||pt>this.length)throw new RangeError("out of range index");if(bt>=pt&&Je>=St)return 0;if(bt>=pt)return-1;if(Je>=St)return 1;if(Je>>>=0,St>>>=0,bt>>>=0,pt>>>=0,this===He)return 0;let wt=pt-bt,Pt=St-Je;const Nt=Math.min(wt,Pt),Vt=this.slice(bt,pt),Wt=He.slice(Je,St);for(let Mt=0;Mt<Nt;++Mt)if(Vt[Mt]!==Wt[Mt]){wt=Vt[Mt],Pt=Wt[Mt];break}return wt<Pt?-1:Pt<wt?1:0};function ce(rt,He,Je,St,bt){if(rt.length===0)return-1;if(typeof Je=="string"?(St=Je,Je=0):Je>2147483647?Je=2147483647:Je<-2147483648&&(Je=-2147483648),Je=+Je,dt(Je)&&(Je=bt?0:rt.length-1),Je<0&&(Je=rt.length+Je),Je>=rt.length){if(bt)return-1;Je=rt.length-1}else if(Je<0)if(bt)Je=0;else return-1;if(typeof He=="string"&&(He=D.from(He,St)),D.isBuffer(He))return He.length===0?-1:de(rt,He,Je,St,bt);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?bt?Uint8Array.prototype.indexOf.call(rt,He,Je):Uint8Array.prototype.lastIndexOf.call(rt,He,Je):de(rt,[He],Je,St,bt);throw new TypeError("val must be string, number or Buffer")}function de(rt,He,Je,St,bt){let pt=1,wt=rt.length,Pt=He.length;if(St!==void 0&&(St=String(St).toLowerCase(),St==="ucs2"||St==="ucs-2"||St==="utf16le"||St==="utf-16le")){if(rt.length<2||He.length<2)return-1;pt=2,wt/=2,Pt/=2,Je/=2}function Nt(Wt,Mt){return pt===1?Wt[Mt]:Wt.readUInt16BE(Mt*pt)}let Vt;if(bt){let Wt=-1;for(Vt=Je;Vt<wt;Vt++)if(Nt(rt,Vt)===Nt(He,Wt===-1?0:Vt-Wt)){if(Wt===-1&&(Wt=Vt),Vt-Wt+1===Pt)return Wt*pt}else Wt!==-1&&(Vt-=Vt-Wt),Wt=-1}else for(Je+Pt>wt&&(Je=wt-Pt),Vt=Je;Vt>=0;Vt--){let Wt=!0;for(let Mt=0;Mt<Pt;Mt++)if(Nt(rt,Vt+Mt)!==Nt(He,Mt)){Wt=!1;break}if(Wt)return Vt}return-1}D.prototype.includes=function(He,Je,St){return this.indexOf(He,Je,St)!==-1},D.prototype.indexOf=function(He,Je,St){return ce(this,He,Je,St,!0)},D.prototype.lastIndexOf=function(He,Je,St){return ce(this,He,Je,St,!1)};function se(rt,He,Je,St){Je=Number(Je)||0;const bt=rt.length-Je;St?(St=Number(St),St>bt&&(St=bt)):St=bt;const pt=He.length;St>pt/2&&(St=pt/2);let wt;for(wt=0;wt<St;++wt){const Pt=parseInt(He.substr(wt*2,2),16);if(dt(Pt))return wt;rt[Je+wt]=Pt}return wt}function oe(rt,He,Je,St){return ot(Ue(He,rt.length-Je),rt,Je,St)}function me(rt,He,Je,St){return ot($e(He),rt,Je,St)}function Ee(rt,He,Je,St){return ot(tt(He),rt,Je,St)}function ke(rt,He,Je,St){return ot(Ye(He,rt.length-Je),rt,Je,St)}D.prototype.write=function(He,Je,St,bt){if(Je===void 0)bt="utf8",St=this.length,Je=0;else if(St===void 0&&typeof Je=="string")bt=Je,St=this.length,Je=0;else if(isFinite(Je))Je=Je>>>0,isFinite(St)?(St=St>>>0,bt===void 0&&(bt="utf8")):(bt=St,St=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const pt=this.length-Je;if((St===void 0||St>pt)&&(St=pt),He.length>0&&(St<0||Je<0)||Je>this.length)throw new RangeError("Attempt to write outside buffer bounds");bt||(bt="utf8");let wt=!1;for(;;)switch(bt){case"hex":return se(this,He,Je,St);case"utf8":case"utf-8":return oe(this,He,Je,St);case"ascii":case"latin1":case"binary":return me(this,He,Je,St);case"base64":return Ee(this,He,Je,St);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,He,Je,St);default:if(wt)throw new TypeError("Unknown encoding: "+bt);bt=(""+bt).toLowerCase(),wt=!0}},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(rt,He,Je){return He===0&&Je===rt.length?m.fromByteArray(rt):m.fromByteArray(rt.slice(He,Je))}function fe(rt,He,Je){Je=Math.min(rt.length,Je);const St=[];let bt=He;for(;bt<Je;){const pt=rt[bt];let wt=null,Pt=pt>239?4:pt>223?3:pt>191?2:1;if(bt+Pt<=Je){let Nt,Vt,Wt,Mt;switch(Pt){case 1:pt<128&&(wt=pt);break;case 2:Nt=rt[bt+1],(Nt&192)===128&&(Mt=(pt&31)<<6|Nt&63,Mt>127&&(wt=Mt));break;case 3:Nt=rt[bt+1],Vt=rt[bt+2],(Nt&192)===128&&(Vt&192)===128&&(Mt=(pt&15)<<12|(Nt&63)<<6|Vt&63,Mt>2047&&(Mt<55296||Mt>57343)&&(wt=Mt));break;case 4:Nt=rt[bt+1],Vt=rt[bt+2],Wt=rt[bt+3],(Nt&192)===128&&(Vt&192)===128&&(Wt&192)===128&&(Mt=(pt&15)<<18|(Nt&63)<<12|(Vt&63)<<6|Wt&63,Mt>65535&&Mt<1114112&&(wt=Mt))}}wt===null?(wt=65533,Pt=1):wt>65535&&(wt-=65536,St.push(wt>>>10&1023|55296),wt=56320|wt&1023),St.push(wt),bt+=Pt}return ye(St)}const ve=4096;function ye(rt){const He=rt.length;if(He<=ve)return String.fromCharCode.apply(String,rt);let Je="",St=0;for(;St<He;)Je+=String.fromCharCode.apply(String,rt.slice(St,St+=ve));return Je}function Ce(rt,He,Je){let St="";Je=Math.min(rt.length,Je);for(let bt=He;bt<Je;++bt)St+=String.fromCharCode(rt[bt]&127);return St}function pe(rt,He,Je){let St="";Je=Math.min(rt.length,Je);for(let bt=He;bt<Je;++bt)St+=String.fromCharCode(rt[bt]);return St}function _e(rt,He,Je){const St=rt.length;(!He||He<0)&&(He=0),(!Je||Je<0||Je>St)&&(Je=St);let bt="";for(let pt=He;pt<Je;++pt)bt+=ct[rt[pt]];return bt}function Ge(rt,He,Je){const St=rt.slice(He,Je);let bt="";for(let pt=0;pt<St.length-1;pt+=2)bt+=String.fromCharCode(St[pt]+St[pt+1]*256);return bt}D.prototype.slice=function(He,Je){const St=this.length;He=~~He,Je=Je===void 0?St:~~Je,He<0?(He+=St,He<0&&(He=0)):He>St&&(He=St),Je<0?(Je+=St,Je<0&&(Je=0)):Je>St&&(Je=St),Je<He&&(Je=He);const bt=this.subarray(He,Je);return Object.setPrototypeOf(bt,D.prototype),bt};function Ae(rt,He,Je){if(rt%1!==0||rt<0)throw new RangeError("offset is not uint");if(rt+He>Je)throw new RangeError("Trying to access beyond buffer length")}D.prototype.readUintLE=D.prototype.readUIntLE=function(He,Je,St){He=He>>>0,Je=Je>>>0,St||Ae(He,Je,this.length);let bt=this[He],pt=1,wt=0;for(;++wt<Je&&(pt*=256);)bt+=this[He+wt]*pt;return bt},D.prototype.readUintBE=D.prototype.readUIntBE=function(He,Je,St){He=He>>>0,Je=Je>>>0,St||Ae(He,Je,this.length);let bt=this[He+--Je],pt=1;for(;Je>0&&(pt*=256);)bt+=this[He+--Je]*pt;return bt},D.prototype.readUint8=D.prototype.readUInt8=function(He,Je){return He=He>>>0,Je||Ae(He,1,this.length),this[He]},D.prototype.readUint16LE=D.prototype.readUInt16LE=function(He,Je){return He=He>>>0,Je||Ae(He,2,this.length),this[He]|this[He+1]<<8},D.prototype.readUint16BE=D.prototype.readUInt16BE=function(He,Je){return He=He>>>0,Je||Ae(He,2,this.length),this[He]<<8|this[He+1]},D.prototype.readUint32LE=D.prototype.readUInt32LE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},D.prototype.readUint32BE=D.prototype.readUInt32BE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},D.prototype.readBigUInt64LE=mt(function(He){He=He>>>0,je(He,"offset");const Je=this[He],St=this[He+7];(Je===void 0||St===void 0)&&Le(He,this.length-8);const bt=Je+this[++He]*2**8+this[++He]*2**16+this[++He]*2**24,pt=this[++He]+this[++He]*2**8+this[++He]*2**16+St*2**24;return BigInt(bt)+(BigInt(pt)<<BigInt(32))}),D.prototype.readBigUInt64BE=mt(function(He){He=He>>>0,je(He,"offset");const Je=this[He],St=this[He+7];(Je===void 0||St===void 0)&&Le(He,this.length-8);const bt=Je*2**24+this[++He]*2**16+this[++He]*2**8+this[++He],pt=this[++He]*2**24+this[++He]*2**16+this[++He]*2**8+St;return(BigInt(bt)<<BigInt(32))+BigInt(pt)}),D.prototype.readIntLE=function(He,Je,St){He=He>>>0,Je=Je>>>0,St||Ae(He,Je,this.length);let bt=this[He],pt=1,wt=0;for(;++wt<Je&&(pt*=256);)bt+=this[He+wt]*pt;return pt*=128,bt>=pt&&(bt-=Math.pow(2,8*Je)),bt},D.prototype.readIntBE=function(He,Je,St){He=He>>>0,Je=Je>>>0,St||Ae(He,Je,this.length);let bt=Je,pt=1,wt=this[He+--bt];for(;bt>0&&(pt*=256);)wt+=this[He+--bt]*pt;return pt*=128,wt>=pt&&(wt-=Math.pow(2,8*Je)),wt},D.prototype.readInt8=function(He,Je){return He=He>>>0,Je||Ae(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},D.prototype.readInt16LE=function(He,Je){He=He>>>0,Je||Ae(He,2,this.length);const St=this[He]|this[He+1]<<8;return St&32768?St|4294901760:St},D.prototype.readInt16BE=function(He,Je){He=He>>>0,Je||Ae(He,2,this.length);const St=this[He+1]|this[He]<<8;return St&32768?St|4294901760:St},D.prototype.readInt32LE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},D.prototype.readInt32BE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},D.prototype.readBigInt64LE=mt(function(He){He=He>>>0,je(He,"offset");const Je=this[He],St=this[He+7];(Je===void 0||St===void 0)&&Le(He,this.length-8);const bt=this[He+4]+this[He+5]*2**8+this[He+6]*2**16+(St<<24);return(BigInt(bt)<<BigInt(32))+BigInt(Je+this[++He]*2**8+this[++He]*2**16+this[++He]*2**24)}),D.prototype.readBigInt64BE=mt(function(He){He=He>>>0,je(He,"offset");const Je=this[He],St=this[He+7];(Je===void 0||St===void 0)&&Le(He,this.length-8);const bt=(Je<<24)+this[++He]*2**16+this[++He]*2**8+this[++He];return(BigInt(bt)<<BigInt(32))+BigInt(this[++He]*2**24+this[++He]*2**16+this[++He]*2**8+St)}),D.prototype.readFloatLE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),M.read(this,He,!0,23,4)},D.prototype.readFloatBE=function(He,Je){return He=He>>>0,Je||Ae(He,4,this.length),M.read(this,He,!1,23,4)},D.prototype.readDoubleLE=function(He,Je){return He=He>>>0,Je||Ae(He,8,this.length),M.read(this,He,!0,52,8)},D.prototype.readDoubleBE=function(He,Je){return He=He>>>0,Je||Ae(He,8,this.length),M.read(this,He,!1,52,8)};function Ne(rt,He,Je,St,bt,pt){if(!D.isBuffer(rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>bt||He<pt)throw new RangeError('"value" argument is out of bounds');if(Je+St>rt.length)throw new RangeError("Index out of range")}D.prototype.writeUintLE=D.prototype.writeUIntLE=function(He,Je,St,bt){if(He=+He,Je=Je>>>0,St=St>>>0,!bt){const Pt=Math.pow(2,8*St)-1;Ne(this,He,Je,St,Pt,0)}let pt=1,wt=0;for(this[Je]=He&255;++wt<St&&(pt*=256);)this[Je+wt]=He/pt&255;return Je+St},D.prototype.writeUintBE=D.prototype.writeUIntBE=function(He,Je,St,bt){if(He=+He,Je=Je>>>0,St=St>>>0,!bt){const Pt=Math.pow(2,8*St)-1;Ne(this,He,Je,St,Pt,0)}let pt=St-1,wt=1;for(this[Je+pt]=He&255;--pt>=0&&(wt*=256);)this[Je+pt]=He/wt&255;return Je+St},D.prototype.writeUint8=D.prototype.writeUInt8=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,1,255,0),this[Je]=He&255,Je+1},D.prototype.writeUint16LE=D.prototype.writeUInt16LE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,2,65535,0),this[Je]=He&255,this[Je+1]=He>>>8,Je+2},D.prototype.writeUint16BE=D.prototype.writeUInt16BE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,2,65535,0),this[Je]=He>>>8,this[Je+1]=He&255,Je+2},D.prototype.writeUint32LE=D.prototype.writeUInt32LE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,4,4294967295,0),this[Je+3]=He>>>24,this[Je+2]=He>>>16,this[Je+1]=He>>>8,this[Je]=He&255,Je+4},D.prototype.writeUint32BE=D.prototype.writeUInt32BE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,4,4294967295,0),this[Je]=He>>>24,this[Je+1]=He>>>16,this[Je+2]=He>>>8,this[Je+3]=He&255,Je+4};function Ze(rt,He,Je,St,bt){Ve(He,St,bt,rt,Je,7);let pt=Number(He&BigInt(4294967295));rt[Je++]=pt,pt=pt>>8,rt[Je++]=pt,pt=pt>>8,rt[Je++]=pt,pt=pt>>8,rt[Je++]=pt;let wt=Number(He>>BigInt(32)&BigInt(4294967295));return rt[Je++]=wt,wt=wt>>8,rt[Je++]=wt,wt=wt>>8,rt[Je++]=wt,wt=wt>>8,rt[Je++]=wt,Je}function ze(rt,He,Je,St,bt){Ve(He,St,bt,rt,Je,7);let pt=Number(He&BigInt(4294967295));rt[Je+7]=pt,pt=pt>>8,rt[Je+6]=pt,pt=pt>>8,rt[Je+5]=pt,pt=pt>>8,rt[Je+4]=pt;let wt=Number(He>>BigInt(32)&BigInt(4294967295));return rt[Je+3]=wt,wt=wt>>8,rt[Je+2]=wt,wt=wt>>8,rt[Je+1]=wt,wt=wt>>8,rt[Je]=wt,Je+8}D.prototype.writeBigUInt64LE=mt(function(He,Je=0){return Ze(this,He,Je,BigInt(0),BigInt("0xffffffffffffffff"))}),D.prototype.writeBigUInt64BE=mt(function(He,Je=0){return ze(this,He,Je,BigInt(0),BigInt("0xffffffffffffffff"))}),D.prototype.writeIntLE=function(He,Je,St,bt){if(He=+He,Je=Je>>>0,!bt){const Nt=Math.pow(2,8*St-1);Ne(this,He,Je,St,Nt-1,-Nt)}let pt=0,wt=1,Pt=0;for(this[Je]=He&255;++pt<St&&(wt*=256);)He<0&&Pt===0&&this[Je+pt-1]!==0&&(Pt=1),this[Je+pt]=(He/wt>>0)-Pt&255;return Je+St},D.prototype.writeIntBE=function(He,Je,St,bt){if(He=+He,Je=Je>>>0,!bt){const Nt=Math.pow(2,8*St-1);Ne(this,He,Je,St,Nt-1,-Nt)}let pt=St-1,wt=1,Pt=0;for(this[Je+pt]=He&255;--pt>=0&&(wt*=256);)He<0&&Pt===0&&this[Je+pt+1]!==0&&(Pt=1),this[Je+pt]=(He/wt>>0)-Pt&255;return Je+St},D.prototype.writeInt8=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,1,127,-128),He<0&&(He=255+He+1),this[Je]=He&255,Je+1},D.prototype.writeInt16LE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,2,32767,-32768),this[Je]=He&255,this[Je+1]=He>>>8,Je+2},D.prototype.writeInt16BE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,2,32767,-32768),this[Je]=He>>>8,this[Je+1]=He&255,Je+2},D.prototype.writeInt32LE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,4,2147483647,-2147483648),this[Je]=He&255,this[Je+1]=He>>>8,this[Je+2]=He>>>16,this[Je+3]=He>>>24,Je+4},D.prototype.writeInt32BE=function(He,Je,St){return He=+He,Je=Je>>>0,St||Ne(this,He,Je,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[Je]=He>>>24,this[Je+1]=He>>>16,this[Je+2]=He>>>8,this[Je+3]=He&255,Je+4},D.prototype.writeBigInt64LE=mt(function(He,Je=0){return Ze(this,He,Je,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),D.prototype.writeBigInt64BE=mt(function(He,Je=0){return ze(this,He,Je,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(rt,He,Je,St,bt,pt){if(Je+St>rt.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("Index out of range")}function Fe(rt,He,Je,St,bt){return He=+He,Je=Je>>>0,bt||Te(rt,He,Je,4),M.write(rt,He,Je,St,23,4),Je+4}D.prototype.writeFloatLE=function(He,Je,St){return Fe(this,He,Je,!0,St)},D.prototype.writeFloatBE=function(He,Je,St){return Fe(this,He,Je,!1,St)};function Pe(rt,He,Je,St,bt){return He=+He,Je=Je>>>0,bt||Te(rt,He,Je,8),M.write(rt,He,Je,St,52,8),Je+8}D.prototype.writeDoubleLE=function(He,Je,St){return Pe(this,He,Je,!0,St)},D.prototype.writeDoubleBE=function(He,Je,St){return Pe(this,He,Je,!1,St)},D.prototype.copy=function(He,Je,St,bt){if(!D.isBuffer(He))throw new TypeError("argument should be a Buffer");if(St||(St=0),!bt&&bt!==0&&(bt=this.length),Je>=He.length&&(Je=He.length),Je||(Je=0),bt>0&&bt<St&&(bt=St),bt===St||He.length===0||this.length===0)return 0;if(Je<0)throw new RangeError("targetStart out of bounds");if(St<0||St>=this.length)throw new RangeError("Index out of range");if(bt<0)throw new RangeError("sourceEnd out of bounds");bt>this.length&&(bt=this.length),He.length-Je<bt-St&&(bt=He.length-Je+St);const pt=bt-St;return this===He&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Je,St,bt):Uint8Array.prototype.set.call(He,this.subarray(St,bt),Je),pt},D.prototype.fill=function(He,Je,St,bt){if(typeof He=="string"){if(typeof Je=="string"?(bt=Je,Je=0,St=this.length):typeof St=="string"&&(bt=St,St=this.length),bt!==void 0&&typeof bt!="string")throw new TypeError("encoding must be a string");if(typeof bt=="string"&&!D.isEncoding(bt))throw new TypeError("Unknown encoding: "+bt);if(He.length===1){const wt=He.charCodeAt(0);(bt==="utf8"&&wt<128||bt==="latin1")&&(He=wt)}}else typeof He=="number"?He=He&255:typeof He=="boolean"&&(He=Number(He));if(Je<0||this.length<Je||this.length<St)throw new RangeError("Out of range index");if(St<=Je)return this;Je=Je>>>0,St=St===void 0?this.length:St>>>0,He||(He=0);let pt;if(typeof He=="number")for(pt=Je;pt<St;++pt)this[pt]=He;else{const wt=D.isBuffer(He)?He:D.from(He,bt),Pt=wt.length;if(Pt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(pt=0;pt<St-Je;++pt)this[pt+Je]=wt[pt%Pt]}return this};const we={};function Ie(rt,He,Je){we[rt]=class extends Je{constructor(){super(),Object.defineProperty(this,"message",{value:He.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${rt}]`,this.stack,delete this.name}get code(){return rt}set code(bt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:bt,writable:!0})}toString(){return`${this.name} [${rt}]: ${this.message}`}}}Ie("ERR_BUFFER_OUT_OF_BOUNDS",function(rt){return rt?`${rt} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ie("ERR_INVALID_ARG_TYPE",function(rt,He){return`The "${rt}" argument must be of type number. Received type ${typeof He}`},TypeError),Ie("ERR_OUT_OF_RANGE",function(rt,He,Je){let St=`The value of "${rt}" is out of range.`,bt=Je;return Number.isInteger(Je)&&Math.abs(Je)>2**32?bt=Be(String(Je)):typeof Je=="bigint"&&(bt=String(Je),(Je>BigInt(2)**BigInt(32)||Je<-(BigInt(2)**BigInt(32)))&&(bt=Be(bt)),bt+="n"),St+=` It must be ${He}. Received ${bt}`,St},RangeError);function Be(rt){let He="",Je=rt.length;const St=rt[0]==="-"?1:0;for(;Je>=St+4;Je-=3)He=`_${rt.slice(Je-3,Je)}${He}`;return`${rt.slice(0,Je)}${He}`}function Ke(rt,He,Je){je(He,"offset"),(rt[He]===void 0||rt[He+Je]===void 0)&&Le(He,rt.length-(Je+1))}function Ve(rt,He,Je,St,bt,pt){if(rt>Je||rt<He){const wt=typeof He=="bigint"?"n":"";let Pt;throw pt>3?He===0||He===BigInt(0)?Pt=`>= 0${wt} and < 2${wt} ** ${(pt+1)*8}${wt}`:Pt=`>= -(2${wt} ** ${(pt+1)*8-1}${wt}) and < 2 ** ${(pt+1)*8-1}${wt}`:Pt=`>= ${He}${wt} and <= ${Je}${wt}`,new we.ERR_OUT_OF_RANGE("value",Pt,rt)}Ke(St,bt,pt)}function je(rt,He){if(typeof rt!="number")throw new we.ERR_INVALID_ARG_TYPE(He,"number",rt)}function Le(rt,He,Je){throw Math.floor(rt)!==rt?(je(rt,Je),new we.ERR_OUT_OF_RANGE(Je||"offset","an integer",rt)):He<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(Je||"offset",`>= ${Je?1:0} and <= ${He}`,rt)}const et=/[^+/0-9A-Za-z-_]/g;function Qe(rt){if(rt=rt.split("=")[0],rt=rt.trim().replace(et,""),rt.length<2)return"";for(;rt.length%4!==0;)rt=rt+"=";return rt}function Ue(rt,He){He=He||1/0;let Je;const St=rt.length;let bt=null;const pt=[];for(let wt=0;wt<St;++wt){if(Je=rt.charCodeAt(wt),Je>55295&&Je<57344){if(!bt){if(Je>56319){(He-=3)>-1&&pt.push(239,191,189);continue}else if(wt+1===St){(He-=3)>-1&&pt.push(239,191,189);continue}bt=Je;continue}if(Je<56320){(He-=3)>-1&&pt.push(239,191,189),bt=Je;continue}Je=(bt-55296<<10|Je-56320)+65536}else bt&&(He-=3)>-1&&pt.push(239,191,189);if(bt=null,Je<128){if((He-=1)<0)break;pt.push(Je)}else if(Je<2048){if((He-=2)<0)break;pt.push(Je>>6|192,Je&63|128)}else if(Je<65536){if((He-=3)<0)break;pt.push(Je>>12|224,Je>>6&63|128,Je&63|128)}else if(Je<1114112){if((He-=4)<0)break;pt.push(Je>>18|240,Je>>12&63|128,Je>>6&63|128,Je&63|128)}else throw new Error("Invalid code point")}return pt}function $e(rt){const He=[];for(let Je=0;Je<rt.length;++Je)He.push(rt.charCodeAt(Je)&255);return He}function Ye(rt,He){let Je,St,bt;const pt=[];for(let wt=0;wt<rt.length&&!((He-=2)<0);++wt)Je=rt.charCodeAt(wt),St=Je>>8,bt=Je%256,pt.push(bt),pt.push(St);return pt}function tt(rt){return m.toByteArray(Qe(rt))}function ot(rt,He,Je,St){let bt;for(bt=0;bt<St&&!(bt+Je>=He.length||bt>=rt.length);++bt)He[bt+Je]=rt[bt];return bt}function st(rt,He){return rt instanceof He||rt!=null&&rt.constructor!=null&&rt.constructor.name!=null&&rt.constructor.name===He.name}function dt(rt){return rt!==rt}const ct=function(){const rt="0123456789abcdef",He=new Array(256);for(let Je=0;Je<16;++Je){const St=Je*16;for(let bt=0;bt<16;++bt)He[St+bt]=rt[Je]+rt[bt]}return He}();function mt(rt){return typeof BigInt>"u"?ut:rt}function ut(){throw new Error("BigInt not supported")}}(buffer)),buffer}var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(k,m){var M=requireBuffer(),G=M.Buffer;function V($,D){for(var B in $)D[B]=$[B]}G.from&&G.alloc&&G.allocUnsafe&&G.allocUnsafeSlow?k.exports=M:(V(M,m),m.Buffer=q);function q($,D,B){return G($,D,B)}V(G,q),q.from=function($,D,B){if(typeof $=="number")throw new TypeError("Argument must not be a number");return G($,D,B)},q.alloc=function($,D,B){if(typeof $!="number")throw new TypeError("Argument must be a number");var R=G($);return D!==void 0?typeof B=="string"?R.fill(D,B):R.fill(D):R.fill(0),R},q.allocUnsafe=function($){if(typeof $!="number")throw new TypeError("Argument must be a number");return G($)},q.allocUnsafeSlow=function($){if(typeof $!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer($)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var k=requireSafeBuffer().Buffer,m=k.isEncoding||function(J){switch(J=""+J,J&&J.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function M(J){if(!J)return"utf8";for(var W;;)switch(J){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return J;default:if(W)return;J=(""+J).toLowerCase(),W=!0}}function G(J){var W=M(J);if(typeof W!="string"&&(k.isEncoding===m||!m(J)))throw new Error("Unknown encoding: "+J);return W||J}string_decoder.StringDecoder=V;function V(J){this.encoding=G(J);var W;switch(this.encoding){case"utf16le":this.text=K,this.end=z,W=4;break;case"utf8":this.fillLast=B,W=4;break;case"base64":this.text=e,this.end=ae,W=3;break;default:this.write=ie,this.end=he;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=k.allocUnsafe(W)}V.prototype.write=function(J){if(J.length===0)return"";var W,X;if(this.lastNeed){if(W=this.fillLast(J),W===void 0)return"";X=this.lastNeed,this.lastNeed=0}else X=0;return X<J.length?W?W+this.text(J,X):this.text(J,X):W||""},V.prototype.end=U,V.prototype.text=R,V.prototype.fillLast=function(J){if(this.lastNeed<=J.length)return J.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);J.copy(this.lastChar,this.lastTotal-this.lastNeed,0,J.length),this.lastNeed-=J.length};function q(J){return J<=127?0:J>>5===6?2:J>>4===14?3:J>>3===30?4:J>>6===2?-1:-2}function $(J,W,X){var L=W.length-1;if(L<X)return 0;var Q=q(W[L]);return Q>=0?(Q>0&&(J.lastNeed=Q-1),Q):--L<X||Q===-2?0:(Q=q(W[L]),Q>=0?(Q>0&&(J.lastNeed=Q-2),Q):--L<X||Q===-2?0:(Q=q(W[L]),Q>=0?(Q>0&&(Q===2?Q=0:J.lastNeed=Q-3),Q):0))}function D(J,W,X){if((W[0]&192)!==128)return J.lastNeed=0,"<22>";if(J.lastNeed>1&&W.length>1){if((W[1]&192)!==128)return J.lastNeed=1,"<22>";if(J.lastNeed>2&&W.length>2&&(W[2]&192)!==128)return J.lastNeed=2,"<22>"}}function B(J){var W=this.lastTotal-this.lastNeed,X=D(this,J);if(X!==void 0)return X;if(this.lastNeed<=J.length)return J.copy(this.lastChar,W,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);J.copy(this.lastChar,W,0,J.length),this.lastNeed-=J.length}function R(J,W){var X=$(this,J,W);if(!this.lastNeed)return J.toString("utf8",W);this.lastTotal=X;var L=J.length-(X-this.lastNeed);return J.copy(this.lastChar,0,L),J.toString("utf8",W,L)}function U(J){var W=J&&J.length?this.write(J):"";return this.lastNeed?W+"<22>":W}function K(J,W){if((J.length-W)%2===0){var X=J.toString("utf16le",W);if(X){var L=X.charCodeAt(X.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=J[J.length-2],this.lastChar[1]=J[J.length-1],X.slice(0,-1)}return X}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=J[J.length-1],J.toString("utf16le",W,J.length-1)}function z(J){var W=J&&J.length?this.write(J):"";if(this.lastNeed){var X=this.lastTotal-this.lastNeed;return W+this.lastChar.toString("utf16le",0,X)}return W}function e(J,W){var X=(J.length-W)%3;return X===0?J.toString("base64",W):(this.lastNeed=3-X,this.lastTotal=3,X===1?this.lastChar[0]=J[J.length-1]:(this.lastChar[0]=J[J.length-2],this.lastChar[1]=J[J.length-1]),J.toString("base64",W,J.length-X))}function ae(J){var W=J&&J.length?this.write(J):"";return this.lastNeed?W+this.lastChar.toString("base64",0,3-this.lastNeed):W}function ie(J){return J.toString(this.encoding)}function he(J){return J&&J.length?this.write(J):""}return string_decoder}var hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(k){(function(m){m.parser=function(Pe,we){return new G(Pe,we)},m.SAXParser=G,m.SAXStream=U,m.createStream=R,m.MAX_BUFFER_LENGTH=64*1024;var M=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];m.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function G(Pe,we){if(!(this instanceof G))return new G(Pe,we);var Ie=this;q(Ie),Ie.q=Ie.c="",Ie.bufferCheckPosition=m.MAX_BUFFER_LENGTH,Ie.opt=we||{},Ie.opt.lowercase=Ie.opt.lowercase||Ie.opt.lowercasetags,Ie.looseCase=Ie.opt.lowercase?"toLowerCase":"toUpperCase",Ie.tags=[],Ie.closed=Ie.closedRoot=Ie.sawRoot=!1,Ie.tag=Ie.error=null,Ie.strict=!!Pe,Ie.noscript=!!(Pe||Ie.opt.noscript),Ie.state=oe.BEGIN,Ie.strictEntities=Ie.opt.strictEntities,Ie.ENTITIES=Ie.strictEntities?Object.create(m.XML_ENTITIES):Object.create(m.ENTITIES),Ie.attribList=[],Ie.opt.xmlns&&(Ie.ns=Object.create(ie)),Ie.opt.unquotedAttributeValues===void 0&&(Ie.opt.unquotedAttributeValues=!Pe),Ie.trackPosition=Ie.opt.position!==!1,Ie.trackPosition&&(Ie.position=Ie.line=Ie.column=0),Ee(Ie,"onready")}Object.create||(Object.create=function(Pe){function we(){}we.prototype=Pe;var Ie=new we;return Ie}),Object.keys||(Object.keys=function(Pe){var we=[];for(var Ie in Pe)Pe.hasOwnProperty(Ie)&&we.push(Ie);return we});function V(Pe){for(var we=Math.max(m.MAX_BUFFER_LENGTH,10),Ie=0,Be=0,Ke=M.length;Be<Ke;Be++){var Ve=Pe[M[Be]].length;if(Ve>we)switch(M[Be]){case"textNode":xe(Pe);break;case"cdata":ke(Pe,"oncdata",Pe.cdata),Pe.cdata="";break;case"script":ke(Pe,"onscript",Pe.script),Pe.script="";break;default:ve(Pe,"Max buffer length exceeded: "+M[Be])}Ie=Math.max(Ie,Ve)}var je=m.MAX_BUFFER_LENGTH-Ie;Pe.bufferCheckPosition=je+Pe.position}function q(Pe){for(var we=0,Ie=M.length;we<Ie;we++)Pe[M[we]]=""}function $(Pe){xe(Pe),Pe.cdata!==""&&(ke(Pe,"oncdata",Pe.cdata),Pe.cdata=""),Pe.script!==""&&(ke(Pe,"onscript",Pe.script),Pe.script="")}G.prototype={end:function(){ye(this)},write:Fe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){$(this)}};var D;try{D=require$$7.Stream}catch{D=function(){}}D||(D=function(){});var B=m.EVENTS.filter(function(Pe){return Pe!=="error"&&Pe!=="end"});function R(Pe,we){return new U(Pe,we)}function U(Pe,we){if(!(this instanceof U))return new U(Pe,we);D.apply(this),this._parser=new G(Pe,we),this.writable=!0,this.readable=!0;var Ie=this;this._parser.onend=function(){Ie.emit("end")},this._parser.onerror=function(Be){Ie.emit("error",Be),Ie._parser.error=null},this._decoder=null,B.forEach(function(Be){Object.defineProperty(Ie,"on"+Be,{get:function(){return Ie._parser["on"+Be]},set:function(Ke){if(!Ke)return Ie.removeAllListeners(Be),Ie._parser["on"+Be]=Ke,Ke;Ie.on(Be,Ke)},enumerable:!0,configurable:!1})})}U.prototype=Object.create(D.prototype,{constructor:{value:U}}),U.prototype.write=function(Pe){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(Pe)){if(!this._decoder){var we=requireString_decoder().StringDecoder;this._decoder=new we("utf8")}Pe=this._decoder.write(Pe)}return this._parser.write(Pe.toString()),this.emit("data",Pe),!0},U.prototype.end=function(Pe){return Pe&&Pe.length&&this.write(Pe),this._parser.end(),!0},U.prototype.on=function(Pe,we){var Ie=this;return!Ie._parser["on"+Pe]&&B.indexOf(Pe)!==-1&&(Ie._parser["on"+Pe]=function(){var Be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Be.splice(0,0,Pe),Ie.emit.apply(Ie,Be)}),D.prototype.on.call(Ie,Pe,we)};var K="[CDATA[",z="DOCTYPE",e="http://www.w3.org/XML/1998/namespace",ae="http://www.w3.org/2000/xmlns/",ie={xml:e,xmlns:ae},he=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,J=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,X=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function L(Pe){return Pe===" "||Pe===`
`||Pe==="\r"||Pe===" "}function Q(Pe){return Pe==='"'||Pe==="'"}function ce(Pe){return Pe===">"||L(Pe)}function de(Pe,we){return Pe.test(we)}function se(Pe,we){return!de(Pe,we)}var oe=0;m.STATE={BEGIN:oe++,BEGIN_WHITESPACE:oe++,TEXT:oe++,TEXT_ENTITY:oe++,OPEN_WAKA:oe++,SGML_DECL:oe++,SGML_DECL_QUOTED:oe++,DOCTYPE:oe++,DOCTYPE_QUOTED:oe++,DOCTYPE_DTD:oe++,DOCTYPE_DTD_QUOTED:oe++,COMMENT_STARTING:oe++,COMMENT:oe++,COMMENT_ENDING:oe++,COMMENT_ENDED:oe++,CDATA:oe++,CDATA_ENDING:oe++,CDATA_ENDING_2:oe++,PROC_INST:oe++,PROC_INST_BODY:oe++,PROC_INST_ENDING:oe++,OPEN_TAG:oe++,OPEN_TAG_SLASH:oe++,ATTRIB:oe++,ATTRIB_NAME:oe++,ATTRIB_NAME_SAW_WHITE:oe++,ATTRIB_VALUE:oe++,ATTRIB_VALUE_QUOTED:oe++,ATTRIB_VALUE_CLOSED:oe++,ATTRIB_VALUE_UNQUOTED:oe++,ATTRIB_VALUE_ENTITY_Q:oe++,ATTRIB_VALUE_ENTITY_U:oe++,CLOSE_TAG:oe++,CLOSE_TAG_SAW_WHITE:oe++,SCRIPT:oe++,SCRIPT_ENDING:oe++},m.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},m.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(m.ENTITIES).forEach(function(Pe){var we=m.ENTITIES[Pe],Ie=typeof we=="number"?String.fromCharCode(we):we;m.ENTITIES[Pe]=Ie});for(var me in m.STATE)m.STATE[m.STATE[me]]=me;oe=m.STATE;function Ee(Pe,we,Ie){Pe[we]&&Pe[we](Ie)}function ke(Pe,we,Ie){Pe.textNode&&xe(Pe),Ee(Pe,we,Ie)}function xe(Pe){Pe.textNode=fe(Pe.opt,Pe.textNode),Pe.textNode&&Ee(Pe,"ontext",Pe.textNode),Pe.textNode=""}function fe(Pe,we){return Pe.trim&&(we=we.trim()),Pe.normalize&&(we=we.replace(/\s+/g," ")),we}function ve(Pe,we){return xe(Pe),Pe.trackPosition&&(we+=`
Line: `+Pe.line+`
Column: `+Pe.column+`
Char: `+Pe.c),we=new Error(we),Pe.error=we,Ee(Pe,"onerror",we),Pe}function ye(Pe){return Pe.sawRoot&&!Pe.closedRoot&&Ce(Pe,"Unclosed root tag"),Pe.state!==oe.BEGIN&&Pe.state!==oe.BEGIN_WHITESPACE&&Pe.state!==oe.TEXT&&ve(Pe,"Unexpected end"),xe(Pe),Pe.c="",Pe.closed=!0,Ee(Pe,"onend"),G.call(Pe,Pe.strict,Pe.opt),Pe}function Ce(Pe,we){if(typeof Pe!="object"||!(Pe instanceof G))throw new Error("bad call to strictFail");Pe.strict&&ve(Pe,we)}function pe(Pe){Pe.strict||(Pe.tagName=Pe.tagName[Pe.looseCase]());var we=Pe.tags[Pe.tags.length-1]||Pe,Ie=Pe.tag={name:Pe.tagName,attributes:{}};Pe.opt.xmlns&&(Ie.ns=we.ns),Pe.attribList.length=0,ke(Pe,"onopentagstart",Ie)}function _e(Pe,we){var Ie=Pe.indexOf(":"),Be=Ie<0?["",Pe]:Pe.split(":"),Ke=Be[0],Ve=Be[1];return we&&Pe==="xmlns"&&(Ke="xmlns",Ve=""),{prefix:Ke,local:Ve}}function Ge(Pe){if(Pe.strict||(Pe.attribName=Pe.attribName[Pe.looseCase]()),Pe.attribList.indexOf(Pe.attribName)!==-1||Pe.tag.attributes.hasOwnProperty(Pe.attribName)){Pe.attribName=Pe.attribValue="";return}if(Pe.opt.xmlns){var we=_e(Pe.attribName,!0),Ie=we.prefix,Be=we.local;if(Ie==="xmlns")if(Be==="xml"&&Pe.attribValue!==e)Ce(Pe,"xml: prefix must be bound to "+e+`
Actual: `+Pe.attribValue);else if(Be==="xmlns"&&Pe.attribValue!==ae)Ce(Pe,"xmlns: prefix must be bound to "+ae+`
Actual: `+Pe.attribValue);else{var Ke=Pe.tag,Ve=Pe.tags[Pe.tags.length-1]||Pe;Ke.ns===Ve.ns&&(Ke.ns=Object.create(Ve.ns)),Ke.ns[Be]=Pe.attribValue}Pe.attribList.push([Pe.attribName,Pe.attribValue])}else Pe.tag.attributes[Pe.attribName]=Pe.attribValue,ke(Pe,"onattribute",{name:Pe.attribName,value:Pe.attribValue});Pe.attribName=Pe.attribValue=""}function Ae(Pe,we){if(Pe.opt.xmlns){var Ie=Pe.tag,Be=_e(Pe.tagName);Ie.prefix=Be.prefix,Ie.local=Be.local,Ie.uri=Ie.ns[Be.prefix]||"",Ie.prefix&&!Ie.uri&&(Ce(Pe,"Unbound namespace prefix: "+JSON.stringify(Pe.tagName)),Ie.uri=Be.prefix);var Ke=Pe.tags[Pe.tags.length-1]||Pe;Ie.ns&&Ke.ns!==Ie.ns&&Object.keys(Ie.ns).forEach(function(st){ke(Pe,"onopennamespace",{prefix:st,uri:Ie.ns[st]})});for(var Ve=0,je=Pe.attribList.length;Ve<je;Ve++){var Le=Pe.attribList[Ve],et=Le[0],Qe=Le[1],Ue=_e(et,!0),$e=Ue.prefix,Ye=Ue.local,tt=$e===""?"":Ie.ns[$e]||"",ot={name:et,value:Qe,prefix:$e,local:Ye,uri:tt};$e&&$e!=="xmlns"&&!tt&&(Ce(Pe,"Unbound namespace prefix: "+JSON.stringify($e)),ot.uri=$e),Pe.tag.attributes[et]=ot,ke(Pe,"onattribute",ot)}Pe.attribList.length=0}Pe.tag.isSelfClosing=!!we,Pe.sawRoot=!0,Pe.tags.push(Pe.tag),ke(Pe,"onopentag",Pe.tag),we||(!Pe.noscript&&Pe.tagName.toLowerCase()==="script"?Pe.state=oe.SCRIPT:Pe.state=oe.TEXT,Pe.tag=null,Pe.tagName=""),Pe.attribName=Pe.attribValue="",Pe.attribList.length=0}function Ne(Pe){if(!Pe.tagName){Ce(Pe,"Weird empty close tag."),Pe.textNode+="</>",Pe.state=oe.TEXT;return}if(Pe.script){if(Pe.tagName!=="script"){Pe.script+="</"+Pe.tagName+">",Pe.tagName="",Pe.state=oe.SCRIPT;return}ke(Pe,"onscript",Pe.script),Pe.script=""}var we=Pe.tags.length,Ie=Pe.tagName;Pe.strict||(Ie=Ie[Pe.looseCase]());for(var Be=Ie;we--;){var Ke=Pe.tags[we];if(Ke.name!==Be)Ce(Pe,"Unexpected close tag");else break}if(we<0){Ce(Pe,"Unmatched closing tag: "+Pe.tagName),Pe.textNode+="</"+Pe.tagName+">",Pe.state=oe.TEXT;return}Pe.tagName=Ie;for(var Ve=Pe.tags.length;Ve-- >we;){var je=Pe.tag=Pe.tags.pop();Pe.tagName=Pe.tag.name,ke(Pe,"onclosetag",Pe.tagName);var Le={};for(var et in je.ns)Le[et]=je.ns[et];var Qe=Pe.tags[Pe.tags.length-1]||Pe;Pe.opt.xmlns&&je.ns!==Qe.ns&&Object.keys(je.ns).forEach(function(Ue){var $e=je.ns[Ue];ke(Pe,"onclosenamespace",{prefix:Ue,uri:$e})})}we===0&&(Pe.closedRoot=!0),Pe.tagName=Pe.attribValue=Pe.attribName="",Pe.attribList.length=0,Pe.state=oe.TEXT}function Ze(Pe){var we=Pe.entity,Ie=we.toLowerCase(),Be,Ke="";return Pe.ENTITIES[we]?Pe.ENTITIES[we]:Pe.ENTITIES[Ie]?Pe.ENTITIES[Ie]:(we=Ie,we.charAt(0)==="#"&&(we.charAt(1)==="x"?(we=we.slice(2),Be=parseInt(we,16),Ke=Be.toString(16)):(we=we.slice(1),Be=parseInt(we,10),Ke=Be.toString(10))),we=we.replace(/^0+/,""),isNaN(Be)||Ke.toLowerCase()!==we?(Ce(Pe,"Invalid character entity"),"&"+Pe.entity+";"):String.fromCodePoint(Be))}function ze(Pe,we){we==="<"?(Pe.state=oe.OPEN_WAKA,Pe.startTagPosition=Pe.position):L(we)||(Ce(Pe,"Non-whitespace before first tag."),Pe.textNode=we,Pe.state=oe.TEXT)}function Te(Pe,we){var Ie="";return we<Pe.length&&(Ie=Pe.charAt(we)),Ie}function Fe(Pe){var we=this;if(this.error)throw this.error;if(we.closed)return ve(we,"Cannot write after close. Assign an onready handler.");if(Pe===null)return ye(we);typeof Pe=="object"&&(Pe=Pe.toString());for(var Ie=0,Be="";Be=Te(Pe,Ie++),we.c=Be,!!Be;)switch(we.trackPosition&&(we.position++,Be===`
`?(we.line++,we.column=0):we.column++),we.state){case oe.BEGIN:if(we.state=oe.BEGIN_WHITESPACE,Be==="\uFEFF")continue;ze(we,Be);continue;case oe.BEGIN_WHITESPACE:ze(we,Be);continue;case oe.TEXT:if(we.sawRoot&&!we.closedRoot){for(var Ke=Ie-1;Be&&Be!=="<"&&Be!=="&";)Be=Te(Pe,Ie++),Be&&we.trackPosition&&(we.position++,Be===`
`?(we.line++,we.column=0):we.column++);we.textNode+=Pe.substring(Ke,Ie-1)}Be==="<"&&!(we.sawRoot&&we.closedRoot&&!we.strict)?(we.state=oe.OPEN_WAKA,we.startTagPosition=we.position):(!L(Be)&&(!we.sawRoot||we.closedRoot)&&Ce(we,"Text data outside of root node."),Be==="&"?we.state=oe.TEXT_ENTITY:we.textNode+=Be);continue;case oe.SCRIPT:Be==="<"?we.state=oe.SCRIPT_ENDING:we.script+=Be;continue;case oe.SCRIPT_ENDING:Be==="/"?we.state=oe.CLOSE_TAG:(we.script+="<"+Be,we.state=oe.SCRIPT);continue;case oe.OPEN_WAKA:if(Be==="!")we.state=oe.SGML_DECL,we.sgmlDecl="";else if(!L(Be))if(de(he,Be))we.state=oe.OPEN_TAG,we.tagName=Be;else if(Be==="/")we.state=oe.CLOSE_TAG,we.tagName="";else if(Be==="?")we.state=oe.PROC_INST,we.procInstName=we.procInstBody="";else{if(Ce(we,"Unencoded <"),we.startTagPosition+1<we.position){var Ve=we.position-we.startTagPosition;Be=new Array(Ve).join(" ")+Be}we.textNode+="<"+Be,we.state=oe.TEXT}continue;case oe.SGML_DECL:if(we.sgmlDecl+Be==="--"){we.state=oe.COMMENT,we.comment="",we.sgmlDecl="";continue}we.doctype&&we.doctype!==!0&&we.sgmlDecl?(we.state=oe.DOCTYPE_DTD,we.doctype+="<!"+we.sgmlDecl+Be,we.sgmlDecl=""):(we.sgmlDecl+Be).toUpperCase()===K?(ke(we,"onopencdata"),we.state=oe.CDATA,we.sgmlDecl="",we.cdata=""):(we.sgmlDecl+Be).toUpperCase()===z?(we.state=oe.DOCTYPE,(we.doctype||we.sawRoot)&&Ce(we,"Inappropriately located doctype declaration"),we.doctype="",we.sgmlDecl=""):Be===">"?(ke(we,"onsgmldeclaration",we.sgmlDecl),we.sgmlDecl="",we.state=oe.TEXT):(Q(Be)&&(we.state=oe.SGML_DECL_QUOTED),we.sgmlDecl+=Be);continue;case oe.SGML_DECL_QUOTED:Be===we.q&&(we.state=oe.SGML_DECL,we.q=""),we.sgmlDecl+=Be;continue;case oe.DOCTYPE:Be===">"?(we.state=oe.TEXT,ke(we,"ondoctype",we.doctype),we.doctype=!0):(we.doctype+=Be,Be==="["?we.state=oe.DOCTYPE_DTD:Q(Be)&&(we.state=oe.DOCTYPE_QUOTED,we.q=Be));continue;case oe.DOCTYPE_QUOTED:we.doctype+=Be,Be===we.q&&(we.q="",we.state=oe.DOCTYPE);continue;case oe.DOCTYPE_DTD:Be==="]"?(we.doctype+=Be,we.state=oe.DOCTYPE):Be==="<"?(we.state=oe.OPEN_WAKA,we.startTagPosition=we.position):Q(Be)?(we.doctype+=Be,we.state=oe.DOCTYPE_DTD_QUOTED,we.q=Be):we.doctype+=Be;continue;case oe.DOCTYPE_DTD_QUOTED:we.doctype+=Be,Be===we.q&&(we.state=oe.DOCTYPE_DTD,we.q="");continue;case oe.COMMENT:Be==="-"?we.state=oe.COMMENT_ENDING:we.comment+=Be;continue;case oe.COMMENT_ENDING:Be==="-"?(we.state=oe.COMMENT_ENDED,we.comment=fe(we.opt,we.comment),we.comment&&ke(we,"oncomment",we.comment),we.comment=""):(we.comment+="-"+Be,we.state=oe.COMMENT);continue;case oe.COMMENT_ENDED:Be!==">"?(Ce(we,"Malformed comment"),we.comment+="--"+Be,we.state=oe.COMMENT):we.doctype&&we.doctype!==!0?we.state=oe.DOCTYPE_DTD:we.state=oe.TEXT;continue;case oe.CDATA:Be==="]"?we.state=oe.CDATA_ENDING:we.cdata+=Be;continue;case oe.CDATA_ENDING:Be==="]"?we.state=oe.CDATA_ENDING_2:(we.cdata+="]"+Be,we.state=oe.CDATA);continue;case oe.CDATA_ENDING_2:Be===">"?(we.cdata&&ke(we,"oncdata",we.cdata),ke(we,"onclosecdata"),we.cdata="",we.state=oe.TEXT):Be==="]"?we.cdata+="]":(we.cdata+="]]"+Be,we.state=oe.CDATA);continue;case oe.PROC_INST:Be==="?"?we.state=oe.PROC_INST_ENDING:L(Be)?we.state=oe.PROC_INST_BODY:we.procInstName+=Be;continue;case oe.PROC_INST_BODY:if(!we.procInstBody&&L(Be))continue;Be==="?"?we.state=oe.PROC_INST_ENDING:we.procInstBody+=Be;continue;case oe.PROC_INST_ENDING:Be===">"?(ke(we,"onprocessinginstruction",{name:we.procInstName,body:we.procInstBody}),we.procInstName=we.procInstBody="",we.state=oe.TEXT):(we.procInstBody+="?"+Be,we.state=oe.PROC_INST_BODY);continue;case oe.OPEN_TAG:de(J,Be)?we.tagName+=Be:(pe(we),Be===">"?Ae(we):Be==="/"?we.state=oe.OPEN_TAG_SLASH:(L(Be)||Ce(we,"Invalid character in tag name"),we.state=oe.ATTRIB));continue;case oe.OPEN_TAG_SLASH:Be===">"?(Ae(we,!0),Ne(we)):(Ce(we,"Forward-slash in opening tag not followed by >"),we.state=oe.ATTRIB);continue;case oe.ATTRIB:if(L(Be))continue;Be===">"?Ae(we):Be==="/"?we.state=oe.OPEN_TAG_SLASH:de(he,Be)?(we.attribName=Be,we.attribValue="",we.state=oe.ATTRIB_NAME):Ce(we,"Invalid attribute name");continue;case oe.ATTRIB_NAME:Be==="="?we.state=oe.ATTRIB_VALUE:Be===">"?(Ce(we,"Attribute without value"),we.attribValue=we.attribName,Ge(we),Ae(we)):L(Be)?we.state=oe.ATTRIB_NAME_SAW_WHITE:de(J,Be)?we.attribName+=Be:Ce(we,"Invalid attribute name");continue;case oe.ATTRIB_NAME_SAW_WHITE:if(Be==="=")we.state=oe.ATTRIB_VALUE;else{if(L(Be))continue;Ce(we,"Attribute without value"),we.tag.attributes[we.attribName]="",we.attribValue="",ke(we,"onattribute",{name:we.attribName,value:""}),we.attribName="",Be===">"?Ae(we):de(he,Be)?(we.attribName=Be,we.state=oe.ATTRIB_NAME):(Ce(we,"Invalid attribute name"),we.state=oe.ATTRIB)}continue;case oe.ATTRIB_VALUE:if(L(Be))continue;Q(Be)?(we.q=Be,we.state=oe.ATTRIB_VALUE_QUOTED):(we.opt.unquotedAttributeValues||ve(we,"Unquoted attribute value"),we.state=oe.ATTRIB_VALUE_UNQUOTED,we.attribValue=Be);continue;case oe.ATTRIB_VALUE_QUOTED:if(Be!==we.q){Be==="&"?we.state=oe.ATTRIB_VALUE_ENTITY_Q:we.attribValue+=Be;continue}Ge(we),we.q="",we.state=oe.ATTRIB_VALUE_CLOSED;continue;case oe.ATTRIB_VALUE_CLOSED:L(Be)?we.state=oe.ATTRIB:Be===">"?Ae(we):Be==="/"?we.state=oe.OPEN_TAG_SLASH:de(he,Be)?(Ce(we,"No whitespace between attributes"),we.attribName=Be,we.attribValue="",we.state=oe.ATTRIB_NAME):Ce(we,"Invalid attribute name");continue;case oe.ATTRIB_VALUE_UNQUOTED:if(!ce(Be)){Be==="&"?we.state=oe.ATTRIB_VALUE_ENTITY_U:we.attribValue+=Be;continue}Ge(we),Be===">"?Ae(we):we.state=oe.ATTRIB;continue;case oe.CLOSE_TAG:if(we.tagName)Be===">"?Ne(we):de(J,Be)?we.tagName+=Be:we.script?(we.script+="</"+we.tagName,we.tagName="",we.state=oe.SCRIPT):(L(Be)||Ce(we,"Invalid tagname in closing tag"),we.state=oe.CLOSE_TAG_SAW_WHITE);else{if(L(Be))continue;se(he,Be)?we.script?(we.script+="</"+Be,we.state=oe.SCRIPT):Ce(we,"Invalid tagname in closing tag."):we.tagName=Be}continue;case oe.CLOSE_TAG_SAW_WHITE:if(L(Be))continue;Be===">"?Ne(we):Ce(we,"Invalid characters in closing tag");continue;case oe.TEXT_ENTITY:case oe.ATTRIB_VALUE_ENTITY_Q:case oe.ATTRIB_VALUE_ENTITY_U:var je,Le;switch(we.state){case oe.TEXT_ENTITY:je=oe.TEXT,Le="textNode";break;case oe.ATTRIB_VALUE_ENTITY_Q:je=oe.ATTRIB_VALUE_QUOTED,Le="attribValue";break;case oe.ATTRIB_VALUE_ENTITY_U:je=oe.ATTRIB_VALUE_UNQUOTED,Le="attribValue";break}if(Be===";"){var et=Ze(we);we.opt.unparsedEntities&&!Object.values(m.XML_ENTITIES).includes(et)?(we.entity="",we.state=je,we.write(et)):(we[Le]+=et,we.entity="",we.state=je)}else de(we.entity.length?X:W,Be)?we.entity+=Be:(Ce(we,"Invalid character in entity name"),we[Le]+="&"+we.entity+Be,we.entity="",we.state=je);continue;default:throw new Error(we,"Unknown state: "+we.state)}return we.position>=we.bufferCheckPosition&&V(we),we}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var Pe=String.fromCharCode,we=Math.floor,Ie=function(){var Be=16384,Ke=[],Ve,je,Le=-1,et=arguments.length;if(!et)return"";for(var Qe="";++Le<et;){var Ue=Number(arguments[Le]);if(!isFinite(Ue)||Ue<0||Ue>1114111||we(Ue)!==Ue)throw RangeError("Invalid code point: "+Ue);Ue<=65535?Ke.push(Ue):(Ue-=65536,Ve=(Ue>>10)+55296,je=Ue%1024+56320,Ke.push(Ve,je)),(Le+1===et||Ke.length>Be)&&(Qe+=Pe.apply(null,Ke),Ke.length=0)}return Qe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ie,configurable:!0,writable:!0}):String.fromCodePoint=Ie}()})(k)}(sax)),sax}var events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var k=typeof Reflect=="object"?Reflect:null,m=k&&typeof k.apply=="function"?k.apply:function(Q,ce,de){return Function.prototype.apply.call(Q,ce,de)},M;k&&typeof k.ownKeys=="function"?M=k.ownKeys:Object.getOwnPropertySymbols?M=function(Q){return Object.getOwnPropertyNames(Q).concat(Object.getOwnPropertySymbols(Q))}:M=function(Q){return Object.getOwnPropertyNames(Q)};function G(L){console&&console.warn&&console.warn(L)}var V=Number.isNaN||function(Q){return Q!==Q};function q(){q.init.call(this)}events.exports=q,events.exports.once=J,q.EventEmitter=q,q.prototype._events=void 0,q.prototype._eventsCount=0,q.prototype._maxListeners=void 0;var $=10;function D(L){if(typeof L!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof L)}Object.defineProperty(q,"defaultMaxListeners",{enumerable:!0,get:function(){return $},set:function(L){if(typeof L!="number"||L<0||V(L))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+L+".");$=L}}),q.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},q.prototype.setMaxListeners=function(Q){if(typeof Q!="number"||Q<0||V(Q))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Q+".");return this._maxListeners=Q,this};function B(L){return L._maxListeners===void 0?q.defaultMaxListeners:L._maxListeners}q.prototype.getMaxListeners=function(){return B(this)},q.prototype.emit=function(Q){for(var ce=[],de=1;de<arguments.length;de++)ce.push(arguments[de]);var se=Q==="error",oe=this._events;if(oe!==void 0)se=se&&oe.error===void 0;else if(!se)return!1;if(se){var me;if(ce.length>0&&(me=ce[0]),me instanceof Error)throw me;var Ee=new Error("Unhandled error."+(me?" ("+me.message+")":""));throw Ee.context=me,Ee}var ke=oe[Q];if(ke===void 0)return!1;if(typeof ke=="function")m(ke,this,ce);else for(var xe=ke.length,fe=ae(ke,xe),de=0;de<xe;++de)m(fe[de],this,ce);return!0};function R(L,Q,ce,de){var se,oe,me;if(D(ce),oe=L._events,oe===void 0?(oe=L._events=Object.create(null),L._eventsCount=0):(oe.newListener!==void 0&&(L.emit("newListener",Q,ce.listener?ce.listener:ce),oe=L._events),me=oe[Q]),me===void 0)me=oe[Q]=ce,++L._eventsCount;else if(typeof me=="function"?me=oe[Q]=de?[ce,me]:[me,ce]:de?me.unshift(ce):me.push(ce),se=B(L),se>0&&me.length>se&&!me.warned){me.warned=!0;var Ee=new Error("Possible EventEmitter memory leak detected. "+me.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ee.name="MaxListenersExceededWarning",Ee.emitter=L,Ee.type=Q,Ee.count=me.length,G(Ee)}return L}q.prototype.addListener=function(Q,ce){return R(this,Q,ce,!1)},q.prototype.on=q.prototype.addListener,q.prototype.prependListener=function(Q,ce){return R(this,Q,ce,!0)};function U(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function K(L,Q,ce){var de={fired:!1,wrapFn:void 0,target:L,type:Q,listener:ce},se=U.bind(de);return se.listener=ce,de.wrapFn=se,se}q.prototype.once=function(Q,ce){return D(ce),this.on(Q,K(this,Q,ce)),this},q.prototype.prependOnceListener=function(Q,ce){return D(ce),this.prependListener(Q,K(this,Q,ce)),this},q.prototype.removeListener=function(Q,ce){var de,se,oe,me,Ee;if(D(ce),se=this._events,se===void 0)return this;if(de=se[Q],de===void 0)return this;if(de===ce||de.listener===ce)--this._eventsCount===0?this._events=Object.create(null):(delete se[Q],se.removeListener&&this.emit("removeListener",Q,de.listener||ce));else if(typeof de!="function"){for(oe=-1,me=de.length-1;me>=0;me--)if(de[me]===ce||de[me].listener===ce){Ee=de[me].listener,oe=me;break}if(oe<0)return this;oe===0?de.shift():ie(de,oe),de.length===1&&(se[Q]=de[0]),se.removeListener!==void 0&&this.emit("removeListener",Q,Ee||ce)}return this},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(Q){var ce,de,se;if(de=this._events,de===void 0)return this;if(de.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):de[Q]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete de[Q]),this;if(arguments.length===0){var oe=Object.keys(de),me;for(se=0;se<oe.length;++se)me=oe[se],me!=="removeListener"&&this.removeAllListeners(me);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(ce=de[Q],typeof ce=="function")this.removeListener(Q,ce);else if(ce!==void 0)for(se=ce.length-1;se>=0;se--)this.removeListener(Q,ce[se]);return this};function z(L,Q,ce){var de=L._events;if(de===void 0)return[];var se=de[Q];return se===void 0?[]:typeof se=="function"?ce?[se.listener||se]:[se]:ce?he(se):ae(se,se.length)}q.prototype.listeners=function(Q){return z(this,Q,!0)},q.prototype.rawListeners=function(Q){return z(this,Q,!1)},q.listenerCount=function(L,Q){return typeof L.listenerCount=="function"?L.listenerCount(Q):e.call(L,Q)},q.prototype.listenerCount=e;function e(L){var Q=this._events;if(Q!==void 0){var ce=Q[L];if(typeof ce=="function")return 1;if(ce!==void 0)return ce.length}return 0}q.prototype.eventNames=function(){return this._eventsCount>0?M(this._events):[]};function ae(L,Q){for(var ce=new Array(Q),de=0;de<Q;++de)ce[de]=L[de];return ce}function ie(L,Q){for(;Q+1<L.length;Q++)L[Q]=L[Q+1];L.pop()}function he(L){for(var Q=new Array(L.length),ce=0;ce<Q.length;++ce)Q[ce]=L[ce].listener||L[ce];return Q}function J(L,Q){return new Promise(function(ce,de){function se(me){L.removeListener(Q,oe),de(me)}function oe(){typeof L.removeListener=="function"&&L.removeListener("error",se),ce([].slice.call(arguments))}X(L,Q,oe,{once:!0}),Q!=="error"&&W(L,se,{once:!0})})}function W(L,Q,ce){typeof L.on=="function"&&X(L,"error",Q,ce)}function X(L,Q,ce,de){if(typeof L.on=="function")de.once?L.once(Q,ce):L.on(Q,ce);else if(typeof L.addEventListener=="function")L.addEventListener(Q,function se(oe){de.once&&L.removeEventListener(Q,se),ce(oe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof L)}return events.exports}var bom={},hasRequiredBom;function requireBom(){return hasRequiredBom||(hasRequiredBom=1,(function(){bom.stripBOM=function(k){return k[0]==="\uFEFF"?k.substring(1):k}}).call(commonjsGlobal$1)),bom}var processors={},hasRequiredProcessors;function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,(function(){var k;k=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(m){return m.toLowerCase()},processors.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},processors.stripPrefix=function(m){return m.replace(k,"")},processors.parseNumbers=function(m){return isNaN(m)||(m=m%1===0?parseInt(m,10):parseFloat(m)),m},processors.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(commonjsGlobal$1)),processors}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(k){(function(){var m,M,G,V,q,$,D,B,R,U=function(e,ae){return function(){return e.apply(ae,arguments)}},K=function(e,ae){for(var ie in ae)z.call(ae,ie)&&(e[ie]=ae[ie]);function he(){this.constructor=e}return he.prototype=ae.prototype,e.prototype=new he,e.__super__=ae.prototype,e},z={}.hasOwnProperty;B=requireSax(),V=requireEvents(),m=requireBom(),D=requireProcessors(),R=require$$7.setImmediate,M=requireDefaults().defaults,q=function(e){return typeof e=="object"&&e!=null&&Object.keys(e).length===0},$=function(e,ae,ie){var he,J,W;for(he=0,J=e.length;he<J;he++)W=e[he],ae=W(ae,ie);return ae},G=function(e,ae,ie){var he;return he=Object.create(null),he.value=ie,he.writable=!0,he.enumerable=!0,he.configurable=!0,Object.defineProperty(e,ae,he)},k.Parser=function(e){K(ae,e);function ae(ie){this.parseStringPromise=U(this.parseStringPromise,this),this.parseString=U(this.parseString,this),this.reset=U(this.reset,this),this.assignOrPush=U(this.assignOrPush,this),this.processAsync=U(this.processAsync,this);var he,J,W;if(!(this instanceof k.Parser))return new k.Parser(ie);this.options={},J=M["0.2"];for(he in J)z.call(J,he)&&(W=J[he],this.options[he]=W);for(he in ie)z.call(ie,he)&&(W=ie[he],this.options[he]=W);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(D.normalize)),this.reset()}return ae.prototype.processAsync=function(){var ie,he;try{return this.remaining.length<=this.options.chunkSize?(ie=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ie),this.saxParser.close()):(ie=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ie),R(this.processAsync))}catch(J){if(he=J,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(he)}},ae.prototype.assignOrPush=function(ie,he,J){return he in ie?(ie[he]instanceof Array||G(ie,he,[ie[he]]),ie[he].push(J)):this.options.explicitArray?G(ie,he,[J]):G(ie,he,J)},ae.prototype.reset=function(){var ie,he,J,W;return this.removeAllListeners(),this.saxParser=B.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(X){return function(L){if(X.saxParser.resume(),!X.saxParser.errThrown)return X.saxParser.errThrown=!0,X.emit("error",L)}}(this),this.saxParser.onend=function(X){return function(){if(!X.saxParser.ended)return X.saxParser.ended=!0,X.emit("end",X.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,W=[],ie=this.options.attrkey,he=this.options.charkey,this.saxParser.onopentag=function(X){return function(L){var Q,ce,de,se,oe;if(de={},de[he]="",!X.options.ignoreAttrs){oe=L.attributes;for(Q in oe)z.call(oe,Q)&&(!(ie in de)&&!X.options.mergeAttrs&&(de[ie]={}),ce=X.options.attrValueProcessors?$(X.options.attrValueProcessors,L.attributes[Q],Q):L.attributes[Q],se=X.options.attrNameProcessors?$(X.options.attrNameProcessors,Q):Q,X.options.mergeAttrs?X.assignOrPush(de,se,ce):G(de[ie],se,ce))}return de["#name"]=X.options.tagNameProcessors?$(X.options.tagNameProcessors,L.name):L.name,X.options.xmlns&&(de[X.options.xmlnskey]={uri:L.uri,local:L.local}),W.push(de)}}(this),this.saxParser.onclosetag=function(X){return function(){var L,Q,ce,de,se,oe,me,Ee,ke,xe;if(oe=W.pop(),se=oe["#name"],(!X.options.explicitChildren||!X.options.preserveChildrenOrder)&&delete oe["#name"],oe.cdata===!0&&(L=oe.cdata,delete oe.cdata),ke=W[W.length-1],oe[he].match(/^\s*$/)&&!L?(Q=oe[he],delete oe[he]):(X.options.trim&&(oe[he]=oe[he].trim()),X.options.normalize&&(oe[he]=oe[he].replace(/\s{2,}/g," ").trim()),oe[he]=X.options.valueProcessors?$(X.options.valueProcessors,oe[he],se):oe[he],Object.keys(oe).length===1&&he in oe&&!X.EXPLICIT_CHARKEY&&(oe=oe[he])),q(oe)&&(typeof X.options.emptyTag=="function"?oe=X.options.emptyTag():oe=X.options.emptyTag!==""?X.options.emptyTag:Q),X.options.validator!=null&&(xe="/"+function(){var fe,ve,ye;for(ye=[],fe=0,ve=W.length;fe<ve;fe++)de=W[fe],ye.push(de["#name"]);return ye}().concat(se).join("/"),function(){var fe;try{return oe=X.options.validator(xe,ke&&ke[se],oe)}catch(ve){return fe=ve,X.emit("error",fe)}}()),X.options.explicitChildren&&!X.options.mergeAttrs&&typeof oe=="object"){if(!X.options.preserveChildrenOrder)de={},X.options.attrkey in oe&&(de[X.options.attrkey]=oe[X.options.attrkey],delete oe[X.options.attrkey]),!X.options.charsAsChildren&&X.options.charkey in oe&&(de[X.options.charkey]=oe[X.options.charkey],delete oe[X.options.charkey]),Object.getOwnPropertyNames(oe).length>0&&(de[X.options.childkey]=oe),oe=de;else if(ke){ke[X.options.childkey]=ke[X.options.childkey]||[],me={};for(ce in oe)z.call(oe,ce)&&G(me,ce,oe[ce]);ke[X.options.childkey].push(me),delete oe["#name"],Object.keys(oe).length===1&&he in oe&&!X.EXPLICIT_CHARKEY&&(oe=oe[he])}}return W.length>0?X.assignOrPush(ke,se,oe):(X.options.explicitRoot&&(Ee=oe,oe={},G(oe,se,Ee)),X.resultObject=oe,X.saxParser.ended=!0,X.emit("end",X.resultObject))}}(this),J=function(X){return function(L){var Q,ce;if(ce=W[W.length-1],ce)return ce[he]+=L,X.options.explicitChildren&&X.options.preserveChildrenOrder&&X.options.charsAsChildren&&(X.options.includeWhiteChars||L.replace(/\\n/g,"").trim()!=="")&&(ce[X.options.childkey]=ce[X.options.childkey]||[],Q={"#name":"__text__"},Q[he]=L,X.options.normalize&&(Q[he]=Q[he].replace(/\s{2,}/g," ").trim()),ce[X.options.childkey].push(Q)),ce}}(this),this.saxParser.ontext=J,this.saxParser.oncdata=function(X){return function(L){var Q;if(Q=J(L),Q)return Q.cdata=!0}}()},ae.prototype.parseString=function(ie,he){var J;he!=null&&typeof he=="function"&&(this.on("end",function(W){return this.reset(),he(null,W)}),this.on("error",function(W){return this.reset(),he(W)}));try{return ie=ie.toString(),ie.trim()===""?(this.emit("end",null),!0):(ie=m.stripBOM(ie),this.options.async?(this.remaining=ie,R(this.processAsync),this.saxParser):this.saxParser.write(ie).close())}catch(W){if(J=W,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw J}else return this.emit("error",J),this.saxParser.errThrown=!0}},ae.prototype.parseStringPromise=function(ie){return new Promise(function(he){return function(J,W){return he.parseString(ie,function(X,L){return X?W(X):J(L)})}}(this))},ae}(V),k.parseString=function(e,ae,ie){var he,J,W;return ie!=null?(typeof ie=="function"&&(he=ie),typeof ae=="object"&&(J=ae)):(typeof ae=="function"&&(he=ae),J={}),W=new k.Parser(J),W.parseString(e,he)},k.parseStringPromise=function(e,ae){var ie,he;return typeof ae=="object"&&(ie=ae),he=new k.Parser(ie),he.parseStringPromise(e)}}).call(commonjsGlobal$1)}(parser)),parser}var parseStringPromise;(function(){var k,m,M,G=function(q,$){for(var D in $)V.call($,D)&&(q[D]=$[D]);function B(){this.constructor=q}return B.prototype=$.prototype,q.prototype=new B,q.__super__=$.prototype,q},V={}.hasOwnProperty;m=requireDefaults(),k=requireBuilder(),M=requireParser(),requireProcessors(),m.defaults,function(q){G($,q);function $(D){this.message=D}return $}(Error),k.Builder,M.Parser,M.parseString,parseStringPromise=M.parseStringPromise}).call(commonjsGlobal$1);var pdf={exports:{}},dommatrix={exports:{}};/*!
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
* Copyright 2022 © thednp
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
*/var hasRequiredDommatrix;function requireDommatrix(){return hasRequiredDommatrix||(hasRequiredDommatrix=1,function(k,m){(function(M,G){k.exports=G()})(commonjsGlobal$1,function(){function M(W){var X=new ae,L=Array.from(W);if(!L.every(function(Pe){return!Number.isNaN(Pe)}))throw TypeError('CSSMatrix: "'+W+'" must only have numbers.');if(L.length===16){var Q=L[0],ce=L[1],de=L[2],se=L[3],oe=L[4],me=L[5],Ee=L[6],ke=L[7],xe=L[8],fe=L[9],ve=L[10],ye=L[11],Ce=L[12],pe=L[13],_e=L[14],Ge=L[15];X.m11=Q,X.a=Q,X.m21=oe,X.c=oe,X.m31=xe,X.m41=Ce,X.e=Ce,X.m12=ce,X.b=ce,X.m22=me,X.d=me,X.m32=fe,X.m42=pe,X.f=pe,X.m13=de,X.m23=Ee,X.m33=ve,X.m43=_e,X.m14=se,X.m24=ke,X.m34=ye,X.m44=Ge}else if(L.length===6){var Ae=L[0],Ne=L[1],Ze=L[2],ze=L[3],Te=L[4],Fe=L[5];X.m11=Ae,X.a=Ae,X.m12=Ne,X.b=Ne,X.m21=Ze,X.c=Ze,X.m22=ze,X.d=ze,X.m41=Te,X.e=Te,X.m42=Fe,X.f=Fe}else throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");return X}function G(W){var X=Object.keys(new ae);if(typeof W=="object"&&X.every(function(L){return L in W}))return M([W.m11,W.m12,W.m13,W.m14,W.m21,W.m22,W.m23,W.m24,W.m31,W.m32,W.m33,W.m34,W.m41,W.m42,W.m43,W.m44]);throw TypeError('CSSMatrix: "'+JSON.stringify(W)+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function V(W){if(typeof W!="string")throw TypeError('CSSMatrix: "'+W+'" is not a string.');var X=String(W).replace(/\s/g,""),L=new ae,Q='CSSMatrix: invalid transform string "'+W+'"';return X.split(")").filter(function(ce){return ce}).forEach(function(ce){var de=ce.split("("),se=de[0],oe=de[1];if(!oe)throw TypeError(Q);var me=oe.split(",").map(function(Te){return Te.includes("rad")?parseFloat(Te)*(180/Math.PI):parseFloat(Te)}),Ee=me[0],ke=me[1],xe=me[2],fe=me[3],ve=[Ee,ke,xe],ye=[Ee,ke,xe,fe];if(se==="perspective"&&Ee&&[ke,xe].every(function(Te){return Te===void 0}))L.m34=-1/Ee;else if(se.includes("matrix")&&[6,16].includes(me.length)&&me.every(function(Te){return!Number.isNaN(+Te)})){var Ce=me.map(function(Te){return Math.abs(Te)<1e-6?0:Te});L=L.multiply(M(Ce))}else if(se==="translate3d"&&ve.every(function(Te){return!Number.isNaN(+Te)}))L=L.translate(Ee,ke,xe);else if(se==="translate"&&Ee&&xe===void 0)L=L.translate(Ee,ke||0,0);else if(se==="rotate3d"&&ye.every(function(Te){return!Number.isNaN(+Te)})&&fe)L=L.rotateAxisAngle(Ee,ke,xe,fe);else if(se==="rotate"&&Ee&&[ke,xe].every(function(Te){return Te===void 0}))L=L.rotate(0,0,Ee);else if(se==="scale3d"&&ve.every(function(Te){return!Number.isNaN(+Te)})&&ve.some(function(Te){return Te!==1}))L=L.scale(Ee,ke,xe);else if(se==="scale"&&!Number.isNaN(Ee)&&Ee!==1&&xe===void 0){var pe=Number.isNaN(+ke),_e=pe?Ee:ke;L=L.scale(Ee,_e,1)}else if(se==="skew"&&(Ee||!Number.isNaN(Ee)&&ke)&&xe===void 0)L=L.skew(Ee,ke||0);else if(/[XYZ]/.test(se)&&Ee&&[ke,xe].every(function(Te){return Te===void 0})&&["translate","rotate","scale","skew"].some(function(Te){return se.includes(Te)}))if(["skewX","skewY"].includes(se))L=L[se](Ee);else{var Ge=se.replace(/[XYZ]/,""),Ae=se.replace(Ge,""),Ne=["X","Y","Z"].indexOf(Ae),Ze=Ge==="scale"?1:0,ze=[Ne===0?Ee:Ze,Ne===1?Ee:Ze,Ne===2?Ee:Ze];L=L[Ge].apply(L,ze)}else throw TypeError(Q)}),L}function q(W,X){return X?[W.a,W.b,W.c,W.d,W.e,W.f]:[W.m11,W.m12,W.m13,W.m14,W.m21,W.m22,W.m23,W.m24,W.m31,W.m32,W.m33,W.m34,W.m41,W.m42,W.m43,W.m44]}function $(W,X,L){var Q=new ae;return Q.m41=W,Q.e=W,Q.m42=X,Q.f=X,Q.m43=L,Q}function D(W,X,L){var Q=new ae,ce=Math.PI/180,de=W*ce,se=X*ce,oe=L*ce,me=Math.cos(de),Ee=-Math.sin(de),ke=Math.cos(se),xe=-Math.sin(se),fe=Math.cos(oe),ve=-Math.sin(oe),ye=ke*fe,Ce=-ke*ve;Q.m11=ye,Q.a=ye,Q.m12=Ce,Q.b=Ce,Q.m13=xe;var pe=Ee*xe*fe+me*ve;Q.m21=pe,Q.c=pe;var _e=me*fe-Ee*xe*ve;return Q.m22=_e,Q.d=_e,Q.m23=-Ee*ke,Q.m31=Ee*ve-me*xe*fe,Q.m32=Ee*fe+me*xe*ve,Q.m33=me*ke,Q}function B(W,X,L,Q){var ce=new ae,de=Math.sqrt(W*W+X*X+L*L);if(de===0)return ce;var se=W/de,oe=X/de,me=L/de,Ee=Q*(Math.PI/360),ke=Math.sin(Ee),xe=Math.cos(Ee),fe=ke*ke,ve=se*se,ye=oe*oe,Ce=me*me,pe=1-2*(ye+Ce)*fe;ce.m11=pe,ce.a=pe;var _e=2*(se*oe*fe+me*ke*xe);ce.m12=_e,ce.b=_e,ce.m13=2*(se*me*fe-oe*ke*xe);var Ge=2*(oe*se*fe-me*ke*xe);ce.m21=Ge,ce.c=Ge;var Ae=1-2*(Ce+ve)*fe;return ce.m22=Ae,ce.d=Ae,ce.m23=2*(oe*me*fe+se*ke*xe),ce.m31=2*(me*se*fe+oe*ke*xe),ce.m32=2*(me*oe*fe-se*ke*xe),ce.m33=1-2*(ve+ye)*fe,ce}function R(W,X,L){var Q=new ae;return Q.m11=W,Q.a=W,Q.m22=X,Q.d=X,Q.m33=L,Q}function U(W,X){var L=new ae;if(W){var Q=W*Math.PI/180,ce=Math.tan(Q);L.m21=ce,L.c=ce}if(X){var de=X*Math.PI/180,se=Math.tan(de);L.m12=se,L.b=se}return L}function K(W){return U(W,0)}function z(W){return U(0,W)}function e(W,X){var L=X.m11*W.m11+X.m12*W.m21+X.m13*W.m31+X.m14*W.m41,Q=X.m11*W.m12+X.m12*W.m22+X.m13*W.m32+X.m14*W.m42,ce=X.m11*W.m13+X.m12*W.m23+X.m13*W.m33+X.m14*W.m43,de=X.m11*W.m14+X.m12*W.m24+X.m13*W.m34+X.m14*W.m44,se=X.m21*W.m11+X.m22*W.m21+X.m23*W.m31+X.m24*W.m41,oe=X.m21*W.m12+X.m22*W.m22+X.m23*W.m32+X.m24*W.m42,me=X.m21*W.m13+X.m22*W.m23+X.m23*W.m33+X.m24*W.m43,Ee=X.m21*W.m14+X.m22*W.m24+X.m23*W.m34+X.m24*W.m44,ke=X.m31*W.m11+X.m32*W.m21+X.m33*W.m31+X.m34*W.m41,xe=X.m31*W.m12+X.m32*W.m22+X.m33*W.m32+X.m34*W.m42,fe=X.m31*W.m13+X.m32*W.m23+X.m33*W.m33+X.m34*W.m43,ve=X.m31*W.m14+X.m32*W.m24+X.m33*W.m34+X.m34*W.m44,ye=X.m41*W.m11+X.m42*W.m21+X.m43*W.m31+X.m44*W.m41,Ce=X.m41*W.m12+X.m42*W.m22+X.m43*W.m32+X.m44*W.m42,pe=X.m41*W.m13+X.m42*W.m23+X.m43*W.m33+X.m44*W.m43,_e=X.m41*W.m14+X.m42*W.m24+X.m43*W.m34+X.m44*W.m44;return M([L,Q,ce,de,se,oe,me,Ee,ke,xe,fe,ve,ye,Ce,pe,_e])}var ae=function(){for(var X=[],L=arguments.length;L--;)X[L]=arguments[L];var Q=this;if(Q.a=1,Q.b=0,Q.c=0,Q.d=1,Q.e=0,Q.f=0,Q.m11=1,Q.m12=0,Q.m13=0,Q.m14=0,Q.m21=0,Q.m22=1,Q.m23=0,Q.m24=0,Q.m31=0,Q.m32=0,Q.m33=1,Q.m34=0,Q.m41=0,Q.m42=0,Q.m43=0,Q.m44=1,X.length){var ce=[16,6].some(function(de){return de===X.length})?X:X[0];return Q.setMatrixValue(ce)}return Q},ie={isIdentity:{configurable:!0},is2D:{configurable:!0}};ie.isIdentity.get=function(){var W=this;return W.m11===1&&W.m12===0&&W.m13===0&&W.m14===0&&W.m21===0&&W.m22===1&&W.m23===0&&W.m24===0&&W.m31===0&&W.m32===0&&W.m33===1&&W.m34===0&&W.m41===0&&W.m42===0&&W.m43===0&&W.m44===1},ie.is2D.get=function(){var W=this;return W.m31===0&&W.m32===0&&W.m33===1&&W.m34===0&&W.m43===0&&W.m44===1},ae.prototype.setMatrixValue=function(X){var L=this;return typeof X=="string"&&X.length&&X!=="none"?V(X):[Array,Float64Array,Float32Array].some(function(Q){return X instanceof Q})?M(X):[ae,DOMMatrix,Object].some(function(Q){return X instanceof Q})?G(X):L},ae.prototype.toFloat32Array=function(X){return Float32Array.from(q(this,X))},ae.prototype.toFloat64Array=function(X){return Float64Array.from(q(this,X))},ae.prototype.toString=function(){var X=this,L=X.is2D,Q=X.toFloat64Array(L).join(", "),ce=L?"matrix":"matrix3d";return ce+"("+Q+")"},ae.prototype.toJSON=function(){var X=this,L=X.is2D,Q=X.isIdentity;return Object.assign({},X,{is2D:L,isIdentity:Q})},ae.prototype.multiply=function(X){return e(this,X)},ae.prototype.translate=function(X,L,Q){var ce=X,de=L,se=Q;return de===void 0&&(de=0),se===void 0&&(se=0),e(this,$(ce,de,se))},ae.prototype.scale=function(X,L,Q){var ce=X,de=L,se=Q;return de===void 0&&(de=X),se===void 0&&(se=1),e(this,R(ce,de,se))},ae.prototype.rotate=function(X,L,Q){var ce=X,de=L||0,se=Q||0;return typeof X=="number"&&L===void 0&&Q===void 0&&(se=ce,ce=0,de=0),e(this,D(ce,de,se))},ae.prototype.rotateAxisAngle=function(X,L,Q,ce){if([X,L,Q,ce].some(function(de){return Number.isNaN(+de)}))throw new TypeError("CSSMatrix: expecting 4 values");return e(this,B(X,L,Q,ce))},ae.prototype.skewX=function(X){return e(this,K(X))},ae.prototype.skewY=function(X){return e(this,z(X))},ae.prototype.skew=function(X,L){return e(this,U(X,L))},ae.prototype.transformPoint=function(X){var L=this,Q=L.m11*X.x+L.m21*X.y+L.m31*X.z+L.m41*X.w,ce=L.m12*X.x+L.m22*X.y+L.m32*X.z+L.m42*X.w,de=L.m13*X.x+L.m23*X.y+L.m33*X.z+L.m43*X.w,se=L.m14*X.x+L.m24*X.y+L.m34*X.z+L.m44*X.w;return X instanceof DOMPoint?new DOMPoint(Q,ce,de,se):{x:Q,y:ce,z:de,w:se}},Object.defineProperties(ae.prototype,ie),Object.assign(ae,{Translate:$,Rotate:D,RotateAxisAngle:B,Scale:R,SkewX:K,SkewY:z,Skew:U,Multiply:e,fromArray:M,fromMatrix:G,fromString:V,toArray:q});var he="1.0.3",J=he;return Object.assign(ae,{Version:J}),ae})}(dommatrix)),dommatrix.exports}var ponyfill={exports:{}};/**
* @license
* web-streams-polyfill v3.3.3
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
* This code is released under the MIT license.
* SPDX-License-Identifier: MIT
*/var hasRequiredPonyfill;function requirePonyfill(){return hasRequiredPonyfill||(hasRequiredPonyfill=1,function(k,m){(function(M,G){G(m)})(commonjsGlobal$1,function(M){var G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(Xe){return"Symbol(".concat(Xe,")")};function V(Xe,ht){var Ot={label:0,sent:function(){if(vr[0]&1)throw vr[1];return vr[1]},trys:[],ops:[]},tr,dr,vr,$r;return $r={next:Zr(0),throw:Zr(1),return:Zr(2)},typeof Symbol=="function"&&($r[Symbol.iterator]=function(){return this}),$r;function Zr(en){return function(Tn){return _n([en,Tn])}}function _n(en){if(tr)throw new TypeError("Generator is already executing.");for(;$r&&($r=0,en[0]&&(Ot=0)),Ot;)try{if(tr=1,dr&&(vr=en[0]&2?dr.return:en[0]?dr.throw||((vr=dr.return)&&vr.call(dr),0):dr.next)&&!(vr=vr.call(dr,en[1])).done)return vr;switch(dr=0,vr&&(en=[en[0]&2,vr.value]),en[0]){case 0:case 1:vr=en;break;case 4:return Ot.label++,{value:en[1],done:!1};case 5:Ot.label++,dr=en[1],en=[0];continue;case 7:en=Ot.ops.pop(),Ot.trys.pop();continue;default:if(vr=Ot.trys,!(vr=vr.length>0&&vr[vr.length-1])&&(en[0]===6||en[0]===2)){Ot=0;continue}if(en[0]===3&&(!vr||en[1]>vr[0]&&en[1]<vr[3])){Ot.label=en[1];break}if(en[0]===6&&Ot.label<vr[1]){Ot.label=vr[1],vr=en;break}if(vr&&Ot.label<vr[2]){Ot.label=vr[2],Ot.ops.push(en);break}vr[2]&&Ot.ops.pop(),Ot.trys.pop();continue}en=ht.call(Xe,Ot)}catch(Tn){en=[6,Tn],dr=0}finally{tr=vr=0}if(en[0]&5)throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}}function q(Xe){var ht=typeof Symbol=="function"&&Symbol.iterator,Ot=ht&&Xe[ht],tr=0;if(Ot)return Ot.call(Xe);if(Xe&&typeof Xe.length=="number")return{next:function(){return Xe&&tr>=Xe.length&&(Xe=void 0),{value:Xe&&Xe[tr++],done:!Xe}}};throw new TypeError(ht?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(Xe){return this instanceof $?(this.v=Xe,this):new $(Xe)}function D(Xe,ht,Ot){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tr=Ot.apply(Xe,ht||[]),dr,vr=[];return dr={},$r("next"),$r("throw"),$r("return"),dr[Symbol.asyncIterator]=function(){return this},dr;function $r(Ln){tr[Ln]&&(dr[Ln]=function(ai){return new Promise(function(wi,Mi){vr.push([Ln,ai,wi,Mi])>1||Zr(Ln,ai)})})}function Zr(Ln,ai){try{_n(tr[Ln](ai))}catch(wi){Nn(vr[0][3],wi)}}function _n(Ln){Ln.value instanceof $?Promise.resolve(Ln.value.v).then(en,Tn):Nn(vr[0][2],Ln)}function en(Ln){Zr("next",Ln)}function Tn(Ln){Zr("throw",Ln)}function Nn(Ln,ai){Ln(ai),vr.shift(),vr.length&&Zr(vr[0][0],vr[0][1])}}function B(Xe){var ht,Ot;return ht={},tr("next"),tr("throw",function(dr){throw dr}),tr("return"),ht[Symbol.iterator]=function(){return this},ht;function tr(dr,vr){ht[dr]=Xe[dr]?function($r){return(Ot=!Ot)?{value:$(Xe[dr]($r)),done:!1}:vr?vr($r):$r}:vr}}function R(Xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ht=Xe[Symbol.asyncIterator],Ot;return ht?ht.call(Xe):(Xe=typeof q=="function"?q(Xe):Xe[Symbol.iterator](),Ot={},tr("next"),tr("throw"),tr("return"),Ot[Symbol.asyncIterator]=function(){return this},Ot);function tr(vr){Ot[vr]=Xe[vr]&&function($r){return new Promise(function(Zr,_n){$r=Xe[vr]($r),dr(Zr,_n,$r.done,$r.value)})}}function dr(vr,$r,Zr,_n){Promise.resolve(_n).then(function(en){vr({value:en,done:Zr})},$r)}}typeof SuppressedError=="function"&&SuppressedError;function U(){}function K(Xe){return typeof Xe=="object"&&Xe!==null||typeof Xe=="function"}var z=U;function e(Xe,ht){try{Object.defineProperty(Xe,"name",{value:ht,configurable:!0})}catch{}}var ae=Promise,ie=Promise.prototype.then,he=Promise.reject.bind(ae);function J(Xe){return new ae(Xe)}function W(Xe){return J(function(ht){return ht(Xe)})}function X(Xe){return he(Xe)}function L(Xe,ht,Ot){return ie.call(Xe,ht,Ot)}function Q(Xe,ht,Ot){L(L(Xe,ht,Ot),void 0,z)}function ce(Xe,ht){Q(Xe,ht)}function de(Xe,ht){Q(Xe,void 0,ht)}function se(Xe,ht,Ot){return L(Xe,ht,Ot)}function oe(Xe){L(Xe,void 0,z)}var me=function(Xe){if(typeof queueMicrotask=="function")me=queueMicrotask;else{var ht=W(void 0);me=function(Ot){return L(ht,Ot)}}return me(Xe)};function Ee(Xe,ht,Ot){if(typeof Xe!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(Xe,ht,Ot)}function ke(Xe,ht,Ot){try{return W(Ee(Xe,ht,Ot))}catch(tr){return X(tr)}}var xe=16384,fe=function(){function Xe(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(Xe.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),Xe.prototype.push=function(ht){var Ot=this._back,tr=Ot;Ot._elements.length===xe-1&&(tr={_elements:[],_next:void 0}),Ot._elements.push(ht),tr!==Ot&&(this._back=tr,Ot._next=tr),++this._size},Xe.prototype.shift=function(){var ht=this._front,Ot=ht,tr=this._cursor,dr=tr+1,vr=ht._elements,$r=vr[tr];return dr===xe&&(Ot=ht._next,dr=0),--this._size,this._cursor=dr,ht!==Ot&&(this._front=Ot),vr[tr]=void 0,$r},Xe.prototype.forEach=function(ht){for(var Ot=this._cursor,tr=this._front,dr=tr._elements;(Ot!==dr.length||tr._next!==void 0)&&!(Ot===dr.length&&(tr=tr._next,dr=tr._elements,Ot=0,dr.length===0));)ht(dr[Ot]),++Ot},Xe.prototype.peek=function(){var ht=this._front,Ot=this._cursor;return ht._elements[Ot]},Xe}(),ve=G("[[AbortSteps]]"),ye=G("[[ErrorSteps]]"),Ce=G("[[CancelSteps]]"),pe=G("[[PullSteps]]"),_e=G("[[ReleaseSteps]]");function Ge(Xe,ht){Xe._ownerReadableStream=ht,ht._reader=Xe,ht._state==="readable"?ze(Xe):ht._state==="closed"?Fe(Xe):Te(Xe,ht._storedError)}function Ae(Xe,ht){var Ot=Xe._ownerReadableStream;return Gi(Ot,ht)}function Ne(Xe){var ht=Xe._ownerReadableStream;ht._state==="readable"?Pe(Xe,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):we(Xe,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),ht._readableStreamController[_e](),ht._reader=void 0,Xe._ownerReadableStream=void 0}function Ze(Xe){return new TypeError("Cannot "+Xe+" a stream using a released reader")}function ze(Xe){Xe._closedPromise=J(function(ht,Ot){Xe._closedPromise_resolve=ht,Xe._closedPromise_reject=Ot})}function Te(Xe,ht){ze(Xe),Pe(Xe,ht)}function Fe(Xe){ze(Xe),Ie(Xe)}function Pe(Xe,ht){Xe._closedPromise_reject!==void 0&&(oe(Xe._closedPromise),Xe._closedPromise_reject(ht),Xe._closedPromise_resolve=void 0,Xe._closedPromise_reject=void 0)}function we(Xe,ht){Te(Xe,ht)}function Ie(Xe){Xe._closedPromise_resolve!==void 0&&(Xe._closedPromise_resolve(void 0),Xe._closedPromise_resolve=void 0,Xe._closedPromise_reject=void 0)}var Be=Number.isFinite||function(Xe){return typeof Xe=="number"&&isFinite(Xe)},Ke=Math.trunc||function(Xe){return Xe<0?Math.ceil(Xe):Math.floor(Xe)};function Ve(Xe){return typeof Xe=="object"||typeof Xe=="function"}function je(Xe,ht){if(Xe!==void 0&&!Ve(Xe))throw new TypeError("".concat(ht," is not an object."))}function Le(Xe,ht){if(typeof Xe!="function")throw new TypeError("".concat(ht," is not a function."))}function et(Xe){return typeof Xe=="object"&&Xe!==null||typeof Xe=="function"}function Qe(Xe,ht){if(!et(Xe))throw new TypeError("".concat(ht," is not an object."))}function Ue(Xe,ht,Ot){if(Xe===void 0)throw new TypeError("Parameter ".concat(ht," is required in '").concat(Ot,"'."))}function $e(Xe,ht,Ot){if(Xe===void 0)throw new TypeError("".concat(ht," is required in '").concat(Ot,"'."))}function Ye(Xe){return Number(Xe)}function tt(Xe){return Xe===0?0:Xe}function ot(Xe){return tt(Ke(Xe))}function st(Xe,ht){var Ot=0,tr=Number.MAX_SAFE_INTEGER,dr=Number(Xe);if(dr=tt(dr),!Be(dr))throw new TypeError("".concat(ht," is not a finite number"));if(dr=ot(dr),dr<Ot||dr>tr)throw new TypeError("".concat(ht," is outside the accepted range of ").concat(Ot," to ").concat(tr,", inclusive"));return!Be(dr)||dr===0?0:dr}function dt(Xe,ht){if(!Ea(Xe))throw new TypeError("".concat(ht," is not a ReadableStream."))}function ct(Xe){return new Je(Xe)}function mt(Xe,ht){Xe._reader._readRequests.push(ht)}function ut(Xe,ht,Ot){var tr=Xe._reader,dr=tr._readRequests.shift();Ot?dr._closeSteps():dr._chunkSteps(ht)}function rt(Xe){return Xe._reader._readRequests.length}function He(Xe){var ht=Xe._reader;return!(ht===void 0||!St(ht))}var Je=function(){function Xe(ht){if(Ue(ht,1,"ReadableStreamDefaultReader"),dt(ht,"First parameter"),Ca(ht))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Ge(this,ht),this._readRequests=new fe}return Object.defineProperty(Xe.prototype,"closed",{get:function(){return St(this)?this._closedPromise:X(Pt("closed"))},enumerable:!1,configurable:!0}),Xe.prototype.cancel=function(ht){return ht===void 0&&(ht=void 0),St(this)?this._ownerReadableStream===void 0?X(Ze("cancel")):Ae(this,ht):X(Pt("cancel"))},Xe.prototype.read=function(){if(!St(this))return X(Pt("read"));if(this._ownerReadableStream===void 0)return X(Ze("read from"));var ht,Ot,tr=J(function(vr,$r){ht=vr,Ot=$r}),dr={_chunkSteps:function(vr){return ht({value:vr,done:!1})},_closeSteps:function(){return ht({value:void 0,done:!0})},_errorSteps:function(vr){return Ot(vr)}};return bt(this,dr),tr},Xe.prototype.releaseLock=function(){if(!St(this))throw Pt("releaseLock");this._ownerReadableStream!==void 0&&pt(this)},Xe}();Object.defineProperties(Je.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),e(Je.prototype.cancel,"cancel"),e(Je.prototype.read,"read"),e(Je.prototype.releaseLock,"releaseLock"),typeof G.toStringTag=="symbol"&&Object.defineProperty(Je.prototype,G.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function St(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_readRequests")?!1:Xe instanceof Je}function bt(Xe,ht){var Ot=Xe._ownerReadableStream;Ot._disturbed=!0,Ot._state==="closed"?ht._closeSteps():Ot._state==="errored"?ht._errorSteps(Ot._storedError):Ot._readableStreamController[pe](ht)}function pt(Xe){Ne(Xe);var ht=new TypeError("Reader was released");wt(Xe,ht)}function wt(Xe,ht){var Ot=Xe._readRequests;Xe._readRequests=new fe,Ot.forEach(function(tr){tr._errorSteps(ht)})}function Pt(Xe){return new TypeError("ReadableStreamDefaultReader.prototype.".concat(Xe," can only be used on a ReadableStreamDefaultReader"))}var Nt,Vt,Wt;function Mt(Xe){return Xe.slice()}function $t(Xe,ht,Ot,tr,dr){new Uint8Array(Xe).set(new Uint8Array(Ot,tr,dr),ht)}var Yt=function(Xe){return typeof Xe.transfer=="function"?Yt=function(ht){return ht.transfer()}:typeof structuredClone=="function"?Yt=function(ht){return structuredClone(ht,{transfer:[ht]})}:Yt=function(ht){return ht},Yt(Xe)},Ft=function(Xe){return typeof Xe.detached=="boolean"?Ft=function(ht){return ht.detached}:Ft=function(ht){return ht.byteLength===0},Ft(Xe)};function Jt(Xe,ht,Ot){if(Xe.slice)return Xe.slice(ht,Ot);var tr=Ot-ht,dr=new ArrayBuffer(tr);return $t(dr,0,Xe,ht,tr),dr}function er(Xe,ht){var Ot=Xe[ht];if(Ot!=null){if(typeof Ot!="function")throw new TypeError("".concat(String(ht)," is not a function"));return Ot}}function Bt(Xe){var ht,Ot=(ht={},ht[G.iterator]=function(){return Xe.iterator},ht),tr=function(){return D(this,arguments,function(){return V(this,function(vr){switch(vr.label){case 0:return[5,q(B(R(Ot)))];case 1:return[4,$.apply(void 0,[vr.sent()])];case 2:return[4,$.apply(void 0,[vr.sent()])];case 3:return[2,vr.sent()]}})})}(),dr=tr.next;return{iterator:tr,nextMethod:dr,done:!1}}var It=(Wt=(Nt=G.asyncIterator)!==null&&Nt!==void 0?Nt:(Vt=G.for)===null||Vt===void 0?void 0:Vt.call(G,"Symbol.asyncIterator"))!==null&&Wt!==void 0?Wt:"@@asyncIterator";function Dt(Xe,ht,Ot){if(ht===void 0&&(ht="sync"),Ot===void 0)if(ht==="async"){if(Ot=er(Xe,It),Ot===void 0){var tr=er(Xe,G.iterator),dr=Dt(Xe,"sync",tr);return Bt(dr)}}else Ot=er(Xe,G.iterator);if(Ot===void 0)throw new TypeError("The object is not iterable");var vr=Ee(Ot,Xe,[]);if(!K(vr))throw new TypeError("The iterator method must return an object");var $r=vr.next;return{iterator:vr,nextMethod:$r,done:!1}}function Zt(Xe){var ht=Ee(Xe.nextMethod,Xe.iterator,[]);if(!K(ht))throw new TypeError("The iterator.next() method must return an object");return ht}function gr(Xe){return!!Xe.done}function fr(Xe){return Xe.value}var Dr,kr=(Dr={},Dr[It]=function(){return this},Dr);Object.defineProperty(kr,It,{enumerable:!1});var cr=function(){function Xe(ht,Ot){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=ht,this._preventCancel=Ot}return Xe.prototype.next=function(){var ht=this,Ot=function(){return ht._nextSteps()};return this._ongoingPromise=this._ongoingPromise?se(this._ongoingPromise,Ot,Ot):Ot(),this._ongoingPromise},Xe.prototype.return=function(ht){var Ot=this,tr=function(){return Ot._returnSteps(ht)};return this._ongoingPromise?se(this._ongoingPromise,tr,tr):tr()},Xe.prototype._nextSteps=function(){var ht=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var Ot=this._reader,tr,dr,vr=J(function(Zr,_n){tr=Zr,dr=_n}),$r={_chunkSteps:function(Zr){ht._ongoingPromise=void 0,me(function(){return tr({value:Zr,done:!1})})},_closeSteps:function(){ht._ongoingPromise=void 0,ht._isFinished=!0,Ne(Ot),tr({value:void 0,done:!0})},_errorSteps:function(Zr){ht._ongoingPromise=void 0,ht._isFinished=!0,Ne(Ot),dr(Zr)}};return bt(Ot,$r),vr},Xe.prototype._returnSteps=function(ht){if(this._isFinished)return Promise.resolve({value:ht,done:!0});this._isFinished=!0;var Ot=this._reader;if(!this._preventCancel){var tr=Ae(Ot,ht);return Ne(Ot),se(tr,function(){return{value:ht,done:!0}})}return Ne(Ot),W({value:ht,done:!0})},Xe}(),Ar={next:function(){return vt(this)?this._asyncIteratorImpl.next():X(Xt("next"))},return:function(Xe){return vt(this)?this._asyncIteratorImpl.return(Xe):X(Xt("return"))}};Object.setPrototypeOf(Ar,kr);function yt(Xe,ht){var Ot=ct(Xe),tr=new cr(Ot,ht),dr=Object.create(Ar);return dr._asyncIteratorImpl=tr,dr}function vt(Xe){if(!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_asyncIteratorImpl"))return!1;try{return Xe._asyncIteratorImpl instanceof cr}catch{return!1}}function Xt(Xe){return new TypeError("ReadableStreamAsyncIterator.".concat(Xe," can only be used on a ReadableSteamAsyncIterator"))}var At=Number.isNaN||function(Xe){return Xe!==Xe};function zt(Xe){return!(typeof Xe!="number"||At(Xe)||Xe<0)}function Br(Xe){var ht=Jt(Xe.buffer,Xe.byteOffset,Xe.byteOffset+Xe.byteLength);return new Uint8Array(ht)}function br(Xe){var ht=Xe._queue.shift();return Xe._queueTotalSize-=ht.size,Xe._queueTotalSize<0&&(Xe._queueTotalSize=0),ht.value}function Ur(Xe,ht,Ot){if(!zt(Ot)||Ot===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");Xe._queue.push({value:ht,size:Ot}),Xe._queueTotalSize+=Ot}function un(Xe){var ht=Xe._queue.peek();return ht.value}function sr(Xe){Xe._queue=new fe,Xe._queueTotalSize=0}function ur(Xe){return Xe===DataView}function Cr(Xe){return ur(Xe.constructor)}function Tr(Xe){return ur(Xe)?1:Xe.BYTES_PER_ELEMENT}var jt=function(){function Xe(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Xe.prototype,"view",{get:function(){if(!Gr(this))throw aa("view");return this._view},enumerable:!1,configurable:!0}),Xe.prototype.respond=function(ht){if(!Gr(this))throw aa("respond");if(Ue(ht,1,"respond"),ht=st(ht,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Ft(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");na(this._associatedReadableByteStreamController,ht)},Xe.prototype.respondWithNewView=function(ht){if(!Gr(this))throw aa("respondWithNewView");if(Ue(ht,1,"respondWithNewView"),!ArrayBuffer.isView(ht))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Ft(ht.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Fi(this._associatedReadableByteStreamController,ht)},Xe}();Object.defineProperties(jt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),e(jt.prototype.respond,"respond"),e(jt.prototype.respondWithNewView,"respondWithNewView"),typeof G.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,G.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Wr=function(){function Xe(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Xe.prototype,"byobRequest",{get:function(){if(!ir(this))throw Ii("byobRequest");return ha(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"desiredSize",{get:function(){if(!ir(this))throw Ii("desiredSize");return ka(this)},enumerable:!1,configurable:!0}),Xe.prototype.close=function(){if(!ir(this))throw Ii("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var ht=this._controlledReadableByteStream._state;if(ht!=="readable")throw new TypeError("The stream (in ".concat(ht," state) is not in the readable state and cannot be closed"));Ri(this)},Xe.prototype.enqueue=function(ht){if(!ir(this))throw Ii("enqueue");if(Ue(ht,1,"enqueue"),!ArrayBuffer.isView(ht))throw new TypeError("chunk must be an array buffer view");if(ht.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(ht.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var Ot=this._controlledReadableByteStream._state;if(Ot!=="readable")throw new TypeError("The stream (in ".concat(Ot," state) is not in the readable state and cannot be enqueued to"));oi(this,ht)},Xe.prototype.error=function(ht){if(ht===void 0&&(ht=void 0),!ir(this))throw Ii("error");mi(this,ht)},Xe.prototype[Ce]=function(ht){Xr(this),sr(this);var Ot=this._cancelAlgorithm(ht);return ra(this),Ot},Xe.prototype[pe]=function(ht){var Ot=this._controlledReadableByteStream;if(this._queueTotalSize>0){Ia(this,ht);return}var tr=this._autoAllocateChunkSize;if(tr!==void 0){var dr=void 0;try{dr=new ArrayBuffer(tr)}catch($r){ht._errorSteps($r);return}var vr={buffer:dr,bufferByteLength:tr,byteOffset:0,byteLength:tr,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(vr)}mt(Ot,ht),Jr(this)},Xe.prototype[_e]=function(){if(this._pendingPullIntos.length>0){var ht=this._pendingPullIntos.peek();ht.readerType="none",this._pendingPullIntos=new fe,this._pendingPullIntos.push(ht)}},Xe}();Object.defineProperties(Wr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),e(Wr.prototype.close,"close"),e(Wr.prototype.enqueue,"enqueue"),e(Wr.prototype.error,"error"),typeof G.toStringTag=="symbol"&&Object.defineProperty(Wr.prototype,G.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function ir(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_controlledReadableByteStream")?!1:Xe instanceof Wr}function Gr(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_associatedReadableByteStreamController")?!1:Xe instanceof jt}function Jr(Xe){var ht=da(Xe);if(ht){if(Xe._pulling){Xe._pullAgain=!0;return}Xe._pulling=!0;var Ot=Xe._pullAlgorithm();Q(Ot,function(){return Xe._pulling=!1,Xe._pullAgain&&(Xe._pullAgain=!1,Jr(Xe)),null},function(tr){return mi(Xe,tr),null})}}function Xr(Xe){an(Xe),Xe._pendingPullIntos=new fe}function fn(Xe,ht){var Ot=!1;Xe._state==="closed"&&(Ot=!0);var tr=cn(ht);ht.readerType==="default"?ut(Xe,tr,Ot):ma(Xe,tr,Ot)}function cn(Xe){var ht=Xe.bytesFilled,Ot=Xe.elementSize;return new Xe.viewConstructor(Xe.buffer,Xe.byteOffset,ht/Ot)}function nn(Xe,ht,Ot,tr){Xe._queue.push({buffer:ht,byteOffset:Ot,byteLength:tr}),Xe._queueTotalSize+=tr}function ar(Xe,ht,Ot,tr){var dr;try{dr=Jt(ht,Ot,Ot+tr)}catch(vr){throw mi(Xe,vr),vr}nn(Xe,dr,0,tr)}function xr(Xe,ht){ht.bytesFilled>0&&ar(Xe,ht.buffer,ht.byteOffset,ht.bytesFilled),Ci(Xe)}function Lr(Xe,ht){var Ot=Math.min(Xe._queueTotalSize,ht.byteLength-ht.bytesFilled),tr=ht.bytesFilled+Ot,dr=Ot,vr=!1,$r=tr%ht.elementSize,Zr=tr-$r;Zr>=ht.minimumFill&&(dr=Zr-ht.bytesFilled,vr=!0);for(var _n=Xe._queue;dr>0;){var en=_n.peek(),Tn=Math.min(dr,en.byteLength),Nn=ht.byteOffset+ht.bytesFilled;$t(ht.buffer,Nn,en.buffer,en.byteOffset,Tn),en.byteLength===Tn?_n.shift():(en.byteOffset+=Tn,en.byteLength-=Tn),Xe._queueTotalSize-=Tn,Rr(Xe,Tn,ht),dr-=Tn}return vr}function Rr(Xe,ht,Ot){Ot.bytesFilled+=ht}function Mr(Xe){Xe._queueTotalSize===0&&Xe._closeRequested?(ra(Xe),qa(Xe._controlledReadableByteStream)):Jr(Xe)}function an(Xe){Xe._byobRequest!==null&&(Xe._byobRequest._associatedReadableByteStreamController=void 0,Xe._byobRequest._view=null,Xe._byobRequest=null)}function gn(Xe){for(;Xe._pendingPullIntos.length>0;){if(Xe._queueTotalSize===0)return;var ht=Xe._pendingPullIntos.peek();Lr(Xe,ht)&&(Ci(Xe),fn(Xe._controlledReadableByteStream,ht))}}function dn(Xe){for(var ht=Xe._controlledReadableByteStream._reader;ht._readRequests.length>0;){if(Xe._queueTotalSize===0)return;var Ot=ht._readRequests.shift();Ia(Xe,Ot)}}function pn(Xe,ht,Ot,tr){var dr=Xe._controlledReadableByteStream,vr=ht.constructor,$r=Tr(vr),Zr=ht.byteOffset,_n=ht.byteLength,en=Ot*$r,Tn;try{Tn=Yt(ht.buffer)}catch(Mi){tr._errorSteps(Mi);return}var Nn={buffer:Tn,bufferByteLength:Tn.byteLength,byteOffset:Zr,byteLength:_n,bytesFilled:0,minimumFill:en,elementSize:$r,viewConstructor:vr,readerType:"byob"};if(Xe._pendingPullIntos.length>0){Xe._pendingPullIntos.push(Nn),ki(dr,tr);return}if(dr._state==="closed"){var Ln=new vr(Nn.buffer,Nn.byteOffset,0);tr._closeSteps(Ln);return}if(Xe._queueTotalSize>0){if(Lr(Xe,Nn)){var ai=cn(Nn);Mr(Xe),tr._chunkSteps(ai);return}if(Xe._closeRequested){var wi=new TypeError("Insufficient bytes to fill elements in the given buffer");mi(Xe,wi),tr._errorSteps(wi);return}}Xe._pendingPullIntos.push(Nn),ki(dr,tr),Jr(Xe)}function Mn(Xe,ht){ht.readerType==="none"&&Ci(Xe);var Ot=Xe._controlledReadableByteStream;if(oa(Ot))for(;sa(Ot)>0;){var tr=Ci(Xe);fn(Ot,tr)}}function Yn(Xe,ht,Ot){if(Rr(Xe,ht,Ot),Ot.readerType==="none"){xr(Xe,Ot),gn(Xe);return}if(!(Ot.bytesFilled<Ot.minimumFill)){Ci(Xe);var tr=Ot.bytesFilled%Ot.elementSize;if(tr>0){var dr=Ot.byteOffset+Ot.bytesFilled;ar(Xe,Ot.buffer,dr-tr,tr)}Ot.bytesFilled-=tr,fn(Xe._controlledReadableByteStream,Ot),gn(Xe)}}function hi(Xe,ht){var Ot=Xe._pendingPullIntos.peek();an(Xe);var tr=Xe._controlledReadableByteStream._state;tr==="closed"?Mn(Xe,Ot):Yn(Xe,ht,Ot),Jr(Xe)}function Ci(Xe){var ht=Xe._pendingPullIntos.shift();return ht}function da(Xe){var ht=Xe._controlledReadableByteStream;if(ht._state!=="readable"||Xe._closeRequested||!Xe._started)return!1;if(He(ht)&&rt(ht)>0||oa(ht)&&sa(ht)>0)return!0;var Ot=ka(Xe);return Ot>0}function ra(Xe){Xe._pullAlgorithm=void 0,Xe._cancelAlgorithm=void 0}function Ri(Xe){var ht=Xe._controlledReadableByteStream;if(!(Xe._closeRequested||ht._state!=="readable")){if(Xe._queueTotalSize>0){Xe._closeRequested=!0;return}if(Xe._pendingPullIntos.length>0){var Ot=Xe._pendingPullIntos.peek();if(Ot.bytesFilled%Ot.elementSize!==0){var tr=new TypeError("Insufficient bytes to fill elements in the given buffer");throw mi(Xe,tr),tr}}ra(Xe),qa(ht)}}function oi(Xe,ht){var Ot=Xe._controlledReadableByteStream;if(!(Xe._closeRequested||Ot._state!=="readable")){var tr=ht.buffer,dr=ht.byteOffset,vr=ht.byteLength;if(Ft(tr))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");var $r=Yt(tr);if(Xe._pendingPullIntos.length>0){var Zr=Xe._pendingPullIntos.peek();if(Ft(Zr.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");an(Xe),Zr.buffer=Yt(Zr.buffer),Zr.readerType==="none"&&xr(Xe,Zr)}if(He(Ot))if(dn(Xe),rt(Ot)===0)nn(Xe,$r,dr,vr);else{Xe._pendingPullIntos.length>0&&Ci(Xe);var _n=new Uint8Array($r,dr,vr);ut(Ot,_n,!1)}else oa(Ot)?(nn(Xe,$r,dr,vr),gn(Xe)):nn(Xe,$r,dr,vr);Jr(Xe)}}function mi(Xe,ht){var Ot=Xe._controlledReadableByteStream;Ot._state==="readable"&&(Xr(Xe),sr(Xe),ra(Xe),$s(Ot,ht))}function Ia(Xe,ht){var Ot=Xe._queue.shift();Xe._queueTotalSize-=Ot.byteLength,Mr(Xe);var tr=new Uint8Array(Ot.buffer,Ot.byteOffset,Ot.byteLength);ht._chunkSteps(tr)}function ha(Xe){if(Xe._byobRequest===null&&Xe._pendingPullIntos.length>0){var ht=Xe._pendingPullIntos.peek(),Ot=new Uint8Array(ht.buffer,ht.byteOffset+ht.bytesFilled,ht.byteLength-ht.bytesFilled),tr=Object.create(jt.prototype);Oa(tr,Xe,Ot),Xe._byobRequest=tr}return Xe._byobRequest}function ka(Xe){var ht=Xe._controlledReadableByteStream._state;return ht==="errored"?null:ht==="closed"?0:Xe._strategyHWM-Xe._queueTotalSize}function na(Xe,ht){var Ot=Xe._pendingPullIntos.peek(),tr=Xe._controlledReadableByteStream._state;if(tr==="closed"){if(ht!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(ht===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(Ot.bytesFilled+ht>Ot.byteLength)throw new RangeError("bytesWritten out of range")}Ot.buffer=Yt(Ot.buffer),hi(Xe,ht)}function Fi(Xe,ht){var Ot=Xe._pendingPullIntos.peek(),tr=Xe._controlledReadableByteStream._state;if(tr==="closed"){if(ht.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(ht.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(Ot.byteOffset+Ot.bytesFilled!==ht.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(Ot.bufferByteLength!==ht.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(Ot.bytesFilled+ht.byteLength>Ot.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var dr=ht.byteLength;Ot.buffer=Yt(ht.buffer),hi(Xe,dr)}function Zn(Xe,ht,Ot,tr,dr,vr,$r){ht._controlledReadableByteStream=Xe,ht._pullAgain=!1,ht._pulling=!1,ht._byobRequest=null,ht._queue=ht._queueTotalSize=void 0,sr(ht),ht._closeRequested=!1,ht._started=!1,ht._strategyHWM=vr,ht._pullAlgorithm=tr,ht._cancelAlgorithm=dr,ht._autoAllocateChunkSize=$r,ht._pendingPullIntos=new fe,Xe._readableStreamController=ht;var Zr=Ot();Q(W(Zr),function(){return ht._started=!0,Jr(ht),null},function(_n){return mi(ht,_n),null})}function ia(Xe,ht,Ot){var tr=Object.create(Wr.prototype),dr,vr,$r;ht.start!==void 0?dr=function(){return ht.start(tr)}:dr=function(){},ht.pull!==void 0?vr=function(){return ht.pull(tr)}:vr=function(){return W(void 0)},ht.cancel!==void 0?$r=function(_n){return ht.cancel(_n)}:$r=function(){return W(void 0)};var Zr=ht.autoAllocateChunkSize;if(Zr===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Zn(Xe,tr,dr,vr,$r,Ot,Zr)}function Oa(Xe,ht,Ot){Xe._associatedReadableByteStreamController=ht,Xe._view=Ot}function aa(Xe){return new TypeError("ReadableStreamBYOBRequest.prototype.".concat(Xe," can only be used on a ReadableStreamBYOBRequest"))}function Ii(Xe){return new TypeError("ReadableByteStreamController.prototype.".concat(Xe," can only be used on a ReadableByteStreamController"))}function fa(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.mode;return{mode:Ot===void 0?void 0:Na(Ot,"".concat(ht," has member 'mode' that"))}}function Na(Xe,ht){if(Xe="".concat(Xe),Xe!=="byob")throw new TypeError("".concat(ht," '").concat(Xe,"' is not a valid enumeration value for ReadableStreamReaderMode"));return Xe}function pa(Xe,ht){var Ot;je(Xe,ht);var tr=(Ot=Xe==null?void 0:Xe.min)!==null&&Ot!==void 0?Ot:1;return{min:st(tr,"".concat(ht," has member 'min' that"))}}function Vi(Xe){return new Ir(Xe)}function ki(Xe,ht){Xe._reader._readIntoRequests.push(ht)}function ma(Xe,ht,Ot){var tr=Xe._reader,dr=tr._readIntoRequests.shift();Ot?dr._closeSteps(ht):dr._chunkSteps(ht)}function sa(Xe){return Xe._reader._readIntoRequests.length}function oa(Xe){var ht=Xe._reader;return!(ht===void 0||!$n(ht))}var Ir=function(){function Xe(ht){if(Ue(ht,1,"ReadableStreamBYOBReader"),dt(ht,"First parameter"),Ca(ht))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ir(ht._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Ge(this,ht),this._readIntoRequests=new fe}return Object.defineProperty(Xe.prototype,"closed",{get:function(){return $n(this)?this._closedPromise:X(Er("closed"))},enumerable:!1,configurable:!0}),Xe.prototype.cancel=function(ht){return ht===void 0&&(ht=void 0),$n(this)?this._ownerReadableStream===void 0?X(Ze("cancel")):Ae(this,ht):X(Er("cancel"))},Xe.prototype.read=function(ht,Ot){if(Ot===void 0&&(Ot={}),!$n(this))return X(Er("read"));if(!ArrayBuffer.isView(ht))return X(new TypeError("view must be an array buffer view"));if(ht.byteLength===0)return X(new TypeError("view must have non-zero byteLength"));if(ht.buffer.byteLength===0)return X(new TypeError("view's buffer must have non-zero byteLength"));if(Ft(ht.buffer))return X(new TypeError("view's buffer has been detached"));var tr;try{tr=pa(Ot,"options")}catch(en){return X(en)}var dr=tr.min;if(dr===0)return X(new TypeError("options.min must be greater than 0"));if(Cr(ht)){if(dr>ht.byteLength)return X(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(dr>ht.length)return X(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return X(Ze("read from"));var vr,$r,Zr=J(function(en,Tn){vr=en,$r=Tn}),_n={_chunkSteps:function(en){return vr({value:en,done:!1})},_closeSteps:function(en){return vr({value:en,done:!0})},_errorSteps:function(en){return $r(en)}};return Ai(this,ht,dr,_n),Zr},Xe.prototype.releaseLock=function(){if(!$n(this))throw Er("releaseLock");this._ownerReadableStream!==void 0&&Oi(this)},Xe}();Object.defineProperties(Ir.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),e(Ir.prototype.cancel,"cancel"),e(Ir.prototype.read,"read"),e(Ir.prototype.releaseLock,"releaseLock"),typeof G.toStringTag=="symbol"&&Object.defineProperty(Ir.prototype,G.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function $n(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_readIntoRequests")?!1:Xe instanceof Ir}function Ai(Xe,ht,Ot,tr){var dr=Xe._ownerReadableStream;dr._disturbed=!0,dr._state==="errored"?tr._errorSteps(dr._storedError):pn(dr._readableStreamController,ht,Ot,tr)}function Oi(Xe){Ne(Xe);var ht=new TypeError("Reader was released");ga(Xe,ht)}function ga(Xe,ht){var Ot=Xe._readIntoRequests;Xe._readIntoRequests=new fe,Ot.forEach(function(tr){tr._errorSteps(ht)})}function Er(Xe){return new TypeError("ReadableStreamBYOBReader.prototype.".concat(Xe," can only be used on a ReadableStreamBYOBReader"))}function Oe(Xe,ht){var Ot=Xe.highWaterMark;if(Ot===void 0)return ht;if(At(Ot)||Ot<0)throw new RangeError("Invalid highWaterMark");return Ot}function ft(Xe){var ht=Xe.size;return ht||function(){return 1}}function yr(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.highWaterMark,tr=Xe==null?void 0:Xe.size;return{highWaterMark:Ot===void 0?void 0:Ye(Ot),size:tr===void 0?void 0:lr(tr,"".concat(ht," has member 'size' that"))}}function lr(Xe,ht){return Le(Xe,ht),function(Ot){return Ye(Xe(Ot))}}function qr(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.abort,tr=Xe==null?void 0:Xe.close,dr=Xe==null?void 0:Xe.start,vr=Xe==null?void 0:Xe.type,$r=Xe==null?void 0:Xe.write;return{abort:Ot===void 0?void 0:sn(Ot,Xe,"".concat(ht," has member 'abort' that")),close:tr===void 0?void 0:Kr(tr,Xe,"".concat(ht," has member 'close' that")),start:dr===void 0?void 0:on(dr,Xe,"".concat(ht," has member 'start' that")),write:$r===void 0?void 0:bn($r,Xe,"".concat(ht," has member 'write' that")),type:vr}}function sn(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return ke(Xe,ht,[tr])}}function Kr(Xe,ht,Ot){return Le(Xe,Ot),function(){return ke(Xe,ht,[])}}function on(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return Ee(Xe,ht,[tr])}}function bn(Xe,ht,Ot){return Le(Xe,Ot),function(tr,dr){return ke(Xe,ht,[tr,dr])}}function Dn(Xe,ht){if(!In(Xe))throw new TypeError("".concat(ht," is not a WritableStream."))}function zn(Xe){if(typeof Xe!="object"||Xe===null)return!1;try{return typeof Xe.aborted=="boolean"}catch{return!1}}var Bn=typeof AbortController=="function";function kn(){if(Bn)return new AbortController}var Gn=function(){function Xe(ht,Ot){ht===void 0&&(ht={}),Ot===void 0&&(Ot={}),ht===void 0?ht=null:Qe(ht,"First parameter");var tr=yr(Ot,"Second parameter"),dr=qr(ht,"First parameter");Sn(this);var vr=dr.type;if(vr!==void 0)throw new RangeError("Invalid type is specified");var $r=ft(tr),Zr=Oe(tr,1);Go(this,dr,Zr,$r)}return Object.defineProperty(Xe.prototype,"locked",{get:function(){if(!In(this))throw ds("locked");return vn(this)},enumerable:!1,configurable:!0}),Xe.prototype.abort=function(ht){return ht===void 0&&(ht=void 0),In(this)?vn(this)?X(new TypeError("Cannot abort a stream that already has a writer")):Cn(this,ht):X(ds("abort"))},Xe.prototype.close=function(){return In(this)?vn(this)?X(new TypeError("Cannot close a stream that already has a writer")):ti(this)?X(new TypeError("Cannot close an already-closing stream")):Ti(this):X(ds("close"))},Xe.prototype.getWriter=function(){if(!In(this))throw ds("getWriter");return En(this)},Xe}();Object.defineProperties(Gn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),e(Gn.prototype.abort,"abort"),e(Gn.prototype.close,"close"),e(Gn.prototype.getWriter,"getWriter"),typeof G.toStringTag=="symbol"&&Object.defineProperty(Gn.prototype,G.toStringTag,{value:"WritableStream",configurable:!0});function En(Xe){return new _a(Xe)}function li(Xe,ht,Ot,tr,dr,vr){dr===void 0&&(dr=1),vr===void 0&&(vr=function(){return 1});var $r=Object.create(Gn.prototype);Sn($r);var Zr=Object.create(ba.prototype);return to($r,Zr,Xe,ht,Ot,tr,dr,vr),$r}function Sn(Xe){Xe._state="writable",Xe._storedError=void 0,Xe._writer=void 0,Xe._writableStreamController=void 0,Xe._writeRequests=new fe,Xe._inFlightWriteRequest=void 0,Xe._closeRequest=void 0,Xe._inFlightCloseRequest=void 0,Xe._pendingAbortRequest=void 0,Xe._backpressure=!1}function In(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_writableStreamController")?!1:Xe instanceof Gn}function vn(Xe){return Xe._writer!==void 0}function Cn(Xe,ht){var Ot;if(Xe._state==="closed"||Xe._state==="errored")return W(void 0);Xe._writableStreamController._abortReason=ht,(Ot=Xe._writableStreamController._abortController)===null||Ot===void 0||Ot.abort(ht);var tr=Xe._state;if(tr==="closed"||tr==="errored")return W(void 0);if(Xe._pendingAbortRequest!==void 0)return Xe._pendingAbortRequest._promise;var dr=!1;tr==="erroring"&&(dr=!0,ht=void 0);var vr=J(function($r,Zr){Xe._pendingAbortRequest={_promise:void 0,_resolve:$r,_reject:Zr,_reason:ht,_wasAlreadyErroring:dr}});return Xe._pendingAbortRequest._promise=vr,dr||Ni(Xe,ht),vr}function Ti(Xe){var ht=Xe._state;if(ht==="closed"||ht==="errored")return X(new TypeError("The stream (in ".concat(ht," state) is not in the writable state and cannot be closed")));var Ot=J(function(dr,vr){var $r={_resolve:dr,_reject:vr};Xe._closeRequest=$r}),tr=Xe._writer;return tr!==void 0&&Xe._backpressure&&ht==="writable"&&ao(tr),_o(Xe._writableStreamController),Ot}function vi(Xe){var ht=J(function(Ot,tr){var dr={_resolve:Ot,_reject:tr};Xe._writeRequests.push(dr)});return ht}function Hn(Xe,ht){var Ot=Xe._state;if(Ot==="writable"){Ni(Xe,ht);return}zi(Xe)}function Ni(Xe,ht){var Ot=Xe._writableStreamController;Xe._state="erroring",Xe._storedError=ht;var tr=Xe._writer;tr!==void 0&&Si(tr,ht),!Da(Xe)&&Ot._started&&zi(Xe)}function zi(Xe){Xe._state="errored",Xe._writableStreamController[ye]();var ht=Xe._storedError;if(Xe._writeRequests.forEach(function(dr){dr._reject(ht)}),Xe._writeRequests=new fe,Xe._pendingAbortRequest===void 0){as(Xe);return}var Ot=Xe._pendingAbortRequest;if(Xe._pendingAbortRequest=void 0,Ot._wasAlreadyErroring){Ot._reject(ht),as(Xe);return}var tr=Xe._writableStreamController[ve](Ot._reason);Q(tr,function(){return Ot._resolve(),as(Xe),null},function(dr){return Ot._reject(dr),as(Xe),null})}function Qr(Xe){Xe._inFlightWriteRequest._resolve(void 0),Xe._inFlightWriteRequest=void 0}function gi(Xe,ht){Xe._inFlightWriteRequest._reject(ht),Xe._inFlightWriteRequest=void 0,Hn(Xe,ht)}function Zs(Xe){Xe._inFlightCloseRequest._resolve(void 0),Xe._inFlightCloseRequest=void 0;var ht=Xe._state;ht==="erroring"&&(Xe._storedError=void 0,Xe._pendingAbortRequest!==void 0&&(Xe._pendingAbortRequest._resolve(),Xe._pendingAbortRequest=void 0)),Xe._state="closed";var Ot=Xe._writer;Ot!==void 0&&xo(Ot)}function Js(Xe,ht){Xe._inFlightCloseRequest._reject(ht),Xe._inFlightCloseRequest=void 0,Xe._pendingAbortRequest!==void 0&&(Xe._pendingAbortRequest._reject(ht),Xe._pendingAbortRequest=void 0),Hn(Xe,ht)}function ti(Xe){return!(Xe._closeRequest===void 0&&Xe._inFlightCloseRequest===void 0)}function Da(Xe){return!(Xe._inFlightWriteRequest===void 0&&Xe._inFlightCloseRequest===void 0)}function Kn(Xe){Xe._inFlightCloseRequest=Xe._closeRequest,Xe._closeRequest=void 0}function mo(Xe){Xe._inFlightWriteRequest=Xe._writeRequests.shift()}function as(Xe){Xe._closeRequest!==void 0&&(Xe._closeRequest._reject(Xe._storedError),Xe._closeRequest=void 0);var ht=Xe._writer;ht!==void 0&&ps(ht,Xe._storedError)}function Ss(Xe,ht){var Ot=Xe._writer;Ot!==void 0&&ht!==Xe._backpressure&&(ht?io(Ot):ao(Ot)),Xe._backpressure=ht}var _a=function(){function Xe(ht){if(Ue(ht,1,"WritableStreamDefaultWriter"),Dn(ht,"First parameter"),vn(ht))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=ht,ht._writer=this;var Ot=ht._state;if(Ot==="writable")!ti(ht)&&ht._backpressure?As(this):ms(this),Es(this);else if(Ot==="erroring")Ts(this,ht._storedError),Es(this);else if(Ot==="closed")ms(this),fs(this);else{var tr=ht._storedError;Ts(this,tr),Cs(this,tr)}}return Object.defineProperty(Xe.prototype,"closed",{get:function(){return Ga(this)?this._closedPromise:X(ya("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"desiredSize",{get:function(){if(!Ga(this))throw ya("desiredSize");if(this._ownerWritableStream===void 0)throw Ya("desiredSize");return eo(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"ready",{get:function(){return Ga(this)?this._readyPromise:X(ya("ready"))},enumerable:!1,configurable:!0}),Xe.prototype.abort=function(ht){return ht===void 0&&(ht=void 0),Ga(this)?this._ownerWritableStream===void 0?X(Ya("abort")):Uo(this,ht):X(ya("abort"))},Xe.prototype.close=function(){if(!Ga(this))return X(ya("close"));var ht=this._ownerWritableStream;return ht===void 0?X(Ya("close")):ti(ht)?X(new TypeError("Cannot close an already-closing stream")):ui(this)},Xe.prototype.releaseLock=function(){if(!Ga(this))throw ya("releaseLock");var ht=this._ownerWritableStream;ht!==void 0&&Bi(this)},Xe.prototype.write=function(ht){return ht===void 0&&(ht=void 0),Ga(this)?this._ownerWritableStream===void 0?X(Ya("write to")):On(this,ht):X(ya("write"))},Xe}();Object.defineProperties(_a.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),e(_a.prototype.abort,"abort"),e(_a.prototype.close,"close"),e(_a.prototype.releaseLock,"releaseLock"),e(_a.prototype.write,"write"),typeof G.toStringTag=="symbol"&&Object.defineProperty(_a.prototype,G.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Ga(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_ownerWritableStream")?!1:Xe instanceof _a}function Uo(Xe,ht){var Ot=Xe._ownerWritableStream;return Cn(Ot,ht)}function ui(Xe){var ht=Xe._ownerWritableStream;return Ti(ht)}function go(Xe){var ht=Xe._ownerWritableStream,Ot=ht._state;return ti(ht)||Ot==="closed"?W(void 0):Ot==="errored"?X(ht._storedError):ui(Xe)}function ss(Xe,ht){Xe._closedPromiseState==="pending"?ps(Xe,ht):So(Xe,ht)}function Si(Xe,ht){Xe._readyPromiseState==="pending"?ws(Xe,ht):Rs(Xe,ht)}function eo(Xe){var ht=Xe._ownerWritableStream,Ot=ht._state;return Ot==="errored"||Ot==="erroring"?null:Ot==="closed"?0:ls(ht._writableStreamController)}function Bi(Xe){var ht=Xe._ownerWritableStream,Ot=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Si(Xe,Ot),ss(Xe,Ot),ht._writer=void 0,Xe._ownerWritableStream=void 0}function On(Xe,ht){var Ot=Xe._ownerWritableStream,tr=Ot._writableStreamController,dr=bo(tr,ht);if(Ot!==Xe._ownerWritableStream)return X(Ya("write to"));var vr=Ot._state;if(vr==="errored")return X(Ot._storedError);if(ti(Ot)||vr==="closed")return X(new TypeError("The stream is closing or closed and cannot be written to"));if(vr==="erroring")return X(Ot._storedError);var $r=vi(Ot);return cs(tr,ht,dr),$r}var xs={},ba=function(){function Xe(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Xe.prototype,"abortReason",{get:function(){if(!os(this))throw hs("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"signal",{get:function(){if(!os(this))throw hs("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),Xe.prototype.error=function(ht){if(ht===void 0&&(ht=void 0),!os(this))throw hs("error");var Ot=this._controlledWritableStream._state;Ot==="writable"&&vo(this,ht)},Xe.prototype[ve]=function(ht){var Ot=this._abortAlgorithm(ht);return ri(this),Ot},Xe.prototype[ye]=function(){sr(this)},Xe}();Object.defineProperties(ba.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof G.toStringTag=="symbol"&&Object.defineProperty(ba.prototype,G.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function os(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_controlledWritableStream")?!1:Xe instanceof ba}function to(Xe,ht,Ot,tr,dr,vr,$r,Zr){ht._controlledWritableStream=Xe,Xe._writableStreamController=ht,ht._queue=void 0,ht._queueTotalSize=void 0,sr(ht),ht._abortReason=void 0,ht._abortController=kn(),ht._started=!1,ht._strategySizeAlgorithm=Zr,ht._strategyHWM=$r,ht._writeAlgorithm=tr,ht._closeAlgorithm=dr,ht._abortAlgorithm=vr;var _n=no(ht);Ss(Xe,_n);var en=Ot(),Tn=W(en);Q(Tn,function(){return ht._started=!0,us(ht),null},function(Nn){return ht._started=!0,Hn(Xe,Nn),null})}function Go(Xe,ht,Ot,tr){var dr=Object.create(ba.prototype),vr,$r,Zr,_n;ht.start!==void 0?vr=function(){return ht.start(dr)}:vr=function(){},ht.write!==void 0?$r=function(en){return ht.write(en,dr)}:$r=function(){return W(void 0)},ht.close!==void 0?Zr=function(){return ht.close()}:Zr=function(){return W(void 0)},ht.abort!==void 0?_n=function(en){return ht.abort(en)}:_n=function(){return W(void 0)},to(Xe,dr,vr,$r,Zr,_n,Ot,tr)}function ri(Xe){Xe._writeAlgorithm=void 0,Xe._closeAlgorithm=void 0,Xe._abortAlgorithm=void 0,Xe._strategySizeAlgorithm=void 0}function _o(Xe){Ur(Xe,xs,0),us(Xe)}function bo(Xe,ht){try{return Xe._strategySizeAlgorithm(ht)}catch(Ot){return $a(Xe,Ot),1}}function ls(Xe){return Xe._strategyHWM-Xe._queueTotalSize}function cs(Xe,ht,Ot){try{Ur(Xe,ht,Ot)}catch(vr){$a(Xe,vr);return}var tr=Xe._controlledWritableStream;if(!ti(tr)&&tr._state==="writable"){var dr=no(Xe);Ss(tr,dr)}us(Xe)}function us(Xe){var ht=Xe._controlledWritableStream;if(Xe._started&&ht._inFlightWriteRequest===void 0){var Ot=ht._state;if(Ot==="erroring"){zi(ht);return}if(Xe._queue.length!==0){var tr=un(Xe);tr===xs?ro(Xe):yo(Xe,tr)}}}function $a(Xe,ht){Xe._controlledWritableStream._state==="writable"&&vo(Xe,ht)}function ro(Xe){var ht=Xe._controlledWritableStream;Kn(ht),br(Xe);var Ot=Xe._closeAlgorithm();ri(Xe),Q(Ot,function(){return Zs(ht),null},function(tr){return Js(ht,tr),null})}function yo(Xe,ht){var Ot=Xe._controlledWritableStream;mo(Ot);var tr=Xe._writeAlgorithm(ht);Q(tr,function(){Qr(Ot);var dr=Ot._state;if(br(Xe),!ti(Ot)&&dr==="writable"){var vr=no(Xe);Ss(Ot,vr)}return us(Xe),null},function(dr){return Ot._state==="writable"&&ri(Xe),gi(Ot,dr),null})}function no(Xe){var ht=ls(Xe);return ht<=0}function vo(Xe,ht){var Ot=Xe._controlledWritableStream;ri(Xe),Ni(Ot,ht)}function ds(Xe){return new TypeError("WritableStream.prototype.".concat(Xe," can only be used on a WritableStream"))}function hs(Xe){return new TypeError("WritableStreamDefaultController.prototype.".concat(Xe," can only be used on a WritableStreamDefaultController"))}function ya(Xe){return new TypeError("WritableStreamDefaultWriter.prototype.".concat(Xe," can only be used on a WritableStreamDefaultWriter"))}function Ya(Xe){return new TypeError("Cannot "+Xe+" a stream using a released writer")}function Es(Xe){Xe._closedPromise=J(function(ht,Ot){Xe._closedPromise_resolve=ht,Xe._closedPromise_reject=Ot,Xe._closedPromiseState="pending"})}function Cs(Xe,ht){Es(Xe),ps(Xe,ht)}function fs(Xe){Es(Xe),xo(Xe)}function ps(Xe,ht){Xe._closedPromise_reject!==void 0&&(oe(Xe._closedPromise),Xe._closedPromise_reject(ht),Xe._closedPromise_resolve=void 0,Xe._closedPromise_reject=void 0,Xe._closedPromiseState="rejected")}function So(Xe,ht){Cs(Xe,ht)}function xo(Xe){Xe._closedPromise_resolve!==void 0&&(Xe._closedPromise_resolve(void 0),Xe._closedPromise_resolve=void 0,Xe._closedPromise_reject=void 0,Xe._closedPromiseState="resolved")}function As(Xe){Xe._readyPromise=J(function(ht,Ot){Xe._readyPromise_resolve=ht,Xe._readyPromise_reject=Ot}),Xe._readyPromiseState="pending"}function Ts(Xe,ht){As(Xe),ws(Xe,ht)}function ms(Xe){As(Xe),ao(Xe)}function ws(Xe,ht){Xe._readyPromise_reject!==void 0&&(oe(Xe._readyPromise),Xe._readyPromise_reject(ht),Xe._readyPromise_resolve=void 0,Xe._readyPromise_reject=void 0,Xe._readyPromiseState="rejected")}function io(Xe){As(Xe)}function Rs(Xe,ht){Ts(Xe,ht)}function ao(Xe){Xe._readyPromise_resolve!==void 0&&(Xe._readyPromise_resolve(void 0),Xe._readyPromise_resolve=void 0,Xe._readyPromise_reject=void 0,Xe._readyPromiseState="fulfilled")}function $o(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof commonjsGlobal$1<"u")return commonjsGlobal$1}var Is=$o();function ks(Xe){if(!(typeof Xe=="function"||typeof Xe=="object")||Xe.name!=="DOMException")return!1;try{return new Xe,!0}catch{return!1}}function Os(){var Xe=Is==null?void 0:Is.DOMException;return ks(Xe)?Xe:void 0}function Ns(){var Xe=function(Ot,tr){this.message=Ot||"",this.name=tr||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e(Xe,"DOMException"),Xe.prototype=Object.create(Error.prototype),Object.defineProperty(Xe.prototype,"constructor",{value:Xe,writable:!0,configurable:!0}),Xe}var Eo=Os()||Ns();function Ds(Xe,ht,Ot,tr,dr,vr){var $r=ct(Xe),Zr=En(ht);Xe._disturbed=!0;var _n=!1,en=W(void 0);return J(function(Tn,Nn){var Ln;if(vr!==void 0){if(Ln=function(){var Rn=vr.reason!==void 0?vr.reason:new Eo("Aborted","AbortError"),Wn=[];tr||Wn.push(function(){return ht._state==="writable"?Cn(ht,Rn):W(void 0)}),dr||Wn.push(function(){return Xe._state==="readable"?Gi(Xe,Rn):W(void 0)}),yi(function(){return Promise.all(Wn.map(function(Jn){return Jn()}))},!0,Rn)},vr.aborted){Ln();return}vr.addEventListener("abort",Ln)}function ai(){return J(function(Rn,Wn){function Jn(Qi){Qi?Rn():L(wi(),Jn,Wn)}Jn(!1)})}function wi(){return _n?W(!0):L(Zr._readyPromise,function(){return J(function(Rn,Wn){bt($r,{_chunkSteps:function(Jn){en=L(On(Zr,Jn),void 0,U),Rn(!1)},_closeSteps:function(){return Rn(!0)},_errorSteps:Wn})})})}if(bi(Xe,$r._closedPromise,function(Rn){return tr?Ra(!0,Rn):yi(function(){return Cn(ht,Rn)},!0,Rn),null}),bi(ht,Zr._closedPromise,function(Rn){return dr?Ra(!0,Rn):yi(function(){return Gi(Xe,Rn)},!0,Rn),null}),$i(Xe,$r._closedPromise,function(){return Ot?Ra():yi(function(){return go(Zr)}),null}),ti(ht)||ht._state==="closed"){var Mi=new TypeError("the destination writable stream closed before all data could be piped to it");dr?Ra(!0,Mi):yi(function(){return Gi(Xe,Mi)},!0,Mi)}oe(ai());function Ki(){var Rn=en;return L(en,function(){return Rn!==en?Ki():void 0})}function bi(Rn,Wn,Jn){Rn._state==="errored"?Jn(Rn._storedError):de(Wn,Jn)}function $i(Rn,Wn,Jn){Rn._state==="closed"?Jn():ce(Wn,Jn)}function yi(Rn,Wn,Jn){if(_n)return;_n=!0,ht._state==="writable"&&!ti(ht)?ce(Ki(),Qi):Qi();function Qi(){return Q(Rn(),function(){return si(Wn,Jn)},function(Ua){return si(!0,Ua)}),null}}function Ra(Rn,Wn){_n||(_n=!0,ht._state==="writable"&&!ti(ht)?ce(Ki(),function(){return si(Rn,Wn)}):si(Rn,Wn))}function si(Rn,Wn){return Bi(Zr),Ne($r),vr!==void 0&&vr.removeEventListener("abort",Ln),Rn?Nn(Wn):Tn(void 0),null}})}var va=function(){function Xe(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Xe.prototype,"desiredSize",{get:function(){if(!gs(this))throw Ps("desiredSize");return Ls(this)},enumerable:!1,configurable:!0}),Xe.prototype.close=function(){if(!gs(this))throw Ps("close");if(!ja(this))throw new TypeError("The stream is not in a state that permits close");Ma(this)},Xe.prototype.enqueue=function(ht){if(ht===void 0&&(ht=void 0),!gs(this))throw Ps("enqueue");if(!ja(this))throw new TypeError("The stream is not in a state that permits enqueue");return xa(this,ht)},Xe.prototype.error=function(ht){if(ht===void 0&&(ht=void 0),!gs(this))throw Ps("error");Hi(this,ht)},Xe.prototype[Ce]=function(ht){sr(this);var Ot=this._cancelAlgorithm(ht);return Ms(this),Ot},Xe.prototype[pe]=function(ht){var Ot=this._controlledReadableStream;if(this._queue.length>0){var tr=br(this);this._closeRequested&&this._queue.length===0?(Ms(this),qa(Ot)):Sa(this),ht._chunkSteps(tr)}else mt(Ot,ht),Sa(this)},Xe.prototype[_e]=function(){},Xe}();Object.defineProperties(va.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),e(va.prototype.close,"close"),e(va.prototype.enqueue,"enqueue"),e(va.prototype.error,"error"),typeof G.toStringTag=="symbol"&&Object.defineProperty(va.prototype,G.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function gs(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_controlledReadableStream")?!1:Xe instanceof va}function Sa(Xe){var ht=so(Xe);if(ht){if(Xe._pulling){Xe._pullAgain=!0;return}Xe._pulling=!0;var Ot=Xe._pullAlgorithm();Q(Ot,function(){return Xe._pulling=!1,Xe._pullAgain&&(Xe._pullAgain=!1,Sa(Xe)),null},function(tr){return Hi(Xe,tr),null})}}function so(Xe){var ht=Xe._controlledReadableStream;if(!ja(Xe)||!Xe._started)return!1;if(Ca(ht)&&rt(ht)>0)return!0;var Ot=Ls(Xe);return Ot>0}function Ms(Xe){Xe._pullAlgorithm=void 0,Xe._cancelAlgorithm=void 0,Xe._strategySizeAlgorithm=void 0}function Ma(Xe){if(ja(Xe)){var ht=Xe._controlledReadableStream;Xe._closeRequested=!0,Xe._queue.length===0&&(Ms(Xe),qa(ht))}}function xa(Xe,ht){if(ja(Xe)){var Ot=Xe._controlledReadableStream;if(Ca(Ot)&&rt(Ot)>0)ut(Ot,ht,!1);else{var tr=void 0;try{tr=Xe._strategySizeAlgorithm(ht)}catch(dr){throw Hi(Xe,dr),dr}try{Ur(Xe,ht,tr)}catch(dr){throw Hi(Xe,dr),dr}}Sa(Xe)}}function Hi(Xe,ht){var Ot=Xe._controlledReadableStream;Ot._state==="readable"&&(sr(Xe),Ms(Xe),$s(Ot,ht))}function Ls(Xe){var ht=Xe._controlledReadableStream._state;return ht==="errored"?null:ht==="closed"?0:Xe._strategyHWM-Xe._queueTotalSize}function Co(Xe){return!so(Xe)}function ja(Xe){var ht=Xe._controlledReadableStream._state;return!Xe._closeRequested&&ht==="readable"}function Wi(Xe,ht,Ot,tr,dr,vr,$r){ht._controlledReadableStream=Xe,ht._queue=void 0,ht._queueTotalSize=void 0,sr(ht),ht._started=!1,ht._closeRequested=!1,ht._pullAgain=!1,ht._pulling=!1,ht._strategySizeAlgorithm=$r,ht._strategyHWM=vr,ht._pullAlgorithm=tr,ht._cancelAlgorithm=dr,Xe._readableStreamController=ht;var Zr=Ot();Q(W(Zr),function(){return ht._started=!0,Sa(ht),null},function(_n){return Hi(ht,_n),null})}function Ao(Xe,ht,Ot,tr){var dr=Object.create(va.prototype),vr,$r,Zr;ht.start!==void 0?vr=function(){return ht.start(dr)}:vr=function(){},ht.pull!==void 0?$r=function(){return ht.pull(dr)}:$r=function(){return W(void 0)},ht.cancel!==void 0?Zr=function(_n){return ht.cancel(_n)}:Zr=function(){return W(void 0)},Wi(Xe,dr,vr,$r,Zr,Ot,tr)}function Ps(Xe){return new TypeError("ReadableStreamDefaultController.prototype.".concat(Xe," can only be used on a ReadableStreamDefaultController"))}function Fs(Xe,ht){return ir(Xe._readableStreamController)?Bs(Xe):To(Xe)}function To(Xe,ht){var Ot=ct(Xe),tr=!1,dr=!1,vr=!1,$r=!1,Zr,_n,en,Tn,Nn,Ln=J(function(bi){Nn=bi});function ai(){if(tr)return dr=!0,W(void 0);tr=!0;var bi={_chunkSteps:function($i){me(function(){dr=!1;var yi=$i,Ra=$i;vr||xa(en._readableStreamController,yi),$r||xa(Tn._readableStreamController,Ra),tr=!1,dr&&ai()})},_closeSteps:function(){tr=!1,vr||Ma(en._readableStreamController),$r||Ma(Tn._readableStreamController),(!vr||!$r)&&Nn(void 0)},_errorSteps:function(){tr=!1}};return bt(Ot,bi),W(void 0)}function wi(bi){if(vr=!0,Zr=bi,$r){var $i=Mt([Zr,_n]),yi=Gi(Xe,$i);Nn(yi)}return Ln}function Mi(bi){if($r=!0,_n=bi,vr){var $i=Mt([Zr,_n]),yi=Gi(Xe,$i);Nn(yi)}return Ln}function Ki(){}return en=Ei(Ki,ai,wi),Tn=Ei(Ki,ai,Mi),de(Ot._closedPromise,function(bi){return Hi(en._readableStreamController,bi),Hi(Tn._readableStreamController,bi),(!vr||!$r)&&Nn(void 0),null}),[en,Tn]}function Bs(Xe){var ht=ct(Xe),Ot=!1,tr=!1,dr=!1,vr=!1,$r=!1,Zr,_n,en,Tn,Nn,Ln=J(function(si){Nn=si});function ai(si){de(si._closedPromise,function(Rn){return si!==ht||(mi(en._readableStreamController,Rn),mi(Tn._readableStreamController,Rn),(!vr||!$r)&&Nn(void 0)),null})}function wi(){$n(ht)&&(Ne(ht),ht=ct(Xe),ai(ht));var si={_chunkSteps:function(Rn){me(function(){tr=!1,dr=!1;var Wn=Rn,Jn=Rn;if(!vr&&!$r)try{Jn=Br(Rn)}catch(Qi){mi(en._readableStreamController,Qi),mi(Tn._readableStreamController,Qi),Nn(Gi(Xe,Qi));return}vr||oi(en._readableStreamController,Wn),$r||oi(Tn._readableStreamController,Jn),Ot=!1,tr?Ki():dr&&bi()})},_closeSteps:function(){Ot=!1,vr||Ri(en._readableStreamController),$r||Ri(Tn._readableStreamController),en._readableStreamController._pendingPullIntos.length>0&&na(en._readableStreamController,0),Tn._readableStreamController._pendingPullIntos.length>0&&na(Tn._readableStreamController,0),(!vr||!$r)&&Nn(void 0)},_errorSteps:function(){Ot=!1}};bt(ht,si)}function Mi(si,Rn){St(ht)&&(Ne(ht),ht=Vi(Xe),ai(ht));var Wn=Rn?Tn:en,Jn=Rn?en:Tn,Qi={_chunkSteps:function(Ua){me(function(){tr=!1,dr=!1;var Tt=Rn?$r:vr,De=Rn?vr:$r;if(De)Tt||Fi(Wn._readableStreamController,Ua);else{var qe=void 0;try{qe=Br(Ua)}catch(We){mi(Wn._readableStreamController,We),mi(Jn._readableStreamController,We),Nn(Gi(Xe,We));return}Tt||Fi(Wn._readableStreamController,Ua),oi(Jn._readableStreamController,qe)}Ot=!1,tr?Ki():dr&&bi()})},_closeSteps:function(Ua){Ot=!1;var Tt=Rn?$r:vr,De=Rn?vr:$r;Tt||Ri(Wn._readableStreamController),De||Ri(Jn._readableStreamController),Ua!==void 0&&(Tt||Fi(Wn._readableStreamController,Ua),!De&&Jn._readableStreamController._pendingPullIntos.length>0&&na(Jn._readableStreamController,0)),(!Tt||!De)&&Nn(void 0)},_errorSteps:function(){Ot=!1}};Ai(ht,si,1,Qi)}function Ki(){if(Ot)return tr=!0,W(void 0);Ot=!0;var si=ha(en._readableStreamController);return si===null?wi():Mi(si._view,!1),W(void 0)}function bi(){if(Ot)return dr=!0,W(void 0);Ot=!0;var si=ha(Tn._readableStreamController);return si===null?wi():Mi(si._view,!0),W(void 0)}function $i(si){if(vr=!0,Zr=si,$r){var Rn=Mt([Zr,_n]),Wn=Gi(Xe,Rn);Nn(Wn)}return Ln}function yi(si){if($r=!0,_n=si,vr){var Rn=Mt([Zr,_n]),Wn=Gi(Xe,Rn);Nn(Wn)}return Ln}function Ra(){}return en=uo(Ra,Ki,$i),Tn=uo(Ra,bi,yi),ai(ht),[en,Tn]}function oo(Xe){return K(Xe)&&typeof Xe.getReader<"u"}function wo(Xe){return oo(Xe)?lo(Xe.getReader()):la(Xe)}function la(Xe){var ht,Ot=Dt(Xe,"async"),tr=U;function dr(){var $r;try{$r=Zt(Ot)}catch(_n){return X(_n)}var Zr=W($r);return se(Zr,function(_n){if(!K(_n))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");var en=gr(_n);if(en)Ma(ht._readableStreamController);else{var Tn=fr(_n);xa(ht._readableStreamController,Tn)}})}function vr($r){var Zr=Ot.iterator,_n;try{_n=er(Zr,"return")}catch(Nn){return X(Nn)}if(_n===void 0)return W(void 0);var en;try{en=Ee(_n,Zr,[$r])}catch(Nn){return X(Nn)}var Tn=W(en);return se(Tn,function(Nn){if(!K(Nn))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return ht=Ei(tr,dr,vr,0),ht}function lo(Xe){var ht,Ot=U;function tr(){var vr;try{vr=Xe.read()}catch($r){return X($r)}return se(vr,function($r){if(!K($r))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if($r.done)Ma(ht._readableStreamController);else{var Zr=$r.value;xa(ht._readableStreamController,Zr)}})}function dr(vr){try{return W(Xe.cancel(vr))}catch($r){return X($r)}}return ht=Ei(Ot,tr,dr,0),ht}function Qt(Xe,ht){je(Xe,ht);var Ot=Xe,tr=Ot==null?void 0:Ot.autoAllocateChunkSize,dr=Ot==null?void 0:Ot.cancel,vr=Ot==null?void 0:Ot.pull,$r=Ot==null?void 0:Ot.start,Zr=Ot==null?void 0:Ot.type;return{autoAllocateChunkSize:tr===void 0?void 0:st(tr,"".concat(ht," has member 'autoAllocateChunkSize' that")),cancel:dr===void 0?void 0:Yi(dr,Ot,"".concat(ht," has member 'cancel' that")),pull:vr===void 0?void 0:La(vr,Ot,"".concat(ht," has member 'pull' that")),start:$r===void 0?void 0:co($r,Ot,"".concat(ht," has member 'start' that")),type:Zr===void 0?void 0:Xa(Zr,"".concat(ht," has member 'type' that"))}}function Yi(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return ke(Xe,ht,[tr])}}function La(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return ke(Xe,ht,[tr])}}function co(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return Ee(Xe,ht,[tr])}}function Xa(Xe,ht){if(Xe="".concat(Xe),Xe!=="bytes")throw new TypeError("".concat(ht," '").concat(Xe,"' is not a valid enumeration value for ReadableStreamType"));return Xe}function ca(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.preventCancel;return{preventCancel:!!Ot}}function Ui(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.preventAbort,tr=Xe==null?void 0:Xe.preventCancel,dr=Xe==null?void 0:Xe.preventClose,vr=Xe==null?void 0:Xe.signal;return vr!==void 0&&Us(vr,"".concat(ht," has member 'signal' that")),{preventAbort:!!Ot,preventCancel:!!tr,preventClose:!!dr,signal:vr}}function Us(Xe,ht){if(!zn(Xe))throw new TypeError("".concat(ht," is not an AbortSignal."))}function ji(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.readable;$e(Ot,"readable","ReadableWritablePair"),dt(Ot,"".concat(ht," has member 'readable' that"));var tr=Xe==null?void 0:Xe.writable;return $e(tr,"writable","ReadableWritablePair"),Dn(tr,"".concat(ht," has member 'writable' that")),{readable:Ot,writable:tr}}var fi=function(){function Xe(ht,Ot){ht===void 0&&(ht={}),Ot===void 0&&(Ot={}),ht===void 0?ht=null:Qe(ht,"First parameter");var tr=yr(Ot,"Second parameter"),dr=Qt(ht,"First parameter");if(Gs(this),dr.type==="bytes"){if(tr.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var vr=Oe(tr,0);ia(this,dr,vr)}else{var $r=ft(tr),vr=Oe(tr,1);Ao(this,dr,vr,$r)}}return Object.defineProperty(Xe.prototype,"locked",{get:function(){if(!Ea(this))throw ua("locked");return Ca(this)},enumerable:!1,configurable:!0}),Xe.prototype.cancel=function(ht){return ht===void 0&&(ht=void 0),Ea(this)?Ca(this)?X(new TypeError("Cannot cancel a stream that already has a reader")):Gi(this,ht):X(ua("cancel"))},Xe.prototype.getReader=function(ht){if(ht===void 0&&(ht=void 0),!Ea(this))throw ua("getReader");var Ot=fa(ht,"First parameter");return Ot.mode===void 0?ct(this):Vi(this)},Xe.prototype.pipeThrough=function(ht,Ot){if(Ot===void 0&&(Ot={}),!Ea(this))throw ua("pipeThrough");Ue(ht,1,"pipeThrough");var tr=ji(ht,"First parameter"),dr=Ui(Ot,"Second parameter");if(Ca(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(vn(tr.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var vr=Ds(this,tr.writable,dr.preventClose,dr.preventAbort,dr.preventCancel,dr.signal);return oe(vr),tr.readable},Xe.prototype.pipeTo=function(ht,Ot){if(Ot===void 0&&(Ot={}),!Ea(this))return X(ua("pipeTo"));if(ht===void 0)return X("Parameter 1 is required in 'pipeTo'.");if(!In(ht))return X(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var tr;try{tr=Ui(Ot,"Second parameter")}catch(dr){return X(dr)}return Ca(this)?X(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):vn(ht)?X(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ds(this,ht,tr.preventClose,tr.preventAbort,tr.preventCancel,tr.signal)},Xe.prototype.tee=function(){if(!Ea(this))throw ua("tee");var ht=Fs(this);return Mt(ht)},Xe.prototype.values=function(ht){if(ht===void 0&&(ht=void 0),!Ea(this))throw ua("values");var Ot=ca(ht,"First parameter");return yt(this,Ot.preventCancel)},Xe.prototype[It]=function(ht){return this.values(ht)},Xe.from=function(ht){return wo(ht)},Xe}();Object.defineProperties(fi,{from:{enumerable:!0}}),Object.defineProperties(fi.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),e(fi.from,"from"),e(fi.prototype.cancel,"cancel"),e(fi.prototype.getReader,"getReader"),e(fi.prototype.pipeThrough,"pipeThrough"),e(fi.prototype.pipeTo,"pipeTo"),e(fi.prototype.tee,"tee"),e(fi.prototype.values,"values"),typeof G.toStringTag=="symbol"&&Object.defineProperty(fi.prototype,G.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(fi.prototype,It,{value:fi.prototype.values,writable:!0,configurable:!0});function Ei(Xe,ht,Ot,tr,dr){tr===void 0&&(tr=1),dr===void 0&&(dr=function(){return 1});var vr=Object.create(fi.prototype);Gs(vr);var $r=Object.create(va.prototype);return Wi(vr,$r,Xe,ht,Ot,tr,dr),vr}function uo(Xe,ht,Ot){var tr=Object.create(fi.prototype);Gs(tr);var dr=Object.create(Wr.prototype);return Zn(tr,dr,Xe,ht,Ot,0,void 0),tr}function Gs(Xe){Xe._state="readable",Xe._reader=void 0,Xe._storedError=void 0,Xe._disturbed=!1}function Ea(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_readableStreamController")?!1:Xe instanceof fi}function Ca(Xe){return Xe._reader!==void 0}function Gi(Xe,ht){if(Xe._disturbed=!0,Xe._state==="closed")return W(void 0);if(Xe._state==="errored")return X(Xe._storedError);qa(Xe);var Ot=Xe._reader;if(Ot!==void 0&&$n(Ot)){var tr=Ot._readIntoRequests;Ot._readIntoRequests=new fe,tr.forEach(function(vr){vr._closeSteps(void 0)})}var dr=Xe._readableStreamController[Ce](ht);return se(dr,U)}function qa(Xe){Xe._state="closed";var ht=Xe._reader;if(ht!==void 0&&(Ie(ht),St(ht))){var Ot=ht._readRequests;ht._readRequests=new fe,Ot.forEach(function(tr){tr._closeSteps()})}}function $s(Xe,ht){Xe._state="errored",Xe._storedError=ht;var Ot=Xe._reader;Ot!==void 0&&(Pe(Ot,ht),St(Ot)?wt(Ot,ht):ga(Ot,ht))}function ua(Xe){return new TypeError("ReadableStream.prototype.".concat(Xe," can only be used on a ReadableStream"))}function Di(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.highWaterMark;return $e(Ot,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Ye(Ot)}}var Aa=function(Xe){return Xe.byteLength};e(Aa,"size");var _i=function(){function Xe(ht){Ue(ht,1,"ByteLengthQueuingStrategy"),ht=Di(ht,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=ht.highWaterMark}return Object.defineProperty(Xe.prototype,"highWaterMark",{get:function(){if(!Ro(this))throw Pa("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"size",{get:function(){if(!Ro(this))throw Pa("size");return Aa},enumerable:!1,configurable:!0}),Xe}();Object.defineProperties(_i.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof G.toStringTag=="symbol"&&Object.defineProperty(_i.prototype,G.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Pa(Xe){return new TypeError("ByteLengthQueuingStrategy.prototype.".concat(Xe," can only be used on a ByteLengthQueuingStrategy"))}function Ro(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_byteLengthQueuingStrategyHighWaterMark")?!1:Xe instanceof _i}var qs=function(){return 1};e(qs,"size");var _s=function(){function Xe(ht){Ue(ht,1,"CountQueuingStrategy"),ht=Di(ht,"First parameter"),this._countQueuingStrategyHighWaterMark=ht.highWaterMark}return Object.defineProperty(Xe.prototype,"highWaterMark",{get:function(){if(!ho(this))throw Vs("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"size",{get:function(){if(!ho(this))throw Vs("size");return qs},enumerable:!1,configurable:!0}),Xe}();Object.defineProperties(_s.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof G.toStringTag=="symbol"&&Object.defineProperty(_s.prototype,G.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function Vs(Xe){return new TypeError("CountQueuingStrategy.prototype.".concat(Xe," can only be used on a CountQueuingStrategy"))}function ho(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_countQueuingStrategyHighWaterMark")?!1:Xe instanceof _s}function Va(Xe,ht){je(Xe,ht);var Ot=Xe==null?void 0:Xe.cancel,tr=Xe==null?void 0:Xe.flush,dr=Xe==null?void 0:Xe.readableType,vr=Xe==null?void 0:Xe.start,$r=Xe==null?void 0:Xe.transform,Zr=Xe==null?void 0:Xe.writableType;return{cancel:Ot===void 0?void 0:fo(Ot,Xe,"".concat(ht," has member 'cancel' that")),flush:tr===void 0?void 0:Ka(tr,Xe,"".concat(ht," has member 'flush' that")),readableType:dr,start:vr===void 0?void 0:Qa(vr,Xe,"".concat(ht," has member 'start' that")),transform:$r===void 0?void 0:qo($r,Xe,"".concat(ht," has member 'transform' that")),writableType:Zr}}function Ka(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return ke(Xe,ht,[tr])}}function Qa(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return Ee(Xe,ht,[tr])}}function qo(Xe,ht,Ot){return Le(Xe,Ot),function(tr,dr){return ke(Xe,ht,[tr,dr])}}function fo(Xe,ht,Ot){return Le(Xe,Ot),function(tr){return ke(Xe,ht,[tr])}}var yn=function(){function Xe(ht,Ot,tr){ht===void 0&&(ht={}),Ot===void 0&&(Ot={}),tr===void 0&&(tr={}),ht===void 0&&(ht=null);var dr=yr(Ot,"Second parameter"),vr=yr(tr,"Third parameter"),$r=Va(ht,"First parameter");if($r.readableType!==void 0)throw new RangeError("Invalid readableType specified");if($r.writableType!==void 0)throw new RangeError("Invalid writableType specified");var Zr=Oe(vr,0),_n=ft(vr),en=Oe(dr,1),Tn=ft(dr),Nn,Ln=J(function(ai){Nn=ai});bs(this,Ln,en,Tn,Zr,_n),Io(this,$r),$r.start!==void 0?Nn($r.start(this._transformStreamController)):Nn(void 0)}return Object.defineProperty(Xe.prototype,"readable",{get:function(){if(!zs(this))throw Mo("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"writable",{get:function(){if(!zs(this))throw Mo("writable");return this._writable},enumerable:!1,configurable:!0}),Xe}();Object.defineProperties(yn.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof G.toStringTag=="symbol"&&Object.defineProperty(yn.prototype,G.toStringTag,{value:"TransformStream",configurable:!0});function bs(Xe,ht,Ot,tr,dr,vr){function $r(){return ht}function Zr(Ln){return Ba(Xe,Ln)}function _n(Ln){return Do(Xe,Ln)}function en(){return Vo(Xe)}Xe._writable=li($r,Zr,en,_n,Ot,tr);function Tn(){return zo(Xe)}function Nn(Ln){return Za(Xe,Ln)}Xe._readable=Ei($r,Tn,Nn,dr,vr),Xe._backpressure=void 0,Xe._backpressureChangePromise=void 0,Xe._backpressureChangePromise_resolve=void 0,za(Xe,!0),Xe._transformStreamController=void 0}function zs(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_transformStreamController")?!1:Xe instanceof yn}function Ta(Xe,ht){Hi(Xe._readable._readableStreamController,ht),ys(Xe,ht)}function ys(Xe,ht){vs(Xe._transformStreamController),$a(Xe._writable._writableStreamController,ht),Fa(Xe)}function Fa(Xe){Xe._backpressure&&za(Xe,!1)}function za(Xe,ht){Xe._backpressureChangePromise!==void 0&&Xe._backpressureChangePromise_resolve(),Xe._backpressureChangePromise=J(function(Ot){Xe._backpressureChangePromise_resolve=Ot}),Xe._backpressure=ht}var jn=function(){function Xe(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Xe.prototype,"desiredSize",{get:function(){if(!wa(this))throw Ws("desiredSize");var ht=this._controlledTransformStream._readable._readableStreamController;return Ls(ht)},enumerable:!1,configurable:!0}),Xe.prototype.enqueue=function(ht){if(ht===void 0&&(ht=void 0),!wa(this))throw Ws("enqueue");ko(this,ht)},Xe.prototype.error=function(ht){if(ht===void 0&&(ht=void 0),!wa(this))throw Ws("error");Oo(this,ht)},Xe.prototype.terminate=function(){if(!wa(this))throw Ws("terminate");No(this)},Xe}();Object.defineProperties(jn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),e(jn.prototype.enqueue,"enqueue"),e(jn.prototype.error,"error"),e(jn.prototype.terminate,"terminate"),typeof G.toStringTag=="symbol"&&Object.defineProperty(jn.prototype,G.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function wa(Xe){return!K(Xe)||!Object.prototype.hasOwnProperty.call(Xe,"_controlledTransformStream")?!1:Xe instanceof jn}function Hs(Xe,ht,Ot,tr,dr){ht._controlledTransformStream=Xe,Xe._transformStreamController=ht,ht._transformAlgorithm=Ot,ht._flushAlgorithm=tr,ht._cancelAlgorithm=dr,ht._finishPromise=void 0,ht._finishPromise_resolve=void 0,ht._finishPromise_reject=void 0}function Io(Xe,ht){var Ot=Object.create(jn.prototype),tr,dr,vr;ht.transform!==void 0?tr=function($r){return ht.transform($r,Ot)}:tr=function($r){try{return ko(Ot,$r),W(void 0)}catch(Zr){return X(Zr)}},ht.flush!==void 0?dr=function(){return ht.flush(Ot)}:dr=function(){return W(void 0)},ht.cancel!==void 0?vr=function($r){return ht.cancel($r)}:vr=function(){return W(void 0)},Hs(Xe,Ot,tr,dr,vr)}function vs(Xe){Xe._transformAlgorithm=void 0,Xe._flushAlgorithm=void 0,Xe._cancelAlgorithm=void 0}function ko(Xe,ht){var Ot=Xe._controlledTransformStream,tr=Ot._readable._readableStreamController;if(!ja(tr))throw new TypeError("Readable side is not in a state that permits enqueue");try{xa(tr,ht)}catch(vr){throw ys(Ot,vr),Ot._readable._storedError}var dr=Co(tr);dr!==Ot._backpressure&&za(Ot,!0)}function Oo(Xe,ht){Ta(Xe._controlledTransformStream,ht)}function po(Xe,ht){var Ot=Xe._transformAlgorithm(ht);return se(Ot,void 0,function(tr){throw Ta(Xe._controlledTransformStream,tr),tr})}function No(Xe){var ht=Xe._controlledTransformStream,Ot=ht._readable._readableStreamController;Ma(Ot);var tr=new TypeError("TransformStream terminated");ys(ht,tr)}function Ba(Xe,ht){var Ot=Xe._transformStreamController;if(Xe._backpressure){var tr=Xe._backpressureChangePromise;return se(tr,function(){var dr=Xe._writable,vr=dr._state;if(vr==="erroring")throw dr._storedError;return po(Ot,ht)})}return po(Ot,ht)}function Do(Xe,ht){var Ot=Xe._transformStreamController;if(Ot._finishPromise!==void 0)return Ot._finishPromise;var tr=Xe._readable;Ot._finishPromise=J(function(vr,$r){Ot._finishPromise_resolve=vr,Ot._finishPromise_reject=$r});var dr=Ot._cancelAlgorithm(ht);return vs(Ot),Q(dr,function(){return tr._state==="errored"?es(Ot,tr._storedError):(Hi(tr._readableStreamController,ht),Ja(Ot)),null},function(vr){return Hi(tr._readableStreamController,vr),es(Ot,vr),null}),Ot._finishPromise}function Vo(Xe){var ht=Xe._transformStreamController;if(ht._finishPromise!==void 0)return ht._finishPromise;var Ot=Xe._readable;ht._finishPromise=J(function(dr,vr){ht._finishPromise_resolve=dr,ht._finishPromise_reject=vr});var tr=ht._flushAlgorithm();return vs(ht),Q(tr,function(){return Ot._state==="errored"?es(ht,Ot._storedError):(Ma(Ot._readableStreamController),Ja(ht)),null},function(dr){return Hi(Ot._readableStreamController,dr),es(ht,dr),null}),ht._finishPromise}function zo(Xe){return za(Xe,!1),Xe._backpressureChangePromise}function Za(Xe,ht){var Ot=Xe._transformStreamController;if(Ot._finishPromise!==void 0)return Ot._finishPromise;var tr=Xe._writable;Ot._finishPromise=J(function(vr,$r){Ot._finishPromise_resolve=vr,Ot._finishPromise_reject=$r});var dr=Ot._cancelAlgorithm(ht);return vs(Ot),Q(dr,function(){return tr._state==="errored"?es(Ot,tr._storedError):($a(tr._writableStreamController,ht),Fa(Xe),Ja(Ot)),null},function(vr){return $a(tr._writableStreamController,vr),Fa(Xe),es(Ot,vr),null}),Ot._finishPromise}function Ws(Xe){return new TypeError("TransformStreamDefaultController.prototype.".concat(Xe," can only be used on a TransformStreamDefaultController"))}function Ja(Xe){Xe._finishPromise_resolve!==void 0&&(Xe._finishPromise_resolve(),Xe._finishPromise_resolve=void 0,Xe._finishPromise_reject=void 0)}function es(Xe,ht){Xe._finishPromise_reject!==void 0&&(oe(Xe._finishPromise),Xe._finishPromise_reject(ht),Xe._finishPromise_resolve=void 0,Xe._finishPromise_reject=void 0)}function Mo(Xe){return new TypeError("TransformStream.prototype.".concat(Xe," can only be used on a TransformStream"))}M.ByteLengthQueuingStrategy=_i,M.CountQueuingStrategy=_s,M.ReadableByteStreamController=Wr,M.ReadableStream=fi,M.ReadableStreamBYOBReader=Ir,M.ReadableStreamBYOBRequest=jt,M.ReadableStreamDefaultController=va,M.ReadableStreamDefaultReader=Je,M.TransformStream=yn,M.TransformStreamDefaultController=jn,M.WritableStream=Gn,M.WritableStreamDefaultController=ba,M.WritableStreamDefaultWriter=_a})}(ponyfill,ponyfill.exports)),ponyfill.exports}var hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(m,M){module.exports=M()})(globalThis,()=>(()=>{var __webpack_modules__=[,(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.VerbosityLevel=m.Util=m.UnknownErrorException=m.UnexpectedResponseException=m.UNSUPPORTED_FEATURES=m.TextRenderingMode=m.StreamType=m.RenderingIntentFlag=m.PermissionFlag=m.PasswordResponses=m.PasswordException=m.PageActionEventType=m.OPS=m.MissingPDFException=m.LINE_FACTOR=m.LINE_DESCENT_FACTOR=m.InvalidPDFException=m.ImageKind=m.IDENTITY_MATRIX=m.FormatError=m.FontType=m.FeatureTest=m.FONT_IDENTITY_MATRIX=m.DocumentActionEventType=m.CMapCompressionType=m.BaseException=m.AnnotationType=m.AnnotationStateModelType=m.AnnotationReviewState=m.AnnotationReplyType=m.AnnotationMode=m.AnnotationMarkedState=m.AnnotationFlag=m.AnnotationFieldFlag=m.AnnotationEditorType=m.AnnotationEditorPrefix=m.AnnotationEditorParamsType=m.AnnotationBorderStyleType=m.AnnotationActionEventType=m.AbortException=void 0,m.arrayByteLength=Ue,m.arraysToBytes=$e,m.assert=Ze,m.bytesToString=et,m.createPromiseCapability=Wt,m.createValidAbsoluteUrl=Te,m.escapeString=Je,m.getModificationDate=Vt,m.getVerbosityLevel=_e,m.info=Ge,m.isArrayBuffer=Pt,m.isArrayEqual=Nt,m.isAscii=St,m.objectFromMap=ot,m.objectSize=tt,m.setVerbosityLevel=pe,m.shadow=Fe,m.string32=Ye,m.stringToBytes=Qe,m.stringToPDFString=He,m.stringToUTF16BEString=bt,m.stringToUTF8String=pt,m.unreachable=Ne,m.utf8StringToString=wt,m.warn=Ae,M(2);const G=[1,0,0,1,0,0];m.IDENTITY_MATRIX=G;const V=[.001,0,0,.001,0,0];m.FONT_IDENTITY_MATRIX=V;const q=1.35;m.LINE_FACTOR=q;const $=.35;m.LINE_DESCENT_FACTOR=$;const D={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};m.RenderingIntentFlag=D;const B={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};m.AnnotationMode=B;const R="pdfjs_internal_editor_";m.AnnotationEditorPrefix=R;const U={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};m.AnnotationEditorType=U;const K={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};m.AnnotationEditorParamsType=K;const z={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};m.PermissionFlag=z;const e={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};m.TextRenderingMode=e;const ae={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};m.ImageKind=ae;const ie={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};m.AnnotationType=ie;const he={MARKED:"Marked",REVIEW:"Review"};m.AnnotationStateModelType=he;const J={MARKED:"Marked",UNMARKED:"Unmarked"};m.AnnotationMarkedState=J;const W={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};m.AnnotationReviewState=W;const X={GROUP:"Group",REPLY:"R"};m.AnnotationReplyType=X;const L={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};m.AnnotationFlag=L;const Q={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};m.AnnotationFieldFlag=Q;const ce={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};m.AnnotationBorderStyleType=ce;const de={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};m.AnnotationActionEventType=de;const se={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};m.DocumentActionEventType=se;const oe={O:"PageOpen",C:"PageClose"};m.PageActionEventType=oe;const me={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};m.StreamType=me;const Ee={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};m.FontType=Ee;const ke={ERRORS:0,WARNINGS:1,INFOS:5};m.VerbosityLevel=ke;const xe={NONE:0,BINARY:1,STREAM:2};m.CMapCompressionType=xe;const fe={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};m.OPS=fe;const ve={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};m.UNSUPPORTED_FEATURES=ve;const ye={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};m.PasswordResponses=ye;let Ce=ke.WARNINGS;function pe(Mt){Number.isInteger(Mt)&&(Ce=Mt)}function _e(){return Ce}function Ge(Mt){Ce>=ke.INFOS&&console.log(`Info: ${Mt}`)}function Ae(Mt){Ce>=ke.WARNINGS&&console.log(`Warning: ${Mt}`)}function Ne(Mt){throw new Error(Mt)}function Ze(Mt,$t){Mt||Ne($t)}function ze(Mt){if(!Mt)return!1;switch(Mt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Te(Mt){let $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Mt)return null;try{if(Yt&&typeof Mt=="string"){if(Yt.addDefaultProtocol&&Mt.startsWith("www.")){const Jt=Mt.match(/\./g);Jt&&Jt.length>=2&&(Mt=`http://${Mt}`)}if(Yt.tryConvertEncoding)try{Mt=pt(Mt)}catch{}}const Ft=$t?new URL(Mt,$t):new URL(Mt);if(ze(Ft))return Ft}catch{}return null}function Fe(Mt,$t,Yt){return Object.defineProperty(Mt,$t,{value:Yt,enumerable:!0,configurable:!0,writable:!1}),Yt}const Pe=function(){function $t(Yt,Ft){this.constructor===$t&&Ne("Cannot initialize BaseException."),this.message=Yt,this.name=Ft}return $t.prototype=new Error,$t.constructor=$t,$t}();m.BaseException=Pe;class we extends Pe{constructor($t,Yt){super($t,"PasswordException"),this.code=Yt}}m.PasswordException=we;class Ie extends Pe{constructor($t,Yt){super($t,"UnknownErrorException"),this.details=Yt}}m.UnknownErrorException=Ie;class Be extends Pe{constructor($t){super($t,"InvalidPDFException")}}m.InvalidPDFException=Be;class Ke extends Pe{constructor($t){super($t,"MissingPDFException")}}m.MissingPDFException=Ke;class Ve extends Pe{constructor($t,Yt){super($t,"UnexpectedResponseException"),this.status=Yt}}m.UnexpectedResponseException=Ve;class je extends Pe{constructor($t){super($t,"FormatError")}}m.FormatError=je;class Le extends Pe{constructor($t){super($t,"AbortException")}}m.AbortException=Le;function et(Mt){(typeof Mt!="object"||Mt===null||Mt.length===void 0)&&Ne("Invalid argument for bytesToString");const $t=Mt.length,Yt=8192;if($t<Yt)return String.fromCharCode.apply(null,Mt);const Ft=[];for(let Jt=0;Jt<$t;Jt+=Yt){const er=Math.min(Jt+Yt,$t),Bt=Mt.subarray(Jt,er);Ft.push(String.fromCharCode.apply(null,Bt))}return Ft.join("")}function Qe(Mt){typeof Mt!="string"&&Ne("Invalid argument for stringToBytes");const $t=Mt.length,Yt=new Uint8Array($t);for(let Ft=0;Ft<$t;++Ft)Yt[Ft]=Mt.charCodeAt(Ft)&255;return Yt}function Ue(Mt){if(Mt.length!==void 0)return Mt.length;if(Mt.byteLength!==void 0)return Mt.byteLength;Ne("Invalid argument for arrayByteLength")}function $e(Mt){const $t=Mt.length;if($t===1&&Mt[0]instanceof Uint8Array)return Mt[0];let Yt=0;for(let er=0;er<$t;er++)Yt+=Ue(Mt[er]);let Ft=0;const Jt=new Uint8Array(Yt);for(let er=0;er<$t;er++){let Bt=Mt[er];Bt instanceof Uint8Array||(typeof Bt=="string"?Bt=Qe(Bt):Bt=new Uint8Array(Bt));const It=Bt.byteLength;Jt.set(Bt,Ft),Ft+=It}return Jt}function Ye(Mt){return String.fromCharCode(Mt>>24&255,Mt>>16&255,Mt>>8&255,Mt&255)}function tt(Mt){return Object.keys(Mt).length}function ot(Mt){const $t=Object.create(null);for(const[Yt,Ft]of Mt)$t[Yt]=Ft;return $t}function st(){const Mt=new Uint8Array(4);return Mt[0]=1,new Uint32Array(Mt.buffer,0,1)[0]===1}function dt(){try{return new Function(""),!0}catch{return!1}}class ct{static get isLittleEndian(){return Fe(this,"isLittleEndian",st())}static get isEvalSupported(){return Fe(this,"isEvalSupported",dt())}static get isOffscreenCanvasSupported(){return Fe(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}}m.FeatureTest=ct;const mt=[...Array(256).keys()].map(Mt=>Mt.toString(16).padStart(2,"0"));class ut{static makeHexColor($t,Yt,Ft){return`#${mt[$t]}${mt[Yt]}${mt[Ft]}`}static scaleMinMax($t,Yt){let Ft;$t[0]?($t[0]<0&&(Ft=Yt[0],Yt[0]=Yt[1],Yt[1]=Ft),Yt[0]*=$t[0],Yt[1]*=$t[0],$t[3]<0&&(Ft=Yt[2],Yt[2]=Yt[3],Yt[3]=Ft),Yt[2]*=$t[3],Yt[3]*=$t[3]):(Ft=Yt[0],Yt[0]=Yt[2],Yt[2]=Ft,Ft=Yt[1],Yt[1]=Yt[3],Yt[3]=Ft,$t[1]<0&&(Ft=Yt[2],Yt[2]=Yt[3],Yt[3]=Ft),Yt[2]*=$t[1],Yt[3]*=$t[1],$t[2]<0&&(Ft=Yt[0],Yt[0]=Yt[1],Yt[1]=Ft),Yt[0]*=$t[2],Yt[1]*=$t[2]),Yt[0]+=$t[4],Yt[1]+=$t[4],Yt[2]+=$t[5],Yt[3]+=$t[5]}static transform($t,Yt){return[$t[0]*Yt[0]+$t[2]*Yt[1],$t[1]*Yt[0]+$t[3]*Yt[1],$t[0]*Yt[2]+$t[2]*Yt[3],$t[1]*Yt[2]+$t[3]*Yt[3],$t[0]*Yt[4]+$t[2]*Yt[5]+$t[4],$t[1]*Yt[4]+$t[3]*Yt[5]+$t[5]]}static applyTransform($t,Yt){const Ft=$t[0]*Yt[0]+$t[1]*Yt[2]+Yt[4],Jt=$t[0]*Yt[1]+$t[1]*Yt[3]+Yt[5];return[Ft,Jt]}static applyInverseTransform($t,Yt){const Ft=Yt[0]*Yt[3]-Yt[1]*Yt[2],Jt=($t[0]*Yt[3]-$t[1]*Yt[2]+Yt[2]*Yt[5]-Yt[4]*Yt[3])/Ft,er=(-$t[0]*Yt[1]+$t[1]*Yt[0]+Yt[4]*Yt[1]-Yt[5]*Yt[0])/Ft;return[Jt,er]}static getAxialAlignedBoundingBox($t,Yt){const Ft=ut.applyTransform($t,Yt),Jt=ut.applyTransform($t.slice(2,4),Yt),er=ut.applyTransform([$t[0],$t[3]],Yt),Bt=ut.applyTransform([$t[2],$t[1]],Yt);return[Math.min(Ft[0],Jt[0],er[0],Bt[0]),Math.min(Ft[1],Jt[1],er[1],Bt[1]),Math.max(Ft[0],Jt[0],er[0],Bt[0]),Math.max(Ft[1],Jt[1],er[1],Bt[1])]}static inverseTransform($t){const Yt=$t[0]*$t[3]-$t[1]*$t[2];return[$t[3]/Yt,-$t[1]/Yt,-$t[2]/Yt,$t[0]/Yt,($t[2]*$t[5]-$t[4]*$t[3])/Yt,($t[4]*$t[1]-$t[5]*$t[0])/Yt]}static apply3dTransform($t,Yt){return[$t[0]*Yt[0]+$t[1]*Yt[1]+$t[2]*Yt[2],$t[3]*Yt[0]+$t[4]*Yt[1]+$t[5]*Yt[2],$t[6]*Yt[0]+$t[7]*Yt[1]+$t[8]*Yt[2]]}static singularValueDecompose2dScale($t){const Yt=[$t[0],$t[2],$t[1],$t[3]],Ft=$t[0]*Yt[0]+$t[1]*Yt[2],Jt=$t[0]*Yt[1]+$t[1]*Yt[3],er=$t[2]*Yt[0]+$t[3]*Yt[2],Bt=$t[2]*Yt[1]+$t[3]*Yt[3],It=(Ft+Bt)/2,Dt=Math.sqrt((Ft+Bt)**2-4*(Ft*Bt-er*Jt))/2,Zt=It+Dt||1,gr=It-Dt||1;return[Math.sqrt(Zt),Math.sqrt(gr)]}static normalizeRect($t){const Yt=$t.slice(0);return $t[0]>$t[2]&&(Yt[0]=$t[2],Yt[2]=$t[0]),$t[1]>$t[3]&&(Yt[1]=$t[3],Yt[3]=$t[1]),Yt}static intersect($t,Yt){const Ft=Math.max(Math.min($t[0],$t[2]),Math.min(Yt[0],Yt[2])),Jt=Math.min(Math.max($t[0],$t[2]),Math.max(Yt[0],Yt[2]));if(Ft>Jt)return null;const er=Math.max(Math.min($t[1],$t[3]),Math.min(Yt[1],Yt[3])),Bt=Math.min(Math.max($t[1],$t[3]),Math.max(Yt[1],Yt[3]));return er>Bt?null:[Ft,er,Jt,Bt]}static bezierBoundingBox($t,Yt,Ft,Jt,er,Bt,It,Dt){const Zt=[],gr=[[],[]];let fr,Dr,kr,cr,Ar,yt,vt,Xt;for(let br=0;br<2;++br){if(br===0?(Dr=6*$t-12*Ft+6*er,fr=-3*$t+9*Ft-9*er+3*It,kr=3*Ft-3*$t):(Dr=6*Yt-12*Jt+6*Bt,fr=-3*Yt+9*Jt-9*Bt+3*Dt,kr=3*Jt-3*Yt),Math.abs(fr)<1e-12){if(Math.abs(Dr)<1e-12)continue;cr=-kr/Dr,0<cr&&cr<1&&Zt.push(cr);continue}vt=Dr*Dr-4*kr*fr,Xt=Math.sqrt(vt),!(vt<0)&&(Ar=(-Dr+Xt)/(2*fr),0<Ar&&Ar<1&&Zt.push(Ar),yt=(-Dr-Xt)/(2*fr),0<yt&&yt<1&&Zt.push(yt))}let At=Zt.length,zt;const Br=At;for(;At--;)cr=Zt[At],zt=1-cr,gr[0][At]=zt*zt*zt*$t+3*zt*zt*cr*Ft+3*zt*cr*cr*er+cr*cr*cr*It,gr[1][At]=zt*zt*zt*Yt+3*zt*zt*cr*Jt+3*zt*cr*cr*Bt+cr*cr*cr*Dt;return gr[0][Br]=$t,gr[1][Br]=Yt,gr[0][Br+1]=It,gr[1][Br+1]=Dt,gr[0].length=gr[1].length=Br+2,[Math.min(...gr[0]),Math.min(...gr[1]),Math.max(...gr[0]),Math.max(...gr[1])]}}m.Util=ut;const rt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function He(Mt){if(Mt[0]>="ï"){let Yt;if(Mt[0]==="þ"&&Mt[1]==="ÿ"?Yt="utf-16be":Mt[0]==="ÿ"&&Mt[1]==="þ"?Yt="utf-16le":Mt[0]==="ï"&&Mt[1]==="»"&&Mt[2]==="¿"&&(Yt="utf-8"),Yt)try{const Ft=new TextDecoder(Yt,{fatal:!0}),Jt=Qe(Mt);return Ft.decode(Jt)}catch(Ft){Ae(`stringToPDFString: "${Ft}".`)}}const $t=[];for(let Yt=0,Ft=Mt.length;Yt<Ft;Yt++){const Jt=rt[Mt.charCodeAt(Yt)];$t.push(Jt?String.fromCharCode(Jt):Mt.charAt(Yt))}return $t.join("")}function Je(Mt){return Mt.replace(/([()\\\n\r])/g,$t=>$t===`
`?"\\n":$t==="\r"?"\\r":`\\${$t}`)}function St(Mt){return/^[\x00-\x7F]*$/.test(Mt)}function bt(Mt){const $t=["þÿ"];for(let Yt=0,Ft=Mt.length;Yt<Ft;Yt++){const Jt=Mt.charCodeAt(Yt);$t.push(String.fromCharCode(Jt>>8&255),String.fromCharCode(Jt&255))}return $t.join("")}function pt(Mt){return decodeURIComponent(escape(Mt))}function wt(Mt){return unescape(encodeURIComponent(Mt))}function Pt(Mt){return typeof Mt=="object"&&Mt!==null&&Mt.byteLength!==void 0}function Nt(Mt,$t){if(Mt.length!==$t.length)return!1;for(let Yt=0,Ft=Mt.length;Yt<Ft;Yt++)if(Mt[Yt]!==$t[Yt])return!1;return!0}function Vt(){let Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date;return[Mt.getUTCFullYear().toString(),(Mt.getUTCMonth()+1).toString().padStart(2,"0"),Mt.getUTCDate().toString().padStart(2,"0"),Mt.getUTCHours().toString().padStart(2,"0"),Mt.getUTCMinutes().toString().padStart(2,"0"),Mt.getUTCSeconds().toString().padStart(2,"0")].join("")}function Wt(){const Mt=Object.create(null);let $t=!1;return Object.defineProperty(Mt,"settled",{get(){return $t}}),Mt.promise=new Promise(function(Yt,Ft){Mt.resolve=function(Jt){$t=!0,Yt(Jt)},Mt.reject=function(Jt){$t=!0,Ft(Jt)}}),Mt}},(k,m,M)=>{var G=M(3);globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!G.isNodeJS||(globalThis.btoa=function(q){return Buffer.from(q,"binary").toString("base64")})}(),function(){globalThis.atob||!G.isNodeJS||(globalThis.atob=function(q){return Buffer.from(q,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!G.isNodeJS||(globalThis.DOMMatrix=requireDommatrix())}(),function(){globalThis.ReadableStream||!G.isNodeJS||(globalThis.ReadableStream=requirePonyfill().ReadableStream)}(),function(){Array.prototype.at||M(4)}(),function(){Uint8Array.prototype.at||M(76)}(),function(){globalThis.structuredClone||M(86)}())},(k,m)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.isNodeJS=void 0;const M=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");m.isNodeJS=M},(k,m,M)=>{M(5);var G=M(75);k.exports=G("Array","at")},(k,m,M)=>{var G=M(6),V=M(41),q=M(65),$=M(63),D=M(70);G({target:"Array",proto:!0},{at:function(R){var U=V(this),K=q(U),z=$(R),e=z>=0?z:K+z;return e<0||e>=K?void 0:U[e]}}),D("at")},(k,m,M)=>{var G=M(7),V=M(8).f,q=M(45),$=M(49),D=M(39),B=M(57),R=M(69);k.exports=function(U,K){var z=U.target,e=U.global,ae=U.stat,ie,he,J,W,X,L;if(e?he=G:ae?he=G[z]||D(z,{}):he=(G[z]||{}).prototype,he)for(J in K){if(X=K[J],U.dontCallGetSet?(L=V(he,J),W=L&&L.value):W=he[J],ie=R(e?J:z+(ae?".":"#")+J,U.forced),!ie&&W!==void 0){if(typeof X==typeof W)continue;B(X,W)}(U.sham||W&&W.sham)&&q(X,"sham",!0),$(he,J,X,U)}}},k=>{var m=function(M){return M&&M.Math==Math&&M};k.exports=m(typeof globalThis=="object"&&globalThis)||m(typeof window=="object"&&window)||m(typeof self=="object"&&self)||m(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")()},(k,m,M)=>{var G=M(9),V=M(11),q=M(13),$=M(14),D=M(15),B=M(20),R=M(40),U=M(43),K=Object.getOwnPropertyDescriptor;m.f=G?K:function(e,ae){if(e=D(e),ae=B(ae),U)try{return K(e,ae)}catch{}if(R(e,ae))return $(!V(q.f,e,ae),e[ae])}},(k,m,M)=>{var G=M(10);k.exports=!G(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},k=>{k.exports=function(m){try{return!!m()}catch{return!0}}},(k,m,M)=>{var G=M(12),V=Function.prototype.call;k.exports=G?V.bind(V):function(){return V.apply(V,arguments)}},(k,m,M)=>{var G=M(10);k.exports=!G(function(){var V=(function(){}).bind();return typeof V!="function"||V.hasOwnProperty("prototype")})},(k,m)=>{var M={}.propertyIsEnumerable,G=Object.getOwnPropertyDescriptor,V=G&&!M.call({1:2},1);m.f=V?function($){var D=G(this,$);return!!D&&D.enumerable}:M},k=>{k.exports=function(m,M){return{enumerable:!(m&1),configurable:!(m&2),writable:!(m&4),value:M}}},(k,m,M)=>{var G=M(16),V=M(19);k.exports=function(q){return G(V(q))}},(k,m,M)=>{var G=M(17),V=M(10),q=M(18),$=Object,D=G("".split);k.exports=V(function(){return!$("z").propertyIsEnumerable(0)})?function(B){return q(B)=="String"?D(B,""):$(B)}:$},(k,m,M)=>{var G=M(12),V=Function.prototype,q=V.bind,$=V.call,D=G&&q.bind($,$);k.exports=G?function(B){return B&&D(B)}:function(B){return B&&function(){return $.apply(B,arguments)}}},(k,m,M)=>{var G=M(17),V=G({}.toString),q=G("".slice);k.exports=function($){return q(V($),8,-1)}},k=>{var m=TypeError;k.exports=function(M){if(M==null)throw m("Can't call method on "+M);return M}},(k,m,M)=>{var G=M(21),V=M(24);k.exports=function(q){var $=G(q,"string");return V($)?$:$+""}},(k,m,M)=>{var G=M(11),V=M(22),q=M(24),$=M(31),D=M(34),B=M(35),R=TypeError,U=B("toPrimitive");k.exports=function(K,z){if(!V(K)||q(K))return K;var e=$(K,U),ae;if(e){if(z===void 0&&(z="default"),ae=G(e,K,z),!V(ae)||q(ae))return ae;throw R("Can't convert object to primitive value")}return z===void 0&&(z="number"),D(K,z)}},(k,m,M)=>{var G=M(23);k.exports=function(V){return typeof V=="object"?V!==null:G(V)}},k=>{k.exports=function(m){return typeof m=="function"}},(k,m,M)=>{var G=M(25),V=M(23),q=M(26),$=M(27),D=Object;k.exports=$?function(B){return typeof B=="symbol"}:function(B){var R=G("Symbol");return V(R)&&q(R.prototype,D(B))}},(k,m,M)=>{var G=M(7),V=M(23),q=function($){return V($)?$:void 0};k.exports=function($,D){return arguments.length<2?q(G[$]):G[$]&&G[$][D]}},(k,m,M)=>{var G=M(17);k.exports=G({}.isPrototypeOf)},(k,m,M)=>{var G=M(28);k.exports=G&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(k,m,M)=>{var G=M(29),V=M(10);k.exports=!!Object.getOwnPropertySymbols&&!V(function(){var q=Symbol();return!String(q)||!(Object(q)instanceof Symbol)||!Symbol.sham&&G&&G<41})},(k,m,M)=>{var G=M(7),V=M(30),q=G.process,$=G.Deno,D=q&&q.versions||$&&$.version,B=D&&D.v8,R,U;B&&(R=B.split("."),U=R[0]>0&&R[0]<4?1:+(R[0]+R[1])),!U&&V&&(R=V.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=V.match(/Chrome\/(\d+)/),R&&(U=+R[1]))),k.exports=U},(k,m,M)=>{var G=M(25);k.exports=G("navigator","userAgent")||""},(k,m,M)=>{var G=M(32);k.exports=function(V,q){var $=V[q];return $==null?void 0:G($)}},(k,m,M)=>{var G=M(23),V=M(33),q=TypeError;k.exports=function($){if(G($))return $;throw q(V($)+" is not a function")}},k=>{var m=String;k.exports=function(M){try{return m(M)}catch{return"Object"}}},(k,m,M)=>{var G=M(11),V=M(23),q=M(22),$=TypeError;k.exports=function(D,B){var R,U;if(B==="string"&&V(R=D.toString)&&!q(U=G(R,D))||V(R=D.valueOf)&&!q(U=G(R,D))||B!=="string"&&V(R=D.toString)&&!q(U=G(R,D)))return U;throw $("Can't convert object to primitive value")}},(k,m,M)=>{var G=M(7),V=M(36),q=M(40),$=M(42),D=M(28),B=M(27),R=V("wks"),U=G.Symbol,K=U&&U.for,z=B?U:U&&U.withoutSetter||$;k.exports=function(e){if(!q(R,e)||!(D||typeof R[e]=="string")){var ae="Symbol."+e;D&&q(U,e)?R[e]=U[e]:B&&K?R[e]=K(ae):R[e]=z(ae)}return R[e]}},(k,m,M)=>{var G=M(37),V=M(38);(k.exports=function(q,$){return V[q]||(V[q]=$!==void 0?$:{})})("versions",[]).push({version:"3.24.1",mode:G?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},k=>{k.exports=!1},(k,m,M)=>{var G=M(7),V=M(39),q="__core-js_shared__",$=G[q]||V(q,{});k.exports=$},(k,m,M)=>{var G=M(7),V=Object.defineProperty;k.exports=function(q,$){try{V(G,q,{value:$,configurable:!0,writable:!0})}catch{G[q]=$}return $}},(k,m,M)=>{var G=M(17),V=M(41),q=G({}.hasOwnProperty);k.exports=Object.hasOwn||function(D,B){return q(V(D),B)}},(k,m,M)=>{var G=M(19),V=Object;k.exports=function(q){return V(G(q))}},(k,m,M)=>{var G=M(17),V=0,q=Math.random(),$=G(1 .toString);k.exports=function(D){return"Symbol("+(D===void 0?"":D)+")_"+$(++V+q,36)}},(k,m,M)=>{var G=M(9),V=M(10),q=M(44);k.exports=!G&&!V(function(){return Object.defineProperty(q("div"),"a",{get:function(){return 7}}).a!=7})},(k,m,M)=>{var G=M(7),V=M(22),q=G.document,$=V(q)&&V(q.createElement);k.exports=function(D){return $?q.createElement(D):{}}},(k,m,M)=>{var G=M(9),V=M(46),q=M(14);k.exports=G?function($,D,B){return V.f($,D,q(1,B))}:function($,D,B){return $[D]=B,$}},(k,m,M)=>{var G=M(9),V=M(43),q=M(47),$=M(48),D=M(20),B=TypeError,R=Object.defineProperty,U=Object.getOwnPropertyDescriptor,K="enumerable",z="configurable",e="writable";m.f=G?q?function(ie,he,J){if($(ie),he=D(he),$(J),typeof ie=="function"&&he==="prototype"&&"value"in J&&e in J&&!J[e]){var W=U(ie,he);W&&W[e]&&(ie[he]=J.value,J={configurable:z in J?J[z]:W[z],enumerable:K in J?J[K]:W[K],writable:!1})}return R(ie,he,J)}:R:function(ie,he,J){if($(ie),he=D(he),$(J),V)try{return R(ie,he,J)}catch{}if("get"in J||"set"in J)throw B("Accessors not supported");return"value"in J&&(ie[he]=J.value),ie}},(k,m,M)=>{var G=M(9),V=M(10);k.exports=G&&V(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},(k,m,M)=>{var G=M(22),V=String,q=TypeError;k.exports=function($){if(G($))return $;throw q(V($)+" is not an object")}},(k,m,M)=>{var G=M(23),V=M(46),q=M(50),$=M(39);k.exports=function(D,B,R,U){U||(U={});var K=U.enumerable,z=U.name!==void 0?U.name:B;if(G(R)&&q(R,z,U),U.global)K?D[B]=R:$(B,R);else{try{U.unsafe?D[B]&&(K=!0):delete D[B]}catch{}K?D[B]=R:V.f(D,B,{value:R,enumerable:!1,configurable:!U.nonConfigurable,writable:!U.nonWritable})}return D}},(k,m,M)=>{var G=M(10),V=M(23),q=M(40),$=M(9),D=M(51).CONFIGURABLE,B=M(52),R=M(53),U=R.enforce,K=R.get,z=Object.defineProperty,e=$&&!G(function(){return z(function(){},"length",{value:8}).length!==8}),ae=String(String).split("String"),ie=k.exports=function(he,J,W){String(J).slice(0,7)==="Symbol("&&(J="["+String(J).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),W&&W.getter&&(J="get "+J),W&&W.setter&&(J="set "+J),(!q(he,"name")||D&&he.name!==J)&&($?z(he,"name",{value:J,configurable:!0}):he.name=J),e&&W&&q(W,"arity")&&he.length!==W.arity&&z(he,"length",{value:W.arity});try{W&&q(W,"constructor")&&W.constructor?$&&z(he,"prototype",{writable:!1}):he.prototype&&(he.prototype=void 0)}catch{}var X=U(he);return q(X,"source")||(X.source=ae.join(typeof J=="string"?J:"")),he};Function.prototype.toString=ie(function(){return V(this)&&K(this).source||B(this)},"toString")},(k,m,M)=>{var G=M(9),V=M(40),q=Function.prototype,$=G&&Object.getOwnPropertyDescriptor,D=V(q,"name"),B=D&&(function(){}).name==="something",R=D&&(!G||G&&$(q,"name").configurable);k.exports={EXISTS:D,PROPER:B,CONFIGURABLE:R}},(k,m,M)=>{var G=M(17),V=M(23),q=M(38),$=G(Function.toString);V(q.inspectSource)||(q.inspectSource=function(D){return $(D)}),k.exports=q.inspectSource},(k,m,M)=>{var G=M(54),V=M(7),q=M(17),$=M(22),D=M(45),B=M(40),R=M(38),U=M(55),K=M(56),z="Object already initialized",e=V.TypeError,ae=V.WeakMap,ie,he,J,W=function(oe){return J(oe)?he(oe):ie(oe,{})},X=function(oe){return function(me){var Ee;if(!$(me)||(Ee=he(me)).type!==oe)throw e("Incompatible receiver, "+oe+" required");return Ee}};if(G||R.state){var L=R.state||(R.state=new ae),Q=q(L.get),ce=q(L.has),de=q(L.set);ie=function(oe,me){if(ce(L,oe))throw new e(z);return me.facade=oe,de(L,oe,me),me},he=function(oe){return Q(L,oe)||{}},J=function(oe){return ce(L,oe)}}else{var se=U("state");K[se]=!0,ie=function(oe,me){if(B(oe,se))throw new e(z);return me.facade=oe,D(oe,se,me),me},he=function(oe){return B(oe,se)?oe[se]:{}},J=function(oe){return B(oe,se)}}k.exports={set:ie,get:he,has:J,enforce:W,getterFor:X}},(k,m,M)=>{var G=M(7),V=M(23),q=M(52),$=G.WeakMap;k.exports=V($)&&/native code/.test(q($))},(k,m,M)=>{var G=M(36),V=M(42),q=G("keys");k.exports=function($){return q[$]||(q[$]=V($))}},k=>{k.exports={}},(k,m,M)=>{var G=M(40),V=M(58),q=M(8),$=M(46);k.exports=function(D,B,R){for(var U=V(B),K=$.f,z=q.f,e=0;e<U.length;e++){var ae=U[e];!G(D,ae)&&!(R&&G(R,ae))&&K(D,ae,z(B,ae))}}},(k,m,M)=>{var G=M(25),V=M(17),q=M(59),$=M(68),D=M(48),B=V([].concat);k.exports=G("Reflect","ownKeys")||function(U){var K=q.f(D(U)),z=$.f;return z?B(K,z(U)):K}},(k,m,M)=>{var G=M(60),V=M(67),q=V.concat("length","prototype");m.f=Object.getOwnPropertyNames||function(D){return G(D,q)}},(k,m,M)=>{var G=M(17),V=M(40),q=M(15),$=M(61).indexOf,D=M(56),B=G([].push);k.exports=function(R,U){var K=q(R),z=0,e=[],ae;for(ae in K)!V(D,ae)&&V(K,ae)&&B(e,ae);for(;U.length>z;)V(K,ae=U[z++])&&(~$(e,ae)||B(e,ae));return e}},(k,m,M)=>{var G=M(15),V=M(62),q=M(65),$=function(D){return function(B,R,U){var K=G(B),z=q(K),e=V(U,z),ae;if(D&&R!=R){for(;z>e;)if(ae=K[e++],ae!=ae)return!0}else for(;z>e;e++)if((D||e in K)&&K[e]===R)return D||e||0;return!D&&-1}};k.exports={includes:$(!0),indexOf:$(!1)}},(k,m,M)=>{var G=M(63),V=Math.max,q=Math.min;k.exports=function($,D){var B=G($);return B<0?V(B+D,0):q(B,D)}},(k,m,M)=>{var G=M(64);k.exports=function(V){var q=+V;return q!==q||q===0?0:G(q)}},k=>{var m=Math.ceil,M=Math.floor;k.exports=Math.trunc||function(V){var q=+V;return(q>0?M:m)(q)}},(k,m,M)=>{var G=M(66);k.exports=function(V){return G(V.length)}},(k,m,M)=>{var G=M(63),V=Math.min;k.exports=function(q){return q>0?V(G(q),9007199254740991):0}},k=>{k.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(k,m)=>{m.f=Object.getOwnPropertySymbols},(k,m,M)=>{var G=M(10),V=M(23),q=/#|\.prototype\./,$=function(K,z){var e=B[D(K)];return e==U?!0:e==R?!1:V(z)?G(z):!!z},D=$.normalize=function(K){return String(K).replace(q,".").toLowerCase()},B=$.data={},R=$.NATIVE="N",U=$.POLYFILL="P";k.exports=$},(k,m,M)=>{var G=M(35),V=M(71),q=M(46).f,$=G("unscopables"),D=Array.prototype;D[$]==null&&q(D,$,{configurable:!0,value:V(null)}),k.exports=function(B){D[$][B]=!0}},(k,m,M)=>{var G=M(48),V=M(72),q=M(67),$=M(56),D=M(74),B=M(44),R=M(55),U=">",K="<",z="prototype",e="script",ae=R("IE_PROTO"),ie=function(){},he=function(Q){return K+e+U+Q+K+"/"+e+U},J=function(Q){Q.write(he("")),Q.close();var ce=Q.parentWindow.Object;return Q=null,ce},W=function(){var Q=B("iframe"),ce="java"+e+":",de;return Q.style.display="none",D.appendChild(Q),Q.src=String(ce),de=Q.contentWindow.document,de.open(),de.write(he("document.F=Object")),de.close(),de.F},X,L=function(){try{X=new ActiveXObject("htmlfile")}catch{}L=typeof document<"u"?document.domain&&X?J(X):W():J(X);for(var Q=q.length;Q--;)delete L[z][q[Q]];return L()};$[ae]=!0,k.exports=Object.create||function(ce,de){var se;return ce!==null?(ie[z]=G(ce),se=new ie,ie[z]=null,se[ae]=ce):se=L(),de===void 0?se:V.f(se,de)}},(k,m,M)=>{var G=M(9),V=M(47),q=M(46),$=M(48),D=M(15),B=M(73);m.f=G&&!V?Object.defineProperties:function(U,K){$(U);for(var z=D(K),e=B(K),ae=e.length,ie=0,he;ae>ie;)q.f(U,he=e[ie++],z[he]);return U}},(k,m,M)=>{var G=M(60),V=M(67);k.exports=Object.keys||function($){return G($,V)}},(k,m,M)=>{var G=M(25);k.exports=G("document","documentElement")},(k,m,M)=>{var G=M(7),V=M(17);k.exports=function(q,$){return V(G[q].prototype[$])}},(k,m,M)=>{M(77)},(k,m,M)=>{var G=M(78),V=M(65),q=M(63),$=G.aTypedArray,D=G.exportTypedArrayMethod;D("at",function(R){var U=$(this),K=V(U),z=q(R),e=z>=0?z:K+z;return e<0||e>=K?void 0:U[e]})},(k,m,M)=>{var G=M(79),V=M(9),q=M(7),$=M(23),D=M(22),B=M(40),R=M(80),U=M(33),K=M(45),z=M(49),e=M(46).f,ae=M(26),ie=M(82),he=M(84),J=M(35),W=M(42),X=M(53),L=X.enforce,Q=X.get,ce=q.Int8Array,de=ce&&ce.prototype,se=q.Uint8ClampedArray,oe=se&&se.prototype,me=ce&&ie(ce),Ee=de&&ie(de),ke=Object.prototype,xe=q.TypeError,fe=J("toStringTag"),ve=W("TYPED_ARRAY_TAG"),ye="TypedArrayConstructor",Ce=G&&!!he&&R(q.opera)!=="Opera",pe=!1,_e,Ge,Ae,Ne={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ze={BigInt64Array:8,BigUint64Array:8},ze=function(Ve){if(!D(Ve))return!1;var je=R(Ve);return je==="DataView"||B(Ne,je)||B(Ze,je)},Te=function(Ke){var Ve=ie(Ke);if(D(Ve)){var je=Q(Ve);return je&&B(je,ye)?je[ye]:Te(Ve)}},Fe=function(Ke){if(!D(Ke))return!1;var Ve=R(Ke);return B(Ne,Ve)||B(Ze,Ve)},Pe=function(Ke){if(Fe(Ke))return Ke;throw xe("Target is not a typed array")},we=function(Ke){if($(Ke)&&(!he||ae(me,Ke)))return Ke;throw xe(U(Ke)+" is not a typed array constructor")},Ie=function(Ke,Ve,je,Le){if(V){if(je)for(var et in Ne){var Qe=q[et];if(Qe&&B(Qe.prototype,Ke))try{delete Qe.prototype[Ke]}catch{try{Qe.prototype[Ke]=Ve}catch{}}}(!Ee[Ke]||je)&&z(Ee,Ke,je?Ve:Ce&&de[Ke]||Ve,Le)}},Be=function(Ke,Ve,je){var Le,et;if(V){if(he){if(je){for(Le in Ne)if(et=q[Le],et&&B(et,Ke))try{delete et[Ke]}catch{}}if(!me[Ke]||je)try{return z(me,Ke,je?Ve:Ce&&me[Ke]||Ve)}catch{}else return}for(Le in Ne)et=q[Le],et&&(!et[Ke]||je)&&z(et,Ke,Ve)}};for(_e in Ne)Ge=q[_e],Ae=Ge&&Ge.prototype,Ae?L(Ae)[ye]=Ge:Ce=!1;for(_e in Ze)Ge=q[_e],Ae=Ge&&Ge.prototype,Ae&&(L(Ae)[ye]=Ge);if((!Ce||!$(me)||me===Function.prototype)&&(me=function(){throw xe("Incorrect invocation")},Ce))for(_e in Ne)q[_e]&&he(q[_e],me);if((!Ce||!Ee||Ee===ke)&&(Ee=me.prototype,Ce))for(_e in Ne)q[_e]&&he(q[_e].prototype,Ee);if(Ce&&ie(oe)!==Ee&&he(oe,Ee),V&&!B(Ee,fe)){pe=!0,e(Ee,fe,{get:function(){return D(this)?this[ve]:void 0}});for(_e in Ne)q[_e]&&K(q[_e],ve,_e)}k.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ce,TYPED_ARRAY_TAG:pe&&ve,aTypedArray:Pe,aTypedArrayConstructor:we,exportTypedArrayMethod:Ie,exportTypedArrayStaticMethod:Be,getTypedArrayConstructor:Te,isView:ze,isTypedArray:Fe,TypedArray:me,TypedArrayPrototype:Ee}},k=>{k.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},(k,m,M)=>{var G=M(81),V=M(23),q=M(18),$=M(35),D=$("toStringTag"),B=Object,R=q(function(){return arguments}())=="Arguments",U=function(K,z){try{return K[z]}catch{}};k.exports=G?q:function(K){var z,e,ae;return K===void 0?"Undefined":K===null?"Null":typeof(e=U(z=B(K),D))=="string"?e:R?q(z):(ae=q(z))=="Object"&&V(z.callee)?"Arguments":ae}},(k,m,M)=>{var G=M(35),V=G("toStringTag"),q={};q[V]="z",k.exports=String(q)==="[object z]"},(k,m,M)=>{var G=M(40),V=M(23),q=M(41),$=M(55),D=M(83),B=$("IE_PROTO"),R=Object,U=R.prototype;k.exports=D?R.getPrototypeOf:function(K){var z=q(K);if(G(z,B))return z[B];var e=z.constructor;return V(e)&&z instanceof e?e.prototype:z instanceof R?U:null}},(k,m,M)=>{var G=M(10);k.exports=!G(function(){function V(){}return V.prototype.constructor=null,Object.getPrototypeOf(new V)!==V.prototype})},(k,m,M)=>{var G=M(17),V=M(48),q=M(85);k.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var $=!1,D={},B;try{B=G(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),B(D,[]),$=D instanceof Array}catch{}return function(U,K){return V(U),q(K),$?B(U,K):U.__proto__=K,U}}():void 0)},(k,m,M)=>{var G=M(23),V=String,q=TypeError;k.exports=function($){if(typeof $=="object"||G($))return $;throw q("Can't set "+V($)+" as a prototype")}},(k,m,M)=>{M(87),M(93),M(95),M(117),M(119);var G=M(128);k.exports=G.structuredClone},(k,m,M)=>{var G=M(15),V=M(70),q=M(88),$=M(53),D=M(46).f,B=M(89),R=M(37),U=M(9),K="Array Iterator",z=$.set,e=$.getterFor(K);k.exports=B(Array,"Array",function(ie,he){z(this,{type:K,target:G(ie),index:0,kind:he})},function(){var ie=e(this),he=ie.target,J=ie.kind,W=ie.index++;return!he||W>=he.length?(ie.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:W,done:!1}:J=="values"?{value:he[W],done:!1}:{value:[W,he[W]],done:!1}},"values");var ae=q.Arguments=q.Array;if(V("keys"),V("values"),V("entries"),!R&&U&&ae.name!=="values")try{D(ae,"name",{value:"values"})}catch{}},k=>{k.exports={}},(k,m,M)=>{var G=M(6),V=M(11),q=M(37),$=M(51),D=M(23),B=M(90),R=M(82),U=M(84),K=M(92),z=M(45),e=M(49),ae=M(35),ie=M(88),he=M(91),J=$.PROPER,W=$.CONFIGURABLE,X=he.IteratorPrototype,L=he.BUGGY_SAFARI_ITERATORS,Q=ae("iterator"),ce="keys",de="values",se="entries",oe=function(){return this};k.exports=function(me,Ee,ke,xe,fe,ve,ye){B(ke,Ee,xe);var Ce=function(Pe){if(Pe===fe&&Ne)return Ne;if(!L&&Pe in Ge)return Ge[Pe];switch(Pe){case ce:return function(){return new ke(this,Pe)};case de:return function(){return new ke(this,Pe)};case se:return function(){return new ke(this,Pe)}}return function(){return new ke(this)}},pe=Ee+" Iterator",_e=!1,Ge=me.prototype,Ae=Ge[Q]||Ge["@@iterator"]||fe&&Ge[fe],Ne=!L&&Ae||Ce(fe),Ze=Ee=="Array"&&Ge.entries||Ae,ze,Te,Fe;if(Ze&&(ze=R(Ze.call(new me)),ze!==Object.prototype&&ze.next&&(!q&&R(ze)!==X&&(U?U(ze,X):D(ze[Q])||e(ze,Q,oe)),K(ze,pe,!0,!0),q&&(ie[pe]=oe))),J&&fe==de&&Ae&&Ae.name!==de&&(!q&&W?z(Ge,"name",de):(_e=!0,Ne=function(){return V(Ae,this)})),fe)if(Te={values:Ce(de),keys:ve?Ne:Ce(ce),entries:Ce(se)},ye)for(Fe in Te)(L||_e||!(Fe in Ge))&&e(Ge,Fe,Te[Fe]);else G({target:Ee,proto:!0,forced:L||_e},Te);return(!q||ye)&&Ge[Q]!==Ne&&e(Ge,Q,Ne,{name:fe}),ie[Ee]=Ne,Te}},(k,m,M)=>{var G=M(91).IteratorPrototype,V=M(71),q=M(14),$=M(92),D=M(88),B=function(){return this};k.exports=function(R,U,K,z){var e=U+" Iterator";return R.prototype=V(G,{next:q(+!z,K)}),$(R,e,!1,!0),D[e]=B,R}},(k,m,M)=>{var G=M(10),V=M(23),q=M(71),$=M(82),D=M(49),B=M(35),R=M(37),U=B("iterator"),K=!1,z,e,ae;[].keys&&(ae=[].keys(),"next"in ae?(e=$($(ae)),e!==Object.prototype&&(z=e)):K=!0);var ie=z==null||G(function(){var he={};return z[U].call(he)!==he});ie?z={}:R&&(z=q(z)),V(z[U])||D(z,U,function(){return this}),k.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:K}},(k,m,M)=>{var G=M(46).f,V=M(40),q=M(35),$=q("toStringTag");k.exports=function(D,B,R){D&&!R&&(D=D.prototype),D&&!V(D,$)&&G(D,$,{configurable:!0,value:B})}},(k,m,M)=>{var G=M(81),V=M(49),q=M(94);G||V(Object.prototype,"toString",q,{unsafe:!0})},(k,m,M)=>{var G=M(81),V=M(80);k.exports=G?{}.toString:function(){return"[object "+V(this)+"]"}},(k,m,M)=>{M(96)},(k,m,M)=>{var G=M(97),V=M(114);G("Map",function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},V)},(k,m,M)=>{var G=M(6),V=M(7),q=M(17),$=M(69),D=M(49),B=M(98),R=M(105),U=M(111),K=M(23),z=M(22),e=M(10),ae=M(112),ie=M(92),he=M(113);k.exports=function(J,W,X){var L=J.indexOf("Map")!==-1,Q=J.indexOf("Weak")!==-1,ce=L?"set":"add",de=V[J],se=de&&de.prototype,oe=de,me={},Ee=function(pe){var _e=q(se[pe]);D(se,pe,pe=="add"?function(Ae){return _e(this,Ae===0?0:Ae),this}:pe=="delete"?function(Ge){return Q&&!z(Ge)?!1:_e(this,Ge===0?0:Ge)}:pe=="get"?function(Ae){return Q&&!z(Ae)?void 0:_e(this,Ae===0?0:Ae)}:pe=="has"?function(Ae){return Q&&!z(Ae)?!1:_e(this,Ae===0?0:Ae)}:function(Ae,Ne){return _e(this,Ae===0?0:Ae,Ne),this})},ke=$(J,!K(de)||!(Q||se.forEach&&!e(function(){new de().entries().next()})));if(ke)oe=X.getConstructor(W,J,L,ce),B.enable();else if($(J,!0)){var xe=new oe,fe=xe[ce](Q?{}:-0,1)!=xe,ve=e(function(){xe.has(1)}),ye=ae(function(pe){new de(pe)}),Ce=!Q&&e(function(){for(var pe=new de,_e=5;_e--;)pe[ce](_e,_e);return!pe.has(-0)});ye||(oe=W(function(pe,_e){U(pe,se);var Ge=he(new de,pe,oe);return _e!=null&&R(_e,Ge[ce],{that:Ge,AS_ENTRIES:L}),Ge}),oe.prototype=se,se.constructor=oe),(ve||Ce)&&(Ee("delete"),Ee("has"),L&&Ee("get")),(Ce||fe)&&Ee(ce),Q&&se.clear&&delete se.clear}return me[J]=oe,G({global:!0,constructor:!0,forced:oe!=de},me),ie(oe,J),Q||X.setStrong(oe,J,L),oe}},(k,m,M)=>{var G=M(6),V=M(17),q=M(56),$=M(22),D=M(40),B=M(46).f,R=M(59),U=M(99),K=M(102),z=M(42),e=M(104),ae=!1,ie=z("meta"),he=0,J=function(de){B(de,ie,{value:{objectID:"O"+he++,weakData:{}}})},W=function(de,se){if(!$(de))return typeof de=="symbol"?de:(typeof de=="string"?"S":"P")+de;if(!D(de,ie)){if(!K(de))return"F";if(!se)return"E";J(de)}return de[ie].objectID},X=function(de,se){if(!D(de,ie)){if(!K(de))return!0;if(!se)return!1;J(de)}return de[ie].weakData},L=function(de){return e&&ae&&K(de)&&!D(de,ie)&&J(de),de},Q=function(){ce.enable=function(){},ae=!0;var de=R.f,se=V([].splice),oe={};oe[ie]=1,de(oe).length&&(R.f=function(me){for(var Ee=de(me),ke=0,xe=Ee.length;ke<xe;ke++)if(Ee[ke]===ie){se(Ee,ke,1);break}return Ee},G({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:U.f}))},ce=k.exports={enable:Q,fastKey:W,getWeakData:X,onFreeze:L};q[ie]=!0},(k,m,M)=>{var G=M(18),V=M(15),q=M(59).f,$=M(100),D=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],B=function(R){try{return q(R)}catch{return $(D)}};k.exports.f=function(U){return D&&G(U)=="Window"?B(U):q(V(U))}},(k,m,M)=>{var G=M(62),V=M(65),q=M(101),$=Array,D=Math.max;k.exports=function(B,R,U){for(var K=V(B),z=G(R,K),e=G(U===void 0?K:U,K),ae=$(D(e-z,0)),ie=0;z<e;z++,ie++)q(ae,ie,B[z]);return ae.length=ie,ae}},(k,m,M)=>{var G=M(20),V=M(46),q=M(14);k.exports=function($,D,B){var R=G(D);R in $?V.f($,R,q(0,B)):$[R]=B}},(k,m,M)=>{var G=M(10),V=M(22),q=M(18),$=M(103),D=Object.isExtensible,B=G(function(){});k.exports=B||$?function(U){return!V(U)||$&&q(U)=="ArrayBuffer"?!1:D?D(U):!0}:D},(k,m,M)=>{var G=M(10);k.exports=G(function(){if(typeof ArrayBuffer=="function"){var V=new ArrayBuffer(8);Object.isExtensible(V)&&Object.defineProperty(V,"a",{value:8})}})},(k,m,M)=>{var G=M(10);k.exports=!G(function(){return Object.isExtensible(Object.preventExtensions({}))})},(k,m,M)=>{var G=M(106),V=M(11),q=M(48),$=M(33),D=M(107),B=M(65),R=M(26),U=M(108),K=M(109),z=M(110),e=TypeError,ae=function(he,J){this.stopped=he,this.result=J},ie=ae.prototype;k.exports=function(he,J,W){var X=W&&W.that,L=!!(W&&W.AS_ENTRIES),Q=!!(W&&W.IS_RECORD),ce=!!(W&&W.IS_ITERATOR),de=!!(W&&W.INTERRUPTED),se=G(J,X),oe,me,Ee,ke,xe,fe,ve,ye=function(pe){return oe&&z(oe,"normal",pe),new ae(!0,pe)},Ce=function(pe){return L?(q(pe),de?se(pe[0],pe[1],ye):se(pe[0],pe[1])):de?se(pe,ye):se(pe)};if(Q)oe=he.iterator;else if(ce)oe=he;else{if(me=K(he),!me)throw e($(he)+" is not iterable");if(D(me)){for(Ee=0,ke=B(he);ke>Ee;Ee++)if(xe=Ce(he[Ee]),xe&&R(ie,xe))return xe;return new ae(!1)}oe=U(he,me)}for(fe=Q?he.next:oe.next;!(ve=V(fe,oe)).done;){try{xe=Ce(ve.value)}catch(pe){z(oe,"throw",pe)}if(typeof xe=="object"&&xe&&R(ie,xe))return xe}return new ae(!1)}},(k,m,M)=>{var G=M(17),V=M(32),q=M(12),$=G(G.bind);k.exports=function(D,B){return V(D),B===void 0?D:q?$(D,B):function(){return D.apply(B,arguments)}}},(k,m,M)=>{var G=M(35),V=M(88),q=G("iterator"),$=Array.prototype;k.exports=function(D){return D!==void 0&&(V.Array===D||$[q]===D)}},(k,m,M)=>{var G=M(11),V=M(32),q=M(48),$=M(33),D=M(109),B=TypeError;k.exports=function(R,U){var K=arguments.length<2?D(R):U;if(V(K))return q(G(K,R));throw B($(R)+" is not iterable")}},(k,m,M)=>{var G=M(80),V=M(31),q=M(88),$=M(35),D=$("iterator");k.exports=function(B){if(B!=null)return V(B,D)||V(B,"@@iterator")||q[G(B)]}},(k,m,M)=>{var G=M(11),V=M(48),q=M(31);k.exports=function($,D,B){var R,U;V($);try{if(R=q($,"return"),!R){if(D==="throw")throw B;return B}R=G(R,$)}catch(K){U=!0,R=K}if(D==="throw")throw B;if(U)throw R;return V(R),B}},(k,m,M)=>{var G=M(26),V=TypeError;k.exports=function(q,$){if(G($,q))return q;throw V("Incorrect invocation")}},(k,m,M)=>{var G=M(35),V=G("iterator"),q=!1;try{var $=0,D={next:function(){return{done:!!$++}},return:function(){q=!0}};D[V]=function(){return this},Array.from(D,function(){throw 2})}catch{}k.exports=function(B,R){if(!R&&!q)return!1;var U=!1;try{var K={};K[V]=function(){return{next:function(){return{done:U=!0}}}},B(K)}catch{}return U}},(k,m,M)=>{var G=M(23),V=M(22),q=M(84);k.exports=function($,D,B){var R,U;return q&&G(R=D.constructor)&&R!==B&&V(U=R.prototype)&&U!==B.prototype&&q($,U),$}},(k,m,M)=>{var G=M(46).f,V=M(71),q=M(115),$=M(106),D=M(111),B=M(105),R=M(89),U=M(116),K=M(9),z=M(98).fastKey,e=M(53),ae=e.set,ie=e.getterFor;k.exports={getConstructor:function(he,J,W,X){var L=he(function(oe,me){D(oe,Q),ae(oe,{type:J,index:V(null),first:void 0,last:void 0,size:0}),K||(oe.size=0),me!=null&&B(me,oe[X],{that:oe,AS_ENTRIES:W})}),Q=L.prototype,ce=ie(J),de=function(oe,me,Ee){var ke=ce(oe),xe=se(oe,me),fe,ve;return xe?xe.value=Ee:(ke.last=xe={index:ve=z(me,!0),key:me,value:Ee,previous:fe=ke.last,next:void 0,removed:!1},ke.first||(ke.first=xe),fe&&(fe.next=xe),K?ke.size++:oe.size++,ve!=="F"&&(ke.index[ve]=xe)),oe},se=function(oe,me){var Ee=ce(oe),ke=z(me),xe;if(ke!=="F")return Ee.index[ke];for(xe=Ee.first;xe;xe=xe.next)if(xe.key==me)return xe};return q(Q,{clear:function(){for(var me=this,Ee=ce(me),ke=Ee.index,xe=Ee.first;xe;)xe.removed=!0,xe.previous&&(xe.previous=xe.previous.next=void 0),delete ke[xe.index],xe=xe.next;Ee.first=Ee.last=void 0,K?Ee.size=0:me.size=0},delete:function(oe){var me=this,Ee=ce(me),ke=se(me,oe);if(ke){var xe=ke.next,fe=ke.previous;delete Ee.index[ke.index],ke.removed=!0,fe&&(fe.next=xe),xe&&(xe.previous=fe),Ee.first==ke&&(Ee.first=xe),Ee.last==ke&&(Ee.last=fe),K?Ee.size--:me.size--}return!!ke},forEach:function(me){for(var Ee=ce(this),ke=$(me,arguments.length>1?arguments[1]:void 0),xe;xe=xe?xe.next:Ee.first;)for(ke(xe.value,xe.key,this);xe&&xe.removed;)xe=xe.previous},has:function(me){return!!se(this,me)}}),q(Q,W?{get:function(me){var Ee=se(this,me);return Ee&&Ee.value},set:function(me,Ee){return de(this,me===0?0:me,Ee)}}:{add:function(me){return de(this,me=me===0?0:me,me)}}),K&&G(Q,"size",{get:function(){return ce(this).size}}),L},setStrong:function(he,J,W){var X=J+" Iterator",L=ie(J),Q=ie(X);R(he,J,function(ce,de){ae(this,{type:X,target:ce,state:L(ce),kind:de,last:void 0})},function(){for(var ce=Q(this),de=ce.kind,se=ce.last;se&&se.removed;)se=se.previous;return!ce.target||!(ce.last=se=se?se.next:ce.state.first)?(ce.target=void 0,{value:void 0,done:!0}):de=="keys"?{value:se.key,done:!1}:de=="values"?{value:se.value,done:!1}:{value:[se.key,se.value],done:!1}},W?"entries":"values",!W,!0),U(J)}}},(k,m,M)=>{var G=M(49);k.exports=function(V,q,$){for(var D in q)G(V,D,q[D],$);return V}},(k,m,M)=>{var G=M(25),V=M(46),q=M(35),$=M(9),D=q("species");k.exports=function(B){var R=G(B),U=V.f;$&&R&&!R[D]&&U(R,D,{configurable:!0,get:function(){return this}})}},(k,m,M)=>{M(118)},(k,m,M)=>{var G=M(97),V=M(114);G("Set",function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},V)},(k,m,M)=>{var G=M(37),V=M(6),q=M(7),$=M(25),D=M(17),B=M(10),R=M(42),U=M(23),K=M(120),z=M(22),e=M(24),ae=M(105),ie=M(48),he=M(80),J=M(40),W=M(101),X=M(45),L=M(65),Q=M(121),ce=M(122),de=M(124),se=M(29),oe=M(125),me=M(126),Ee=M(127),ke=q.Object,xe=q.Date,fe=q.Error,ve=q.EvalError,ye=q.RangeError,Ce=q.ReferenceError,pe=q.SyntaxError,_e=q.TypeError,Ge=q.URIError,Ae=q.PerformanceMark,Ne=q.WebAssembly,Ze=Ne&&Ne.CompileError||fe,ze=Ne&&Ne.LinkError||fe,Te=Ne&&Ne.RuntimeError||fe,Fe=$("DOMException"),Pe=$("Set"),we=$("Map"),Ie=we.prototype,Be=D(Ie.has),Ke=D(Ie.get),Ve=D(Ie.set),je=D(Pe.prototype.add),Le=$("Object","keys"),et=D([].push),Qe=D((!0).valueOf),Ue=D(1 .valueOf),$e=D("".valueOf),Ye=D(xe.prototype.getTime),tt=R("structuredClone"),ot="DataCloneError",st="Transferring",dt=function(Nt){return!B(function(){var Vt=new q.Set([7]),Wt=Nt(Vt),Mt=Nt(ke(7));return Wt==Vt||!Wt.has(7)||typeof Mt!="object"||Mt!=7})&&Nt},ct=function(Nt,Vt){return!B(function(){var Wt=new Vt,Mt=Nt({a:Wt,b:Wt});return!(Mt&&Mt.a===Mt.b&&Mt.a instanceof Vt&&Mt.a.stack===Wt.stack)})},mt=function(Nt){return!B(function(){var Vt=Nt(new q.AggregateError([1],tt,{cause:3}));return Vt.name!="AggregateError"||Vt.errors[0]!=1||Vt.message!=tt||Vt.cause!=3})},ut=q.structuredClone,rt=G||!ct(ut,fe)||!ct(ut,Fe)||!mt(ut),He=!ut&&dt(function(Nt){return new Ae(tt,{detail:Nt}).detail}),Je=dt(ut)||He,St=function(Nt){throw new Fe("Uncloneable type: "+Nt,ot)},bt=function(Nt,Vt){throw new Fe((Vt||"Cloning")+" of "+Nt+" cannot be properly polyfilled in this engine",ot)},pt=function(Nt,Vt){if(e(Nt)&&St("Symbol"),!z(Nt))return Nt;if(Vt){if(Be(Vt,Nt))return Ke(Vt,Nt)}else Vt=new we;var Wt=he(Nt),Mt=!1,$t,Yt,Ft,Jt,er,Bt,It,Dt,Zt,gr;switch(Wt){case"Array":Ft=[],Mt=!0;break;case"Object":Ft={},Mt=!0;break;case"Map":Ft=new we,Mt=!0;break;case"Set":Ft=new Pe,Mt=!0;break;case"RegExp":Ft=new RegExp(Nt.source,ce(Nt));break;case"Error":switch(Yt=Nt.name,Yt){case"AggregateError":Ft=$("AggregateError")([]);break;case"EvalError":Ft=ve();break;case"RangeError":Ft=ye();break;case"ReferenceError":Ft=Ce();break;case"SyntaxError":Ft=pe();break;case"TypeError":Ft=_e();break;case"URIError":Ft=Ge();break;case"CompileError":Ft=Ze();break;case"LinkError":Ft=ze();break;case"RuntimeError":Ft=Te();break;default:Ft=fe()}Mt=!0;break;case"DOMException":Ft=new Fe(Nt.message,Nt.name),Mt=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":$t=q[Wt],z($t)||bt(Wt),Ft=new $t(pt(Nt.buffer,Vt),Nt.byteOffset,Wt==="DataView"?Nt.byteLength:Nt.length);break;case"DOMQuad":try{Ft=new DOMQuad(pt(Nt.p1,Vt),pt(Nt.p2,Vt),pt(Nt.p3,Vt),pt(Nt.p4,Vt))}catch{Je?Ft=Je(Nt):bt(Wt)}break;case"FileList":if($t=q.DataTransfer,K($t)){for(Jt=new $t,er=0,Bt=L(Nt);er<Bt;er++)Jt.items.add(pt(Nt[er],Vt));Ft=Jt.files}else Je?Ft=Je(Nt):bt(Wt);break;case"ImageData":try{Ft=new ImageData(pt(Nt.data,Vt),Nt.width,Nt.height,{colorSpace:Nt.colorSpace})}catch{Je?Ft=Je(Nt):bt(Wt)}break;default:if(Je)Ft=Je(Nt);else switch(Wt){case"BigInt":Ft=ke(Nt.valueOf());break;case"Boolean":Ft=ke(Qe(Nt));break;case"Number":Ft=ke(Ue(Nt));break;case"String":Ft=ke($e(Nt));break;case"Date":Ft=new xe(Ye(Nt));break;case"ArrayBuffer":$t=q.DataView,!$t&&typeof Nt.slice!="function"&&bt(Wt);try{if(typeof Nt.slice=="function")Ft=Nt.slice(0);else for(Bt=Nt.byteLength,Ft=new ArrayBuffer(Bt),Zt=new $t(Nt),gr=new $t(Ft),er=0;er<Bt;er++)gr.setUint8(er,Zt.getUint8(er))}catch{throw new Fe("ArrayBuffer is detached",ot)}break;case"SharedArrayBuffer":Ft=Nt;break;case"Blob":try{Ft=Nt.slice(0,Nt.size,Nt.type)}catch{bt(Wt)}break;case"DOMPoint":case"DOMPointReadOnly":$t=q[Wt];try{Ft=$t.fromPoint?$t.fromPoint(Nt):new $t(Nt.x,Nt.y,Nt.z,Nt.w)}catch{bt(Wt)}break;case"DOMRect":case"DOMRectReadOnly":$t=q[Wt];try{Ft=$t.fromRect?$t.fromRect(Nt):new $t(Nt.x,Nt.y,Nt.width,Nt.height)}catch{bt(Wt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":$t=q[Wt];try{Ft=$t.fromMatrix?$t.fromMatrix(Nt):new $t(Nt)}catch{bt(Wt)}break;case"AudioData":case"VideoFrame":U(Nt.clone)||bt(Wt);try{Ft=Nt.clone()}catch{St(Wt)}break;case"File":try{Ft=new File([Nt],Nt.name,Nt)}catch{bt(Wt)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":bt(Wt);default:St(Wt)}}if(Ve(Vt,Nt,Ft),Mt)switch(Wt){case"Array":case"Object":for(It=Le(Nt),er=0,Bt=L(It);er<Bt;er++)Dt=It[er],W(Ft,Dt,pt(Nt[Dt],Vt));break;case"Map":Nt.forEach(function(fr,Dr){Ve(Ft,pt(Dr,Vt),pt(fr,Vt))});break;case"Set":Nt.forEach(function(fr){je(Ft,pt(fr,Vt))});break;case"Error":X(Ft,"message",pt(Nt.message,Vt)),J(Nt,"cause")&&X(Ft,"cause",pt(Nt.cause,Vt)),Yt=="AggregateError"&&(Ft.errors=pt(Nt.errors,Vt));case"DOMException":de&&X(Ft,"stack",pt(Nt.stack,Vt))}return Ft},wt=ut&&!B(function(){if(me&&se>92||Ee&&se>94||oe&&se>97)return!1;var Nt=new ArrayBuffer(8),Vt=ut(Nt,{transfer:[Nt]});return Nt.byteLength!=0||Vt.byteLength!=8}),Pt=function(Nt,Vt){if(!z(Nt))throw _e("Transfer option cannot be converted to a sequence");var Wt=[];ae(Nt,function(Zt){et(Wt,ie(Zt))});var Mt=0,$t=L(Wt),Yt,Ft,Jt,er,Bt,It,Dt;if(wt)for(er=ut(Wt,{transfer:Wt});Mt<$t;)Ve(Vt,Wt[Mt],er[Mt++]);else for(;Mt<$t;){if(Yt=Wt[Mt++],Be(Vt,Yt))throw new Fe("Duplicate transferable",ot);switch(Ft=he(Yt),Ft){case"ImageBitmap":Jt=q.OffscreenCanvas,K(Jt)||bt(Ft,st);try{It=new Jt(Yt.width,Yt.height),Dt=It.getContext("bitmaprenderer"),Dt.transferFromImageBitmap(Yt),Bt=It.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!U(Yt.clone)||!U(Yt.close))&&bt(Ft,st);try{Bt=Yt.clone(),Yt.close()}catch{}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":bt(Ft,st)}if(Bt===void 0)throw new Fe("This object cannot be transferred: "+Ft,ot);Ve(Vt,Yt,Bt)}};V({global:!0,enumerable:!0,sham:!wt,forced:rt},{structuredClone:function(Vt){var Wt=Q(arguments.length,1)>1&&arguments[1]!=null?ie(arguments[1]):void 0,Mt=Wt?Wt.transfer:void 0,$t;return Mt!==void 0&&($t=new we,Pt(Mt,$t)),pt(Vt,$t)}})},(k,m,M)=>{var G=M(17),V=M(10),q=M(23),$=M(80),D=M(25),B=M(52),R=function(){},U=[],K=D("Reflect","construct"),z=/^\s*(?:class|function)\b/,e=G(z.exec),ae=!z.exec(R),ie=function(W){if(!q(W))return!1;try{return K(R,U,W),!0}catch{return!1}},he=function(W){if(!q(W))return!1;switch($(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!e(z,B(W))}catch{return!0}};he.sham=!0,k.exports=!K||V(function(){var J;return ie(ie.call)||!ie(Object)||!ie(function(){J=!0})||J})?he:ie},k=>{var m=TypeError;k.exports=function(M,G){if(M<G)throw m("Not enough arguments");return M}},(k,m,M)=>{var G=M(11),V=M(40),q=M(26),$=M(123),D=RegExp.prototype;k.exports=function(B){var R=B.flags;return R===void 0&&!("flags"in D)&&!V(B,"flags")&&q(D,B)?G($,B):R}},(k,m,M)=>{var G=M(48);k.exports=function(){var V=G(this),q="";return V.hasIndices&&(q+="d"),V.global&&(q+="g"),V.ignoreCase&&(q+="i"),V.multiline&&(q+="m"),V.dotAll&&(q+="s"),V.unicode&&(q+="u"),V.unicodeSets&&(q+="v"),V.sticky&&(q+="y"),q}},(k,m,M)=>{var G=M(10),V=M(14);k.exports=!G(function(){var q=Error("a");return"stack"in q?(Object.defineProperty(q,"stack",V(1,7)),q.stack!==7):!0})},(k,m,M)=>{var G=M(126),V=M(127);k.exports=!G&&!V&&typeof window=="object"&&typeof document=="object"},k=>{k.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(k,m,M)=>{var G=M(18),V=M(7);k.exports=G(V.process)=="process"},(k,m,M)=>{var G=M(7);k.exports=G},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(130),_display_utils=__w_pdfjs_require__(133),_font_loader=__w_pdfjs_require__(136),_canvas=__w_pdfjs_require__(137),_worker_options=__w_pdfjs_require__(140),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(141),_metadata=__w_pdfjs_require__(142),_optional_content_config=__w_pdfjs_require__(143),_transport_stream=__w_pdfjs_require__(144),_xfa_text=__w_pdfjs_require__(145);function _classPrivateMethodInitSpec(k,m){_checkPrivateRedeclaration(k,m),m.add(k)}function _classPrivateMethodGet(k,m,M){if(!m.has(k))throw new TypeError("attempted to get private field on non-instance");return M}function _classPrivateFieldInitSpec(k,m,M){_checkPrivateRedeclaration(k,m),m.set(k,M)}function _checkPrivateRedeclaration(k,m){if(m.has(k))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(k,m,M){var G=_classExtractFieldDescriptor(k,m,"set");return _classApplyDescriptorSet(k,G,M),M}function _classPrivateFieldGet(k,m){var M=_classExtractFieldDescriptor(k,m,"get");return _classApplyDescriptorGet(k,M)}function _classExtractFieldDescriptor(k,m,M){if(!m.has(k))throw new TypeError("attempted to "+M+" private field on non-instance");return m.get(k)}function _classStaticPrivateFieldSpecSet(k,m,M,G){return _classCheckPrivateStaticAccess(k,m),_classCheckPrivateStaticFieldDescriptor(M,"set"),_classApplyDescriptorSet(k,M,G),G}function _classApplyDescriptorSet(k,m,M){if(m.set)m.set.call(k,M);else{if(!m.writable)throw new TypeError("attempted to set read only private field");m.value=M}}function _classStaticPrivateFieldSpecGet(k,m,M){return _classCheckPrivateStaticAccess(k,m),_classCheckPrivateStaticFieldDescriptor(M,"get"),_classApplyDescriptorGet(k,M)}function _classCheckPrivateStaticFieldDescriptor(k,m){if(k===void 0)throw new TypeError("attempted to "+m+" private static field before its declaration")}function _classCheckPrivateStaticAccess(k,m){if(k!==m)throw new TypeError("Private static access of wrong provenance")}function _classApplyDescriptorGet(k,m){return m.get?m.get.call(k):m.value}const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:k,NodeCMapReaderFactory:m,NodeStandardFontDataFactory:M}=__w_pdfjs_require__(146);exports.DefaultCanvasFactory=DefaultCanvasFactory=k,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=m,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=M}let createPDFNetworkStream;function setPDFNetworkStreamFactory(k){createPDFNetworkStream=k}function getDocument(k){const m=new PDFDocumentLoadingTask;let M;if(typeof k=="string"||k instanceof URL)M={url:k};else if((0,_util.isArrayBuffer)(k))M={data:k};else if(k instanceof PDFDataRangeTransport)M={range:k};else{if(typeof k!="object")throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!k.url&&!k.data&&!k.range)throw new Error("Invalid parameter object: need either .data, .range or .url");M=k}const G=Object.create(null);let V=null,q=null;for(const D in M){const B=M[D];switch(D){case"url":if(typeof window<"u")try{G[D]=new URL(B,window.location).href;continue}catch(R){(0,_util.warn)(`Cannot create valid URL: "${R}".`)}else if(typeof B=="string"||B instanceof URL){G[D]=B.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":V=B;continue;case"worker":q=B;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer<"u"&&B instanceof Buffer)G[D]=new Uint8Array(B);else{if(B instanceof Uint8Array)break;if(typeof B=="string")G[D]=(0,_util.stringToBytes)(B);else if(typeof B=="object"&&B!==null&&!isNaN(B.length))G[D]=new Uint8Array(B);else if((0,_util.isArrayBuffer)(B))G[D]=new Uint8Array(B);else throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}continue}G[D]=B}if(G.CMapReaderFactory=G.CMapReaderFactory||DefaultCMapReaderFactory,G.StandardFontDataFactory=G.StandardFontDataFactory||DefaultStandardFontDataFactory,G.ignoreErrors=G.stopAtErrors!==!0,G.fontExtraProperties=G.fontExtraProperties===!0,G.pdfBug=G.pdfBug===!0,G.enableXfa=G.enableXfa===!0,(!Number.isInteger(G.rangeChunkSize)||G.rangeChunkSize<1)&&(G.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),(typeof G.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(G.docBaseUrl))&&(G.docBaseUrl=null),(!Number.isInteger(G.maxImageSize)||G.maxImageSize<-1)&&(G.maxImageSize=-1),typeof G.cMapUrl!="string"&&(G.cMapUrl=null),typeof G.standardFontDataUrl!="string"&&(G.standardFontDataUrl=null),typeof G.useWorkerFetch!="boolean"&&(G.useWorkerFetch=G.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&G.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),typeof G.isEvalSupported!="boolean"&&(G.isEvalSupported=!0),typeof G.disableFontFace!="boolean"&&(G.disableFontFace=_is_node.isNodeJS),typeof G.useSystemFonts!="boolean"&&(G.useSystemFonts=!_is_node.isNodeJS&&!G.disableFontFace),(typeof G.ownerDocument!="object"||G.ownerDocument===null)&&(G.ownerDocument=globalThis.document),typeof G.disableRange!="boolean"&&(G.disableRange=!1),typeof G.disableStream!="boolean"&&(G.disableStream=!1),typeof G.disableAutoFetch!="boolean"&&(G.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(G.verbosity),!q){const D={verbosity:G.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};q=D.port?PDFWorker.fromPort(D):new PDFWorker(D),m._worker=q}const $=m.docId;return q.promise.then(function(){if(m.destroyed)throw new Error("Loading aborted");const D=_fetchDocument(q,G,V,$),B=new Promise(function(R){let U;V?U=new _transport_stream.PDFDataTransportStream({length:G.length,initialData:G.initialData,progressiveDone:G.progressiveDone,contentDispositionFilename:G.contentDispositionFilename,disableRange:G.disableRange,disableStream:G.disableStream},V):G.data||(U=createPDFNetworkStream({url:G.url,length:G.length,httpHeaders:G.httpHeaders,withCredentials:G.withCredentials,rangeChunkSize:G.rangeChunkSize,disableRange:G.disableRange,disableStream:G.disableStream})),R(U)});return Promise.all([D,B]).then(function(R){let[U,K]=R;if(m.destroyed)throw new Error("Loading aborted");const z=new _message_handler.MessageHandler($,U,q.port),e=new WorkerTransport(z,m,K,G);m._transport=e,z.send("Ready",null)})}).catch(m._capability.reject),m}async function _fetchDocument(k,m,M,G){if(k.destroyed)throw new Error("Worker was destroyed");M&&(m.length=M.length,m.initialData=M.initialData,m.progressiveDone=M.progressiveDone,m.contentDispositionFilename=M.contentDispositionFilename);const V=await k.messageHandler.sendWithPromise("GetDocRequest",{docId:G,apiVersion:"2.16.105",source:{data:m.data,url:m.url,password:m.password,disableAutoFetch:m.disableAutoFetch,rangeChunkSize:m.rangeChunkSize,length:m.length},maxImageSize:m.maxImageSize,disableFontFace:m.disableFontFace,docBaseUrl:m.docBaseUrl,ignoreErrors:m.ignoreErrors,isEvalSupported:m.isEvalSupported,fontExtraProperties:m.fontExtraProperties,enableXfa:m.enableXfa,useSystemFonts:m.useSystemFonts,cMapUrl:m.useWorkerFetch?m.cMapUrl:null,standardFontDataUrl:m.useWorkerFetch?m.standardFontDataUrl:null});if(m.data&&(m.data=null),k.destroyed)throw new Error("Worker was destroyed");return V}class PDFDocumentLoadingTask{constructor(){var m,M;this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId=`d${_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(m=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),M=m++,m)),M}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){var m;this.destroyed=!0,await((m=this._transport)===null||m===void 0?void 0:m.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var _docId={writable:!0,value:0};class PDFDataRangeTransport{constructor(m,M){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this.length=m,this.initialData=M,this.progressiveDone=G,this.contentDispositionFilename=V,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(m){this._rangeListeners.push(m)}addProgressListener(m){this._progressListeners.push(m)}addProgressiveReadListener(m){this._progressiveReadListeners.push(m)}addProgressiveDoneListener(m){this._progressiveDoneListeners.push(m)}onDataRange(m,M){for(const G of this._rangeListeners)G(m,M)}onDataProgress(m,M){this._readyCapability.promise.then(()=>{for(const G of this._progressListeners)G(m,M)})}onDataProgressiveRead(m){this._readyCapability.promise.then(()=>{for(const M of this._progressiveReadListeners)M(m)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const m of this._progressiveDoneListeners)m()})}transportReady(){this._readyCapability.resolve()}requestDataRange(m,M){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(m,M){this._pdfInfo=m,this._transport=M,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(m){return this._transport.getPage(m)}getPageIndex(m){return this._transport.getPageIndex(m)}getDestinations(){return this._transport.getDestinations()}getDestination(m){return this._transport.getDestination(m)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this._transport.startCleanup(m||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(m,M,G,V){let q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;this._pageIndex=m,this._pageInfo=M,this._ownerDocument=V,this._transport=G,this._stats=q?new _display_utils.StatTimer:null,this._pdfBug=q,this.commonObjs=G.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:m,rotation:M=this.rotate,offsetX:G=0,offsetY:V=0,dontFlip:q=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:m,rotation:M,offsetX:G,offsetY:V,dontFlip:q})}getAnnotations(){let{intent:m="display"}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=this._transport.getRenderingIntent(m);let G=this._annotationPromises.get(M.cacheKey);return G||(G=this._transport.getAnnotations(this._pageIndex,M.renderingIntent),this._annotationPromises.set(M.cacheKey,G),G=G.then(V=>{for(const q of V)q.titleObj!==void 0&&Object.defineProperty(q,"title",{get(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),q.titleObj.str}}),q.contentsObj!==void 0&&Object.defineProperty(q,"contents",{get(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),q.contentsObj.str}});return V})),G}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}async getXfa(){var m;return((m=this._transport._htmlForXfa)===null||m===void 0?void 0:m.children[this._pageIndex])||null}render(m){var M,G,V;let{canvasContext:q,viewport:$,intent:D="display",annotationMode:B=_util.AnnotationMode.ENABLE,transform:R=null,imageLayer:U=null,canvasFactory:K=null,background:z=null,optionalContentConfigPromise:e=null,annotationCanvasMap:ae=null,pageColors:ie=null,printAnnotationStorage:he=null}=m;((M=arguments[0])===null||M===void 0?void 0:M.renderInteractiveForms)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),arguments[0].renderInteractiveForms===!0&&B===_util.AnnotationMode.ENABLE&&(B=_util.AnnotationMode.ENABLE_FORMS)),((G=arguments[0])===null||G===void 0?void 0:G.includeAnnotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),arguments[0].includeAnnotationStorage===!0&&B===_util.AnnotationMode.ENABLE&&(B=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const J=this._transport.getRenderingIntent(D,B,he);this.pendingCleanup=!1,e||(e=this._transport.getOptionalContentConfig());let W=this._intentStates.get(J.cacheKey);W||(W=Object.create(null),this._intentStates.set(J.cacheKey,W)),W.streamReaderCancelTimeout&&(clearTimeout(W.streamReaderCancelTimeout),W.streamReaderCancelTimeout=null);const X=K||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),L=!!(J.renderingIntent&_util.RenderingIntentFlag.PRINT);W.displayReadyCapability||(W.displayReadyCapability=(0,_util.createPromiseCapability)(),W.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(J));const Q=se=>{W.renderTasks.delete(ce),(this.cleanupAfterRender||L)&&(this.pendingCleanup=!0),this._tryCleanup(),se?(ce.capability.reject(se),this._abortOperatorList({intentState:W,reason:se instanceof Error?se:new Error(se)})):ce.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},ce=new InternalRenderTask({callback:Q,params:{canvasContext:q,viewport:$,transform:R,imageLayer:U,background:z},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:ae,operatorList:W.operatorList,pageIndex:this._pageIndex,canvasFactory:X,useRequestAnimationFrame:!L,pdfBug:this._pdfBug,pageColors:ie});((V=W).renderTasks||(V.renderTasks=new Set)).add(ce);const de=ce.task;return Promise.all([W.displayReadyCapability.promise,e]).then(se=>{let[oe,me]=se;if(this.pendingCleanup){Q();return}this._stats&&this._stats.time("Rendering"),ce.initializeGraphics({transparency:oe,optionalContentConfig:me}),ce.operatorListChanged()}).catch(Q),de}getOperatorList(){let{intent:m="display",annotationMode:M=_util.AnnotationMode.ENABLE,printAnnotationStorage:G=null}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function V(){$.operatorList.lastChunk&&($.opListReadCapability.resolve($.operatorList),$.renderTasks.delete(D))}const q=this._transport.getRenderingIntent(m,M,G,!0);let $=this._intentStates.get(q.cacheKey);$||($=Object.create(null),this._intentStates.set(q.cacheKey,$));let D;if(!$.opListReadCapability){var B;D=Object.create(null),D.operatorListChanged=V,$.opListReadCapability=(0,_util.createPromiseCapability)(),((B=$).renderTasks||(B.renderTasks=new Set)).add(D),$.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(q)}return $.opListReadCapability.promise}streamTextContent(){let{disableCombineTextItems:m=!1,includeMarkedContent:M=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const G=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:m!==!0,includeMarkedContent:M===!0},{highWaterMark:G,size(V){return V.items.length}})}getTextContent(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(G=>_xfa_text.XfaText.textContent(G));const M=this.streamTextContent(m);return new Promise(function(G,V){function q(){$.read().then(function(B){let{value:R,done:U}=B;if(U){G(D);return}Object.assign(D.styles,R.styles),D.items.push(...R.items),q()},V)}const $=M.getReader(),D={items:[],styles:Object.create(null)};q()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const m=[];for(const M of this._intentStates.values())if(this._abortOperatorList({intentState:M,reason:new Error("Page was destroyed."),force:!0}),!M.opListReadCapability)for(const G of M.renderTasks)m.push(G.completed),G.cancel();this.objs.clear();for(const M of this._bitmaps)M.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(m)}cleanup(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(m)}_tryCleanup(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.pendingCleanup)return!1;for(const{renderTasks:M,operatorList:G}of this._intentStates.values())if(M.size>0||!G.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,m&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const M of this._bitmaps)M.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(m,M){const G=this._intentStates.get(M);G&&(this._stats&&this._stats.timeEnd("Page Request"),G.displayReadyCapability&&G.displayReadyCapability.resolve(m))}_renderPageChunk(m,M){for(let G=0,V=m.length;G<V;G++)M.operatorList.fnArray.push(m.fnArray[G]),M.operatorList.argsArray.push(m.argsArray[G]);M.operatorList.lastChunk=m.lastChunk,M.operatorList.separateAnnots=m.separateAnnots;for(const G of M.renderTasks)G.operatorListChanged();m.lastChunk&&this._tryCleanup()}_pumpOperatorList(m){let{renderingIntent:M,cacheKey:G,annotationStorageMap:V}=m;const $=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:M,cacheKey:G,annotationStorage:V}).getReader(),D=this._intentStates.get(G);D.streamReader=$;const B=()=>{$.read().then(R=>{let{value:U,done:K}=R;if(K){D.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(U,D),B())},R=>{if(D.streamReader=null,!this._transport.destroyed){if(D.operatorList){D.operatorList.lastChunk=!0;for(const U of D.renderTasks)U.operatorListChanged();this._tryCleanup()}if(D.displayReadyCapability)D.displayReadyCapability.reject(R);else if(D.opListReadCapability)D.opListReadCapability.reject(R);else throw R}})};B()}_abortOperatorList(m){let{intentState:M,reason:G,force:V=!1}=m;if(M.streamReader){if(!V){if(M.renderTasks.size>0)return;if(G instanceof _display_utils.RenderingCancelledException){M.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:M,reason:G,force:!0}),M.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}if(M.streamReader.cancel(new _util.AbortException(G.message)).catch(()=>{}),M.streamReader=null,!this._transport.destroyed){for(const[q,$]of this._intentStates)if($===M){this._intentStates.delete(q);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(m,M){const G={data:structuredClone(m,M)};this._deferred.then(()=>{for(const V of this._listeners)V.call(this,G)})}addEventListener(m,M){this._listeners.push(M)}removeEventListener(m,M){const G=this._listeners.indexOf(M);this._listeners.splice(G,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_is_node.isNodeJS&&typeof commonjsRequire$1=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){var _document,_document$currentScri;const k=(_document=document)===null||_document===void 0||(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;k&&(PDFWorkerUtil.fallbackWorkerSrc=k.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(k,m){let M;try{if(M=new URL(k),!M.origin||M.origin==="null")return!1}catch{return!1}const G=new URL(m,M);return M.origin===G.origin},PDFWorkerUtil.createCDNWrapper=function(k){const m=`importScripts("${k}");`;return URL.createObjectURL(new Blob([m]))}}class PDFWorker{constructor(){let{name:k=null,port:m=null,verbosity:M=(0,_util.getVerbosityLevel)()}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(m&&_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).has(m))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=k,this.destroyed=!1,this.verbosity=M,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,m){_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).set(m,this),this._initializeFromPort(m);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(k){this._port=k,this._messageHandler=new _message_handler.MessageHandler("main","worker",k),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:k}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,k)||(k=PDFWorkerUtil.createCDNWrapper(new URL(k,window.location).href));const m=new Worker(k),M=new _message_handler.MessageHandler("main","worker",m),G=()=>{m.removeEventListener("error",V),M.destroy(),m.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},V=()=>{this._webWorker||G()};m.addEventListener("error",V),M.on("test",$=>{if(m.removeEventListener("error",V),this.destroyed){G();return}$?(this._messageHandler=M,this._port=m,this._webWorker=m,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),M.destroy(),m.terminate())}),M.on("ready",$=>{if(m.removeEventListener("error",V),this.destroyed){G();return}try{q()}catch{this._setupFakeWorker()}});const q=()=>{const $=new Uint8Array;M.send("test",$,[$.buffer])};q();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(k=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const m=new LoopbackPort;this._port=m;const M=`fake${PDFWorkerUtil.fakeWorkerId++}`,G=new _message_handler.MessageHandler(M+"_worker",M,m);k.setup(G,m);const V=new _message_handler.MessageHandler(M,M+"_worker",m);this._messageHandler=V,this._readyCapability.resolve(),V.send("configure",{verbosity:this.verbosity})}).catch(k=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${k.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(k){if(!(k!=null&&k.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return _classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).has(k.port)?_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).get(k.port):new PDFWorker(k)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var k;return((k=globalThis.pdfjsWorker)===null||k===void 0?void 0:k.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof commonjsRequire$1=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;var _workerPorts={writable:!0,value:new WeakMap};PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap;class WorkerTransport{constructor(m,M,G,V){_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=m,this.loadingTask=M,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:M.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:V.ownerDocument,styleElement:V.styleElement}),this._params=V,V.useWorkerFetch||(this.CMapReaderFactory=new V.CMapReaderFactory({baseUrl:V.cMapUrl,isCompressed:V.cMapPacked}),this.StandardFontDataFactory=new V.StandardFontDataFactory({baseUrl:V.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=G,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return _classPrivateFieldGet(this,_docStats)}getRenderingIntent(m){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_util.AnnotationMode.ENABLE,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,q=_util.RenderingIntentFlag.DISPLAY,$=null;switch(m){case"any":q=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":q=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${m}`)}switch(M){case _util.AnnotationMode.DISABLE:q+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:q+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:q+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,$=(q&_util.RenderingIntentFlag.PRINT&&G instanceof _annotation_storage.PrintAnnotationStorage?G:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${M}`)}return V&&(q+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:q,cacheKey:`${q}_${_annotation_storage.AnnotationStorage.getHash($)}`,annotationStorageMap:$}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const m=[];for(const G of _classPrivateFieldGet(this,_pageCache).values())m.push(G._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const M=this.messageHandler.sendWithPromise("Terminate",null);return m.push(M),Promise.all(m).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:m,loadingTask:M}=this;m.on("GetReader",(G,V)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=q=>{this._lastProgress={loaded:q.loaded,total:q.total}},V.onPull=()=>{this._fullReader.read().then(function(q){let{value:$,done:D}=q;if(D){V.close();return}(0,_util.assert)((0,_util.isArrayBuffer)($),"GetReader - expected an ArrayBuffer."),V.enqueue(new Uint8Array($),1,[$])}).catch(q=>{V.error(q)})},V.onCancel=q=>{this._fullReader.cancel(q),V.ready.catch($=>{if(!this.destroyed)throw $})}}),m.on("ReaderHeadersReady",G=>{const V=(0,_util.createPromiseCapability)(),q=this._fullReader;return q.headersReady.then(()=>{if(!q.isStreamingSupported||!q.isRangeSupported){if(this._lastProgress){var $;($=M.onProgress)===null||$===void 0||$.call(M,this._lastProgress)}q.onProgress=D=>{var B;(B=M.onProgress)===null||B===void 0||B.call(M,{loaded:D.loaded,total:D.total})}}V.resolve({isStreamingSupported:q.isStreamingSupported,isRangeSupported:q.isRangeSupported,contentLength:q.contentLength})},V.reject),V.promise}),m.on("GetRangeReader",(G,V)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const q=this._networkStream.getRangeReader(G.begin,G.end);if(!q){V.close();return}V.onPull=()=>{q.read().then(function($){let{value:D,done:B}=$;if(B){V.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(D),"GetRangeReader - expected an ArrayBuffer."),V.enqueue(new Uint8Array(D),1,[D])}).catch($=>{V.error($)})},V.onCancel=$=>{q.cancel($),V.ready.catch(D=>{if(!this.destroyed)throw D})}}),m.on("GetDoc",G=>{let{pdfInfo:V}=G;this._numPages=V.numPages,this._htmlForXfa=V.htmlForXfa,delete V.htmlForXfa,M._capability.resolve(new PDFDocumentProxy(V,this))}),m.on("DocException",function(G){let V;switch(G.name){case"PasswordException":V=new _util.PasswordException(G.message,G.code);break;case"InvalidPDFException":V=new _util.InvalidPDFException(G.message);break;case"MissingPDFException":V=new _util.MissingPDFException(G.message);break;case"UnexpectedResponseException":V=new _util.UnexpectedResponseException(G.message,G.status);break;case"UnknownErrorException":V=new _util.UnknownErrorException(G.message,G.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}M._capability.reject(V)}),m.on("PasswordRequest",G=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),M.onPassword){const V=q=>{q instanceof Error?this._passwordCapability.reject(q):this._passwordCapability.resolve({password:q})};try{M.onPassword(V,G.code)}catch(q){this._passwordCapability.reject(q)}}else this._passwordCapability.reject(new _util.PasswordException(G.message,G.code));return this._passwordCapability.promise}),m.on("DataLoaded",G=>{var V;(V=M.onProgress)===null||V===void 0||V.call(M,{loaded:G.length,total:G.length}),this.downloadInfoCapability.resolve(G)}),m.on("StartRenderPage",G=>{if(this.destroyed)return;_classPrivateFieldGet(this,_pageCache).get(G.pageIndex)._startRenderPage(G.transparency,G.cacheKey)}),m.on("commonobj",G=>{var V;let[q,$,D]=G;if(!this.destroyed&&!this.commonObjs.has(q))switch($){case"Font":const B=this._params;if("error"in D){const K=D.error;(0,_util.warn)(`Error during font loading: ${K}`),this.commonObjs.resolve(q,K);break}let R=null;B.pdfBug&&(V=globalThis.FontInspector)!==null&&V!==void 0&&V.enabled&&(R={registerFont(K,z){globalThis.FontInspector.fontAdded(K,z)}});const U=new _font_loader.FontFaceObject(D,{isEvalSupported:B.isEvalSupported,disableFontFace:B.disableFontFace,ignoreErrors:B.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:R});this.fontLoader.bind(U).catch(K=>m.sendWithPromise("FontFallback",{id:q})).finally(()=>{!B.fontExtraProperties&&U.data&&(U.data=null),this.commonObjs.resolve(q,U)});break;case"FontPath":case"Image":this.commonObjs.resolve(q,D);break;default:throw new Error(`Got unknown common object type ${$}`)}}),m.on("obj",G=>{let[V,q,$,D]=G;if(this.destroyed)return;const B=_classPrivateFieldGet(this,_pageCache).get(q);if(!B.objs.has(V))switch($){case"Image":B.objs.resolve(V,D);const U=8e6;if(D){let K;if(D.bitmap){const{bitmap:z,width:e,height:ae}=D;K=e*ae*4,B._bitmaps.add(z)}else{var R;K=((R=D.data)===null||R===void 0?void 0:R.length)||0}K>U&&(B.cleanupAfterRender=!0)}break;case"Pattern":B.objs.resolve(V,D);break;default:throw new Error(`Got unknown object type ${$}`)}}),m.on("DocProgress",G=>{var V;this.destroyed||(V=M.onProgress)===null||V===void 0||V.call(M,{loaded:G.loaded,total:G.total})}),m.on("DocStats",G=>{this.destroyed||_classPrivateFieldSet(this,_docStats,Object.freeze({streamTypes:Object.freeze(G.streamTypes),fontTypes:Object.freeze(G.fontTypes)}))}),m.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),m.on("FetchBuiltInCMap",G=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(G):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),m.on("FetchStandardFontData",G=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(G):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature(m){var M,G;let{featureId:V}=m;this.destroyed||(M=(G=this.loadingTask).onUnsupportedFeature)===null||M===void 0||M.call(G,V)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(m){if(!Number.isInteger(m)||m<=0||m>this._numPages)return Promise.reject(new Error("Invalid page request."));const M=m-1,G=_classPrivateFieldGet(this,_pagePromises).get(M);if(G)return G;const V=this.messageHandler.sendWithPromise("GetPage",{pageIndex:M}).then(q=>{if(this.destroyed)throw new Error("Transport destroyed");const $=new PDFPageProxy(M,q,this,this._params.ownerDocument,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(M,$),$});return _classPrivateFieldGet(this,_pagePromises).set(M,V),V}getPageIndex(m){return typeof m!="object"||m===null||!Number.isInteger(m.num)||m.num<0||!Number.isInteger(m.gen)||m.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:m.num,gen:m.gen})}getAnnotations(m,M){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:m,intent:M})}saveDocument(){var m,M;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(m=(M=this._fullReader)===null||M===void 0?void 0:M.filename)!==null&&m!==void 0?m:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(m){return typeof m!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:m})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(m){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:m})}getStructTree(m){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:m})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(m=>new _optional_content_config.OptionalContentConfig(m))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then(m=>{var M,G,V,q;return{info:m[0],metadata:m[1]?new _metadata.Metadata(m[1]):null,contentDispositionFilename:(M=(G=this._fullReader)===null||G===void 0?void 0:G.filename)!==null&&M!==void 0?M:null,contentLength:(V=(q=this._fullReader)===null||q===void 0?void 0:q.contentLength)!==null&&V!==void 0?V:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const M of _classPrivateFieldGet(this,_pageCache).values())if(!M.cleanup())throw new Error(`startCleanup: Page ${M.pageNumber} is currently rendering.`);this.commonObjs.clear(),m||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const m=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:m.disableAutoFetch,enableXfa:m.enableXfa})}}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(m){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(M){const V=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,m);return V.capability.promise.then(()=>M(V.data)),null}const G=_classPrivateFieldGet(this,_objs)[m];if(!(G!=null&&G.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${m}.`);return G.data}has(m){const M=_classPrivateFieldGet(this,_objs)[m];return(M==null?void 0:M.capability.settled)||!1}resolve(m){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const G=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,m);G.data=M,G.capability.resolve()}clear(){_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(k){const m=_classPrivateFieldGet(this,_objs)[k];return m||(_classPrivateFieldGet(this,_objs)[k]={capability:(0,_util.createPromiseCapability)(),data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(m){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,m),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){_classPrivateFieldGet(this,_internalRenderTask).cancel()}get separateAnnots(){const{separateAnnots:m}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!m)return!1;const{annotationCanvasMap:M}=_classPrivateFieldGet(this,_internalRenderTask);return m.form||m.canvas&&(M==null?void 0:M.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(m){let{callback:M,params:G,objs:V,commonObjs:q,annotationCanvasMap:$,operatorList:D,pageIndex:B,canvasFactory:R,useRequestAnimationFrame:U=!1,pdfBug:K=!1,pageColors:z=null}=m;this.callback=M,this.params=G,this.objs=V,this.commonObjs=q,this.annotationCanvasMap=$,this.operatorListIdx=null,this.operatorList=D,this._pageIndex=B,this.canvasFactory=R,this._pdfBug=K,this.pageColors=z,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=U===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=G.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics(m){var M;let{transparency:G=!1,optionalContentConfig:V}=m;if(this.cancelled)return;if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas)}this._pdfBug&&(M=globalThis.StepperManager)!==null&&M!==void 0&&M.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:q,viewport:$,transform:D,imageLayer:B,background:R}=this.params;this.gfx=new _canvas.CanvasGraphics(q,this.commonObjs,this.objs,this.canvasFactory,B,V,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:D,viewport:$,transparency:G,background:R}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(m||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback())))}}var _canvasInUse={writable:!0,value:new WeakSet};const version="2.16.105";exports.version=version;const build="172ccdbe5";exports.build=build},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.PrintAnnotationStorage=m.AnnotationStorage=void 0;var G=M(1),V=M(131),q=M(135);function $(L,Q,ce){e(L,Q),Q.set(L,ce)}function D(L,Q){var ce=U(L,Q,"get");return B(L,ce)}function B(L,Q){return Q.get?Q.get.call(L):Q.value}function R(L,Q,ce){var de=U(L,Q,"set");return K(L,de,ce),ce}function U(L,Q,ce){if(!Q.has(L))throw new TypeError("attempted to "+ce+" private field on non-instance");return Q.get(L)}function K(L,Q,ce){if(Q.set)Q.set.call(L,ce);else{if(!Q.writable)throw new TypeError("attempted to set read only private field");Q.value=ce}}function z(L,Q){e(L,Q),Q.add(L)}function e(L,Q){if(Q.has(L))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ae(L,Q,ce){if(!Q.has(L))throw new TypeError("attempted to get private field on non-instance");return ce}var ie=new WeakSet;class he{constructor(){z(this,ie),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(Q,ce){const de=this._storage.get(Q);return de===void 0?ce:Object.assign(ce,de)}getRawValue(Q){return this._storage.get(Q)}remove(Q){if(this._storage.delete(Q),this._storage.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const ce of this._storage.values())if(ce instanceof V.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(Q,ce){const de=this._storage.get(Q);let se=!1;if(de!==void 0)for(const[oe,me]of Object.entries(ce))de[oe]!==me&&(se=!0,de[oe]=me);else se=!0,this._storage.set(Q,ce);se&&ae(this,ie,J).call(this),ce instanceof V.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(ce.constructor._type)}has(Q){return this._storage.has(Q)}getAll(){return this._storage.size>0?(0,G.objectFromMap)(this._storage):null}get size(){return this._storage.size}resetModified(){this._modified&&(this._modified=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new X(this)}get serializable(){if(this._storage.size===0)return null;const Q=new Map;for(const[ce,de]of this._storage){const se=de instanceof V.AnnotationEditor?de.serialize():de;se&&Q.set(ce,se)}return Q}static getHash(Q){if(!Q)return"";const ce=new q.MurmurHash3_64;for(const[de,se]of Q)ce.update(`${de}:${JSON.stringify(se)}`);return ce.hexdigest()}}m.AnnotationStorage=he;function J(){this._modified||(this._modified=!0,typeof this.onSetModified=="function"&&this.onSetModified())}var W=new WeakMap;class X extends he{constructor(Q){super(),$(this,W,{writable:!0,value:null}),R(this,W,structuredClone(Q.serializable))}get print(){(0,G.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return D(this,W)}}m.PrintAnnotationStorage=X},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.AnnotationEditor=void 0;var G=M(132),V=M(1);function q(L,Q,ce){return Q in L?Object.defineProperty(L,Q,{value:ce,enumerable:!0,configurable:!0,writable:!0}):L[Q]=ce,L}function $(L,Q,ce){D(L,Q),Q.set(L,ce)}function D(L,Q){if(Q.has(L))throw new TypeError("Cannot initialize the same private elements twice on an object")}function B(L,Q,ce){var de=K(L,Q,"set");return R(L,de,ce),ce}function R(L,Q,ce){if(Q.set)Q.set.call(L,ce);else{if(!Q.writable)throw new TypeError("attempted to set read only private field");Q.value=ce}}function U(L,Q){var ce=K(L,Q,"get");return z(L,ce)}function K(L,Q,ce){if(!Q.has(L))throw new TypeError("attempted to "+ce+" private field on non-instance");return Q.get(L)}function z(L,Q){return Q.get?Q.get.call(L):Q.value}var e=new WeakMap,ae=new WeakMap,ie=new WeakMap,he=new WeakMap,J=new WeakMap,W=new WeakMap;class X{constructor(Q){$(this,e,{writable:!0,value:this.focusin.bind(this)}),$(this,ae,{writable:!0,value:this.focusout.bind(this)}),$(this,ie,{writable:!0,value:!1}),$(this,he,{writable:!0,value:!1}),$(this,J,{writable:!0,value:!1}),$(this,W,{writable:!0,value:X._zIndex++}),this.constructor===X&&(0,V.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Q.parent,this.id=Q.id,this.width=this.height=null,this.pageIndex=Q.parent.pageIndex,this.name=Q.name,this.div=null;const[ce,de]=this.parent.viewportBaseDimensions;this.x=Q.x/ce,this.y=Q.y/de,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,V.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=U(this,W)}focusin(Q){U(this,ie)?B(this,ie,!1):this.parent.setSelected(this)}focusout(Q){if(!this.isAttachedToDOM)return;const ce=Q.relatedTarget;ce!=null&&ce.closest(`#${this.id}`)||(Q.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(Q){const ce=this.parent.div.getBoundingClientRect();this.startX=Q.clientX-ce.x,this.startY=Q.clientY-ce.y,Q.dataTransfer.setData("text/plain",this.id),Q.dataTransfer.effectAllowed="move"}setAt(Q,ce,de,se){const[oe,me]=this.parent.viewportBaseDimensions;[de,se]=this.screenToPageTranslation(de,se),this.x=(Q+de)/oe,this.y=(ce+se)/me,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}translate(Q,ce){const[de,se]=this.parent.viewportBaseDimensions;[Q,ce]=this.screenToPageTranslation(Q,ce),this.x+=Q/de,this.y+=ce/se,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}screenToPageTranslation(Q,ce){const{rotation:de}=this.parent.viewport;switch(de){case 90:return[ce,-Q];case 180:return[-Q,-ce];case 270:return[-ce,Q];default:return[Q,ce]}}setDims(Q,ce){const[de,se]=this.parent.viewportBaseDimensions;this.div.style.width=`${100*Q/de}%`,this.div.style.height=`${100*ce/se}%`}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",U(this,e)),this.div.addEventListener("focusout",U(this,ae));const[Q,ce]=this.getInitialTranslation();return this.translate(Q,ce),(0,G.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(Q){const ce=G.KeyboardManager.platform.isMac;if(Q.button!==0||Q.ctrlKey&&ce){Q.preventDefault();return}Q.ctrlKey&&!ce||Q.shiftKey||Q.metaKey&&ce?this.parent.toggleSelected(this):this.parent.setSelected(this),B(this,ie,!0)}getRect(Q,ce){const[de,se]=this.parent.viewportBaseDimensions,[oe,me]=this.parent.pageDimensions,Ee=oe*Q/de,ke=me*ce/se,xe=this.x*oe,fe=this.y*me,ve=this.width*oe,ye=this.height*me;switch(this.rotation){case 0:return[xe+Ee,me-fe-ke-ye,xe+Ee+ve,me-fe-ke];case 90:return[xe+ke,me-fe+Ee,xe+ke+ye,me-fe+Ee+ve];case 180:return[xe-Ee-ve,me-fe+ke,xe-Ee,me-fe+ke+ye];case 270:return[xe-ke-ye,me-fe-Ee-ve,xe-ke,me-fe-Ee];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Q,ce){const[de,se,oe,me]=Q,Ee=oe-de,ke=me-se;switch(this.rotation){case 0:return[de,ce-me,Ee,ke];case 90:return[de,ce-se,ke,Ee];case 180:return[oe,ce-se,Ee,ke];case 270:return[oe,ce-me,ke,Ee];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){B(this,J,!0)}disableEditMode(){B(this,J,!1)}isInEditMode(){return U(this,J)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var Q;(Q=this.div)===null||Q===void 0||Q.addEventListener("focusin",U(this,e))}serialize(){(0,V.unreachable)("An editor must be serializable")}static deserialize(Q,ce){const de=new this.prototype.constructor({parent:ce,id:ce.getNextId()});de.rotation=Q.rotation;const[se,oe]=ce.pageDimensions,[me,Ee,ke,xe]=de.getRectInCurrentCoords(Q.rect,oe);return de.x=me/se,de.y=Ee/oe,de.width=ke/se,de.height=xe/oe,de}remove(){this.div.removeEventListener("focusin",U(this,e)),this.div.removeEventListener("focusout",U(this,ae)),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){var Q;(Q=this.div)===null||Q===void 0||Q.classList.add("selectedEditor")}unselect(){var Q;(Q=this.div)===null||Q===void 0||Q.classList.remove("selectedEditor")}updateParams(Q,ce){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return U(this,he)}set isEditing(Q){B(this,he,Q),Q?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}m.AnnotationEditor=X,q(X,"_colorManager",new G.ColorManager),q(X,"_zIndex",1)},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.KeyboardManager=m.CommandManager=m.ColorManager=m.AnnotationEditorUIManager=void 0,m.bindEvents=ie,m.opacityToHex=he;var G=M(1),V=M(133);function q(St,bt,pt){return bt in St?Object.defineProperty(St,bt,{value:pt,enumerable:!0,configurable:!0,writable:!0}):St[bt]=pt,St}function $(St,bt){R(St,bt),bt.add(St)}function D(St,bt,pt){if(!bt.has(St))throw new TypeError("attempted to get private field on non-instance");return pt}function B(St,bt,pt){R(St,bt),bt.set(St,pt)}function R(St,bt){if(bt.has(St))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(St,bt,pt){var wt=e(St,bt,"set");return K(St,wt,pt),pt}function K(St,bt,pt){if(bt.set)bt.set.call(St,pt);else{if(!bt.writable)throw new TypeError("attempted to set read only private field");bt.value=pt}}function z(St,bt){var pt=e(St,bt,"get");return ae(St,pt)}function e(St,bt,pt){if(!bt.has(St))throw new TypeError("attempted to "+pt+" private field on non-instance");return bt.get(St)}function ae(St,bt){return bt.get?bt.get.call(St):bt.value}function ie(St,bt,pt){for(const wt of pt)bt.addEventListener(wt,St[wt].bind(St))}function he(St){return Math.round(Math.min(255,Math.max(1,255*St))).toString(16).padStart(2,"0")}var J=new WeakMap;class W{constructor(){B(this,J,{writable:!0,value:0})}getId(){var bt,pt;return`${G.AnnotationEditorPrefix}${U(this,J,(bt=z(this,J),pt=bt++,bt)),pt}`}}var X=new WeakMap,L=new WeakMap,Q=new WeakMap,ce=new WeakMap;class de{constructor(){let bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:128;B(this,X,{writable:!0,value:[]}),B(this,L,{writable:!0,value:!1}),B(this,Q,{writable:!0,value:void 0}),B(this,ce,{writable:!0,value:-1}),U(this,Q,bt)}add(bt){let{cmd:pt,undo:wt,mustExec:Pt,type:Nt=NaN,overwriteIfSameType:Vt=!1,keepUndo:Wt=!1}=bt;if(Pt&&pt(),z(this,L))return;const Mt={cmd:pt,undo:wt,type:Nt};if(z(this,ce)===-1){z(this,X).length>0&&(z(this,X).length=0),U(this,ce,0),z(this,X).push(Mt);return}if(Vt&&z(this,X)[z(this,ce)].type===Nt){Wt&&(Mt.undo=z(this,X)[z(this,ce)].undo),z(this,X)[z(this,ce)]=Mt;return}const $t=z(this,ce)+1;$t===z(this,Q)?z(this,X).splice(0,1):(U(this,ce,$t),$t<z(this,X).length&&z(this,X).splice($t)),z(this,X).push(Mt)}undo(){z(this,ce)!==-1&&(U(this,L,!0),z(this,X)[z(this,ce)].undo(),U(this,L,!1),U(this,ce,z(this,ce)-1))}redo(){z(this,ce)<z(this,X).length-1&&(U(this,ce,z(this,ce)+1),U(this,L,!0),z(this,X)[z(this,ce)].cmd(),U(this,L,!1))}hasSomethingToUndo(){return z(this,ce)!==-1}hasSomethingToRedo(){return z(this,ce)<z(this,X).length-1}destroy(){U(this,X,null)}}m.CommandManager=de;var se=new WeakSet;class oe{constructor(bt){$(this,se),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const pt=oe.platform.isMac;for(const[wt,Pt]of bt)for(const Nt of wt){const Vt=Nt.startsWith("mac+");pt&&Vt?(this.callbacks.set(Nt.slice(4),Pt),this.allKeys.add(Nt.split("+").at(-1))):!pt&&!Vt&&(this.callbacks.set(Nt,Pt),this.allKeys.add(Nt.split("+").at(-1)))}}static get platform(){const bt=typeof navigator<"u"?navigator.platform:"";return(0,G.shadow)(this,"platform",{isWin:bt.includes("Win"),isMac:bt.includes("Mac")})}exec(bt,pt){if(!this.allKeys.has(pt.key))return;const wt=this.callbacks.get(D(this,se,me).call(this,pt));wt&&(wt.bind(bt)(),pt.stopPropagation(),pt.preventDefault())}}m.KeyboardManager=oe;function me(St){St.altKey&&this.buffer.push("alt"),St.ctrlKey&&this.buffer.push("ctrl"),St.metaKey&&this.buffer.push("meta"),St.shiftKey&&this.buffer.push("shift"),this.buffer.push(St.key);const bt=this.buffer.join("+");return this.buffer.length=0,bt}var Ee=new WeakMap;class ke{constructor(){B(this,Ee,{writable:!0,value:null})}copy(bt){bt&&(Array.isArray(bt)?U(this,Ee,bt.map(pt=>pt.serialize())):U(this,Ee,[bt.serialize()]),U(this,Ee,z(this,Ee).filter(pt=>!!pt)),z(this,Ee).length===0&&U(this,Ee,null))}paste(){return z(this,Ee)}isEmpty(){return z(this,Ee)===null}destroy(){U(this,Ee,null)}}class xe{get _colors(){const bt=new Map([["CanvasText",null],["Canvas",null]]);return(0,V.getColorValues)(bt),(0,G.shadow)(this,"_colors",bt)}convert(bt){const pt=(0,V.getRGB)(bt);if(!window.matchMedia("(forced-colors: active)").matches)return pt;for(const[wt,Pt]of this._colors)if(Pt.every((Nt,Vt)=>Nt===pt[Vt]))return xe._colorsMapping.get(wt);return pt}getHexCode(bt){const pt=this._colors.get(bt);return pt?G.Util.makeHexColor(...pt):bt}}m.ColorManager=xe,q(xe,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var fe=new WeakMap,ve=new WeakMap,ye=new WeakMap,Ce=new WeakMap,pe=new WeakMap,_e=new WeakMap,Ge=new WeakMap,Ae=new WeakMap,Ne=new WeakMap,Ze=new WeakMap,ze=new WeakMap,Te=new WeakMap,Fe=new WeakMap,Pe=new WeakMap,we=new WeakMap,Ie=new WeakMap,Be=new WeakMap,Ke=new WeakSet,Ve=new WeakSet,je=new WeakSet,Le=new WeakSet,et=new WeakSet,Qe=new WeakSet,Ue=new WeakSet,$e=new WeakSet,Ye=new WeakSet;class tt{constructor(bt,pt){$(this,Ye),$(this,$e),$(this,Ue),$(this,Qe),$(this,et),$(this,Le),$(this,je),$(this,Ve),$(this,Ke),B(this,fe,{writable:!0,value:null}),B(this,ve,{writable:!0,value:new Map}),B(this,ye,{writable:!0,value:new Map}),B(this,Ce,{writable:!0,value:new ke}),B(this,pe,{writable:!0,value:new de}),B(this,_e,{writable:!0,value:0}),B(this,Ge,{writable:!0,value:null}),B(this,Ae,{writable:!0,value:null}),B(this,Ne,{writable:!0,value:new W}),B(this,Ze,{writable:!0,value:!1}),B(this,ze,{writable:!0,value:G.AnnotationEditorType.NONE}),B(this,Te,{writable:!0,value:new Set}),B(this,Fe,{writable:!0,value:this.keydown.bind(this)}),B(this,Pe,{writable:!0,value:this.onEditingAction.bind(this)}),B(this,we,{writable:!0,value:this.onPageChanging.bind(this)}),B(this,Ie,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),B(this,Be,{writable:!0,value:null}),U(this,Be,bt),U(this,Ae,pt),z(this,Ae)._on("editingaction",z(this,Pe)),z(this,Ae)._on("pagechanging",z(this,we))}destroy(){D(this,Ve,st).call(this),z(this,Ae)._off("editingaction",z(this,Pe)),z(this,Ae)._off("pagechanging",z(this,we));for(const bt of z(this,ye).values())bt.destroy();z(this,ye).clear(),z(this,ve).clear(),U(this,fe,null),z(this,Te).clear(),z(this,Ce).destroy(),z(this,pe).destroy()}onPageChanging(bt){let{pageNumber:pt}=bt;U(this,_e,pt-1)}focusMainContainer(){z(this,Be).focus()}keydown(bt){var pt;(pt=this.getActive())!==null&&pt!==void 0&&pt.shouldGetKeyboardEvents()||tt._keyboardManager.exec(this,bt)}onEditingAction(bt){["undo","redo","cut","copy","paste","delete","selectAll"].includes(bt.name)&&this[bt.name]()}setEditingState(bt){bt?(D(this,Ke,ot).call(this),D(this,je,dt).call(this,{isEditing:z(this,ze)!==G.AnnotationEditorType.NONE,isEmpty:D(this,$e,He).call(this),hasSomethingToUndo:z(this,pe).hasSomethingToUndo(),hasSomethingToRedo:z(this,pe).hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:z(this,Ce).isEmpty()})):(D(this,Ve,st).call(this),D(this,je,dt).call(this,{isEditing:!1}))}registerEditorTypes(bt){U(this,Ge,bt);for(const pt of z(this,Ge))D(this,Le,ct).call(this,pt.defaultPropertiesToUpdate)}getId(){return z(this,Ne).getId()}addLayer(bt){z(this,ye).set(bt.pageIndex,bt),z(this,Ze)?bt.enable():bt.disable()}removeLayer(bt){z(this,ye).delete(bt.pageIndex)}updateMode(bt){if(U(this,ze,bt),bt===G.AnnotationEditorType.NONE)this.setEditingState(!1),D(this,Qe,ut).call(this);else{this.setEditingState(!0),D(this,et,mt).call(this);for(const pt of z(this,ye).values())pt.updateMode(bt)}}updateToolbar(bt){bt!==z(this,ze)&&z(this,Ae).dispatch("switchannotationeditormode",{source:this,mode:bt})}updateParams(bt,pt){for(const wt of z(this,Te))wt.updateParams(bt,pt);for(const wt of z(this,Ge))wt.updateDefaultParams(bt,pt)}getEditors(bt){const pt=[];for(const wt of z(this,ve).values())wt.pageIndex===bt&&pt.push(wt);return pt}getEditor(bt){return z(this,ve).get(bt)}addEditor(bt){z(this,ve).set(bt.id,bt)}removeEditor(bt){z(this,ve).delete(bt.id),this.unselect(bt)}setActiveEditor(bt){z(this,fe)!==bt&&(U(this,fe,bt),bt&&D(this,Le,ct).call(this,bt.propertiesToUpdate))}toggleSelected(bt){if(z(this,Te).has(bt)){z(this,Te).delete(bt),bt.unselect(),D(this,je,dt).call(this,{hasSelectedEditor:this.hasSelection});return}z(this,Te).add(bt),bt.select(),D(this,Le,ct).call(this,bt.propertiesToUpdate),D(this,je,dt).call(this,{hasSelectedEditor:!0})}setSelected(bt){for(const pt of z(this,Te))pt!==bt&&pt.unselect();z(this,Te).clear(),z(this,Te).add(bt),bt.select(),D(this,Le,ct).call(this,bt.propertiesToUpdate),D(this,je,dt).call(this,{hasSelectedEditor:!0})}isSelected(bt){return z(this,Te).has(bt)}unselect(bt){bt.unselect(),z(this,Te).delete(bt),D(this,je,dt).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return z(this,Te).size!==0}undo(){z(this,pe).undo(),D(this,je,dt).call(this,{hasSomethingToUndo:z(this,pe).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:D(this,$e,He).call(this)})}redo(){z(this,pe).redo(),D(this,je,dt).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:z(this,pe).hasSomethingToRedo(),isEmpty:D(this,$e,He).call(this)})}addCommands(bt){z(this,pe).add(bt),D(this,je,dt).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:D(this,$e,He).call(this)})}delete(){if(z(this,fe)&&z(this,fe).commitOrRemove(),!this.hasSelection)return;const bt=[...z(this,Te)],pt=()=>{for(const Pt of bt)Pt.remove()},wt=()=>{for(const Pt of bt)D(this,Ue,rt).call(this,Pt)};this.addCommands({cmd:pt,undo:wt,mustExec:!0})}copy(){if(z(this,fe)&&z(this,fe).commitOrRemove(),this.hasSelection){const bt=[];for(const pt of z(this,Te))pt.isEmpty()||bt.push(pt);if(bt.length===0)return;z(this,Ce).copy(bt),D(this,je,dt).call(this,{hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(z(this,Ce).isEmpty())return;this.unselectAll();const bt=z(this,ye).get(z(this,_e)),pt=z(this,Ce).paste().map(Nt=>bt.deserialize(Nt)),wt=()=>{for(const Nt of pt)D(this,Ue,rt).call(this,Nt);D(this,Ye,Je).call(this,pt)},Pt=()=>{for(const Nt of pt)Nt.remove()};this.addCommands({cmd:wt,undo:Pt,mustExec:!0})}selectAll(){for(const bt of z(this,Te))bt.commit();D(this,Ye,Je).call(this,z(this,ve).values())}unselectAll(){if(z(this,fe)){z(this,fe).commitOrRemove();return}if(D(this,Ye,Je).size!==0){for(const bt of z(this,Te))bt.unselect();z(this,Te).clear(),D(this,je,dt).call(this,{hasSelectedEditor:!1})}}isActive(bt){return z(this,fe)===bt}getActive(){return z(this,fe)}getMode(){return z(this,ze)}}m.AnnotationEditorUIManager=tt;function ot(){z(this,Be).addEventListener("keydown",z(this,Fe))}function st(){z(this,Be).removeEventListener("keydown",z(this,Fe))}function dt(St){Object.entries(St).some(pt=>{let[wt,Pt]=pt;return z(this,Ie)[wt]!==Pt})&&z(this,Ae).dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(z(this,Ie),St)})}function ct(St){z(this,Ae).dispatch("annotationeditorparamschanged",{source:this,details:St})}function mt(){if(!z(this,Ze)){U(this,Ze,!0);for(const St of z(this,ye).values())St.enable()}}function ut(){if(this.unselectAll(),z(this,Ze)){U(this,Ze,!1);for(const St of z(this,ye).values())St.disable()}}function rt(St){const bt=z(this,ye).get(St.pageIndex);bt?bt.addOrRebuild(St):this.addEditor(St)}function He(){if(z(this,ve).size===0)return!0;if(z(this,ve).size===1)for(const St of z(this,ve).values())return St.isEmpty();return!1}function Je(St){z(this,Te).clear();for(const bt of St)bt.isEmpty()||(z(this,Te).add(bt),bt.select());D(this,je,dt).call(this,{hasSelectedEditor:!0})}q(tt,"_keyboardManager",new oe([[["ctrl+a","mac+meta+a"],tt.prototype.selectAll],[["ctrl+c","mac+meta+c"],tt.prototype.copy],[["ctrl+v","mac+meta+v"],tt.prototype.paste],[["ctrl+x","mac+meta+x"],tt.prototype.cut],[["ctrl+z","mac+meta+z"],tt.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],tt.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],tt.prototype.delete],[["Escape","mac+Escape"],tt.prototype.unselectAll]]))},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.StatTimer=m.RenderingCancelledException=m.PixelsPerInch=m.PageViewport=m.PDFDateString=m.DOMStandardFontDataFactory=m.DOMSVGFactory=m.DOMCanvasFactory=m.DOMCMapReaderFactory=m.AnnotationPrefix=void 0,m.deprecated=de,m.getColorValues=ke,m.getCurrentTransform=xe,m.getCurrentTransformInverse=fe,m.getFilenameFromUrl=W,m.getPdfFilenameFromUrl=X,m.getRGB=Ee,m.getXfaPageViewport=me,m.isDataScheme=he,m.isPdfFile=J,m.isValidFetchUrl=Q,m.loadScript=ce;var G=M(134),V=M(1);function q(ve,ye,Ce){return ye in ve?Object.defineProperty(ve,ye,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):ve[ye]=Ce,ve}const $="http://www.w3.org/2000/svg",D="pdfjs_internal_id_";m.AnnotationPrefix=D;class B{}m.PixelsPerInch=B,q(B,"CSS",96),q(B,"PDF",72),q(B,"PDF_TO_CSS_UNITS",B.CSS/B.PDF);class R extends G.BaseCanvasFactory{constructor(){let{ownerDocument:ye=globalThis.document}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),this._document=ye}_createCanvas(ye,Ce){const pe=this._document.createElement("canvas");return pe.width=ye,pe.height=Ce,pe}}m.DOMCanvasFactory=R;async function U(ve){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Q(ve,document.baseURI)){const Ce=await fetch(ve);if(!Ce.ok)throw new Error(Ce.statusText);return ye?new Uint8Array(await Ce.arrayBuffer()):(0,V.stringToBytes)(await Ce.text())}return new Promise((Ce,pe)=>{const _e=new XMLHttpRequest;_e.open("GET",ve,!0),ye&&(_e.responseType="arraybuffer"),_e.onreadystatechange=()=>{if(_e.readyState===XMLHttpRequest.DONE){if(_e.status===200||_e.status===0){let Ge;if(ye&&_e.response?Ge=new Uint8Array(_e.response):!ye&&_e.responseText&&(Ge=(0,V.stringToBytes)(_e.responseText)),Ge){Ce(Ge);return}}pe(new Error(_e.statusText))}},_e.send(null)})}class K extends G.BaseCMapReaderFactory{_fetchData(ye,Ce){return U(ye,this.isCompressed).then(pe=>({cMapData:pe,compressionType:Ce}))}}m.DOMCMapReaderFactory=K;class z extends G.BaseStandardFontDataFactory{_fetchData(ye){return U(ye,!0)}}m.DOMStandardFontDataFactory=z;class e extends G.BaseSVGFactory{_createSVG(ye){return document.createElementNS($,ye)}}m.DOMSVGFactory=e;class ae{constructor(ye){let{viewBox:Ce,scale:pe,rotation:_e,offsetX:Ge=0,offsetY:Ae=0,dontFlip:Ne=!1}=ye;this.viewBox=Ce,this.scale=pe,this.rotation=_e,this.offsetX=Ge,this.offsetY=Ae;const Ze=(Ce[2]+Ce[0])/2,ze=(Ce[3]+Ce[1])/2;let Te,Fe,Pe,we;switch(_e%=360,_e<0&&(_e+=360),_e){case 180:Te=-1,Fe=0,Pe=0,we=1;break;case 90:Te=0,Fe=1,Pe=1,we=0;break;case 270:Te=0,Fe=-1,Pe=-1,we=0;break;case 0:Te=1,Fe=0,Pe=0,we=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Ne&&(Pe=-Pe,we=-we);let Ie,Be,Ke,Ve;Te===0?(Ie=Math.abs(ze-Ce[1])*pe+Ge,Be=Math.abs(Ze-Ce[0])*pe+Ae,Ke=Math.abs(Ce[3]-Ce[1])*pe,Ve=Math.abs(Ce[2]-Ce[0])*pe):(Ie=Math.abs(Ze-Ce[0])*pe+Ge,Be=Math.abs(ze-Ce[1])*pe+Ae,Ke=Math.abs(Ce[2]-Ce[0])*pe,Ve=Math.abs(Ce[3]-Ce[1])*pe),this.transform=[Te*pe,Fe*pe,Pe*pe,we*pe,Ie-Te*pe*Ze-Pe*pe*ze,Be-Fe*pe*Ze-we*pe*ze],this.width=Ke,this.height=Ve}clone(){let{scale:ye=this.scale,rotation:Ce=this.rotation,offsetX:pe=this.offsetX,offsetY:_e=this.offsetY,dontFlip:Ge=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new ae({viewBox:this.viewBox.slice(),scale:ye,rotation:Ce,offsetX:pe,offsetY:_e,dontFlip:Ge})}convertToViewportPoint(ye,Ce){return V.Util.applyTransform([ye,Ce],this.transform)}convertToViewportRectangle(ye){const Ce=V.Util.applyTransform([ye[0],ye[1]],this.transform),pe=V.Util.applyTransform([ye[2],ye[3]],this.transform);return[Ce[0],Ce[1],pe[0],pe[1]]}convertToPdfPoint(ye,Ce){return V.Util.applyInverseTransform([ye,Ce],this.transform)}}m.PageViewport=ae;class ie extends V.BaseException{constructor(ye,Ce){super(ye,"RenderingCancelledException"),this.type=Ce}}m.RenderingCancelledException=ie;function he(ve){const ye=ve.length;let Ce=0;for(;Ce<ye&&ve[Ce].trim()==="";)Ce++;return ve.substring(Ce,Ce+5).toLowerCase()==="data:"}function J(ve){return typeof ve=="string"&&/\.pdf$/i.test(ve)}function W(ve){const ye=ve.indexOf("#"),Ce=ve.indexOf("?"),pe=Math.min(ye>0?ye:ve.length,Ce>0?Ce:ve.length);return ve.substring(ve.lastIndexOf("/",pe)+1,pe)}function X(ve){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof ve!="string")return ye;if(he(ve))return(0,V.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),ye;const Ce=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,pe=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,_e=Ce.exec(ve);let Ge=pe.exec(_e[1])||pe.exec(_e[2])||pe.exec(_e[3]);if(Ge&&(Ge=Ge[0],Ge.includes("%")))try{Ge=pe.exec(decodeURIComponent(Ge))[0]}catch{}return Ge||ye}class L{constructor(){this.started=Object.create(null),this.times=[]}time(ye){ye in this.started&&(0,V.warn)(`Timer is already running for ${ye}`),this.started[ye]=Date.now()}timeEnd(ye){ye in this.started||(0,V.warn)(`Timer has not been started for ${ye}`),this.times.push({name:ye,start:this.started[ye],end:Date.now()}),delete this.started[ye]}toString(){const ye=[];let Ce=0;for(const pe of this.times){const _e=pe.name;_e.length>Ce&&(Ce=_e.length)}for(const pe of this.times){const _e=pe.end-pe.start;ye.push(`${pe.name.padEnd(Ce)} ${_e}ms
`)}return ye.join("")}}m.StatTimer=L;function Q(ve,ye){try{const{protocol:Ce}=ye?new URL(ve,ye):new URL(ve);return Ce==="http:"||Ce==="https:"}catch{return!1}}function ce(ve){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise((Ce,pe)=>{const _e=document.createElement("script");_e.src=ve,_e.onload=function(Ge){ye&&_e.remove(),Ce(Ge)},_e.onerror=function(){pe(new Error(`Cannot load script at: ${_e.src}`))},(document.head||document.documentElement).append(_e)})}function de(ve){console.log("Deprecated API usage: "+ve)}let se;class oe{static toDateObject(ye){if(!ye||typeof ye!="string")return null;se||(se=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const Ce=se.exec(ye);if(!Ce)return null;const pe=parseInt(Ce[1],10);let _e=parseInt(Ce[2],10);_e=_e>=1&&_e<=12?_e-1:0;let Ge=parseInt(Ce[3],10);Ge=Ge>=1&&Ge<=31?Ge:1;let Ae=parseInt(Ce[4],10);Ae=Ae>=0&&Ae<=23?Ae:0;let Ne=parseInt(Ce[5],10);Ne=Ne>=0&&Ne<=59?Ne:0;let Ze=parseInt(Ce[6],10);Ze=Ze>=0&&Ze<=59?Ze:0;const ze=Ce[7]||"Z";let Te=parseInt(Ce[8],10);Te=Te>=0&&Te<=23?Te:0;let Fe=parseInt(Ce[9],10)||0;return Fe=Fe>=0&&Fe<=59?Fe:0,ze==="-"?(Ae+=Te,Ne+=Fe):ze==="+"&&(Ae-=Te,Ne-=Fe),new Date(Date.UTC(pe,_e,Ge,Ae,Ne,Ze))}}m.PDFDateString=oe;function me(ve,ye){let{scale:Ce=1,rotation:pe=0}=ye;const{width:_e,height:Ge}=ve.attributes.style,Ae=[0,0,parseInt(_e),parseInt(Ge)];return new ae({viewBox:Ae,scale:Ce,rotation:pe})}function Ee(ve){if(ve.startsWith("#")){const ye=parseInt(ve.slice(1),16);return[(ye&16711680)>>16,(ye&65280)>>8,ye&255]}return ve.startsWith("rgb(")?ve.slice(4,-1).split(",").map(ye=>parseInt(ye)):ve.startsWith("rgba(")?ve.slice(5,-1).split(",").map(ye=>parseInt(ye)).slice(0,3):((0,V.warn)(`Not a valid color format: "${ve}"`),[0,0,0])}function ke(ve){const ye=document.createElement("span");ye.style.visibility="hidden",document.body.append(ye);for(const Ce of ve.keys()){ye.style.color=Ce;const pe=window.getComputedStyle(ye).color;ve.set(Ce,Ee(pe))}ye.remove()}function xe(ve){const{a:ye,b:Ce,c:pe,d:_e,e:Ge,f:Ae}=ve.getTransform();return[ye,Ce,pe,_e,Ge,Ae]}function fe(ve){const{a:ye,b:Ce,c:pe,d:_e,e:Ge,f:Ae}=ve.getTransform().invertSelf();return[ye,Ce,pe,_e,Ge,Ae]}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.BaseStandardFontDataFactory=m.BaseSVGFactory=m.BaseCanvasFactory=m.BaseCMapReaderFactory=void 0;var G=M(1);class V{constructor(){this.constructor===V&&(0,G.unreachable)("Cannot initialize BaseCanvasFactory.")}create(R,U){if(R<=0||U<=0)throw new Error("Invalid canvas size");const K=this._createCanvas(R,U);return{canvas:K,context:K.getContext("2d")}}reset(R,U,K){if(!R.canvas)throw new Error("Canvas is not specified");if(U<=0||K<=0)throw new Error("Invalid canvas size");R.canvas.width=U,R.canvas.height=K}destroy(R){if(!R.canvas)throw new Error("Canvas is not specified");R.canvas.width=0,R.canvas.height=0,R.canvas=null,R.context=null}_createCanvas(R,U){(0,G.unreachable)("Abstract method `_createCanvas` called.")}}m.BaseCanvasFactory=V;class q{constructor(R){let{baseUrl:U=null,isCompressed:K=!1}=R;this.constructor===q&&(0,G.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=U,this.isCompressed=K}async fetch(R){let{name:U}=R;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!U)throw new Error("CMap name must be specified.");const K=this.baseUrl+U+(this.isCompressed?".bcmap":""),z=this.isCompressed?G.CMapCompressionType.BINARY:G.CMapCompressionType.NONE;return this._fetchData(K,z).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${K}`)})}_fetchData(R,U){(0,G.unreachable)("Abstract method `_fetchData` called.")}}m.BaseCMapReaderFactory=q;class ${constructor(R){let{baseUrl:U=null}=R;this.constructor===$&&(0,G.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=U}async fetch(R){let{filename:U}=R;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!U)throw new Error("Font filename must be specified.");const K=`${this.baseUrl}${U}`;return this._fetchData(K).catch(z=>{throw new Error(`Unable to load font data at: ${K}`)})}_fetchData(R){(0,G.unreachable)("Abstract method `_fetchData` called.")}}m.BaseStandardFontDataFactory=$;class D{constructor(){this.constructor===D&&(0,G.unreachable)("Cannot initialize BaseSVGFactory.")}create(R,U){let K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(R<=0||U<=0)throw new Error("Invalid SVG dimensions");const z=this._createSVG("svg:svg");return z.setAttribute("version","1.1"),K||(z.setAttribute("width",`${R}px`),z.setAttribute("height",`${U}px`)),z.setAttribute("preserveAspectRatio","none"),z.setAttribute("viewBox",`0 0 ${R} ${U}`),z}createElement(R){if(typeof R!="string")throw new Error("Invalid SVG element type");return this._createSVG(R)}_createSVG(R){(0,G.unreachable)("Abstract method `_createSVG` called.")}}m.BaseSVGFactory=D},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.MurmurHash3_64=void 0;var G=M(1);const V=3285377520,q=4294901760,$=65535;class D{constructor(R){this.h1=R?R&4294967295:V,this.h2=R?R&4294967295:V}update(R){let U,K;if(typeof R=="string"){U=new Uint8Array(R.length*2),K=0;for(let de=0,se=R.length;de<se;de++){const oe=R.charCodeAt(de);oe<=255?U[K++]=oe:(U[K++]=oe>>>8,U[K++]=oe&255)}}else if((0,G.isArrayBuffer)(R))U=R.slice(),K=U.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const z=K>>2,e=K-z*4,ae=new Uint32Array(U.buffer,0,z);let ie=0,he=0,J=this.h1,W=this.h2;const X=3432918353,L=461845907,Q=X&$,ce=L&$;for(let de=0;de<z;de++)de&1?(ie=ae[de],ie=ie*X&q|ie*Q&$,ie=ie<<15|ie>>>17,ie=ie*L&q|ie*ce&$,J^=ie,J=J<<13|J>>>19,J=J*5+3864292196):(he=ae[de],he=he*X&q|he*Q&$,he=he<<15|he>>>17,he=he*L&q|he*ce&$,W^=he,W=W<<13|W>>>19,W=W*5+3864292196);switch(ie=0,e){case 3:ie^=U[z*4+2]<<16;case 2:ie^=U[z*4+1]<<8;case 1:ie^=U[z*4],ie=ie*X&q|ie*Q&$,ie=ie<<15|ie>>>17,ie=ie*L&q|ie*ce&$,z&1?J^=ie:W^=ie}this.h1=J,this.h2=W}hexdigest(){let R=this.h1,U=this.h2;R^=U>>>1,R=R*3981806797&q|R*36045&$,U=U*4283543511&q|((U<<16|R>>>16)*2950163797&q)>>>16,R^=U>>>1,R=R*444984403&q|R*60499&$,U=U*3301882366&q|((U<<16|R>>>16)*3120437893&q)>>>16,R^=U>>>1;const K=(R>>>0).toString(16),z=(U>>>0).toString(16);return K.padStart(8,"0")+z.padStart(8,"0")}}m.MurmurHash3_64=D},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.FontLoader=m.FontFaceObject=void 0;var G=M(1);class V{constructor(B){let{docId:R,onUnsupportedFeature:U,ownerDocument:K=globalThis.document,styleElement:z=null}=B;this.constructor===V&&(0,G.unreachable)("Cannot initialize BaseFontLoader."),this.docId=R,this._onUnsupportedFeature=U,this._document=K,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(B){this.nativeFontFaces.push(B),this._document.fonts.add(B)}insertRule(B){let R=this.styleElement;R||(R=this.styleElement=this._document.createElement("style"),R.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(R));const U=R.sheet;U.insertRule(B,U.cssRules.length)}clear(){for(const B of this.nativeFontFaces)this._document.fonts.delete(B);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(B){if(B.attached||B.missingFile)return;if(B.attached=!0,this.isFontLoadingAPISupported){const U=B.createNativeFontFace();if(U){this.addNativeFontFace(U);try{await U.loaded}catch(K){throw this._onUnsupportedFeature({featureId:G.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,G.warn)(`Failed to load font '${U.family}': '${K}'.`),B.disableFontFace=!0,K}}return}const R=B.createFontFaceRule();if(R){if(this.insertRule(R),this.isSyncFontLoadingSupported)return;await new Promise(U=>{const K=this._queueLoadingCallback(U);this._prepareFontLoadEvent([R],[B],K)})}}_queueLoadingCallback(B){(0,G.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var B;const R=!!((B=this._document)!==null&&B!==void 0&&B.fonts);return(0,G.shadow)(this,"isFontLoadingAPISupported",R)}get isSyncFontLoadingSupported(){(0,G.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,G.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(B,R,U){(0,G.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let q;m.FontLoader=q,m.FontLoader=q=class extends V{constructor(B){super(B),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let B=!1;if(typeof navigator>"u")B=!0;else{const R=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(R==null?void 0:R[1])>=14&&(B=!0)}return(0,G.shadow)(this,"isSyncFontLoadingSupported",B)}_queueLoadingCallback(B){function R(){for((0,G.assert)(!K.done,"completeRequest() cannot be called twice."),K.done=!0;U.requests.length>0&&U.requests[0].done;){const z=U.requests.shift();setTimeout(z.callback,0)}}const U=this.loadingContext,K={id:`pdfjs-font-loading-${U.nextRequestId++}`,done:!1,complete:R,callback:B};return U.requests.push(K),K}get _loadTestFont(){const B=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,G.shadow)(this,"_loadTestFont",B())}_prepareFontLoadEvent(B,R,U){function K(xe,fe){return xe.charCodeAt(fe)<<24|xe.charCodeAt(fe+1)<<16|xe.charCodeAt(fe+2)<<8|xe.charCodeAt(fe+3)&255}function z(xe,fe,ve,ye){const Ce=xe.substring(0,fe),pe=xe.substring(fe+ve);return Ce+ye+pe}let e,ae;const ie=this._document.createElement("canvas");ie.width=1,ie.height=1;const he=ie.getContext("2d");let J=0;function W(xe,fe){if(J++,J>30){(0,G.warn)("Load test font never loaded."),fe();return}if(he.font="30px "+xe,he.fillText(".",0,20),he.getImageData(0,0,1,1).data[3]>0){fe();return}setTimeout(W.bind(null,xe,fe))}const X=`lt${Date.now()}${this.loadTestFontId++}`;let L=this._loadTestFont;L=z(L,976,X.length,X);const ce=16,de=1482184792;let se=K(L,ce);for(e=0,ae=X.length-3;e<ae;e+=4)se=se-de+K(X,e)|0;e<X.length&&(se=se-de+K(X+"XXX",e)|0),L=z(L,ce,4,(0,G.string32)(se));const oe=`url(data:font/opentype;base64,${btoa(L)});`,me=`@font-face {font-family:"${X}";src:${oe}}`;this.insertRule(me);const Ee=[];for(const xe of R)Ee.push(xe.loadedName);Ee.push(X);const ke=this._document.createElement("div");ke.style.visibility="hidden",ke.style.width=ke.style.height="10px",ke.style.position="absolute",ke.style.top=ke.style.left="0px";for(const xe of Ee){const fe=this._document.createElement("span");fe.textContent="Hi",fe.style.fontFamily=xe,ke.append(fe)}this._document.body.append(ke),W(X,()=>{ke.remove(),U.complete()})}};class ${constructor(B,R){let{isEvalSupported:U=!0,disableFontFace:K=!1,ignoreErrors:z=!1,onUnsupportedFeature:e,fontRegistry:ae=null}=R;this.compiledGlyphs=Object.create(null);for(const ie in B)this[ie]=B[ie];this.isEvalSupported=U!==!1,this.disableFontFace=K===!0,this.ignoreErrors=z===!0,this._onUnsupportedFeature=e,this.fontRegistry=ae}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let B;if(!this.cssFontInfo)B=new FontFace(this.loadedName,this.data,{});else{const R={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(R.style=`oblique ${this.cssFontInfo.italicAngle}deg`),B=new FontFace(this.cssFontInfo.fontFamily,this.data,R)}return this.fontRegistry&&this.fontRegistry.registerFont(this),B}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const B=(0,G.bytesToString)(this.data),R=`url(data:${this.mimetype};base64,${btoa(B)});`;let U;if(!this.cssFontInfo)U=`@font-face {font-family:"${this.loadedName}";src:${R}}`;else{let K=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(K+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),U=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${K}src:${R}}`}return this.fontRegistry&&this.fontRegistry.registerFont(this,R),U}getPathGenerator(B,R){if(this.compiledGlyphs[R]!==void 0)return this.compiledGlyphs[R];let U;try{U=B.get(this.loadedName+"_path_"+R)}catch(K){if(!this.ignoreErrors)throw K;return this._onUnsupportedFeature({featureId:G.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,G.warn)(`getPathGenerator - ignoring character: "${K}".`),this.compiledGlyphs[R]=function(z,e){}}if(this.isEvalSupported&&G.FeatureTest.isEvalSupported){const K=[];for(const z of U){const e=z.args!==void 0?z.args.join(","):"";K.push("c.",z.cmd,"(",e,`);
`)}return this.compiledGlyphs[R]=new Function("c","size",K.join(""))}return this.compiledGlyphs[R]=function(K,z){for(const e of U)e.cmd==="scale"&&(e.args=[z,-z]),K[e.cmd].apply(K,e.args)}}}m.FontFaceObject=$},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.CanvasGraphics=void 0;var G=M(133),V=M(1),q=M(138),$=M(139),D=M(3);function B(ze,Te){R(ze,Te),Te.add(ze)}function R(ze,Te){if(Te.has(ze))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(ze,Te,Fe){if(!Te.has(ze))throw new TypeError("attempted to get private field on non-instance");return Fe}const K=16,z=100,e=4096,ae=15,ie=10,he=D.isNodeJS&&typeof Path2D>"u"?-1:1e3,J=16;function W(ze,Te){if(ze._removeMirroring)throw new Error("Context is already forwarding operations.");ze.__originalSave=ze.save,ze.__originalRestore=ze.restore,ze.__originalRotate=ze.rotate,ze.__originalScale=ze.scale,ze.__originalTranslate=ze.translate,ze.__originalTransform=ze.transform,ze.__originalSetTransform=ze.setTransform,ze.__originalResetTransform=ze.resetTransform,ze.__originalClip=ze.clip,ze.__originalMoveTo=ze.moveTo,ze.__originalLineTo=ze.lineTo,ze.__originalBezierCurveTo=ze.bezierCurveTo,ze.__originalRect=ze.rect,ze.__originalClosePath=ze.closePath,ze.__originalBeginPath=ze.beginPath,ze._removeMirroring=()=>{ze.save=ze.__originalSave,ze.restore=ze.__originalRestore,ze.rotate=ze.__originalRotate,ze.scale=ze.__originalScale,ze.translate=ze.__originalTranslate,ze.transform=ze.__originalTransform,ze.setTransform=ze.__originalSetTransform,ze.resetTransform=ze.__originalResetTransform,ze.clip=ze.__originalClip,ze.moveTo=ze.__originalMoveTo,ze.lineTo=ze.__originalLineTo,ze.bezierCurveTo=ze.__originalBezierCurveTo,ze.rect=ze.__originalRect,ze.closePath=ze.__originalClosePath,ze.beginPath=ze.__originalBeginPath,delete ze._removeMirroring},ze.save=function(){Te.save(),this.__originalSave()},ze.restore=function(){Te.restore(),this.__originalRestore()},ze.translate=function(Pe,we){Te.translate(Pe,we),this.__originalTranslate(Pe,we)},ze.scale=function(Pe,we){Te.scale(Pe,we),this.__originalScale(Pe,we)},ze.transform=function(Pe,we,Ie,Be,Ke,Ve){Te.transform(Pe,we,Ie,Be,Ke,Ve),this.__originalTransform(Pe,we,Ie,Be,Ke,Ve)},ze.setTransform=function(Pe,we,Ie,Be,Ke,Ve){Te.setTransform(Pe,we,Ie,Be,Ke,Ve),this.__originalSetTransform(Pe,we,Ie,Be,Ke,Ve)},ze.resetTransform=function(){Te.resetTransform(),this.__originalResetTransform()},ze.rotate=function(Pe){Te.rotate(Pe),this.__originalRotate(Pe)},ze.clip=function(Pe){Te.clip(Pe),this.__originalClip(Pe)},ze.moveTo=function(Fe,Pe){Te.moveTo(Fe,Pe),this.__originalMoveTo(Fe,Pe)},ze.lineTo=function(Fe,Pe){Te.lineTo(Fe,Pe),this.__originalLineTo(Fe,Pe)},ze.bezierCurveTo=function(Fe,Pe,we,Ie,Be,Ke){Te.bezierCurveTo(Fe,Pe,we,Ie,Be,Ke),this.__originalBezierCurveTo(Fe,Pe,we,Ie,Be,Ke)},ze.rect=function(Fe,Pe,we,Ie){Te.rect(Fe,Pe,we,Ie),this.__originalRect(Fe,Pe,we,Ie)},ze.closePath=function(){Te.closePath(),this.__originalClosePath()},ze.beginPath=function(){Te.beginPath(),this.__originalBeginPath()}}class X{constructor(Te){this.canvasFactory=Te,this.cache=Object.create(null)}getCanvas(Te,Fe,Pe){let we;return this.cache[Te]!==void 0?(we=this.cache[Te],this.canvasFactory.reset(we,Fe,Pe)):(we=this.canvasFactory.create(Fe,Pe),this.cache[Te]=we),we}delete(Te){delete this.cache[Te]}clear(){for(const Te in this.cache){const Fe=this.cache[Te];this.canvasFactory.destroy(Fe),delete this.cache[Te]}}}function L(ze,Te,Fe,Pe,we,Ie,Be,Ke,Ve,je){const[Le,et,Qe,Ue,$e,Ye]=(0,G.getCurrentTransform)(ze);if(et===0&&Qe===0){const st=Be*Le+$e,dt=Math.round(st),ct=Ke*Ue+Ye,mt=Math.round(ct),ut=(Be+Ve)*Le+$e,rt=Math.abs(Math.round(ut)-dt)||1,He=(Ke+je)*Ue+Ye,Je=Math.abs(Math.round(He)-mt)||1;return ze.setTransform(Math.sign(Le),0,0,Math.sign(Ue),dt,mt),ze.drawImage(Te,Fe,Pe,we,Ie,0,0,rt,Je),ze.setTransform(Le,et,Qe,Ue,$e,Ye),[rt,Je]}if(Le===0&&Ue===0){const st=Ke*Qe+$e,dt=Math.round(st),ct=Be*et+Ye,mt=Math.round(ct),ut=(Ke+je)*Qe+$e,rt=Math.abs(Math.round(ut)-dt)||1,He=(Be+Ve)*et+Ye,Je=Math.abs(Math.round(He)-mt)||1;return ze.setTransform(0,Math.sign(et),Math.sign(Qe),0,dt,mt),ze.drawImage(Te,Fe,Pe,we,Ie,0,0,Je,rt),ze.setTransform(Le,et,Qe,Ue,$e,Ye),[Je,rt]}ze.drawImage(Te,Fe,Pe,we,Ie,Be,Ke,Ve,je);const tt=Math.hypot(Le,et),ot=Math.hypot(Qe,Ue);return[tt*Ve,ot*je]}function Q(ze){const{width:Te,height:Fe}=ze;if(Te>he||Fe>he)return null;const Pe=1e3,we=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Ie=Te+1;let Be=new Uint8Array(Ie*(Fe+1)),Ke,Ve,je;const Le=Te+7&-8;let et=new Uint8Array(Le*Fe),Qe=0;for(const ot of ze.data){let st=128;for(;st>0;)et[Qe++]=ot&st?0:255,st>>=1}let Ue=0;for(Qe=0,et[Qe]!==0&&(Be[0]=1,++Ue),Ve=1;Ve<Te;Ve++)et[Qe]!==et[Qe+1]&&(Be[Ve]=et[Qe]?2:1,++Ue),Qe++;for(et[Qe]!==0&&(Be[Ve]=2,++Ue),Ke=1;Ke<Fe;Ke++){Qe=Ke*Le,je=Ke*Ie,et[Qe-Le]!==et[Qe]&&(Be[je]=et[Qe]?1:8,++Ue);let ot=(et[Qe]?4:0)+(et[Qe-Le]?8:0);for(Ve=1;Ve<Te;Ve++)ot=(ot>>2)+(et[Qe+1]?4:0)+(et[Qe-Le+1]?8:0),we[ot]&&(Be[je+Ve]=we[ot],++Ue),Qe++;if(et[Qe-Le]!==et[Qe]&&(Be[je+Ve]=et[Qe]?2:4,++Ue),Ue>Pe)return null}for(Qe=Le*(Fe-1),je=Ke*Ie,et[Qe]!==0&&(Be[je]=8,++Ue),Ve=1;Ve<Te;Ve++)et[Qe]!==et[Qe+1]&&(Be[je+Ve]=et[Qe]?4:8,++Ue),Qe++;if(et[Qe]!==0&&(Be[je+Ve]=4,++Ue),Ue>Pe)return null;const $e=new Int32Array([0,Ie,-1,0,-Ie,0,0,0,1]),Ye=new Path2D;for(Ke=0;Ue&&Ke<=Fe;Ke++){let ot=Ke*Ie;const st=ot+Te;for(;ot<st&&!Be[ot];)ot++;if(ot===st)continue;Ye.moveTo(ot%Ie,Ke);const dt=ot;let ct=Be[ot];do{const mt=$e[ct];do ot+=mt;while(!Be[ot]);const ut=Be[ot];ut!==5&&ut!==10?(ct=ut,Be[ot]=0):(ct=ut&51*ct>>4,Be[ot]&=ct>>2|ct<<2),Ye.lineTo(ot%Ie,ot/Ie|0),Be[ot]||--Ue}while(dt!==ot);--Ke}return et=null,Be=null,function(ot){ot.save(),ot.scale(1/Te,-1/Fe),ot.translate(0,-Fe),ot.fill(Ye),ot.beginPath(),ot.restore()}}class ce{constructor(Te,Fe){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=V.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=V.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=V.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,Te,Fe])}clone(){const Te=Object.create(this);return Te.clipBox=this.clipBox.slice(),Te}setCurrentPoint(Te,Fe){this.x=Te,this.y=Fe}updatePathMinMax(Te,Fe,Pe){[Fe,Pe]=V.Util.applyTransform([Fe,Pe],Te),this.minX=Math.min(this.minX,Fe),this.minY=Math.min(this.minY,Pe),this.maxX=Math.max(this.maxX,Fe),this.maxY=Math.max(this.maxY,Pe)}updateRectMinMax(Te,Fe){const Pe=V.Util.applyTransform(Fe,Te),we=V.Util.applyTransform(Fe.slice(2),Te);this.minX=Math.min(this.minX,Pe[0],we[0]),this.minY=Math.min(this.minY,Pe[1],we[1]),this.maxX=Math.max(this.maxX,Pe[0],we[0]),this.maxY=Math.max(this.maxY,Pe[1],we[1])}updateScalingPathMinMax(Te,Fe){V.Util.scaleMinMax(Te,Fe),this.minX=Math.min(this.minX,Fe[0]),this.maxX=Math.max(this.maxX,Fe[1]),this.minY=Math.min(this.minY,Fe[2]),this.maxY=Math.max(this.maxY,Fe[3])}updateCurvePathMinMax(Te,Fe,Pe,we,Ie,Be,Ke,Ve,je,Le){const et=V.Util.bezierBoundingBox(Fe,Pe,we,Ie,Be,Ke,Ve,je);if(Le){Le[0]=Math.min(Le[0],et[0],et[2]),Le[1]=Math.max(Le[1],et[0],et[2]),Le[2]=Math.min(Le[2],et[1],et[3]),Le[3]=Math.max(Le[3],et[1],et[3]);return}this.updateRectMinMax(Te,et)}getPathBoundingBox(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q.PathType.FILL,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const Pe=[this.minX,this.minY,this.maxX,this.maxY];if(Te===q.PathType.STROKE){Fe||(0,V.unreachable)("Stroke bounding box must include transform.");const we=V.Util.singularValueDecompose2dScale(Fe),Ie=we[0]*this.lineWidth/2,Be=we[1]*this.lineWidth/2;Pe[0]-=Ie,Pe[1]-=Be,Pe[2]+=Ie,Pe[3]+=Be}return Pe}updateClipFromPath(){const Te=V.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(Te||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(Te){this.clipBox=Te,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q.PathType.FILL,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.Util.intersect(this.clipBox,this.getPathBoundingBox(Te,Fe))}}function de(ze,Te){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&Te instanceof ImageData){ze.putImageData(Te,0,0);return}const Pe=Te.height,we=Te.width,Ie=Pe%J,Be=(Pe-Ie)/J,Ke=Ie===0?Be:Be+1,Ve=ze.createImageData(we,J);let je=0,Le;const et=Te.data,Qe=Ve.data;let Ue,$e,Ye,tt,ot,st,dt,ct;if(Fe)switch(Fe.length){case 1:ot=Fe[0],st=Fe[0],dt=Fe[0],ct=Fe[0];break;case 4:ot=Fe[0],st=Fe[1],dt=Fe[2],ct=Fe[3];break}if(Te.kind===V.ImageKind.GRAYSCALE_1BPP){const mt=et.byteLength,ut=new Uint32Array(Qe.buffer,0,Qe.byteLength>>2),rt=ut.length,He=we+7>>3;let Je=4294967295,St=V.FeatureTest.isLittleEndian?4278190080:255;for(ct&&ct[0]===255&&ct[255]===0&&([Je,St]=[St,Je]),Ue=0;Ue<Ke;Ue++){for(Ye=Ue<Be?J:Ie,Le=0,$e=0;$e<Ye;$e++){const bt=mt-je;let pt=0;const wt=bt>He?we:bt*8-7,Pt=wt&-8;let Nt=0,Vt=0;for(;pt<Pt;pt+=8)Vt=et[je++],ut[Le++]=Vt&128?Je:St,ut[Le++]=Vt&64?Je:St,ut[Le++]=Vt&32?Je:St,ut[Le++]=Vt&16?Je:St,ut[Le++]=Vt&8?Je:St,ut[Le++]=Vt&4?Je:St,ut[Le++]=Vt&2?Je:St,ut[Le++]=Vt&1?Je:St;for(;pt<wt;pt++)Nt===0&&(Vt=et[je++],Nt=128),ut[Le++]=Vt&Nt?Je:St,Nt>>=1}for(;Le<rt;)ut[Le++]=0;ze.putImageData(Ve,0,Ue*J)}}else if(Te.kind===V.ImageKind.RGBA_32BPP){const mt=!!(ot||st||dt);for($e=0,tt=we*J*4,Ue=0;Ue<Be;Ue++){if(Qe.set(et.subarray(je,je+tt)),je+=tt,mt)for(let ut=0;ut<tt;ut+=4)ot&&(Qe[ut+0]=ot[Qe[ut+0]]),st&&(Qe[ut+1]=st[Qe[ut+1]]),dt&&(Qe[ut+2]=dt[Qe[ut+2]]);ze.putImageData(Ve,0,$e),$e+=J}if(Ue<Ke){if(tt=we*Ie*4,Qe.set(et.subarray(je,je+tt)),mt)for(let ut=0;ut<tt;ut+=4)ot&&(Qe[ut+0]=ot[Qe[ut+0]]),st&&(Qe[ut+1]=st[Qe[ut+1]]),dt&&(Qe[ut+2]=dt[Qe[ut+2]]);ze.putImageData(Ve,0,$e)}}else if(Te.kind===V.ImageKind.RGB_24BPP){const mt=!!(ot||st||dt);for(Ye=J,tt=we*Ye,Ue=0;Ue<Ke;Ue++){for(Ue>=Be&&(Ye=Ie,tt=we*Ye),Le=0,$e=tt;$e--;)Qe[Le++]=et[je++],Qe[Le++]=et[je++],Qe[Le++]=et[je++],Qe[Le++]=255;if(mt)for(let ut=0;ut<Le;ut+=4)ot&&(Qe[ut+0]=ot[Qe[ut+0]]),st&&(Qe[ut+1]=st[Qe[ut+1]]),dt&&(Qe[ut+2]=dt[Qe[ut+2]]);ze.putImageData(Ve,0,Ue*J)}}else throw new Error(`bad image kind: ${Te.kind}`)}function se(ze,Te){if(Te.bitmap){ze.drawImage(Te.bitmap,0,0);return}const Fe=Te.height,Pe=Te.width,we=Fe%J,Ie=(Fe-we)/J,Be=we===0?Ie:Ie+1,Ke=ze.createImageData(Pe,J);let Ve=0;const je=Te.data,Le=Ke.data;for(let et=0;et<Be;et++){const Qe=et<Ie?J:we;({srcPos:Ve}=(0,$.applyMaskImageData)({src:je,srcPos:Ve,dest:Le,width:Pe,height:Qe})),ze.putImageData(Ke,0,et*J)}}function oe(ze,Te){const Fe=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let Pe=0,we=Fe.length;Pe<we;Pe++){const Ie=Fe[Pe];ze[Ie]!==void 0&&(Te[Ie]=ze[Ie])}ze.setLineDash!==void 0&&(Te.setLineDash(ze.getLineDash()),Te.lineDashOffset=ze.lineDashOffset)}function me(ze,Te){ze.strokeStyle=ze.fillStyle=Te||"#000000",ze.fillRule="nonzero",ze.globalAlpha=1,ze.lineWidth=1,ze.lineCap="butt",ze.lineJoin="miter",ze.miterLimit=10,ze.globalCompositeOperation="source-over",ze.font="10px sans-serif",ze.setLineDash!==void 0&&(ze.setLineDash([]),ze.lineDashOffset=0)}function Ee(ze,Te,Fe,Pe){const we=ze.length;for(let Ie=3;Ie<we;Ie+=4){const Be=ze[Ie];if(Be===0)ze[Ie-3]=Te,ze[Ie-2]=Fe,ze[Ie-1]=Pe;else if(Be<255){const Ke=255-Be;ze[Ie-3]=ze[Ie-3]*Be+Te*Ke>>8,ze[Ie-2]=ze[Ie-2]*Be+Fe*Ke>>8,ze[Ie-1]=ze[Ie-1]*Be+Pe*Ke>>8}}}function ke(ze,Te,Fe){const Pe=ze.length,we=1/255;for(let Ie=3;Ie<Pe;Ie+=4){const Be=Fe?Fe[ze[Ie]]:ze[Ie];Te[Ie]=Te[Ie]*Be*we|0}}function xe(ze,Te,Fe){const Pe=ze.length;for(let we=3;we<Pe;we+=4){const Ie=ze[we-3]*77+ze[we-2]*152+ze[we-1]*28;Te[we]=Fe?Te[we]*Fe[Ie>>8]>>8:Te[we]*Ie>>16}}function fe(ze,Te,Fe,Pe,we,Ie,Be,Ke,Ve,je,Le){const et=!!Ie,Qe=et?Ie[0]:0,Ue=et?Ie[1]:0,$e=et?Ie[2]:0;let Ye;we==="Luminosity"?Ye=xe:Ye=ke;const ot=Math.min(Pe,Math.ceil(1048576/Fe));for(let st=0;st<Pe;st+=ot){const dt=Math.min(ot,Pe-st),ct=ze.getImageData(Ke-je,st+(Ve-Le),Fe,dt),mt=Te.getImageData(Ke,st+Ve,Fe,dt);et&&Ee(ct.data,Qe,Ue,$e),Ye(ct.data,mt.data,Be),Te.putImageData(mt,Ke,st+Ve)}}function ve(ze,Te,Fe,Pe){const we=Pe[0],Ie=Pe[1],Be=Pe[2]-we,Ke=Pe[3]-Ie;Be===0||Ke===0||(fe(Te.context,Fe,Be,Ke,Te.subtype,Te.backdrop,Te.transferMap,we,Ie,Te.offsetX,Te.offsetY),ze.save(),ze.globalAlpha=1,ze.globalCompositeOperation="source-over",ze.setTransform(1,0,0,1,0,0),ze.drawImage(Fe.canvas,0,0),ze.restore())}function ye(ze,Te){const Fe=V.Util.singularValueDecompose2dScale(ze);Fe[0]=Math.fround(Fe[0]),Fe[1]=Math.fround(Fe[1]);const Pe=Math.fround((globalThis.devicePixelRatio||1)*G.PixelsPerInch.PDF_TO_CSS_UNITS);return Te!==void 0?Te:Fe[0]<=Pe||Fe[1]<=Pe}const Ce=["butt","round","square"],pe=["miter","round","bevel"],_e={},Ge={};var Ae=new WeakSet;class Ne{constructor(Te,Fe,Pe,we,Ie,Be,Ke,Ve){B(this,Ae),this.ctx=Te,this.current=new ce(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=Fe,this.objs=Pe,this.canvasFactory=we,this.imageLayer=Ie,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=Be,this.cachedCanvases=new X(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=Ke,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(Ve==null?void 0:Ve.background)||null,this.foregroundColor=(Ve==null?void 0:Ve.foreground)||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(Te){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return typeof Te=="string"?Te.startsWith("g_")?this.commonObjs.get(Te):this.objs.get(Te):Fe}beginDrawing(Te){let{transform:Fe,viewport:Pe,transparency:we=!1,background:Ie=null}=Te;const Be=this.ctx.canvas.width,Ke=this.ctx.canvas.height,Ve=Ie||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const je=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const Le=this.backgroundColor=this.ctx.fillStyle;let et=!0,Qe=Ve;if(this.ctx.fillStyle=Ve,Qe=this.ctx.fillStyle,et=typeof Qe=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Qe),je==="#000000"&&Le==="#ffffff"||je===Le||!et)this.foregroundColor=this.backgroundColor=null;else{const[Ue,$e,Ye]=(0,G.getRGB)(Qe),tt=st=>(st/=255,st<=.03928?st/12.92:((st+.055)/1.055)**2.4),ot=Math.round(.2126*tt(Ue)+.7152*tt($e)+.0722*tt(Ye));this.selectColor=(st,dt,ct)=>{const mt=.2126*tt(st)+.7152*tt(dt)+.0722*tt(ct);return Math.round(mt)===ot?Le:je}}}if(this.ctx.fillStyle=this.backgroundColor||Ve,this.ctx.fillRect(0,0,Be,Ke),this.ctx.restore(),we){const je=this.cachedCanvases.getCanvas("transparent",Be,Ke);this.compositeCtx=this.ctx,this.transparentCanvas=je.canvas,this.ctx=je.context,this.ctx.save(),this.ctx.transform(...(0,G.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),me(this.ctx,this.foregroundColor),Fe&&(this.ctx.transform(...Fe),this.outputScaleX=Fe[0],this.outputScaleY=Fe[0]),this.ctx.transform(...Pe.transform),this.viewportScale=Pe.scale,this.baseTransform=(0,G.getCurrentTransform)(this.ctx),this.imageLayer&&((0,G.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(Te,Fe,Pe,we){const Ie=Te.argsArray,Be=Te.fnArray;let Ke=Fe||0;const Ve=Ie.length;if(Ve===Ke)return Ke;const je=Ve-Ke>ie&&typeof Pe=="function",Le=je?Date.now()+ae:0;let et=0;const Qe=this.commonObjs,Ue=this.objs;let $e;for(;;){if(we!==void 0&&Ke===we.nextBreakPoint)return we.breakIt(Ke,Pe),Ke;if($e=Be[Ke],$e!==V.OPS.dependency)this[$e].apply(this,Ie[Ke]);else for(const Ye of Ie[Ke]){const tt=Ye.startsWith("g_")?Qe:Ue;if(!tt.has(Ye))return tt.get(Ye,Pe),Ke}if(Ke++,Ke===Ve)return Ke;if(je&&++et>ie){if(Date.now()>Le)return Pe(),Ke;et=0}}}endDrawing(){U(this,Ae,Ze).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const Te of this._cachedBitmapsMap.values()){for(const Fe of Te.values())typeof HTMLCanvasElement<"u"&&Fe instanceof HTMLCanvasElement&&(Fe.width=Fe.height=0);Te.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(Te,Fe){const Pe=Te.width,we=Te.height;let Ie=Math.max(Math.hypot(Fe[0],Fe[1]),1),Be=Math.max(Math.hypot(Fe[2],Fe[3]),1),Ke=Pe,Ve=we,je="prescale1",Le,et;for(;Ie>2&&Ke>1||Be>2&&Ve>1;){let Qe=Ke,Ue=Ve;Ie>2&&Ke>1&&(Qe=Math.ceil(Ke/2),Ie/=Ke/Qe),Be>2&&Ve>1&&(Ue=Math.ceil(Ve/2),Be/=Ve/Ue),Le=this.cachedCanvases.getCanvas(je,Qe,Ue),et=Le.context,et.clearRect(0,0,Qe,Ue),et.drawImage(Te,0,0,Ke,Ve,0,0,Qe,Ue),Te=Le.canvas,Ke=Qe,Ve=Ue,je=je==="prescale1"?"prescale2":"prescale1"}return{img:Te,paintWidth:Ke,paintHeight:Ve}}_createMaskCanvas(Te){const Fe=this.ctx,{width:Pe,height:we}=Te,Ie=this.current.fillColor,Be=this.current.patternFill,Ke=(0,G.getCurrentTransform)(Fe);let Ve,je,Le,et;if((Te.bitmap||Te.data)&&Te.count>1){const rt=Te.bitmap||Te.data.buffer,He=Ke.slice(0,4);je=JSON.stringify(Be?He:[He,Ie]),Ve=this._cachedBitmapsMap.get(rt),Ve||(Ve=new Map,this._cachedBitmapsMap.set(rt,Ve));const Je=Ve.get(je);if(Je&&!Be){const St=Math.round(Math.min(Ke[0],Ke[2])+Ke[4]),bt=Math.round(Math.min(Ke[1],Ke[3])+Ke[5]);return{canvas:Je,offsetX:St,offsetY:bt}}Le=Je}Le||(et=this.cachedCanvases.getCanvas("maskCanvas",Pe,we),se(et.context,Te));let Qe=V.Util.transform(Ke,[1/Pe,0,0,-1/we,0,0]);Qe=V.Util.transform(Qe,[1,0,0,1,0,-we]);const Ue=V.Util.applyTransform([0,0],Qe),$e=V.Util.applyTransform([Pe,we],Qe),Ye=V.Util.normalizeRect([Ue[0],Ue[1],$e[0],$e[1]]),tt=Math.round(Ye[2]-Ye[0])||1,ot=Math.round(Ye[3]-Ye[1])||1,st=this.cachedCanvases.getCanvas("fillCanvas",tt,ot),dt=st.context,ct=Math.min(Ue[0],$e[0]),mt=Math.min(Ue[1],$e[1]);dt.translate(-ct,-mt),dt.transform(...Qe),Le||(Le=this._scaleImage(et.canvas,(0,G.getCurrentTransformInverse)(dt)),Le=Le.img,Ve&&Be&&Ve.set(je,Le)),dt.imageSmoothingEnabled=ye((0,G.getCurrentTransform)(dt),Te.interpolate),L(dt,Le,0,0,Le.width,Le.height,0,0,Pe,we),dt.globalCompositeOperation="source-in";const ut=V.Util.transform((0,G.getCurrentTransformInverse)(dt),[1,0,0,1,-ct,-mt]);return dt.fillStyle=Be?Ie.getPattern(Fe,this,ut,q.PathType.FILL):Ie,dt.fillRect(0,0,Pe,we),Ve&&!Be&&(this.cachedCanvases.delete("fillCanvas"),Ve.set(je,st.canvas)),{canvas:st.canvas,offsetX:Math.round(ct),offsetY:Math.round(mt)}}setLineWidth(Te){Te!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=Te,this.ctx.lineWidth=Te}setLineCap(Te){this.ctx.lineCap=Ce[Te]}setLineJoin(Te){this.ctx.lineJoin=pe[Te]}setMiterLimit(Te){this.ctx.miterLimit=Te}setDash(Te,Fe){const Pe=this.ctx;Pe.setLineDash!==void 0&&(Pe.setLineDash(Te),Pe.lineDashOffset=Fe)}setRenderingIntent(Te){}setFlatness(Te){}setGState(Te){for(let Fe=0,Pe=Te.length;Fe<Pe;Fe++){const we=Te[Fe],Ie=we[0],Be=we[1];switch(Ie){case"LW":this.setLineWidth(Be);break;case"LC":this.setLineCap(Be);break;case"LJ":this.setLineJoin(Be);break;case"ML":this.setMiterLimit(Be);break;case"D":this.setDash(Be[0],Be[1]);break;case"RI":this.setRenderingIntent(Be);break;case"FL":this.setFlatness(Be);break;case"Font":this.setFont(Be[0],Be[1]);break;case"CA":this.current.strokeAlpha=we[1];break;case"ca":this.current.fillAlpha=we[1],this.ctx.globalAlpha=we[1];break;case"BM":this.ctx.globalCompositeOperation=Be;break;case"SMask":this.current.activeSMask=Be?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=Be}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const Te=this.inSMaskMode;this.current.activeSMask&&!Te?this.beginSMaskMode():!this.current.activeSMask&&Te&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const Te=this.ctx.canvas.width,Fe=this.ctx.canvas.height,Pe="smaskGroupAt"+this.groupLevel,we=this.cachedCanvases.getCanvas(Pe,Te,Fe);this.suspendedCtx=this.ctx,this.ctx=we.context;const Ie=this.ctx;Ie.setTransform(...(0,G.getCurrentTransform)(this.suspendedCtx)),oe(this.suspendedCtx,Ie),W(Ie,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),oe(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(Te){if(!this.current.activeSMask)return;Te?(Te[0]=Math.floor(Te[0]),Te[1]=Math.floor(Te[1]),Te[2]=Math.ceil(Te[2]),Te[3]=Math.ceil(Te[3])):Te=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Fe=this.current.activeSMask,Pe=this.suspendedCtx;ve(Pe,Fe,this.ctx,Te),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(oe(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const Te=this.current;this.stateStack.push(Te),this.current=Te.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),oe(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(Te,Fe,Pe,we,Ie,Be){this.ctx.transform(Te,Fe,Pe,we,Ie,Be),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(Te,Fe,Pe){const we=this.ctx,Ie=this.current;let Be=Ie.x,Ke=Ie.y,Ve,je;const Le=(0,G.getCurrentTransform)(we),et=Le[0]===0&&Le[3]===0||Le[1]===0&&Le[2]===0,Qe=et?Pe.slice(0):null;for(let Ue=0,$e=0,Ye=Te.length;Ue<Ye;Ue++)switch(Te[Ue]|0){case V.OPS.rectangle:Be=Fe[$e++],Ke=Fe[$e++];const tt=Fe[$e++],ot=Fe[$e++],st=Be+tt,dt=Ke+ot;we.moveTo(Be,Ke),tt===0||ot===0?we.lineTo(st,dt):(we.lineTo(st,Ke),we.lineTo(st,dt),we.lineTo(Be,dt)),et||Ie.updateRectMinMax(Le,[Be,Ke,st,dt]),we.closePath();break;case V.OPS.moveTo:Be=Fe[$e++],Ke=Fe[$e++],we.moveTo(Be,Ke),et||Ie.updatePathMinMax(Le,Be,Ke);break;case V.OPS.lineTo:Be=Fe[$e++],Ke=Fe[$e++],we.lineTo(Be,Ke),et||Ie.updatePathMinMax(Le,Be,Ke);break;case V.OPS.curveTo:Ve=Be,je=Ke,Be=Fe[$e+4],Ke=Fe[$e+5],we.bezierCurveTo(Fe[$e],Fe[$e+1],Fe[$e+2],Fe[$e+3],Be,Ke),Ie.updateCurvePathMinMax(Le,Ve,je,Fe[$e],Fe[$e+1],Fe[$e+2],Fe[$e+3],Be,Ke,Qe),$e+=6;break;case V.OPS.curveTo2:Ve=Be,je=Ke,we.bezierCurveTo(Be,Ke,Fe[$e],Fe[$e+1],Fe[$e+2],Fe[$e+3]),Ie.updateCurvePathMinMax(Le,Ve,je,Be,Ke,Fe[$e],Fe[$e+1],Fe[$e+2],Fe[$e+3],Qe),Be=Fe[$e+2],Ke=Fe[$e+3],$e+=4;break;case V.OPS.curveTo3:Ve=Be,je=Ke,Be=Fe[$e+2],Ke=Fe[$e+3],we.bezierCurveTo(Fe[$e],Fe[$e+1],Be,Ke,Be,Ke),Ie.updateCurvePathMinMax(Le,Ve,je,Fe[$e],Fe[$e+1],Be,Ke,Be,Ke,Qe),$e+=4;break;case V.OPS.closePath:we.closePath();break}et&&Ie.updateScalingPathMinMax(Le,Qe),Ie.setCurrentPoint(Be,Ke)}closePath(){this.ctx.closePath()}stroke(Te){Te=typeof Te<"u"?Te:!0;const Fe=this.ctx,Pe=this.current.strokeColor;Fe.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof Pe=="object"&&Pe!==null&&Pe!==void 0&&Pe.getPattern?(Fe.save(),Fe.strokeStyle=Pe.getPattern(Fe,this,(0,G.getCurrentTransformInverse)(Fe),q.PathType.STROKE),this.rescaleAndStroke(!1),Fe.restore()):this.rescaleAndStroke(!0)),Te&&this.consumePath(this.current.getClippedPathBoundingBox()),Fe.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(Te){Te=typeof Te<"u"?Te:!0;const Fe=this.ctx,Pe=this.current.fillColor,we=this.current.patternFill;let Ie=!1;we&&(Fe.save(),Fe.fillStyle=Pe.getPattern(Fe,this,(0,G.getCurrentTransformInverse)(Fe),q.PathType.FILL),Ie=!0);const Be=this.current.getClippedPathBoundingBox();this.contentVisible&&Be!==null&&(this.pendingEOFill?(Fe.fill("evenodd"),this.pendingEOFill=!1):Fe.fill()),Ie&&Fe.restore(),Te&&this.consumePath(Be)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=_e}eoClip(){this.pendingClip=Ge}beginText(){this.current.textMatrix=V.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const Te=this.pendingTextPaths,Fe=this.ctx;if(Te===void 0){Fe.beginPath();return}Fe.save(),Fe.beginPath();for(const Pe of Te)Fe.setTransform(...Pe.transform),Fe.translate(Pe.x,Pe.y),Pe.addToPath(Fe,Pe.fontSize);Fe.restore(),Fe.clip(),Fe.beginPath(),delete this.pendingTextPaths}setCharSpacing(Te){this.current.charSpacing=Te}setWordSpacing(Te){this.current.wordSpacing=Te}setHScale(Te){this.current.textHScale=Te/100}setLeading(Te){this.current.leading=-Te}setFont(Te,Fe){const Pe=this.commonObjs.get(Te),we=this.current;if(!Pe)throw new Error(`Can't find font for ${Te}`);if(we.fontMatrix=Pe.fontMatrix||V.FONT_IDENTITY_MATRIX,(we.fontMatrix[0]===0||we.fontMatrix[3]===0)&&(0,V.warn)("Invalid font matrix for font "+Te),Fe<0?(Fe=-Fe,we.fontDirection=-1):we.fontDirection=1,this.current.font=Pe,this.current.fontSize=Fe,Pe.isType3Font)return;const Ie=Pe.loadedName||"sans-serif";let Be="normal";Pe.black?Be="900":Pe.bold&&(Be="bold");const Ke=Pe.italic?"italic":"normal",Ve=`"${Ie}", ${Pe.fallbackName}`;let je=Fe;Fe<K?je=K:Fe>z&&(je=z),this.current.fontSizeScale=Fe/je,this.ctx.font=`${Ke} ${Be} ${je}px ${Ve}`}setTextRenderingMode(Te){this.current.textRenderingMode=Te}setTextRise(Te){this.current.textRise=Te}moveText(Te,Fe){this.current.x=this.current.lineX+=Te,this.current.y=this.current.lineY+=Fe}setLeadingMoveText(Te,Fe){this.setLeading(-Fe),this.moveText(Te,Fe)}setTextMatrix(Te,Fe,Pe,we,Ie,Be){this.current.textMatrix=[Te,Fe,Pe,we,Ie,Be],this.current.textMatrixScale=Math.hypot(Te,Fe),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(Te,Fe,Pe,we){const Ie=this.ctx,Be=this.current,Ke=Be.font,Ve=Be.textRenderingMode,je=Be.fontSize/Be.fontSizeScale,Le=Ve&V.TextRenderingMode.FILL_STROKE_MASK,et=!!(Ve&V.TextRenderingMode.ADD_TO_PATH_FLAG),Qe=Be.patternFill&&!Ke.missingFile;let Ue;(Ke.disableFontFace||et||Qe)&&(Ue=Ke.getPathGenerator(this.commonObjs,Te)),Ke.disableFontFace||Qe?(Ie.save(),Ie.translate(Fe,Pe),Ie.beginPath(),Ue(Ie,je),we&&Ie.setTransform(...we),(Le===V.TextRenderingMode.FILL||Le===V.TextRenderingMode.FILL_STROKE)&&Ie.fill(),(Le===V.TextRenderingMode.STROKE||Le===V.TextRenderingMode.FILL_STROKE)&&Ie.stroke(),Ie.restore()):((Le===V.TextRenderingMode.FILL||Le===V.TextRenderingMode.FILL_STROKE)&&Ie.fillText(Te,Fe,Pe),(Le===V.TextRenderingMode.STROKE||Le===V.TextRenderingMode.FILL_STROKE)&&Ie.strokeText(Te,Fe,Pe)),et&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,G.getCurrentTransform)(Ie),x:Fe,y:Pe,fontSize:je,addToPath:Ue})}get isFontSubpixelAAEnabled(){const{context:Te}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Te.scale(1.5,1),Te.fillText("I",0,10);const Fe=Te.getImageData(0,0,10,10).data;let Pe=!1;for(let we=3;we<Fe.length;we+=4)if(Fe[we]>0&&Fe[we]<255){Pe=!0;break}return(0,V.shadow)(this,"isFontSubpixelAAEnabled",Pe)}showText(Te){const Fe=this.current,Pe=Fe.font;if(Pe.isType3Font)return this.showType3Text(Te);const we=Fe.fontSize;if(we===0)return;const Ie=this.ctx,Be=Fe.fontSizeScale,Ke=Fe.charSpacing,Ve=Fe.wordSpacing,je=Fe.fontDirection,Le=Fe.textHScale*je,et=Te.length,Qe=Pe.vertical,Ue=Qe?1:-1,$e=Pe.defaultVMetrics,Ye=we*Fe.fontMatrix[0],tt=Fe.textRenderingMode===V.TextRenderingMode.FILL&&!Pe.disableFontFace&&!Fe.patternFill;Ie.save(),Ie.transform(...Fe.textMatrix),Ie.translate(Fe.x,Fe.y+Fe.textRise),je>0?Ie.scale(Le,-1):Ie.scale(Le,1);let ot;if(Fe.patternFill){Ie.save();const ut=Fe.fillColor.getPattern(Ie,this,(0,G.getCurrentTransformInverse)(Ie),q.PathType.FILL);ot=(0,G.getCurrentTransform)(Ie),Ie.restore(),Ie.fillStyle=ut}let st=Fe.lineWidth;const dt=Fe.textMatrixScale;if(dt===0||st===0){const ut=Fe.textRenderingMode&V.TextRenderingMode.FILL_STROKE_MASK;(ut===V.TextRenderingMode.STROKE||ut===V.TextRenderingMode.FILL_STROKE)&&(st=this.getSinglePixelWidth())}else st/=dt;Be!==1&&(Ie.scale(Be,Be),st/=Be),Ie.lineWidth=st;let ct=0,mt;for(mt=0;mt<et;++mt){const ut=Te[mt];if(typeof ut=="number"){ct+=Ue*ut*we/1e3;continue}let rt=!1;const He=(ut.isSpace?Ve:0)+Ke,Je=ut.fontChar,St=ut.accent;let bt,pt,wt=ut.width;if(Qe){const Nt=ut.vmetric||$e,Vt=-(ut.vmetric?Nt[1]:wt*.5)*Ye,Wt=Nt[2]*Ye;wt=Nt?-Nt[0]:wt,bt=Vt/Be,pt=(ct+Wt)/Be}else bt=ct/Be,pt=0;if(Pe.remeasure&&wt>0){const Nt=Ie.measureText(Je).width*1e3/we*Be;if(wt<Nt&&this.isFontSubpixelAAEnabled){const Vt=wt/Nt;rt=!0,Ie.save(),Ie.scale(Vt,1),bt/=Vt}else wt!==Nt&&(bt+=(wt-Nt)/2e3*we/Be)}if(this.contentVisible&&(ut.isInFont||Pe.missingFile)){if(tt&&!St)Ie.fillText(Je,bt,pt);else if(this.paintChar(Je,bt,pt,ot),St){const Nt=bt+we*St.offset.x/Be,Vt=pt-we*St.offset.y/Be;this.paintChar(St.fontChar,Nt,Vt,ot)}}let Pt;Qe?Pt=wt*Ye-He*je:Pt=wt*Ye+He*je,ct+=Pt,rt&&Ie.restore()}Qe?Fe.y-=ct:Fe.x+=ct*Le,Ie.restore(),this.compose()}showType3Text(Te){const Fe=this.ctx,Pe=this.current,we=Pe.font,Ie=Pe.fontSize,Be=Pe.fontDirection,Ke=we.vertical?1:-1,Ve=Pe.charSpacing,je=Pe.wordSpacing,Le=Pe.textHScale*Be,et=Pe.fontMatrix||V.FONT_IDENTITY_MATRIX,Qe=Te.length,Ue=Pe.textRenderingMode===V.TextRenderingMode.INVISIBLE;let $e,Ye,tt,ot;if(!(Ue||Ie===0)){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,Fe.save(),Fe.transform(...Pe.textMatrix),Fe.translate(Pe.x,Pe.y),Fe.scale(Le,Be),$e=0;$e<Qe;++$e){if(Ye=Te[$e],typeof Ye=="number"){ot=Ke*Ye*Ie/1e3,this.ctx.translate(ot,0),Pe.x+=ot*Le;continue}const st=(Ye.isSpace?je:0)+Ve,dt=we.charProcOperatorList[Ye.operatorListId];if(!dt){(0,V.warn)(`Type3 character "${Ye.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=Ye,this.save(),Fe.scale(Ie,Ie),Fe.transform(...et),this.executeOperatorList(dt),this.restore()),tt=V.Util.applyTransform([Ye.width,0],et)[0]*Ie+st,Fe.translate(tt,0),Pe.x+=tt*Le}Fe.restore(),this.processingType3=null}}setCharWidth(Te,Fe){}setCharWidthAndBounds(Te,Fe,Pe,we,Ie,Be){this.ctx.rect(Pe,we,Ie-Pe,Be-we),this.ctx.clip(),this.endPath()}getColorN_Pattern(Te){let Fe;if(Te[0]==="TilingPattern"){const Pe=Te[1],we=this.baseTransform||(0,G.getCurrentTransform)(this.ctx),Ie={createCanvasGraphics:Be=>new Ne(Be,this.commonObjs,this.objs,this.canvasFactory)};Fe=new q.TilingPattern(Te,Pe,this.ctx,Ie,we)}else Fe=this._getPattern(Te[1],Te[2]);return Fe}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(Te,Fe,Pe){var we;const Ie=((we=this.selectColor)===null||we===void 0?void 0:we.call(this,Te,Fe,Pe))||V.Util.makeHexColor(Te,Fe,Pe);this.ctx.strokeStyle=Ie,this.current.strokeColor=Ie}setFillRGBColor(Te,Fe,Pe){var we;const Ie=((we=this.selectColor)===null||we===void 0?void 0:we.call(this,Te,Fe,Pe))||V.Util.makeHexColor(Te,Fe,Pe);this.ctx.fillStyle=Ie,this.current.fillColor=Ie,this.current.patternFill=!1}_getPattern(Te){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Pe;return this.cachedPatterns.has(Te)?Pe=this.cachedPatterns.get(Te):(Pe=(0,q.getShadingPattern)(this.objs.get(Te)),this.cachedPatterns.set(Te,Pe)),Fe&&(Pe.matrix=Fe),Pe}shadingFill(Te){if(!this.contentVisible)return;const Fe=this.ctx;this.save();const Pe=this._getPattern(Te);Fe.fillStyle=Pe.getPattern(Fe,this,(0,G.getCurrentTransformInverse)(Fe),q.PathType.SHADING);const we=(0,G.getCurrentTransformInverse)(Fe);if(we){const Ie=Fe.canvas,Be=Ie.width,Ke=Ie.height,Ve=V.Util.applyTransform([0,0],we),je=V.Util.applyTransform([0,Ke],we),Le=V.Util.applyTransform([Be,0],we),et=V.Util.applyTransform([Be,Ke],we),Qe=Math.min(Ve[0],je[0],Le[0],et[0]),Ue=Math.min(Ve[1],je[1],Le[1],et[1]),$e=Math.max(Ve[0],je[0],Le[0],et[0]),Ye=Math.max(Ve[1],je[1],Le[1],et[1]);this.ctx.fillRect(Qe,Ue,$e-Qe,Ye-Ue)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,V.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,V.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(Te,Fe){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(Te)&&Te.length===6&&this.transform(...Te),this.baseTransform=(0,G.getCurrentTransform)(this.ctx),Fe)){const Pe=Fe[2]-Fe[0],we=Fe[3]-Fe[1];this.ctx.rect(Fe[0],Fe[1],Pe,we),this.current.updateRectMinMax((0,G.getCurrentTransform)(this.ctx),Fe),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(Te){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Fe=this.ctx;Te.isolated||(0,V.info)("TODO: Support non-isolated groups."),Te.knockout&&(0,V.warn)("Knockout groups not supported.");const Pe=(0,G.getCurrentTransform)(Fe);if(Te.matrix&&Fe.transform(...Te.matrix),!Te.bbox)throw new Error("Bounding box is required.");let we=V.Util.getAxialAlignedBoundingBox(Te.bbox,(0,G.getCurrentTransform)(Fe));const Ie=[0,0,Fe.canvas.width,Fe.canvas.height];we=V.Util.intersect(we,Ie)||[0,0,0,0];const Be=Math.floor(we[0]),Ke=Math.floor(we[1]);let Ve=Math.max(Math.ceil(we[2])-Be,1),je=Math.max(Math.ceil(we[3])-Ke,1),Le=1,et=1;Ve>e&&(Le=Ve/e,Ve=e),je>e&&(et=je/e,je=e),this.current.startNewPathAndClipBox([0,0,Ve,je]);let Qe="groupAt"+this.groupLevel;Te.smask&&(Qe+="_smask_"+this.smaskCounter++%2);const Ue=this.cachedCanvases.getCanvas(Qe,Ve,je),$e=Ue.context;$e.scale(1/Le,1/et),$e.translate(-Be,-Ke),$e.transform(...Pe),Te.smask?this.smaskStack.push({canvas:Ue.canvas,context:$e,offsetX:Be,offsetY:Ke,scaleX:Le,scaleY:et,subtype:Te.smask.subtype,backdrop:Te.smask.backdrop,transferMap:Te.smask.transferMap||null,startTransformInverse:null}):(Fe.setTransform(1,0,0,1,0,0),Fe.translate(Be,Ke),Fe.scale(Le,et),Fe.save()),oe(Fe,$e),this.ctx=$e,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Fe),this.groupLevel++}endGroup(Te){if(!this.contentVisible)return;this.groupLevel--;const Fe=this.ctx,Pe=this.groupStack.pop();if(this.ctx=Pe,this.ctx.imageSmoothingEnabled=!1,Te.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const we=(0,G.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...we);const Ie=V.Util.getAxialAlignedBoundingBox([0,0,Fe.canvas.width,Fe.canvas.height],we);this.ctx.drawImage(Fe.canvas,0,0),this.ctx.restore(),this.compose(Ie)}}beginAnnotation(Te,Fe,Pe,we,Ie){if(U(this,Ae,Ze).call(this),me(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Fe)&&Fe.length===4){const Be=Fe[2]-Fe[0],Ke=Fe[3]-Fe[1];if(Ie&&this.annotationCanvasMap){Pe=Pe.slice(),Pe[4]-=Fe[0],Pe[5]-=Fe[1],Fe=Fe.slice(),Fe[0]=Fe[1]=0,Fe[2]=Be,Fe[3]=Ke;const[Ve,je]=V.Util.singularValueDecompose2dScale((0,G.getCurrentTransform)(this.ctx)),{viewportScale:Le}=this,et=Math.ceil(Be*this.outputScaleX*Le),Qe=Math.ceil(Ke*this.outputScaleY*Le);this.annotationCanvas=this.canvasFactory.create(et,Qe);const{canvas:Ue,context:$e}=this.annotationCanvas;this.annotationCanvasMap.set(Te,Ue),this.annotationCanvas.savedCtx=this.ctx,this.ctx=$e,this.ctx.setTransform(Ve,0,0,-je,0,Ke*je),me(this.ctx,this.foregroundColor)}else me(this.ctx,this.foregroundColor),this.ctx.rect(Fe[0],Fe[1],Be,Ke),this.ctx.clip(),this.endPath()}this.current=new ce(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Pe),this.transform(...we)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(Te){if(!this.contentVisible)return;const Fe=Te.count;Te=this.getObject(Te.data,Te),Te.count=Fe;const Pe=this.ctx,we=this.processingType3;if(we&&(we.compiled===void 0&&(we.compiled=Q(Te)),we.compiled)){we.compiled(Pe);return}const Ie=this._createMaskCanvas(Te),Be=Ie.canvas;Pe.save(),Pe.setTransform(1,0,0,1,0,0),Pe.drawImage(Be,Ie.offsetX,Ie.offsetY),Pe.restore(),this.compose()}paintImageMaskXObjectRepeat(Te,Fe){let Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Ie=arguments.length>4?arguments[4]:void 0,Be=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;Te=this.getObject(Te.data,Te);const Ke=this.ctx;Ke.save();const Ve=(0,G.getCurrentTransform)(Ke);Ke.transform(Fe,Pe,we,Ie,0,0);const je=this._createMaskCanvas(Te);Ke.setTransform(1,0,0,1,0,0);for(let Le=0,et=Be.length;Le<et;Le+=2){const Qe=V.Util.transform(Ve,[Fe,Pe,we,Ie,Be[Le],Be[Le+1]]),[Ue,$e]=V.Util.applyTransform([0,0],Qe);Ke.drawImage(je.canvas,Ue,$e)}Ke.restore(),this.compose()}paintImageMaskXObjectGroup(Te){if(!this.contentVisible)return;const Fe=this.ctx,Pe=this.current.fillColor,we=this.current.patternFill;for(const Ie of Te){const{data:Be,width:Ke,height:Ve,transform:je}=Ie,Le=this.cachedCanvases.getCanvas("maskCanvas",Ke,Ve),et=Le.context;et.save();const Qe=this.getObject(Be,Ie);se(et,Qe),et.globalCompositeOperation="source-in",et.fillStyle=we?Pe.getPattern(et,this,(0,G.getCurrentTransformInverse)(Fe),q.PathType.FILL):Pe,et.fillRect(0,0,Ke,Ve),et.restore(),Fe.save(),Fe.transform(...je),Fe.scale(1,-1),L(Fe,Le.canvas,0,0,Ke,Ve,0,-1,1,1),Fe.restore()}this.compose()}paintImageXObject(Te){if(!this.contentVisible)return;const Fe=this.getObject(Te);if(!Fe){(0,V.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(Fe)}paintImageXObjectRepeat(Te,Fe,Pe,we){if(!this.contentVisible)return;const Ie=this.getObject(Te);if(!Ie){(0,V.warn)("Dependent image isn't ready yet");return}const Be=Ie.width,Ke=Ie.height,Ve=[];for(let je=0,Le=we.length;je<Le;je+=2)Ve.push({transform:[Fe,0,0,Pe,we[je],we[je+1]],x:0,y:0,w:Be,h:Ke});this.paintInlineImageXObjectGroup(Ie,Ve)}paintInlineImageXObject(Te){if(!this.contentVisible)return;const Fe=Te.width,Pe=Te.height,we=this.ctx;this.save(),we.scale(1/Fe,-1/Pe);let Ie;if(typeof HTMLElement=="function"&&Te instanceof HTMLElement||!Te.data)Ie=Te;else{const je=this.cachedCanvases.getCanvas("inlineImage",Fe,Pe),Le=je.context;de(Le,Te,this.current.transferMaps),Ie=je.canvas}const Be=this._scaleImage(Ie,(0,G.getCurrentTransformInverse)(we));we.imageSmoothingEnabled=ye((0,G.getCurrentTransform)(we),Te.interpolate);const[Ke,Ve]=L(we,Be.img,0,0,Be.paintWidth,Be.paintHeight,0,-Pe,Fe,Pe);if(this.imageLayer){const[je,Le]=V.Util.applyTransform([0,-Pe],(0,G.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:Te,left:je,top:Le,width:Ke,height:Ve})}this.compose(),this.restore()}paintInlineImageXObjectGroup(Te,Fe){if(!this.contentVisible)return;const Pe=this.ctx,we=Te.width,Ie=Te.height,Be=this.cachedCanvases.getCanvas("inlineImage",we,Ie),Ke=Be.context;de(Ke,Te,this.current.transferMaps);for(const Ve of Fe){if(Pe.save(),Pe.transform(...Ve.transform),Pe.scale(1,-1),L(Pe,Be.canvas,Ve.x,Ve.y,Ve.w,Ve.h,0,-1,1,1),this.imageLayer){const[je,Le]=V.Util.applyTransform([Ve.x,Ve.y],(0,G.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:Te,left:je,top:Le,width:we,height:Ie})}Pe.restore()}this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(Te){}markPointProps(Te,Fe){}beginMarkedContent(Te){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(Te,Fe){Te==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(Fe)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(Te){const Fe=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(Te);const Pe=this.ctx;this.pendingClip&&(Fe||(this.pendingClip===Ge?Pe.clip("evenodd"):Pe.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),Pe.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const Te=(0,G.getCurrentTransform)(this.ctx);if(Te[1]===0&&Te[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(Te[0]),Math.abs(Te[3]));else{const Fe=Math.abs(Te[0]*Te[3]-Te[2]*Te[1]),Pe=Math.hypot(Te[0],Te[2]),we=Math.hypot(Te[1],Te[3]);this._cachedGetSinglePixelWidth=Math.max(Pe,we)/Fe}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:Te}=this.current,Fe=(0,G.getCurrentTransform)(this.ctx);let Pe,we;if(Fe[1]===0&&Fe[2]===0){const Ie=Math.abs(Fe[0]),Be=Math.abs(Fe[3]);if(Te===0)Pe=1/Ie,we=1/Be;else{const Ke=Ie*Te,Ve=Be*Te;Pe=Ke<1?1/Ke:1,we=Ve<1?1/Ve:1}}else{const Ie=Math.abs(Fe[0]*Fe[3]-Fe[2]*Fe[1]),Be=Math.hypot(Fe[0],Fe[1]),Ke=Math.hypot(Fe[2],Fe[3]);if(Te===0)Pe=Ke/Ie,we=Be/Ie;else{const Ve=Te*Ie;Pe=Ke>Ve?Ke/Ve:1,we=Be>Ve?Be/Ve:1}}this._cachedScaleForStroking=[Pe,we]}return this._cachedScaleForStroking}rescaleAndStroke(Te){const{ctx:Fe}=this,{lineWidth:Pe}=this.current,[we,Ie]=this.getScaleForStroking();if(Fe.lineWidth=Pe||1,we===1&&Ie===1){Fe.stroke();return}let Be,Ke,Ve;Te&&(Be=(0,G.getCurrentTransform)(Fe),Ke=Fe.getLineDash().slice(),Ve=Fe.lineDashOffset),Fe.scale(we,Ie);const je=Math.max(we,Ie);Fe.setLineDash(Fe.getLineDash().map(Le=>Le/je)),Fe.lineDashOffset/=je,Fe.stroke(),Te&&(Fe.setTransform(...Be),Fe.setLineDash(Ke),Fe.lineDashOffset=Ve)}isContentVisible(){for(let Te=this.markedContentStack.length-1;Te>=0;Te--)if(!this.markedContentStack[Te].visible)return!1;return!0}}m.CanvasGraphics=Ne;function Ze(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}for(const ze in V.OPS)Ne.prototype[ze]!==void 0&&(Ne.prototype[V.OPS[ze]]=Ne.prototype[ze])},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.TilingPattern=m.PathType=void 0,m.getShadingPattern=ae;var G=M(1),V=M(133),q=M(3);const $={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};m.PathType=$;function D(J,W){if(!W||q.isNodeJS)return;const X=W[2]-W[0],L=W[3]-W[1],Q=new Path2D;Q.rect(W[0],W[1],X,L),J.clip(Q)}class B{constructor(){this.constructor===B&&(0,G.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,G.unreachable)("Abstract method `getPattern` called.")}}class R extends B{constructor(W){super(),this._type=W[1],this._bbox=W[2],this._colorStops=W[3],this._p0=W[4],this._p1=W[5],this._r0=W[6],this._r1=W[7],this.matrix=null}_createGradient(W){let X;this._type==="axial"?X=W.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(X=W.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const L of this._colorStops)X.addColorStop(L[0],L[1]);return X}getPattern(W,X,L,Q){let ce;if(Q===$.STROKE||Q===$.FILL){const de=X.current.getClippedPathBoundingBox(Q,(0,V.getCurrentTransform)(W))||[0,0,0,0],se=Math.ceil(de[2]-de[0])||1,oe=Math.ceil(de[3]-de[1])||1,me=X.cachedCanvases.getCanvas("pattern",se,oe,!0),Ee=me.context;Ee.clearRect(0,0,Ee.canvas.width,Ee.canvas.height),Ee.beginPath(),Ee.rect(0,0,Ee.canvas.width,Ee.canvas.height),Ee.translate(-de[0],-de[1]),L=G.Util.transform(L,[1,0,0,1,de[0],de[1]]),Ee.transform(...X.baseTransform),this.matrix&&Ee.transform(...this.matrix),D(Ee,this._bbox),Ee.fillStyle=this._createGradient(Ee),Ee.fill(),ce=W.createPattern(me.canvas,"no-repeat");const ke=new DOMMatrix(L);try{ce.setTransform(ke)}catch(xe){(0,G.warn)(`RadialAxialShadingPattern.getPattern: "${xe==null?void 0:xe.message}".`)}}else D(W,this._bbox),ce=this._createGradient(W);return ce}}function U(J,W,X,L,Q,ce,de,se){const oe=W.coords,me=W.colors,Ee=J.data,ke=J.width*4;let xe;oe[X+1]>oe[L+1]&&(xe=X,X=L,L=xe,xe=ce,ce=de,de=xe),oe[L+1]>oe[Q+1]&&(xe=L,L=Q,Q=xe,xe=de,de=se,se=xe),oe[X+1]>oe[L+1]&&(xe=X,X=L,L=xe,xe=ce,ce=de,de=xe);const fe=(oe[X]+W.offsetX)*W.scaleX,ve=(oe[X+1]+W.offsetY)*W.scaleY,ye=(oe[L]+W.offsetX)*W.scaleX,Ce=(oe[L+1]+W.offsetY)*W.scaleY,pe=(oe[Q]+W.offsetX)*W.scaleX,_e=(oe[Q+1]+W.offsetY)*W.scaleY;if(ve>=_e)return;const Ge=me[ce],Ae=me[ce+1],Ne=me[ce+2],Ze=me[de],ze=me[de+1],Te=me[de+2],Fe=me[se],Pe=me[se+1],we=me[se+2],Ie=Math.round(ve),Be=Math.round(_e);let Ke,Ve,je,Le,et,Qe,Ue,$e;for(let Ye=Ie;Ye<=Be;Ye++){if(Ye<Ce){let ct;Ye<ve?ct=0:ct=(ve-Ye)/(ve-Ce),Ke=fe-(fe-ye)*ct,Ve=Ge-(Ge-Ze)*ct,je=Ae-(Ae-ze)*ct,Le=Ne-(Ne-Te)*ct}else{let ct;Ye>_e?ct=1:Ce===_e?ct=0:ct=(Ce-Ye)/(Ce-_e),Ke=ye-(ye-pe)*ct,Ve=Ze-(Ze-Fe)*ct,je=ze-(ze-Pe)*ct,Le=Te-(Te-we)*ct}let tt;Ye<ve?tt=0:Ye>_e?tt=1:tt=(ve-Ye)/(ve-_e),et=fe-(fe-pe)*tt,Qe=Ge-(Ge-Fe)*tt,Ue=Ae-(Ae-Pe)*tt,$e=Ne-(Ne-we)*tt;const ot=Math.round(Math.min(Ke,et)),st=Math.round(Math.max(Ke,et));let dt=ke*Ye+ot*4;for(let ct=ot;ct<=st;ct++)tt=(Ke-ct)/(Ke-et),tt<0?tt=0:tt>1&&(tt=1),Ee[dt++]=Ve-(Ve-Qe)*tt|0,Ee[dt++]=je-(je-Ue)*tt|0,Ee[dt++]=Le-(Le-$e)*tt|0,Ee[dt++]=255}}function K(J,W,X){const L=W.coords,Q=W.colors;let ce,de;switch(W.type){case"lattice":const se=W.verticesPerRow,oe=Math.floor(L.length/se)-1,me=se-1;for(ce=0;ce<oe;ce++){let Ee=ce*se;for(let ke=0;ke<me;ke++,Ee++)U(J,X,L[Ee],L[Ee+1],L[Ee+se],Q[Ee],Q[Ee+1],Q[Ee+se]),U(J,X,L[Ee+se+1],L[Ee+1],L[Ee+se],Q[Ee+se+1],Q[Ee+1],Q[Ee+se])}break;case"triangles":for(ce=0,de=L.length;ce<de;ce+=3)U(J,X,L[ce],L[ce+1],L[ce+2],Q[ce],Q[ce+1],Q[ce+2]);break;default:throw new Error("illegal figure")}}class z extends B{constructor(W){super(),this._coords=W[2],this._colors=W[3],this._figures=W[4],this._bounds=W[5],this._bbox=W[7],this._background=W[8],this.matrix=null}_createMeshCanvas(W,X,L){const se=Math.floor(this._bounds[0]),oe=Math.floor(this._bounds[1]),me=Math.ceil(this._bounds[2])-se,Ee=Math.ceil(this._bounds[3])-oe,ke=Math.min(Math.ceil(Math.abs(me*W[0]*1.1)),3e3),xe=Math.min(Math.ceil(Math.abs(Ee*W[1]*1.1)),3e3),fe=me/ke,ve=Ee/xe,ye={coords:this._coords,colors:this._colors,offsetX:-se,offsetY:-oe,scaleX:1/fe,scaleY:1/ve},Ce=ke+2*2,pe=xe+2*2,_e=L.getCanvas("mesh",Ce,pe,!1),Ge=_e.context,Ae=Ge.createImageData(ke,xe);if(X){const Ze=Ae.data;for(let ze=0,Te=Ze.length;ze<Te;ze+=4)Ze[ze]=X[0],Ze[ze+1]=X[1],Ze[ze+2]=X[2],Ze[ze+3]=255}for(const Ze of this._figures)K(Ae,Ze,ye);return Ge.putImageData(Ae,2,2),{canvas:_e.canvas,offsetX:se-2*fe,offsetY:oe-2*ve,scaleX:fe,scaleY:ve}}getPattern(W,X,L,Q){D(W,this._bbox);let ce;if(Q===$.SHADING)ce=G.Util.singularValueDecompose2dScale((0,V.getCurrentTransform)(W));else if(ce=G.Util.singularValueDecompose2dScale(X.baseTransform),this.matrix){const se=G.Util.singularValueDecompose2dScale(this.matrix);ce=[ce[0]*se[0],ce[1]*se[1]]}const de=this._createMeshCanvas(ce,Q===$.SHADING?null:this._background,X.cachedCanvases);return Q!==$.SHADING&&(W.setTransform(...X.baseTransform),this.matrix&&W.transform(...this.matrix)),W.translate(de.offsetX,de.offsetY),W.scale(de.scaleX,de.scaleY),W.createPattern(de.canvas,"no-repeat")}}class e extends B{getPattern(){return"hotpink"}}function ae(J){switch(J[0]){case"RadialAxial":return new R(J);case"Mesh":return new z(J);case"Dummy":return new e}throw new Error(`Unknown IR type: ${J[0]}`)}const ie={COLORED:1,UNCOLORED:2};class he{static get MAX_PATTERN_SIZE(){return(0,G.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(W,X,L,Q,ce){this.operatorList=W[2],this.matrix=W[3]||[1,0,0,1,0,0],this.bbox=W[4],this.xstep=W[5],this.ystep=W[6],this.paintType=W[7],this.tilingType=W[8],this.color=X,this.ctx=L,this.canvasGraphicsFactory=Q,this.baseTransform=ce}createPatternCanvas(W){const X=this.operatorList,L=this.bbox,Q=this.xstep,ce=this.ystep,de=this.paintType,se=this.tilingType,oe=this.color,me=this.canvasGraphicsFactory;(0,G.info)("TilingType: "+se);const Ee=L[0],ke=L[1],xe=L[2],fe=L[3],ve=G.Util.singularValueDecompose2dScale(this.matrix),ye=G.Util.singularValueDecompose2dScale(this.baseTransform),Ce=[ve[0]*ye[0],ve[1]*ye[1]],pe=this.getSizeAndScale(Q,this.ctx.canvas.width,Ce[0]),_e=this.getSizeAndScale(ce,this.ctx.canvas.height,Ce[1]),Ge=W.cachedCanvases.getCanvas("pattern",pe.size,_e.size,!0),Ae=Ge.context,Ne=me.createCanvasGraphics(Ae);Ne.groupLevel=W.groupLevel,this.setFillAndStrokeStyleToContext(Ne,de,oe);let Ze=Ee,ze=ke,Te=xe,Fe=fe;return Ee<0&&(Ze=0,Te+=Math.abs(Ee)),ke<0&&(ze=0,Fe+=Math.abs(ke)),Ae.translate(-(pe.scale*Ze),-(_e.scale*ze)),Ne.transform(pe.scale,0,0,_e.scale,0,0),Ae.save(),this.clipBbox(Ne,Ze,ze,Te,Fe),Ne.baseTransform=(0,V.getCurrentTransform)(Ne.ctx),Ne.executeOperatorList(X),Ne.endDrawing(),{canvas:Ge.canvas,scaleX:pe.scale,scaleY:_e.scale,offsetX:Ze,offsetY:ze}}getSizeAndScale(W,X,L){W=Math.abs(W);const Q=Math.max(he.MAX_PATTERN_SIZE,X);let ce=Math.ceil(W*L);return ce>=Q?ce=Q:L=ce/W,{scale:L,size:ce}}clipBbox(W,X,L,Q,ce){const de=Q-X,se=ce-L;W.ctx.rect(X,L,de,se),W.current.updateRectMinMax((0,V.getCurrentTransform)(W.ctx),[X,L,Q,ce]),W.clip(),W.endPath()}setFillAndStrokeStyleToContext(W,X,L){const Q=W.ctx,ce=W.current;switch(X){case ie.COLORED:const de=this.ctx;Q.fillStyle=de.fillStyle,Q.strokeStyle=de.strokeStyle,ce.fillColor=de.fillStyle,ce.strokeColor=de.strokeStyle;break;case ie.UNCOLORED:const se=G.Util.makeHexColor(L[0],L[1],L[2]);Q.fillStyle=se,Q.strokeStyle=se,ce.fillColor=se,ce.strokeColor=se;break;default:throw new G.FormatError(`Unsupported paint type: ${X}`)}}getPattern(W,X,L,Q){let ce=L;Q!==$.SHADING&&(ce=G.Util.transform(ce,X.baseTransform),this.matrix&&(ce=G.Util.transform(ce,this.matrix)));const de=this.createPatternCanvas(X);let se=new DOMMatrix(ce);se=se.translate(de.offsetX,de.offsetY),se=se.scale(1/de.scaleX,1/de.scaleY);const oe=W.createPattern(de.canvas,"repeat");try{oe.setTransform(se)}catch(me){(0,G.warn)(`TilingPattern.getPattern: "${me==null?void 0:me.message}".`)}return oe}}m.TilingPattern=he},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.applyMaskImageData=V;var G=M(1);function V(q){let{src:$,srcPos:D=0,dest:B,destPos:R=0,width:U,height:K,inverseDecode:z=!1}=q;const e=G.FeatureTest.isLittleEndian?4278190080:255,[ae,ie]=z?[0,e]:[e,0],he=U>>3,J=U&7,W=$.length;B=new Uint32Array(B.buffer);for(let X=0;X<K;X++){for(const Q=D+he;D<Q;D++){const ce=D<W?$[D]:255;B[R++]=ce&128?ie:ae,B[R++]=ce&64?ie:ae,B[R++]=ce&32?ie:ae,B[R++]=ce&16?ie:ae,B[R++]=ce&8?ie:ae,B[R++]=ce&4?ie:ae,B[R++]=ce&2?ie:ae,B[R++]=ce&1?ie:ae}if(J===0)continue;const L=D<W?$[D++]:255;for(let Q=0;Q<J;Q++)B[R++]=L&1<<7-Q?ie:ae}return{srcPos:D,destPos:R}}},(k,m)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.GlobalWorkerOptions=void 0;const M=Object.create(null);m.GlobalWorkerOptions=M,M.workerPort=M.workerPort===void 0?null:M.workerPort,M.workerSrc=M.workerSrc===void 0?"":M.workerSrc},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.MessageHandler=void 0;var G=M(1);const V={UNKNOWN:0,DATA:1,ERROR:2},q={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function $(B){switch(B instanceof Error||typeof B=="object"&&B!==null||(0,G.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),B.name){case"AbortException":return new G.AbortException(B.message);case"MissingPDFException":return new G.MissingPDFException(B.message);case"PasswordException":return new G.PasswordException(B.message,B.code);case"UnexpectedResponseException":return new G.UnexpectedResponseException(B.message,B.status);case"UnknownErrorException":return new G.UnknownErrorException(B.message,B.details);default:return new G.UnknownErrorException(B.message,B.toString())}}class D{constructor(R,U,K){this.sourceName=R,this.targetName=U,this.comObj=K,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=z=>{const e=z.data;if(e.targetName!==this.sourceName)return;if(e.stream){this._processStreamMessage(e);return}if(e.callback){const ie=e.callbackId,he=this.callbackCapabilities[ie];if(!he)throw new Error(`Cannot resolve callback ${ie}`);if(delete this.callbackCapabilities[ie],e.callback===V.DATA)he.resolve(e.data);else if(e.callback===V.ERROR)he.reject($(e.reason));else throw new Error("Unexpected callback case");return}const ae=this.actionHandler[e.action];if(!ae)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const ie=this.sourceName,he=e.sourceName;new Promise(function(J){J(ae(e.data))}).then(function(J){K.postMessage({sourceName:ie,targetName:he,callback:V.DATA,callbackId:e.callbackId,data:J})},function(J){K.postMessage({sourceName:ie,targetName:he,callback:V.ERROR,callbackId:e.callbackId,reason:$(J)})});return}if(e.streamId){this._createStreamSink(e);return}ae(e.data)},K.addEventListener("message",this._onComObjOnMessage)}on(R,U){const K=this.actionHandler;if(K[R])throw new Error(`There is already an actionName called "${R}"`);K[R]=U}send(R,U,K){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:R,data:U},K)}sendWithPromise(R,U,K){const z=this.callbackId++,e=(0,G.createPromiseCapability)();this.callbackCapabilities[z]=e;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:R,callbackId:z,data:U},K)}catch(ae){e.reject(ae)}return e.promise}sendWithStream(R,U,K,z){const e=this.streamId++,ae=this.sourceName,ie=this.targetName,he=this.comObj;return new ReadableStream({start:J=>{const W=(0,G.createPromiseCapability)();return this.streamControllers[e]={controller:J,startCall:W,pullCall:null,cancelCall:null,isClosed:!1},he.postMessage({sourceName:ae,targetName:ie,action:R,streamId:e,data:U,desiredSize:J.desiredSize},z),W.promise},pull:J=>{const W=(0,G.createPromiseCapability)();return this.streamControllers[e].pullCall=W,he.postMessage({sourceName:ae,targetName:ie,stream:q.PULL,streamId:e,desiredSize:J.desiredSize}),W.promise},cancel:J=>{(0,G.assert)(J instanceof Error,"cancel must have a valid reason");const W=(0,G.createPromiseCapability)();return this.streamControllers[e].cancelCall=W,this.streamControllers[e].isClosed=!0,he.postMessage({sourceName:ae,targetName:ie,stream:q.CANCEL,streamId:e,reason:$(J)}),W.promise}},K)}_createStreamSink(R){const U=R.streamId,K=this.sourceName,z=R.sourceName,e=this.comObj,ae=this,ie=this.actionHandler[R.action],he={enqueue(J){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const L=this.desiredSize;this.desiredSize-=W,L>0&&this.desiredSize<=0&&(this.sinkCapability=(0,G.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e.postMessage({sourceName:K,targetName:z,stream:q.ENQUEUE,streamId:U,chunk:J},X)},close(){this.isCancelled||(this.isCancelled=!0,e.postMessage({sourceName:K,targetName:z,stream:q.CLOSE,streamId:U}),delete ae.streamSinks[U])},error(J){(0,G.assert)(J instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,e.postMessage({sourceName:K,targetName:z,stream:q.ERROR,streamId:U,reason:$(J)}))},sinkCapability:(0,G.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:R.desiredSize,ready:null};he.sinkCapability.resolve(),he.ready=he.sinkCapability.promise,this.streamSinks[U]=he,new Promise(function(J){J(ie(R.data,he))}).then(function(){e.postMessage({sourceName:K,targetName:z,stream:q.START_COMPLETE,streamId:U,success:!0})},function(J){e.postMessage({sourceName:K,targetName:z,stream:q.START_COMPLETE,streamId:U,reason:$(J)})})}_processStreamMessage(R){const U=R.streamId,K=this.sourceName,z=R.sourceName,e=this.comObj,ae=this.streamControllers[U],ie=this.streamSinks[U];switch(R.stream){case q.START_COMPLETE:R.success?ae.startCall.resolve():ae.startCall.reject($(R.reason));break;case q.PULL_COMPLETE:R.success?ae.pullCall.resolve():ae.pullCall.reject($(R.reason));break;case q.PULL:if(!ie){e.postMessage({sourceName:K,targetName:z,stream:q.PULL_COMPLETE,streamId:U,success:!0});break}ie.desiredSize<=0&&R.desiredSize>0&&ie.sinkCapability.resolve(),ie.desiredSize=R.desiredSize,new Promise(function(he){he(ie.onPull&&ie.onPull())}).then(function(){e.postMessage({sourceName:K,targetName:z,stream:q.PULL_COMPLETE,streamId:U,success:!0})},function(he){e.postMessage({sourceName:K,targetName:z,stream:q.PULL_COMPLETE,streamId:U,reason:$(he)})});break;case q.ENQUEUE:if((0,G.assert)(ae,"enqueue should have stream controller"),ae.isClosed)break;ae.controller.enqueue(R.chunk);break;case q.CLOSE:if((0,G.assert)(ae,"close should have stream controller"),ae.isClosed)break;ae.isClosed=!0,ae.controller.close(),this._deleteStreamController(ae,U);break;case q.ERROR:(0,G.assert)(ae,"error should have stream controller"),ae.controller.error($(R.reason)),this._deleteStreamController(ae,U);break;case q.CANCEL_COMPLETE:R.success?ae.cancelCall.resolve():ae.cancelCall.reject($(R.reason)),this._deleteStreamController(ae,U);break;case q.CANCEL:if(!ie)break;new Promise(function(he){he(ie.onCancel&&ie.onCancel($(R.reason)))}).then(function(){e.postMessage({sourceName:K,targetName:z,stream:q.CANCEL_COMPLETE,streamId:U,success:!0})},function(he){e.postMessage({sourceName:K,targetName:z,stream:q.CANCEL_COMPLETE,streamId:U,reason:$(he)})}),ie.sinkCapability.reject($(R.reason)),ie.isCancelled=!0,delete this.streamSinks[U];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(R,U){await Promise.allSettled([R.startCall&&R.startCall.promise,R.pullCall&&R.pullCall.promise,R.cancelCall&&R.cancelCall.promise]),delete this.streamControllers[U]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}m.MessageHandler=D},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.Metadata=void 0;var G=M(1);function V(ae,ie,he){q(ae,ie),ie.set(ae,he)}function q(ae,ie){if(ie.has(ae))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $(ae,ie){var he=R(ae,ie,"get");return D(ae,he)}function D(ae,ie){return ie.get?ie.get.call(ae):ie.value}function B(ae,ie,he){var J=R(ae,ie,"set");return U(ae,J,he),he}function R(ae,ie,he){if(!ie.has(ae))throw new TypeError("attempted to "+he+" private field on non-instance");return ie.get(ae)}function U(ae,ie,he){if(ie.set)ie.set.call(ae,he);else{if(!ie.writable)throw new TypeError("attempted to set read only private field");ie.value=he}}var K=new WeakMap,z=new WeakMap;class e{constructor(ie){let{parsedData:he,rawData:J}=ie;V(this,K,{writable:!0,value:void 0}),V(this,z,{writable:!0,value:void 0}),B(this,K,he),B(this,z,J)}getRaw(){return $(this,z)}get(ie){var he;return(he=$(this,K).get(ie))!==null&&he!==void 0?he:null}getAll(){return(0,G.objectFromMap)($(this,K))}has(ie){return $(this,K).has(ie)}}m.Metadata=e},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.OptionalContentConfig=void 0;var G=M(1);function V(de,se){D(de,se),se.add(de)}function q(de,se,oe){if(!se.has(de))throw new TypeError("attempted to get private field on non-instance");return oe}function $(de,se,oe){D(de,se),se.set(de,oe)}function D(de,se){if(se.has(de))throw new TypeError("Cannot initialize the same private elements twice on an object")}function B(de,se,oe){var me=K(de,se,"set");return R(de,me,oe),oe}function R(de,se,oe){if(se.set)se.set.call(de,oe);else{if(!se.writable)throw new TypeError("attempted to set read only private field");se.value=oe}}function U(de,se){var oe=K(de,se,"get");return z(de,oe)}function K(de,se,oe){if(!se.has(de))throw new TypeError("attempted to "+oe+" private field on non-instance");return se.get(de)}function z(de,se){return se.get?se.get.call(de):se.value}const e=Symbol("INTERNAL");var ae=new WeakMap;class ie{constructor(se,oe){$(this,ae,{writable:!0,value:!0}),this.name=se,this.intent=oe}get visible(){return U(this,ae)}_setVisible(se,oe){se!==e&&(0,G.unreachable)("Internal method `_setVisible` called."),B(this,ae,oe)}}var he=new WeakMap,J=new WeakMap,W=new WeakMap,X=new WeakMap,L=new WeakSet;class Q{constructor(se){if(V(this,L),$(this,he,{writable:!0,value:!0}),$(this,J,{writable:!0,value:new Map}),$(this,W,{writable:!0,value:null}),$(this,X,{writable:!0,value:null}),this.name=null,this.creator=null,se!==null){this.name=se.name,this.creator=se.creator,B(this,X,se.order);for(const oe of se.groups)U(this,J).set(oe.id,new ie(oe.name,oe.intent));if(se.baseState==="OFF")for(const oe of U(this,J).values())oe._setVisible(e,!1);for(const oe of se.on)U(this,J).get(oe)._setVisible(e,!0);for(const oe of se.off)U(this,J).get(oe)._setVisible(e,!1);B(this,W,new Map);for(const[oe,me]of U(this,J))U(this,W).set(oe,me.visible)}}isVisible(se){if(U(this,J).size===0)return!0;if(!se)return(0,G.warn)("Optional content group not defined."),!0;if(se.type==="OCG")return U(this,J).has(se.id)?U(this,J).get(se.id).visible:((0,G.warn)(`Optional content group not found: ${se.id}`),!0);if(se.type==="OCMD"){if(se.expression)return q(this,L,ce).call(this,se.expression);if(!se.policy||se.policy==="AnyOn"){for(const oe of se.ids){if(!U(this,J).has(oe))return(0,G.warn)(`Optional content group not found: ${oe}`),!0;if(U(this,J).get(oe).visible)return!0}return!1}else if(se.policy==="AllOn"){for(const oe of se.ids){if(!U(this,J).has(oe))return(0,G.warn)(`Optional content group not found: ${oe}`),!0;if(!U(this,J).get(oe).visible)return!1}return!0}else if(se.policy==="AnyOff"){for(const oe of se.ids){if(!U(this,J).has(oe))return(0,G.warn)(`Optional content group not found: ${oe}`),!0;if(!U(this,J).get(oe).visible)return!0}return!1}else if(se.policy==="AllOff"){for(const oe of se.ids){if(!U(this,J).has(oe))return(0,G.warn)(`Optional content group not found: ${oe}`),!0;if(U(this,J).get(oe).visible)return!1}return!0}return(0,G.warn)(`Unknown optional content policy ${se.policy}.`),!0}return(0,G.warn)(`Unknown group type ${se.type}.`),!0}setVisibility(se){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!U(this,J).has(se)){(0,G.warn)(`Optional content group not found: ${se}`);return}U(this,J).get(se)._setVisible(e,!!oe),B(this,he,null)}get hasInitialVisibility(){if(U(this,he)!==null)return U(this,he);for(const[se,oe]of U(this,J)){const me=U(this,W).get(se);if(oe.visible!==me)return B(this,he,!1)}return B(this,he,!0)}getOrder(){return U(this,J).size?U(this,X)?U(this,X).slice():[...U(this,J).keys()]:null}getGroups(){return U(this,J).size>0?(0,G.objectFromMap)(U(this,J)):null}getGroup(se){return U(this,J).get(se)||null}}m.OptionalContentConfig=Q;function ce(de){const se=de.length;if(se<2)return!0;const oe=de[0];for(let me=1;me<se;me++){const Ee=de[me];let ke;if(Array.isArray(Ee))ke=q(this,L,ce).call(this,Ee);else if(U(this,J).has(Ee))ke=U(this,J).get(Ee).visible;else return(0,G.warn)(`Optional content group not found: ${Ee}`),!0;switch(oe){case"And":if(!ke)return!1;break;case"Or":if(ke)return!0;break;case"Not":return!ke;default:return!0}}return oe==="And"}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.PDFDataTransportStream=void 0;var G=M(1),V=M(133);class q{constructor(R,U){(0,G.assert)(U,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=R.progressiveDone||!1,this._contentDispositionFilename=R.contentDispositionFilename||null;const K=R.initialData;if((K==null?void 0:K.length)>0){const z=new Uint8Array(K).buffer;this._queuedChunks.push(z)}this._pdfDataRangeTransport=U,this._isStreamingSupported=!R.disableStream,this._isRangeSupported=!R.disableRange,this._contentLength=R.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((z,e)=>{this._onReceiveData({begin:z,chunk:e})}),this._pdfDataRangeTransport.addProgressListener((z,e)=>{this._onProgress({loaded:z,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(z=>{this._onReceiveData({chunk:z})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(R){const U=new Uint8Array(R.chunk).buffer;if(R.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(U):this._queuedChunks.push(U);else{const K=this._rangeReaders.some(function(z){return z._begin!==R.begin?!1:(z._enqueue(U),!0)});(0,G.assert)(K,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var R,U;return(R=(U=this._fullRequestReader)===null||U===void 0?void 0:U._loaded)!==null&&R!==void 0?R:0}_onProgress(R){if(R.total===void 0){const U=this._rangeReaders[0];U!=null&&U.onProgress&&U.onProgress({loaded:R.loaded})}else{const U=this._fullRequestReader;U!=null&&U.onProgress&&U.onProgress({loaded:R.loaded,total:R.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(R){const U=this._rangeReaders.indexOf(R);U>=0&&this._rangeReaders.splice(U,1)}getFullReader(){(0,G.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const R=this._queuedChunks;return this._queuedChunks=null,new $(this,R,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(R,U){if(U<=this._progressiveDataLength)return null;const K=new D(this,R,U);return this._pdfDataRangeTransport.requestDataRange(R,U),this._rangeReaders.push(K),K}cancelAllRequests(R){this._fullRequestReader&&this._fullRequestReader.cancel(R);for(const U of this._rangeReaders.slice(0))U.cancel(R);this._pdfDataRangeTransport.abort()}}m.PDFDataTransportStream=q;class ${constructor(R,U){let K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this._stream=R,this._done=K||!1,this._filename=(0,V.isPdfFile)(z)?z:null,this._queuedChunks=U||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),R._fullRequestReader=this,this.onProgress=null}_enqueue(R){this._done||(this._requests.length>0?this._requests.shift().resolve({value:R,done:!1}):this._queuedChunks.push(R),this._loaded+=R.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const R=(0,G.createPromiseCapability)();return this._requests.push(R),R.promise}cancel(R){this._done=!0;for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class D{constructor(R,U,K){this._stream=R,this._begin=U,this._end=K,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(R){if(!this._done){if(this._requests.length===0)this._queuedChunk=R;else{this._requests.shift().resolve({value:R,done:!1});for(const K of this._requests)K.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const U=this._queuedChunk;return this._queuedChunk=null,{value:U,done:!1}}if(this._done)return{value:void 0,done:!0};const R=(0,G.createPromiseCapability)();return this._requests.push(R),R.promise}cancel(R){this._done=!0;for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(k,m)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.XfaText=void 0;class M{static textContent(V){const q=[],$={items:q,styles:Object.create(null)};function D(B){var R;if(!B)return;let U=null;const K=B.name;if(K==="#text")U=B.value;else if(M.shouldBuildText(K))B!=null&&(R=B.attributes)!==null&&R!==void 0&&R.textContent?U=B.attributes.textContent:B.value&&(U=B.value);else return;if(U!==null&&q.push({str:U}),!!B.children)for(const z of B.children)D(z)}return D(V),$}static shouldBuildText(V){return!(V==="textarea"||V==="input"||V==="option"||V==="select")}}m.XfaText=M},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.NodeStandardFontDataFactory=m.NodeCanvasFactory=m.NodeCMapReaderFactory=void 0;var G=M(134);const V=function(B){return new Promise((R,U)=>{require$$7.readFile(B,(z,e)=>{if(z||!e){U(new Error(z));return}R(new Uint8Array(e))})})};class q extends G.BaseCanvasFactory{_createCanvas(R,U){return require$$7.createCanvas(R,U)}}m.NodeCanvasFactory=q;class $ extends G.BaseCMapReaderFactory{_fetchData(R,U){return V(R).then(K=>({cMapData:K,compressionType:U}))}}m.NodeCMapReaderFactory=$;class D extends G.BaseStandardFontDataFactory{_fetchData(R){return V(R)}}m.NodeStandardFontDataFactory=D},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.AnnotationEditorLayer=void 0;var G=M(132),V=M(1),q=M(148),$=M(149);function D(pe,_e){U(pe,_e),_e.add(pe)}function B(pe,_e,Ge){return _e in pe?Object.defineProperty(pe,_e,{value:Ge,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=Ge,pe}function R(pe,_e,Ge){U(pe,_e),_e.set(pe,Ge)}function U(pe,_e){if(_e.has(pe))throw new TypeError("Cannot initialize the same private elements twice on an object")}function K(pe,_e,Ge){if(!_e.has(pe))throw new TypeError("attempted to get private field on non-instance");return Ge}function z(pe,_e){var Ge=ie(pe,_e,"get");return e(pe,Ge)}function e(pe,_e){return _e.get?_e.get.call(pe):_e.value}function ae(pe,_e,Ge){var Ae=ie(pe,_e,"set");return he(pe,Ae,Ge),Ge}function ie(pe,_e,Ge){if(!_e.has(pe))throw new TypeError("attempted to "+Ge+" private field on non-instance");return _e.get(pe)}function he(pe,_e,Ge){if(_e.set)_e.set.call(pe,Ge);else{if(!_e.writable)throw new TypeError("attempted to set read only private field");_e.value=Ge}}var J=new WeakMap,W=new WeakMap,X=new WeakMap,L=new WeakMap,Q=new WeakMap,ce=new WeakMap,de=new WeakMap,se=new WeakMap,oe=new WeakSet,me=new WeakSet,Ee=new WeakSet,ke=new WeakSet;class xe{constructor(_e){D(this,ke),D(this,Ee),D(this,me),D(this,oe),R(this,J,{writable:!0,value:void 0}),R(this,W,{writable:!0,value:!1}),R(this,X,{writable:!0,value:this.pointerup.bind(this)}),R(this,L,{writable:!0,value:this.pointerdown.bind(this)}),R(this,Q,{writable:!0,value:new Map}),R(this,ce,{writable:!0,value:!1}),R(this,de,{writable:!0,value:!1}),R(this,se,{writable:!0,value:void 0}),xe._initialized||(xe._initialized=!0,q.FreeTextEditor.initialize(_e.l10n),$.InkEditor.initialize(_e.l10n),_e.uiManager.registerEditorTypes([q.FreeTextEditor,$.InkEditor])),ae(this,se,_e.uiManager),this.annotationStorage=_e.annotationStorage,this.pageIndex=_e.pageIndex,this.div=_e.div,ae(this,J,_e.accessibilityManager),z(this,se).addLayer(this)}updateToolbar(_e){z(this,se).updateToolbar(_e)}updateMode(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z(this,se).getMode();K(this,ke,Ce).call(this),_e===V.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),z(this,se).unselectAll()}addInkEditorIfNeeded(_e){if(!_e&&z(this,se).getMode()!==V.AnnotationEditorType.INK)return;if(!_e){for(const Ae of z(this,Q).values())if(Ae.isEmpty()){Ae.setInBackground();return}}K(this,Ee,ye).call(this,{offsetX:0,offsetY:0}).setInBackground()}setEditingState(_e){z(this,se).setEditingState(_e)}addCommands(_e){z(this,se).addCommands(_e)}enable(){this.div.style.pointerEvents="auto";for(const _e of z(this,Q).values())_e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const _e of z(this,Q).values())_e.disableEditing()}setActiveEditor(_e){z(this,se).getActive()!==_e&&z(this,se).setActiveEditor(_e)}enableClick(){this.div.addEventListener("pointerdown",z(this,L)),this.div.addEventListener("pointerup",z(this,X))}disableClick(){this.div.removeEventListener("pointerdown",z(this,L)),this.div.removeEventListener("pointerup",z(this,X))}attach(_e){z(this,Q).set(_e.id,_e)}detach(_e){var Ge;z(this,Q).delete(_e.id),(Ge=z(this,J))===null||Ge===void 0||Ge.removePointerInTextLayer(_e.contentDiv)}remove(_e){z(this,se).removeEditor(_e),this.detach(_e),this.annotationStorage.remove(_e.id),_e.div.style.display="none",setTimeout(()=>{_e.div.style.display="",_e.div.remove(),_e.isAttachedToDOM=!1,document.activeElement===document.body&&z(this,se).focusMainContainer()},0),z(this,de)||this.addInkEditorIfNeeded(!1)}add(_e){if(K(this,oe,fe).call(this,_e),z(this,se).addEditor(_e),this.attach(_e),!_e.isAttachedToDOM){const Ge=_e.render();this.div.append(Ge),_e.isAttachedToDOM=!0}this.moveEditorInDOM(_e),_e.onceAdded(),this.addToAnnotationStorage(_e)}moveEditorInDOM(_e){var Ge;(Ge=z(this,J))===null||Ge===void 0||Ge.moveElementInDOM(this.div,_e.div,_e.contentDiv,!0)}addToAnnotationStorage(_e){!_e.isEmpty()&&!this.annotationStorage.has(_e.id)&&this.annotationStorage.setValue(_e.id,_e)}addOrRebuild(_e){_e.needsToBeRebuilt()?_e.rebuild():this.add(_e)}addANewEditor(_e){const Ge=()=>{this.addOrRebuild(_e)},Ae=()=>{_e.remove()};this.addCommands({cmd:Ge,undo:Ae,mustExec:!0})}addUndoableEditor(_e){const Ge=()=>{this.addOrRebuild(_e)},Ae=()=>{_e.remove()};this.addCommands({cmd:Ge,undo:Ae,mustExec:!1})}getNextId(){return z(this,se).getId()}deserialize(_e){switch(_e.annotationType){case V.AnnotationEditorType.FREETEXT:return q.FreeTextEditor.deserialize(_e,this);case V.AnnotationEditorType.INK:return $.InkEditor.deserialize(_e,this)}return null}setSelected(_e){z(this,se).setSelected(_e)}toggleSelected(_e){z(this,se).toggleSelected(_e)}isSelected(_e){return z(this,se).isSelected(_e)}unselect(_e){z(this,se).unselect(_e)}pointerup(_e){const Ge=G.KeyboardManager.platform.isMac;if(!(_e.button!==0||_e.ctrlKey&&Ge)&&_e.target===this.div&&z(this,ce)){if(ae(this,ce,!1),!z(this,W)){ae(this,W,!0);return}K(this,Ee,ye).call(this,_e)}}pointerdown(_e){const Ge=G.KeyboardManager.platform.isMac;if(_e.button!==0||_e.ctrlKey&&Ge||_e.target!==this.div)return;ae(this,ce,!0);const Ae=z(this,se).getActive();ae(this,W,!Ae||Ae.isEmpty())}drop(_e){const Ge=_e.dataTransfer.getData("text/plain"),Ae=z(this,se).getEditor(Ge);if(!Ae)return;_e.preventDefault(),_e.dataTransfer.dropEffect="move",K(this,oe,fe).call(this,Ae);const Ne=this.div.getBoundingClientRect(),Ze=_e.clientX-Ne.x,ze=_e.clientY-Ne.y;Ae.translate(Ze-Ae.startX,ze-Ae.startY),this.moveEditorInDOM(Ae),Ae.div.focus()}dragover(_e){_e.preventDefault()}destroy(){var _e;((_e=z(this,se).getActive())===null||_e===void 0?void 0:_e.parent)===this&&z(this,se).setActiveEditor(null);for(const Ae of z(this,Q).values()){var Ge;(Ge=z(this,J))===null||Ge===void 0||Ge.removePointerInTextLayer(Ae.contentDiv),Ae.isAttachedToDOM=!1,Ae.div.remove(),Ae.parent=null}this.div=null,z(this,Q).clear(),z(this,se).removeLayer(this)}render(_e){this.viewport=_e.viewport,(0,G.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const Ge of z(this,se).getEditors(this.pageIndex))this.add(Ge);this.updateMode()}update(_e){this.viewport=_e.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[_e,Ge,Ae,Ne]=this.viewport.viewBox,Ze=Ae-_e,ze=Ne-Ge;return[Ze,ze]}get viewportBaseDimensions(){const{width:_e,height:Ge,rotation:Ae}=this.viewport;return Ae%180===0?[_e,Ge]:[Ge,_e]}setDimensions(){const{width:_e,height:Ge,rotation:Ae}=this.viewport,Ne=Ae%180!==0,Ze=Math.floor(_e)+"px",ze=Math.floor(Ge)+"px";this.div.style.width=Ne?ze:Ze,this.div.style.height=Ne?Ze:ze,this.div.setAttribute("data-main-rotation",Ae)}}m.AnnotationEditorLayer=xe;function fe(pe){var _e;pe.parent!==this&&(this.attach(pe),pe.pageIndex=this.pageIndex,(_e=pe.parent)===null||_e===void 0||_e.detach(pe),pe.parent=this,pe.div&&pe.isAttachedToDOM&&(pe.div.remove(),this.div.append(pe.div)))}function ve(pe){switch(z(this,se).getMode()){case V.AnnotationEditorType.FREETEXT:return new q.FreeTextEditor(pe);case V.AnnotationEditorType.INK:return new $.InkEditor(pe)}return null}function ye(pe){const _e=this.getNextId(),Ge=K(this,me,ve).call(this,{parent:this,id:_e,x:pe.offsetX,y:pe.offsetY});return Ge&&this.add(Ge),Ge}function Ce(){ae(this,de,!0);for(const pe of z(this,Q).values())pe.isEmpty()&&pe.remove();ae(this,de,!1)}B(xe,"_initialized",!1)},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.FreeTextEditor=void 0;var G=M(1),V=M(132),q=M(131);function $(ye,Ce){R(ye,Ce),Ce.add(ye)}function D(ye,Ce,pe){return Ce in ye?Object.defineProperty(ye,Ce,{value:pe,enumerable:!0,configurable:!0,writable:!0}):ye[Ce]=pe,ye}function B(ye,Ce,pe){R(ye,Ce),Ce.set(ye,pe)}function R(ye,Ce){if(Ce.has(ye))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(ye,Ce){var pe=ae(ye,Ce,"get");return K(ye,pe)}function K(ye,Ce){return Ce.get?Ce.get.call(ye):Ce.value}function z(ye,Ce,pe){if(!Ce.has(ye))throw new TypeError("attempted to get private field on non-instance");return pe}function e(ye,Ce,pe){var _e=ae(ye,Ce,"set");return ie(ye,_e,pe),pe}function ae(ye,Ce,pe){if(!Ce.has(ye))throw new TypeError("attempted to "+pe+" private field on non-instance");return Ce.get(ye)}function ie(ye,Ce,pe){if(Ce.set)Ce.set.call(ye,pe);else{if(!Ce.writable)throw new TypeError("attempted to set read only private field");Ce.value=pe}}var he=new WeakMap,J=new WeakMap,W=new WeakMap,X=new WeakMap,L=new WeakMap,Q=new WeakMap,ce=new WeakMap,de=new WeakSet,se=new WeakSet,oe=new WeakSet,me=new WeakSet;class Ee extends q.AnnotationEditor{constructor(Ce){super({...Ce,name:"freeTextEditor"}),$(this,me),$(this,oe),$(this,se),$(this,de),B(this,he,{writable:!0,value:this.editorDivBlur.bind(this)}),B(this,J,{writable:!0,value:this.editorDivFocus.bind(this)}),B(this,W,{writable:!0,value:this.editorDivKeydown.bind(this)}),B(this,X,{writable:!0,value:void 0}),B(this,L,{writable:!0,value:""}),B(this,Q,{writable:!0,value:!1}),B(this,ce,{writable:!0,value:void 0}),e(this,X,Ce.color||Ee._defaultColor||q.AnnotationEditor._defaultLineColor),e(this,ce,Ce.fontSize||Ee._defaultFontSize)}static initialize(Ce){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map(_e=>[_e,Ce.get(_e)]));const pe=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(pe.getPropertyValue("--freetext-padding"))}static updateDefaultParams(Ce,pe){switch(Ce){case G.AnnotationEditorParamsType.FREETEXT_SIZE:Ee._defaultFontSize=pe;break;case G.AnnotationEditorParamsType.FREETEXT_COLOR:Ee._defaultColor=pe;break}}updateParams(Ce,pe){switch(Ce){case G.AnnotationEditorParamsType.FREETEXT_SIZE:z(this,de,ke).call(this,pe);break;case G.AnnotationEditorParamsType.FREETEXT_COLOR:z(this,se,xe).call(this,pe);break}}static get defaultPropertiesToUpdate(){return[[G.AnnotationEditorParamsType.FREETEXT_SIZE,Ee._defaultFontSize],[G.AnnotationEditorParamsType.FREETEXT_COLOR,Ee._defaultColor||q.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[G.AnnotationEditorParamsType.FREETEXT_SIZE,U(this,ce)],[G.AnnotationEditorParamsType.FREETEXT_COLOR,U(this,X)]]}getInitialTranslation(){return[-Ee._internalPadding*this.parent.scaleFactor,-(Ee._internalPadding+U(this,ce))*this.parent.scaleFactor]}rebuild(){super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(G.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",U(this,W)),this.editorDiv.addEventListener("focus",U(this,J)),this.editorDiv.addEventListener("blur",U(this,he)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",U(this,W)),this.editorDiv.removeEventListener("focus",U(this,J)),this.editorDiv.removeEventListener("blur",U(this,he)),this.div.focus(),this.isEditing=!1)}focusin(Ce){super.focusin(Ce),Ce.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}commit(){super.commit(),U(this,Q)||(e(this,Q,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),e(this,L,z(this,oe,fe).call(this).trimEnd()),z(this,me,ve).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(Ce){this.enableEditMode(),this.editorDiv.focus()}keydown(Ce){Ce.target===this.div&&Ce.key==="Enter"&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(Ce){Ee._keyboardManager.exec(this,Ce)}editorDivFocus(Ce){this.isEditing=!0}editorDivBlur(Ce){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let Ce,pe;this.width&&(Ce=this.x,pe=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",`${this.id}-editor`),this.enableEditing(),Ee._l10nPromise.get("editor_free_text_aria_label").then(Ge=>{var Ae;return(Ae=this.editorDiv)===null||Ae===void 0?void 0:Ae.setAttribute("aria-label",Ge)}),Ee._l10nPromise.get("free_text_default_content").then(Ge=>{var Ae;return(Ae=this.editorDiv)===null||Ae===void 0?void 0:Ae.setAttribute("default-content",Ge)}),this.editorDiv.contentEditable=!0;const{style:_e}=this.editorDiv;if(_e.fontSize=`calc(${U(this,ce)}px * var(--scale-factor))`,_e.color=U(this,X),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,V.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[Ge,Ae]=this.parent.viewportBaseDimensions;this.setAt(Ce*Ge,pe*Ae,this.width*Ge,this.height*Ae);for(const Ne of U(this,L).split(`
`)){const Ze=document.createElement("div");Ze.append(Ne?document.createTextNode(Ne):document.createElement("br")),this.editorDiv.append(Ze)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(Ce,pe){const _e=super.deserialize(Ce,pe);return e(_e,ce,Ce.fontSize),e(_e,X,G.Util.makeHexColor(...Ce.color)),e(_e,L,Ce.value),_e}serialize(){if(this.isEmpty())return null;const Ce=Ee._internalPadding*this.parent.scaleFactor,pe=this.getRect(Ce,Ce),_e=q.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:G.AnnotationEditorType.FREETEXT,color:_e,fontSize:U(this,ce),value:U(this,L),pageIndex:this.parent.pageIndex,rect:pe,rotation:this.rotation}}}m.FreeTextEditor=Ee;function ke(ye){const Ce=_e=>{this.editorDiv.style.fontSize=`calc(${_e}px * var(--scale-factor))`,this.translate(0,-(_e-U(this,ce))*this.parent.scaleFactor),e(this,ce,_e),z(this,me,ve).call(this)},pe=U(this,ce);this.parent.addCommands({cmd:()=>{Ce(ye)},undo:()=>{Ce(pe)},mustExec:!0,type:G.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function xe(ye){const Ce=U(this,X);this.parent.addCommands({cmd:()=>{e(this,X,ye),this.editorDiv.style.color=ye},undo:()=>{e(this,X,Ce),this.editorDiv.style.color=Ce},mustExec:!0,type:G.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function fe(){const ye=this.editorDiv.getElementsByTagName("div");if(ye.length===0)return this.editorDiv.innerText;const Ce=[];for(let pe=0,_e=ye.length;pe<_e;pe++){const Ae=ye[pe].firstChild;(Ae==null?void 0:Ae.nodeName)==="#text"?Ce.push(Ae.data):Ce.push("")}return Ce.join(`
`)}function ve(){const[ye,Ce]=this.parent.viewportBaseDimensions,pe=this.div.getBoundingClientRect();this.width=pe.width/ye,this.height=pe.height/Ce}D(Ee,"_freeTextDefaultContent",""),D(Ee,"_l10nPromise",void 0),D(Ee,"_internalPadding",0),D(Ee,"_defaultColor",null),D(Ee,"_defaultFontSize",10),D(Ee,"_keyboardManager",new V.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],Ee.prototype.commitOrRemove]])),D(Ee,"_type","freetext")},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.InkEditor=void 0,Object.defineProperty(m,"fitCurve",{enumerable:!0,get:function(){return q.fitCurve}});var G=M(1),V=M(131),q=M(150),$=M(132);function D(Bt,It){U(Bt,It),It.add(Bt)}function B(Bt,It,Dt){return It in Bt?Object.defineProperty(Bt,It,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Bt[It]=Dt,Bt}function R(Bt,It,Dt){U(Bt,It),It.set(Bt,Dt)}function U(Bt,It){if(It.has(Bt))throw new TypeError("Cannot initialize the same private elements twice on an object")}function K(Bt,It,Dt){return z(Bt,It),Dt}function z(Bt,It){if(Bt!==It)throw new TypeError("Private static access of wrong provenance")}function e(Bt,It,Dt){var Zt=he(Bt,It,"set");return ae(Bt,Zt,Dt),Dt}function ae(Bt,It,Dt){if(It.set)It.set.call(Bt,Dt);else{if(!It.writable)throw new TypeError("attempted to set read only private field");It.value=Dt}}function ie(Bt,It){var Dt=he(Bt,It,"get");return J(Bt,Dt)}function he(Bt,It,Dt){if(!It.has(Bt))throw new TypeError("attempted to "+Dt+" private field on non-instance");return It.get(Bt)}function J(Bt,It){return It.get?It.get.call(Bt):It.value}function W(Bt,It,Dt){if(!It.has(Bt))throw new TypeError("attempted to get private field on non-instance");return Dt}const X=16;var L=new WeakMap,Q=new WeakMap,ce=new WeakMap,de=new WeakMap,se=new WeakMap,oe=new WeakMap,me=new WeakMap,Ee=new WeakMap,ke=new WeakMap,xe=new WeakMap,fe=new WeakMap,ve=new WeakMap,ye=new WeakMap,Ce=new WeakMap,pe=new WeakSet,_e=new WeakSet,Ge=new WeakSet,Ae=new WeakSet,Ne=new WeakSet,Ze=new WeakSet,ze=new WeakSet,Te=new WeakSet,Fe=new WeakSet,Pe=new WeakSet,we=new WeakSet,Ie=new WeakSet,Be=new WeakSet,Ke=new WeakSet,Ve=new WeakSet,je=new WeakSet,Le=new WeakSet,et=new WeakSet,Qe=new WeakSet,Ue=new WeakSet,$e=new WeakSet,Ye=new WeakSet;class tt extends V.AnnotationEditor{constructor(It){super({...It,name:"inkEditor"}),D(this,Ye),D(this,$e),D(this,Ue),D(this,Qe),D(this,et),D(this,Le),D(this,je),D(this,Ve),D(this,Ke),D(this,Be),D(this,Ie),D(this,we),D(this,Pe),D(this,Fe),D(this,Te),D(this,ze),D(this,Ze),D(this,Ne),D(this,Ae),D(this,Ge),D(this,_e),D(this,pe),R(this,L,{writable:!0,value:0}),R(this,Q,{writable:!0,value:0}),R(this,ce,{writable:!0,value:0}),R(this,de,{writable:!0,value:this.canvasPointermove.bind(this)}),R(this,se,{writable:!0,value:this.canvasPointerleave.bind(this)}),R(this,oe,{writable:!0,value:this.canvasPointerup.bind(this)}),R(this,me,{writable:!0,value:this.canvasPointerdown.bind(this)}),R(this,Ee,{writable:!0,value:!1}),R(this,ke,{writable:!0,value:!1}),R(this,xe,{writable:!0,value:null}),R(this,fe,{writable:!0,value:null}),R(this,ve,{writable:!0,value:0}),R(this,ye,{writable:!0,value:0}),R(this,Ce,{writable:!0,value:null}),this.color=It.color||null,this.thickness=It.thickness||null,this.opacity=It.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(It){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map(Dt=>[Dt,It.get(Dt)]))}static updateDefaultParams(It,Dt){switch(It){case G.AnnotationEditorParamsType.INK_THICKNESS:tt._defaultThickness=Dt;break;case G.AnnotationEditorParamsType.INK_COLOR:tt._defaultColor=Dt;break;case G.AnnotationEditorParamsType.INK_OPACITY:tt._defaultOpacity=Dt/100;break}}updateParams(It,Dt){switch(It){case G.AnnotationEditorParamsType.INK_THICKNESS:W(this,pe,ot).call(this,Dt);break;case G.AnnotationEditorParamsType.INK_COLOR:W(this,_e,st).call(this,Dt);break;case G.AnnotationEditorParamsType.INK_OPACITY:W(this,Ge,dt).call(this,Dt);break}}static get defaultPropertiesToUpdate(){return[[G.AnnotationEditorParamsType.INK_THICKNESS,tt._defaultThickness],[G.AnnotationEditorParamsType.INK_COLOR,tt._defaultColor||V.AnnotationEditor._defaultLineColor],[G.AnnotationEditorParamsType.INK_OPACITY,Math.round(tt._defaultOpacity*100)]]}get propertiesToUpdate(){var It;return[[G.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||tt._defaultThickness],[G.AnnotationEditorParamsType.INK_COLOR,this.color||tt._defaultColor||V.AnnotationEditor._defaultLineColor],[G.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*((It=this.opacity)!==null&&It!==void 0?It:tt._defaultOpacity))]]}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(W(this,we,bt).call(this),W(this,Ie,pt).call(this)),this.isAttachedToDOM||(this.parent.add(this),W(this,Be,wt).call(this)),W(this,$e,Jt).call(this))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,ie(this,fe).disconnect(),e(this,fe,null),super.remove())}enableEditMode(){ie(this,Ee)||this.canvas===null||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",ie(this,me)),this.canvas.addEventListener("pointerup",ie(this,oe)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",ie(this,me)),this.canvas.removeEventListener("pointerup",ie(this,oe)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){ie(this,Ee)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),e(this,Ee,!0),this.div.classList.add("disabled"),W(this,$e,Jt).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(It){super.focusin(It),this.enableEditMode()}canvasPointerdown(It){It.button!==0||!this.isInEditMode()||ie(this,Ee)||(this.setInForeground(),It.type!=="mouse"&&this.div.focus(),It.stopPropagation(),this.canvas.addEventListener("pointerleave",ie(this,se)),this.canvas.addEventListener("pointermove",ie(this,de)),W(this,Ze,ut).call(this,It.offsetX,It.offsetY))}canvasPointermove(It){It.stopPropagation(),W(this,ze,rt).call(this,It.offsetX,It.offsetY)}canvasPointerup(It){It.button===0&&this.isInEditMode()&&this.currentPath.length!==0&&(It.stopPropagation(),W(this,Pe,St).call(this,It),this.setInBackground())}canvasPointerleave(It){W(this,Pe,St).call(this,It),this.setInBackground()}render(){if(this.div)return this.div;let It,Dt;this.width&&(It=this.x,Dt=this.y),super.render(),tt._l10nPromise.get("editor_ink_aria_label").then(kr=>{var cr;return(cr=this.div)===null||cr===void 0?void 0:cr.setAttribute("aria-label",kr)});const[Zt,gr,fr,Dr]=W(this,Ae,ct).call(this);if(this.setAt(Zt,gr,0,0),this.setDims(fr,Dr),W(this,we,bt).call(this),this.width){const[kr,cr]=this.parent.viewportBaseDimensions;this.setAt(It*kr,Dt*cr,this.width*kr,this.height*cr),e(this,ke,!0),W(this,Be,wt).call(this),this.setDims(this.width*kr,this.height*cr),W(this,Fe,Je).call(this),W(this,Ye,er).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return W(this,Ie,pt).call(this),this.div}setDimensions(It,Dt){const Zt=Math.round(It),gr=Math.round(Dt);if(ie(this,ve)===Zt&&ie(this,ye)===gr)return;e(this,ve,Zt),e(this,ye,gr),this.canvas.style.visibility="hidden",ie(this,L)&&Math.abs(ie(this,L)-It/Dt)>.01&&(Dt=Math.ceil(It/ie(this,L)),this.setDims(It,Dt));const[fr,Dr]=this.parent.viewportBaseDimensions;this.width=It/fr,this.height=Dt/Dr,ie(this,Ee)&&W(this,Ke,Pt).call(this,It,Dt),W(this,Be,wt).call(this),W(this,Fe,Je).call(this),this.canvas.style.visibility="visible"}static deserialize(It,Dt){const Zt=super.deserialize(It,Dt);Zt.thickness=It.thickness,Zt.color=G.Util.makeHexColor(...It.color),Zt.opacity=It.opacity;const[gr,fr]=Dt.pageDimensions,Dr=Zt.width*gr,kr=Zt.height*fr,cr=Dt.scaleFactor,Ar=It.thickness/2;e(Zt,L,Dr/kr),e(Zt,Ee,!0),e(Zt,ve,Math.round(Dr)),e(Zt,ye,Math.round(kr));for(const{bezier:vt}of It.paths){const Xt=[];Zt.paths.push(Xt);let At=cr*(vt[0]-Ar),zt=cr*(kr-vt[1]-Ar);for(let br=2,Ur=vt.length;br<Ur;br+=6){const un=cr*(vt[br]-Ar),sr=cr*(kr-vt[br+1]-Ar),ur=cr*(vt[br+2]-Ar),Cr=cr*(kr-vt[br+3]-Ar),Tr=cr*(vt[br+4]-Ar),jt=cr*(kr-vt[br+5]-Ar);Xt.push([[At,zt],[un,sr],[ur,Cr],[Tr,jt]]),At=Tr,zt=jt}const Br=K(this,tt,Vt).call(this,Xt);Zt.bezierPath2D.push(Br)}const yt=W(Zt,Qe,Yt).call(Zt);return e(Zt,ce,Math.max(X,yt[2]-yt[0])),e(Zt,Q,Math.max(X,yt[3]-yt[1])),W(Zt,Ke,Pt).call(Zt,Dr,kr),Zt}serialize(){if(this.isEmpty())return null;const It=this.getRect(0,0),Dt=this.rotation%180===0?It[3]-It[1]:It[2]-It[0],Zt=V.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:G.AnnotationEditorType.INK,color:Zt,thickness:this.thickness,opacity:this.opacity,paths:W(this,je,Wt).call(this,this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,Dt),pageIndex:this.parent.pageIndex,rect:It,rotation:this.rotation}}}m.InkEditor=tt;function ot(Bt){const It=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=Bt,W(this,$e,Jt).call(this)},undo:()=>{this.thickness=It,W(this,$e,Jt).call(this)},mustExec:!0,type:G.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function st(Bt){const It=this.color;this.parent.addCommands({cmd:()=>{this.color=Bt,W(this,Fe,Je).call(this)},undo:()=>{this.color=It,W(this,Fe,Je).call(this)},mustExec:!0,type:G.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function dt(Bt){Bt/=100;const It=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=Bt,W(this,Fe,Je).call(this)},undo:()=>{this.opacity=It,W(this,Fe,Je).call(this)},mustExec:!0,type:G.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function ct(){const{width:Bt,height:It,rotation:Dt}=this.parent.viewport;switch(Dt){case 90:return[0,Bt,Bt,It];case 180:return[Bt,It,Bt,It];case 270:return[It,0,Bt,It];default:return[0,0,Bt,It]}}function mt(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle=`${this.color}${(0,$.opacityToHex)(this.opacity)}`}function ut(Bt,It){if(this.isEditing=!0,!ie(this,ke)){var Dt;e(this,ke,!0),W(this,Be,wt).call(this),this.thickness||(this.thickness=tt._defaultThickness),this.color||(this.color=tt._defaultColor||V.AnnotationEditor._defaultLineColor),(Dt=this.opacity)!==null&&Dt!==void 0||(this.opacity=tt._defaultOpacity)}this.currentPath.push([Bt,It]),e(this,xe,null),W(this,Ne,mt).call(this),this.ctx.beginPath(),this.ctx.moveTo(Bt,It),e(this,Ce,()=>{ie(this,Ce)&&(ie(this,xe)&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):W(this,Fe,Je).call(this),this.ctx.lineTo(...ie(this,xe)),e(this,xe,null),this.ctx.stroke()),window.requestAnimationFrame(ie(this,Ce)))}),window.requestAnimationFrame(ie(this,Ce))}function rt(Bt,It){const[Dt,Zt]=this.currentPath.at(-1);Bt===Dt&&It===Zt||(this.currentPath.push([Bt,It]),e(this,xe,[Bt,It]))}function He(Bt,It){this.ctx.closePath(),e(this,Ce,null),Bt=Math.min(Math.max(Bt,0),this.canvas.width),It=Math.min(Math.max(It,0),this.canvas.height);const[Dt,Zt]=this.currentPath.at(-1);(Bt!==Dt||It!==Zt)&&this.currentPath.push([Bt,It]);let gr;if(this.currentPath.length!==1)gr=(0,q.fitCurve)(this.currentPath,30,null);else{const cr=[Bt,It];gr=[[cr,cr.slice(),cr.slice(),cr]]}const fr=K(tt,tt,Vt).call(tt,gr);this.currentPath.length=0;const Dr=()=>{this.paths.push(gr),this.bezierPath2D.push(fr),this.rebuild()},kr=()=>{this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(W(this,we,bt).call(this),W(this,Ie,pt).call(this)),W(this,$e,Jt).call(this))};this.parent.addCommands({cmd:Dr,undo:kr,mustExec:!0})}function Je(){if(this.isEmpty()){W(this,Ve,Nt).call(this);return}W(this,Ne,mt).call(this);const{canvas:Bt,ctx:It}=this;It.setTransform(1,0,0,1,0,0),It.clearRect(0,0,Bt.width,Bt.height),W(this,Ve,Nt).call(this);for(const Dt of this.bezierPath2D)It.stroke(Dt)}function St(Bt){W(this,Te,He).call(this,Bt.offsetX,Bt.offsetY),this.canvas.removeEventListener("pointerleave",ie(this,se)),this.canvas.removeEventListener("pointermove",ie(this,de)),this.parent.addToAnnotationStorage(this)}function bt(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",tt._l10nPromise.get("editor_ink_canvas_aria_label").then(Bt=>{var It;return(It=this.canvas)===null||It===void 0?void 0:It.setAttribute("aria-label",Bt)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function pt(){e(this,fe,new ResizeObserver(Bt=>{const It=Bt[0].contentRect;It.width&&It.height&&this.setDimensions(It.width,It.height)})),ie(this,fe).observe(this.div)}function wt(){if(!ie(this,ke))return;const[Bt,It]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*Bt),this.canvas.height=Math.ceil(this.height*It),W(this,Ve,Nt).call(this)}function Pt(Bt,It){const Dt=W(this,Ue,Ft).call(this),Zt=(Bt-Dt)/ie(this,ce),gr=(It-Dt)/ie(this,Q);this.scaleFactor=Math.min(Zt,gr)}function Nt(){const Bt=W(this,Ue,Ft).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Bt,this.translationY*this.scaleFactor+Bt)}function Vt(Bt){const It=new Path2D;for(let Dt=0,Zt=Bt.length;Dt<Zt;Dt++){const[gr,fr,Dr,kr]=Bt[Dt];Dt===0&&It.moveTo(...gr),It.bezierCurveTo(fr[0],fr[1],Dr[0],Dr[1],kr[0],kr[1])}return It}function Wt(Bt,It,Dt,Zt){const fr=[],Dr=this.thickness/2;let kr,cr;for(const Ar of this.paths){kr=[],cr=[];for(let yt=0,vt=Ar.length;yt<vt;yt++){const[Xt,At,zt,Br]=Ar[yt],br=Bt*(Xt[0]+It)+Dr,Ur=Zt-Bt*(Xt[1]+Dt)-Dr,un=Bt*(At[0]+It)+Dr,sr=Zt-Bt*(At[1]+Dt)-Dr,ur=Bt*(zt[0]+It)+Dr,Cr=Zt-Bt*(zt[1]+Dt)-Dr,Tr=Bt*(Br[0]+It)+Dr,jt=Zt-Bt*(Br[1]+Dt)-Dr;yt===0&&(kr.push(br,Ur),cr.push(br,Ur)),kr.push(un,sr,ur,Cr,Tr,jt),W(this,Le,Mt).call(this,br,Ur,un,sr,ur,Cr,Tr,jt,4,cr)}fr.push({bezier:kr,points:cr})}return fr}function Mt(Bt,It,Dt,Zt,gr,fr,Dr,kr,cr,Ar){if(W(this,et,$t).call(this,Bt,It,Dt,Zt,gr,fr,Dr,kr)){Ar.push(Dr,kr);return}for(let yt=1;yt<cr-1;yt++){const vt=yt/cr,Xt=1-vt;let At=vt*Bt+Xt*Dt,zt=vt*It+Xt*Zt,Br=vt*Dt+Xt*gr,br=vt*Zt+Xt*fr;const Ur=vt*gr+Xt*Dr,un=vt*fr+Xt*kr;At=vt*At+Xt*Br,zt=vt*zt+Xt*br,Br=vt*Br+Xt*Ur,br=vt*br+Xt*un,At=vt*At+Xt*Br,zt=vt*zt+Xt*br,Ar.push(At,zt)}Ar.push(Dr,kr)}function $t(Bt,It,Dt,Zt,gr,fr,Dr,kr){const Ar=(3*Dt-2*Bt-Dr)**2,yt=(3*Zt-2*It-kr)**2,vt=(3*gr-Bt-2*Dr)**2,Xt=(3*fr-It-2*kr)**2;return Math.max(Ar,vt)+Math.max(yt,Xt)<=10}function Yt(){let Bt=1/0,It=-1/0,Dt=1/0,Zt=-1/0;for(const gr of this.paths)for(const[fr,Dr,kr,cr]of gr){const Ar=G.Util.bezierBoundingBox(...fr,...Dr,...kr,...cr);Bt=Math.min(Bt,Ar[0]),Dt=Math.min(Dt,Ar[1]),It=Math.max(It,Ar[2]),Zt=Math.max(Zt,Ar[3])}return[Bt,Dt,It,Zt]}function Ft(){return ie(this,Ee)?Math.ceil(this.thickness*this.parent.scaleFactor):0}function Jt(){let Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.isEmpty())return;if(!ie(this,Ee)){W(this,Fe,Je).call(this);return}const It=W(this,Qe,Yt).call(this),Dt=W(this,Ue,Ft).call(this);e(this,ce,Math.max(X,It[2]-It[0])),e(this,Q,Math.max(X,It[3]-It[1]));const Zt=Math.ceil(Dt+ie(this,ce)*this.scaleFactor),gr=Math.ceil(Dt+ie(this,Q)*this.scaleFactor),[fr,Dr]=this.parent.viewportBaseDimensions;this.width=Zt/fr,this.height=gr/Dr,e(this,L,Zt/gr),W(this,Ye,er).call(this);const kr=this.translationX,cr=this.translationY;this.translationX=-It[0],this.translationY=-It[1],W(this,Be,wt).call(this),W(this,Fe,Je).call(this),e(this,ve,Zt),e(this,ye,gr),this.setDims(Zt,gr);const Ar=Bt?Dt/this.scaleFactor/2:0;this.translate(kr-this.translationX-Ar,cr-this.translationY-Ar)}function er(){const{style:Bt}=this.div;ie(this,L)>=1?(Bt.minHeight=`${X}px`,Bt.minWidth=`${Math.round(ie(this,L)*X)}px`):(Bt.minWidth=`${X}px`,Bt.minHeight=`${Math.round(X/ie(this,L))}px`)}B(tt,"_defaultColor",null),B(tt,"_defaultOpacity",1),B(tt,"_defaultThickness",1),B(tt,"_l10nPromise",void 0),B(tt,"_type","ink")},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.fitCurve=void 0;const G=M(151);m.fitCurve=G},k=>{function m(ae,ie,he){if(!Array.isArray(ae))throw new TypeError("First argument should be an array");if(ae.forEach(L=>{if(!Array.isArray(L)||L.some(Q=>typeof Q!="number")||L.length!==ae[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}),ae=ae.filter((L,Q)=>Q===0||!L.every((ce,de)=>ce===ae[Q-1][de])),ae.length<2)return[];const J=ae.length,W=K(ae[1],ae[0]),X=K(ae[J-2],ae[J-1]);return M(ae,W,X,ie,he)}function M(ae,ie,he,J,W){var L,Q,ce,de,se,oe,me,Ee,ke,xe,fe,ve,ye;if(ae.length===2)return ve=z.vectorLen(z.subtract(ae[0],ae[1]))/3,L=[ae[0],z.addArrays(ae[0],z.mulItems(ie,ve)),z.addArrays(ae[1],z.mulItems(he,ve)),ae[1]],[L];if(Q=D(ae),[L,de,oe]=G(ae,Q,Q,ie,he,W),de===0||de<J)return[L];if(de<J*J)for(ce=Q,se=de,me=oe,ye=0;ye<20;ye++){if(ce=q(L,ae,ce),[L,de,oe]=G(ae,Q,ce,ie,he,W),de<J)return[L];if(oe===me){let Ce=de/se;if(Ce>.9999&&Ce<1.0001)break}se=de,me=oe}return fe=[],Ee=z.subtract(ae[oe-1],ae[oe+1]),Ee.every(Ce=>Ce===0)&&(Ee=z.subtract(ae[oe-1],ae[oe]),[Ee[0],Ee[1]]=[-Ee[1],Ee[0]]),ke=z.normalize(Ee),xe=z.mulItems(ke,-1),fe=fe.concat(M(ae.slice(0,oe+1),ie,ke,J,W)),fe=fe.concat(M(ae.slice(oe),xe,he,J,W)),fe}function G(ae,ie,he,J,W,X){var L,Q,ce;return L=V(ae,he,J,W),[Q,ce]=B(ae,L,ie),X&&X({bez:L,points:ae,params:ie,maxErr:Q,maxPoint:ce}),[L,Q,ce]}function V(ae,ie,he,J){var W,X,L,Q,ce,de,se,oe,me,Ee,ke,xe,fe,ve,ye,Ce,pe,_e=ae[0],Ge=ae[ae.length-1];for(W=[_e,null,null,Ge],X=z.zeros_Xx2x2(ie.length),fe=0,ve=ie.length;fe<ve;fe++)Ce=ie[fe],pe=1-Ce,L=X[fe],L[0]=z.mulItems(he,3*Ce*(pe*pe)),L[1]=z.mulItems(J,3*pe*(Ce*Ce));for(Q=[[0,0],[0,0]],ce=[0,0],fe=0,ve=ae.length;fe<ve;fe++)Ce=ie[fe],L=X[fe],Q[0][0]+=z.dot(L[0],L[0]),Q[0][1]+=z.dot(L[0],L[1]),Q[1][0]+=z.dot(L[0],L[1]),Q[1][1]+=z.dot(L[1],L[1]),ye=z.subtract(ae[fe],e.q([_e,_e,Ge,Ge],Ce)),ce[0]+=z.dot(L[0],ye),ce[1]+=z.dot(L[1],ye);return de=Q[0][0]*Q[1][1]-Q[1][0]*Q[0][1],se=Q[0][0]*ce[1]-Q[1][0]*ce[0],oe=ce[0]*Q[1][1]-ce[1]*Q[0][1],me=de===0?0:oe/de,Ee=de===0?0:se/de,xe=z.vectorLen(z.subtract(_e,Ge)),ke=1e-6*xe,me<ke||Ee<ke?(W[1]=z.addArrays(_e,z.mulItems(he,xe/3)),W[2]=z.addArrays(Ge,z.mulItems(J,xe/3))):(W[1]=z.addArrays(_e,z.mulItems(he,me)),W[2]=z.addArrays(Ge,z.mulItems(J,Ee))),W}function q(ae,ie,he){return he.map((J,W)=>$(ae,ie[W],J))}function $(ae,ie,he){var J=z.subtract(e.q(ae,he),ie),W=e.qprime(ae,he),X=z.mulMatrix(J,W),L=z.sum(z.squareItems(W))+2*z.mulMatrix(J,e.qprimeprime(ae,he));return L===0?he:he-X/L}function D(ae){var ie=[],he,J,W;return ae.forEach((X,L)=>{he=L?J+z.vectorLen(z.subtract(X,W)):0,ie.push(he),J=he,W=X}),ie=ie.map(X=>X/J),ie}function B(ae,ie,he){var J,W,X,L,Q,ce,de,se;W=0,X=Math.floor(ae.length/2);const oe=R(ie,10);for(Q=0,ce=ae.length;Q<ce;Q++)de=ae[Q],se=U(ie,he[Q],oe,10),L=z.subtract(e.q(ie,se),de),J=L[0]*L[0]+L[1]*L[1],J>W&&(W=J,X=Q);return[W,X]}var R=function(ae,ie){for(var he,J=[0],W=ae[0],X=0,L=1;L<=ie;L++)he=e.q(ae,L/ie),X+=z.vectorLen(z.subtract(he,W)),J.push(X),W=he;return J=J.map(Q=>Q/X),J};function U(ae,ie,he,J){if(ie<0)return 0;if(ie>1)return 1;for(var W,X,L,Q,ce,de=1;de<=J;de++)if(ie<=he[de]){Q=(de-1)/J,L=de/J,X=he[de-1],W=he[de],ce=(ie-X)/(W-X)*(L-Q)+Q;break}return ce}function K(ae,ie){return z.normalize(z.subtract(ae,ie))}class z{static zeros_Xx2x2(ie){for(var he=[];ie--;)he.push([0,0]);return he}static mulItems(ie,he){return ie.map(J=>J*he)}static mulMatrix(ie,he){return ie.reduce((J,W,X)=>J+W*he[X],0)}static subtract(ie,he){return ie.map((J,W)=>J-he[W])}static addArrays(ie,he){return ie.map((J,W)=>J+he[W])}static addItems(ie,he){return ie.map(J=>J+he)}static sum(ie){return ie.reduce((he,J)=>he+J)}static dot(ie,he){return z.mulMatrix(ie,he)}static vectorLen(ie){return Math.hypot(...ie)}static divItems(ie,he){return ie.map(J=>J/he)}static squareItems(ie){return ie.map(he=>he*he)}static normalize(ie){return this.divItems(ie,this.vectorLen(ie))}}class e{static q(ie,he){var J=1-he,W=z.mulItems(ie[0],J*J*J),X=z.mulItems(ie[1],3*J*J*he),L=z.mulItems(ie[2],3*J*he*he),Q=z.mulItems(ie[3],he*he*he);return z.addArrays(z.addArrays(W,X),z.addArrays(L,Q))}static qprime(ie,he){var J=1-he,W=z.mulItems(z.subtract(ie[1],ie[0]),3*J*J),X=z.mulItems(z.subtract(ie[2],ie[1]),6*J*he),L=z.mulItems(z.subtract(ie[3],ie[2]),3*he*he);return z.addArrays(z.addArrays(W,X),L)}static qprimeprime(ie,he){return z.addArrays(z.mulItems(z.addArrays(z.subtract(ie[2],z.mulItems(ie[1],2)),ie[0]),6*(1-he)),z.mulItems(z.addArrays(z.subtract(ie[3],z.mulItems(ie[2],2)),ie[1]),6*he))}}k.exports=m,k.exports.fitCubic=M,k.exports.createTangent=K},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.AnnotationLayer=void 0;var G=M(1),V=M(133),q=M(130),$=M(153),D=M(154);function B(we,Ie,Be){return R(we,Ie),Be}function R(we,Ie){if(we!==Ie)throw new TypeError("Private static access of wrong provenance")}const U=1e3,K=9,z=new WeakSet;function e(we){return{width:we[2]-we[0],height:we[3]-we[1]}}class ae{static create(Ie){switch(Ie.data.annotationType){case G.AnnotationType.LINK:return new he(Ie);case G.AnnotationType.TEXT:return new J(Ie);case G.AnnotationType.WIDGET:switch(Ie.data.fieldType){case"Tx":return new X(Ie);case"Btn":return Ie.data.radioButton?new Q(Ie):Ie.data.checkBox?new L(Ie):new ce(Ie);case"Ch":return new de(Ie)}return new W(Ie);case G.AnnotationType.POPUP:return new se(Ie);case G.AnnotationType.FREETEXT:return new me(Ie);case G.AnnotationType.LINE:return new Ee(Ie);case G.AnnotationType.SQUARE:return new ke(Ie);case G.AnnotationType.CIRCLE:return new xe(Ie);case G.AnnotationType.POLYLINE:return new fe(Ie);case G.AnnotationType.CARET:return new ye(Ie);case G.AnnotationType.INK:return new Ce(Ie);case G.AnnotationType.POLYGON:return new ve(Ie);case G.AnnotationType.HIGHLIGHT:return new pe(Ie);case G.AnnotationType.UNDERLINE:return new _e(Ie);case G.AnnotationType.SQUIGGLY:return new Ge(Ie);case G.AnnotationType.STRIKEOUT:return new Ae(Ie);case G.AnnotationType.STAMP:return new Ne(Ie);case G.AnnotationType.FILEATTACHMENT:return new Ze(Ie);default:return new ie(Ie)}}}class ie{constructor(Ie){let{isRenderable:Be=!1,ignoreBorder:Ke=!1,createQuadrilaterals:Ve=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.isRenderable=Be,this.data=Ie.data,this.layer=Ie.layer,this.page=Ie.page,this.viewport=Ie.viewport,this.linkService=Ie.linkService,this.downloadManager=Ie.downloadManager,this.imageResourcesPath=Ie.imageResourcesPath,this.renderForms=Ie.renderForms,this.svgFactory=Ie.svgFactory,this.annotationStorage=Ie.annotationStorage,this.enableScripting=Ie.enableScripting,this.hasJSActions=Ie.hasJSActions,this._fieldObjects=Ie.fieldObjects,this._mouseState=Ie.mouseState,Be&&(this.container=this._createContainer(Ke)),Ve&&(this.quadrilaterals=this._createQuadrilaterals(Ke))}_createContainer(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Be=this.data,Ke=this.page,Ve=this.viewport,je=document.createElement("section"),{width:Le,height:et}=e(Be.rect),[Qe,Ue,$e,Ye]=Ve.viewBox,tt=$e-Qe,ot=Ye-Ue;je.setAttribute("data-annotation-id",Be.id);const st=G.Util.normalizeRect([Be.rect[0],Ke.view[3]-Be.rect[1]+Ke.view[1],Be.rect[2],Ke.view[3]-Be.rect[3]+Ke.view[1]]);if(!Ie&&Be.borderStyle.width>0){je.style.borderWidth=`${Be.borderStyle.width}px`;const ct=Be.borderStyle.horizontalCornerRadius,mt=Be.borderStyle.verticalCornerRadius;if(ct>0||mt>0){const rt=`calc(${ct}px * var(--scale-factor)) / calc(${mt}px * var(--scale-factor))`;je.style.borderRadius=rt}else if(this instanceof Q){const rt=`calc(${Le}px * var(--scale-factor)) / calc(${et}px * var(--scale-factor))`;je.style.borderRadius=rt}switch(Be.borderStyle.style){case G.AnnotationBorderStyleType.SOLID:je.style.borderStyle="solid";break;case G.AnnotationBorderStyleType.DASHED:je.style.borderStyle="dashed";break;case G.AnnotationBorderStyleType.BEVELED:(0,G.warn)("Unimplemented border style: beveled");break;case G.AnnotationBorderStyleType.INSET:(0,G.warn)("Unimplemented border style: inset");break;case G.AnnotationBorderStyleType.UNDERLINE:je.style.borderBottomStyle="solid";break}const ut=Be.borderColor||null;ut?je.style.borderColor=G.Util.makeHexColor(ut[0]|0,ut[1]|0,ut[2]|0):je.style.borderWidth=0}je.style.left=`${100*(st[0]-Qe)/tt}%`,je.style.top=`${100*(st[1]-Ue)/ot}%`;const{rotation:dt}=Be;return Be.hasOwnCanvas||dt===0?(je.style.width=`${100*Le/tt}%`,je.style.height=`${100*et/ot}%`):this.setRotation(dt,je),je}setRotation(Ie){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.container;const[Ke,Ve,je,Le]=this.viewport.viewBox,et=je-Ke,Qe=Le-Ve,{width:Ue,height:$e}=e(this.data.rect);let Ye,tt;Ie%180===0?(Ye=100*Ue/et,tt=100*$e/Qe):(Ye=100*$e/et,tt=100*Ue/Qe),Be.style.width=`${Ye}%`,Be.style.height=`${tt}%`,Be.setAttribute("data-main-rotation",(360-Ie)%360)}get _commonActions(){const Ie=(Be,Ke,Ve)=>{const je=Ve.detail[Be];Ve.target.style[Ke]=$.ColorConverters[`${je[0]}_HTML`](je.slice(1))};return(0,G.shadow)(this,"_commonActions",{display:Be=>{const Ke=Be.detail.display%2===1;this.container.style.visibility=Ke?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:Ke,print:Be.detail.display===0||Be.detail.display===3})},print:Be=>{this.annotationStorage.setValue(this.data.id,{print:Be.detail.print})},hidden:Be=>{this.container.style.visibility=Be.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:Be.detail.hidden})},focus:Be=>{setTimeout(()=>Be.target.focus({preventScroll:!1}),0)},userName:Be=>{Be.target.title=Be.detail.userName},readonly:Be=>{Be.detail.readonly?Be.target.setAttribute("readonly",""):Be.target.removeAttribute("readonly")},required:Be=>{this._setRequired(Be.target,Be.detail.required)},bgColor:Be=>{Ie("bgColor","backgroundColor",Be)},fillColor:Be=>{Ie("fillColor","backgroundColor",Be)},fgColor:Be=>{Ie("fgColor","color",Be)},textColor:Be=>{Ie("textColor","color",Be)},borderColor:Be=>{Ie("borderColor","borderColor",Be)},strokeColor:Be=>{Ie("strokeColor","borderColor",Be)},rotation:Be=>{const Ke=Be.detail.rotation;this.setRotation(Ke),this.annotationStorage.setValue(this.data.id,{rotation:Ke})}})}_dispatchEventFromSandbox(Ie,Be){const Ke=this._commonActions;for(const Ve of Object.keys(Be.detail)){const je=Ie[Ve]||Ke[Ve];je&&je(Be)}}_setDefaultPropertiesFromJS(Ie){if(!this.enableScripting)return;const Be=this.annotationStorage.getRawValue(this.data.id);if(!Be)return;const Ke=this._commonActions;for(const[Ve,je]of Object.entries(Be)){const Le=Ke[Ve];if(Le){const et={detail:{[Ve]:je},target:Ie};Le(et),delete Be[Ve]}}}_createQuadrilaterals(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.data.quadPoints)return null;const Be=[],Ke=this.data.rect;for(const Ve of this.data.quadPoints)this.data.rect=[Ve[2].x,Ve[2].y,Ve[1].x,Ve[1].y],Be.push(this._createContainer(Ie));return this.data.rect=Ke,Be}_createPopup(Ie,Be){let Ke=this.container;this.quadrilaterals&&(Ie=Ie||this.quadrilaterals,Ke=this.quadrilaterals[0]),Ie||(Ie=document.createElement("div"),Ie.className="popupTriggerArea",Ke.append(Ie));const je=new oe({container:Ke,trigger:Ie,color:Be.color,titleObj:Be.titleObj,modificationDate:Be.modificationDate,contentsObj:Be.contentsObj,richText:Be.richText,hideWrapper:!0}).render();je.style.left="100%",Ke.append(je)}_renderQuadrilaterals(Ie){for(const Be of this.quadrilaterals)Be.className=Ie;return this.quadrilaterals}render(){(0,G.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(Ie){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const Ke=[];if(this._fieldObjects){const Ve=this._fieldObjects[Ie];if(Ve)for(const{page:je,id:Le,exportValues:et}of Ve){if(je===-1||Le===Be)continue;const Qe=typeof et=="string"?et:null,Ue=document.querySelector(`[data-element-id="${Le}"]`);if(Ue&&!z.has(Ue)){(0,G.warn)(`_getElementsByName - element not allowed: ${Le}`);continue}Ke.push({id:Le,exportValue:Qe,domElement:Ue})}return Ke}for(const Ve of document.getElementsByName(Ie)){const{id:je,exportValue:Le}=Ve;je!==Be&&z.has(Ve)&&Ke.push({id:je,exportValue:Le,domElement:Ve})}return Ke}static get platform(){const Ie=typeof navigator<"u"?navigator.platform:"";return(0,G.shadow)(this,"platform",{isWin:Ie.includes("Win"),isMac:Ie.includes("Mac")})}}class he extends ie{constructor(Ie){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(Ie,{isRenderable:!0,ignoreBorder:!!(Be!=null&&Be.ignoreBorder),createQuadrilaterals:!0}),this.isTooltipOnly=Ie.data.isTooltipOnly}render(){const{data:Ie,linkService:Be}=this,Ke=document.createElement("a");Ke.setAttribute("data-element-id",Ie.id);let Ve=!1;return Ie.url?(Be.addLinkAttributes(Ke,Ie.url,Ie.newWindow),Ve=!0):Ie.action?(this._bindNamedAction(Ke,Ie.action),Ve=!0):Ie.dest?(this._bindLink(Ke,Ie.dest),Ve=!0):(Ie.actions&&(Ie.actions.Action||Ie.actions["Mouse Up"]||Ie.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Ke,Ie),Ve=!0),Ie.resetForm?(this._bindResetFormAction(Ke,Ie.resetForm),Ve=!0):this.isTooltipOnly&&!Ve&&(this._bindLink(Ke,""),Ve=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((je,Le)=>{const et=Le===0?Ke:Ke.cloneNode();return je.append(et),je}):(this.container.className="linkAnnotation",Ve&&this.container.append(Ke),this.container)}_bindLink(Ie,Be){Ie.href=this.linkService.getDestinationHash(Be),Ie.onclick=()=>(Be&&this.linkService.goToDestination(Be),!1),(Be||Be==="")&&(Ie.className="internalLink")}_bindNamedAction(Ie,Be){Ie.href=this.linkService.getAnchorUrl(""),Ie.onclick=()=>(this.linkService.executeNamedAction(Be),!1),Ie.className="internalLink"}_bindJSAction(Ie,Be){Ie.href=this.linkService.getAnchorUrl("");const Ke=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const Ve of Object.keys(Be.actions)){const je=Ke.get(Ve);je&&(Ie[je]=()=>{var Le;return(Le=this.linkService.eventBus)===null||Le===void 0||Le.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be.id,name:Ve}}),!1})}Ie.onclick||(Ie.onclick=()=>!1),Ie.className="internalLink"}_bindResetFormAction(Ie,Be){const Ke=Ie.onclick;if(Ke||(Ie.href=this.linkService.getAnchorUrl("")),Ie.className="internalLink",!this._fieldObjects){(0,G.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Ke||(Ie.onclick=()=>!1);return}Ie.onclick=()=>{Ke&&Ke();const{fields:Ve,refs:je,include:Le}=Be,et=[];if(Ve.length!==0||je.length!==0){const Ye=new Set(je);for(const tt of Ve){const ot=this._fieldObjects[tt]||[];for(const{id:st}of ot)Ye.add(st)}for(const tt of Object.values(this._fieldObjects))for(const ot of tt)Ye.has(ot.id)===Le&&et.push(ot)}else for(const Ye of Object.values(this._fieldObjects))et.push(...Ye);const Qe=this.annotationStorage,Ue=[];for(const Ye of et){const{id:tt}=Ye;switch(Ue.push(tt),Ye.type){case"text":{const st=Ye.defaultValue||"";Qe.setValue(tt,{value:st});break}case"checkbox":case"radiobutton":{const st=Ye.defaultValue===Ye.exportValues;Qe.setValue(tt,{value:st});break}case"combobox":case"listbox":{const st=Ye.defaultValue||"";Qe.setValue(tt,{value:st});break}default:continue}const ot=document.querySelector(`[data-element-id="${tt}"]`);if(ot){if(!z.has(ot)){(0,G.warn)(`_bindResetFormAction - element not allowed: ${tt}`);continue}}else continue;ot.dispatchEvent(new Event("resetform"))}if(this.enableScripting){var $e;($e=this.linkService.eventBus)===null||$e===void 0||$e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Ue,name:"ResetForm"}})}return!1}}}class J extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je})}render(){this.container.className="textAnnotation";const Ie=document.createElement("img");return Ie.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",Ie.alt="[{{type}} Annotation]",Ie.dataset.l10nId="text_annotation_type",Ie.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(Ie,this.data),this.container.append(Ie),this.container}}class W extends ie{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(Ie){const{isWin:Be,isMac:Ke}=ie.platform;return Be&&Ie.ctrlKey||Ke&&Ie.metaKey}_setEventListener(Ie,Be,Ke,Ve){Be.includes("mouse")?Ie.addEventListener(Be,je=>{var Le;(Le=this.linkService.eventBus)===null||Le===void 0||Le.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Ke,value:Ve(je),shift:je.shiftKey,modifier:this._getKeyModifier(je)}})}):Ie.addEventListener(Be,je=>{var Le;(Le=this.linkService.eventBus)===null||Le===void 0||Le.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Ke,value:Ve(je)}})})}_setEventListeners(Ie,Be,Ke){for(const[je,Le]of Be){var Ve;(Le==="Action"||(Ve=this.data.actions)!==null&&Ve!==void 0&&Ve[Le])&&this._setEventListener(Ie,je,Le,Ke)}}_setBackgroundColor(Ie){const Be=this.data.backgroundColor||null;Ie.style.backgroundColor=Be===null?"transparent":G.Util.makeHexColor(Be[0],Be[1],Be[2])}_setTextStyle(Ie){const Be=["left","center","right"],{fontColor:Ke}=this.data.defaultAppearanceData,Ve=this.data.defaultAppearanceData.fontSize||K,je=Ie.style;let Le;if(this.data.multiLine){const et=Math.abs(this.data.rect[3]-this.data.rect[1]),Qe=Math.round(et/(G.LINE_FACTOR*Ve))||1,Ue=et/Qe;Le=Math.min(Ve,Math.round(Ue/G.LINE_FACTOR))}else{const et=Math.abs(this.data.rect[3]-this.data.rect[1]);Le=Math.min(Ve,Math.round(et/G.LINE_FACTOR))}je.fontSize=`calc(${Le}px * var(--scale-factor))`,je.color=G.Util.makeHexColor(Ke[0],Ke[1],Ke[2]),this.data.textAlignment!==null&&(je.textAlign=Be[this.data.textAlignment])}_setRequired(Ie,Be){Be?Ie.setAttribute("required",!0):Ie.removeAttribute("required"),Ie.setAttribute("aria-required",Be)}}class X extends W{constructor(Ie){const Be=Ie.renderForms||!Ie.data.hasAppearance&&!!Ie.data.fieldValue;super(Ie,{isRenderable:Be})}setPropertyOnSiblings(Ie,Be,Ke,Ve){const je=this.annotationStorage;for(const Le of this._getElementsByName(Ie.name,Ie.id))Le.domElement&&(Le.domElement[Be]=Ke),je.setValue(Le.id,{[Ve]:Ke})}render(){const Ie=this.annotationStorage,Be=this.data.id;this.container.className="textWidgetAnnotation";let Ke=null;if(this.renderForms){const je=Ie.getValue(Be,{value:this.data.fieldValue});let Le=je.formattedValue||je.value||"";const et=Ie.getValue(Be,{charLimit:this.data.maxLen}).charLimit;et&&Le.length>et&&(Le=Le.slice(0,et));const Qe={userValue:Le,formattedValue:null,valueOnFocus:""};this.data.multiLine?(Ke=document.createElement("textarea"),Ke.textContent=Le,this.data.doNotScroll&&(Ke.style.overflowY="hidden")):(Ke=document.createElement("input"),Ke.type="text",Ke.setAttribute("value",Le),this.data.doNotScroll&&(Ke.style.overflowX="hidden")),z.add(Ke),Ke.setAttribute("data-element-id",Be),Ke.disabled=this.data.readOnly,Ke.name=this.data.fieldName,Ke.tabIndex=U,this._setRequired(Ke,this.data.required),et&&(Ke.maxLength=et),Ke.addEventListener("input",$e=>{Ie.setValue(Be,{value:$e.target.value}),this.setPropertyOnSiblings(Ke,"value",$e.target.value,"value")}),Ke.addEventListener("resetform",$e=>{var Ye;const tt=(Ye=this.data.defaultFieldValue)!==null&&Ye!==void 0?Ye:"";Ke.value=Qe.userValue=tt,Qe.formattedValue=null});let Ue=$e=>{const{formattedValue:Ye}=Qe;Ye!=null&&($e.target.value=Ye),$e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var Ve;Ke.addEventListener("focus",Ye=>{Qe.userValue&&(Ye.target.value=Qe.userValue),Qe.valueOnFocus=Ye.target.value}),Ke.addEventListener("updatefromsandbox",Ye=>{const tt={value(ot){var st;Qe.userValue=(st=ot.detail.value)!==null&&st!==void 0?st:"",Ie.setValue(Be,{value:Qe.userValue.toString()}),ot.target.value=Qe.userValue},formattedValue(ot){const{formattedValue:st}=ot.detail;Qe.formattedValue=st,st!=null&&ot.target!==document.activeElement&&(ot.target.value=st),Ie.setValue(Be,{formattedValue:st})},selRange(ot){ot.target.setSelectionRange(...ot.detail.selRange)},charLimit:ot=>{var st;const{charLimit:dt}=ot.detail,{target:ct}=ot;if(dt===0){ct.removeAttribute("maxLength");return}ct.setAttribute("maxLength",dt);let mt=Qe.userValue;!mt||mt.length<=dt||(mt=mt.slice(0,dt),ct.value=Qe.userValue=mt,Ie.setValue(Be,{value:mt}),(st=this.linkService.eventBus)===null||st===void 0||st.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be,name:"Keystroke",value:mt,willCommit:!0,commitKey:1,selStart:ct.selectionStart,selEnd:ct.selectionEnd}}))}};this._dispatchEventFromSandbox(tt,Ye)}),Ke.addEventListener("keydown",Ye=>{var tt;let ot=-1;if(Ye.key==="Escape"?ot=0:Ye.key==="Enter"?ot=2:Ye.key==="Tab"&&(ot=3),ot===-1)return;const{value:st}=Ye.target;Qe.valueOnFocus!==st&&(Qe.userValue=st,(tt=this.linkService.eventBus)===null||tt===void 0||tt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be,name:"Keystroke",value:st,willCommit:!0,commitKey:ot,selStart:Ye.target.selectionStart,selEnd:Ye.target.selectionEnd}}))});const $e=Ue;Ue=null,Ke.addEventListener("blur",Ye=>{const{value:tt}=Ye.target;if(Qe.userValue=tt,this._mouseState.isDown&&Qe.valueOnFocus!==tt){var ot;(ot=this.linkService.eventBus)===null||ot===void 0||ot.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be,name:"Keystroke",value:tt,willCommit:!0,commitKey:1,selStart:Ye.target.selectionStart,selEnd:Ye.target.selectionEnd}})}$e(Ye)}),(Ve=this.data.actions)!==null&&Ve!==void 0&&Ve.Keystroke&&Ke.addEventListener("beforeinput",Ye=>{var tt;const{data:ot,target:st}=Ye,{value:dt,selectionStart:ct,selectionEnd:mt}=st;let ut=ct,rt=mt;switch(Ye.inputType){case"deleteWordBackward":{const He=dt.substring(0,ct).match(/\w*[^\w]*$/);He&&(ut-=He[0].length);break}case"deleteWordForward":{const He=dt.substring(ct).match(/^[^\w]*\w*/);He&&(rt+=He[0].length);break}case"deleteContentBackward":ct===mt&&(ut-=1);break;case"deleteContentForward":ct===mt&&(rt+=1);break}Ye.preventDefault(),(tt=this.linkService.eventBus)===null||tt===void 0||tt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be,name:"Keystroke",value:dt,change:ot||"",willCommit:!1,selStart:ut,selEnd:rt}})}),this._setEventListeners(Ke,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ye=>Ye.target.value)}if(Ue&&Ke.addEventListener("blur",Ue),this.data.comb){const Ye=(this.data.rect[2]-this.data.rect[0])/et;Ke.classList.add("comb"),Ke.style.letterSpacing=`calc(${Ye}px * var(--scale-factor) - 1ch)`}}else Ke=document.createElement("div"),Ke.textContent=this.data.fieldValue,Ke.style.verticalAlign="middle",Ke.style.display="table-cell";return this._setTextStyle(Ke),this._setBackgroundColor(Ke),this._setDefaultPropertiesFromJS(Ke),this.container.append(Ke),this.container}}class L extends W{constructor(Ie){super(Ie,{isRenderable:Ie.renderForms})}render(){const Ie=this.annotationStorage,Be=this.data,Ke=Be.id;let Ve=Ie.getValue(Ke,{value:Be.exportValue===Be.fieldValue}).value;typeof Ve=="string"&&(Ve=Ve!=="Off",Ie.setValue(Ke,{value:Ve})),this.container.className="buttonWidgetAnnotation checkBox";const je=document.createElement("input");return z.add(je),je.setAttribute("data-element-id",Ke),je.disabled=Be.readOnly,this._setRequired(je,this.data.required),je.type="checkbox",je.name=Be.fieldName,Ve&&je.setAttribute("checked",!0),je.setAttribute("exportValue",Be.exportValue),je.tabIndex=U,je.addEventListener("change",Le=>{const{name:et,checked:Qe}=Le.target;for(const Ue of this._getElementsByName(et,Ke)){const $e=Qe&&Ue.exportValue===Be.exportValue;Ue.domElement&&(Ue.domElement.checked=$e),Ie.setValue(Ue.id,{value:$e})}Ie.setValue(Ke,{value:Qe})}),je.addEventListener("resetform",Le=>{const et=Be.defaultFieldValue||"Off";Le.target.checked=et===Be.exportValue}),this.enableScripting&&this.hasJSActions&&(je.addEventListener("updatefromsandbox",Le=>{const et={value(Qe){Qe.target.checked=Qe.detail.value!=="Off",Ie.setValue(Ke,{value:Qe.target.checked})}};this._dispatchEventFromSandbox(et,Le)}),this._setEventListeners(je,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Le=>Le.target.checked)),this._setBackgroundColor(je),this._setDefaultPropertiesFromJS(je),this.container.append(je),this.container}}class Q extends W{constructor(Ie){super(Ie,{isRenderable:Ie.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const Ie=this.annotationStorage,Be=this.data,Ke=Be.id;let Ve=Ie.getValue(Ke,{value:Be.fieldValue===Be.buttonValue}).value;typeof Ve=="string"&&(Ve=Ve!==Be.buttonValue,Ie.setValue(Ke,{value:Ve}));const je=document.createElement("input");if(z.add(je),je.setAttribute("data-element-id",Ke),je.disabled=Be.readOnly,this._setRequired(je,this.data.required),je.type="radio",je.name=Be.fieldName,Ve&&je.setAttribute("checked",!0),je.tabIndex=U,je.addEventListener("change",Le=>{const{name:et,checked:Qe}=Le.target;for(const Ue of this._getElementsByName(et,Ke))Ie.setValue(Ue.id,{value:!1});Ie.setValue(Ke,{value:Qe})}),je.addEventListener("resetform",Le=>{const et=Be.defaultFieldValue;Le.target.checked=et!=null&&et===Be.buttonValue}),this.enableScripting&&this.hasJSActions){const Le=Be.buttonValue;je.addEventListener("updatefromsandbox",et=>{const Qe={value:Ue=>{const $e=Le===Ue.detail.value;for(const Ye of this._getElementsByName(Ue.target.name)){const tt=$e&&Ye.id===Ke;Ye.domElement&&(Ye.domElement.checked=tt),Ie.setValue(Ye.id,{value:tt})}}};this._dispatchEventFromSandbox(Qe,et)}),this._setEventListeners(je,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],et=>et.target.checked)}return this._setBackgroundColor(je),this._setDefaultPropertiesFromJS(je),this.container.append(je),this.container}}class ce extends he{constructor(Ie){super(Ie,{ignoreBorder:Ie.data.hasAppearance})}render(){const Ie=super.render();Ie.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(Ie.title=this.data.alternativeText);const Be=Ie.lastChild;return this.enableScripting&&this.hasJSActions&&Be&&(this._setDefaultPropertiesFromJS(Be),Be.addEventListener("updatefromsandbox",Ke=>{this._dispatchEventFromSandbox({},Ke)})),Ie}}class de extends W{constructor(Ie){super(Ie,{isRenderable:Ie.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const Ie=this.annotationStorage,Be=this.data.id,Ke=Ie.getValue(Be,{value:this.data.fieldValue}),Ve=document.createElement("select");z.add(Ve),Ve.setAttribute("data-element-id",Be),Ve.disabled=this.data.readOnly,this._setRequired(Ve,this.data.required),Ve.name=this.data.fieldName,Ve.tabIndex=U;let je=this.data.combo&&this.data.options.length>0;this.data.combo||(Ve.size=this.data.options.length,this.data.multiSelect&&(Ve.multiple=!0)),Ve.addEventListener("resetform",Ue=>{const $e=this.data.defaultFieldValue;for(const Ye of Ve.options)Ye.selected=Ye.value===$e});for(const Ue of this.data.options){const $e=document.createElement("option");$e.textContent=Ue.displayValue,$e.value=Ue.exportValue,Ke.value.includes(Ue.exportValue)&&($e.setAttribute("selected",!0),je=!1),Ve.append($e)}let Le=null;if(je){const Ue=document.createElement("option");Ue.value=" ",Ue.setAttribute("hidden",!0),Ue.setAttribute("selected",!0),Ve.prepend(Ue),Le=()=>{Ue.remove(),Ve.removeEventListener("input",Le),Le=null},Ve.addEventListener("input",Le)}const et=(Ue,$e)=>{const Ye=$e?"value":"textContent",tt=Ue.target.options;return Ue.target.multiple?Array.prototype.filter.call(tt,ot=>ot.selected).map(ot=>ot[Ye]):tt.selectedIndex===-1?null:tt[tt.selectedIndex][Ye]},Qe=Ue=>{const $e=Ue.target.options;return Array.prototype.map.call($e,Ye=>({displayValue:Ye.textContent,exportValue:Ye.value}))};return this.enableScripting&&this.hasJSActions?(Ve.addEventListener("updatefromsandbox",Ue=>{const $e={value(Ye){var tt;(tt=Le)===null||tt===void 0||tt();const ot=Ye.detail.value,st=new Set(Array.isArray(ot)?ot:[ot]);for(const dt of Ve.options)dt.selected=st.has(dt.value);Ie.setValue(Be,{value:et(Ye,!0)})},multipleSelection(Ye){Ve.multiple=!0},remove(Ye){const tt=Ve.options,ot=Ye.detail.remove;tt[ot].selected=!1,Ve.remove(ot),tt.length>0&&Array.prototype.findIndex.call(tt,dt=>dt.selected)===-1&&(tt[0].selected=!0),Ie.setValue(Be,{value:et(Ye,!0),items:Qe(Ye)})},clear(Ye){for(;Ve.length!==0;)Ve.remove(0);Ie.setValue(Be,{value:null,items:[]})},insert(Ye){const{index:tt,displayValue:ot,exportValue:st}=Ye.detail.insert,dt=Ve.children[tt],ct=document.createElement("option");ct.textContent=ot,ct.value=st,dt?dt.before(ct):Ve.append(ct),Ie.setValue(Be,{value:et(Ye,!0),items:Qe(Ye)})},items(Ye){const{items:tt}=Ye.detail;for(;Ve.length!==0;)Ve.remove(0);for(const ot of tt){const{displayValue:st,exportValue:dt}=ot,ct=document.createElement("option");ct.textContent=st,ct.value=dt,Ve.append(ct)}Ve.options.length>0&&(Ve.options[0].selected=!0),Ie.setValue(Be,{value:et(Ye,!0),items:Qe(Ye)})},indices(Ye){const tt=new Set(Ye.detail.indices);for(const ot of Ye.target.options)ot.selected=tt.has(ot.index);Ie.setValue(Be,{value:et(Ye,!0)})},editable(Ye){Ye.target.disabled=!Ye.detail.editable}};this._dispatchEventFromSandbox($e,Ue)}),Ve.addEventListener("input",Ue=>{var $e;const Ye=et(Ue,!0),tt=et(Ue,!1);Ie.setValue(Be,{value:Ye}),($e=this.linkService.eventBus)===null||$e===void 0||$e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Be,name:"Keystroke",value:tt,changeEx:Ye,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(Ve,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],Ue=>Ue.target.checked)):Ve.addEventListener("input",function(Ue){Ie.setValue(Be,{value:et(Ue,!0)})}),this.data.combo&&this._setTextStyle(Ve),this._setBackgroundColor(Ve),this._setDefaultPropertiesFromJS(Ve),this.container.append(Ve),this.container}}class se extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!((Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je})}render(){const Ie=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",Ie.includes(this.data.parentType))return this.container;const Be=`[data-annotation-id="${this.data.parentId}"]`,Ke=this.layer.querySelectorAll(Be);if(Ke.length===0)return this.container;const Ve=new oe({container:this.container,trigger:Array.from(Ke),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),je=this.page,Le=G.Util.normalizeRect([this.data.parentRect[0],je.view[3]-this.data.parentRect[1]+je.view[1],this.data.parentRect[2],je.view[3]-this.data.parentRect[3]+je.view[1]]),et=Le[0]+this.data.parentRect[2]-this.data.parentRect[0],Qe=Le[1],[Ue,$e,Ye,tt]=this.viewport.viewBox,ot=Ye-Ue,st=tt-$e;return this.container.style.left=`${100*(et-Ue)/ot}%`,this.container.style.top=`${100*(Qe-$e)/st}%`,this.container.append(Ve.render()),this.container}}class oe{constructor(Ie){this.container=Ie.container,this.trigger=Ie.trigger,this.color=Ie.color,this.titleObj=Ie.titleObj,this.modificationDate=Ie.modificationDate,this.contentsObj=Ie.contentsObj,this.richText=Ie.richText,this.hideWrapper=Ie.hideWrapper||!1,this.pinned=!1}render(){var Ie,Be;const Ve=document.createElement("div");Ve.className="popupWrapper",this.hideElement=this.hideWrapper?Ve:this.container,this.hideElement.hidden=!0;const je=document.createElement("div");je.className="popup";const Le=this.color;if(Le){const Ue=.7*(255-Le[0])+Le[0],$e=.7*(255-Le[1])+Le[1],Ye=.7*(255-Le[2])+Le[2];je.style.backgroundColor=G.Util.makeHexColor(Ue|0,$e|0,Ye|0)}const et=document.createElement("h1");et.dir=this.titleObj.dir,et.textContent=this.titleObj.str,je.append(et);const Qe=V.PDFDateString.toDateObject(this.modificationDate);if(Qe){const Ue=document.createElement("span");Ue.className="popupDate",Ue.textContent="{{date}}, {{time}}",Ue.dataset.l10nId="annotation_date_string",Ue.dataset.l10nArgs=JSON.stringify({date:Qe.toLocaleDateString(),time:Qe.toLocaleTimeString()}),je.append(Ue)}if((Ie=this.richText)!==null&&Ie!==void 0&&Ie.str&&(!((Be=this.contentsObj)!==null&&Be!==void 0&&Be.str)||this.contentsObj.str===this.richText.str))D.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:je}),je.lastChild.className="richText popupContent";else{const Ue=this._formatContents(this.contentsObj);je.append(Ue)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const Ue of this.trigger)Ue.addEventListener("click",this._toggle.bind(this)),Ue.addEventListener("mouseover",this._show.bind(this,!1)),Ue.addEventListener("mouseout",this._hide.bind(this,!1));return je.addEventListener("click",this._hide.bind(this,!0)),Ve.append(je),Ve}_formatContents(Ie){let{str:Be,dir:Ke}=Ie;const Ve=document.createElement("p");Ve.className="popupContent",Ve.dir=Ke;const je=Be.split(/(?:\r\n?|\n)/);for(let Le=0,et=je.length;Le<et;++Le){const Qe=je[Le];Ve.append(document.createTextNode(Qe)),Le<et-1&&Ve.append(document.createElement("br"))}return Ve}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class me extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0}),this.textContent=Ie.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const Ie=document.createElement("div");Ie.className="annotationTextContent",Ie.setAttribute("role","comment");for(const Be of this.textContent){const Ke=document.createElement("span");Ke.textContent=Be,Ie.append(Ke)}this.container.append(Ie)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ee extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const Ie=this.data,{width:Be,height:Ke}=e(Ie.rect),Ve=this.svgFactory.create(Be,Ke,!0),je=this.svgFactory.createElement("svg:line");return je.setAttribute("x1",Ie.rect[2]-Ie.lineCoordinates[0]),je.setAttribute("y1",Ie.rect[3]-Ie.lineCoordinates[1]),je.setAttribute("x2",Ie.rect[2]-Ie.lineCoordinates[2]),je.setAttribute("y2",Ie.rect[3]-Ie.lineCoordinates[3]),je.setAttribute("stroke-width",Ie.borderStyle.width||1),je.setAttribute("stroke","transparent"),je.setAttribute("fill","transparent"),Ve.append(je),this.container.append(Ve),this._createPopup(je,Ie),this.container}}class ke extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const Ie=this.data,{width:Be,height:Ke}=e(Ie.rect),Ve=this.svgFactory.create(Be,Ke,!0),je=Ie.borderStyle.width,Le=this.svgFactory.createElement("svg:rect");return Le.setAttribute("x",je/2),Le.setAttribute("y",je/2),Le.setAttribute("width",Be-je),Le.setAttribute("height",Ke-je),Le.setAttribute("stroke-width",je||1),Le.setAttribute("stroke","transparent"),Le.setAttribute("fill","transparent"),Ve.append(Le),this.container.append(Ve),this._createPopup(Le,Ie),this.container}}class xe extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const Ie=this.data,{width:Be,height:Ke}=e(Ie.rect),Ve=this.svgFactory.create(Be,Ke,!0),je=Ie.borderStyle.width,Le=this.svgFactory.createElement("svg:ellipse");return Le.setAttribute("cx",Be/2),Le.setAttribute("cy",Ke/2),Le.setAttribute("rx",Be/2-je/2),Le.setAttribute("ry",Ke/2-je/2),Le.setAttribute("stroke-width",je||1),Le.setAttribute("stroke","transparent"),Le.setAttribute("fill","transparent"),Ve.append(Le),this.container.append(Ve),this._createPopup(Le,Ie),this.container}}class fe extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const Ie=this.data,{width:Be,height:Ke}=e(Ie.rect),Ve=this.svgFactory.create(Be,Ke,!0);let je=[];for(const et of Ie.vertices){const Qe=et.x-Ie.rect[0],Ue=Ie.rect[3]-et.y;je.push(Qe+","+Ue)}je=je.join(" ");const Le=this.svgFactory.createElement(this.svgElementName);return Le.setAttribute("points",je),Le.setAttribute("stroke-width",Ie.borderStyle.width||1),Le.setAttribute("stroke","transparent"),Le.setAttribute("fill","transparent"),Ve.append(Le),this.container.append(Ve),this._createPopup(Le,Ie),this.container}}class ve extends fe{constructor(Ie){super(Ie),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class ye extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ce extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const Ie=this.data,{width:Be,height:Ke}=e(Ie.rect),Ve=this.svgFactory.create(Be,Ke,!0);for(const je of Ie.inkLists){let Le=[];for(const Qe of je){const Ue=Qe.x-Ie.rect[0],$e=Ie.rect[3]-Qe.y;Le.push(`${Ue},${$e}`)}Le=Le.join(" ");const et=this.svgFactory.createElement(this.svgElementName);et.setAttribute("points",Le),et.setAttribute("stroke-width",Ie.borderStyle.width||1),et.setAttribute("stroke","transparent"),et.setAttribute("fill","transparent"),this._createPopup(et,Ie),Ve.append(et)}return this.container.append(Ve),this.container}}class pe extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class _e extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class Ge extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class Ae extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class Ne extends ie{constructor(Ie){var Be,Ke,Ve;const je=!!(Ie.data.hasPopup||(Be=Ie.data.titleObj)!==null&&Be!==void 0&&Be.str||(Ke=Ie.data.contentsObj)!==null&&Ke!==void 0&&Ke.str||(Ve=Ie.data.richText)!==null&&Ve!==void 0&&Ve.str);super(Ie,{isRenderable:je,ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ze extends ie{constructor(Ie){var Be;super(Ie,{isRenderable:!0});const{filename:Ke,content:Ve}=this.data.file;this.filename=(0,V.getFilenameFromUrl)(Ke),this.content=Ve,(Be=this.linkService.eventBus)===null||Be===void 0||Be.dispatch("fileattachmentannotation",{source:this,filename:Ke,content:Ve})}render(){var Ie,Be;this.container.className="fileAttachmentAnnotation";const Ke=document.createElement("div");return Ke.className="popupTriggerArea",Ke.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((Ie=this.data.titleObj)!==null&&Ie!==void 0&&Ie.str||(Be=this.data.contentsObj)!==null&&Be!==void 0&&Be.str||this.data.richText)&&this._createPopup(Ke,this.data),this.container.append(Ke),this.container}_download(){var Ie;(Ie=this.downloadManager)===null||Ie===void 0||Ie.openOrDownloadData(this.container,this.content,this.filename)}}class ze{static render(Ie){const{annotations:Be,div:Ke,viewport:Ve,accessibilityManager:je}=Ie;B(this,ze,Fe).call(this,Ke,Ve);let Le=0;for(const et of Be){if(et.annotationType!==G.AnnotationType.POPUP){const{width:Ue,height:$e}=e(et.rect);if(Ue<=0||$e<=0)continue}const Qe=ae.create({data:et,layer:Ke,page:Ie.page,viewport:Ve,linkService:Ie.linkService,downloadManager:Ie.downloadManager,imageResourcesPath:Ie.imageResourcesPath||"",renderForms:Ie.renderForms!==!1,svgFactory:new V.DOMSVGFactory,annotationStorage:Ie.annotationStorage||new q.AnnotationStorage,enableScripting:Ie.enableScripting,hasJSActions:Ie.hasJSActions,fieldObjects:Ie.fieldObjects,mouseState:Ie.mouseState||{isDown:!1}});if(Qe.isRenderable){const Ue=Qe.render();if(et.hidden&&(Ue.style.visibility="hidden"),Array.isArray(Ue))for(const $e of Ue)$e.style.zIndex=Le++,B(ze,ze,Te).call(ze,$e,et.id,Ke,je);else Ue.style.zIndex=Le++,Qe instanceof se?Ke.prepend(Ue):B(ze,ze,Te).call(ze,Ue,et.id,Ke,je)}}B(this,ze,Pe).call(this,Ke,Ie.annotationCanvasMap)}static update(Ie){const{annotationCanvasMap:Be,div:Ke,viewport:Ve}=Ie;B(this,ze,Fe).call(this,Ke,Ve),B(this,ze,Pe).call(this,Ke,Be),Ke.hidden=!1}}m.AnnotationLayer=ze;function Te(we,Ie,Be,Ke){const Ve=we.firstChild||we;Ve.id=`${V.AnnotationPrefix}${Ie}`,Be.append(we),Ke==null||Ke.moveElementInDOM(Be,we,Ve,!1)}function Fe(we,Ie){let{width:Be,height:Ke,rotation:Ve}=Ie;const{style:je}=we,Le=Ve%180!==0,et=Math.floor(Be)+"px",Qe=Math.floor(Ke)+"px";je.width=Le?Qe:et,je.height=Le?et:Qe,we.setAttribute("data-main-rotation",Ve)}function Pe(we,Ie){if(Ie){for(const[Be,Ke]of Ie){const Ve=we.querySelector(`[data-annotation-id="${Be}"]`);if(!Ve)continue;const{firstChild:je}=Ve;je?je.nodeName==="CANVAS"?je.replaceWith(Ke):je.before(Ke):Ve.append(Ke)}Ie.clear()}}},(k,m)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.ColorConverters=void 0;function M(V){return Math.floor(Math.max(0,Math.min(1,V))*255).toString(16).padStart(2,"0")}class G{static CMYK_G(q){let[$,D,B,R]=q;return["G",1-Math.min(1,.3*$+.59*B+.11*D+R)]}static G_CMYK(q){let[$]=q;return["CMYK",0,0,0,1-$]}static G_RGB(q){let[$]=q;return["RGB",$,$,$]}static G_HTML(q){let[$]=q;const D=M($);return`#${D}${D}${D}`}static RGB_G(q){let[$,D,B]=q;return["G",.3*$+.59*D+.11*B]}static RGB_HTML(q){let[$,D,B]=q;const R=M($),U=M(D),K=M(B);return`#${R}${U}${K}`}static T_HTML(){return"#00000000"}static CMYK_RGB(q){let[$,D,B,R]=q;return["RGB",1-Math.min(1,$+R),1-Math.min(1,B+R),1-Math.min(1,D+R)]}static CMYK_HTML(q){const $=this.CMYK_RGB(q).slice(1);return this.RGB_HTML($)}static RGB_CMYK(q){let[$,D,B]=q;const R=1-$,U=1-D,K=1-B,z=Math.min(R,U,K);return["CMYK",R,U,K,z]}}m.ColorConverters=G},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.XfaLayer=void 0;var G=M(145);class V{static setupStorage($,D,B,R,U){const K=R.getValue(D,{value:null});switch(B.name){case"textarea":if(K.value!==null&&($.textContent=K.value),U==="print")break;$.addEventListener("input",z=>{R.setValue(D,{value:z.target.value})});break;case"input":if(B.attributes.type==="radio"||B.attributes.type==="checkbox"){if(K.value===B.attributes.xfaOn?$.setAttribute("checked",!0):K.value===B.attributes.xfaOff&&$.removeAttribute("checked"),U==="print")break;$.addEventListener("change",z=>{R.setValue(D,{value:z.target.checked?z.target.getAttribute("xfaOn"):z.target.getAttribute("xfaOff")})})}else{if(K.value!==null&&$.setAttribute("value",K.value),U==="print")break;$.addEventListener("input",z=>{R.setValue(D,{value:z.target.value})})}break;case"select":if(K.value!==null)for(const z of B.children)z.attributes.value===K.value&&(z.attributes.selected=!0);$.addEventListener("input",z=>{const e=z.target.options,ae=e.selectedIndex===-1?"":e[e.selectedIndex].value;R.setValue(D,{value:ae})});break}}static setAttributes($){let{html:D,element:B,storage:R=null,intent:U,linkService:K}=$;const{attributes:z}=B,e=D instanceof HTMLAnchorElement;z.type==="radio"&&(z.name=`${z.name}-${U}`);for(const[ae,ie]of Object.entries(z))if(ie!=null)switch(ae){case"class":ie.length&&D.setAttribute(ae,ie.join(" "));break;case"dataId":break;case"id":D.setAttribute("data-element-id",ie);break;case"style":Object.assign(D.style,ie);break;case"textContent":D.textContent=ie;break;default:(!e||ae!=="href"&&ae!=="newWindow")&&D.setAttribute(ae,ie)}e&&K.addLinkAttributes(D,z.href,z.newWindow),R&&z.dataId&&this.setupStorage(D,z.dataId,B,R)}static render($){const D=$.annotationStorage,B=$.linkService,R=$.xfaHtml,U=$.intent||"display",K=document.createElement(R.name);R.attributes&&this.setAttributes({html:K,element:R,intent:U,linkService:B});const z=[[R,-1,K]],e=$.div;if(e.append(K),$.viewport){const he=`matrix(${$.viewport.transform.join(",")})`;e.style.transform=he}U!=="richText"&&e.setAttribute("class","xfaLayer xfaFont");const ae=[];for(;z.length>0;){var ie;const[he,J,W]=z.at(-1);if(J+1===he.children.length){z.pop();continue}const X=he.children[++z.at(-1)[1]];if(X===null)continue;const{name:L}=X;if(L==="#text"){const ce=document.createTextNode(X.value);ae.push(ce),W.append(ce);continue}let Q;if(X!=null&&(ie=X.attributes)!==null&&ie!==void 0&&ie.xmlns?Q=document.createElementNS(X.attributes.xmlns,L):Q=document.createElement(L),W.append(Q),X.attributes&&this.setAttributes({html:Q,element:X,storage:D,intent:U,linkService:B}),X.children&&X.children.length>0)z.push([X,-1,Q]);else if(X.value){const ce=document.createTextNode(X.value);G.XfaText.shouldBuildText(L)&&ae.push(ce),Q.append(ce)}}for(const he of e.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))he.setAttribute("readOnly",!0);return{textDivs:ae}}static update($){const D=`matrix(${$.viewport.transform.join(",")})`;$.div.style.transform=D,$.div.hidden=!1}}m.XfaLayer=V},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.TextLayerRenderTask=void 0,m.renderTextLayer=W;var G=M(1),V=M(133);const q=1e5,$=30,D=.8,B=new Map,R=/^\s+$/g;function U(X,L){const Q=B.get(X);if(Q)return Q;L.save(),L.font=`${$}px ${X}`;const ce=L.measureText("");let de=ce.fontBoundingBoxAscent,se=Math.abs(ce.fontBoundingBoxDescent);if(de){L.restore();const me=de/(de+se);return B.set(X,me),me}L.strokeStyle="red",L.clearRect(0,0,$,$),L.strokeText("g",0,0);let oe=L.getImageData(0,0,$,$).data;se=0;for(let me=oe.length-1-3;me>=0;me-=4)if(oe[me]>0){se=Math.ceil(me/4/$);break}L.clearRect(0,0,$,$),L.strokeText("A",0,$),oe=L.getImageData(0,0,$,$).data,de=0;for(let me=0,Ee=oe.length;me<Ee;me+=4)if(oe[me]>0){de=$-Math.floor(me/4/$);break}if(L.restore(),de){const me=de/(de+se);return B.set(X,me),me}return B.set(X,D),D}function K(X,L,Q,ce){const de=document.createElement("span"),se=X._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:L.str!=="",hasEOL:L.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:L.str!=="",hasEOL:L.hasEOL,fontSize:0};X._textDivs.push(de);const oe=G.Util.transform(X._viewport.transform,L.transform);let me=Math.atan2(oe[1],oe[0]);const Ee=Q[L.fontName];Ee.vertical&&(me+=Math.PI/2);const ke=Math.hypot(oe[2],oe[3]),xe=ke*U(Ee.fontFamily,ce);let fe,ve;me===0?(fe=oe[4],ve=oe[5]-xe):(fe=oe[4]+xe*Math.sin(me),ve=oe[5]-xe*Math.cos(me)),de.style.left=`${fe}px`,de.style.top=`${ve}px`,de.style.fontSize=`${ke}px`,de.style.fontFamily=Ee.fontFamily,se.fontSize=ke,de.setAttribute("role","presentation"),de.textContent=L.str,de.dir=L.dir,X._fontInspectorEnabled&&(de.dataset.fontName=L.fontName),me!==0&&(se.angle=me*(180/Math.PI));let ye=!1;if(L.str.length>1||X._enhanceTextSelection&&R.test(L.str))ye=!0;else if(L.str!==" "&&L.transform[0]!==L.transform[3]){const Ce=Math.abs(L.transform[0]),pe=Math.abs(L.transform[3]);Ce!==pe&&Math.max(Ce,pe)/Math.min(Ce,pe)>1.5&&(ye=!0)}if(ye&&(Ee.vertical?se.canvasWidth=L.height*X._viewport.scale:se.canvasWidth=L.width*X._viewport.scale),X._textDivProperties.set(de,se),X._textContentStream&&X._layoutText(de),X._enhanceTextSelection&&se.hasText){let Ce=1,pe=0;me!==0&&(Ce=Math.cos(me),pe=Math.sin(me));const _e=(Ee.vertical?L.height:L.width)*X._viewport.scale,Ge=ke;let Ae,Ne;me!==0?(Ae=[Ce,pe,-pe,Ce,fe,ve],Ne=G.Util.getAxialAlignedBoundingBox([0,0,_e,Ge],Ae)):Ne=[fe,ve,fe+_e,ve+Ge],X._bounds.push({left:Ne[0],top:Ne[1],right:Ne[2],bottom:Ne[3],div:de,size:[_e,Ge],m:Ae})}}function z(X){if(X._canceled)return;const L=X._textDivs,Q=X._capability,ce=L.length;if(ce>q){X._renderingDone=!0,Q.resolve();return}if(!X._textContentStream)for(let de=0;de<ce;de++)X._layoutText(L[de]);X._renderingDone=!0,Q.resolve()}function e(X,L,Q){let ce=0;for(let de=0;de<Q;de++){const se=X[L++];se>0&&(ce=ce?Math.min(se,ce):se)}return ce}function ae(X){const L=X._bounds,Q=X._viewport,ce=ie(Q.width,Q.height,L);for(let de=0;de<ce.length;de++){const se=L[de].div,oe=X._textDivProperties.get(se);if(oe.angle===0){oe.paddingLeft=L[de].left-ce[de].left,oe.paddingTop=L[de].top-ce[de].top,oe.paddingRight=ce[de].right-L[de].right,oe.paddingBottom=ce[de].bottom-L[de].bottom,X._textDivProperties.set(se,oe);continue}const me=ce[de],Ee=L[de],ke=Ee.m,xe=ke[0],fe=ke[1],ve=[[0,0],[0,Ee.size[1]],[Ee.size[0],0],Ee.size],ye=new Float64Array(64);for(let pe=0,_e=ve.length;pe<_e;pe++){const Ge=G.Util.applyTransform(ve[pe],ke);ye[pe+0]=xe&&(me.left-Ge[0])/xe,ye[pe+4]=fe&&(me.top-Ge[1])/fe,ye[pe+8]=xe&&(me.right-Ge[0])/xe,ye[pe+12]=fe&&(me.bottom-Ge[1])/fe,ye[pe+16]=fe&&(me.left-Ge[0])/-fe,ye[pe+20]=xe&&(me.top-Ge[1])/xe,ye[pe+24]=fe&&(me.right-Ge[0])/-fe,ye[pe+28]=xe&&(me.bottom-Ge[1])/xe,ye[pe+32]=xe&&(me.left-Ge[0])/-xe,ye[pe+36]=fe&&(me.top-Ge[1])/-fe,ye[pe+40]=xe&&(me.right-Ge[0])/-xe,ye[pe+44]=fe&&(me.bottom-Ge[1])/-fe,ye[pe+48]=fe&&(me.left-Ge[0])/fe,ye[pe+52]=xe&&(me.top-Ge[1])/-xe,ye[pe+56]=fe&&(me.right-Ge[0])/fe,ye[pe+60]=xe&&(me.bottom-Ge[1])/-xe}const Ce=1+Math.min(Math.abs(xe),Math.abs(fe));oe.paddingLeft=e(ye,32,16)/Ce,oe.paddingTop=e(ye,48,16)/Ce,oe.paddingRight=e(ye,0,16)/Ce,oe.paddingBottom=e(ye,16,16)/Ce,X._textDivProperties.set(se,oe)}}function ie(X,L,Q){const ce=Q.map(function(se,oe){return{x1:se.left,y1:se.top,x2:se.right,y2:se.bottom,index:oe,x1New:void 0,x2New:void 0}});he(X,ce);const de=new Array(Q.length);for(const se of ce){const oe=se.index;de[oe]={left:se.x1New,top:0,right:se.x2New,bottom:0}}Q.map(function(se,oe){const me=de[oe],Ee=ce[oe];Ee.x1=se.top,Ee.y1=X-me.right,Ee.x2=se.bottom,Ee.y2=X-me.left,Ee.index=oe,Ee.x1New=void 0,Ee.x2New=void 0}),he(L,ce);for(const se of ce){const oe=se.index;de[oe].top=se.x1New,de[oe].bottom=se.x2New}return de}function he(X,L){L.sort(function(de,se){return de.x1-se.x1||de.index-se.index});const ce=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const de of L){let se=0;for(;se<ce.length&&ce[se].end<=de.y1;)se++;let oe=ce.length-1;for(;oe>=0&&ce[oe].start>=de.y2;)oe--;let me,Ee,ke,xe,fe=-1/0;for(ke=se;ke<=oe;ke++){me=ce[ke],Ee=me.boundary;let Ce;Ee.x2>de.x1?Ce=Ee.index>de.index?Ee.x1New:de.x1:Ee.x2New===void 0?Ce=(Ee.x2+de.x1)/2:Ce=Ee.x2New,Ce>fe&&(fe=Ce)}for(de.x1New=fe,ke=se;ke<=oe;ke++)me=ce[ke],Ee=me.boundary,Ee.x2New===void 0?Ee.x2>de.x1?Ee.index>de.index&&(Ee.x2New=Ee.x2):Ee.x2New=fe:Ee.x2New>fe&&(Ee.x2New=Math.max(fe,Ee.x2));const ve=[];let ye=null;for(ke=se;ke<=oe;ke++){me=ce[ke],Ee=me.boundary;const Ce=Ee.x2>de.x2?Ee:de;ye===Ce?ve.at(-1).end=me.end:(ve.push({start:me.start,end:me.end,boundary:Ce}),ye=Ce)}for(ce[se].start<de.y1&&(ve[0].start=de.y1,ve.unshift({start:ce[se].start,end:de.y1,boundary:ce[se].boundary})),de.y2<ce[oe].end&&(ve.at(-1).end=de.y2,ve.push({start:de.y2,end:ce[oe].end,boundary:ce[oe].boundary})),ke=se;ke<=oe;ke++){if(me=ce[ke],Ee=me.boundary,Ee.x2New!==void 0)continue;let Ce=!1;for(xe=se-1;!Ce&&xe>=0&&ce[xe].start>=Ee.y1;xe--)Ce=ce[xe].boundary===Ee;for(xe=oe+1;!Ce&&xe<ce.length&&ce[xe].end<=Ee.y2;xe++)Ce=ce[xe].boundary===Ee;for(xe=0;!Ce&&xe<ve.length;xe++)Ce=ve[xe].boundary===Ee;Ce||(Ee.x2New=fe)}Array.prototype.splice.apply(ce,[se,oe-se+1,...ve])}for(const de of ce){const se=de.boundary;se.x2New===void 0&&(se.x2New=Math.max(X,se.x2))}}class J{constructor(L){var Q;let{textContent:ce,textContentStream:de,container:se,viewport:oe,textDivs:me,textContentItemsStr:Ee,enhanceTextSelection:ke}=L;ke&&(0,V.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=ce,this._textContentStream=de,this._container=se,this._document=se.ownerDocument,this._viewport=oe,this._textDivs=me||[],this._textContentItemsStr=Ee||[],this._enhanceTextSelection=!!ke,this._fontInspectorEnabled=!!((Q=globalThis.FontInspector)!==null&&Q!==void 0&&Q.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,G.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new G.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(L,Q){for(let ce=0,de=L.length;ce<de;ce++){if(L[ce].str===void 0){if(L[ce].type==="beginMarkedContentProps"||L[ce].type==="beginMarkedContent"){const se=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),L[ce].id!==null&&this._container.setAttribute("id",`${L[ce].id}`),se.append(this._container)}else L[ce].type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(L[ce].str),K(this,L[ce],Q,this._layoutTextCtx)}}_layoutText(L){const Q=this._textDivProperties.get(L);let ce="";if(Q.canvasWidth!==0&&Q.hasText){const{fontFamily:de}=L.style,{fontSize:se}=Q;(se!==this._layoutTextLastFontSize||de!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${se*this._devicePixelRatio}px ${de}`,this._layoutTextLastFontSize=se,this._layoutTextLastFontFamily=de);const{width:oe}=this._layoutTextCtx.measureText(L.textContent);if(oe>0){const me=this._devicePixelRatio*Q.canvasWidth/oe;this._enhanceTextSelection&&(Q.scale=me),ce=`scaleX(${me})`}}if(Q.angle!==0&&(ce=`rotate(${Q.angle}deg) ${ce}`),ce.length>0&&(this._enhanceTextSelection&&(Q.originalTransform=ce),L.style.transform=ce),Q.hasText&&this._container.append(L),Q.hasEOL){const de=document.createElement("br");de.setAttribute("role","presentation"),this._container.append(de)}}_render(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const Q=(0,G.createPromiseCapability)();let ce=Object.create(null);const de=this._document.createElement("canvas");if(de.height=de.width=$,this._layoutTextCtx=de.getContext("2d",{alpha:!1}),this._textContent){const se=this._textContent.items,oe=this._textContent.styles;this._processItems(se,oe),Q.resolve()}else if(this._textContentStream){const se=()=>{this._reader.read().then(oe=>{let{value:me,done:Ee}=oe;if(Ee){Q.resolve();return}Object.assign(ce,me.styles),this._processItems(me.items,ce),se()},Q.reject)};this._reader=this._textContentStream.getReader(),se()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');Q.promise.then(()=>{ce=null,L?this._renderTimer=setTimeout(()=>{z(this),this._renderTimer=null},L):z(this)},this._capability.reject)}expandTextDivs(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(ae(this),this._bounds=null);const Q=[],ce=[];for(let de=0,se=this._textDivs.length;de<se;de++){const oe=this._textDivs[de],me=this._textDivProperties.get(oe);me.hasText&&(L?(Q.length=0,ce.length=0,me.originalTransform&&Q.push(me.originalTransform),me.paddingTop>0?(ce.push(`${me.paddingTop}px`),Q.push(`translateY(${-me.paddingTop}px)`)):ce.push(0),me.paddingRight>0?ce.push(`${me.paddingRight/me.scale}px`):ce.push(0),me.paddingBottom>0?ce.push(`${me.paddingBottom}px`):ce.push(0),me.paddingLeft>0?(ce.push(`${me.paddingLeft/me.scale}px`),Q.push(`translateX(${-me.paddingLeft/me.scale}px)`)):ce.push(0),oe.style.padding=ce.join(" "),Q.length&&(oe.style.transform=Q.join(" "))):(oe.style.padding=null,oe.style.transform=me.originalTransform))}}}m.TextLayerRenderTask=J;function W(X){const L=new J({textContent:X.textContent,textContentStream:X.textContentStream,container:X.container,viewport:X.viewport,textDivs:X.textDivs,textContentItemsStr:X.textContentItemsStr,enhanceTextSelection:X.enhanceTextSelection});return L._render(X.timeout),L}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.SVGGraphics=void 0;var G=M(133),V=M(1),q=M(3);let $=class{constructor(){(0,V.unreachable)("Not implemented: SVGGraphics")}};m.SVGGraphics=$;{let ie=function(Q){let ce=[];const de=[];for(const se of Q){if(se.fn==="save"){ce.push({fnId:92,fn:"group",items:[]}),de.push(ce),ce=ce.at(-1).items;continue}se.fn==="restore"?ce=de.pop():ce.push(se)}return ce},he=function(Q){if(Number.isInteger(Q))return Q.toString();const ce=Q.toFixed(10);let de=ce.length-1;if(ce[de]!=="0")return ce;do de--;while(ce[de]==="0");return ce.substring(0,ce[de]==="."?de:de+1)},J=function(Q){if(Q[4]===0&&Q[5]===0){if(Q[1]===0&&Q[2]===0)return Q[0]===1&&Q[3]===1?"":`scale(${he(Q[0])} ${he(Q[3])})`;if(Q[0]===Q[3]&&Q[1]===-Q[2]){const ce=Math.acos(Q[0])*180/Math.PI;return`rotate(${he(ce)})`}}else if(Q[0]===1&&Q[1]===0&&Q[2]===0&&Q[3]===1)return`translate(${he(Q[4])} ${he(Q[5])})`;return`matrix(${he(Q[0])} ${he(Q[1])} ${he(Q[2])} ${he(Q[3])} ${he(Q[4])} ${he(Q[5])})`};const D={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},B="http://www.w3.org/XML/1998/namespace",R="http://www.w3.org/1999/xlink",U=["butt","round","square"],K=["miter","round","bevel"],z=function(Q){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob<"u"&&!de)return URL.createObjectURL(new Blob([Q],{type:ce}));const se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let oe=`data:${ce};base64,`;for(let me=0,Ee=Q.length;me<Ee;me+=3){const ke=Q[me]&255,xe=Q[me+1]&255,fe=Q[me+2]&255,ve=ke>>2,ye=(ke&3)<<4|xe>>4,Ce=me+1<Ee?(xe&15)<<2|fe>>6:64,pe=me+2<Ee?fe&63:64;oe+=se[ve]+se[ye]+se[Ce]+se[pe]}return oe},e=function(){const Q=new Uint8Array([137,80,78,71,13,10,26,10]),ce=12,de=new Int32Array(256);for(let fe=0;fe<256;fe++){let ve=fe;for(let ye=0;ye<8;ye++)ve&1?ve=3988292384^ve>>1&2147483647:ve=ve>>1&2147483647;de[fe]=ve}function se(fe,ve,ye){let Ce=-1;for(let pe=ve;pe<ye;pe++){const _e=(Ce^fe[pe])&255,Ge=de[_e];Ce=Ce>>>8^Ge}return Ce^-1}function oe(fe,ve,ye,Ce){let pe=Ce;const _e=ve.length;ye[pe]=_e>>24&255,ye[pe+1]=_e>>16&255,ye[pe+2]=_e>>8&255,ye[pe+3]=_e&255,pe+=4,ye[pe]=fe.charCodeAt(0)&255,ye[pe+1]=fe.charCodeAt(1)&255,ye[pe+2]=fe.charCodeAt(2)&255,ye[pe+3]=fe.charCodeAt(3)&255,pe+=4,ye.set(ve,pe),pe+=ve.length;const Ge=se(ye,Ce+4,pe);ye[pe]=Ge>>24&255,ye[pe+1]=Ge>>16&255,ye[pe+2]=Ge>>8&255,ye[pe+3]=Ge&255}function me(fe,ve,ye){let Ce=1,pe=0;for(let _e=ve;_e<ye;++_e)Ce=(Ce+(fe[_e]&255))%65521,pe=(pe+Ce)%65521;return pe<<16|Ce}function Ee(fe){if(!q.isNodeJS)return ke(fe);try{let ve;parseInt(process.versions.node)>=8?ve=fe:ve=Buffer.from(fe);const ye=require$$7.deflateSync(ve,{level:9});return ye instanceof Uint8Array?ye:new Uint8Array(ye)}catch(ve){(0,V.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+ve)}return ke(fe)}function ke(fe){let ve=fe.length;const ye=65535,Ce=Math.ceil(ve/ye),pe=new Uint8Array(2+ve+Ce*5+4);let _e=0;pe[_e++]=120,pe[_e++]=156;let Ge=0;for(;ve>ye;)pe[_e++]=0,pe[_e++]=255,pe[_e++]=255,pe[_e++]=0,pe[_e++]=0,pe.set(fe.subarray(Ge,Ge+ye),_e),_e+=ye,Ge+=ye,ve-=ye;pe[_e++]=1,pe[_e++]=ve&255,pe[_e++]=ve>>8&255,pe[_e++]=~ve&65535&255,pe[_e++]=(~ve&65535)>>8&255,pe.set(fe.subarray(Ge),_e),_e+=fe.length-Ge;const Ae=me(fe,0,fe.length);return pe[_e++]=Ae>>24&255,pe[_e++]=Ae>>16&255,pe[_e++]=Ae>>8&255,pe[_e++]=Ae&255,pe}function xe(fe,ve,ye,Ce){const pe=fe.width,_e=fe.height;let Ge,Ae,Ne;const Ze=fe.data;switch(ve){case V.ImageKind.GRAYSCALE_1BPP:Ae=0,Ge=1,Ne=pe+7>>3;break;case V.ImageKind.RGB_24BPP:Ae=2,Ge=8,Ne=pe*3;break;case V.ImageKind.RGBA_32BPP:Ae=6,Ge=8,Ne=pe*4;break;default:throw new Error("invalid format")}const ze=new Uint8Array((1+Ne)*_e);let Te=0,Fe=0;for(let Ve=0;Ve<_e;++Ve)ze[Te++]=0,ze.set(Ze.subarray(Fe,Fe+Ne),Te),Fe+=Ne,Te+=Ne;if(ve===V.ImageKind.GRAYSCALE_1BPP&&Ce){Te=0;for(let Ve=0;Ve<_e;Ve++){Te++;for(let je=0;je<Ne;je++)ze[Te++]^=255}}const Pe=new Uint8Array([pe>>24&255,pe>>16&255,pe>>8&255,pe&255,_e>>24&255,_e>>16&255,_e>>8&255,_e&255,Ge,Ae,0,0,0]),we=Ee(ze),Ie=Q.length+ce*3+Pe.length+we.length,Be=new Uint8Array(Ie);let Ke=0;return Be.set(Q,Ke),Ke+=Q.length,oe("IHDR",Pe,Be,Ke),Ke+=ce+Pe.length,oe("IDATA",we,Be,Ke),Ke+=ce+we.length,oe("IEND",new Uint8Array(0),Be,Ke),z(Be,"image/png",ye)}return function(ve,ye,Ce){const pe=ve.kind===void 0?V.ImageKind.GRAYSCALE_1BPP:ve.kind;return xe(ve,pe,ye,Ce)}}();class ae{constructor(){this.fontSizeScale=1,this.fontWeight=D.fontWeight,this.fontSize=0,this.textMatrix=V.IDENTITY_MATRIX,this.fontMatrix=V.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=V.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=D.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(ce,de){this.x=ce,this.y=de}}let W=0,X=0,L=0;m.SVGGraphics=$=class{constructor(Q,ce){let de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(0,G.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new G.DOMSVGFactory,this.current=new ae,this.transformMatrix=V.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=Q,this.objs=ce,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!de,this._operatorIdMapping=[];for(const se in V.OPS)this._operatorIdMapping[V.OPS[se]]=se}save(){this.transformStack.push(this.transformMatrix);const Q=this.current;this.extraStack.push(Q),this.current=Q.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(Q){this.save(),this.executeOpTree(Q),this.restore()}loadDependencies(Q){const ce=Q.fnArray,de=Q.argsArray;for(let se=0,oe=ce.length;se<oe;se++)if(ce[se]===V.OPS.dependency)for(const me of de[se]){const Ee=me.startsWith("g_")?this.commonObjs:this.objs,ke=new Promise(xe=>{Ee.get(me,xe)});this.current.dependencies.push(ke)}return Promise.all(this.current.dependencies)}transform(Q,ce,de,se,oe,me){const Ee=[Q,ce,de,se,oe,me];this.transformMatrix=V.Util.transform(this.transformMatrix,Ee),this.tgrp=null}getSVG(Q,ce){this.viewport=ce;const de=this._initialize(ce);return this.loadDependencies(Q).then(()=>(this.transformMatrix=V.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(Q)),de))}convertOpList(Q){const ce=this._operatorIdMapping,de=Q.argsArray,se=Q.fnArray,oe=[];for(let me=0,Ee=se.length;me<Ee;me++){const ke=se[me];oe.push({fnId:ke,fn:ce[ke],args:de[me]})}return ie(oe)}executeOpTree(Q){for(const ce of Q){const de=ce.fn,se=ce.fnId,oe=ce.args;switch(se|0){case V.OPS.beginText:this.beginText();break;case V.OPS.dependency:break;case V.OPS.setLeading:this.setLeading(oe);break;case V.OPS.setLeadingMoveText:this.setLeadingMoveText(oe[0],oe[1]);break;case V.OPS.setFont:this.setFont(oe);break;case V.OPS.showText:this.showText(oe[0]);break;case V.OPS.showSpacedText:this.showText(oe[0]);break;case V.OPS.endText:this.endText();break;case V.OPS.moveText:this.moveText(oe[0],oe[1]);break;case V.OPS.setCharSpacing:this.setCharSpacing(oe[0]);break;case V.OPS.setWordSpacing:this.setWordSpacing(oe[0]);break;case V.OPS.setHScale:this.setHScale(oe[0]);break;case V.OPS.setTextMatrix:this.setTextMatrix(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]);break;case V.OPS.setTextRise:this.setTextRise(oe[0]);break;case V.OPS.setTextRenderingMode:this.setTextRenderingMode(oe[0]);break;case V.OPS.setLineWidth:this.setLineWidth(oe[0]);break;case V.OPS.setLineJoin:this.setLineJoin(oe[0]);break;case V.OPS.setLineCap:this.setLineCap(oe[0]);break;case V.OPS.setMiterLimit:this.setMiterLimit(oe[0]);break;case V.OPS.setFillRGBColor:this.setFillRGBColor(oe[0],oe[1],oe[2]);break;case V.OPS.setStrokeRGBColor:this.setStrokeRGBColor(oe[0],oe[1],oe[2]);break;case V.OPS.setStrokeColorN:this.setStrokeColorN(oe);break;case V.OPS.setFillColorN:this.setFillColorN(oe);break;case V.OPS.shadingFill:this.shadingFill(oe[0]);break;case V.OPS.setDash:this.setDash(oe[0],oe[1]);break;case V.OPS.setRenderingIntent:this.setRenderingIntent(oe[0]);break;case V.OPS.setFlatness:this.setFlatness(oe[0]);break;case V.OPS.setGState:this.setGState(oe[0]);break;case V.OPS.fill:this.fill();break;case V.OPS.eoFill:this.eoFill();break;case V.OPS.stroke:this.stroke();break;case V.OPS.fillStroke:this.fillStroke();break;case V.OPS.eoFillStroke:this.eoFillStroke();break;case V.OPS.clip:this.clip("nonzero");break;case V.OPS.eoClip:this.clip("evenodd");break;case V.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case V.OPS.paintImageXObject:this.paintImageXObject(oe[0]);break;case V.OPS.paintInlineImageXObject:this.paintInlineImageXObject(oe[0]);break;case V.OPS.paintImageMaskXObject:this.paintImageMaskXObject(oe[0]);break;case V.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(oe[0],oe[1]);break;case V.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case V.OPS.closePath:this.closePath();break;case V.OPS.closeStroke:this.closeStroke();break;case V.OPS.closeFillStroke:this.closeFillStroke();break;case V.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case V.OPS.nextLine:this.nextLine();break;case V.OPS.transform:this.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]);break;case V.OPS.constructPath:this.constructPath(oe[0],oe[1]);break;case V.OPS.endPath:this.endPath();break;case 92:this.group(ce.items);break;default:(0,V.warn)(`Unimplemented operator ${de}`);break}}}setWordSpacing(Q){this.current.wordSpacing=Q}setCharSpacing(Q){this.current.charSpacing=Q}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(Q,ce,de,se,oe,me){const Ee=this.current;Ee.textMatrix=Ee.lineMatrix=[Q,ce,de,se,oe,me],Ee.textMatrixScale=Math.hypot(Q,ce),Ee.x=Ee.lineX=0,Ee.y=Ee.lineY=0,Ee.xcoords=[],Ee.ycoords=[],Ee.tspan=this.svgFactory.createElement("svg:tspan"),Ee.tspan.setAttributeNS(null,"font-family",Ee.fontFamily),Ee.tspan.setAttributeNS(null,"font-size",`${he(Ee.fontSize)}px`),Ee.tspan.setAttributeNS(null,"y",he(-Ee.y)),Ee.txtElement=this.svgFactory.createElement("svg:text"),Ee.txtElement.append(Ee.tspan)}beginText(){const Q=this.current;Q.x=Q.lineX=0,Q.y=Q.lineY=0,Q.textMatrix=V.IDENTITY_MATRIX,Q.lineMatrix=V.IDENTITY_MATRIX,Q.textMatrixScale=1,Q.tspan=this.svgFactory.createElement("svg:tspan"),Q.txtElement=this.svgFactory.createElement("svg:text"),Q.txtgrp=this.svgFactory.createElement("svg:g"),Q.xcoords=[],Q.ycoords=[]}moveText(Q,ce){const de=this.current;de.x=de.lineX+=Q,de.y=de.lineY+=ce,de.xcoords=[],de.ycoords=[],de.tspan=this.svgFactory.createElement("svg:tspan"),de.tspan.setAttributeNS(null,"font-family",de.fontFamily),de.tspan.setAttributeNS(null,"font-size",`${he(de.fontSize)}px`),de.tspan.setAttributeNS(null,"y",he(-de.y))}showText(Q){const ce=this.current,de=ce.font,se=ce.fontSize;if(se===0)return;const oe=ce.fontSizeScale,me=ce.charSpacing,Ee=ce.wordSpacing,ke=ce.fontDirection,xe=ce.textHScale*ke,fe=de.vertical,ve=fe?1:-1,ye=de.defaultVMetrics,Ce=se*ce.fontMatrix[0];let pe=0;for(const Ae of Q){if(Ae===null){pe+=ke*Ee;continue}else if(typeof Ae=="number"){pe+=ve*Ae*se/1e3;continue}const Ne=(Ae.isSpace?Ee:0)+me,Ze=Ae.fontChar;let ze,Te,Fe=Ae.width;if(fe){let we;const Ie=Ae.vmetric||ye;we=Ae.vmetric?Ie[1]:Fe*.5,we=-we*Ce;const Be=Ie[2]*Ce;Fe=Ie?-Ie[0]:Fe,ze=we/oe,Te=(pe+Be)/oe}else ze=pe/oe,Te=0;(Ae.isInFont||de.missingFile)&&(ce.xcoords.push(ce.x+ze),fe&&ce.ycoords.push(-ce.y+Te),ce.tspan.textContent+=Ze);let Pe;fe?Pe=Fe*Ce-Ne*ke:Pe=Fe*Ce+Ne*ke,pe+=Pe}ce.tspan.setAttributeNS(null,"x",ce.xcoords.map(he).join(" ")),fe?ce.tspan.setAttributeNS(null,"y",ce.ycoords.map(he).join(" ")):ce.tspan.setAttributeNS(null,"y",he(-ce.y)),fe?ce.y-=pe:ce.x+=pe*xe,ce.tspan.setAttributeNS(null,"font-family",ce.fontFamily),ce.tspan.setAttributeNS(null,"font-size",`${he(ce.fontSize)}px`),ce.fontStyle!==D.fontStyle&&ce.tspan.setAttributeNS(null,"font-style",ce.fontStyle),ce.fontWeight!==D.fontWeight&&ce.tspan.setAttributeNS(null,"font-weight",ce.fontWeight);const _e=ce.textRenderingMode&V.TextRenderingMode.FILL_STROKE_MASK;if(_e===V.TextRenderingMode.FILL||_e===V.TextRenderingMode.FILL_STROKE?(ce.fillColor!==D.fillColor&&ce.tspan.setAttributeNS(null,"fill",ce.fillColor),ce.fillAlpha<1&&ce.tspan.setAttributeNS(null,"fill-opacity",ce.fillAlpha)):ce.textRenderingMode===V.TextRenderingMode.ADD_TO_PATH?ce.tspan.setAttributeNS(null,"fill","transparent"):ce.tspan.setAttributeNS(null,"fill","none"),_e===V.TextRenderingMode.STROKE||_e===V.TextRenderingMode.FILL_STROKE){const Ae=1/(ce.textMatrixScale||1);this._setStrokeAttributes(ce.tspan,Ae)}let Ge=ce.textMatrix;ce.textRise!==0&&(Ge=Ge.slice(),Ge[5]+=ce.textRise),ce.txtElement.setAttributeNS(null,"transform",`${J(Ge)} scale(${he(xe)}, -1)`),ce.txtElement.setAttributeNS(B,"xml:space","preserve"),ce.txtElement.append(ce.tspan),ce.txtgrp.append(ce.txtElement),this._ensureTransformGroup().append(ce.txtElement)}setLeadingMoveText(Q,ce){this.setLeading(-ce),this.moveText(Q,ce)}addFontStyle(Q){if(!Q.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const ce=z(Q.data,Q.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${Q.loadedName}"; src: url(${ce}); }
`}setFont(Q){const ce=this.current,de=this.commonObjs.get(Q[0]);let se=Q[1];ce.font=de,this.embedFonts&&!de.missingFile&&!this.embeddedFonts[de.loadedName]&&(this.addFontStyle(de),this.embeddedFonts[de.loadedName]=de),ce.fontMatrix=de.fontMatrix||V.FONT_IDENTITY_MATRIX;let oe="normal";de.black?oe="900":de.bold&&(oe="bold");const me=de.italic?"italic":"normal";se<0?(se=-se,ce.fontDirection=-1):ce.fontDirection=1,ce.fontSize=se,ce.fontFamily=de.loadedName,ce.fontWeight=oe,ce.fontStyle=me,ce.tspan=this.svgFactory.createElement("svg:tspan"),ce.tspan.setAttributeNS(null,"y",he(-ce.y)),ce.xcoords=[],ce.ycoords=[]}endText(){var Q;const ce=this.current;ce.textRenderingMode&V.TextRenderingMode.ADD_TO_PATH_FLAG&&(Q=ce.txtElement)!==null&&Q!==void 0&&Q.hasChildNodes()&&(ce.element=ce.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(Q){Q>0&&(this.current.lineWidth=Q)}setLineCap(Q){this.current.lineCap=U[Q]}setLineJoin(Q){this.current.lineJoin=K[Q]}setMiterLimit(Q){this.current.miterLimit=Q}setStrokeAlpha(Q){this.current.strokeAlpha=Q}setStrokeRGBColor(Q,ce,de){this.current.strokeColor=V.Util.makeHexColor(Q,ce,de)}setFillAlpha(Q){this.current.fillAlpha=Q}setFillRGBColor(Q,ce,de){this.current.fillColor=V.Util.makeHexColor(Q,ce,de),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(Q){this.current.strokeColor=this._makeColorN_Pattern(Q)}setFillColorN(Q){this.current.fillColor=this._makeColorN_Pattern(Q)}shadingFill(Q){const ce=this.viewport.width,de=this.viewport.height,se=V.Util.inverseTransform(this.transformMatrix),oe=V.Util.applyTransform([0,0],se),me=V.Util.applyTransform([0,de],se),Ee=V.Util.applyTransform([ce,0],se),ke=V.Util.applyTransform([ce,de],se),xe=Math.min(oe[0],me[0],Ee[0],ke[0]),fe=Math.min(oe[1],me[1],Ee[1],ke[1]),ve=Math.max(oe[0],me[0],Ee[0],ke[0]),ye=Math.max(oe[1],me[1],Ee[1],ke[1]),Ce=this.svgFactory.createElement("svg:rect");Ce.setAttributeNS(null,"x",xe),Ce.setAttributeNS(null,"y",fe),Ce.setAttributeNS(null,"width",ve-xe),Ce.setAttributeNS(null,"height",ye-fe),Ce.setAttributeNS(null,"fill",this._makeShadingPattern(Q)),this.current.fillAlpha<1&&Ce.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Ce)}_makeColorN_Pattern(Q){return Q[0]==="TilingPattern"?this._makeTilingPattern(Q):this._makeShadingPattern(Q)}_makeTilingPattern(Q){const ce=Q[1],de=Q[2],se=Q[3]||V.IDENTITY_MATRIX,[oe,me,Ee,ke]=Q[4],xe=Q[5],fe=Q[6],ve=Q[7],ye=`shading${L++}`,[Ce,pe,_e,Ge]=V.Util.normalizeRect([...V.Util.applyTransform([oe,me],se),...V.Util.applyTransform([Ee,ke],se)]),[Ae,Ne]=V.Util.singularValueDecompose2dScale(se),Ze=xe*Ae,ze=fe*Ne,Te=this.svgFactory.createElement("svg:pattern");Te.setAttributeNS(null,"id",ye),Te.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Te.setAttributeNS(null,"width",Ze),Te.setAttributeNS(null,"height",ze),Te.setAttributeNS(null,"x",`${Ce}`),Te.setAttributeNS(null,"y",`${pe}`);const Fe=this.svg,Pe=this.transformMatrix,we=this.current.fillColor,Ie=this.current.strokeColor,Be=this.svgFactory.create(_e-Ce,Ge-pe);if(this.svg=Be,this.transformMatrix=se,ve===2){const Ke=V.Util.makeHexColor(...ce);this.current.fillColor=Ke,this.current.strokeColor=Ke}return this.executeOpTree(this.convertOpList(de)),this.svg=Fe,this.transformMatrix=Pe,this.current.fillColor=we,this.current.strokeColor=Ie,Te.append(Be.childNodes[0]),this.defs.append(Te),`url(#${ye})`}_makeShadingPattern(Q){switch(typeof Q=="string"&&(Q=this.objs.get(Q)),Q[0]){case"RadialAxial":const ce=`shading${L++}`,de=Q[3];let se;switch(Q[1]){case"axial":const oe=Q[4],me=Q[5];se=this.svgFactory.createElement("svg:linearGradient"),se.setAttributeNS(null,"id",ce),se.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),se.setAttributeNS(null,"x1",oe[0]),se.setAttributeNS(null,"y1",oe[1]),se.setAttributeNS(null,"x2",me[0]),se.setAttributeNS(null,"y2",me[1]);break;case"radial":const Ee=Q[4],ke=Q[5],xe=Q[6],fe=Q[7];se=this.svgFactory.createElement("svg:radialGradient"),se.setAttributeNS(null,"id",ce),se.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),se.setAttributeNS(null,"cx",ke[0]),se.setAttributeNS(null,"cy",ke[1]),se.setAttributeNS(null,"r",fe),se.setAttributeNS(null,"fx",Ee[0]),se.setAttributeNS(null,"fy",Ee[1]),se.setAttributeNS(null,"fr",xe);break;default:throw new Error(`Unknown RadialAxial type: ${Q[1]}`)}for(const oe of de){const me=this.svgFactory.createElement("svg:stop");me.setAttributeNS(null,"offset",oe[0]),me.setAttributeNS(null,"stop-color",oe[1]),se.append(me)}return this.defs.append(se),`url(#${ce})`;case"Mesh":return(0,V.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${Q[0]}`)}}setDash(Q,ce){this.current.dashArray=Q,this.current.dashPhase=ce}constructPath(Q,ce){const de=this.current;let se=de.x,oe=de.y,me=[],Ee=0;for(const ke of Q)switch(ke|0){case V.OPS.rectangle:se=ce[Ee++],oe=ce[Ee++];const xe=ce[Ee++],fe=ce[Ee++],ve=se+xe,ye=oe+fe;me.push("M",he(se),he(oe),"L",he(ve),he(oe),"L",he(ve),he(ye),"L",he(se),he(ye),"Z");break;case V.OPS.moveTo:se=ce[Ee++],oe=ce[Ee++],me.push("M",he(se),he(oe));break;case V.OPS.lineTo:se=ce[Ee++],oe=ce[Ee++],me.push("L",he(se),he(oe));break;case V.OPS.curveTo:se=ce[Ee+4],oe=ce[Ee+5],me.push("C",he(ce[Ee]),he(ce[Ee+1]),he(ce[Ee+2]),he(ce[Ee+3]),he(se),he(oe)),Ee+=6;break;case V.OPS.curveTo2:me.push("C",he(se),he(oe),he(ce[Ee]),he(ce[Ee+1]),he(ce[Ee+2]),he(ce[Ee+3])),se=ce[Ee+2],oe=ce[Ee+3],Ee+=4;break;case V.OPS.curveTo3:se=ce[Ee+2],oe=ce[Ee+3],me.push("C",he(ce[Ee]),he(ce[Ee+1]),he(se),he(oe),he(se),he(oe)),Ee+=4;break;case V.OPS.closePath:me.push("Z");break}me=me.join(" "),de.path&&Q.length>0&&Q[0]!==V.OPS.rectangle&&Q[0]!==V.OPS.moveTo?me=de.path.getAttributeNS(null,"d")+me:(de.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(de.path)),de.path.setAttributeNS(null,"d",me),de.path.setAttributeNS(null,"fill","none"),de.element=de.path,de.setCurrentPoint(se,oe)}endPath(){const Q=this.current;if(Q.path=null,!this.pendingClip)return;if(!Q.element){this.pendingClip=null;return}const ce=`clippath${W++}`,de=this.svgFactory.createElement("svg:clipPath");de.setAttributeNS(null,"id",ce),de.setAttributeNS(null,"transform",J(this.transformMatrix));const se=Q.element.cloneNode(!0);if(this.pendingClip==="evenodd"?se.setAttributeNS(null,"clip-rule","evenodd"):se.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,de.append(se),this.defs.append(de),Q.activeClipUrl){Q.clipGroup=null;for(const oe of this.extraStack)oe.clipGroup=null;de.setAttributeNS(null,"clip-path",Q.activeClipUrl)}Q.activeClipUrl=`url(#${ce})`,this.tgrp=null}clip(Q){this.pendingClip=Q}closePath(){const Q=this.current;if(Q.path){const ce=`${Q.path.getAttributeNS(null,"d")}Z`;Q.path.setAttributeNS(null,"d",ce)}}setLeading(Q){this.current.leading=-Q}setTextRise(Q){this.current.textRise=Q}setTextRenderingMode(Q){this.current.textRenderingMode=Q}setHScale(Q){this.current.textHScale=Q/100}setRenderingIntent(Q){}setFlatness(Q){}setGState(Q){for(const[ce,de]of Q)switch(ce){case"LW":this.setLineWidth(de);break;case"LC":this.setLineCap(de);break;case"LJ":this.setLineJoin(de);break;case"ML":this.setMiterLimit(de);break;case"D":this.setDash(de[0],de[1]);break;case"RI":this.setRenderingIntent(de);break;case"FL":this.setFlatness(de);break;case"Font":this.setFont(de);break;case"CA":this.setStrokeAlpha(de);break;case"ca":this.setFillAlpha(de);break;default:(0,V.warn)(`Unimplemented graphic state operator ${ce}`);break}}fill(){const Q=this.current;Q.element&&(Q.element.setAttributeNS(null,"fill",Q.fillColor),Q.element.setAttributeNS(null,"fill-opacity",Q.fillAlpha),this.endPath())}stroke(){const Q=this.current;Q.element&&(this._setStrokeAttributes(Q.element),Q.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(Q){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const de=this.current;let se=de.dashArray;ce!==1&&se.length>0&&(se=se.map(function(oe){return ce*oe})),Q.setAttributeNS(null,"stroke",de.strokeColor),Q.setAttributeNS(null,"stroke-opacity",de.strokeAlpha),Q.setAttributeNS(null,"stroke-miterlimit",he(de.miterLimit)),Q.setAttributeNS(null,"stroke-linecap",de.lineCap),Q.setAttributeNS(null,"stroke-linejoin",de.lineJoin),Q.setAttributeNS(null,"stroke-width",he(ce*de.lineWidth)+"px"),Q.setAttributeNS(null,"stroke-dasharray",se.map(he).join(" ")),Q.setAttributeNS(null,"stroke-dashoffset",he(ce*de.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x","0"),Q.setAttributeNS(null,"y","0"),Q.setAttributeNS(null,"width","1px"),Q.setAttributeNS(null,"height","1px"),Q.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(Q)}paintImageXObject(Q){const ce=Q.startsWith("g_")?this.commonObjs.get(Q):this.objs.get(Q);if(!ce){(0,V.warn)(`Dependent image with object ID ${Q} is not ready yet`);return}this.paintInlineImageXObject(ce)}paintInlineImageXObject(Q,ce){const de=Q.width,se=Q.height,oe=e(Q,this.forceDataSchema,!!ce),me=this.svgFactory.createElement("svg:rect");me.setAttributeNS(null,"x","0"),me.setAttributeNS(null,"y","0"),me.setAttributeNS(null,"width",he(de)),me.setAttributeNS(null,"height",he(se)),this.current.element=me,this.clip("nonzero");const Ee=this.svgFactory.createElement("svg:image");Ee.setAttributeNS(R,"xlink:href",oe),Ee.setAttributeNS(null,"x","0"),Ee.setAttributeNS(null,"y",he(-se)),Ee.setAttributeNS(null,"width",he(de)+"px"),Ee.setAttributeNS(null,"height",he(se)+"px"),Ee.setAttributeNS(null,"transform",`scale(${he(1/de)} ${he(-1/se)})`),ce?ce.append(Ee):this._ensureTransformGroup().append(Ee)}paintImageMaskXObject(Q){const ce=this.current,de=Q.width,se=Q.height,oe=ce.fillColor;ce.maskId=`mask${X++}`;const me=this.svgFactory.createElement("svg:mask");me.setAttributeNS(null,"id",ce.maskId);const Ee=this.svgFactory.createElement("svg:rect");Ee.setAttributeNS(null,"x","0"),Ee.setAttributeNS(null,"y","0"),Ee.setAttributeNS(null,"width",he(de)),Ee.setAttributeNS(null,"height",he(se)),Ee.setAttributeNS(null,"fill",oe),Ee.setAttributeNS(null,"mask",`url(#${ce.maskId})`),this.defs.append(me),this._ensureTransformGroup().append(Ee),this.paintInlineImageXObject(Q,me)}paintFormXObjectBegin(Q,ce){if(Array.isArray(Q)&&Q.length===6&&this.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5]),ce){const de=ce[2]-ce[0],se=ce[3]-ce[1],oe=this.svgFactory.createElement("svg:rect");oe.setAttributeNS(null,"x",ce[0]),oe.setAttributeNS(null,"y",ce[1]),oe.setAttributeNS(null,"width",he(de)),oe.setAttributeNS(null,"height",he(se)),this.current.element=oe,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(Q){const ce=this.svgFactory.create(Q.width,Q.height),de=this.svgFactory.createElement("svg:defs");ce.append(de),this.defs=de;const se=this.svgFactory.createElement("svg:g");return se.setAttributeNS(null,"transform",J(Q.transform)),ce.append(se),this.svg=se,ce}_ensureClipGroup(){if(!this.current.clipGroup){const Q=this.svgFactory.createElement("svg:g");Q.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(Q),this.current.clipGroup=Q}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",J(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.PDFNodeStream=void 0;var G=M(1),V=M(158);const q=require$$7,$=require$$7,D=require$$7,B=require$$7,R=/^file:\/\/\/[a-zA-Z]:\//;function U(X){const L=B.parse(X);return L.protocol==="file:"||L.host?L:/^[a-z]:[/\\]/i.test(X)?B.parse(`file:///${X}`):(L.host||(L.protocol="file:"),L)}class K{constructor(L){this.source=L,this.url=U(L.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&L.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var L,Q;return(L=(Q=this._fullRequestReader)===null||Q===void 0?void 0:Q._loaded)!==null&&L!==void 0?L:0}getFullReader(){return(0,G.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new J(this):new ie(this),this._fullRequestReader}getRangeReader(L,Q){if(Q<=this._progressiveDataLength)return null;const ce=this.isFsUrl?new W(this,L,Q):new he(this,L,Q);return this._rangeRequestReaders.push(ce),ce}cancelAllRequests(L){this._fullRequestReader&&this._fullRequestReader.cancel(L);for(const Q of this._rangeRequestReaders.slice(0))Q.cancel(L)}}m.PDFNodeStream=K;class z{constructor(L){this._url=L.url,this._done=!1,this._storedError=null,this.onProgress=null;const Q=L.source;this._contentLength=Q.length,this._loaded=0,this._filename=null,this._disableRange=Q.disableRange||!1,this._rangeChunkSize=Q.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!Q.disableStream,this._isRangeSupported=!Q.disableRange,this._readableStream=null,this._readCapability=(0,G.createPromiseCapability)(),this._headersCapability=(0,G.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const L=this._readableStream.read();return L===null?(this._readCapability=(0,G.createPromiseCapability)(),this.read()):(this._loaded+=L.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(L).buffer,done:!1})}cancel(L){if(!this._readableStream){this._error(L);return}this._readableStream.destroy(L)}_error(L){this._storedError=L,this._readCapability.resolve()}_setReadableStream(L){this._readableStream=L,L.on("readable",()=>{this._readCapability.resolve()}),L.on("end",()=>{L.destroy(),this._done=!0,this._readCapability.resolve()}),L.on("error",Q=>{this._error(Q)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new G.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class e{constructor(L){this._url=L.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,G.createPromiseCapability)();const Q=L.source;this._isStreamingSupported=!Q.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const L=this._readableStream.read();return L===null?(this._readCapability=(0,G.createPromiseCapability)(),this.read()):(this._loaded+=L.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(L).buffer,done:!1})}cancel(L){if(!this._readableStream){this._error(L);return}this._readableStream.destroy(L)}_error(L){this._storedError=L,this._readCapability.resolve()}_setReadableStream(L){this._readableStream=L,L.on("readable",()=>{this._readCapability.resolve()}),L.on("end",()=>{L.destroy(),this._done=!0,this._readCapability.resolve()}),L.on("error",Q=>{this._error(Q)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function ae(X,L){return{protocol:X.protocol,auth:X.auth,host:X.hostname,port:X.port,path:X.path,method:"GET",headers:L}}class ie extends z{constructor(L){super(L);const Q=ce=>{if(ce.statusCode===404){const me=new G.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=me,this._headersCapability.reject(me);return}this._headersCapability.resolve(),this._setReadableStream(ce);const de=me=>this._readableStream.headers[me.toLowerCase()],{allowRangeRequests:se,suggestedLength:oe}=(0,V.validateRangeRequestCapabilities)({getResponseHeader:de,isHttp:L.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=se,this._contentLength=oe||this._contentLength,this._filename=(0,V.extractFilenameFromHeader)(de)};this._request=null,this._url.protocol==="http:"?this._request=$.request(ae(this._url,L.httpHeaders),Q):this._request=D.request(ae(this._url,L.httpHeaders),Q),this._request.on("error",ce=>{this._storedError=ce,this._headersCapability.reject(ce)}),this._request.end()}}class he extends e{constructor(L,Q,ce){super(L),this._httpHeaders={};for(const se in L.httpHeaders){const oe=L.httpHeaders[se];typeof oe>"u"||(this._httpHeaders[se]=oe)}this._httpHeaders.Range=`bytes=${Q}-${ce-1}`;const de=se=>{if(se.statusCode===404){const oe=new G.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=oe;return}this._setReadableStream(se)};this._request=null,this._url.protocol==="http:"?this._request=$.request(ae(this._url,this._httpHeaders),de):this._request=D.request(ae(this._url,this._httpHeaders),de),this._request.on("error",se=>{this._storedError=se}),this._request.end()}}class J extends z{constructor(L){super(L);let Q=decodeURIComponent(this._url.path);R.test(this._url.href)&&(Q=Q.replace(/^\//,"")),q.lstat(Q,(ce,de)=>{if(ce){ce.code==="ENOENT"&&(ce=new G.MissingPDFException(`Missing PDF "${Q}".`)),this._storedError=ce,this._headersCapability.reject(ce);return}this._contentLength=de.size,this._setReadableStream(q.createReadStream(Q)),this._headersCapability.resolve()})}}class W extends e{constructor(L,Q,ce){super(L);let de=decodeURIComponent(this._url.path);R.test(this._url.href)&&(de=de.replace(/^\//,"")),this._setReadableStream(q.createReadStream(de,{start:Q,end:ce-1}))}}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.createResponseStatusError=B,m.extractFilenameFromHeader=D,m.validateRangeRequestCapabilities=$,m.validateResponseStatus=R;var G=M(1),V=M(159),q=M(133);function $(U){let{getResponseHeader:K,isHttp:z,rangeChunkSize:e,disableRange:ae}=U;const ie={allowRangeRequests:!1,suggestedLength:void 0},he=parseInt(K("Content-Length"),10);return!Number.isInteger(he)||(ie.suggestedLength=he,he<=2*e)||ae||!z||K("Accept-Ranges")!=="bytes"||(K("Content-Encoding")||"identity")!=="identity"||(ie.allowRangeRequests=!0),ie}function D(U){const K=U("Content-Disposition");if(K){let z=(0,V.getFilenameFromContentDispositionHeader)(K);if(z.includes("%"))try{z=decodeURIComponent(z)}catch{}if((0,q.isPdfFile)(z))return z}return null}function B(U,K){return U===404||U===0&&K.startsWith("file:")?new G.MissingPDFException('Missing PDF "'+K+'".'):new G.UnexpectedResponseException(`Unexpected server response (${U}) while retrieving PDF "${K}".`,U)}function R(U){return U===200||U===206}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.getFilenameFromContentDispositionHeader=V;var G=M(1);function V(q){let $=!0,D=B("filename\\*","i").exec(q);if(D){D=D[1];let ie=z(D);return ie=unescape(ie),ie=e(ie),ie=ae(ie),U(ie)}if(D=K(q),D){const ie=ae(D);return U(ie)}if(D=B("filename","i").exec(q),D){D=D[1];let ie=z(D);return ie=ae(ie),U(ie)}function B(ie,he){return new RegExp("(?:^|;)\\s*"+ie+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',he)}function R(ie,he){if(ie){if(!/^[\x00-\xFF]+$/.test(he))return he;try{const J=new TextDecoder(ie,{fatal:!0}),W=(0,G.stringToBytes)(he);he=J.decode(W),$=!1}catch{}}return he}function U(ie){return $&&/[\x80-\xff]/.test(ie)&&(ie=R("utf-8",ie),$&&(ie=R("iso-8859-1",ie))),ie}function K(ie){const he=[];let J;const W=B("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(J=W.exec(ie))!==null;){let[,L,Q,ce]=J;if(L=parseInt(L,10),L in he){if(L===0)break;continue}he[L]=[Q,ce]}const X=[];for(let L=0;L<he.length&&L in he;++L){let[Q,ce]=he[L];ce=z(ce),Q&&(ce=unescape(ce),L===0&&(ce=e(ce))),X.push(ce)}return X.join("")}function z(ie){if(ie.startsWith('"')){const he=ie.slice(1).split('\\"');for(let J=0;J<he.length;++J){const W=he[J].indexOf('"');W!==-1&&(he[J]=he[J].slice(0,W),he.length=J+1),he[J]=he[J].replace(/\\(.)/g,"$1")}ie=he.join('"')}return ie}function e(ie){const he=ie.indexOf("'");if(he===-1)return ie;const J=ie.slice(0,he),X=ie.slice(he+1).replace(/^[^']*'/,"");return R(J,X)}function ae(ie){return!ie.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(ie)?ie:ie.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(he,J,W,X){if(W==="q"||W==="Q")return X=X.replace(/_/g," "),X=X.replace(/=([0-9a-fA-F]{2})/g,function(L,Q){return String.fromCharCode(parseInt(Q,16))}),R(J,X);try{X=atob(X)}catch{}return R(J,X)})}return""}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.PDFNetworkStream=void 0;var G=M(1),V=M(158);const q=200,$=206;function D(z){const e=z.response;return typeof e!="string"?e:(0,G.stringToBytes)(e).buffer}class B{constructor(e){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&ae.httpHeaders||Object.create(null),this.withCredentials=ae.withCredentials||!1,this.getXhr=ae.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,ae,ie){const he={begin:e,end:ae};for(const J in ie)he[J]=ie[J];return this.request(he)}requestFull(e){return this.request(e)}request(e){const ae=this.getXhr(),ie=this.currXhrId++,he=this.pendingRequests[ie]={xhr:ae};ae.open("GET",this.url),ae.withCredentials=this.withCredentials;for(const J in this.httpHeaders){const W=this.httpHeaders[J];typeof W>"u"||ae.setRequestHeader(J,W)}return this.isHttp&&"begin"in e&&"end"in e?(ae.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),he.expectedStatus=$):he.expectedStatus=q,ae.responseType="arraybuffer",e.onError&&(ae.onerror=function(J){e.onError(ae.status)}),ae.onreadystatechange=this.onStateChange.bind(this,ie),ae.onprogress=this.onProgress.bind(this,ie),he.onHeadersReceived=e.onHeadersReceived,he.onDone=e.onDone,he.onError=e.onError,he.onProgress=e.onProgress,ae.send(null),ie}onProgress(e,ae){var ie;const he=this.pendingRequests[e];he&&((ie=he.onProgress)===null||ie===void 0||ie.call(he,ae))}onStateChange(e,ae){const ie=this.pendingRequests[e];if(!ie)return;const he=ie.xhr;if(he.readyState>=2&&ie.onHeadersReceived&&(ie.onHeadersReceived(),delete ie.onHeadersReceived),he.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],he.status===0&&this.isHttp){var J;(J=ie.onError)===null||J===void 0||J.call(ie,he.status);return}const W=he.status||q;if(!(W===q&&ie.expectedStatus===$)&&W!==ie.expectedStatus){var L;(L=ie.onError)===null||L===void 0||L.call(ie,he.status);return}const Q=D(he);if(W===$){const de=he.getResponseHeader("Content-Range"),se=/bytes (\d+)-(\d+)\/(\d+)/.exec(de);ie.onDone({begin:parseInt(se[1],10),chunk:Q})}else if(Q)ie.onDone({begin:0,chunk:Q});else{var ce;(ce=ie.onError)===null||ce===void 0||ce.call(ie,he.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const ae=this.pendingRequests[e].xhr;delete this.pendingRequests[e],ae.abort()}}class R{constructor(e){this._source=e,this._manager=new B(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const ae=this._rangeRequestReaders.indexOf(e);ae>=0&&this._rangeRequestReaders.splice(ae,1)}getFullReader(){return(0,G.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new U(this._manager,this._source),this._fullRequestReader}getRangeReader(e,ae){const ie=new K(this._manager,e,ae);return ie.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(ie),ie}cancelAllRequests(e){var ae;(ae=this._fullRequestReader)===null||ae===void 0||ae.cancel(e);for(const ie of this._rangeRequestReaders.slice(0))ie.cancel(e)}}m.PDFNetworkStream=R;class U{constructor(e,ae){this._manager=e;const ie={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ae.url,this._fullRequestId=e.requestFull(ie),this._headersReceivedCapability=(0,G.createPromiseCapability)(),this._disableRange=ae.disableRange||!1,this._contentLength=ae.length,this._rangeChunkSize=ae.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,ae=this._manager.getRequestXhr(e),ie=W=>ae.getResponseHeader(W),{allowRangeRequests:he,suggestedLength:J}=(0,V.validateRangeRequestCapabilities)({getResponseHeader:ie,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});he&&(this._isRangeSupported=!0),this._contentLength=J||this._contentLength,this._filename=(0,V.extractFilenameFromHeader)(ie),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const ae of this._requests)ae.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,V.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const ae of this._requests)ae.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var ae;(ae=this.onProgress)===null||ae===void 0||ae.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,G.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const ae of this._requests)ae.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class K{constructor(e,ae,ie){this._manager=e;const he={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(ae,ie,he),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)===null||e===void 0||e.call(this,this)}_onDone(e){const ae=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:ae,done:!1}):this._queuedChunk=ae,this._done=!0;for(const ie of this._requests)ie.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,V.createResponseStatusError)(e,this._url);for(const ae of this._requests)ae.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){if(!this.isStreamingSupported){var ae;(ae=this.onProgress)===null||ae===void 0||ae.call(this,{loaded:e.loaded})}}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const ae=this._queuedChunk;return this._queuedChunk=null,{value:ae,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,G.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const ae of this._requests)ae.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(k,m,M)=>{Object.defineProperty(m,"__esModule",{value:!0}),m.PDFFetchStream=void 0;var G=M(1),V=M(158);function q(U,K,z){return{method:"GET",headers:U,signal:z.signal,mode:"cors",credentials:K?"include":"same-origin",redirect:"follow"}}function $(U){const K=new Headers;for(const z in U){const e=U[z];typeof e>"u"||K.append(z,e)}return K}class D{constructor(K){this.source=K,this.isHttp=/^https?:/i.test(K.url),this.httpHeaders=this.isHttp&&K.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var K,z;return(K=(z=this._fullRequestReader)===null||z===void 0?void 0:z._loaded)!==null&&K!==void 0?K:0}getFullReader(){return(0,G.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new B(this),this._fullRequestReader}getRangeReader(K,z){if(z<=this._progressiveDataLength)return null;const e=new R(this,K,z);return this._rangeRequestReaders.push(e),e}cancelAllRequests(K){this._fullRequestReader&&this._fullRequestReader.cancel(K);for(const z of this._rangeRequestReaders.slice(0))z.cancel(K)}}m.PDFFetchStream=D;class B{constructor(K){this._stream=K,this._reader=null,this._loaded=0,this._filename=null;const z=K.source;this._withCredentials=z.withCredentials||!1,this._contentLength=z.length,this._headersCapability=(0,G.createPromiseCapability)(),this._disableRange=z.disableRange||!1,this._rangeChunkSize=z.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!z.disableStream,this._isRangeSupported=!z.disableRange,this._headers=$(this._stream.httpHeaders);const e=z.url;fetch(e,q(this._headers,this._withCredentials,this._abortController)).then(ae=>{if(!(0,V.validateResponseStatus)(ae.status))throw(0,V.createResponseStatusError)(ae.status,e);this._reader=ae.body.getReader(),this._headersCapability.resolve();const ie=W=>ae.headers.get(W),{allowRangeRequests:he,suggestedLength:J}=(0,V.validateRangeRequestCapabilities)({getResponseHeader:ie,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=he,this._contentLength=J||this._contentLength,this._filename=(0,V.extractFilenameFromHeader)(ie),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new G.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:K,done:z}=await this._reader.read();return z?{value:K,done:z}:(this._loaded+=K.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(K).buffer,done:!1})}cancel(K){this._reader&&this._reader.cancel(K),this._abortController.abort()}}class R{constructor(K,z,e){this._stream=K,this._reader=null,this._loaded=0;const ae=K.source;this._withCredentials=ae.withCredentials||!1,this._readCapability=(0,G.createPromiseCapability)(),this._isStreamingSupported=!ae.disableStream,this._abortController=new AbortController,this._headers=$(this._stream.httpHeaders),this._headers.append("Range",`bytes=${z}-${e-1}`);const ie=ae.url;fetch(ie,q(this._headers,this._withCredentials,this._abortController)).then(he=>{if(!(0,V.validateResponseStatus)(he.status))throw(0,V.createResponseStatusError)(he.status,ie);this._readCapability.resolve(),this._reader=he.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:K,done:z}=await this._reader.read();return z?{value:K,done:z}:(this._loaded+=K.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(K).buffer,done:!1})}cancel(K){this._reader&&this._reader.cancel(K),this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(k){var m=__webpack_module_cache__[k];if(m!==void 0)return m.exports;var M=__webpack_module_cache__[k]={exports:{}};return __webpack_modules__[k](M,M.exports,__w_pdfjs_require__),M.exports}var __webpack_exports__={};return(()=>{var k=__webpack_exports__;Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"AnnotationEditorLayer",{enumerable:!0,get:function(){return V.AnnotationEditorLayer}}),Object.defineProperty(k,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return m.AnnotationEditorParamsType}}),Object.defineProperty(k,"AnnotationEditorType",{enumerable:!0,get:function(){return m.AnnotationEditorType}}),Object.defineProperty(k,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return q.AnnotationEditorUIManager}}),Object.defineProperty(k,"AnnotationLayer",{enumerable:!0,get:function(){return $.AnnotationLayer}}),Object.defineProperty(k,"AnnotationMode",{enumerable:!0,get:function(){return m.AnnotationMode}}),Object.defineProperty(k,"CMapCompressionType",{enumerable:!0,get:function(){return m.CMapCompressionType}}),Object.defineProperty(k,"GlobalWorkerOptions",{enumerable:!0,get:function(){return D.GlobalWorkerOptions}}),Object.defineProperty(k,"InvalidPDFException",{enumerable:!0,get:function(){return m.InvalidPDFException}}),Object.defineProperty(k,"LoopbackPort",{enumerable:!0,get:function(){return M.LoopbackPort}}),Object.defineProperty(k,"MissingPDFException",{enumerable:!0,get:function(){return m.MissingPDFException}}),Object.defineProperty(k,"OPS",{enumerable:!0,get:function(){return m.OPS}}),Object.defineProperty(k,"PDFDataRangeTransport",{enumerable:!0,get:function(){return M.PDFDataRangeTransport}}),Object.defineProperty(k,"PDFDateString",{enumerable:!0,get:function(){return G.PDFDateString}}),Object.defineProperty(k,"PDFWorker",{enumerable:!0,get:function(){return M.PDFWorker}}),Object.defineProperty(k,"PasswordResponses",{enumerable:!0,get:function(){return m.PasswordResponses}}),Object.defineProperty(k,"PermissionFlag",{enumerable:!0,get:function(){return m.PermissionFlag}}),Object.defineProperty(k,"PixelsPerInch",{enumerable:!0,get:function(){return G.PixelsPerInch}}),Object.defineProperty(k,"RenderingCancelledException",{enumerable:!0,get:function(){return G.RenderingCancelledException}}),Object.defineProperty(k,"SVGGraphics",{enumerable:!0,get:function(){return U.SVGGraphics}}),Object.defineProperty(k,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return m.UNSUPPORTED_FEATURES}}),Object.defineProperty(k,"UnexpectedResponseException",{enumerable:!0,get:function(){return m.UnexpectedResponseException}}),Object.defineProperty(k,"Util",{enumerable:!0,get:function(){return m.Util}}),Object.defineProperty(k,"VerbosityLevel",{enumerable:!0,get:function(){return m.VerbosityLevel}}),Object.defineProperty(k,"XfaLayer",{enumerable:!0,get:function(){return K.XfaLayer}}),Object.defineProperty(k,"build",{enumerable:!0,get:function(){return M.build}}),Object.defineProperty(k,"createPromiseCapability",{enumerable:!0,get:function(){return m.createPromiseCapability}}),Object.defineProperty(k,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return m.createValidAbsoluteUrl}}),Object.defineProperty(k,"getDocument",{enumerable:!0,get:function(){return M.getDocument}}),Object.defineProperty(k,"getFilenameFromUrl",{enumerable:!0,get:function(){return G.getFilenameFromUrl}}),Object.defineProperty(k,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return G.getPdfFilenameFromUrl}}),Object.defineProperty(k,"getXfaPageViewport",{enumerable:!0,get:function(){return G.getXfaPageViewport}}),Object.defineProperty(k,"isPdfFile",{enumerable:!0,get:function(){return G.isPdfFile}}),Object.defineProperty(k,"loadScript",{enumerable:!0,get:function(){return G.loadScript}}),Object.defineProperty(k,"renderTextLayer",{enumerable:!0,get:function(){return R.renderTextLayer}}),Object.defineProperty(k,"shadow",{enumerable:!0,get:function(){return m.shadow}}),Object.defineProperty(k,"version",{enumerable:!0,get:function(){return M.version}});var m=__w_pdfjs_require__(1),M=__w_pdfjs_require__(129),G=__w_pdfjs_require__(133),V=__w_pdfjs_require__(147),q=__w_pdfjs_require__(132),$=__w_pdfjs_require__(152),D=__w_pdfjs_require__(140),B=__w_pdfjs_require__(3),R=__w_pdfjs_require__(155),U=__w_pdfjs_require__(156),K=__w_pdfjs_require__(154);if(B.isNodeJS){const{PDFNodeStream:z}=__w_pdfjs_require__(157);(0,M.setPDFNetworkStreamFactory)(e=>new z(e))}else{const{PDFNetworkStream:z}=__w_pdfjs_require__(160),{PDFFetchStream:e}=__w_pdfjs_require__(161);(0,M.setPDFNetworkStreamFactory)(ae=>(0,G.isValidFetchUrl)(ae.url)?new e(ae):new z(ae))}})(),__webpack_exports__})())}(pdf)),pdf.exports}var pdfExports=requirePdf(),pdf_worker_entry={},pdf_worker={exports:{}};(function(k,m){(function(G,V){k.exports=V()})(globalThis,()=>(()=>{var M=[,($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.WorkerTask=D.WorkerMessageHandler=void 0;var R=B(2),U=B(130),K=B(131),z=B(133),e=B(196),ae=B(190),ie=B(4),he=B(227),J=B(228);class W{constructor(ce){this.name=ce,this.terminated=!1,this._capability=(0,R.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}D.WorkerTask=W;class X{static setup(ce,de){let se=!1;ce.on("test",function(me){se||(se=!0,ce.send("test",me instanceof Uint8Array))}),ce.on("configure",function(me){(0,R.setVerbosityLevel)(me.verbosity)}),ce.on("GetDocRequest",function(me){return X.createDocumentHandler(me,de)})}static createDocumentHandler(ce,de){let se,oe=!1,me=null;const Ee=[],ke=(0,R.getVerbosityLevel)(),xe=ce.apiVersion,fe="2.16.105";if(xe!==fe)throw new Error(`The API version "${xe}" does not match the Worker version "${fe}".`);const ve=[];for(const Fe in[])ve.push(Fe);if(ve.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+ve.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if(typeof ReadableStream>"u"){const Fe="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";throw ie.isNodeJS?new Error(Fe+"please use a `legacy`-build instead."):new Error(Fe+"please update to a supported browser.")}const ye=ce.docId,Ce=ce.docBaseUrl,pe=ce.docId+"_worker";let _e=new he.MessageHandler(pe,ye,de);function Ge(){if(oe)throw new Error("Worker was terminated")}function Ae(Fe){Ee.push(Fe)}function Ne(Fe){Fe.finish();const Pe=Ee.indexOf(Fe);Ee.splice(Pe,1)}async function Ze(Fe){await se.ensureDoc("checkHeader"),await se.ensureDoc("parseStartXRef"),await se.ensureDoc("parse",[Fe]),await se.ensureDoc("checkFirstPage",[Fe]),await se.ensureDoc("checkLastPage",[Fe]);const Pe=await se.ensureDoc("isPureXfa");if(Pe){const Ke=new W("loadXfaFonts");Ae(Ke),await Promise.all([se.loadXfaFonts(_e,Ke).catch(Ve=>{}).then(()=>Ne(Ke)),se.loadXfaImages()])}const[we,Ie]=await Promise.all([se.ensureDoc("numPages"),se.ensureDoc("fingerprints")]),Be=Pe?await se.ensureDoc("htmlForXfa"):null;return{numPages:we,fingerprints:Ie,htmlForXfa:Be}}function ze(Fe,Pe,we){const Ie=(0,R.createPromiseCapability)();let Be;const Ke=Fe.source;if(Ke.data){try{Be=new z.LocalPdfManager(ye,Ke.data,Ke.password,_e,Pe,we,Ce),Ie.resolve(Be)}catch($e){Ie.reject($e)}return Ie.promise}let Ve,je=[];try{Ve=new J.PDFWorkerStream(_e)}catch($e){return Ie.reject($e),Ie.promise}const Le=Ve.getFullReader();Le.headersReady.then(function(){if(!Le.isRangeSupported)return;const $e=Ke.disableAutoFetch||Le.isStreamingSupported;Be=new z.NetworkPdfManager(ye,Ve,{msgHandler:_e,password:Ke.password,length:Le.contentLength,disableAutoFetch:$e,rangeChunkSize:Ke.rangeChunkSize},Pe,we,Ce);for(const Ye of je)Be.sendProgressiveData(Ye);je=[],Ie.resolve(Be),me=null}).catch(function($e){Ie.reject($e),me=null});let et=0;const Qe=function(){const $e=(0,R.arraysToBytes)(je);Ke.length&&$e.length!==Ke.length&&(0,R.warn)("reported HTTP length is different from actual");try{Be=new z.LocalPdfManager(ye,$e,Ke.password,_e,Pe,we,Ce),Ie.resolve(Be)}catch(Ye){Ie.reject(Ye)}je=[]};return new Promise(function($e,Ye){const tt=function(ot){let{value:st,done:dt}=ot;try{if(Ge(),dt){Be||Qe(),me=null;return}et+=(0,R.arrayByteLength)(st),Le.isStreamingSupported||_e.send("DocProgress",{loaded:et,total:Math.max(et,Le.contentLength||0)}),Be?Be.sendProgressiveData(st):je.push(st),Le.read().then(tt,Ye)}catch(ct){Ye(ct)}};Le.read().then(tt,Ye)}).catch(function($e){Ie.reject($e),me=null}),me=function($e){Ve.cancelAllRequests($e)},Ie.promise}function Te(Fe){function Pe(Ke){Ge(),_e.send("GetDoc",{pdfInfo:Ke})}function we(Ke){if(Ge(),Ke instanceof R.PasswordException){const Ve=new W(`PasswordException: response ${Ke.code}`);Ae(Ve),_e.sendWithPromise("PasswordRequest",Ke).then(function(je){let{password:Le}=je;Ne(Ve),se.updatePassword(Le),Ie()}).catch(function(){Ne(Ve),_e.send("DocException",Ke)})}else Ke instanceof R.InvalidPDFException||Ke instanceof R.MissingPDFException||Ke instanceof R.UnexpectedResponseException||Ke instanceof R.UnknownErrorException?_e.send("DocException",Ke):_e.send("DocException",new R.UnknownErrorException(Ke.message,Ke.toString()))}function Ie(){Ge(),Ze(!1).then(Pe,function(Ke){if(Ge(),!(Ke instanceof K.XRefParseException)){we(Ke);return}se.requestLoadedStream(),se.onLoadedStream().then(function(){Ge(),Ze(!0).then(Pe,we)})})}Ge();const Be={maxImageSize:Fe.maxImageSize,disableFontFace:Fe.disableFontFace,ignoreErrors:Fe.ignoreErrors,isEvalSupported:Fe.isEvalSupported,fontExtraProperties:Fe.fontExtraProperties,useSystemFonts:Fe.useSystemFonts,cMapUrl:Fe.cMapUrl,standardFontDataUrl:Fe.standardFontDataUrl};ze(Fe,Be,Fe.enableXfa).then(function(Ke){if(oe)throw Ke.terminate(new R.AbortException("Worker was terminated.")),new Error("Worker was terminated");se=Ke,se.onLoadedStream().then(function(Ve){_e.send("DataLoaded",{length:Ve.bytes.byteLength})})}).then(Ie,we)}return _e.on("GetPage",function(Pe){return se.getPage(Pe.pageIndex).then(function(we){return Promise.all([se.ensure(we,"rotate"),se.ensure(we,"ref"),se.ensure(we,"userUnit"),se.ensure(we,"view")]).then(function(Ie){let[Be,Ke,Ve,je]=Ie;return{rotate:Be,ref:Ke,userUnit:Ve,view:je}})})}),_e.on("GetPageIndex",function(Pe){const we=U.Ref.get(Pe.num,Pe.gen);return se.ensureCatalog("getPageIndex",[we])}),_e.on("GetDestinations",function(Pe){return se.ensureCatalog("destinations")}),_e.on("GetDestination",function(Pe){return se.ensureCatalog("getDestination",[Pe.id])}),_e.on("GetPageLabels",function(Pe){return se.ensureCatalog("pageLabels")}),_e.on("GetPageLayout",function(Pe){return se.ensureCatalog("pageLayout")}),_e.on("GetPageMode",function(Pe){return se.ensureCatalog("pageMode")}),_e.on("GetViewerPreferences",function(Fe){return se.ensureCatalog("viewerPreferences")}),_e.on("GetOpenAction",function(Fe){return se.ensureCatalog("openAction")}),_e.on("GetAttachments",function(Pe){return se.ensureCatalog("attachments")}),_e.on("GetJavaScript",function(Pe){return se.ensureCatalog("javaScript")}),_e.on("GetDocJSActions",function(Pe){return se.ensureCatalog("jsActions")}),_e.on("GetPageJSActions",function(Fe){let{pageIndex:Pe}=Fe;return se.getPage(Pe).then(function(we){return se.ensure(we,"jsActions")})}),_e.on("GetOutline",function(Pe){return se.ensureCatalog("documentOutline")}),_e.on("GetOptionalContentConfig",function(Fe){return se.ensureCatalog("optionalContentConfig")}),_e.on("GetPermissions",function(Fe){return se.ensureCatalog("permissions")}),_e.on("GetMetadata",function(Pe){return Promise.all([se.ensureDoc("documentInfo"),se.ensureCatalog("metadata")])}),_e.on("GetMarkInfo",function(Pe){return se.ensureCatalog("markInfo")}),_e.on("GetData",function(Pe){return se.requestLoadedStream(),se.onLoadedStream().then(function(we){return we.bytes})}),_e.on("GetAnnotations",function(Fe){let{pageIndex:Pe,intent:we}=Fe;return se.getPage(Pe).then(function(Ie){const Be=new W(`GetAnnotations: page ${Pe}`);return Ae(Be),Ie.getAnnotationsData(_e,Be,we).then(Ke=>(Ne(Be),Ke),Ke=>{Ne(Be)})})}),_e.on("GetFieldObjects",function(Fe){return se.ensureDoc("fieldObjects")}),_e.on("HasJSActions",function(Fe){return se.ensureDoc("hasJSActions")}),_e.on("GetCalculationOrderIds",function(Fe){return se.ensureDoc("calculationOrderIds")}),_e.on("SaveDocument",function(Fe){let{isPureXfa:Pe,numPages:we,annotationStorage:Ie,filename:Be}=Fe;se.requestLoadedStream();const Ke=Pe?null:(0,K.getNewAnnotationsMap)(Ie),Ve=[se.onLoadedStream(),se.ensureCatalog("acroForm"),se.ensureCatalog("acroFormRef"),se.ensureDoc("xref"),se.ensureDoc("startXRef")];if(Ke)for(const[je,Le]of Ke)Ve.push(se.getPage(je).then(et=>{const Qe=new W(`Save (editor): page ${je}`);return et.saveNewAnnotations(_e,Qe,Le).finally(function(){Ne(Qe)})}));if(Pe)Ve.push(se.serializeXfaData(Ie));else for(let je=0;je<we;je++)Ve.push(se.getPage(je).then(function(Le){const et=new W(`Save: page ${je}`);return Le.save(_e,et,Ie).finally(function(){Ne(et)})}));return Promise.all(Ve).then(function(je){let[Le,et,Qe,Ue,$e,...Ye]=je,tt=[],ot=null;if(Pe){if(ot=Ye[0],!ot)return Le.bytes}else if(tt=Ye.flat(2),tt.length===0)return Le.bytes;const st=et instanceof U.Dict&&et.get("XFA")||null;let dt=null,ct=!1;if(Array.isArray(st)){for(let ut=0,rt=st.length;ut<rt;ut+=2)st[ut]==="datasets"&&(dt=st[ut+1],Qe=null,ct=!0);dt===null&&(dt=Ue.getNewRef())}else st&&(Qe=null,(0,R.warn)("Unsupported XFA type."));let mt=Object.create(null);if(Ue.trailer){const ut=Object.create(null),rt=Ue.trailer.get("Info")||null;rt instanceof U.Dict&&rt.forEach((He,Je)=>{typeof Je=="string"&&(ut[He]=(0,R.stringToPDFString)(Je))}),mt={rootRef:Ue.trailer.getRaw("Root")||null,encryptRef:Ue.trailer.getRaw("Encrypt")||null,newRef:Ue.getNewRef(),infoRef:Ue.trailer.getRaw("Info")||null,info:ut,fileIds:Ue.trailer.get("ID")||null,startXRef:$e,filename:Be}}return Ue.resetNewRef(),(0,ae.incrementalUpdate)({originalData:Le.bytes,xrefInfo:mt,newRefs:tt,xref:Ue,hasXfa:!!st,xfaDatasetsRef:dt,hasXfaDatasetsEntry:ct,acroFormRef:Qe,acroForm:et,xfaData:ot})})}),_e.on("GetOperatorList",function(Pe,we){const Ie=Pe.pageIndex;se.getPage(Ie).then(function(Be){const Ke=new W(`GetOperatorList: page ${Ie}`);Ae(Ke);const Ve=ke>=R.VerbosityLevel.INFOS?Date.now():0;Be.getOperatorList({handler:_e,sink:we,task:Ke,intent:Pe.intent,cacheKey:Pe.cacheKey,annotationStorage:Pe.annotationStorage}).then(function(je){Ne(Ke),Ve&&(0,R.info)(`page=${Ie+1} - getOperatorList: time=${Date.now()-Ve}ms, len=${je.length}`),we.close()},function(je){Ne(Ke),!Ke.terminated&&(_e.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorOperatorList}),we.error(je))})})}),_e.on("GetTextContent",function(Pe,we){const Ie=Pe.pageIndex;se.getPage(Ie).then(function(Be){const Ke=new W("GetTextContent: page "+Ie);Ae(Ke);const Ve=ke>=R.VerbosityLevel.INFOS?Date.now():0;Be.extractTextContent({handler:_e,task:Ke,sink:we,includeMarkedContent:Pe.includeMarkedContent,combineTextItems:Pe.combineTextItems}).then(function(){Ne(Ke),Ve&&(0,R.info)(`page=${Ie+1} - getTextContent: time=${Date.now()-Ve}ms`),we.close()},function(je){Ne(Ke),!Ke.terminated&&we.error(je)})})}),_e.on("GetStructTree",function(Pe){return se.getPage(Pe.pageIndex).then(function(we){return se.ensure(we,"getStructTree")})}),_e.on("FontFallback",function(Fe){return se.fontFallback(Fe.id,_e)}),_e.on("Cleanup",function(Pe){return se.cleanup(!0)}),_e.on("Terminate",function(Pe){oe=!0;const we=[];if(se){se.terminate(new R.AbortException("Worker was terminated."));const Ie=se.cleanup();we.push(Ie),se=null}else(0,e.clearGlobalCaches)();me&&me(new R.AbortException("Worker was terminated."));for(const Ie of Ee)we.push(Ie.finished),Ie.terminate();return Promise.all(we).then(function(){_e.destroy(),_e=null})}),_e.on("Ready",function(Pe){Te(ce),ce=null}),pe}static initializeFromPort(ce){const de=new he.MessageHandler("worker","main",ce);X.setup(de,ce),de.send("ready",null)}}D.WorkerMessageHandler=X;function L(Q){return typeof Q.postMessage=="function"&&"onmessage"in Q}typeof window>"u"&&!ie.isNodeJS&&typeof self<"u"&&L(self)&&X.initializeFromPort(self)},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.VerbosityLevel=D.Util=D.UnknownErrorException=D.UnexpectedResponseException=D.UNSUPPORTED_FEATURES=D.TextRenderingMode=D.StreamType=D.RenderingIntentFlag=D.PermissionFlag=D.PasswordResponses=D.PasswordException=D.PageActionEventType=D.OPS=D.MissingPDFException=D.LINE_FACTOR=D.LINE_DESCENT_FACTOR=D.InvalidPDFException=D.ImageKind=D.IDENTITY_MATRIX=D.FormatError=D.FontType=D.FeatureTest=D.FONT_IDENTITY_MATRIX=D.DocumentActionEventType=D.CMapCompressionType=D.BaseException=D.AnnotationType=D.AnnotationStateModelType=D.AnnotationReviewState=D.AnnotationReplyType=D.AnnotationMode=D.AnnotationMarkedState=D.AnnotationFlag=D.AnnotationFieldFlag=D.AnnotationEditorType=D.AnnotationEditorPrefix=D.AnnotationEditorParamsType=D.AnnotationBorderStyleType=D.AnnotationActionEventType=D.AbortException=void 0,D.arrayByteLength=dt,D.arraysToBytes=ct,D.assert=Ie,D.bytesToString=ot,D.createPromiseCapability=er,D.createValidAbsoluteUrl=Ke,D.escapeString=Nt,D.getModificationDate=Jt,D.getVerbosityLevel=Te,D.info=Fe,D.isArrayBuffer=Yt,D.isArrayEqual=Ft,D.isAscii=Vt,D.objectFromMap=rt,D.objectSize=ut,D.setVerbosityLevel=ze,D.shadow=Ve,D.string32=mt,D.stringToBytes=st,D.stringToPDFString=Pt,D.stringToUTF16BEString=Wt,D.stringToUTF8String=Mt,D.unreachable=we,D.utf8StringToString=$t,D.warn=Pe,B(3);const R=[1,0,0,1,0,0];D.IDENTITY_MATRIX=R;const U=[.001,0,0,.001,0,0];D.FONT_IDENTITY_MATRIX=U;const K=1.35;D.LINE_FACTOR=K;const z=.35;D.LINE_DESCENT_FACTOR=z;const e={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};D.RenderingIntentFlag=e;const ae={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};D.AnnotationMode=ae;const ie="pdfjs_internal_editor_";D.AnnotationEditorPrefix=ie;const he={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};D.AnnotationEditorType=he;const J={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};D.AnnotationEditorParamsType=J;const W={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};D.PermissionFlag=W;const X={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};D.TextRenderingMode=X;const L={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};D.ImageKind=L;const Q={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};D.AnnotationType=Q;const ce={MARKED:"Marked",REVIEW:"Review"};D.AnnotationStateModelType=ce;const de={MARKED:"Marked",UNMARKED:"Unmarked"};D.AnnotationMarkedState=de;const se={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};D.AnnotationReviewState=se;const oe={GROUP:"Group",REPLY:"R"};D.AnnotationReplyType=oe;const me={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};D.AnnotationFlag=me;const Ee={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};D.AnnotationFieldFlag=Ee;const ke={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};D.AnnotationBorderStyleType=ke;const xe={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};D.AnnotationActionEventType=xe;const fe={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};D.DocumentActionEventType=fe;const ve={O:"PageOpen",C:"PageClose"};D.PageActionEventType=ve;const ye={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};D.StreamType=ye;const Ce={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};D.FontType=Ce;const pe={ERRORS:0,WARNINGS:1,INFOS:5};D.VerbosityLevel=pe;const _e={NONE:0,BINARY:1,STREAM:2};D.CMapCompressionType=_e;const Ge={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};D.OPS=Ge;const Ae={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};D.UNSUPPORTED_FEATURES=Ae;const Ne={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};D.PasswordResponses=Ne;let Ze=pe.WARNINGS;function ze(Bt){Number.isInteger(Bt)&&(Ze=Bt)}function Te(){return Ze}function Fe(Bt){Ze>=pe.INFOS&&console.log(`Info: ${Bt}`)}function Pe(Bt){Ze>=pe.WARNINGS&&console.log(`Warning: ${Bt}`)}function we(Bt){throw new Error(Bt)}function Ie(Bt,It){Bt||we(It)}function Be(Bt){if(!Bt)return!1;switch(Bt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Ke(Bt){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Bt)return null;try{if(Dt&&typeof Bt=="string"){if(Dt.addDefaultProtocol&&Bt.startsWith("www.")){const gr=Bt.match(/\./g);gr&&gr.length>=2&&(Bt=`http://${Bt}`)}if(Dt.tryConvertEncoding)try{Bt=Mt(Bt)}catch{}}const Zt=It?new URL(Bt,It):new URL(Bt);if(Be(Zt))return Zt}catch{}return null}function Ve(Bt,It,Dt){return Object.defineProperty(Bt,It,{value:Dt,enumerable:!0,configurable:!0,writable:!1}),Dt}const je=function(){function It(Dt,Zt){this.constructor===It&&we("Cannot initialize BaseException."),this.message=Dt,this.name=Zt}return It.prototype=new Error,It.constructor=It,It}();D.BaseException=je;class Le extends je{constructor(It,Dt){super(It,"PasswordException"),this.code=Dt}}D.PasswordException=Le;class et extends je{constructor(It,Dt){super(It,"UnknownErrorException"),this.details=Dt}}D.UnknownErrorException=et;class Qe extends je{constructor(It){super(It,"InvalidPDFException")}}D.InvalidPDFException=Qe;class Ue extends je{constructor(It){super(It,"MissingPDFException")}}D.MissingPDFException=Ue;class $e extends je{constructor(It,Dt){super(It,"UnexpectedResponseException"),this.status=Dt}}D.UnexpectedResponseException=$e;class Ye extends je{constructor(It){super(It,"FormatError")}}D.FormatError=Ye;class tt extends je{constructor(It){super(It,"AbortException")}}D.AbortException=tt;function ot(Bt){(typeof Bt!="object"||Bt===null||Bt.length===void 0)&&we("Invalid argument for bytesToString");const It=Bt.length,Dt=8192;if(It<Dt)return String.fromCharCode.apply(null,Bt);const Zt=[];for(let gr=0;gr<It;gr+=Dt){const fr=Math.min(gr+Dt,It),Dr=Bt.subarray(gr,fr);Zt.push(String.fromCharCode.apply(null,Dr))}return Zt.join("")}function st(Bt){typeof Bt!="string"&&we("Invalid argument for stringToBytes");const It=Bt.length,Dt=new Uint8Array(It);for(let Zt=0;Zt<It;++Zt)Dt[Zt]=Bt.charCodeAt(Zt)&255;return Dt}function dt(Bt){if(Bt.length!==void 0)return Bt.length;if(Bt.byteLength!==void 0)return Bt.byteLength;we("Invalid argument for arrayByteLength")}function ct(Bt){const It=Bt.length;if(It===1&&Bt[0]instanceof Uint8Array)return Bt[0];let Dt=0;for(let fr=0;fr<It;fr++)Dt+=dt(Bt[fr]);let Zt=0;const gr=new Uint8Array(Dt);for(let fr=0;fr<It;fr++){let Dr=Bt[fr];Dr instanceof Uint8Array||(typeof Dr=="string"?Dr=st(Dr):Dr=new Uint8Array(Dr));const kr=Dr.byteLength;gr.set(Dr,Zt),Zt+=kr}return gr}function mt(Bt){return String.fromCharCode(Bt>>24&255,Bt>>16&255,Bt>>8&255,Bt&255)}function ut(Bt){return Object.keys(Bt).length}function rt(Bt){const It=Object.create(null);for(const[Dt,Zt]of Bt)It[Dt]=Zt;return It}function He(){const Bt=new Uint8Array(4);return Bt[0]=1,new Uint32Array(Bt.buffer,0,1)[0]===1}function Je(){try{return new Function(""),!0}catch{return!1}}class St{static get isLittleEndian(){return Ve(this,"isLittleEndian",He())}static get isEvalSupported(){return Ve(this,"isEvalSupported",Je())}static get isOffscreenCanvasSupported(){return Ve(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}}D.FeatureTest=St;const bt=[...Array(256).keys()].map(Bt=>Bt.toString(16).padStart(2,"0"));class pt{static makeHexColor(It,Dt,Zt){return`#${bt[It]}${bt[Dt]}${bt[Zt]}`}static scaleMinMax(It,Dt){let Zt;It[0]?(It[0]<0&&(Zt=Dt[0],Dt[0]=Dt[1],Dt[1]=Zt),Dt[0]*=It[0],Dt[1]*=It[0],It[3]<0&&(Zt=Dt[2],Dt[2]=Dt[3],Dt[3]=Zt),Dt[2]*=It[3],Dt[3]*=It[3]):(Zt=Dt[0],Dt[0]=Dt[2],Dt[2]=Zt,Zt=Dt[1],Dt[1]=Dt[3],Dt[3]=Zt,It[1]<0&&(Zt=Dt[2],Dt[2]=Dt[3],Dt[3]=Zt),Dt[2]*=It[1],Dt[3]*=It[1],It[2]<0&&(Zt=Dt[0],Dt[0]=Dt[1],Dt[1]=Zt),Dt[0]*=It[2],Dt[1]*=It[2]),Dt[0]+=It[4],Dt[1]+=It[4],Dt[2]+=It[5],Dt[3]+=It[5]}static transform(It,Dt){return[It[0]*Dt[0]+It[2]*Dt[1],It[1]*Dt[0]+It[3]*Dt[1],It[0]*Dt[2]+It[2]*Dt[3],It[1]*Dt[2]+It[3]*Dt[3],It[0]*Dt[4]+It[2]*Dt[5]+It[4],It[1]*Dt[4]+It[3]*Dt[5]+It[5]]}static applyTransform(It,Dt){const Zt=It[0]*Dt[0]+It[1]*Dt[2]+Dt[4],gr=It[0]*Dt[1]+It[1]*Dt[3]+Dt[5];return[Zt,gr]}static applyInverseTransform(It,Dt){const Zt=Dt[0]*Dt[3]-Dt[1]*Dt[2],gr=(It[0]*Dt[3]-It[1]*Dt[2]+Dt[2]*Dt[5]-Dt[4]*Dt[3])/Zt,fr=(-It[0]*Dt[1]+It[1]*Dt[0]+Dt[4]*Dt[1]-Dt[5]*Dt[0])/Zt;return[gr,fr]}static getAxialAlignedBoundingBox(It,Dt){const Zt=pt.applyTransform(It,Dt),gr=pt.applyTransform(It.slice(2,4),Dt),fr=pt.applyTransform([It[0],It[3]],Dt),Dr=pt.applyTransform([It[2],It[1]],Dt);return[Math.min(Zt[0],gr[0],fr[0],Dr[0]),Math.min(Zt[1],gr[1],fr[1],Dr[1]),Math.max(Zt[0],gr[0],fr[0],Dr[0]),Math.max(Zt[1],gr[1],fr[1],Dr[1])]}static inverseTransform(It){const Dt=It[0]*It[3]-It[1]*It[2];return[It[3]/Dt,-It[1]/Dt,-It[2]/Dt,It[0]/Dt,(It[2]*It[5]-It[4]*It[3])/Dt,(It[4]*It[1]-It[5]*It[0])/Dt]}static apply3dTransform(It,Dt){return[It[0]*Dt[0]+It[1]*Dt[1]+It[2]*Dt[2],It[3]*Dt[0]+It[4]*Dt[1]+It[5]*Dt[2],It[6]*Dt[0]+It[7]*Dt[1]+It[8]*Dt[2]]}static singularValueDecompose2dScale(It){const Dt=[It[0],It[2],It[1],It[3]],Zt=It[0]*Dt[0]+It[1]*Dt[2],gr=It[0]*Dt[1]+It[1]*Dt[3],fr=It[2]*Dt[0]+It[3]*Dt[2],Dr=It[2]*Dt[1]+It[3]*Dt[3],kr=(Zt+Dr)/2,cr=Math.sqrt((Zt+Dr)**2-4*(Zt*Dr-fr*gr))/2,Ar=kr+cr||1,yt=kr-cr||1;return[Math.sqrt(Ar),Math.sqrt(yt)]}static normalizeRect(It){const Dt=It.slice(0);return It[0]>It[2]&&(Dt[0]=It[2],Dt[2]=It[0]),It[1]>It[3]&&(Dt[1]=It[3],Dt[3]=It[1]),Dt}static intersect(It,Dt){const Zt=Math.max(Math.min(It[0],It[2]),Math.min(Dt[0],Dt[2])),gr=Math.min(Math.max(It[0],It[2]),Math.max(Dt[0],Dt[2]));if(Zt>gr)return null;const fr=Math.max(Math.min(It[1],It[3]),Math.min(Dt[1],Dt[3])),Dr=Math.min(Math.max(It[1],It[3]),Math.max(Dt[1],Dt[3]));return fr>Dr?null:[Zt,fr,gr,Dr]}static bezierBoundingBox(It,Dt,Zt,gr,fr,Dr,kr,cr){const Ar=[],yt=[[],[]];let vt,Xt,At,zt,Br,br,Ur,un;for(let Tr=0;Tr<2;++Tr){if(Tr===0?(Xt=6*It-12*Zt+6*fr,vt=-3*It+9*Zt-9*fr+3*kr,At=3*Zt-3*It):(Xt=6*Dt-12*gr+6*Dr,vt=-3*Dt+9*gr-9*Dr+3*cr,At=3*gr-3*Dt),Math.abs(vt)<1e-12){if(Math.abs(Xt)<1e-12)continue;zt=-At/Xt,0<zt&&zt<1&&Ar.push(zt);continue}Ur=Xt*Xt-4*At*vt,un=Math.sqrt(Ur),!(Ur<0)&&(Br=(-Xt+un)/(2*vt),0<Br&&Br<1&&Ar.push(Br),br=(-Xt-un)/(2*vt),0<br&&br<1&&Ar.push(br))}let sr=Ar.length,ur;const Cr=sr;for(;sr--;)zt=Ar[sr],ur=1-zt,yt[0][sr]=ur*ur*ur*It+3*ur*ur*zt*Zt+3*ur*zt*zt*fr+zt*zt*zt*kr,yt[1][sr]=ur*ur*ur*Dt+3*ur*ur*zt*gr+3*ur*zt*zt*Dr+zt*zt*zt*cr;return yt[0][Cr]=It,yt[1][Cr]=Dt,yt[0][Cr+1]=kr,yt[1][Cr+1]=cr,yt[0].length=yt[1].length=Cr+2,[Math.min(...yt[0]),Math.min(...yt[1]),Math.max(...yt[0]),Math.max(...yt[1])]}}D.Util=pt;const wt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Pt(Bt){if(Bt[0]>="ï"){let Dt;if(Bt[0]==="þ"&&Bt[1]==="ÿ"?Dt="utf-16be":Bt[0]==="ÿ"&&Bt[1]==="þ"?Dt="utf-16le":Bt[0]==="ï"&&Bt[1]==="»"&&Bt[2]==="¿"&&(Dt="utf-8"),Dt)try{const Zt=new TextDecoder(Dt,{fatal:!0}),gr=st(Bt);return Zt.decode(gr)}catch(Zt){Pe(`stringToPDFString: "${Zt}".`)}}const It=[];for(let Dt=0,Zt=Bt.length;Dt<Zt;Dt++){const gr=wt[Bt.charCodeAt(Dt)];It.push(gr?String.fromCharCode(gr):Bt.charAt(Dt))}return It.join("")}function Nt(Bt){return Bt.replace(/([()\\\n\r])/g,It=>It===`
`?"\\n":It==="\r"?"\\r":`\\${It}`)}function Vt(Bt){return/^[\x00-\x7F]*$/.test(Bt)}function Wt(Bt){const It=["þÿ"];for(let Dt=0,Zt=Bt.length;Dt<Zt;Dt++){const gr=Bt.charCodeAt(Dt);It.push(String.fromCharCode(gr>>8&255),String.fromCharCode(gr&255))}return It.join("")}function Mt(Bt){return decodeURIComponent(escape(Bt))}function $t(Bt){return unescape(encodeURIComponent(Bt))}function Yt(Bt){return typeof Bt=="object"&&Bt!==null&&Bt.byteLength!==void 0}function Ft(Bt,It){if(Bt.length!==It.length)return!1;for(let Dt=0,Zt=Bt.length;Dt<Zt;Dt++)if(Bt[Dt]!==It[Dt])return!1;return!0}function Jt(){let Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date;return[Bt.getUTCFullYear().toString(),(Bt.getUTCMonth()+1).toString().padStart(2,"0"),Bt.getUTCDate().toString().padStart(2,"0"),Bt.getUTCHours().toString().padStart(2,"0"),Bt.getUTCMinutes().toString().padStart(2,"0"),Bt.getUTCSeconds().toString().padStart(2,"0")].join("")}function er(){const Bt=Object.create(null);let It=!1;return Object.defineProperty(Bt,"settled",{get(){return It}}),Bt.promise=new Promise(function(Dt,Zt){Bt.resolve=function(gr){It=!0,Dt(gr)},Bt.reject=function(gr){It=!0,Zt(gr)}}),Bt}},($,D,B)=>{var R=B(4);globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!R.isNodeJS||(globalThis.btoa=function(K){return Buffer.from(K,"binary").toString("base64")})}(),function(){globalThis.atob||!R.isNodeJS||(globalThis.atob=function(K){return Buffer.from(K,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!R.isNodeJS||(globalThis.DOMMatrix=requireDommatrix())}(),function(){globalThis.ReadableStream||!R.isNodeJS||(globalThis.ReadableStream=requirePonyfill().ReadableStream)}(),function(){Array.prototype.at||B(5)}(),function(){Uint8Array.prototype.at||B(77)}(),function(){globalThis.structuredClone||B(87)}())},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.isNodeJS=void 0;const B=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");D.isNodeJS=B},($,D,B)=>{B(6);var R=B(76);$.exports=R("Array","at")},($,D,B)=>{var R=B(7),U=B(42),K=B(66),z=B(64),e=B(71);R({target:"Array",proto:!0},{at:function(ie){var he=U(this),J=K(he),W=z(ie),X=W>=0?W:J+W;return X<0||X>=J?void 0:he[X]}}),e("at")},($,D,B)=>{var R=B(8),U=B(9).f,K=B(46),z=B(50),e=B(40),ae=B(58),ie=B(70);$.exports=function(he,J){var W=he.target,X=he.global,L=he.stat,Q,ce,de,se,oe,me;if(X?ce=R:L?ce=R[W]||e(W,{}):ce=(R[W]||{}).prototype,ce)for(de in J){if(oe=J[de],he.dontCallGetSet?(me=U(ce,de),se=me&&me.value):se=ce[de],Q=ie(X?de:W+(L?".":"#")+de,he.forced),!Q&&se!==void 0){if(typeof oe==typeof se)continue;ae(oe,se)}(he.sham||se&&se.sham)&&K(oe,"sham",!0),z(ce,de,oe,he)}}},$=>{var D=function(B){return B&&B.Math==Math&&B};$.exports=D(typeof globalThis=="object"&&globalThis)||D(typeof window=="object"&&window)||D(typeof self=="object"&&self)||D(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")()},($,D,B)=>{var R=B(10),U=B(12),K=B(14),z=B(15),e=B(16),ae=B(21),ie=B(41),he=B(44),J=Object.getOwnPropertyDescriptor;D.f=R?J:function(X,L){if(X=e(X),L=ae(L),he)try{return J(X,L)}catch{}if(ie(X,L))return z(!U(K.f,X,L),X[L])}},($,D,B)=>{var R=B(11);$.exports=!R(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},$=>{$.exports=function(D){try{return!!D()}catch{return!0}}},($,D,B)=>{var R=B(13),U=Function.prototype.call;$.exports=R?U.bind(U):function(){return U.apply(U,arguments)}},($,D,B)=>{var R=B(11);$.exports=!R(function(){var U=(function(){}).bind();return typeof U!="function"||U.hasOwnProperty("prototype")})},($,D)=>{var B={}.propertyIsEnumerable,R=Object.getOwnPropertyDescriptor,U=R&&!B.call({1:2},1);D.f=U?function(z){var e=R(this,z);return!!e&&e.enumerable}:B},$=>{$.exports=function(D,B){return{enumerable:!(D&1),configurable:!(D&2),writable:!(D&4),value:B}}},($,D,B)=>{var R=B(17),U=B(20);$.exports=function(K){return R(U(K))}},($,D,B)=>{var R=B(18),U=B(11),K=B(19),z=Object,e=R("".split);$.exports=U(function(){return!z("z").propertyIsEnumerable(0)})?function(ae){return K(ae)=="String"?e(ae,""):z(ae)}:z},($,D,B)=>{var R=B(13),U=Function.prototype,K=U.bind,z=U.call,e=R&&K.bind(z,z);$.exports=R?function(ae){return ae&&e(ae)}:function(ae){return ae&&function(){return z.apply(ae,arguments)}}},($,D,B)=>{var R=B(18),U=R({}.toString),K=R("".slice);$.exports=function(z){return K(U(z),8,-1)}},$=>{var D=TypeError;$.exports=function(B){if(B==null)throw D("Can't call method on "+B);return B}},($,D,B)=>{var R=B(22),U=B(25);$.exports=function(K){var z=R(K,"string");return U(z)?z:z+""}},($,D,B)=>{var R=B(12),U=B(23),K=B(25),z=B(32),e=B(35),ae=B(36),ie=TypeError,he=ae("toPrimitive");$.exports=function(J,W){if(!U(J)||K(J))return J;var X=z(J,he),L;if(X){if(W===void 0&&(W="default"),L=R(X,J,W),!U(L)||K(L))return L;throw ie("Can't convert object to primitive value")}return W===void 0&&(W="number"),e(J,W)}},($,D,B)=>{var R=B(24);$.exports=function(U){return typeof U=="object"?U!==null:R(U)}},$=>{$.exports=function(D){return typeof D=="function"}},($,D,B)=>{var R=B(26),U=B(24),K=B(27),z=B(28),e=Object;$.exports=z?function(ae){return typeof ae=="symbol"}:function(ae){var ie=R("Symbol");return U(ie)&&K(ie.prototype,e(ae))}},($,D,B)=>{var R=B(8),U=B(24),K=function(z){return U(z)?z:void 0};$.exports=function(z,e){return arguments.length<2?K(R[z]):R[z]&&R[z][e]}},($,D,B)=>{var R=B(18);$.exports=R({}.isPrototypeOf)},($,D,B)=>{var R=B(29);$.exports=R&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},($,D,B)=>{var R=B(30),U=B(11);$.exports=!!Object.getOwnPropertySymbols&&!U(function(){var K=Symbol();return!String(K)||!(Object(K)instanceof Symbol)||!Symbol.sham&&R&&R<41})},($,D,B)=>{var R=B(8),U=B(31),K=R.process,z=R.Deno,e=K&&K.versions||z&&z.version,ae=e&&e.v8,ie,he;ae&&(ie=ae.split("."),he=ie[0]>0&&ie[0]<4?1:+(ie[0]+ie[1])),!he&&U&&(ie=U.match(/Edge\/(\d+)/),(!ie||ie[1]>=74)&&(ie=U.match(/Chrome\/(\d+)/),ie&&(he=+ie[1]))),$.exports=he},($,D,B)=>{var R=B(26);$.exports=R("navigator","userAgent")||""},($,D,B)=>{var R=B(33);$.exports=function(U,K){var z=U[K];return z==null?void 0:R(z)}},($,D,B)=>{var R=B(24),U=B(34),K=TypeError;$.exports=function(z){if(R(z))return z;throw K(U(z)+" is not a function")}},$=>{var D=String;$.exports=function(B){try{return D(B)}catch{return"Object"}}},($,D,B)=>{var R=B(12),U=B(24),K=B(23),z=TypeError;$.exports=function(e,ae){var ie,he;if(ae==="string"&&U(ie=e.toString)&&!K(he=R(ie,e))||U(ie=e.valueOf)&&!K(he=R(ie,e))||ae!=="string"&&U(ie=e.toString)&&!K(he=R(ie,e)))return he;throw z("Can't convert object to primitive value")}},($,D,B)=>{var R=B(8),U=B(37),K=B(41),z=B(43),e=B(29),ae=B(28),ie=U("wks"),he=R.Symbol,J=he&&he.for,W=ae?he:he&&he.withoutSetter||z;$.exports=function(X){if(!K(ie,X)||!(e||typeof ie[X]=="string")){var L="Symbol."+X;e&&K(he,X)?ie[X]=he[X]:ae&&J?ie[X]=J(L):ie[X]=W(L)}return ie[X]}},($,D,B)=>{var R=B(38),U=B(39);($.exports=function(K,z){return U[K]||(U[K]=z!==void 0?z:{})})("versions",[]).push({version:"3.24.1",mode:R?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},$=>{$.exports=!1},($,D,B)=>{var R=B(8),U=B(40),K="__core-js_shared__",z=R[K]||U(K,{});$.exports=z},($,D,B)=>{var R=B(8),U=Object.defineProperty;$.exports=function(K,z){try{U(R,K,{value:z,configurable:!0,writable:!0})}catch{R[K]=z}return z}},($,D,B)=>{var R=B(18),U=B(42),K=R({}.hasOwnProperty);$.exports=Object.hasOwn||function(e,ae){return K(U(e),ae)}},($,D,B)=>{var R=B(20),U=Object;$.exports=function(K){return U(R(K))}},($,D,B)=>{var R=B(18),U=0,K=Math.random(),z=R(1 .toString);$.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+z(++U+K,36)}},($,D,B)=>{var R=B(10),U=B(11),K=B(45);$.exports=!R&&!U(function(){return Object.defineProperty(K("div"),"a",{get:function(){return 7}}).a!=7})},($,D,B)=>{var R=B(8),U=B(23),K=R.document,z=U(K)&&U(K.createElement);$.exports=function(e){return z?K.createElement(e):{}}},($,D,B)=>{var R=B(10),U=B(47),K=B(15);$.exports=R?function(z,e,ae){return U.f(z,e,K(1,ae))}:function(z,e,ae){return z[e]=ae,z}},($,D,B)=>{var R=B(10),U=B(44),K=B(48),z=B(49),e=B(21),ae=TypeError,ie=Object.defineProperty,he=Object.getOwnPropertyDescriptor,J="enumerable",W="configurable",X="writable";D.f=R?K?function(Q,ce,de){if(z(Q),ce=e(ce),z(de),typeof Q=="function"&&ce==="prototype"&&"value"in de&&X in de&&!de[X]){var se=he(Q,ce);se&&se[X]&&(Q[ce]=de.value,de={configurable:W in de?de[W]:se[W],enumerable:J in de?de[J]:se[J],writable:!1})}return ie(Q,ce,de)}:ie:function(Q,ce,de){if(z(Q),ce=e(ce),z(de),U)try{return ie(Q,ce,de)}catch{}if("get"in de||"set"in de)throw ae("Accessors not supported");return"value"in de&&(Q[ce]=de.value),Q}},($,D,B)=>{var R=B(10),U=B(11);$.exports=R&&U(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},($,D,B)=>{var R=B(23),U=String,K=TypeError;$.exports=function(z){if(R(z))return z;throw K(U(z)+" is not an object")}},($,D,B)=>{var R=B(24),U=B(47),K=B(51),z=B(40);$.exports=function(e,ae,ie,he){he||(he={});var J=he.enumerable,W=he.name!==void 0?he.name:ae;if(R(ie)&&K(ie,W,he),he.global)J?e[ae]=ie:z(ae,ie);else{try{he.unsafe?e[ae]&&(J=!0):delete e[ae]}catch{}J?e[ae]=ie:U.f(e,ae,{value:ie,enumerable:!1,configurable:!he.nonConfigurable,writable:!he.nonWritable})}return e}},($,D,B)=>{var R=B(11),U=B(24),K=B(41),z=B(10),e=B(52).CONFIGURABLE,ae=B(53),ie=B(54),he=ie.enforce,J=ie.get,W=Object.defineProperty,X=z&&!R(function(){return W(function(){},"length",{value:8}).length!==8}),L=String(String).split("String"),Q=$.exports=function(ce,de,se){String(de).slice(0,7)==="Symbol("&&(de="["+String(de).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),se&&se.getter&&(de="get "+de),se&&se.setter&&(de="set "+de),(!K(ce,"name")||e&&ce.name!==de)&&(z?W(ce,"name",{value:de,configurable:!0}):ce.name=de),X&&se&&K(se,"arity")&&ce.length!==se.arity&&W(ce,"length",{value:se.arity});try{se&&K(se,"constructor")&&se.constructor?z&&W(ce,"prototype",{writable:!1}):ce.prototype&&(ce.prototype=void 0)}catch{}var oe=he(ce);return K(oe,"source")||(oe.source=L.join(typeof de=="string"?de:"")),ce};Function.prototype.toString=Q(function(){return U(this)&&J(this).source||ae(this)},"toString")},($,D,B)=>{var R=B(10),U=B(41),K=Function.prototype,z=R&&Object.getOwnPropertyDescriptor,e=U(K,"name"),ae=e&&(function(){}).name==="something",ie=e&&(!R||R&&z(K,"name").configurable);$.exports={EXISTS:e,PROPER:ae,CONFIGURABLE:ie}},($,D,B)=>{var R=B(18),U=B(24),K=B(39),z=R(Function.toString);U(K.inspectSource)||(K.inspectSource=function(e){return z(e)}),$.exports=K.inspectSource},($,D,B)=>{var R=B(55),U=B(8),K=B(18),z=B(23),e=B(46),ae=B(41),ie=B(39),he=B(56),J=B(57),W="Object already initialized",X=U.TypeError,L=U.WeakMap,Q,ce,de,se=function(ve){return de(ve)?ce(ve):Q(ve,{})},oe=function(ve){return function(ye){var Ce;if(!z(ye)||(Ce=ce(ye)).type!==ve)throw X("Incompatible receiver, "+ve+" required");return Ce}};if(R||ie.state){var me=ie.state||(ie.state=new L),Ee=K(me.get),ke=K(me.has),xe=K(me.set);Q=function(ve,ye){if(ke(me,ve))throw new X(W);return ye.facade=ve,xe(me,ve,ye),ye},ce=function(ve){return Ee(me,ve)||{}},de=function(ve){return ke(me,ve)}}else{var fe=he("state");J[fe]=!0,Q=function(ve,ye){if(ae(ve,fe))throw new X(W);return ye.facade=ve,e(ve,fe,ye),ye},ce=function(ve){return ae(ve,fe)?ve[fe]:{}},de=function(ve){return ae(ve,fe)}}$.exports={set:Q,get:ce,has:de,enforce:se,getterFor:oe}},($,D,B)=>{var R=B(8),U=B(24),K=B(53),z=R.WeakMap;$.exports=U(z)&&/native code/.test(K(z))},($,D,B)=>{var R=B(37),U=B(43),K=R("keys");$.exports=function(z){return K[z]||(K[z]=U(z))}},$=>{$.exports={}},($,D,B)=>{var R=B(41),U=B(59),K=B(9),z=B(47);$.exports=function(e,ae,ie){for(var he=U(ae),J=z.f,W=K.f,X=0;X<he.length;X++){var L=he[X];!R(e,L)&&!(ie&&R(ie,L))&&J(e,L,W(ae,L))}}},($,D,B)=>{var R=B(26),U=B(18),K=B(60),z=B(69),e=B(49),ae=U([].concat);$.exports=R("Reflect","ownKeys")||function(he){var J=K.f(e(he)),W=z.f;return W?ae(J,W(he)):J}},($,D,B)=>{var R=B(61),U=B(68),K=U.concat("length","prototype");D.f=Object.getOwnPropertyNames||function(e){return R(e,K)}},($,D,B)=>{var R=B(18),U=B(41),K=B(16),z=B(62).indexOf,e=B(57),ae=R([].push);$.exports=function(ie,he){var J=K(ie),W=0,X=[],L;for(L in J)!U(e,L)&&U(J,L)&&ae(X,L);for(;he.length>W;)U(J,L=he[W++])&&(~z(X,L)||ae(X,L));return X}},($,D,B)=>{var R=B(16),U=B(63),K=B(66),z=function(e){return function(ae,ie,he){var J=R(ae),W=K(J),X=U(he,W),L;if(e&&ie!=ie){for(;W>X;)if(L=J[X++],L!=L)return!0}else for(;W>X;X++)if((e||X in J)&&J[X]===ie)return e||X||0;return!e&&-1}};$.exports={includes:z(!0),indexOf:z(!1)}},($,D,B)=>{var R=B(64),U=Math.max,K=Math.min;$.exports=function(z,e){var ae=R(z);return ae<0?U(ae+e,0):K(ae,e)}},($,D,B)=>{var R=B(65);$.exports=function(U){var K=+U;return K!==K||K===0?0:R(K)}},$=>{var D=Math.ceil,B=Math.floor;$.exports=Math.trunc||function(U){var K=+U;return(K>0?B:D)(K)}},($,D,B)=>{var R=B(67);$.exports=function(U){return R(U.length)}},($,D,B)=>{var R=B(64),U=Math.min;$.exports=function(K){return K>0?U(R(K),9007199254740991):0}},$=>{$.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},($,D)=>{D.f=Object.getOwnPropertySymbols},($,D,B)=>{var R=B(11),U=B(24),K=/#|\.prototype\./,z=function(J,W){var X=ae[e(J)];return X==he?!0:X==ie?!1:U(W)?R(W):!!W},e=z.normalize=function(J){return String(J).replace(K,".").toLowerCase()},ae=z.data={},ie=z.NATIVE="N",he=z.POLYFILL="P";$.exports=z},($,D,B)=>{var R=B(36),U=B(72),K=B(47).f,z=R("unscopables"),e=Array.prototype;e[z]==null&&K(e,z,{configurable:!0,value:U(null)}),$.exports=function(ae){e[z][ae]=!0}},($,D,B)=>{var R=B(49),U=B(73),K=B(68),z=B(57),e=B(75),ae=B(45),ie=B(56),he=">",J="<",W="prototype",X="script",L=ie("IE_PROTO"),Q=function(){},ce=function(Ee){return J+X+he+Ee+J+"/"+X+he},de=function(Ee){Ee.write(ce("")),Ee.close();var ke=Ee.parentWindow.Object;return Ee=null,ke},se=function(){var Ee=ae("iframe"),ke="java"+X+":",xe;return Ee.style.display="none",e.appendChild(Ee),Ee.src=String(ke),xe=Ee.contentWindow.document,xe.open(),xe.write(ce("document.F=Object")),xe.close(),xe.F},oe,me=function(){try{oe=new ActiveXObject("htmlfile")}catch{}me=typeof document<"u"?document.domain&&oe?de(oe):se():de(oe);for(var Ee=K.length;Ee--;)delete me[W][K[Ee]];return me()};z[L]=!0,$.exports=Object.create||function(ke,xe){var fe;return ke!==null?(Q[W]=R(ke),fe=new Q,Q[W]=null,fe[L]=ke):fe=me(),xe===void 0?fe:U.f(fe,xe)}},($,D,B)=>{var R=B(10),U=B(48),K=B(47),z=B(49),e=B(16),ae=B(74);D.f=R&&!U?Object.defineProperties:function(he,J){z(he);for(var W=e(J),X=ae(J),L=X.length,Q=0,ce;L>Q;)K.f(he,ce=X[Q++],W[ce]);return he}},($,D,B)=>{var R=B(61),U=B(68);$.exports=Object.keys||function(z){return R(z,U)}},($,D,B)=>{var R=B(26);$.exports=R("document","documentElement")},($,D,B)=>{var R=B(8),U=B(18);$.exports=function(K,z){return U(R[K].prototype[z])}},($,D,B)=>{B(78)},($,D,B)=>{var R=B(79),U=B(66),K=B(64),z=R.aTypedArray,e=R.exportTypedArrayMethod;e("at",function(ie){var he=z(this),J=U(he),W=K(ie),X=W>=0?W:J+W;return X<0||X>=J?void 0:he[X]})},($,D,B)=>{var R=B(80),U=B(10),K=B(8),z=B(24),e=B(23),ae=B(41),ie=B(81),he=B(34),J=B(46),W=B(50),X=B(47).f,L=B(27),Q=B(83),ce=B(85),de=B(36),se=B(43),oe=B(54),me=oe.enforce,Ee=oe.get,ke=K.Int8Array,xe=ke&&ke.prototype,fe=K.Uint8ClampedArray,ve=fe&&fe.prototype,ye=ke&&Q(ke),Ce=xe&&Q(xe),pe=Object.prototype,_e=K.TypeError,Ge=de("toStringTag"),Ae=se("TYPED_ARRAY_TAG"),Ne="TypedArrayConstructor",Ze=R&&!!ce&&ie(K.opera)!=="Opera",ze=!1,Te,Fe,Pe,we={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ie={BigInt64Array:8,BigUint64Array:8},Be=function($e){if(!e($e))return!1;var Ye=ie($e);return Ye==="DataView"||ae(we,Ye)||ae(Ie,Ye)},Ke=function(Ue){var $e=Q(Ue);if(e($e)){var Ye=Ee($e);return Ye&&ae(Ye,Ne)?Ye[Ne]:Ke($e)}},Ve=function(Ue){if(!e(Ue))return!1;var $e=ie(Ue);return ae(we,$e)||ae(Ie,$e)},je=function(Ue){if(Ve(Ue))return Ue;throw _e("Target is not a typed array")},Le=function(Ue){if(z(Ue)&&(!ce||L(ye,Ue)))return Ue;throw _e(he(Ue)+" is not a typed array constructor")},et=function(Ue,$e,Ye,tt){if(U){if(Ye)for(var ot in we){var st=K[ot];if(st&&ae(st.prototype,Ue))try{delete st.prototype[Ue]}catch{try{st.prototype[Ue]=$e}catch{}}}(!Ce[Ue]||Ye)&&W(Ce,Ue,Ye?$e:Ze&&xe[Ue]||$e,tt)}},Qe=function(Ue,$e,Ye){var tt,ot;if(U){if(ce){if(Ye){for(tt in we)if(ot=K[tt],ot&&ae(ot,Ue))try{delete ot[Ue]}catch{}}if(!ye[Ue]||Ye)try{return W(ye,Ue,Ye?$e:Ze&&ye[Ue]||$e)}catch{}else return}for(tt in we)ot=K[tt],ot&&(!ot[Ue]||Ye)&&W(ot,Ue,$e)}};for(Te in we)Fe=K[Te],Pe=Fe&&Fe.prototype,Pe?me(Pe)[Ne]=Fe:Ze=!1;for(Te in Ie)Fe=K[Te],Pe=Fe&&Fe.prototype,Pe&&(me(Pe)[Ne]=Fe);if((!Ze||!z(ye)||ye===Function.prototype)&&(ye=function(){throw _e("Incorrect invocation")},Ze))for(Te in we)K[Te]&&ce(K[Te],ye);if((!Ze||!Ce||Ce===pe)&&(Ce=ye.prototype,Ze))for(Te in we)K[Te]&&ce(K[Te].prototype,Ce);if(Ze&&Q(ve)!==Ce&&ce(ve,Ce),U&&!ae(Ce,Ge)){ze=!0,X(Ce,Ge,{get:function(){return e(this)?this[Ae]:void 0}});for(Te in we)K[Te]&&J(K[Te],Ae,Te)}$.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_TAG:ze&&Ae,aTypedArray:je,aTypedArrayConstructor:Le,exportTypedArrayMethod:et,exportTypedArrayStaticMethod:Qe,getTypedArrayConstructor:Ke,isView:Be,isTypedArray:Ve,TypedArray:ye,TypedArrayPrototype:Ce}},$=>{$.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},($,D,B)=>{var R=B(82),U=B(24),K=B(19),z=B(36),e=z("toStringTag"),ae=Object,ie=K(function(){return arguments}())=="Arguments",he=function(J,W){try{return J[W]}catch{}};$.exports=R?K:function(J){var W,X,L;return J===void 0?"Undefined":J===null?"Null":typeof(X=he(W=ae(J),e))=="string"?X:ie?K(W):(L=K(W))=="Object"&&U(W.callee)?"Arguments":L}},($,D,B)=>{var R=B(36),U=R("toStringTag"),K={};K[U]="z",$.exports=String(K)==="[object z]"},($,D,B)=>{var R=B(41),U=B(24),K=B(42),z=B(56),e=B(84),ae=z("IE_PROTO"),ie=Object,he=ie.prototype;$.exports=e?ie.getPrototypeOf:function(J){var W=K(J);if(R(W,ae))return W[ae];var X=W.constructor;return U(X)&&W instanceof X?X.prototype:W instanceof ie?he:null}},($,D,B)=>{var R=B(11);$.exports=!R(function(){function U(){}return U.prototype.constructor=null,Object.getPrototypeOf(new U)!==U.prototype})},($,D,B)=>{var R=B(18),U=B(49),K=B(86);$.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var z=!1,e={},ae;try{ae=R(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ae(e,[]),z=e instanceof Array}catch{}return function(he,J){return U(he),K(J),z?ae(he,J):he.__proto__=J,he}}():void 0)},($,D,B)=>{var R=B(24),U=String,K=TypeError;$.exports=function(z){if(typeof z=="object"||R(z))return z;throw K("Can't set "+U(z)+" as a prototype")}},($,D,B)=>{B(88),B(94),B(96),B(118),B(120);var R=B(129);$.exports=R.structuredClone},($,D,B)=>{var R=B(16),U=B(71),K=B(89),z=B(54),e=B(47).f,ae=B(90),ie=B(38),he=B(10),J="Array Iterator",W=z.set,X=z.getterFor(J);$.exports=ae(Array,"Array",function(Q,ce){W(this,{type:J,target:R(Q),index:0,kind:ce})},function(){var Q=X(this),ce=Q.target,de=Q.kind,se=Q.index++;return!ce||se>=ce.length?(Q.target=void 0,{value:void 0,done:!0}):de=="keys"?{value:se,done:!1}:de=="values"?{value:ce[se],done:!1}:{value:[se,ce[se]],done:!1}},"values");var L=K.Arguments=K.Array;if(U("keys"),U("values"),U("entries"),!ie&&he&&L.name!=="values")try{e(L,"name",{value:"values"})}catch{}},$=>{$.exports={}},($,D,B)=>{var R=B(7),U=B(12),K=B(38),z=B(52),e=B(24),ae=B(91),ie=B(83),he=B(85),J=B(93),W=B(46),X=B(50),L=B(36),Q=B(89),ce=B(92),de=z.PROPER,se=z.CONFIGURABLE,oe=ce.IteratorPrototype,me=ce.BUGGY_SAFARI_ITERATORS,Ee=L("iterator"),ke="keys",xe="values",fe="entries",ve=function(){return this};$.exports=function(ye,Ce,pe,_e,Ge,Ae,Ne){ae(pe,Ce,_e);var Ze=function(je){if(je===Ge&&we)return we;if(!me&&je in Fe)return Fe[je];switch(je){case ke:return function(){return new pe(this,je)};case xe:return function(){return new pe(this,je)};case fe:return function(){return new pe(this,je)}}return function(){return new pe(this)}},ze=Ce+" Iterator",Te=!1,Fe=ye.prototype,Pe=Fe[Ee]||Fe["@@iterator"]||Ge&&Fe[Ge],we=!me&&Pe||Ze(Ge),Ie=Ce=="Array"&&Fe.entries||Pe,Be,Ke,Ve;if(Ie&&(Be=ie(Ie.call(new ye)),Be!==Object.prototype&&Be.next&&(!K&&ie(Be)!==oe&&(he?he(Be,oe):e(Be[Ee])||X(Be,Ee,ve)),J(Be,ze,!0,!0),K&&(Q[ze]=ve))),de&&Ge==xe&&Pe&&Pe.name!==xe&&(!K&&se?W(Fe,"name",xe):(Te=!0,we=function(){return U(Pe,this)})),Ge)if(Ke={values:Ze(xe),keys:Ae?we:Ze(ke),entries:Ze(fe)},Ne)for(Ve in Ke)(me||Te||!(Ve in Fe))&&X(Fe,Ve,Ke[Ve]);else R({target:Ce,proto:!0,forced:me||Te},Ke);return(!K||Ne)&&Fe[Ee]!==we&&X(Fe,Ee,we,{name:Ge}),Q[Ce]=we,Ke}},($,D,B)=>{var R=B(92).IteratorPrototype,U=B(72),K=B(15),z=B(93),e=B(89),ae=function(){return this};$.exports=function(ie,he,J,W){var X=he+" Iterator";return ie.prototype=U(R,{next:K(+!W,J)}),z(ie,X,!1,!0),e[X]=ae,ie}},($,D,B)=>{var R=B(11),U=B(24),K=B(72),z=B(83),e=B(50),ae=B(36),ie=B(38),he=ae("iterator"),J=!1,W,X,L;[].keys&&(L=[].keys(),"next"in L?(X=z(z(L)),X!==Object.prototype&&(W=X)):J=!0);var Q=W==null||R(function(){var ce={};return W[he].call(ce)!==ce});Q?W={}:ie&&(W=K(W)),U(W[he])||e(W,he,function(){return this}),$.exports={IteratorPrototype:W,BUGGY_SAFARI_ITERATORS:J}},($,D,B)=>{var R=B(47).f,U=B(41),K=B(36),z=K("toStringTag");$.exports=function(e,ae,ie){e&&!ie&&(e=e.prototype),e&&!U(e,z)&&R(e,z,{configurable:!0,value:ae})}},($,D,B)=>{var R=B(82),U=B(50),K=B(95);R||U(Object.prototype,"toString",K,{unsafe:!0})},($,D,B)=>{var R=B(82),U=B(81);$.exports=R?{}.toString:function(){return"[object "+U(this)+"]"}},($,D,B)=>{B(97)},($,D,B)=>{var R=B(98),U=B(115);R("Map",function(K){return function(){return K(this,arguments.length?arguments[0]:void 0)}},U)},($,D,B)=>{var R=B(7),U=B(8),K=B(18),z=B(70),e=B(50),ae=B(99),ie=B(106),he=B(112),J=B(24),W=B(23),X=B(11),L=B(113),Q=B(93),ce=B(114);$.exports=function(de,se,oe){var me=de.indexOf("Map")!==-1,Ee=de.indexOf("Weak")!==-1,ke=me?"set":"add",xe=U[de],fe=xe&&xe.prototype,ve=xe,ye={},Ce=function(ze){var Te=K(fe[ze]);e(fe,ze,ze=="add"?function(Pe){return Te(this,Pe===0?0:Pe),this}:ze=="delete"?function(Fe){return Ee&&!W(Fe)?!1:Te(this,Fe===0?0:Fe)}:ze=="get"?function(Pe){return Ee&&!W(Pe)?void 0:Te(this,Pe===0?0:Pe)}:ze=="has"?function(Pe){return Ee&&!W(Pe)?!1:Te(this,Pe===0?0:Pe)}:function(Pe,we){return Te(this,Pe===0?0:Pe,we),this})},pe=z(de,!J(xe)||!(Ee||fe.forEach&&!X(function(){new xe().entries().next()})));if(pe)ve=oe.getConstructor(se,de,me,ke),ae.enable();else if(z(de,!0)){var _e=new ve,Ge=_e[ke](Ee?{}:-0,1)!=_e,Ae=X(function(){_e.has(1)}),Ne=L(function(ze){new xe(ze)}),Ze=!Ee&&X(function(){for(var ze=new xe,Te=5;Te--;)ze[ke](Te,Te);return!ze.has(-0)});Ne||(ve=se(function(ze,Te){he(ze,fe);var Fe=ce(new xe,ze,ve);return Te!=null&&ie(Te,Fe[ke],{that:Fe,AS_ENTRIES:me}),Fe}),ve.prototype=fe,fe.constructor=ve),(Ae||Ze)&&(Ce("delete"),Ce("has"),me&&Ce("get")),(Ze||Ge)&&Ce(ke),Ee&&fe.clear&&delete fe.clear}return ye[de]=ve,R({global:!0,constructor:!0,forced:ve!=xe},ye),Q(ve,de),Ee||oe.setStrong(ve,de,me),ve}},($,D,B)=>{var R=B(7),U=B(18),K=B(57),z=B(23),e=B(41),ae=B(47).f,ie=B(60),he=B(100),J=B(103),W=B(43),X=B(105),L=!1,Q=W("meta"),ce=0,de=function(xe){ae(xe,Q,{value:{objectID:"O"+ce++,weakData:{}}})},se=function(xe,fe){if(!z(xe))return typeof xe=="symbol"?xe:(typeof xe=="string"?"S":"P")+xe;if(!e(xe,Q)){if(!J(xe))return"F";if(!fe)return"E";de(xe)}return xe[Q].objectID},oe=function(xe,fe){if(!e(xe,Q)){if(!J(xe))return!0;if(!fe)return!1;de(xe)}return xe[Q].weakData},me=function(xe){return X&&L&&J(xe)&&!e(xe,Q)&&de(xe),xe},Ee=function(){ke.enable=function(){},L=!0;var xe=ie.f,fe=U([].splice),ve={};ve[Q]=1,xe(ve).length&&(ie.f=function(ye){for(var Ce=xe(ye),pe=0,_e=Ce.length;pe<_e;pe++)if(Ce[pe]===Q){fe(Ce,pe,1);break}return Ce},R({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:he.f}))},ke=$.exports={enable:Ee,fastKey:se,getWeakData:oe,onFreeze:me};K[Q]=!0},($,D,B)=>{var R=B(19),U=B(16),K=B(60).f,z=B(101),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ae=function(ie){try{return K(ie)}catch{return z(e)}};$.exports.f=function(he){return e&&R(he)=="Window"?ae(he):K(U(he))}},($,D,B)=>{var R=B(63),U=B(66),K=B(102),z=Array,e=Math.max;$.exports=function(ae,ie,he){for(var J=U(ae),W=R(ie,J),X=R(he===void 0?J:he,J),L=z(e(X-W,0)),Q=0;W<X;W++,Q++)K(L,Q,ae[W]);return L.length=Q,L}},($,D,B)=>{var R=B(21),U=B(47),K=B(15);$.exports=function(z,e,ae){var ie=R(e);ie in z?U.f(z,ie,K(0,ae)):z[ie]=ae}},($,D,B)=>{var R=B(11),U=B(23),K=B(19),z=B(104),e=Object.isExtensible,ae=R(function(){});$.exports=ae||z?function(he){return!U(he)||z&&K(he)=="ArrayBuffer"?!1:e?e(he):!0}:e},($,D,B)=>{var R=B(11);$.exports=R(function(){if(typeof ArrayBuffer=="function"){var U=new ArrayBuffer(8);Object.isExtensible(U)&&Object.defineProperty(U,"a",{value:8})}})},($,D,B)=>{var R=B(11);$.exports=!R(function(){return Object.isExtensible(Object.preventExtensions({}))})},($,D,B)=>{var R=B(107),U=B(12),K=B(49),z=B(34),e=B(108),ae=B(66),ie=B(27),he=B(109),J=B(110),W=B(111),X=TypeError,L=function(ce,de){this.stopped=ce,this.result=de},Q=L.prototype;$.exports=function(ce,de,se){var oe=se&&se.that,me=!!(se&&se.AS_ENTRIES),Ee=!!(se&&se.IS_RECORD),ke=!!(se&&se.IS_ITERATOR),xe=!!(se&&se.INTERRUPTED),fe=R(de,oe),ve,ye,Ce,pe,_e,Ge,Ae,Ne=function(ze){return ve&&W(ve,"normal",ze),new L(!0,ze)},Ze=function(ze){return me?(K(ze),xe?fe(ze[0],ze[1],Ne):fe(ze[0],ze[1])):xe?fe(ze,Ne):fe(ze)};if(Ee)ve=ce.iterator;else if(ke)ve=ce;else{if(ye=J(ce),!ye)throw X(z(ce)+" is not iterable");if(e(ye)){for(Ce=0,pe=ae(ce);pe>Ce;Ce++)if(_e=Ze(ce[Ce]),_e&&ie(Q,_e))return _e;return new L(!1)}ve=he(ce,ye)}for(Ge=Ee?ce.next:ve.next;!(Ae=U(Ge,ve)).done;){try{_e=Ze(Ae.value)}catch(ze){W(ve,"throw",ze)}if(typeof _e=="object"&&_e&&ie(Q,_e))return _e}return new L(!1)}},($,D,B)=>{var R=B(18),U=B(33),K=B(13),z=R(R.bind);$.exports=function(e,ae){return U(e),ae===void 0?e:K?z(e,ae):function(){return e.apply(ae,arguments)}}},($,D,B)=>{var R=B(36),U=B(89),K=R("iterator"),z=Array.prototype;$.exports=function(e){return e!==void 0&&(U.Array===e||z[K]===e)}},($,D,B)=>{var R=B(12),U=B(33),K=B(49),z=B(34),e=B(110),ae=TypeError;$.exports=function(ie,he){var J=arguments.length<2?e(ie):he;if(U(J))return K(R(J,ie));throw ae(z(ie)+" is not iterable")}},($,D,B)=>{var R=B(81),U=B(32),K=B(89),z=B(36),e=z("iterator");$.exports=function(ae){if(ae!=null)return U(ae,e)||U(ae,"@@iterator")||K[R(ae)]}},($,D,B)=>{var R=B(12),U=B(49),K=B(32);$.exports=function(z,e,ae){var ie,he;U(z);try{if(ie=K(z,"return"),!ie){if(e==="throw")throw ae;return ae}ie=R(ie,z)}catch(J){he=!0,ie=J}if(e==="throw")throw ae;if(he)throw ie;return U(ie),ae}},($,D,B)=>{var R=B(27),U=TypeError;$.exports=function(K,z){if(R(z,K))return K;throw U("Incorrect invocation")}},($,D,B)=>{var R=B(36),U=R("iterator"),K=!1;try{var z=0,e={next:function(){return{done:!!z++}},return:function(){K=!0}};e[U]=function(){return this},Array.from(e,function(){throw 2})}catch{}$.exports=function(ae,ie){if(!ie&&!K)return!1;var he=!1;try{var J={};J[U]=function(){return{next:function(){return{done:he=!0}}}},ae(J)}catch{}return he}},($,D,B)=>{var R=B(24),U=B(23),K=B(85);$.exports=function(z,e,ae){var ie,he;return K&&R(ie=e.constructor)&&ie!==ae&&U(he=ie.prototype)&&he!==ae.prototype&&K(z,he),z}},($,D,B)=>{var R=B(47).f,U=B(72),K=B(116),z=B(107),e=B(112),ae=B(106),ie=B(90),he=B(117),J=B(10),W=B(99).fastKey,X=B(54),L=X.set,Q=X.getterFor;$.exports={getConstructor:function(ce,de,se,oe){var me=ce(function(ve,ye){e(ve,Ee),L(ve,{type:de,index:U(null),first:void 0,last:void 0,size:0}),J||(ve.size=0),ye!=null&&ae(ye,ve[oe],{that:ve,AS_ENTRIES:se})}),Ee=me.prototype,ke=Q(de),xe=function(ve,ye,Ce){var pe=ke(ve),_e=fe(ve,ye),Ge,Ae;return _e?_e.value=Ce:(pe.last=_e={index:Ae=W(ye,!0),key:ye,value:Ce,previous:Ge=pe.last,next:void 0,removed:!1},pe.first||(pe.first=_e),Ge&&(Ge.next=_e),J?pe.size++:ve.size++,Ae!=="F"&&(pe.index[Ae]=_e)),ve},fe=function(ve,ye){var Ce=ke(ve),pe=W(ye),_e;if(pe!=="F")return Ce.index[pe];for(_e=Ce.first;_e;_e=_e.next)if(_e.key==ye)return _e};return K(Ee,{clear:function(){for(var ye=this,Ce=ke(ye),pe=Ce.index,_e=Ce.first;_e;)_e.removed=!0,_e.previous&&(_e.previous=_e.previous.next=void 0),delete pe[_e.index],_e=_e.next;Ce.first=Ce.last=void 0,J?Ce.size=0:ye.size=0},delete:function(ve){var ye=this,Ce=ke(ye),pe=fe(ye,ve);if(pe){var _e=pe.next,Ge=pe.previous;delete Ce.index[pe.index],pe.removed=!0,Ge&&(Ge.next=_e),_e&&(_e.previous=Ge),Ce.first==pe&&(Ce.first=_e),Ce.last==pe&&(Ce.last=Ge),J?Ce.size--:ye.size--}return!!pe},forEach:function(ye){for(var Ce=ke(this),pe=z(ye,arguments.length>1?arguments[1]:void 0),_e;_e=_e?_e.next:Ce.first;)for(pe(_e.value,_e.key,this);_e&&_e.removed;)_e=_e.previous},has:function(ye){return!!fe(this,ye)}}),K(Ee,se?{get:function(ye){var Ce=fe(this,ye);return Ce&&Ce.value},set:function(ye,Ce){return xe(this,ye===0?0:ye,Ce)}}:{add:function(ye){return xe(this,ye=ye===0?0:ye,ye)}}),J&&R(Ee,"size",{get:function(){return ke(this).size}}),me},setStrong:function(ce,de,se){var oe=de+" Iterator",me=Q(de),Ee=Q(oe);ie(ce,de,function(ke,xe){L(this,{type:oe,target:ke,state:me(ke),kind:xe,last:void 0})},function(){for(var ke=Ee(this),xe=ke.kind,fe=ke.last;fe&&fe.removed;)fe=fe.previous;return!ke.target||!(ke.last=fe=fe?fe.next:ke.state.first)?(ke.target=void 0,{value:void 0,done:!0}):xe=="keys"?{value:fe.key,done:!1}:xe=="values"?{value:fe.value,done:!1}:{value:[fe.key,fe.value],done:!1}},se?"entries":"values",!se,!0),he(de)}}},($,D,B)=>{var R=B(50);$.exports=function(U,K,z){for(var e in K)R(U,e,K[e],z);return U}},($,D,B)=>{var R=B(26),U=B(47),K=B(36),z=B(10),e=K("species");$.exports=function(ae){var ie=R(ae),he=U.f;z&&ie&&!ie[e]&&he(ie,e,{configurable:!0,get:function(){return this}})}},($,D,B)=>{B(119)},($,D,B)=>{var R=B(98),U=B(115);R("Set",function(K){return function(){return K(this,arguments.length?arguments[0]:void 0)}},U)},($,D,B)=>{var R=B(38),U=B(7),K=B(8),z=B(26),e=B(18),ae=B(11),ie=B(43),he=B(24),J=B(121),W=B(23),X=B(25),L=B(106),Q=B(49),ce=B(81),de=B(41),se=B(102),oe=B(46),me=B(66),Ee=B(122),ke=B(123),xe=B(125),fe=B(30),ve=B(126),ye=B(127),Ce=B(128),pe=K.Object,_e=K.Date,Ge=K.Error,Ae=K.EvalError,Ne=K.RangeError,Ze=K.ReferenceError,ze=K.SyntaxError,Te=K.TypeError,Fe=K.URIError,Pe=K.PerformanceMark,we=K.WebAssembly,Ie=we&&we.CompileError||Ge,Be=we&&we.LinkError||Ge,Ke=we&&we.RuntimeError||Ge,Ve=z("DOMException"),je=z("Set"),Le=z("Map"),et=Le.prototype,Qe=e(et.has),Ue=e(et.get),$e=e(et.set),Ye=e(je.prototype.add),tt=z("Object","keys"),ot=e([].push),st=e((!0).valueOf),dt=e(1 .valueOf),ct=e("".valueOf),mt=e(_e.prototype.getTime),ut=ie("structuredClone"),rt="DataCloneError",He="Transferring",Je=function(Ft){return!ae(function(){var Jt=new K.Set([7]),er=Ft(Jt),Bt=Ft(pe(7));return er==Jt||!er.has(7)||typeof Bt!="object"||Bt!=7})&&Ft},St=function(Ft,Jt){return!ae(function(){var er=new Jt,Bt=Ft({a:er,b:er});return!(Bt&&Bt.a===Bt.b&&Bt.a instanceof Jt&&Bt.a.stack===er.stack)})},bt=function(Ft){return!ae(function(){var Jt=Ft(new K.AggregateError([1],ut,{cause:3}));return Jt.name!="AggregateError"||Jt.errors[0]!=1||Jt.message!=ut||Jt.cause!=3})},pt=K.structuredClone,wt=R||!St(pt,Ge)||!St(pt,Ve)||!bt(pt),Pt=!pt&&Je(function(Ft){return new Pe(ut,{detail:Ft}).detail}),Nt=Je(pt)||Pt,Vt=function(Ft){throw new Ve("Uncloneable type: "+Ft,rt)},Wt=function(Ft,Jt){throw new Ve((Jt||"Cloning")+" of "+Ft+" cannot be properly polyfilled in this engine",rt)},Mt=function(Ft,Jt){if(X(Ft)&&Vt("Symbol"),!W(Ft))return Ft;if(Jt){if(Qe(Jt,Ft))return Ue(Jt,Ft)}else Jt=new Le;var er=ce(Ft),Bt=!1,It,Dt,Zt,gr,fr,Dr,kr,cr,Ar,yt;switch(er){case"Array":Zt=[],Bt=!0;break;case"Object":Zt={},Bt=!0;break;case"Map":Zt=new Le,Bt=!0;break;case"Set":Zt=new je,Bt=!0;break;case"RegExp":Zt=new RegExp(Ft.source,ke(Ft));break;case"Error":switch(Dt=Ft.name,Dt){case"AggregateError":Zt=z("AggregateError")([]);break;case"EvalError":Zt=Ae();break;case"RangeError":Zt=Ne();break;case"ReferenceError":Zt=Ze();break;case"SyntaxError":Zt=ze();break;case"TypeError":Zt=Te();break;case"URIError":Zt=Fe();break;case"CompileError":Zt=Ie();break;case"LinkError":Zt=Be();break;case"RuntimeError":Zt=Ke();break;default:Zt=Ge()}Bt=!0;break;case"DOMException":Zt=new Ve(Ft.message,Ft.name),Bt=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":It=K[er],W(It)||Wt(er),Zt=new It(Mt(Ft.buffer,Jt),Ft.byteOffset,er==="DataView"?Ft.byteLength:Ft.length);break;case"DOMQuad":try{Zt=new DOMQuad(Mt(Ft.p1,Jt),Mt(Ft.p2,Jt),Mt(Ft.p3,Jt),Mt(Ft.p4,Jt))}catch{Nt?Zt=Nt(Ft):Wt(er)}break;case"FileList":if(It=K.DataTransfer,J(It)){for(gr=new It,fr=0,Dr=me(Ft);fr<Dr;fr++)gr.items.add(Mt(Ft[fr],Jt));Zt=gr.files}else Nt?Zt=Nt(Ft):Wt(er);break;case"ImageData":try{Zt=new ImageData(Mt(Ft.data,Jt),Ft.width,Ft.height,{colorSpace:Ft.colorSpace})}catch{Nt?Zt=Nt(Ft):Wt(er)}break;default:if(Nt)Zt=Nt(Ft);else switch(er){case"BigInt":Zt=pe(Ft.valueOf());break;case"Boolean":Zt=pe(st(Ft));break;case"Number":Zt=pe(dt(Ft));break;case"String":Zt=pe(ct(Ft));break;case"Date":Zt=new _e(mt(Ft));break;case"ArrayBuffer":It=K.DataView,!It&&typeof Ft.slice!="function"&&Wt(er);try{if(typeof Ft.slice=="function")Zt=Ft.slice(0);else for(Dr=Ft.byteLength,Zt=new ArrayBuffer(Dr),Ar=new It(Ft),yt=new It(Zt),fr=0;fr<Dr;fr++)yt.setUint8(fr,Ar.getUint8(fr))}catch{throw new Ve("ArrayBuffer is detached",rt)}break;case"SharedArrayBuffer":Zt=Ft;break;case"Blob":try{Zt=Ft.slice(0,Ft.size,Ft.type)}catch{Wt(er)}break;case"DOMPoint":case"DOMPointReadOnly":It=K[er];try{Zt=It.fromPoint?It.fromPoint(Ft):new It(Ft.x,Ft.y,Ft.z,Ft.w)}catch{Wt(er)}break;case"DOMRect":case"DOMRectReadOnly":It=K[er];try{Zt=It.fromRect?It.fromRect(Ft):new It(Ft.x,Ft.y,Ft.width,Ft.height)}catch{Wt(er)}break;case"DOMMatrix":case"DOMMatrixReadOnly":It=K[er];try{Zt=It.fromMatrix?It.fromMatrix(Ft):new It(Ft)}catch{Wt(er)}break;case"AudioData":case"VideoFrame":he(Ft.clone)||Wt(er);try{Zt=Ft.clone()}catch{Vt(er)}break;case"File":try{Zt=new File([Ft],Ft.name,Ft)}catch{Wt(er)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Wt(er);default:Vt(er)}}if($e(Jt,Ft,Zt),Bt)switch(er){case"Array":case"Object":for(kr=tt(Ft),fr=0,Dr=me(kr);fr<Dr;fr++)cr=kr[fr],se(Zt,cr,Mt(Ft[cr],Jt));break;case"Map":Ft.forEach(function(vt,Xt){$e(Zt,Mt(Xt,Jt),Mt(vt,Jt))});break;case"Set":Ft.forEach(function(vt){Ye(Zt,Mt(vt,Jt))});break;case"Error":oe(Zt,"message",Mt(Ft.message,Jt)),de(Ft,"cause")&&oe(Zt,"cause",Mt(Ft.cause,Jt)),Dt=="AggregateError"&&(Zt.errors=Mt(Ft.errors,Jt));case"DOMException":xe&&oe(Zt,"stack",Mt(Ft.stack,Jt))}return Zt},$t=pt&&!ae(function(){if(ye&&fe>92||Ce&&fe>94||ve&&fe>97)return!1;var Ft=new ArrayBuffer(8),Jt=pt(Ft,{transfer:[Ft]});return Ft.byteLength!=0||Jt.byteLength!=8}),Yt=function(Ft,Jt){if(!W(Ft))throw Te("Transfer option cannot be converted to a sequence");var er=[];L(Ft,function(Ar){ot(er,Q(Ar))});var Bt=0,It=me(er),Dt,Zt,gr,fr,Dr,kr,cr;if($t)for(fr=pt(er,{transfer:er});Bt<It;)$e(Jt,er[Bt],fr[Bt++]);else for(;Bt<It;){if(Dt=er[Bt++],Qe(Jt,Dt))throw new Ve("Duplicate transferable",rt);switch(Zt=ce(Dt),Zt){case"ImageBitmap":gr=K.OffscreenCanvas,J(gr)||Wt(Zt,He);try{kr=new gr(Dt.width,Dt.height),cr=kr.getContext("bitmaprenderer"),cr.transferFromImageBitmap(Dt),Dr=kr.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!he(Dt.clone)||!he(Dt.close))&&Wt(Zt,He);try{Dr=Dt.clone(),Dt.close()}catch{}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Wt(Zt,He)}if(Dr===void 0)throw new Ve("This object cannot be transferred: "+Zt,rt);$e(Jt,Dt,Dr)}};U({global:!0,enumerable:!0,sham:!$t,forced:wt},{structuredClone:function(Jt){var er=Ee(arguments.length,1)>1&&arguments[1]!=null?Q(arguments[1]):void 0,Bt=er?er.transfer:void 0,It;return Bt!==void 0&&(It=new Le,Yt(Bt,It)),Mt(Jt,It)}})},($,D,B)=>{var R=B(18),U=B(11),K=B(24),z=B(81),e=B(26),ae=B(53),ie=function(){},he=[],J=e("Reflect","construct"),W=/^\s*(?:class|function)\b/,X=R(W.exec),L=!W.exec(ie),Q=function(se){if(!K(se))return!1;try{return J(ie,he,se),!0}catch{return!1}},ce=function(se){if(!K(se))return!1;switch(z(se)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return L||!!X(W,ae(se))}catch{return!0}};ce.sham=!0,$.exports=!J||U(function(){var de;return Q(Q.call)||!Q(Object)||!Q(function(){de=!0})||de})?ce:Q},$=>{var D=TypeError;$.exports=function(B,R){if(B<R)throw D("Not enough arguments");return B}},($,D,B)=>{var R=B(12),U=B(41),K=B(27),z=B(124),e=RegExp.prototype;$.exports=function(ae){var ie=ae.flags;return ie===void 0&&!("flags"in e)&&!U(ae,"flags")&&K(e,ae)?R(z,ae):ie}},($,D,B)=>{var R=B(49);$.exports=function(){var U=R(this),K="";return U.hasIndices&&(K+="d"),U.global&&(K+="g"),U.ignoreCase&&(K+="i"),U.multiline&&(K+="m"),U.dotAll&&(K+="s"),U.unicode&&(K+="u"),U.unicodeSets&&(K+="v"),U.sticky&&(K+="y"),K}},($,D,B)=>{var R=B(11),U=B(15);$.exports=!R(function(){var K=Error("a");return"stack"in K?(Object.defineProperty(K,"stack",U(1,7)),K.stack!==7):!0})},($,D,B)=>{var R=B(127),U=B(128);$.exports=!R&&!U&&typeof window=="object"&&typeof document=="object"},$=>{$.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},($,D,B)=>{var R=B(19),U=B(8);$.exports=R(U.process)=="process"},($,D,B)=>{var R=B(8);$.exports=R},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.RefSetCache=D.RefSet=D.Ref=D.Name=D.EOF=D.Dict=D.Cmd=D.CIRCULAR_REF=void 0,D.clearPrimitiveCaches=de,D.isCmd=L,D.isDict=Q,D.isName=X,D.isRefsEqual=ce;var R=B(2);const U=Symbol("CIRCULAR_REF");D.CIRCULAR_REF=U;const K=Symbol("EOF");D.EOF=K;const z=function(){let oe=Object.create(null);class me{constructor(ke){this.name=ke}static get(ke){return oe[ke]||(oe[ke]=new me(ke))}static _clearCache(){oe=Object.create(null)}}return me}();D.Name=z;const e=function(){let oe=Object.create(null);class me{constructor(ke){this.cmd=ke}static get(ke){return oe[ke]||(oe[ke]=new me(ke))}static _clearCache(){oe=Object.create(null)}}return me}();D.Cmd=e;const ae=function(){return ae};class ie{constructor(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._map=Object.create(null),this.xref=oe,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=ae}assignXref(oe){this.xref=oe}get size(){return Object.keys(this._map).length}get(oe,me,Ee){let ke=this._map[oe];return ke===void 0&&me!==void 0&&(ke=this._map[me],ke===void 0&&Ee!==void 0&&(ke=this._map[Ee])),ke instanceof he&&this.xref?this.xref.fetch(ke,this.suppressEncryption):ke}async getAsync(oe,me,Ee){let ke=this._map[oe];return ke===void 0&&me!==void 0&&(ke=this._map[me],ke===void 0&&Ee!==void 0&&(ke=this._map[Ee])),ke instanceof he&&this.xref?this.xref.fetchAsync(ke,this.suppressEncryption):ke}getArray(oe,me,Ee){let ke=this._map[oe];if(ke===void 0&&me!==void 0&&(ke=this._map[me],ke===void 0&&Ee!==void 0&&(ke=this._map[Ee])),ke instanceof he&&this.xref&&(ke=this.xref.fetch(ke,this.suppressEncryption)),Array.isArray(ke)){ke=ke.slice();for(let xe=0,fe=ke.length;xe<fe;xe++)ke[xe]instanceof he&&this.xref&&(ke[xe]=this.xref.fetch(ke[xe],this.suppressEncryption))}return ke}getRaw(oe){return this._map[oe]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(oe,me){this._map[oe]=me}has(oe){return this._map[oe]!==void 0}forEach(oe){for(const me in this._map)oe(me,this.get(me))}static get empty(){const oe=new ie(null);return oe.set=(me,Ee)=>{(0,R.unreachable)("Should not call `set` on the empty dictionary.")},(0,R.shadow)(this,"empty",oe)}static merge(oe){let{xref:me,dictArray:Ee,mergeSubDicts:ke=!1}=oe;const xe=new ie(me),fe=new Map;for(const ve of Ee)if(ve instanceof ie)for(const[ye,Ce]of Object.entries(ve._map)){let pe=fe.get(ye);if(pe===void 0)pe=[],fe.set(ye,pe);else if(!ke||!(Ce instanceof ie))continue;pe.push(Ce)}for(const[ve,ye]of fe){if(ye.length===1||!(ye[0]instanceof ie)){xe._map[ve]=ye[0];continue}const Ce=new ie(me);for(const pe of ye)for(const[_e,Ge]of Object.entries(pe._map))Ce._map[_e]===void 0&&(Ce._map[_e]=Ge);Ce.size>0&&(xe._map[ve]=Ce)}return fe.clear(),xe.size>0?xe:ie.empty}}D.Dict=ie;const he=function(){let oe=Object.create(null);class me{constructor(ke,xe){this.num=ke,this.gen=xe}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static get(ke,xe){const fe=xe===0?`${ke}R`:`${ke}R${xe}`;return oe[fe]||(oe[fe]=new me(ke,xe))}static _clearCache(){oe=Object.create(null)}}return me}();D.Ref=he;class J{constructor(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._set=new Set(oe&&oe._set)}has(oe){return this._set.has(oe.toString())}put(oe){this._set.add(oe.toString())}remove(oe){this._set.delete(oe.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}D.RefSet=J;class W{constructor(){this._map=new Map}get size(){return this._map.size}get(oe){return this._map.get(oe.toString())}has(oe){return this._map.has(oe.toString())}put(oe,me){this._map.set(oe.toString(),me)}putAlias(oe,me){this._map.set(oe.toString(),this.get(me))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}D.RefSetCache=W;function X(se,oe){return se instanceof z&&(oe===void 0||se.name===oe)}function L(se,oe){return se instanceof e&&(oe===void 0||se.cmd===oe)}function Q(se,oe){return se instanceof ie&&(oe===void 0||X(se.get("Type"),oe))}function ce(se,oe){return se.num===oe.num&&se.gen===oe.gen}function de(){e._clearCache(),z._clearCache(),he._clearCache()}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XRefParseException=D.XRefEntryException=D.ParserEOFException=D.MissingDataException=D.DocStats=void 0,D.collectActions=fe,D.encodeToXmlString=ye,D.escapePDFName=ke,D.getArrayLookupTableFactory=e,D.getInheritableProperty=X,D.getLookupTableFactory=z,D.getNewAnnotationsMap=Ge,D.isWhiteSpace=me,D.log2=ce,D.numberToString=_e,D.parseXFAPath=Ee,D.readInt8=de,D.readUint16=se,D.readUint32=oe,D.recoverJsURL=pe,D.toRomanNumerals=Q,D.validateCSSFont=Ce;var R=B(2),U=B(130),K=B(132);function z(Ae){let Ne;return function(){return Ae&&(Ne=Object.create(null),Ae(Ne),Ae=null),Ne}}function e(Ae){let Ne;return function(){if(Ae){let Ze=Ae();Ae=null,Ne=Object.create(null);for(let ze=0,Te=Ze.length;ze<Te;ze+=2)Ne[Ze[ze]]=Ze[ze+1];Ze=null}return Ne}}class ae extends R.BaseException{constructor(Ne,Ze){super(`Missing data [${Ne}, ${Ze})`,"MissingDataException"),this.begin=Ne,this.end=Ze}}D.MissingDataException=ae;class ie extends R.BaseException{constructor(Ne){super(Ne,"ParserEOFException")}}D.ParserEOFException=ie;class he extends R.BaseException{constructor(Ne){super(Ne,"XRefEntryException")}}D.XRefEntryException=he;class J extends R.BaseException{constructor(Ne){super(Ne,"XRefParseException")}}D.XRefParseException=J;class W{constructor(Ne){this._handler=Ne,this._streamTypes=new Set,this._fontTypes=new Set}_send(){const Ne=Object.create(null),Ze=Object.create(null);for(const ze of this._streamTypes)Ne[ze]=!0;for(const ze of this._fontTypes)Ze[ze]=!0;this._handler.send("DocStats",{streamTypes:Ne,fontTypes:Ze})}addStreamType(Ne){this._streamTypes.has(Ne)||(this._streamTypes.add(Ne),this._send())}addFontType(Ne){this._fontTypes.has(Ne)||(this._fontTypes.add(Ne),this._send())}}D.DocStats=W;function X(Ae){let{dict:Ne,key:Ze,getArray:ze=!1,stopWhenFound:Te=!0}=Ae,Fe;const Pe=new U.RefSet;for(;Ne instanceof U.Dict&&!(Ne.objId&&Pe.has(Ne.objId));){Ne.objId&&Pe.put(Ne.objId);const we=ze?Ne.getArray(Ze):Ne.get(Ze);if(we!==void 0){if(Te)return we;Fe||(Fe=[]),Fe.push(we)}Ne=Ne.get("Parent")}return Fe}const L=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function Q(Ae){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,R.assert)(Number.isInteger(Ae)&&Ae>0,"The number should be a positive integer.");const Ze=[];let ze;for(;Ae>=1e3;)Ae-=1e3,Ze.push("M");ze=Ae/100|0,Ae%=100,Ze.push(L[ze]),ze=Ae/10|0,Ae%=10,Ze.push(L[10+ze]),Ze.push(L[20+Ae]);const Te=Ze.join("");return Ne?Te.toLowerCase():Te}function ce(Ae){return Ae<=0?0:Math.ceil(Math.log2(Ae))}function de(Ae,Ne){return Ae[Ne]<<24>>24}function se(Ae,Ne){return Ae[Ne]<<8|Ae[Ne+1]}function oe(Ae,Ne){return(Ae[Ne]<<24|Ae[Ne+1]<<16|Ae[Ne+2]<<8|Ae[Ne+3])>>>0}function me(Ae){return Ae===32||Ae===9||Ae===13||Ae===10}function Ee(Ae){const Ne=/(.+)\[(\d+)\]$/;return Ae.split(".").map(Ze=>{const ze=Ze.match(Ne);return ze?{name:ze[1],pos:parseInt(ze[2],10)}:{name:Ze,pos:0}})}function ke(Ae){const Ne=[];let Ze=0;for(let ze=0,Te=Ae.length;ze<Te;ze++){const Fe=Ae.charCodeAt(ze);(Fe<33||Fe>126||Fe===35||Fe===40||Fe===41||Fe===60||Fe===62||Fe===91||Fe===93||Fe===123||Fe===125||Fe===47||Fe===37)&&(Ze<ze&&Ne.push(Ae.substring(Ze,ze)),Ne.push(`#${Fe.toString(16)}`),Ze=ze+1)}return Ne.length===0?Ae:(Ze<Ae.length&&Ne.push(Ae.substring(Ze,Ae.length)),Ne.join(""))}function xe(Ae,Ne,Ze,ze){if(!Ae)return;let Te=null;if(Ae instanceof U.Ref){if(ze.has(Ae))return;Te=Ae,ze.put(Te),Ae=Ne.fetch(Ae)}if(Array.isArray(Ae))for(const Fe of Ae)xe(Fe,Ne,Ze,ze);else if(Ae instanceof U.Dict){if((0,U.isName)(Ae.get("S"),"JavaScript")){const Fe=Ae.get("JS");let Pe;Fe instanceof K.BaseStream?Pe=Fe.getString():typeof Fe=="string"&&(Pe=Fe),Pe=Pe&&(0,R.stringToPDFString)(Pe).replace(/\u0000/g,""),Pe&&Ze.push(Pe)}xe(Ae.getRaw("Next"),Ne,Ze,ze)}Te&&ze.remove(Te)}function fe(Ae,Ne,Ze){const ze=Object.create(null),Te=X({dict:Ne,key:"AA",stopWhenFound:!1});if(Te)for(let Fe=Te.length-1;Fe>=0;Fe--){const Pe=Te[Fe];if(Pe instanceof U.Dict)for(const we of Pe.getKeys()){const Ie=Ze[we];if(!Ie)continue;const Be=Pe.getRaw(we),Ke=new U.RefSet,Ve=[];xe(Be,Ae,Ve,Ke),Ve.length>0&&(ze[Ie]=Ve)}}if(Ne.has("A")){const Fe=Ne.get("A"),Pe=new U.RefSet,we=[];xe(Fe,Ae,we,Pe),we.length>0&&(ze.Action=we)}return(0,R.objectSize)(ze)>0?ze:null}const ve={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function ye(Ae){const Ne=[];let Ze=0;for(let ze=0,Te=Ae.length;ze<Te;ze++){const Fe=Ae.codePointAt(ze);if(32<=Fe&&Fe<=126){const Pe=ve[Fe];Pe&&(Ze<ze&&Ne.push(Ae.substring(Ze,ze)),Ne.push(Pe),Ze=ze+1)}else Ze<ze&&Ne.push(Ae.substring(Ze,ze)),Ne.push(`&#x${Fe.toString(16).toUpperCase()};`),Fe>55295&&(Fe<57344||Fe>65533)&&ze++,Ze=ze+1}return Ne.length===0?Ae:(Ze<Ae.length&&Ne.push(Ae.substring(Ze,Ae.length)),Ne.join(""))}function Ce(Ae){const Ne="14",Ze="400",ze=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:Te,fontWeight:Fe,italicAngle:Pe}=Ae;if(/^".*"$/.test(Te)){if(/[^\\]"/.test(Te.slice(1,Te.length-1)))return(0,R.warn)(`XFA - FontFamily contains some unescaped ": ${Te}.`),!1}else if(/^'.*'$/.test(Te)){if(/[^\\]'/.test(Te.slice(1,Te.length-1)))return(0,R.warn)(`XFA - FontFamily contains some unescaped ': ${Te}.`),!1}else for(const Be of Te.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(Be)||!/^[\w-\\]+$/.test(Be))return(0,R.warn)(`XFA - FontFamily contains some invalid <custom-ident>: ${Te}.`),!1;const we=Fe?Fe.toString():"";Ae.fontWeight=ze.has(we)?we:Ze;const Ie=parseFloat(Pe);return Ae.italicAngle=isNaN(Ie)||Ie<-90||Ie>90?Ne:Pe.toString(),!0}function pe(Ae){const Ne=["app.launchURL","window.open","xfa.host.gotoURL"],ze=new RegExp("^\\s*("+Ne.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(Ae);if(ze&&ze[2]){const Te=ze[2];let Fe=!1;return ze[3]==="true"&&ze[1]==="app.launchURL"&&(Fe=!0),{url:Te,newWindow:Fe}}return null}function _e(Ae){if(Number.isInteger(Ae))return Ae.toString();const Ne=Math.round(Ae*100);return Ne%100===0?(Ne/100).toString():Ne%10===0?Ae.toFixed(1):Ae.toFixed(2)}function Ge(Ae){if(!Ae)return null;const Ne=new Map;for(const[Ze,ze]of Ae){if(!Ze.startsWith(R.AnnotationEditorPrefix))continue;let Te=Ne.get(ze.pageIndex);Te||(Te=[],Ne.set(ze.pageIndex,Te)),Te.push(ze)}return Ne.size>0?Ne:null}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.BaseStream=void 0;var R=B(2);class U{constructor(){this.constructor===U&&(0,R.unreachable)("Cannot initialize BaseStream.")}get length(){(0,R.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,R.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,R.shadow)(this,"isDataLoaded",!0)}getByte(){(0,R.unreachable)("Abstract method `getByte` called")}getBytes(z){(0,R.unreachable)("Abstract method `getBytes` called")}peekByte(){const z=this.getByte();return z!==-1&&this.pos--,z}peekBytes(z){const e=this.getBytes(z);return this.pos-=e.length,e}getUint16(){const z=this.getByte(),e=this.getByte();return z===-1||e===-1?-1:(z<<8)+e}getInt32(){const z=this.getByte(),e=this.getByte(),ae=this.getByte(),ie=this.getByte();return(z<<24)+(e<<16)+(ae<<8)+ie}getByteRange(z,e){(0,R.unreachable)("Abstract method `getByteRange` called")}getString(z){return(0,R.bytesToString)(this.getBytes(z))}skip(z){this.pos+=z||1}reset(){(0,R.unreachable)("Abstract method `reset` called")}moveStart(){(0,R.unreachable)("Abstract method `moveStart` called")}makeSubStream(z,e){(0,R.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}D.BaseStream=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.NetworkPdfManager=D.LocalPdfManager=void 0;var R=B(2),U=B(134),K=B(131),z=B(136),e=B(135);function ae(W){if(W){const X=(0,R.createValidAbsoluteUrl)(W);if(X)return X.href;(0,R.warn)(`Invalid absolute docBaseUrl: "${W}".`)}return null}class ie{constructor(){this.constructor===ie&&(0,R.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const X=this.pdfDocument.catalog;return(0,R.shadow)(this,"docBaseUrl",X.baseUrl||this._docBaseUrl)}onLoadedStream(){(0,R.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(X,L){return this.ensure(this.pdfDocument,X,L)}ensureXRef(X,L){return this.ensure(this.pdfDocument.xref,X,L)}ensureCatalog(X,L){return this.ensure(this.pdfDocument.catalog,X,L)}getPage(X){return this.pdfDocument.getPage(X)}fontFallback(X,L){return this.pdfDocument.fontFallback(X,L)}loadXfaFonts(X,L){return this.pdfDocument.loadXfaFonts(X,L)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(X){return this.pdfDocument.serializeXfaData(X)}cleanup(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pdfDocument.cleanup(X)}async ensure(X,L,Q){(0,R.unreachable)("Abstract method `ensure` called")}requestRange(X,L){(0,R.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,R.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(X){(0,R.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(X){this._password=X}terminate(X){(0,R.unreachable)("Abstract method `terminate` called")}}class he extends ie{constructor(X,L,Q,ce,de,se,oe){super(),this._docId=X,this._password=Q,this._docBaseUrl=ae(oe),this.msgHandler=ce,this.evaluatorOptions=de,this.enableXfa=se;const me=new e.Stream(L);this.pdfDocument=new z.PDFDocument(this,me),this._loadedStreamPromise=Promise.resolve(me)}async ensure(X,L,Q){const ce=X[L];return typeof ce=="function"?ce.apply(X,Q):ce}requestRange(X,L){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(X){}}D.LocalPdfManager=he;class J extends ie{constructor(X,L,Q,ce,de,se){super(),this._docId=X,this._password=Q.password,this._docBaseUrl=ae(se),this.msgHandler=Q.msgHandler,this.evaluatorOptions=ce,this.enableXfa=de,this.streamManager=new U.ChunkedStreamManager(L,{msgHandler:Q.msgHandler,length:Q.length,disableAutoFetch:Q.disableAutoFetch,rangeChunkSize:Q.rangeChunkSize}),this.pdfDocument=new z.PDFDocument(this,this.streamManager.getStream())}async ensure(X,L,Q){try{const ce=X[L];return typeof ce=="function"?ce.apply(X,Q):ce}catch(ce){if(!(ce instanceof K.MissingDataException))throw ce;return await this.requestRange(ce.begin,ce.end),this.ensure(X,L,Q)}}requestRange(X,L){return this.streamManager.requestRange(X,L)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(X){this.streamManager.onReceiveData({chunk:X})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(X){this.streamManager.abort(X)}}D.NetworkPdfManager=J},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ChunkedStreamManager=D.ChunkedStream=void 0;var R=B(2),U=B(131),K=B(135);class z extends K.Stream{constructor(ie,he,J){super(new Uint8Array(ie),0,ie,null),this.chunkSize=he,this._loadedChunks=new Set,this.numChunks=Math.ceil(ie/he),this.manager=J,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const ie=[];for(let he=0,J=this.numChunks;he<J;++he)this._loadedChunks.has(he)||ie.push(he);return ie}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(ie,he){const J=this.chunkSize;if(ie%J!==0)throw new Error(`Bad begin offset: ${ie}`);const W=ie+he.byteLength;if(W%J!==0&&W!==this.bytes.length)throw new Error(`Bad end offset: ${W}`);this.bytes.set(new Uint8Array(he),ie);const X=Math.floor(ie/J),L=Math.floor((W-1)/J)+1;for(let Q=X;Q<L;++Q)this._loadedChunks.add(Q)}onReceiveProgressiveData(ie){let he=this.progressiveDataLength;const J=Math.floor(he/this.chunkSize);this.bytes.set(new Uint8Array(ie),he),he+=ie.byteLength,this.progressiveDataLength=he;const W=he>=this.end?this.numChunks:Math.floor(he/this.chunkSize);for(let X=J;X<W;++X)this._loadedChunks.add(X)}ensureByte(ie){if(ie<this.progressiveDataLength)return;const he=Math.floor(ie/this.chunkSize);if(!(he>this.numChunks)&&he!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(he))throw new U.MissingDataException(ie,ie+1);this.lastSuccessfulEnsureByteChunk=he}}ensureRange(ie,he){if(ie>=he||he<=this.progressiveDataLength)return;const J=Math.floor(ie/this.chunkSize);if(J>this.numChunks)return;const W=Math.min(Math.floor((he-1)/this.chunkSize)+1,this.numChunks);for(let X=J;X<W;++X)if(!this._loadedChunks.has(X))throw new U.MissingDataException(ie,he)}nextEmptyChunk(ie){const he=this.numChunks;for(let J=0;J<he;++J){const W=(ie+J)%he;if(!this._loadedChunks.has(W))return W}return null}hasChunk(ie){return this._loadedChunks.has(ie)}getByte(){const ie=this.pos;return ie>=this.end?-1:(ie>=this.progressiveDataLength&&this.ensureByte(ie),this.bytes[this.pos++])}getBytes(ie){const he=this.bytes,J=this.pos,W=this.end;if(!ie)return W>this.progressiveDataLength&&this.ensureRange(J,W),he.subarray(J,W);let X=J+ie;return X>W&&(X=W),X>this.progressiveDataLength&&this.ensureRange(J,X),this.pos=X,he.subarray(J,X)}getByteRange(ie,he){return ie<0&&(ie=0),he>this.end&&(he=this.end),he>this.progressiveDataLength&&this.ensureRange(ie,he),this.bytes.subarray(ie,he)}makeSubStream(ie,he){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;he?ie+he>this.progressiveDataLength&&this.ensureRange(ie,ie+he):ie>=this.progressiveDataLength&&this.ensureByte(ie);function W(){}W.prototype=Object.create(this),W.prototype.getMissingChunks=function(){const L=this.chunkSize,Q=Math.floor(this.start/L),ce=Math.floor((this.end-1)/L)+1,de=[];for(let se=Q;se<ce;++se)this._loadedChunks.has(se)||de.push(se);return de},Object.defineProperty(W.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});const X=new W;return X.pos=X.start=ie,X.end=ie+he||this.end,X.dict=J,X}getBaseStreams(){return[this]}}D.ChunkedStream=z;class e{constructor(ie,he){this.length=he.length,this.chunkSize=he.rangeChunkSize,this.stream=new z(this.length,this.chunkSize,this),this.pdfNetworkStream=ie,this.disableAutoFetch=he.disableAutoFetch,this.msgHandler=he.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,R.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(ie,he){const J=this.pdfNetworkStream.getRangeReader(ie,he);J.isStreamingSupported||(J.onProgress=this.onProgress.bind(this));let W=[],X=0;return new Promise((L,Q)=>{const ce=de=>{try{if(!de.done){const oe=de.value;W.push(oe),X+=(0,R.arrayByteLength)(oe),J.isStreamingSupported&&this.onProgress({loaded:X}),J.read().then(ce,Q);return}const se=(0,R.arraysToBytes)(W);W=null,L(se)}catch(se){Q(se)}};J.read().then(ce,Q)}).then(L=>{this.aborted||this.onReceiveData({chunk:L,begin:ie})})}requestAllChunks(){const ie=this.stream.getMissingChunks();return this._requestChunks(ie),this._loadedStreamCapability.promise}_requestChunks(ie){const he=this.currRequestId++,J=new Set;this._chunksNeededByRequest.set(he,J);for(const L of ie)this.stream.hasChunk(L)||J.add(L);if(J.size===0)return Promise.resolve();const W=(0,R.createPromiseCapability)();this._promisesByRequest.set(he,W);const X=[];for(const L of J){let Q=this._requestsByChunk.get(L);Q||(Q=[],this._requestsByChunk.set(L,Q),X.push(L)),Q.push(he)}if(X.length>0){const L=this.groupChunks(X);for(const Q of L){const ce=Q.beginChunk*this.chunkSize,de=Math.min(Q.endChunk*this.chunkSize,this.length);this.sendRequest(ce,de).catch(W.reject)}}return W.promise.catch(L=>{if(!this.aborted)throw L})}getStream(){return this.stream}requestRange(ie,he){he=Math.min(he,this.length);const J=this.getBeginChunk(ie),W=this.getEndChunk(he),X=[];for(let L=J;L<W;++L)X.push(L);return this._requestChunks(X)}requestRanges(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const he=[];for(const J of ie){const W=this.getBeginChunk(J.begin),X=this.getEndChunk(J.end);for(let L=W;L<X;++L)he.includes(L)||he.push(L)}return he.sort(function(J,W){return J-W}),this._requestChunks(he)}groupChunks(ie){const he=[];let J=-1,W=-1;for(let X=0,L=ie.length;X<L;++X){const Q=ie[X];J<0&&(J=Q),W>=0&&W+1!==Q&&(he.push({beginChunk:J,endChunk:W+1}),J=Q),X+1===ie.length&&he.push({beginChunk:J,endChunk:Q+1}),W=Q}return he}onProgress(ie){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+ie.loaded,total:this.length})}onReceiveData(ie){const he=ie.chunk,J=ie.begin===void 0,W=J?this.progressiveDataLength:ie.begin,X=W+he.byteLength,L=Math.floor(W/this.chunkSize),Q=X<this.length?Math.floor(X/this.chunkSize):Math.ceil(X/this.chunkSize);J?(this.stream.onReceiveProgressiveData(he),this.progressiveDataLength=X):this.stream.onReceiveData(W,he),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const ce=[];for(let de=L;de<Q;++de){const se=this._requestsByChunk.get(de);if(se){this._requestsByChunk.delete(de);for(const oe of se){const me=this._chunksNeededByRequest.get(oe);me.has(de)&&me.delete(de),!(me.size>0)&&ce.push(oe)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let de;if(this.stream.numChunksLoaded===1){const se=this.stream.numChunks-1;this.stream.hasChunk(se)||(de=se)}else de=this.stream.nextEmptyChunk(Q);Number.isInteger(de)&&this._requestChunks([de])}for(const de of ce){const se=this._promisesByRequest.get(de);this._promisesByRequest.delete(de),se.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(ie){this._loadedStreamCapability.reject(ie)}getBeginChunk(ie){return Math.floor(ie/this.chunkSize)}getEndChunk(ie){return Math.floor((ie-1)/this.chunkSize)+1}abort(ie){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(ie);for(const he of this._promisesByRequest.values())he.reject(ie)}}D.ChunkedStreamManager=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.StringStream=D.Stream=D.NullStream=void 0;var R=B(132),U=B(2);class K extends R.BaseStream{constructor(ie,he,J,W){super(),this.bytes=ie instanceof Uint8Array?ie:new Uint8Array(ie),this.start=he||0,this.pos=this.start,this.end=he+J||this.bytes.length,this.dict=W}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(ie){const he=this.bytes,J=this.pos,W=this.end;if(!ie)return he.subarray(J,W);let X=J+ie;return X>W&&(X=W),this.pos=X,he.subarray(J,X)}getByteRange(ie,he){return ie<0&&(ie=0),he>this.end&&(he=this.end),this.bytes.subarray(ie,he)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(ie,he){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new K(this.bytes.buffer,ie,he,J)}}D.Stream=K;class z extends K{constructor(ie){super((0,U.stringToBytes)(ie))}}D.StringStream=z;class e extends K{constructor(){super(new Uint8Array(0))}}D.NullStream=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Page=D.PDFDocument=void 0;var R=B(137),U=B(2),K=B(131),z=B(130),e=B(176),ae=B(132),ie=B(192),he=B(194),J=B(196),W=B(225),X=B(142),L=B(135),Q=B(200),ce=B(187),de=B(140),se=B(144),oe=B(199),me=B(190),Ee=B(201),ke=B(226);const xe=1,fe=[0,0,612,792];class ve{constructor(Te){let{pdfManager:Fe,xref:Pe,pageIndex:we,pageDict:Ie,ref:Be,globalIdFactory:Ke,fontCache:Ve,builtInCMapCache:je,standardFontDataCache:Le,globalImageCache:et,nonBlendModesSet:Qe,xfaFactory:Ue}=Te;this.pdfManager=Fe,this.pageIndex=we,this.pageDict=Ie,this.xref=Pe,this.ref=Be,this.fontCache=Ve,this.builtInCMapCache=je,this.standardFontDataCache=Le,this.globalImageCache=et,this.nonBlendModesSet=Qe,this.evaluatorOptions=Fe.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=Ue;const $e={obj:0};this._localIdFactory=class extends Ke{static createObjId(){return`p${we}_${++$e.obj}`}static getPageObjId(){return`page${Be.toString()}`}}}_getInheritableProperty(Te){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const Pe=(0,K.getInheritableProperty)({dict:this.pageDict,key:Te,getArray:Fe,stopWhenFound:!1});return Array.isArray(Pe)?Pe.length===1||!(Pe[0]instanceof z.Dict)?Pe[0]:z.Dict.merge({xref:this.xref,dictArray:Pe}):Pe}get content(){return this.pageDict.getArray("Contents")}get resources(){const Te=this._getInheritableProperty("Resources");return(0,U.shadow)(this,"resources",Te instanceof z.Dict?Te:z.Dict.empty)}_getBoundingBox(Te){if(this.xfaData)return this.xfaData.bbox;const Fe=this._getInheritableProperty(Te,!0);if(Array.isArray(Fe)&&Fe.length===4){if(Fe[2]-Fe[0]!==0&&Fe[3]-Fe[1]!==0)return Fe;(0,U.warn)(`Empty /${Te} entry.`)}return null}get mediaBox(){return(0,U.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||fe)}get cropBox(){return(0,U.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let Te=this.pageDict.get("UserUnit");return(typeof Te!="number"||Te<=0)&&(Te=xe),(0,U.shadow)(this,"userUnit",Te)}get view(){const{cropBox:Te,mediaBox:Fe}=this;let Pe;if(Te===Fe||(0,U.isArrayEqual)(Te,Fe))Pe=Fe;else{const we=U.Util.intersect(Te,Fe);we&&we[2]-we[0]!==0&&we[3]-we[1]!==0?Pe=we:(0,U.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,U.shadow)(this,"view",Pe||Fe)}get rotate(){let Te=this._getInheritableProperty("Rotate")||0;return Te%90!==0?Te=0:Te>=360?Te%=360:Te<0&&(Te=(Te%360+360)%360),(0,U.shadow)(this,"rotate",Te)}_onSubStreamError(Te,Fe,Pe){if(this.evaluatorOptions.ignoreErrors){Te.send("UnsupportedFeature",{featureId:U.UNSUPPORTED_FEATURES.errorContentSubStream}),(0,U.warn)(`getContentStream - ignoring sub-stream (${Pe}): "${Fe}".`);return}throw Fe}getContentStream(Te){return this.pdfManager.ensure(this,"content").then(Fe=>Fe instanceof ae.BaseStream?Fe:Array.isArray(Fe)?new se.StreamsSequenceStream(Fe,this._onSubStreamError.bind(this,Te)):new L.NullStream)}get xfaData(){return(0,U.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(Te,Fe,Pe){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const we=new de.PartialEvaluator({xref:this.xref,handler:Te,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),Ie=this.pageDict,Be=this.annotations.slice(),Ke=await R.AnnotationFactory.saveNewAnnotations(we,Fe,Pe);for(const{ref:Qe}of Ke.annotations)Be.push(Qe);const Ve=Ie.get("Annots");Ie.set("Annots",Be);const je=[];let Le=null;this.xref.encrypt&&(Le=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,me.writeObject)(this.ref,Ie,je,Le),Ve&&Ie.set("Annots",Ve);const et=Ke.dependencies;return et.push({ref:this.ref,data:je.join("")},...Ke.annotations),et}save(Te,Fe,Pe){const we=new de.PartialEvaluator({xref:this.xref,handler:Te,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(Ie){const Be=[];for(const Ke of Ie)Ke.mustBePrinted(Pe)&&Be.push(Ke.save(we,Fe,Pe).catch(function(Ve){return(0,U.warn)(`save - ignoring annotation data during "${Fe.name}" task: "${Ve}".`),null}));return Promise.all(Be).then(function(Ke){return Ke.filter(Ve=>!!Ve)})})}loadResources(Te){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new Q.ObjectLoader(this.resources,Te,this.xref).load())}getOperatorList(Te){let{handler:Fe,sink:Pe,task:we,intent:Ie,cacheKey:Be,annotationStorage:Ke=null}=Te;const Ve=this.getContentStream(Fe),je=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),Le=new de.PartialEvaluator({xref:this.xref,handler:Fe,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),et=this.xfaFactory?null:(0,K.getNewAnnotationsMap)(Ke);let Qe=Promise.resolve(null);if(et){const Ye=et.get(this.pageIndex);Ye&&(Qe=R.AnnotationFactory.printNewAnnotations(Le,we,Ye))}const $e=Promise.all([Ve,je]).then(Ye=>{let[tt]=Ye;const ot=new ce.OperatorList(Ie,Pe);return Fe.send("StartRenderPage",{transparency:Le.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:Be}),Le.getOperatorList({stream:tt,task:we,resources:this.resources,operatorList:ot}).then(function(){return ot})});return Promise.all([$e,this._parsedAnnotations,Qe]).then(function(Ye){let[tt,ot,st]=Ye;if(st&&(ot=ot.concat(st)),ot.length===0||Ie&U.RenderingIntentFlag.ANNOTATIONS_DISABLE)return tt.flush(!0),{length:tt.totalLength};const dt=!!(Ie&U.RenderingIntentFlag.ANNOTATIONS_FORMS),ct=!!(Ie&U.RenderingIntentFlag.ANY),mt=!!(Ie&U.RenderingIntentFlag.DISPLAY),ut=!!(Ie&U.RenderingIntentFlag.PRINT),rt=[];for(const He of ot)(ct||mt&&He.mustBeViewed(Ke)||ut&&He.mustBePrinted(Ke))&&rt.push(He.getOperatorList(Le,we,Ie,dt,Ke).catch(function(Je){return(0,U.warn)(`getOperatorList - ignoring annotation data during "${we.name}" task: "${Je}".`),null}));return Promise.all(rt).then(function(He){let Je=!1,St=!1;for(const{opList:bt,separateForm:pt,separateCanvas:wt}of He)tt.addOpList(bt),pt&&(Je=pt),wt&&(St=wt);return tt.flush(!0,{form:Je,canvas:St}),{length:tt.totalLength}})})}extractTextContent(Te){let{handler:Fe,task:Pe,includeMarkedContent:we,sink:Ie,combineTextItems:Be}=Te;const Ke=this.getContentStream(Fe),Ve=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([Ke,Ve]).then(Le=>{let[et]=Le;return new de.PartialEvaluator({xref:this.xref,handler:Fe,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:et,task:Pe,resources:this.resources,includeMarkedContent:we,combineTextItems:Be,sink:Ie,viewBox:this.view})})}async getStructTree(){const Te=await this.pdfManager.ensureCatalog("structTreeRoot");return Te?(await this.pdfManager.ensure(this,"_parseStructTree",[Te])).serializable:null}_parseStructTree(Te){const Fe=new oe.StructTreePage(Te,this.pageDict);return Fe.parse(),Fe}async getAnnotationsData(Te,Fe,Pe){const we=await this._parsedAnnotations;if(we.length===0)return[];const Ie=[],Be=[];let Ke;const Ve=!!(Pe&U.RenderingIntentFlag.ANY),je=!!(Pe&U.RenderingIntentFlag.DISPLAY),Le=!!(Pe&U.RenderingIntentFlag.PRINT);for(const et of we){const Qe=Ve||je&&et.viewable;(Qe||Le&&et.printable)&&Be.push(et.data),et.hasTextContent&&Qe&&(Ke||(Ke=new de.PartialEvaluator({xref:this.xref,handler:Te,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})),Ie.push(et.extractTextContent(Ke,Fe,this.view).catch(function(Ue){(0,U.warn)(`getAnnotationsData - ignoring textContent during "${Fe.name}" task: "${Ue}".`)})))}return await Promise.all(Ie),Be}get annotations(){const Te=this._getInheritableProperty("Annots");return(0,U.shadow)(this,"annotations",Array.isArray(Te)?Te:[])}get _parsedAnnotations(){const Te=this.pdfManager.ensure(this,"annotations").then(()=>{const Fe=[];for(const Pe of this.annotations)Fe.push(R.AnnotationFactory.create(this.xref,Pe,this.pdfManager,this._localIdFactory,!1).catch(function(we){return(0,U.warn)(`_parsedAnnotations: "${we}".`),null}));return Promise.all(Fe).then(function(Pe){if(Pe.length===0)return Pe;const we=[];let Ie;for(const Be of Pe)if(Be){if(Be instanceof R.PopupAnnotation){Ie||(Ie=[]),Ie.push(Be);continue}we.push(Be)}return Ie&&we.push(...Ie),we})});return(0,U.shadow)(this,"_parsedAnnotations",Te)}get jsActions(){const Te=(0,K.collectActions)(this.xref,this.pageDict,U.PageActionEventType);return(0,U.shadow)(this,"jsActions",Te)}}D.Page=ve;const ye=new Uint8Array([37,80,68,70,45]),Ce=new Uint8Array([115,116,97,114,116,120,114,101,102]),pe=new Uint8Array([101,110,100,111,98,106]),_e=1024,Ge="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",Ae=/^[1-9]\.\d$/;function Ne(ze,Te){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1024,Pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const we=Te.length,Ie=ze.peekBytes(Fe),Be=Ie.length-we;if(Be<=0)return!1;if(Pe){const Ke=we-1;let Ve=Ie.length-1;for(;Ve>=Ke;){let je=0;for(;je<we&&Ie[Ve-je]===Te[Ke-je];)je++;if(je>=we)return ze.pos+=Ve-Ke,!0;Ve--}}else{let Ke=0;for(;Ke<=Be;){let Ve=0;for(;Ve<we&&Ie[Ke+Ve]===Te[Ve];)Ve++;if(Ve>=we)return ze.pos+=Ke,!0;Ke++}}return!1}class Ze{constructor(Te,Fe){if(Fe.length<=0)throw new U.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=Te,this.stream=Fe,this.xref=new ke.XRef(Fe,Te),this._pagePromises=new Map,this._version=null;const Pe={font:0};this._globalIdFactory=class{static getDocId(){return`g_${Te.docId}`}static createFontId(){return`f${++Pe.font}`}static createObjId(){(0,U.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,U.unreachable)("Abstract method `getPageObjId` called.")}}}parse(Te){this.xref.parse(Te),this.catalog=new he.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}get linearization(){let Te=null;try{Te=X.Linearization.create(this.stream)}catch(Fe){if(Fe instanceof K.MissingDataException)throw Fe;(0,U.info)(Fe)}return(0,U.shadow)(this,"linearization",Te)}get startXRef(){const Te=this.stream;let Fe=0;if(this.linearization)Te.reset(),Ne(Te,pe)&&(Fe=Te.pos+6-Te.start);else{const we=Ce.length;let Ie=!1,Be=Te.end;for(;!Ie&&Be>0;)Be-=1024-we,Be<0&&(Be=0),Te.pos=Be,Ie=Ne(Te,Ce,1024,!0);if(Ie){Te.skip(9);let Ke;do Ke=Te.getByte();while((0,K.isWhiteSpace)(Ke));let Ve="";for(;Ke>=32&&Ke<=57;)Ve+=String.fromCharCode(Ke),Ke=Te.getByte();Fe=parseInt(Ve,10),isNaN(Fe)&&(Fe=0)}}return(0,U.shadow)(this,"startXRef",Fe)}checkHeader(){const Te=this.stream;if(Te.reset(),!Ne(Te,ye))return;Te.moveStart();const Fe=12;let Pe="",we;for(;(we=Te.getByte())>32&&!(Pe.length>=Fe);)Pe+=String.fromCharCode(we);this._version||(this._version=Pe.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let Te=0;return this.catalog.hasActualNumPages?Te=this.catalog.numPages:this.xfaFactory?Te=this.xfaFactory.getNumPages():this.linearization?Te=this.linearization.numPages:Te=this.catalog.numPages,(0,U.shadow)(this,"numPages",Te)}_hasOnlyDocumentSignatures(Te){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const Pe=10;return Array.isArray(Te)?Te.every(we=>{if(we=this.xref.fetchIfRef(we),!(we instanceof z.Dict))return!1;if(we.has("Kids"))return++Fe>Pe?((0,U.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(we.get("Kids"),Fe);const Ie=(0,z.isName)(we.get("FT"),"Sig"),Be=we.get("Rect"),Ke=Array.isArray(Be)&&Be.every(Ve=>Ve===0);return Ie&&Ke}):!1}get _xfaStreams(){const Te=this.catalog.acroForm;if(!Te)return null;const Fe=Te.get("XFA"),Pe={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(Fe instanceof ae.BaseStream&&!Fe.isEmpty)return Pe["xdp:xdp"]=Fe,Pe;if(!Array.isArray(Fe)||Fe.length===0)return null;for(let we=0,Ie=Fe.length;we<Ie;we+=2){let Be;if(we===0?Be="xdp:xdp":we===Ie-2?Be="/xdp:xdp":Be=Fe[we],!Pe.hasOwnProperty(Be))continue;const Ke=this.xref.fetchIfRef(Fe[we+1]);!(Ke instanceof ae.BaseStream)||Ke.isEmpty||(Pe[Be]=Ke)}return Pe}get xfaDatasets(){const Te=this._xfaStreams;if(!Te)return(0,U.shadow)(this,"xfaDatasets",null);for(const Fe of["datasets","xdp:xdp"]){const Pe=Te[Fe];if(Pe)try{const we=(0,U.stringToUTF8String)(Pe.getString()),Ie={[Fe]:we};return(0,U.shadow)(this,"xfaDatasets",new W.DatasetReader(Ie))}catch{(0,U.warn)("XFA - Invalid utf-8 string.");break}}return(0,U.shadow)(this,"xfaDatasets",null)}get xfaData(){const Te=this._xfaStreams;if(!Te)return null;const Fe=Object.create(null);for(const[Pe,we]of Object.entries(Te))if(we)try{Fe[Pe]=(0,U.stringToUTF8String)(we.getString())}catch{return(0,U.warn)("XFA - Invalid utf-8 string."),null}return Fe}get xfaFactory(){let Te;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(Te=this.xfaData),(0,U.shadow)(this,"xfaFactory",Te?new Ee.XFAFactory(Te):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const Te=await this.pdfManager.ensureCatalog("xfaImages");if(!Te)return;const Fe=Te.getKeys();await new Q.ObjectLoader(Te,Fe,this.xref).load();const we=new Map;for(const Ie of Fe){const Be=Te.get(Ie);Be instanceof ae.BaseStream&&we.set(Ie,Be.getBytes())}this.xfaFactory.setImages(we)}async loadXfaFonts(Te,Fe){const Pe=await this.pdfManager.ensureCatalog("acroForm");if(!Pe)return;const we=await Pe.getAsync("DR");if(!(we instanceof z.Dict))return;await new Q.ObjectLoader(we,["Font"],this.xref).load();const Be=we.get("Font");if(!(Be instanceof z.Dict))return;const Ke=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);Ke.useSystemFonts=!1;const Ve=new de.PartialEvaluator({xref:this.xref,handler:Te,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:Ke}),je=new ce.OperatorList,Le=[],et={get font(){return Le.at(-1)},set font(tt){Le.push(tt)},clone(){return this}},Qe=new Map;Be.forEach((tt,ot)=>{Qe.set(tt,ot)});const Ue=[];for(const[tt,ot]of Qe){const st=ot.get("FontDescriptor");if(!(st instanceof z.Dict))continue;let dt=st.get("FontFamily");dt=dt.replace(/[ ]+(\d)/g,"$1");const ct=st.get("FontWeight"),mt=-st.get("ItalicAngle"),ut={fontFamily:dt,fontWeight:ct,italicAngle:mt};(0,K.validateCSSFont)(ut)&&Ue.push(Ve.handleSetFont(we,[z.Name.get(tt),1],null,je,Fe,et,null,ut).catch(function(rt){return(0,U.warn)(`loadXfaFonts: "${rt}".`),null}))}await Promise.all(Ue);const $e=this.xfaFactory.setFonts(Le);if(!$e)return;Ke.ignoreErrors=!0,Ue.length=0,Le.length=0;const Ye=new Set;for(const tt of $e)(0,e.getXfaFontName)(`${tt}-Regular`)||Ye.add(tt);Ye.size&&$e.push("PdfJS-Fallback");for(const tt of $e)if(!Ye.has(tt))for(const ot of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const st=`${tt}-${ot.name}`,dt=(0,e.getXfaFontDict)(st);Ue.push(Ve.handleSetFont(we,[z.Name.get(st),1],null,je,Fe,et,dt,{fontFamily:tt,fontWeight:ot.fontWeight,italicAngle:ot.italicAngle}).catch(function(ct){return(0,U.warn)(`loadXfaFonts: "${ct}".`),null}))}await Promise.all(Ue),this.xfaFactory.appendFonts(Le,Ye)}async serializeXfaData(Te){return this.xfaFactory?this.xfaFactory.serializeData(Te):null}get formInfo(){const Te={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},Fe=this.catalog.acroForm;if(!Fe)return(0,U.shadow)(this,"formInfo",Te);try{const Pe=Fe.get("Fields"),we=Array.isArray(Pe)&&Pe.length>0;Te.hasFields=we;const Ie=Fe.get("XFA");Te.hasXfa=Array.isArray(Ie)&&Ie.length>0||Ie instanceof ae.BaseStream&&!Ie.isEmpty;const Ke=!!(Fe.get("SigFlags")&1),Ve=Ke&&this._hasOnlyDocumentSignatures(Pe);Te.hasAcroForm=we&&!Ve,Te.hasSignatures=Ke}catch(Pe){if(Pe instanceof K.MissingDataException)throw Pe;(0,U.warn)(`Cannot fetch form information: "${Pe}".`)}return(0,U.shadow)(this,"formInfo",Te)}get documentInfo(){let Te=this._version;(typeof Te!="string"||!Ae.test(Te))&&((0,U.warn)(`Invalid PDF header version number: ${Te}`),Te=null);const Fe={PDFFormatVersion:Te,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let Pe;try{Pe=this.xref.trailer.get("Info")}catch(we){if(we instanceof K.MissingDataException)throw we;(0,U.info)("The document information dictionary is invalid.")}if(!(Pe instanceof z.Dict))return(0,U.shadow)(this,"documentInfo",Fe);for(const we of Pe.getKeys()){const Ie=Pe.get(we);switch(we){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof Ie=="string"){Fe[we]=(0,U.stringToPDFString)(Ie);continue}break;case"Trapped":if(Ie instanceof z.Name){Fe[we]=Ie;continue}break;default:let Be;switch(typeof Ie){case"string":Be=(0,U.stringToPDFString)(Ie);break;case"number":case"boolean":Be=Ie;break;default:Ie instanceof z.Name&&(Be=Ie);break}if(Be===void 0){(0,U.warn)(`Bad value, for custom key "${we}", in Info: ${Ie}.`);continue}Fe.Custom||(Fe.Custom=Object.create(null)),Fe.Custom[we]=Be;continue}(0,U.warn)(`Bad value, for key "${we}", in Info: ${Ie}.`)}return(0,U.shadow)(this,"documentInfo",Fe)}get fingerprints(){function Te(Be){return typeof Be=="string"&&Be.length>0&&Be!==Ge}function Fe(Be){const Ke=[];for(let Ve=0,je=Be.length;Ve<je;Ve++){const Le=Be[Ve].toString(16);Ke.push(Le.padStart(2,"0"))}return Ke.join("")}const Pe=this.xref.trailer.get("ID");let we,Ie;return Array.isArray(Pe)&&Te(Pe[0])?(we=(0,U.stringToBytes)(Pe[0]),Pe[1]!==Pe[0]&&Te(Pe[1])&&(Ie=(0,U.stringToBytes)(Pe[1]))):we=(0,ie.calculateMD5)(this.stream.getByteRange(0,_e),0,_e),(0,U.shadow)(this,"fingerprints",[Fe(we),Ie?Fe(Ie):null])}async _getLinearizationPage(Te){const{catalog:Fe,linearization:Pe,xref:we}=this,Ie=z.Ref.get(Pe.objectNumberFirst,0);try{const Be=await we.fetchAsync(Ie);if(Be instanceof z.Dict){let Ke=Be.getRaw("Type");if(Ke instanceof z.Ref&&(Ke=await we.fetchAsync(Ke)),(0,z.isName)(Ke,"Page")||!Be.has("Type")&&!Be.has("Kids"))return Fe.pageKidsCountCache.has(Ie)||Fe.pageKidsCountCache.put(Ie,1),Fe.pageIndexCache.has(Ie)||Fe.pageIndexCache.put(Ie,0),[Be,Ie]}throw new U.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(Be){return(0,U.warn)(`_getLinearizationPage: "${Be.message}".`),Fe.getPageDict(Te)}}getPage(Te){const Fe=this._pagePromises.get(Te);if(Fe)return Fe;const{catalog:Pe,linearization:we,xfaFactory:Ie}=this;let Be;return Ie?Be=Promise.resolve([z.Dict.empty,null]):we&&we.pageFirst===Te?Be=this._getLinearizationPage(Te):Be=Pe.getPageDict(Te),Be=Be.then(Ke=>{let[Ve,je]=Ke;return new ve({pdfManager:this.pdfManager,xref:this.xref,pageIndex:Te,pageDict:Ve,ref:je,globalIdFactory:this._globalIdFactory,fontCache:Pe.fontCache,builtInCMapCache:Pe.builtInCMapCache,standardFontDataCache:Pe.standardFontDataCache,globalImageCache:Pe.globalImageCache,nonBlendModesSet:Pe.nonBlendModesSet,xfaFactory:Ie})}),this._pagePromises.set(Te,Be),Be}async checkFirstPage(){if(!(arguments.length>0&&arguments[0]!==void 0&&arguments[0]))try{await this.getPage(0)}catch(Fe){if(Fe instanceof K.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new K.XRefParseException}}async checkLastPage(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{catalog:Fe,pdfManager:Pe}=this;Fe.setActualNumPages();let we;try{if(await Promise.all([Pe.ensureDoc("xfaFactory"),Pe.ensureDoc("linearization"),Pe.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?we=this.linearization.numPages:we=Fe.numPages,Number.isInteger(we)){if(we<=1)return}else throw new U.FormatError("Page count is not an integer.");await this.getPage(we-1)}catch(Ie){if(this._pagePromises.delete(we-1),await this.cleanup(),Ie instanceof K.XRefEntryException&&!Te)throw new K.XRefParseException;(0,U.warn)(`checkLastPage - invalid /Pages tree /Count: ${we}.`);let Be;try{Be=await Fe.getAllPageDicts(Te)}catch(Ke){if(Ke instanceof K.XRefEntryException&&!Te)throw new K.XRefParseException;Fe.setActualNumPages(1);return}for(const[Ke,[Ve,je]]of Be){let Le;Ve instanceof Error?(Le=Promise.reject(Ve),Le.catch(()=>{})):Le=Promise.resolve(new ve({pdfManager:Pe,xref:this.xref,pageIndex:Ke,pageDict:Ve,ref:je,globalIdFactory:this._globalIdFactory,fontCache:Fe.fontCache,builtInCMapCache:Fe.builtInCMapCache,standardFontDataCache:Fe.standardFontDataCache,globalImageCache:Fe.globalImageCache,nonBlendModesSet:Fe.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(Ke,Le)}Fe.setActualNumPages(Be.size)}}fontFallback(Te,Fe){return this.catalog.fontFallback(Te,Fe)}async cleanup(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.catalog?this.catalog.cleanup(Te):(0,J.clearGlobalCaches)()}_collectFieldObjects(Te,Fe,Pe){const we=this.xref.fetchIfRef(Fe);if(we.has("T")){const Ie=(0,U.stringToPDFString)(we.get("T"));Te===""?Te=Ie:Te=`${Te}.${Ie}`}if(Pe.has(Te)||Pe.set(Te,[]),Pe.get(Te).push(R.AnnotationFactory.create(this.xref,Fe,this.pdfManager,this._localIdFactory,!0).then(Ie=>Ie&&Ie.getFieldObject()).catch(function(Ie){return(0,U.warn)(`_collectFieldObjects: "${Ie}".`),null})),we.has("Kids")){const Ie=we.get("Kids");for(const Be of Ie)this._collectFieldObjects(Te,Be,Pe)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,U.shadow)(this,"fieldObjects",Promise.resolve(null));const Te=Object.create(null),Fe=new Map;for(const we of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",we,Fe);const Pe=[];for(const[we,Ie]of Fe)Pe.push(Promise.all(Ie).then(Be=>{Be=Be.filter(Ke=>!!Ke),Be.length>0&&(Te[we]=Be)}));return(0,U.shadow)(this,"fieldObjects",Promise.all(Pe).then(()=>Te))}get hasJSActions(){const Te=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,U.shadow)(this,"hasJSActions",Te)}async _parseHasJSActions(){const[Te,Fe]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return Te?!0:Fe?Object.values(Fe).some(Pe=>Pe.some(we=>we.actions!==null)):!1}get calculationOrderIds(){const Te=this.catalog.acroForm;if(!Te||!Te.has("CO"))return(0,U.shadow)(this,"calculationOrderIds",null);const Fe=Te.get("CO");if(!Array.isArray(Fe)||Fe.length===0)return(0,U.shadow)(this,"calculationOrderIds",null);const Pe=[];for(const we of Fe)we instanceof z.Ref&&Pe.push(we.toString());return Pe.length===0?(0,U.shadow)(this,"calculationOrderIds",null):(0,U.shadow)(this,"calculationOrderIds",Pe)}}D.PDFDocument=Ze},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PopupAnnotation=D.MarkupAnnotation=D.AnnotationFactory=D.AnnotationBorderStyle=D.Annotation=void 0,D.getQuadPoints=oe;var R=B(2),U=B(131),K=B(138),z=B(130),e=B(190),ae=B(132),ie=B(185),he=B(194),J=B(139),W=B(197),X=B(200),L=B(187),Q=B(135),ce=B(201);class de{static create(Ue,$e,Ye,tt,ot){return Promise.all([Ye.ensureCatalog("acroForm"),Ye.ensureCatalog("baseUrl"),Ye.ensureDoc("xfaDatasets"),ot?this._getPageIndex(Ue,$e,Ye):-1]).then(st=>{let[dt,ct,mt,ut]=st;return Ye.ensure(this,"_create",[Ue,$e,Ye,tt,dt,mt,ot,ut])})}static _create(Ue,$e,Ye,tt,ot,st,dt){let ct=arguments.length>7&&arguments[7]!==void 0?arguments[7]:-1;const mt=Ue.fetchIfRef($e);if(!(mt instanceof z.Dict))return;const ut=$e instanceof z.Ref?$e.toString():`annot_${tt.createObjId()}`;let rt=mt.get("Subtype");rt=rt instanceof z.Name?rt.name:null;const He={xref:Ue,ref:$e,dict:mt,subtype:rt,id:ut,pdfManager:Ye,acroForm:ot instanceof z.Dict?ot:z.Dict.empty,xfaDatasets:st,collectFields:dt,pageIndex:ct};switch(rt){case"Link":return new Ge(He);case"Text":return new _e(He);case"Widget":let Je=(0,U.getInheritableProperty)({dict:mt,key:"FT"});switch(Je=Je instanceof z.Name?Je.name:null,Je){case"Tx":return new ve(He);case"Btn":return new ye(He);case"Ch":return new Ce(He);case"Sig":return new pe(He)}return(0,R.warn)(`Unimplemented widget field type "${Je}", falling back to base field type.`),new fe(He);case"Popup":return new Ae(He);case"FreeText":return new Ne(He);case"Line":return new Ze(He);case"Square":return new ze(He);case"Circle":return new Te(He);case"PolyLine":return new Fe(He);case"Polygon":return new Pe(He);case"Caret":return new we(He);case"Ink":return new Ie(He);case"Highlight":return new Be(He);case"Underline":return new Ke(He);case"Squiggly":return new Ve(He);case"StrikeOut":return new je(He);case"Stamp":return new Le(He);case"FileAttachment":return new et(He);default:return dt||(rt?(0,R.warn)(`Unimplemented annotation type "${rt}", falling back to base annotation.`):(0,R.warn)("Annotation is missing the required /Subtype.")),new Ee(He)}}static async _getPageIndex(Ue,$e,Ye){try{const tt=await Ue.fetchIfRefAsync($e);if(!(tt instanceof z.Dict))return-1;const ot=tt.getRaw("P");return ot instanceof z.Ref?await Ye.ensureCatalog("getPageIndex",[ot]):-1}catch(tt){return(0,R.warn)(`_getPageIndex: "${tt}".`),-1}}static async saveNewAnnotations(Ue,$e,Ye){const tt=Ue.xref;let ot;const st=[],dt=[];for(const ct of Ye)switch(ct.annotationType){case R.AnnotationEditorType.FREETEXT:if(!ot){const mt=new z.Dict(tt);mt.set("BaseFont",z.Name.get("Helvetica")),mt.set("Type",z.Name.get("Font")),mt.set("Subtype",z.Name.get("Type1")),mt.set("Encoding",z.Name.get("WinAnsiEncoding"));const ut=[];ot=tt.getNewRef(),(0,e.writeObject)(ot,mt,ut,null),st.push({ref:ot,data:ut.join("")})}dt.push(Ne.createNewAnnotation(tt,ct,st,{evaluator:Ue,task:$e,baseFontRef:ot}));break;case R.AnnotationEditorType.INK:dt.push(Ie.createNewAnnotation(tt,ct,st))}return{annotations:await Promise.all(dt),dependencies:st}}static async printNewAnnotations(Ue,$e,Ye){if(!Ye)return null;const tt=Ue.xref,ot=[];for(const st of Ye)switch(st.annotationType){case R.AnnotationEditorType.FREETEXT:ot.push(Ne.createNewPrintAnnotation(tt,st,{evaluator:Ue,task:$e}));break;case R.AnnotationEditorType.INK:ot.push(Ie.createNewPrintAnnotation(tt,st));break}return Promise.all(ot)}}D.AnnotationFactory=de;function se(Qe){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(Qe))return Ue;const $e=Ue||new Uint8ClampedArray(3);switch(Qe.length){case 0:return null;case 1:return J.ColorSpace.singletons.gray.getRgbItem(Qe,0,$e,0),$e;case 3:return J.ColorSpace.singletons.rgb.getRgbItem(Qe,0,$e,0),$e;case 4:return J.ColorSpace.singletons.cmyk.getRgbItem(Qe,0,$e,0),$e;default:return Ue}}function oe(Qe,Ue){if(!Qe.has("QuadPoints"))return null;const $e=Qe.getArray("QuadPoints");if(!Array.isArray($e)||$e.length===0||$e.length%8>0)return null;const Ye=[];for(let tt=0,ot=$e.length/8;tt<ot;tt++){Ye.push([]);for(let st=tt*8,dt=tt*8+8;st<dt;st+=2){const ct=$e[st],mt=$e[st+1];if(Ue!==null&&(ct<Ue[0]||ct>Ue[2]||mt<Ue[1]||mt>Ue[3]))return null;Ye[tt].push({x:ct,y:mt})}}return Ye.map(tt=>{const[ot,st,dt,ct]=tt.reduce((mt,ut)=>{let[rt,He,Je,St]=mt;return[Math.min(rt,ut.x),Math.max(He,ut.x),Math.min(Je,ut.y),Math.max(St,ut.y)]},[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]);return[{x:ot,y:ct},{x:st,y:ct},{x:ot,y:dt},{x:st,y:dt}]})}function me(Qe,Ue,$e){const[Ye,tt,ot,st]=R.Util.getAxialAlignedBoundingBox(Ue,$e);if(Ye===ot||tt===st)return[1,0,0,1,Qe[0],Qe[1]];const dt=(Qe[2]-Qe[0])/(ot-Ye),ct=(Qe[3]-Qe[1])/(st-tt);return[dt,0,0,ct,Qe[0]-Ye*dt,Qe[1]-tt*ct]}class Ee{constructor(Ue){const $e=Ue.dict;this.setTitle($e.get("T")),this.setContents($e.get("Contents")),this.setModificationDate($e.get("M")),this.setFlags($e.get("F")),this.setRectangle($e.getArray("Rect")),this.setColor($e.getArray("C")),this.setBorderStyle($e),this.setAppearance($e),this.setOptionalContent($e);const Ye=$e.get("MK");if(this.setBorderAndBackgroundColors(Ye),this.setRotation(Ye),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:Ue.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:Ue.subtype,hasOwnCanvas:!1},Ue.collectFields){const tt=$e.get("Kids");if(Array.isArray(tt)){const ot=[];for(const st of tt)st instanceof z.Ref&&ot.push(st.toString());ot.length!==0&&(this.data.kidIds=ot)}this.data.actions=(0,U.collectActions)(Ue.xref,$e,R.AnnotationActionEventType),this.data.fieldName=this._constructFieldName($e),this.data.pageIndex=Ue.pageIndex}this._fallbackFontDict=null}_hasFlag(Ue,$e){return!!(Ue&$e)}_isViewable(Ue){return!this._hasFlag(Ue,R.AnnotationFlag.INVISIBLE)&&!this._hasFlag(Ue,R.AnnotationFlag.NOVIEW)}_isPrintable(Ue){return this._hasFlag(Ue,R.AnnotationFlag.PRINT)&&!this._hasFlag(Ue,R.AnnotationFlag.INVISIBLE)}mustBeViewed(Ue){const $e=Ue&&Ue.get(this.data.id);return $e&&$e.hidden!==void 0?!$e.hidden:this.viewable&&!this._hasFlag(this.flags,R.AnnotationFlag.HIDDEN)}mustBePrinted(Ue){const $e=Ue&&Ue.get(this.data.id);return $e&&$e.print!==void 0?$e.print:this.printable}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}_parseStringHelper(Ue){const $e=typeof Ue=="string"?(0,R.stringToPDFString)(Ue):"",Ye=$e&&(0,ie.bidi)($e).dir==="rtl"?"rtl":"ltr";return{str:$e,dir:Ye}}setTitle(Ue){this._title=this._parseStringHelper(Ue)}setContents(Ue){this._contents=this._parseStringHelper(Ue)}setModificationDate(Ue){this.modificationDate=typeof Ue=="string"?Ue:null}setFlags(Ue){this.flags=Number.isInteger(Ue)&&Ue>0?Ue:0}hasFlag(Ue){return this._hasFlag(this.flags,Ue)}setRectangle(Ue){Array.isArray(Ue)&&Ue.length===4?this.rectangle=R.Util.normalizeRect(Ue):this.rectangle=[0,0,0,0]}setColor(Ue){this.color=se(Ue)}setLineEndings(Ue){if(this.lineEndings=["None","None"],Array.isArray(Ue)&&Ue.length===2)for(let $e=0;$e<2;$e++){const Ye=Ue[$e];if(Ye instanceof z.Name)switch(Ye.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[$e]=Ye.name;continue}(0,R.warn)(`Ignoring invalid lineEnding: ${Ye}`)}}setRotation(Ue){if(this.rotation=0,Ue instanceof z.Dict){let $e=Ue.get("R")||0;Number.isInteger($e)&&$e!==0&&($e%=360,$e<0&&($e+=360),$e%90===0&&(this.rotation=$e))}}setBorderAndBackgroundColors(Ue){Ue instanceof z.Dict?(this.borderColor=se(Ue.getArray("BC"),null),this.backgroundColor=se(Ue.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(Ue){if(this.borderStyle=new ke,Ue instanceof z.Dict)if(Ue.has("BS")){const $e=Ue.get("BS"),Ye=$e.get("Type");(!Ye||(0,z.isName)(Ye,"Border"))&&(this.borderStyle.setWidth($e.get("W"),this.rectangle),this.borderStyle.setStyle($e.get("S")),this.borderStyle.setDashArray($e.getArray("D")))}else if(Ue.has("Border")){const $e=Ue.getArray("Border");Array.isArray($e)&&$e.length>=3&&(this.borderStyle.setHorizontalCornerRadius($e[0]),this.borderStyle.setVerticalCornerRadius($e[1]),this.borderStyle.setWidth($e[2],this.rectangle),$e.length===4&&this.borderStyle.setDashArray($e[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(Ue){this.appearance=null;const $e=Ue.get("AP");if(!($e instanceof z.Dict))return;const Ye=$e.get("N");if(Ye instanceof ae.BaseStream){this.appearance=Ye;return}if(!(Ye instanceof z.Dict))return;const tt=Ue.get("AS");!(tt instanceof z.Name)||!Ye.has(tt.name)||(this.appearance=Ye.get(tt.name))}setOptionalContent(Ue){this.oc=null;const $e=Ue.get("OC");$e instanceof z.Name?(0,R.warn)("setOptionalContent: Support for /Name-entry is not implemented."):$e instanceof z.Dict&&(this.oc=$e)}loadResources(Ue,$e){return $e.dict.getAsync("Resources").then(Ye=>Ye?new X.ObjectLoader(Ye,Ue,Ye.xref).load().then(function(){return Ye}):void 0)}async getOperatorList(Ue,$e,Ye,tt,ot){const st=this.data;let dt=this.appearance;const ct=!!(this.data.hasOwnCanvas&&Ye&R.RenderingIntentFlag.DISPLAY);if(!dt){if(!ct)return{opList:new L.OperatorList,separateForm:!1,separateCanvas:!1};dt=new Q.StringStream(""),dt.dict=new z.Dict}const mt=dt.dict,ut=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],dt),rt=mt.getArray("BBox")||[0,0,1,1],He=mt.getArray("Matrix")||[1,0,0,1,0,0],Je=me(st.rect,rt,He),St=new L.OperatorList;let bt;return this.oc&&(bt=await Ue.parseMarkedContentProps(this.oc,null)),bt!==void 0&&St.addOp(R.OPS.beginMarkedContentProps,["OC",bt]),St.addOp(R.OPS.beginAnnotation,[st.id,st.rect,Je,He,ct]),await Ue.getOperatorList({stream:dt,task:$e,resources:ut,operatorList:St,fallbackFontDict:this._fallbackFontDict}),St.addOp(R.OPS.endAnnotation,[]),bt!==void 0&&St.addOp(R.OPS.endMarkedContent,[]),this.reset(),{opList:St,separateForm:!1,separateCanvas:ct}}async save(Ue,$e,Ye){return null}get hasTextContent(){return!1}async extractTextContent(Ue,$e,Ye){if(!this.appearance)return;const tt=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),ot=[],st=[],dt={desiredSize:Math.Infinity,ready:!0,enqueue(ct,mt){for(const ut of ct.items)st.push(ut.str),ut.hasEOL&&(ot.push(st.join("")),st.length=0)}};await Ue.getTextContent({stream:this.appearance,task:$e,resources:tt,includeMarkedContent:!0,combineTextItems:!0,sink:dt,viewBox:Ye}),this.reset(),st.length&&ot.push(st.join("")),ot.length>0&&(this.data.textContent=ot)}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const Ue of this._streams)Ue.reset()}_constructFieldName(Ue){if(!Ue.has("T")&&!Ue.has("Parent"))return(0,R.warn)("Unknown field name, falling back to empty field name."),"";if(!Ue.has("Parent"))return(0,R.stringToPDFString)(Ue.get("T"));const $e=[];Ue.has("T")&&$e.unshift((0,R.stringToPDFString)(Ue.get("T")));let Ye=Ue;const tt=new z.RefSet;for(Ue.objId&&tt.put(Ue.objId);Ye.has("Parent")&&(Ye=Ye.get("Parent"),!(!(Ye instanceof z.Dict)||Ye.objId&&tt.has(Ye.objId)));)Ye.objId&&tt.put(Ye.objId),Ye.has("T")&&$e.unshift((0,R.stringToPDFString)(Ye.get("T")));return $e.join(".")}}D.Annotation=Ee;class ke{constructor(){this.width=1,this.style=R.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(Ue){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];if(Ue instanceof z.Name){this.width=0;return}if(typeof Ue=="number"){if(Ue>0){const Ye=($e[2]-$e[0])/2,tt=($e[3]-$e[1])/2;Ye>0&&tt>0&&(Ue>Ye||Ue>tt)&&((0,R.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${Ue}`),Ue=1)}this.width=Ue}}setStyle(Ue){if(Ue instanceof z.Name)switch(Ue.name){case"S":this.style=R.AnnotationBorderStyleType.SOLID;break;case"D":this.style=R.AnnotationBorderStyleType.DASHED;break;case"B":this.style=R.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=R.AnnotationBorderStyleType.INSET;break;case"U":this.style=R.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(Ue){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(Ue)&&Ue.length>0){let Ye=!0,tt=!0;for(const ot of Ue)if(+ot>=0)ot>0&&(tt=!1);else{Ye=!1;break}Ye&&!tt?(this.dashArray=Ue,$e&&this.setStyle(z.Name.get("D"))):this.width=0}else Ue&&(this.width=0)}setHorizontalCornerRadius(Ue){Number.isInteger(Ue)&&(this.horizontalCornerRadius=Ue)}setVerticalCornerRadius(Ue){Number.isInteger(Ue)&&(this.verticalCornerRadius=Ue)}}D.AnnotationBorderStyle=ke;class xe extends Ee{constructor(Ue){super(Ue);const $e=Ue.dict;if($e.has("IRT")){const Ye=$e.getRaw("IRT");this.data.inReplyTo=Ye instanceof z.Ref?Ye.toString():null;const tt=$e.get("RT");this.data.replyType=tt instanceof z.Name?tt.name:R.AnnotationReplyType.REPLY}if(this.data.replyType===R.AnnotationReplyType.GROUP){const Ye=$e.get("IRT");this.setTitle(Ye.get("T")),this.data.titleObj=this._title,this.setContents(Ye.get("Contents")),this.data.contentsObj=this._contents,Ye.has("CreationDate")?(this.setCreationDate(Ye.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,Ye.has("M")?(this.setModificationDate(Ye.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=Ye.has("Popup"),Ye.has("C")?(this.setColor(Ye.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate($e.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=$e.has("Popup"),$e.has("C")||(this.data.color=null);$e.has("RC")&&(this.data.richText=ce.XFAFactory.getRichTextAsHtml($e.get("RC")))}setCreationDate(Ue){this.creationDate=typeof Ue=="string"?Ue:null}_setDefaultAppearance(Ue){let{xref:$e,extra:Ye,strokeColor:tt,fillColor:ot,blendMode:st,strokeAlpha:dt,fillAlpha:ct,pointsCallback:mt}=Ue,ut=Number.MAX_VALUE,rt=Number.MAX_VALUE,He=Number.MIN_VALUE,Je=Number.MIN_VALUE;const St=["q"];Ye&&St.push(Ye),tt&&St.push(`${tt[0]} ${tt[1]} ${tt[2]} RG`),ot&&St.push(`${ot[0]} ${ot[1]} ${ot[2]} rg`);let bt=this.data.quadPoints;bt||(bt=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const Yt of bt){const[Ft,Jt,er,Bt]=mt(St,Yt);ut=Math.min(ut,Ft),He=Math.max(He,Jt),rt=Math.min(rt,er),Je=Math.max(Je,Bt)}St.push("Q");const pt=new z.Dict($e),wt=new z.Dict($e);wt.set("Subtype",z.Name.get("Form"));const Pt=new Q.StringStream(St.join(" "));Pt.dict=wt,pt.set("Fm0",Pt);const Nt=new z.Dict($e);st&&Nt.set("BM",z.Name.get(st)),typeof dt=="number"&&Nt.set("CA",dt),typeof ct=="number"&&Nt.set("ca",ct);const Vt=new z.Dict($e);Vt.set("GS0",Nt);const Wt=new z.Dict($e);Wt.set("ExtGState",Vt),Wt.set("XObject",pt);const Mt=new z.Dict($e);Mt.set("Resources",Wt);const $t=this.data.rect=[ut,rt,He,Je];Mt.set("BBox",$t),this.appearance=new Q.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=Mt,this._streams.push(this.appearance,Pt)}static async createNewAnnotation(Ue,$e,Ye,tt){const ot=Ue.getNewRef(),st=Ue.getNewRef(),dt=this.createNewDict($e,Ue,{apRef:st}),ct=await this.createNewAppearanceStream($e,Ue,tt),mt=[];let ut=Ue.encrypt?Ue.encrypt.createCipherTransform(st.num,st.gen):null;return(0,e.writeObject)(st,ct,mt,ut),Ye.push({ref:st,data:mt.join("")}),mt.length=0,ut=Ue.encrypt?Ue.encrypt.createCipherTransform(ot.num,ot.gen):null,(0,e.writeObject)(ot,dt,mt,ut),{ref:ot,data:mt.join("")}}static async createNewPrintAnnotation(Ue,$e,Ye){const tt=await this.createNewAppearanceStream($e,Ue,Ye),ot=this.createNewDict($e,Ue,{ap:tt});return new this.prototype.constructor({dict:ot,xref:Ue})}}D.MarkupAnnotation=xe;class fe extends Ee{constructor(Ue){super(Ue);const $e=Ue.dict,Ye=this.data;this.ref=Ue.ref,Ye.annotationType=R.AnnotationType.WIDGET,Ye.fieldName===void 0&&(Ye.fieldName=this._constructFieldName($e)),Ye.actions===void 0&&(Ye.actions=(0,U.collectActions)(Ue.xref,$e,R.AnnotationActionEventType));let tt=(0,U.getInheritableProperty)({dict:$e,key:"V",getArray:!0});Ye.fieldValue=this._decodeFormValue(tt);const ot=(0,U.getInheritableProperty)({dict:$e,key:"DV",getArray:!0});if(Ye.defaultFieldValue=this._decodeFormValue(ot),tt===void 0&&Ue.xfaDatasets){const rt=this._title.str;rt&&(this._hasValueFromXFA=!0,Ye.fieldValue=tt=Ue.xfaDatasets.getValue(rt))}tt===void 0&&Ye.defaultFieldValue!==null&&(Ye.fieldValue=Ye.defaultFieldValue),Ye.alternativeText=(0,R.stringToPDFString)($e.get("TU")||"");const st=(0,U.getInheritableProperty)({dict:$e,key:"DA"})||Ue.acroForm.get("DA");this._defaultAppearance=typeof st=="string"?st:"",Ye.defaultAppearanceData=(0,K.parseDefaultAppearance)(this._defaultAppearance);const dt=(0,U.getInheritableProperty)({dict:$e,key:"FT"});Ye.fieldType=dt instanceof z.Name?dt.name:null;const ct=(0,U.getInheritableProperty)({dict:$e,key:"DR"}),mt=Ue.acroForm.get("DR"),ut=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:ct,acroFormResources:mt,appearanceResources:ut,mergedResources:z.Dict.merge({xref:Ue.xref,dictArray:[ct,ut,mt],mergeSubDicts:!0})},Ye.fieldFlags=(0,U.getInheritableProperty)({dict:$e,key:"Ff"}),(!Number.isInteger(Ye.fieldFlags)||Ye.fieldFlags<0)&&(Ye.fieldFlags=0),Ye.readOnly=this.hasFieldFlag(R.AnnotationFieldFlag.READONLY),Ye.required=this.hasFieldFlag(R.AnnotationFieldFlag.REQUIRED),Ye.hidden=this._hasFlag(Ye.annotationFlags,R.AnnotationFlag.HIDDEN)}_decodeFormValue(Ue){return Array.isArray(Ue)?Ue.filter($e=>typeof $e=="string").map($e=>(0,R.stringToPDFString)($e)):Ue instanceof z.Name?(0,R.stringToPDFString)(Ue.name):typeof Ue=="string"?(0,R.stringToPDFString)(Ue):null}hasFieldFlag(Ue){return!!(this.data.fieldFlags&Ue)}static _getRotationMatrix(Ue,$e,Ye){switch(Ue){case 90:return[0,1,-1,0,$e,0];case 180:return[-1,0,0,-1,$e,Ye];case 270:return[0,-1,1,0,0,Ye];default:throw new Error("Invalid rotation")}}getRotationMatrix(Ue){const $e=Ue?Ue.get(this.data.id):void 0;let Ye=$e&&$e.rotation;if(Ye===void 0&&(Ye=this.rotation),Ye===0)return R.IDENTITY_MATRIX;const tt=this.data.rect[2]-this.data.rect[0],ot=this.data.rect[3]-this.data.rect[1];return fe._getRotationMatrix(Ye,tt,ot)}getBorderAndBackgroundAppearances(Ue){const $e=Ue?Ue.get(this.data.id):void 0;let Ye=$e&&$e.rotation;if(Ye===void 0&&(Ye=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const tt=this.data.rect[2]-this.data.rect[0],ot=this.data.rect[3]-this.data.rect[1],st=Ye===0||Ye===180?`0 0 ${tt} ${ot} re`:`0 0 ${ot} ${tt} re`;let dt="";if(this.backgroundColor&&(dt=`${(0,K.getPdfColor)(this.backgroundColor,!0)} ${st} f `),this.borderColor){const ct=this.borderStyle.width||1;dt+=`${ct} w ${(0,K.getPdfColor)(this.borderColor,!1)} ${st} S `}return dt}async getOperatorList(Ue,$e,Ye,tt,ot){if(tt&&!(this instanceof pe))return{opList:new L.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(Ue,$e,Ye,tt,ot);const st=await this._getAppearance(Ue,$e,ot);if(this.appearance&&st===null)return super.getOperatorList(Ue,$e,Ye,tt,ot);const dt=new L.OperatorList;if(!this._defaultAppearance||st===null)return{opList:dt,separateForm:!1,separateCanvas:!1};const ct=[1,0,0,1,0,0],mt=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],ut=me(this.data.rect,mt,ct);let rt;this.oc&&(rt=await Ue.parseMarkedContentProps(this.oc,null)),rt!==void 0&&dt.addOp(R.OPS.beginMarkedContentProps,["OC",rt]),dt.addOp(R.OPS.beginAnnotation,[this.data.id,this.data.rect,ut,this.getRotationMatrix(ot),!1]);const He=new Q.StringStream(st);return await Ue.getOperatorList({stream:He,task:$e,resources:this._fieldResources.mergedResources,operatorList:dt}),dt.addOp(R.OPS.endAnnotation,[]),rt!==void 0&&dt.addOp(R.OPS.endMarkedContent,[]),{opList:dt,separateForm:!1,separateCanvas:!1}}_getMKDict(Ue){const $e=new z.Dict(null);return Ue&&$e.set("R",Ue),this.borderColor&&$e.set("BC",Array.from(this.borderColor).map(Ye=>Ye/255)),this.backgroundColor&&$e.set("BG",Array.from(this.backgroundColor).map(Ye=>Ye/255)),$e.size>0?$e:null}async save(Ue,$e,Ye){const tt=Ye?Ye.get(this.data.id):void 0;let ot=tt&&tt.value,st=tt&&tt.rotation;if(ot===this.data.fieldValue||ot===void 0){if(!this._hasValueFromXFA&&st===void 0)return null;ot=ot||this.data.fieldValue}if(st===void 0&&!this._hasValueFromXFA&&Array.isArray(ot)&&Array.isArray(this.data.fieldValue)&&ot.length===this.data.fieldValue.length&&ot.every(($t,Yt)=>$t===this.data.fieldValue[Yt]))return null;st===void 0&&(st=this.rotation);let dt=await this._getAppearance(Ue,$e,Ye);if(dt===null)return null;const{xref:ct}=Ue,mt=ct.fetchIfRef(this.ref);if(!(mt instanceof z.Dict))return null;const ut=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],rt={path:(0,R.stringToPDFString)(mt.get("T")||""),value:ot},He=ct.getNewRef(),Je=new z.Dict(ct);Je.set("N",He);const St=ct.encrypt;let bt=null,pt=null;St&&(bt=St.createCipherTransform(this.ref.num,this.ref.gen),pt=St.createCipherTransform(He.num,He.gen),dt=pt.encryptString(dt));const wt=$t=>(0,R.isAscii)($t)?$t:(0,R.stringToUTF16BEString)($t);mt.set("V",Array.isArray(ot)?ot.map(wt):wt(ot)),mt.set("AP",Je),mt.set("M",`D:${(0,R.getModificationDate)()}`);const Pt=this._getMKDict(st);Pt&&mt.set("MK",Pt);const Nt=new z.Dict(ct);Nt.set("Length",dt.length),Nt.set("Subtype",z.Name.get("Form")),Nt.set("Resources",this._getSaveFieldResources(ct)),Nt.set("BBox",ut);const Vt=this.getRotationMatrix(Ye);Vt!==R.IDENTITY_MATRIX&&Nt.set("Matrix",Vt);const Wt=[`${this.ref.num} ${this.ref.gen} obj
`];(0,e.writeDict)(mt,Wt,bt),Wt.push(`
endobj
`);const Mt=[`${He.num} ${He.gen} obj
`];return(0,e.writeDict)(Nt,Mt,pt),Mt.push(` stream
`,dt,`
endstream
endobj
`),[{ref:this.ref,data:Wt.join(""),xfa:rt},{ref:He,data:Mt.join(""),xfa:null}]}async _getAppearance(Ue,$e,Ye){if(this.hasFieldFlag(R.AnnotationFieldFlag.PASSWORD))return null;const ot=Ye?Ye.get(this.data.id):void 0;let st,dt;if(ot&&(st=ot.formattedValue||ot.value,dt=ot.rotation),dt===void 0&&st===void 0&&(!this._hasValueFromXFA||this.appearance))return null;if(st===void 0&&(st=this.data.fieldValue,!st)||(Array.isArray(st)&&st.length===1&&(st=st[0]),(0,R.assert)(typeof st=="string","Expected `value` to be a string."),st=st.trim(),st===""))return"";dt===void 0&&(dt=this.rotation);let ct=-1;this.data.multiLine&&(ct=st.split(/\r\n|\r|\n/).length);const mt=2,ut=mt;let rt=this.data.rect[3]-this.data.rect[1],He=this.data.rect[2]-this.data.rect[0];(dt===90||dt===270)&&([He,rt]=[rt,He]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,K.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const Je=await fe._getFontData(Ue,$e,this.data.defaultAppearanceData,this._fieldResources.mergedResources),[St,bt]=this._computeFontSize(rt-mt,He-2*ut,st,Je,ct);let pt=Je.descent;isNaN(pt)&&(pt=0);const Pt=Math.min(Math.floor((rt-bt)/2),mt)+Math.abs(pt)*bt,Nt=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(St,st,Je,bt,He,rt,Nt,ut,Pt,Ye);const Vt=Je.encodeString(st).join("");if(this.data.comb)return this._getCombAppearance(St,Je,Vt,He,ut,Pt,Ye);const Wt=this.getBorderAndBackgroundAppearances(Ye);if(Nt===0||Nt>2)return`/Tx BMC q ${Wt}BT `+St+` 1 0 0 1 ${ut} ${Pt} Tm (${(0,R.escapeString)(Vt)}) Tj ET Q EMC`;const Mt=this._renderText(Vt,Je,bt,He,Nt,ut,Pt);return`/Tx BMC q ${Wt}BT `+St+` 1 0 0 1 0 0 Tm ${Mt} ET Q EMC`}static async _getFontData(Ue,$e,Ye,tt){const ot=new L.OperatorList,st={font:null,clone(){return this}},{fontName:dt,fontSize:ct}=Ye;return await Ue.handleSetFont(tt,[dt&&z.Name.get(dt),ct],null,ot,$e,st,null),st.font}_getTextWidth(Ue,$e){return $e.charsToGlyphs(Ue).reduce((Ye,tt)=>Ye+tt.width,0)/1e3}_computeFontSize(Ue,$e,Ye,tt,ot){let{fontSize:st}=this.data.defaultAppearanceData;if(!st){const dt=ut=>Math.floor(ut*100)/100;if(ot===-1){const ut=this._getTextWidth(Ye,tt);st=dt(Math.min(Ue/R.LINE_FACTOR,$e/ut))}else{const ut=Ye.split(/\r\n?|\n/),rt=[];for(const bt of ut){const pt=tt.encodeString(bt).join(""),wt=tt.charsToGlyphs(pt),Pt=tt.getCharPositions(pt);rt.push({line:pt,glyphs:wt,positions:Pt})}const He=bt=>{let pt=0;for(const wt of rt){const Pt=this._splitLine(null,tt,bt,$e,wt);if(pt+=Pt.length*bt,pt>Ue)return!0}return!1};st=12;let Je=st*R.LINE_FACTOR,St=Math.round(Ue/Je);for(St=Math.max(St,ot);;){if(Je=Ue/St,st=dt(Je/R.LINE_FACTOR),He(st)){St++;continue}break}}const{fontName:ct,fontColor:mt}=this.data.defaultAppearanceData;this._defaultAppearance=(0,K.createDefaultAppearance)({fontSize:st,fontName:ct,fontColor:mt})}return[this._defaultAppearance,st]}_renderText(Ue,$e,Ye,tt,ot,st,dt){let ct;if(ot===1){const mt=this._getTextWidth(Ue,$e)*Ye;ct=(tt-mt)/2}else if(ot===2){const mt=this._getTextWidth(Ue,$e)*Ye;ct=tt-mt-st}else ct=st;return ct=(0,U.numberToString)(ct),dt=(0,U.numberToString)(dt),`${ct} ${dt} Td (${(0,R.escapeString)(Ue)}) Tj`}_getSaveFieldResources(Ue){const{localResources:$e,appearanceResources:Ye,acroFormResources:tt}=this._fieldResources,ot=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!ot)return $e||z.Dict.empty;for(const st of[$e,Ye])if(st instanceof z.Dict){const dt=st.get("Font");if(dt instanceof z.Dict&&dt.has(ot))return st}if(tt instanceof z.Dict){const st=tt.get("Font");if(st instanceof z.Dict&&st.has(ot)){const dt=new z.Dict(Ue);dt.set(ot,st.getRaw(ot));const ct=new z.Dict(Ue);return ct.set("Font",dt),z.Dict.merge({xref:Ue,dictArray:[ct,$e],mergeSubDicts:!0})}}return $e||z.Dict.empty}getFieldObject(){return null}}class ve extends fe{constructor(Ue){super(Ue),this._hasText=!0;const $e=Ue.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let Ye=(0,U.getInheritableProperty)({dict:$e,key:"Q"});(!Number.isInteger(Ye)||Ye<0||Ye>2)&&(Ye=null),this.data.textAlignment=Ye;let tt=(0,U.getInheritableProperty)({dict:$e,key:"MaxLen"});(!Number.isInteger(tt)||tt<0)&&(tt=0),this.data.maxLen=tt,this.data.multiLine=this.hasFieldFlag(R.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(R.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(R.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(R.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(R.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(R.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(Ue,$e,Ye,tt,ot,st,dt){const ct=(0,U.numberToString)(tt/this.data.maxLen),mt=[],ut=$e.getCharPositions(Ye);for(const[Je,St]of ut)mt.push(`(${(0,R.escapeString)(Ye.substring(Je,St))}) Tj`);const rt=this.getBorderAndBackgroundAppearances(dt),He=mt.join(` ${ct} 0 Td `);return`/Tx BMC q ${rt}BT `+Ue+` 1 0 0 1 ${ot} ${st} Tm ${He} ET Q EMC`}_getMultilineAppearance(Ue,$e,Ye,tt,ot,st,dt,ct,mt,ut){const rt=$e.split(/\r\n?|\n/),He=[],Je=ot-2*ct;for(const pt of rt){const wt=this._splitLine(pt,Ye,tt,Je);for(const Pt of wt){const Nt=He.length===0?ct:0;He.push(this._renderText(Pt,Ye,tt,ot,dt,Nt,-tt))}}const St=He.join(`
`);return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(ut)}BT `+Ue+` 1 0 0 1 0 ${st} Tm ${St} ET Q EMC`}_splitLine(Ue,$e,Ye,tt){let ot=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};Ue=ot.line||$e.encodeString(Ue).join("");const st=ot.glyphs||$e.charsToGlyphs(Ue);if(st.length<=1)return[Ue];const dt=ot.positions||$e.getCharPositions(Ue),ct=Ye/1e3,mt=[];let ut=-1,rt=-1,He=-1,Je=0,St=0;for(let bt=0,pt=st.length;bt<pt;bt++){const[wt,Pt]=dt[bt],Nt=st[bt],Vt=Nt.width*ct;Nt.unicode===" "?St+Vt>tt?(mt.push(Ue.substring(Je,wt)),Je=wt,St=Vt,ut=-1,He=-1):(St+=Vt,ut=wt,rt=Pt,He=bt):St+Vt>tt?ut!==-1?(mt.push(Ue.substring(Je,rt)),Je=rt,bt=He+1,ut=-1,St=0):(mt.push(Ue.substring(Je,wt)),Je=wt,St=Vt):St+=Vt}return Je<Ue.length&&mt.push(Ue.substring(Je,Ue.length)),mt}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(R.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class ye extends fe{constructor(Ue){super(Ue),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(R.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(R.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(R.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(R.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(R.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(Ue):this.data.radioButton?this._processRadioButton(Ue):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(Ue)):(0,R.warn)("Invalid field flags for button widget annotation")}async getOperatorList(Ue,$e,Ye,tt,ot){if(this.data.pushButton)return super.getOperatorList(Ue,$e,Ye,!1,ot);let st=null,dt=null;if(ot){const mt=ot.get(this.data.id);st=mt?mt.value:null,dt=mt?mt.rotation:null}if(st===null&&this.appearance)return super.getOperatorList(Ue,$e,Ye,tt,ot);st==null&&(this.data.checkBox?st=this.data.fieldValue===this.data.exportValue:st=this.data.fieldValue===this.data.buttonValue);const ct=st?this.checkedAppearance:this.uncheckedAppearance;if(ct){const mt=this.appearance,ut=ct.dict.getArray("Matrix")||R.IDENTITY_MATRIX;dt&&ct.dict.set("Matrix",this.getRotationMatrix(ot)),this.appearance=ct;const rt=super.getOperatorList(Ue,$e,Ye,tt,ot);return this.appearance=mt,ct.dict.set("Matrix",ut),rt}return{opList:new L.OperatorList,separateForm:!1,separateCanvas:!1}}async save(Ue,$e,Ye){return this.data.checkBox?this._saveCheckbox(Ue,$e,Ye):this.data.radioButton?this._saveRadioButton(Ue,$e,Ye):null}async _saveCheckbox(Ue,$e,Ye){if(!Ye)return null;const tt=Ye.get(this.data.id);let ot=tt&&tt.rotation,st=tt&&tt.value;if(ot===void 0&&(st===void 0||this.data.fieldValue===this.data.exportValue===st))return null;const dt=Ue.xref.fetchIfRef(this.ref);if(!(dt instanceof z.Dict))return null;ot===void 0&&(ot=this.rotation),st===void 0&&(st=this.data.fieldValue===this.data.exportValue);const ct={path:(0,R.stringToPDFString)(dt.get("T")||""),value:st?this.data.exportValue:""},mt=z.Name.get(st?this.data.exportValue:"Off");dt.set("V",mt),dt.set("AS",mt),dt.set("M",`D:${(0,R.getModificationDate)()}`);const ut=this._getMKDict(ot);ut&&dt.set("MK",ut);const rt=Ue.xref.encrypt;let He=null;rt&&(He=rt.createCipherTransform(this.ref.num,this.ref.gen));const Je=[`${this.ref.num} ${this.ref.gen} obj
`];return(0,e.writeDict)(dt,Je,He),Je.push(`
endobj
`),[{ref:this.ref,data:Je.join(""),xfa:ct}]}async _saveRadioButton(Ue,$e,Ye){if(!Ye)return null;const tt=Ye.get(this.data.id);let ot=tt&&tt.rotation,st=tt&&tt.value;if(ot===void 0&&(st===void 0||this.data.fieldValue===this.data.buttonValue===st))return null;const dt=Ue.xref.fetchIfRef(this.ref);if(!(dt instanceof z.Dict))return null;st===void 0&&(st=this.data.fieldValue===this.data.buttonValue),ot===void 0&&(ot=this.rotation);const ct={path:(0,R.stringToPDFString)(dt.get("T")||""),value:st?this.data.buttonValue:""},mt=z.Name.get(st?this.data.buttonValue:"Off");let ut=null;const rt=Ue.xref.encrypt;if(st)if(this.parent instanceof z.Ref){const pt=Ue.xref.fetch(this.parent);let wt=null;rt&&(wt=rt.createCipherTransform(this.parent.num,this.parent.gen)),pt.set("V",mt),ut=[`${this.parent.num} ${this.parent.gen} obj
`],(0,e.writeDict)(pt,ut,wt),ut.push(`
endobj
`)}else this.parent instanceof z.Dict&&this.parent.set("V",mt);dt.set("AS",mt),dt.set("M",`D:${(0,R.getModificationDate)()}`);const He=this._getMKDict(ot);He&&dt.set("MK",He);let Je=null;rt&&(Je=rt.createCipherTransform(this.ref.num,this.ref.gen));const St=[`${this.ref.num} ${this.ref.gen} obj
`];(0,e.writeDict)(dt,St,Je),St.push(`
endobj
`);const bt=[{ref:this.ref,data:St.join(""),xfa:ct}];return ut!==null&&bt.push({ref:this.parent,data:ut.join(""),xfa:null}),bt}_getDefaultCheckedAppearance(Ue,$e){const Ye=this.data.rect[2]-this.data.rect[0],tt=this.data.rect[3]-this.data.rect[1],ot=[0,0,Ye,tt],st=.8,dt=Math.min(Ye,tt)*st;let ct,mt;$e==="check"?(ct={width:.755*dt,height:.705*dt},mt="3"):$e==="disc"?(ct={width:.791*dt,height:.705*dt},mt="l"):(0,R.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${$e}`);const ut=(0,U.numberToString)((Ye-ct.width)/2),rt=(0,U.numberToString)((tt-ct.height)/2),He=`q BT /PdfJsZaDb ${dt} Tf 0 g ${ut} ${rt} Td (${mt}) Tj ET Q`,Je=new z.Dict(Ue.xref);Je.set("FormType",1),Je.set("Subtype",z.Name.get("Form")),Je.set("Type",z.Name.get("XObject")),Je.set("BBox",ot),Je.set("Matrix",[1,0,0,1,0,0]),Je.set("Length",He.length);const St=new z.Dict(Ue.xref),bt=new z.Dict(Ue.xref);bt.set("PdfJsZaDb",this.fallbackFontDict),St.set("Font",bt),Je.set("Resources",St),this.checkedAppearance=new Q.StringStream(He),this.checkedAppearance.dict=Je,this._streams.push(this.checkedAppearance)}_processCheckBox(Ue){const $e=Ue.dict.get("AP");if(!($e instanceof z.Dict))return;const Ye=$e.get("N");if(!(Ye instanceof z.Dict))return;const tt=this._decodeFormValue(Ue.dict.get("AS"));typeof tt=="string"&&(this.data.fieldValue=tt);const ot=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",st=Ye.getKeys();if(st.length===0)st.push("Off",ot);else if(st.length===1)st[0]==="Off"?st.push(ot):st.unshift("Off");else if(st.includes(ot))st.length=0,st.push("Off",ot);else{const dt=st.find(ct=>ct!=="Off");st.length=0,st.push("Off",dt)}st.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=st[1],this.checkedAppearance=Ye.get(this.data.exportValue)||null,this.uncheckedAppearance=Ye.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(Ue,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(Ue){this.data.fieldValue=this.data.buttonValue=null;const $e=Ue.dict.get("Parent");if($e instanceof z.Dict){this.parent=Ue.dict.getRaw("Parent");const ot=$e.get("V");ot instanceof z.Name&&(this.data.fieldValue=this._decodeFormValue(ot))}const Ye=Ue.dict.get("AP");if(!(Ye instanceof z.Dict))return;const tt=Ye.get("N");if(tt instanceof z.Dict){for(const ot of tt.getKeys())if(ot!=="Off"){this.data.buttonValue=this._decodeFormValue(ot);break}this.checkedAppearance=tt.get(this.data.buttonValue)||null,this.uncheckedAppearance=tt.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(Ue,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}_processPushButton(Ue){if(!Ue.dict.has("A")&&!Ue.dict.has("AA")&&!this.data.alternativeText){(0,R.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!Ue.dict.has("A")&&!Ue.dict.has("AA"),he.Catalog.parseDestDictionary({destDict:Ue.dict,resultObj:this.data,docBaseUrl:Ue.pdfManager.docBaseUrl})}getFieldObject(){let Ue="button",$e;return this.data.checkBox?(Ue="checkbox",$e=this.data.exportValue):this.data.radioButton&&(Ue="radiobutton",$e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:$e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:Ue}}get fallbackFontDict(){const Ue=new z.Dict;return Ue.set("BaseFont",z.Name.get("ZapfDingbats")),Ue.set("Type",z.Name.get("FallbackType")),Ue.set("Subtype",z.Name.get("FallbackType")),Ue.set("Encoding",z.Name.get("ZapfDingbatsEncoding")),(0,R.shadow)(this,"fallbackFontDict",Ue)}}class Ce extends fe{constructor(Ue){super(Ue),this.data.options=[];const $e=(0,U.getInheritableProperty)({dict:Ue.dict,key:"Opt"});if(Array.isArray($e)){const Ye=Ue.xref;for(let tt=0,ot=$e.length;tt<ot;tt++){const st=Ye.fetchIfRef($e[tt]),dt=Array.isArray(st);this.data.options[tt]={exportValue:this._decodeFormValue(dt?Ye.fetchIfRef(st[0]):st),displayValue:this._decodeFormValue(dt?Ye.fetchIfRef(st[1]):st)}}}typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]),this.data.combo=this.hasFieldFlag(R.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(R.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const Ue=this.data.combo?"combobox":"listbox",$e=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:$e,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:Ue}}async _getAppearance(Ue,$e,Ye){if(this.data.combo)return super._getAppearance(Ue,$e,Ye);if(!Ye)return null;const tt=Ye.get(this.data.id);if(!tt)return null;const ot=tt.rotation;let st=tt.value;if(ot===void 0&&st===void 0)return null;st===void 0?st=this.data.fieldValue:Array.isArray(st)||(st=[st]);const dt=2,ct=dt;let mt=this.data.rect[3]-this.data.rect[1],ut=this.data.rect[2]-this.data.rect[0];(ot===90||ot===270)&&([ut,mt]=[mt,ut]);const rt=this.data.options.length,He=[];for(let Mt=0;Mt<rt;Mt++){const{exportValue:$t}=this.data.options[Mt];st.includes($t)&&He.push(Mt)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,K.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const Je=await fe._getFontData(Ue,$e,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let St,{fontSize:bt}=this.data.defaultAppearanceData;if(bt)St=this._defaultAppearance;else{const Mt=(mt-dt)/rt;let $t=-1,Yt;for(const{displayValue:Ft}of this.data.options){const Jt=this._getTextWidth(Ft,Je);Jt>$t&&($t=Jt,Yt=Ft)}[St,bt]=this._computeFontSize(Mt,ut-2*ct,Yt,Je,-1)}const pt=bt*R.LINE_FACTOR,wt=(pt-bt)/2,Pt=Math.floor(mt/pt);let Nt;if(He.length===1){const Mt=He[0],$t=Mt%Pt;Nt=Mt-$t}else Nt=He.length?He[0]:0;const Vt=Math.min(Nt+Pt+1,rt),Wt=["/Tx BMC q",`1 1 ${ut} ${mt} re W n`];if(He.length){Wt.push("0.600006 0.756866 0.854904 rg");for(const Mt of He)Nt<=Mt&&Mt<Vt&&Wt.push(`1 ${mt-(Mt-Nt+1)*pt} ${ut} ${pt} re f`)}Wt.push("BT",St,`1 0 0 1 0 ${mt} Tm`);for(let Mt=Nt;Mt<Vt;Mt++){const{displayValue:$t}=this.data.options[Mt],Yt=Mt===Nt?ct:0,Ft=Mt===Nt?wt:0;Wt.push(this._renderText($t,Je,bt,ut,0,Yt,-pt+Ft))}return Wt.push("ET Q EMC"),Wt.join(`
`)}}class pe extends fe{constructor(Ue){super(Ue),this.data.fieldValue=null}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class _e extends xe{constructor(Ue){super(Ue);const Ye=Ue.dict;this.data.annotationType=R.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=Ye.has("Name")?Ye.get("Name").name:"Note"),Ye.has("State")?(this.data.state=Ye.get("State")||null,this.data.stateModel=Ye.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class Ge extends Ee{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.LINK;const $e=oe(Ue.dict,this.rectangle);$e&&(this.data.quadPoints=$e),this.data.borderColor=this.data.borderColor||this.data.color,he.Catalog.parseDestDictionary({destDict:Ue.dict,resultObj:this.data,docBaseUrl:Ue.pdfManager.docBaseUrl})}}class Ae extends Ee{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.POPUP;let $e=Ue.dict.get("Parent");if(!$e){(0,R.warn)("Popup annotation has a missing or invalid parent annotation.");return}const Ye=$e.get("Subtype");this.data.parentType=Ye instanceof z.Name?Ye.name:null;const tt=Ue.dict.getRaw("Parent");this.data.parentId=tt instanceof z.Ref?tt.toString():null;const ot=$e.getArray("Rect");Array.isArray(ot)&&ot.length===4?this.data.parentRect=R.Util.normalizeRect(ot):this.data.parentRect=[0,0,0,0];const st=$e.get("RT");if((0,z.isName)(st,R.AnnotationReplyType.GROUP)&&($e=$e.get("IRT")),$e.has("M")?(this.setModificationDate($e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,$e.has("C")?(this.setColor($e.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const dt=$e.get("F");this._isViewable(dt)&&this.setFlags(dt)}this.setTitle($e.get("T")),this.data.titleObj=this._title,this.setContents($e.get("Contents")),this.data.contentsObj=this._contents,$e.has("RC")&&(this.data.richText=ce.XFAFactory.getRichTextAsHtml($e.get("RC")))}}D.PopupAnnotation=Ae;class Ne extends xe{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.FREETEXT}get hasTextContent(){return!!this.appearance}static createNewDict(Ue,$e,Ye){let{apRef:tt,ap:ot}=Ye;const{color:st,fontSize:dt,rect:ct,rotation:mt,user:ut,value:rt}=Ue,He=new z.Dict($e);He.set("Type",z.Name.get("Annot")),He.set("Subtype",z.Name.get("FreeText")),He.set("CreationDate",`D:${(0,R.getModificationDate)()}`),He.set("Rect",ct);const Je=`/Helv ${dt} Tf ${(0,K.getPdfColor)(st,!0)}`;He.set("DA",Je),He.set("Contents",rt),He.set("F",4),He.set("Border",[0,0,0]),He.set("Rotate",mt),ut&&He.set("T",(0,R.stringToUTF8String)(ut));const St=new z.Dict($e);return He.set("AP",St),tt?St.set("N",tt):St.set("N",ot),He}static async createNewAppearanceStream(Ue,$e,Ye){const{baseFontRef:tt,evaluator:ot,task:st}=Ye,{color:dt,fontSize:ct,rect:mt,rotation:ut,value:rt}=Ue,He=new z.Dict($e),Je=new z.Dict($e);if(tt)Je.set("Helv",tt);else{const Ar=new z.Dict($e);Ar.set("BaseFont",z.Name.get("Helvetica")),Ar.set("Type",z.Name.get("Font")),Ar.set("Subtype",z.Name.get("Type1")),Ar.set("Encoding",z.Name.get("WinAnsiEncoding")),Je.set("Helv",Ar)}He.set("Font",Je);const St=await fe._getFontData(ot,st,{fontName:"Helvetica",fontSize:ct},He),[bt,pt,wt,Pt]=mt;let Nt=wt-bt,Vt=Pt-pt;ut%180!==0&&([Nt,Vt]=[Vt,Nt]);const Wt=rt.split(`
`),Mt=ct/1e3;let $t=-1/0;const Yt=[];for(let Ar of Wt){Ar=St.encodeString(Ar).join(""),Yt.push(Ar);let yt=0;const vt=St.charsToGlyphs(Ar);for(const Xt of vt)yt+=Xt.width*Mt;$t=Math.max($t,yt)}let Ft=1;$t>Nt&&(Ft=Nt/$t);let Jt=1;const er=R.LINE_FACTOR*ct,Bt=R.LINE_DESCENT_FACTOR*ct,It=er*Wt.length;It>Vt&&(Jt=Vt/It);const Dt=Math.min(Ft,Jt),Zt=ct*Dt,gr=["q",`0 0 ${(0,U.numberToString)(Nt)} ${(0,U.numberToString)(Vt)} re W n`,"BT",`1 0 0 1 0 ${(0,U.numberToString)(Vt+Bt)} Tm 0 Tc ${(0,K.getPdfColor)(dt,!0)}`,`/Helv ${(0,U.numberToString)(Zt)} Tf`],fr=(0,U.numberToString)(er);for(const Ar of Yt)gr.push(`0 -${fr} Td (${(0,R.escapeString)(Ar)}) Tj`);gr.push("ET","Q");const Dr=gr.join(`
`),kr=new z.Dict($e);if(kr.set("FormType",1),kr.set("Subtype",z.Name.get("Form")),kr.set("Type",z.Name.get("XObject")),kr.set("BBox",[0,0,Nt,Vt]),kr.set("Length",Dr.length),kr.set("Resources",He),ut){const Ar=fe._getRotationMatrix(ut,Nt,Vt);kr.set("Matrix",Ar)}const cr=new Q.StringStream(Dr);return cr.dict=kr,cr}}class Ze extends xe{constructor(Ue){super(Ue);const{dict:$e}=Ue;this.data.annotationType=R.AnnotationType.LINE;const Ye=$e.getArray("L");if(this.data.lineCoordinates=R.Util.normalizeRect(Ye),this.setLineEndings($e.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const tt=this.color?Array.from(this.color).map(He=>He/255):[0,0,0],ot=$e.get("CA");let st=null,dt=$e.getArray("IC");dt&&(dt=se(dt,null),st=dt?Array.from(dt).map(He=>He/255):null);const ct=st?ot:null,mt=this.borderStyle.width||1,ut=2*mt,rt=[this.data.lineCoordinates[0]-ut,this.data.lineCoordinates[1]-ut,this.data.lineCoordinates[2]+ut,this.data.lineCoordinates[3]+ut];R.Util.intersect(this.rectangle,rt)||(this.rectangle=rt),this._setDefaultAppearance({xref:Ue.xref,extra:`${mt} w`,strokeColor:tt,fillColor:st,strokeAlpha:ot,fillAlpha:ct,pointsCallback:(He,Je)=>(He.push(`${Ye[0]} ${Ye[1]} m`,`${Ye[2]} ${Ye[3]} l`,"S"),[Je[0].x-mt,Je[1].x+mt,Je[3].y-mt,Je[1].y+mt])})}}}class ze extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.SQUARE,!this.appearance){const $e=this.color?Array.from(this.color).map(dt=>dt/255):[0,0,0],Ye=Ue.dict.get("CA");let tt=null,ot=Ue.dict.getArray("IC");ot&&(ot=se(ot,null),tt=ot?Array.from(ot).map(dt=>dt/255):null);const st=tt?Ye:null;if(this.borderStyle.width===0&&!tt)return;this._setDefaultAppearance({xref:Ue.xref,extra:`${this.borderStyle.width} w`,strokeColor:$e,fillColor:tt,strokeAlpha:Ye,fillAlpha:st,pointsCallback:(dt,ct)=>{const mt=ct[2].x+this.borderStyle.width/2,ut=ct[2].y+this.borderStyle.width/2,rt=ct[3].x-ct[2].x-this.borderStyle.width,He=ct[1].y-ct[3].y-this.borderStyle.width;return dt.push(`${mt} ${ut} ${rt} ${He} re`),tt?dt.push("B"):dt.push("S"),[ct[0].x,ct[1].x,ct[3].y,ct[1].y]}})}}}class Te extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.CIRCLE,!this.appearance){const $e=this.color?Array.from(this.color).map(ct=>ct/255):[0,0,0],Ye=Ue.dict.get("CA");let tt=null,ot=Ue.dict.getArray("IC");ot&&(ot=se(ot,null),tt=ot?Array.from(ot).map(ct=>ct/255):null);const st=tt?Ye:null;if(this.borderStyle.width===0&&!tt)return;const dt=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:Ue.xref,extra:`${this.borderStyle.width} w`,strokeColor:$e,fillColor:tt,strokeAlpha:Ye,fillAlpha:st,pointsCallback:(ct,mt)=>{const ut=mt[0].x+this.borderStyle.width/2,rt=mt[0].y-this.borderStyle.width/2,He=mt[3].x-this.borderStyle.width/2,Je=mt[3].y+this.borderStyle.width/2,St=ut+(He-ut)/2,bt=rt+(Je-rt)/2,pt=(He-ut)/2*dt,wt=(Je-rt)/2*dt;return ct.push(`${St} ${Je} m`,`${St+pt} ${Je} ${He} ${bt+wt} ${He} ${bt} c`,`${He} ${bt-wt} ${St+pt} ${rt} ${St} ${rt} c`,`${St-pt} ${rt} ${ut} ${bt-wt} ${ut} ${bt} c`,`${ut} ${bt+wt} ${St-pt} ${Je} ${St} ${Je} c`,"h"),tt?ct.push("B"):ct.push("S"),[mt[0].x,mt[1].x,mt[3].y,mt[1].y]}})}}}class Fe extends xe{constructor(Ue){super(Ue);const{dict:$e}=Ue;this.data.annotationType=R.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof Pe||(this.setLineEndings($e.getArray("LE")),this.data.lineEndings=this.lineEndings);const Ye=$e.getArray("Vertices");if(Array.isArray(Ye)){for(let tt=0,ot=Ye.length;tt<ot;tt+=2)this.data.vertices.push({x:Ye[tt],y:Ye[tt+1]});if(!this.appearance){const tt=this.color?Array.from(this.color).map(mt=>mt/255):[0,0,0],ot=$e.get("CA"),st=this.borderStyle.width||1,dt=2*st,ct=[1/0,1/0,-1/0,-1/0];for(const mt of this.data.vertices)ct[0]=Math.min(ct[0],mt.x-dt),ct[1]=Math.min(ct[1],mt.y-dt),ct[2]=Math.max(ct[2],mt.x+dt),ct[3]=Math.max(ct[3],mt.y+dt);R.Util.intersect(this.rectangle,ct)||(this.rectangle=ct),this._setDefaultAppearance({xref:Ue.xref,extra:`${st} w`,strokeColor:tt,strokeAlpha:ot,pointsCallback:(mt,ut)=>{const rt=this.data.vertices;for(let He=0,Je=rt.length;He<Je;He++)mt.push(`${rt[He].x} ${rt[He].y} ${He===0?"m":"l"}`);return mt.push("S"),[ut[0].x,ut[1].x,ut[3].y,ut[1].y]}})}}}}class Pe extends Fe{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.POLYGON}}class we extends xe{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.CARET}}class Ie extends xe{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.INK,this.data.inkLists=[];const $e=Ue.dict.getArray("InkList");if(!Array.isArray($e))return;const Ye=Ue.xref;for(let tt=0,ot=$e.length;tt<ot;++tt){this.data.inkLists.push([]);for(let st=0,dt=$e[tt].length;st<dt;st+=2)this.data.inkLists[tt].push({x:Ye.fetchIfRef($e[tt][st]),y:Ye.fetchIfRef($e[tt][st+1])})}if(!this.appearance){const tt=this.color?Array.from(this.color).map(mt=>mt/255):[0,0,0],ot=Ue.dict.get("CA"),st=this.borderStyle.width||1,dt=2*st,ct=[1/0,1/0,-1/0,-1/0];for(const mt of this.data.inkLists)for(const ut of mt)ct[0]=Math.min(ct[0],ut.x-dt),ct[1]=Math.min(ct[1],ut.y-dt),ct[2]=Math.max(ct[2],ut.x+dt),ct[3]=Math.max(ct[3],ut.y+dt);R.Util.intersect(this.rectangle,ct)||(this.rectangle=ct),this._setDefaultAppearance({xref:Ue.xref,extra:`${st} w`,strokeColor:tt,strokeAlpha:ot,pointsCallback:(mt,ut)=>{for(const rt of this.data.inkLists){for(let He=0,Je=rt.length;He<Je;He++)mt.push(`${rt[He].x} ${rt[He].y} ${He===0?"m":"l"}`);mt.push("S")}return[ut[0].x,ut[1].x,ut[3].y,ut[1].y]}})}}static createNewDict(Ue,$e,Ye){let{apRef:tt,ap:ot}=Ye;const{paths:st,rect:dt,rotation:ct}=Ue,mt=new z.Dict($e);mt.set("Type",z.Name.get("Annot")),mt.set("Subtype",z.Name.get("Ink")),mt.set("CreationDate",`D:${(0,R.getModificationDate)()}`),mt.set("Rect",dt),mt.set("InkList",st.map(rt=>rt.points)),mt.set("F",4),mt.set("Border",[0,0,0]),mt.set("Rotate",ct);const ut=new z.Dict($e);return mt.set("AP",ut),tt?ut.set("N",tt):ut.set("N",ot),mt}static async createNewAppearanceStream(Ue,$e,Ye){const{color:tt,rect:ot,rotation:st,paths:dt,thickness:ct,opacity:mt}=Ue,[ut,rt,He,Je]=ot;let St=He-ut,bt=Je-rt;st%180!==0&&([St,bt]=[bt,St]);const pt=[`${ct} w 1 J 1 j`,`${(0,K.getPdfColor)(tt,!1)}`];mt!==1&&pt.push("/R0 gs");const wt=[];for(const{bezier:Wt}of dt){wt.length=0,wt.push(`${(0,U.numberToString)(Wt[0])} ${(0,U.numberToString)(Wt[1])} m`);for(let Mt=2,$t=Wt.length;Mt<$t;Mt+=6){const Yt=Wt.slice(Mt,Mt+6).map(U.numberToString).join(" ");wt.push(`${Yt} c`)}wt.push("S"),pt.push(wt.join(`
`))}const Pt=pt.join(`
`),Nt=new z.Dict($e);if(Nt.set("FormType",1),Nt.set("Subtype",z.Name.get("Form")),Nt.set("Type",z.Name.get("XObject")),Nt.set("BBox",[0,0,St,bt]),Nt.set("Length",Pt.length),st){const Wt=fe._getRotationMatrix(st,St,bt);Nt.set("Matrix",Wt)}if(mt!==1){const Wt=new z.Dict($e),Mt=new z.Dict($e),$t=new z.Dict($e);$t.set("CA",mt),$t.set("Type",z.Name.get("ExtGState")),Mt.set("R0",$t),Wt.set("ExtGState",Mt),Nt.set("Resources",Wt)}const Vt=new Q.StringStream(Pt);return Vt.dict=Nt,Vt}}class Be extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.HIGHLIGHT,this.data.quadPoints=oe(Ue.dict,null)){const Ye=this.appearance&&this.appearance.dict.get("Resources");if(!this.appearance||!(Ye&&Ye.has("ExtGState"))){this.appearance&&(0,R.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const tt=this.color?Array.from(this.color).map(st=>st/255):[1,1,0],ot=Ue.dict.get("CA");this._setDefaultAppearance({xref:Ue.xref,fillColor:tt,blendMode:"Multiply",fillAlpha:ot,pointsCallback:(st,dt)=>(st.push(`${dt[0].x} ${dt[0].y} m`,`${dt[1].x} ${dt[1].y} l`,`${dt[3].x} ${dt[3].y} l`,`${dt[2].x} ${dt[2].y} l`,"f"),[dt[0].x,dt[1].x,dt[3].y,dt[1].y])})}}else this.data.hasPopup=!1}}class Ke extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.UNDERLINE,this.data.quadPoints=oe(Ue.dict,null)){if(!this.appearance){const Ye=this.color?Array.from(this.color).map(ot=>ot/255):[0,0,0],tt=Ue.dict.get("CA");this._setDefaultAppearance({xref:Ue.xref,extra:"[] 0 d 1 w",strokeColor:Ye,strokeAlpha:tt,pointsCallback:(ot,st)=>(ot.push(`${st[2].x} ${st[2].y} m`,`${st[3].x} ${st[3].y} l`,"S"),[st[0].x,st[1].x,st[3].y,st[1].y])})}}else this.data.hasPopup=!1}}class Ve extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.SQUIGGLY,this.data.quadPoints=oe(Ue.dict,null)){if(!this.appearance){const Ye=this.color?Array.from(this.color).map(ot=>ot/255):[0,0,0],tt=Ue.dict.get("CA");this._setDefaultAppearance({xref:Ue.xref,extra:"[] 0 d 1 w",strokeColor:Ye,strokeAlpha:tt,pointsCallback:(ot,st)=>{const dt=(st[0].y-st[2].y)/6;let ct=dt,mt=st[2].x;const ut=st[2].y,rt=st[3].x;ot.push(`${mt} ${ut+ct} m`);do mt+=2,ct=ct===0?dt:0,ot.push(`${mt} ${ut+ct} l`);while(mt<rt);return ot.push("S"),[st[2].x,rt,ut-2*dt,ut+2*dt]}})}}else this.data.hasPopup=!1}}class je extends xe{constructor(Ue){if(super(Ue),this.data.annotationType=R.AnnotationType.STRIKEOUT,this.data.quadPoints=oe(Ue.dict,null)){if(!this.appearance){const Ye=this.color?Array.from(this.color).map(ot=>ot/255):[0,0,0],tt=Ue.dict.get("CA");this._setDefaultAppearance({xref:Ue.xref,extra:"[] 0 d 1 w",strokeColor:Ye,strokeAlpha:tt,pointsCallback:(ot,st)=>(ot.push(`${(st[0].x+st[2].x)/2} ${(st[0].y+st[2].y)/2} m`,`${(st[1].x+st[3].x)/2} ${(st[1].y+st[3].y)/2} l`,"S"),[st[0].x,st[1].x,st[3].y,st[1].y])})}}else this.data.hasPopup=!1}}class Le extends xe{constructor(Ue){super(Ue),this.data.annotationType=R.AnnotationType.STAMP}}class et extends xe{constructor(Ue){super(Ue);const $e=new W.FileSpec(Ue.dict.get("FS"),Ue.xref);this.data.annotationType=R.AnnotationType.FILEATTACHMENT,this.data.file=$e.serializable}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.createDefaultAppearance=W,D.getPdfColor=J,D.parseDefaultAppearance=he;var R=B(131),U=B(2),K=B(139),z=B(140),e=B(130),ae=B(135);class ie extends z.EvaluatorPreprocessor{constructor(L){super(new ae.StringStream(L))}parse(){const L={fn:0,args:[]},Q={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;L.args.length=0,!!this.read(L);){if(this.savedStatesDepth!==0)continue;const{fn:ce,args:de}=L;switch(ce|0){case U.OPS.setFont:const[se,oe]=de;se instanceof e.Name&&(Q.fontName=se.name),typeof oe=="number"&&oe>0&&(Q.fontSize=oe);break;case U.OPS.setFillRGBColor:K.ColorSpace.singletons.rgb.getRgbItem(de,0,Q.fontColor,0);break;case U.OPS.setFillGray:K.ColorSpace.singletons.gray.getRgbItem(de,0,Q.fontColor,0);break;case U.OPS.setFillColorSpace:K.ColorSpace.singletons.cmyk.getRgbItem(de,0,Q.fontColor,0);break}}}catch(ce){(0,U.warn)(`parseDefaultAppearance - ignoring errors: "${ce}".`)}return Q}}function he(X){return new ie(X).parse()}function J(X,L){if(X[0]===X[1]&&X[1]===X[2]){const Q=X[0]/255;return`${(0,R.numberToString)(Q)} ${L?"g":"G"}`}return Array.from(X).map(Q=>(0,R.numberToString)(Q/255)).join(" ")+` ${L?"rg":"RG"}`}function W(X){let{fontSize:L,fontName:Q,fontColor:ce}=X;return`/${(0,R.escapePDFName)(Q)} ${L} Tf ${J(ce,!0)}`}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ColorSpace=void 0;var R=B(2),U=B(130),K=B(132),z=B(131);function e(se,oe,me,Ee,ke,xe,fe){fe=fe!==1?0:fe;const ye=me/ke,Ce=Ee/xe;let pe=0,_e;const Ge=new Uint16Array(ke),Ae=me*3;for(let Ne=0;Ne<ke;Ne++)Ge[Ne]=Math.floor(Ne*ye)*3;for(let Ne=0;Ne<xe;Ne++){const Ze=Math.floor(Ne*Ce)*Ae;for(let ze=0;ze<ke;ze++)_e=Ze+Ge[ze],oe[pe++]=se[_e++],oe[pe++]=se[_e++],oe[pe++]=se[_e++],pe+=fe}}class ae{constructor(oe,me){this.constructor===ae&&(0,R.unreachable)("Cannot initialize ColorSpace."),this.name=oe,this.numComps=me}getRgb(oe,me){const Ee=new Uint8ClampedArray(3);return this.getRgbItem(oe,me,Ee,0),Ee}getRgbItem(oe,me,Ee,ke){(0,R.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(oe,me,Ee,ke,xe,fe,ve){(0,R.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(oe,me){(0,R.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(oe){return!1}isDefaultDecode(oe,me){return ae.isDefaultDecode(oe,this.numComps)}fillRgb(oe,me,Ee,ke,xe,fe,ve,ye,Ce){const pe=me*Ee;let _e=null;const Ge=1<<ve,Ae=Ee!==xe||me!==ke;if(this.isPassthrough(ve))_e=ye;else if(this.numComps===1&&pe>Ge&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const Ne=ve<=8?new Uint8Array(Ge):new Uint16Array(Ge);for(let ze=0;ze<Ge;ze++)Ne[ze]=ze;const Ze=new Uint8ClampedArray(Ge*3);if(this.getRgbBuffer(Ne,0,Ge,Ze,0,ve,0),Ae){_e=new Uint8Array(pe*3);let ze=0;for(let Te=0;Te<pe;++Te){const Fe=ye[Te]*3;_e[ze++]=Ze[Fe],_e[ze++]=Ze[Fe+1],_e[ze++]=Ze[Fe+2]}}else{let ze=0;for(let Te=0;Te<pe;++Te){const Fe=ye[Te]*3;oe[ze++]=Ze[Fe],oe[ze++]=Ze[Fe+1],oe[ze++]=Ze[Fe+2],ze+=Ce}}}else Ae?(_e=new Uint8ClampedArray(pe*3),this.getRgbBuffer(ye,0,pe,_e,0,ve,0)):this.getRgbBuffer(ye,0,ke*fe,oe,0,ve,Ce);if(_e)if(Ae)e(_e,oe,me,Ee,ke,xe,Ce);else{let Ne=0,Ze=0;for(let ze=0,Te=ke*fe;ze<Te;ze++)oe[Ne++]=_e[Ze++],oe[Ne++]=_e[Ze++],oe[Ne++]=_e[Ze++],Ne+=Ce}}get usesZeroToOneRange(){return(0,R.shadow)(this,"usesZeroToOneRange",!0)}static _cache(oe,me,Ee,ke){if(!Ee)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!ke)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let xe,fe;oe instanceof U.Ref&&(fe=oe,oe=me.fetch(oe)),oe instanceof U.Name&&(xe=oe.name),(xe||fe)&&Ee.set(xe,fe,ke)}static getCached(oe,me,Ee){if(!Ee)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(oe instanceof U.Ref){const ke=Ee.getByRef(oe);if(ke)return ke;try{oe=me.fetch(oe)}catch(xe){if(xe instanceof z.MissingDataException)throw xe}}if(oe instanceof U.Name){const ke=Ee.getByName(oe.name);if(ke)return ke}return null}static async parseAsync(oe){let{cs:me,xref:Ee,resources:ke=null,pdfFunctionFactory:xe,localColorSpaceCache:fe}=oe;const ve=this._parse(me,Ee,ke,xe);return this._cache(me,Ee,fe,ve),ve}static parse(oe){let{cs:me,xref:Ee,resources:ke=null,pdfFunctionFactory:xe,localColorSpaceCache:fe}=oe;const ve=this.getCached(me,Ee,fe);if(ve)return ve;const ye=this._parse(me,Ee,ke,xe);return this._cache(me,Ee,fe,ye),ye}static _parse(oe,me){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ke=arguments.length>3?arguments[3]:void 0;if(oe=me.fetchIfRef(oe),oe instanceof U.Name)switch(oe.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new he(null);default:if(Ee instanceof U.Dict){const xe=Ee.get("ColorSpace");if(xe instanceof U.Dict){const fe=xe.get(oe.name);if(fe){if(fe instanceof U.Name)return this._parse(fe,me,Ee,ke);oe=fe;break}}}throw new R.FormatError(`Unrecognized ColorSpace: ${oe.name}`)}if(Array.isArray(oe)){const xe=me.fetchIfRef(oe[0]).name;let fe,ve,ye,Ce,pe,_e;switch(xe){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return fe=me.fetchIfRef(oe[1]),Ce=fe.getArray("WhitePoint"),pe=fe.getArray("BlackPoint"),_e=fe.get("Gamma"),new Q(Ce,pe,_e);case"CalRGB":fe=me.fetchIfRef(oe[1]),Ce=fe.getArray("WhitePoint"),pe=fe.getArray("BlackPoint"),_e=fe.getArray("Gamma");const Ge=fe.getArray("Matrix");return new ce(Ce,pe,_e,Ge);case"ICCBased":const Ne=me.fetchIfRef(oe[1]).dict;ve=Ne.get("N");const Ze=Ne.get("Alternate");if(Ze){const Ie=this._parse(Ze,me,Ee,ke);if(Ie.numComps===ve)return Ie;(0,R.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(ve===1)return this.singletons.gray;if(ve===3)return this.singletons.rgb;if(ve===4)return this.singletons.cmyk;break;case"Pattern":return ye=oe[1]||null,ye&&(ye=this._parse(ye,me,Ee,ke)),new he(ye);case"I":case"Indexed":ye=this._parse(oe[1],me,Ee,ke);const ze=me.fetchIfRef(oe[2])+1,Te=me.fetchIfRef(oe[3]);return new J(ye,ze,Te);case"Separation":case"DeviceN":const Fe=me.fetchIfRef(oe[1]);ve=Array.isArray(Fe)?Fe.length:1,ye=this._parse(oe[2],me,Ee,ke);const Pe=ke.create(oe[3]);return new ie(ve,ye,Pe);case"Lab":fe=me.fetchIfRef(oe[1]),Ce=fe.getArray("WhitePoint"),pe=fe.getArray("BlackPoint");const we=fe.getArray("Range");return new de(Ce,pe,we);default:throw new R.FormatError(`Unimplemented ColorSpace object: ${xe}`)}}throw new R.FormatError(`Unrecognized ColorSpace object: ${oe}`)}static isDefaultDecode(oe,me){if(!Array.isArray(oe))return!0;if(me*2!==oe.length)return(0,R.warn)("The decode map is not the correct length"),!0;for(let Ee=0,ke=oe.length;Ee<ke;Ee+=2)if(oe[Ee]!==0||oe[Ee+1]!==1)return!1;return!0}static get singletons(){return(0,R.shadow)(this,"singletons",{get gray(){return(0,R.shadow)(this,"gray",new W)},get rgb(){return(0,R.shadow)(this,"rgb",new X)},get cmyk(){return(0,R.shadow)(this,"cmyk",new L)}})}}D.ColorSpace=ae;class ie extends ae{constructor(oe,me,Ee){super("Alternate",oe),this.base=me,this.tintFn=Ee,this.tmpBuf=new Float32Array(me.numComps)}getRgbItem(oe,me,Ee,ke){const xe=this.tmpBuf;this.tintFn(oe,me,xe,0),this.base.getRgbItem(xe,0,Ee,ke)}getRgbBuffer(oe,me,Ee,ke,xe,fe,ve){const ye=this.tintFn,Ce=this.base,pe=1/((1<<fe)-1),_e=Ce.numComps,Ge=Ce.usesZeroToOneRange,Ae=(Ce.isPassthrough(8)||!Ge)&&ve===0;let Ne=Ae?xe:0;const Ze=Ae?ke:new Uint8ClampedArray(_e*Ee),ze=this.numComps,Te=new Float32Array(ze),Fe=new Float32Array(_e);let Pe,we;for(Pe=0;Pe<Ee;Pe++){for(we=0;we<ze;we++)Te[we]=oe[me++]*pe;if(ye(Te,0,Fe,0),Ge)for(we=0;we<_e;we++)Ze[Ne++]=Fe[we]*255;else Ce.getRgbItem(Fe,0,Ze,Ne),Ne+=_e}Ae||Ce.getRgbBuffer(Ze,0,Ee,ke,xe,8,ve)}getOutputLength(oe,me){return this.base.getOutputLength(oe*this.base.numComps/this.numComps,me)}}class he extends ae{constructor(oe){super("Pattern",null),this.base=oe}isDefaultDecode(oe,me){(0,R.unreachable)("Should not call PatternCS.isDefaultDecode")}}class J extends ae{constructor(oe,me,Ee){super("Indexed",1),this.base=oe,this.highVal=me;const ke=oe.numComps*me;if(this.lookup=new Uint8Array(ke),Ee instanceof K.BaseStream){const xe=Ee.getBytes(ke);this.lookup.set(xe)}else if(typeof Ee=="string")for(let xe=0;xe<ke;++xe)this.lookup[xe]=Ee.charCodeAt(xe)&255;else throw new R.FormatError(`IndexedCS - unrecognized lookup table: ${Ee}`)}getRgbItem(oe,me,Ee,ke){const xe=this.base.numComps,fe=oe[me]*xe;this.base.getRgbBuffer(this.lookup,fe,1,Ee,ke,8,0)}getRgbBuffer(oe,me,Ee,ke,xe,fe,ve){const ye=this.base,Ce=ye.numComps,pe=ye.getOutputLength(Ce,ve),_e=this.lookup;for(let Ge=0;Ge<Ee;++Ge){const Ae=oe[me++]*Ce;ye.getRgbBuffer(_e,Ae,1,ke,xe,8,ve),xe+=pe}}getOutputLength(oe,me){return this.base.getOutputLength(oe*this.base.numComps,me)}isDefaultDecode(oe,me){return Array.isArray(oe)?oe.length!==2?((0,R.warn)("Decode map length is not correct"),!0):!Number.isInteger(me)||me<1?((0,R.warn)("Bits per component is not correct"),!0):oe[0]===0&&oe[1]===(1<<me)-1:!0}}class W extends ae{constructor(){super("DeviceGray",1)}getRgbItem(oe,me,Ee,ke){const xe=oe[me]*255;Ee[ke]=Ee[ke+1]=Ee[ke+2]=xe}getRgbBuffer(oe,me,Ee,ke,xe,fe,ve){const ye=255/((1<<fe)-1);let Ce=me,pe=xe;for(let _e=0;_e<Ee;++_e){const Ge=ye*oe[Ce++];ke[pe++]=Ge,ke[pe++]=Ge,ke[pe++]=Ge,pe+=ve}}getOutputLength(oe,me){return oe*(3+me)}}class X extends ae{constructor(){super("DeviceRGB",3)}getRgbItem(oe,me,Ee,ke){Ee[ke]=oe[me]*255,Ee[ke+1]=oe[me+1]*255,Ee[ke+2]=oe[me+2]*255}getRgbBuffer(oe,me,Ee,ke,xe,fe,ve){if(fe===8&&ve===0){ke.set(oe.subarray(me,me+Ee*3),xe);return}const ye=255/((1<<fe)-1);let Ce=me,pe=xe;for(let _e=0;_e<Ee;++_e)ke[pe++]=ye*oe[Ce++],ke[pe++]=ye*oe[Ce++],ke[pe++]=ye*oe[Ce++],pe+=ve}getOutputLength(oe,me){return oe*(3+me)/3|0}isPassthrough(oe){return oe===8}}const L=function(){function oe(Ee,ke,xe,fe,ve){const ye=Ee[ke]*xe,Ce=Ee[ke+1]*xe,pe=Ee[ke+2]*xe,_e=Ee[ke+3]*xe;fe[ve]=255+ye*(-4.387332384609988*ye+54.48615194189176*Ce+18.82290502165302*pe+212.25662451639585*_e+-285.2331026137004)+Ce*(1.7149763477362134*Ce-5.6096736904047315*pe+-17.873870861415444*_e-5.497006427196366)+pe*(-2.5217340131683033*pe-21.248923337353073*_e+17.5119270841813)+_e*(-21.86122147463605*_e-189.48180835922747),fe[ve+1]=255+ye*(8.841041422036149*ye+60.118027045597366*Ce+6.871425592049007*pe+31.159100130055922*_e+-79.2970844816548)+Ce*(-15.310361306967817*Ce+17.575251261109482*pe+131.35250912493976*_e-190.9453302588951)+pe*(4.444339102852739*pe+9.8632861493405*_e-24.86741582555878)+_e*(-20.737325471181034*_e-187.80453709719578),fe[ve+2]=255+ye*(.8842522430003296*ye+8.078677503112928*Ce+30.89978309703729*pe-.23883238689178934*_e+-14.183576799673286)+Ce*(10.49593273432072*Ce+63.02378494754052*pe+50.606957656360734*_e-112.23884253719248)+pe*(.03296041114873217*pe+115.60384449646641*_e+-193.58209356861505)+_e*(-22.33816807309886*_e-180.12613974708367)}class me extends ae{constructor(){super("DeviceCMYK",4)}getRgbItem(ke,xe,fe,ve){oe(ke,xe,1,fe,ve)}getRgbBuffer(ke,xe,fe,ve,ye,Ce,pe){const _e=1/((1<<Ce)-1);for(let Ge=0;Ge<fe;Ge++)oe(ke,xe,_e,ve,ye),xe+=4,ye+=3+pe}getOutputLength(ke,xe){return ke/4*(3+xe)|0}}return me}(),Q=function(){function oe(Ee,ke,xe,fe,ve,ye){const pe=(ke[xe]*ye)**Ee.G,_e=Ee.YW*pe,Ge=Math.max(295.8*_e**.3333333333333333-40.8,0);fe[ve]=Ge,fe[ve+1]=Ge,fe[ve+2]=Ge}class me extends ae{constructor(ke,xe,fe){if(super("CalGray",1),!ke)throw new R.FormatError("WhitePoint missing - required for color space CalGray");if(xe=xe||[0,0,0],fe=fe||1,this.XW=ke[0],this.YW=ke[1],this.ZW=ke[2],this.XB=xe[0],this.YB=xe[1],this.ZB=xe[2],this.G=fe,this.XW<0||this.ZW<0||this.YW!==1)throw new R.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,R.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&(0,R.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,R.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(ke,xe,fe,ve){oe(this,ke,xe,fe,ve,1)}getRgbBuffer(ke,xe,fe,ve,ye,Ce,pe){const _e=1/((1<<Ce)-1);for(let Ge=0;Ge<fe;++Ge)oe(this,ke,xe,ve,ye,_e),xe+=1,ye+=3+pe}getOutputLength(ke,xe){return ke*(3+xe)}}return me}(),ce=function(){const oe=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),me=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),Ee=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),ke=new Float32Array([1,1,1]),xe=new Float32Array(3),fe=new Float32Array(3),ve=new Float32Array(3),ye=((8+16)/116)**3/8;function Ce(we,Ie,Be){Be[0]=we[0]*Ie[0]+we[1]*Ie[1]+we[2]*Ie[2],Be[1]=we[3]*Ie[0]+we[4]*Ie[1]+we[5]*Ie[2],Be[2]=we[6]*Ie[0]+we[7]*Ie[1]+we[8]*Ie[2]}function pe(we,Ie,Be){Be[0]=Ie[0]*1/we[0],Be[1]=Ie[1]*1/we[1],Be[2]=Ie[2]*1/we[2]}function _e(we,Ie,Be){Be[0]=Ie[0]*.95047/we[0],Be[1]=Ie[1]*1/we[1],Be[2]=Ie[2]*1.08883/we[2]}function Ge(we){return we<=.0031308?Ae(0,1,12.92*we):we>=.99554525?1:Ae(0,1,(1+.055)*we**(1/2.4)-.055)}function Ae(we,Ie,Be){return Math.max(we,Math.min(Ie,Be))}function Ne(we){return we<0?-Ne(-we):we>8?((we+16)/116)**3:we*ye}function Ze(we,Ie,Be){if(we[0]===0&&we[1]===0&&we[2]===0){Be[0]=Ie[0],Be[1]=Ie[1],Be[2]=Ie[2];return}const Ke=Ne(0),Ve=Ke,je=Ne(we[0]),Le=Ke,et=Ne(we[1]),Qe=Ke,Ue=Ne(we[2]),$e=(1-Ve)/(1-je),Ye=1-$e,tt=(1-Le)/(1-et),ot=1-tt,st=(1-Qe)/(1-Ue),dt=1-st;Be[0]=Ie[0]*$e+Ye,Be[1]=Ie[1]*tt+ot,Be[2]=Ie[2]*st+dt}function ze(we,Ie,Be){if(we[0]===1&&we[2]===1){Be[0]=Ie[0],Be[1]=Ie[1],Be[2]=Ie[2];return}const Ke=Be;Ce(oe,Ie,Ke);const Ve=xe;pe(we,Ke,Ve),Ce(me,Ve,Be)}function Te(we,Ie,Be){const Ke=Be;Ce(oe,Ie,Ke);const Ve=xe;_e(we,Ke,Ve),Ce(me,Ve,Be)}function Fe(we,Ie,Be,Ke,Ve,je){const Le=Ae(0,1,Ie[Be]*je),et=Ae(0,1,Ie[Be+1]*je),Qe=Ae(0,1,Ie[Be+2]*je),Ue=Le===1?1:Le**we.GR,$e=et===1?1:et**we.GG,Ye=Qe===1?1:Qe**we.GB,tt=we.MXA*Ue+we.MXB*$e+we.MXC*Ye,ot=we.MYA*Ue+we.MYB*$e+we.MYC*Ye,st=we.MZA*Ue+we.MZB*$e+we.MZC*Ye,dt=fe;dt[0]=tt,dt[1]=ot,dt[2]=st;const ct=ve;ze(we.whitePoint,dt,ct);const mt=fe;Ze(we.blackPoint,ct,mt);const ut=ve;Te(ke,mt,ut);const rt=fe;Ce(Ee,ut,rt),Ke[Ve]=Ge(rt[0])*255,Ke[Ve+1]=Ge(rt[1])*255,Ke[Ve+2]=Ge(rt[2])*255}class Pe extends ae{constructor(Ie,Be,Ke,Ve){if(super("CalRGB",3),!Ie)throw new R.FormatError("WhitePoint missing - required for color space CalRGB");Be=Be||new Float32Array(3),Ke=Ke||new Float32Array([1,1,1]),Ve=Ve||new Float32Array([1,0,0,0,1,0,0,0,1]);const je=Ie[0],Le=Ie[1],et=Ie[2];this.whitePoint=Ie;const Qe=Be[0],Ue=Be[1],$e=Be[2];if(this.blackPoint=Be,this.GR=Ke[0],this.GG=Ke[1],this.GB=Ke[2],this.MXA=Ve[0],this.MYA=Ve[1],this.MZA=Ve[2],this.MXB=Ve[3],this.MYB=Ve[4],this.MZB=Ve[5],this.MXC=Ve[6],this.MYC=Ve[7],this.MZC=Ve[8],je<0||et<0||Le!==1)throw new R.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(Qe<0||Ue<0||$e<0)&&((0,R.info)(`Invalid BlackPoint for ${this.name} [${Qe}, ${Ue}, ${$e}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,R.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(Ie,Be,Ke,Ve){Fe(this,Ie,Be,Ke,Ve,1)}getRgbBuffer(Ie,Be,Ke,Ve,je,Le,et){const Qe=1/((1<<Le)-1);for(let Ue=0;Ue<Ke;++Ue)Fe(this,Ie,Be,Ve,je,Qe),Be+=3,je+=3+et}getOutputLength(Ie,Be){return Ie*(3+Be)/3|0}}return Pe}(),de=function(){function oe(xe){let fe;return xe>=6/29?fe=xe**3:fe=108/841*(xe-4/29),fe}function me(xe,fe,ve,ye){return ve+xe*(ye-ve)/fe}function Ee(xe,fe,ve,ye,Ce,pe){let _e=fe[ve],Ge=fe[ve+1],Ae=fe[ve+2];ye!==!1&&(_e=me(_e,ye,0,100),Ge=me(Ge,ye,xe.amin,xe.amax),Ae=me(Ae,ye,xe.bmin,xe.bmax)),Ge>xe.amax?Ge=xe.amax:Ge<xe.amin&&(Ge=xe.amin),Ae>xe.bmax?Ae=xe.bmax:Ae<xe.bmin&&(Ae=xe.bmin);const Ne=(_e+16)/116,Ze=Ne+Ge/500,ze=Ne-Ae/200,Te=xe.XW*oe(Ze),Fe=xe.YW*oe(Ne),Pe=xe.ZW*oe(ze);let we,Ie,Be;xe.ZW<1?(we=Te*3.1339+Fe*-1.617+Pe*-.4906,Ie=Te*-.9785+Fe*1.916+Pe*.0333,Be=Te*.072+Fe*-.229+Pe*1.4057):(we=Te*3.2406+Fe*-1.5372+Pe*-.4986,Ie=Te*-.9689+Fe*1.8758+Pe*.0415,Be=Te*.0557+Fe*-.204+Pe*1.057),Ce[pe]=Math.sqrt(we)*255,Ce[pe+1]=Math.sqrt(Ie)*255,Ce[pe+2]=Math.sqrt(Be)*255}class ke extends ae{constructor(fe,ve,ye){if(super("Lab",3),!fe)throw new R.FormatError("WhitePoint missing - required for color space Lab");if(ve=ve||[0,0,0],ye=ye||[-100,100,-100,100],this.XW=fe[0],this.YW=fe[1],this.ZW=fe[2],this.amin=ye[0],this.amax=ye[1],this.bmin=ye[2],this.bmax=ye[3],this.XB=ve[0],this.YB=ve[1],this.ZB=ve[2],this.XW<0||this.ZW<0||this.YW!==1)throw new R.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,R.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,R.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(fe,ve,ye,Ce){Ee(this,fe,ve,!1,ye,Ce)}getRgbBuffer(fe,ve,ye,Ce,pe,_e,Ge){const Ae=(1<<_e)-1;for(let Ne=0;Ne<ye;Ne++)Ee(this,fe,ve,Ae,Ce,pe),ve+=3,pe+=3+Ge}getOutputLength(fe,ve){return fe*(3+ve)/3|0}isDefaultDecode(fe,ve){return!0}get usesZeroToOneRange(){return(0,R.shadow)(this,"usesZeroToOneRange",!1)}}return ke}()},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PartialEvaluator=D.EvaluatorPreprocessor=void 0;var R=B(2),U=B(141),K=B(130),z=B(159),e=B(163),ae=B(162),ie=B(166),he=B(165),J=B(175),W=B(176),X=B(167),L=B(182),Q=B(142),ce=B(184),de=B(135),se=B(132),oe=B(185),me=B(139),Ee=B(144),ke=B(164),xe=B(131),fe=B(170),ve=B(186),ye=B(187),Ce=B(188);const pe=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),_e={TILING:1,SHADING:2},Ge=10,Ae=Promise.resolve();function Ne(Ke){let Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(Ke)){for(let je=0,Le=Ke.length;je<Le;je++){const et=Ne(Ke[je],!0);if(et)return et}return(0,R.warn)(`Unsupported blend mode Array: ${Ke}`),"source-over"}if(!(Ke instanceof K.Name))return Ve?null:"source-over";switch(Ke.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return Ve?null:((0,R.warn)(`Unsupported blend mode: ${Ke.name}`),"source-over")}function Ze(Ke){Ke.fn===R.OPS.paintImageMaskXObject&&Ke.args[0]&&Ke.args[0].count>0&&Ke.args[0].count++}class ze{static get TIME_SLOT_DURATION_MS(){return(0,R.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,R.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){return++this.checked<ze.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+ze.TIME_SLOT_DURATION_MS,this.checked=0}}class Te{constructor(Ve){let{xref:je,handler:Le,pageIndex:et,idFactory:Qe,fontCache:Ue,builtInCMapCache:$e,standardFontDataCache:Ye,globalImageCache:tt,options:ot=null}=Ve;this.xref=je,this.handler=Le,this.pageIndex=et,this.idFactory=Qe,this.fontCache=Ue,this.builtInCMapCache=$e,this.standardFontDataCache=Ye,this.globalImageCache=tt,this.options=ot||pe,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){const Ve=new L.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,R.shadow)(this,"_pdfFunctionFactory",Ve)}clone(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const je=Object.create(this);return je.options=Object.assign(Object.create(null),this.options,Ve),je}hasBlendModes(Ve,je){if(!(Ve instanceof K.Dict)||Ve.objId&&je.has(Ve.objId))return!1;const Le=new K.RefSet(je);Ve.objId&&Le.put(Ve.objId);const et=[Ve],Qe=this.xref;for(;et.length;){const Ue=et.shift(),$e=Ue.get("ExtGState");if($e instanceof K.Dict)for(let tt of $e.getRawValues()){if(tt instanceof K.Ref){if(Le.has(tt))continue;try{tt=Qe.fetch(tt)}catch(st){Le.put(tt),(0,R.info)(`hasBlendModes - ignoring ExtGState: "${st}".`);continue}}if(!(tt instanceof K.Dict))continue;tt.objId&&Le.put(tt.objId);const ot=tt.get("BM");if(ot instanceof K.Name){if(ot.name!=="Normal")return!0;continue}if(ot!==void 0&&Array.isArray(ot)){for(const st of ot)if(st instanceof K.Name&&st.name!=="Normal")return!0}}const Ye=Ue.get("XObject");if(Ye instanceof K.Dict)for(let tt of Ye.getRawValues()){if(tt instanceof K.Ref){if(Le.has(tt))continue;try{tt=Qe.fetch(tt)}catch(st){Le.put(tt),(0,R.info)(`hasBlendModes - ignoring XObject: "${st}".`);continue}}if(!(tt instanceof se.BaseStream))continue;tt.dict.objId&&Le.put(tt.dict.objId);const ot=tt.dict.get("Resources");ot instanceof K.Dict&&(ot.objId&&Le.has(ot.objId)||(et.push(ot),ot.objId&&Le.put(ot.objId)))}}for(const Ue of Le)je.put(Ue);return!1}async fetchBuiltInCMap(Ve){const je=this.builtInCMapCache.get(Ve);if(je)return je;let Le;if(this.options.cMapUrl!==null){const et=`${this.options.cMapUrl}${Ve}.bcmap`,Qe=await fetch(et);if(!Qe.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${et}" with "${Qe.statusText}".`);Le={cMapData:new Uint8Array(await Qe.arrayBuffer()),compressionType:R.CMapCompressionType.BINARY}}else Le=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:Ve});return Le.compressionType!==R.CMapCompressionType.NONE&&this.builtInCMapCache.set(Ve,Le),Le}async fetchStandardFontData(Ve){const je=this.standardFontDataCache.get(Ve);if(je)return new de.Stream(je);if(this.options.useSystemFonts&&Ve!=="Symbol"&&Ve!=="ZapfDingbats")return null;const Le=(0,ie.getFontNameToFileMap)(),et=Le[Ve];let Qe;if(this.options.standardFontDataUrl!==null){const Ue=`${this.options.standardFontDataUrl}${et}`,$e=await fetch(Ue);$e.ok?Qe=await $e.arrayBuffer():(0,R.warn)(`fetchStandardFontData: failed to fetch file "${Ue}" with "${$e.statusText}".`)}else try{Qe=await this.handler.sendWithPromise("FetchStandardFontData",{filename:et})}catch(Ue){(0,R.warn)(`fetchStandardFontData: failed to fetch file "${et}" with "${Ue}".`)}return Qe?(this.standardFontDataCache.set(Ve,Qe),new de.Stream(Qe)):null}async buildFormXObject(Ve,je,Le,et,Qe,Ue,$e){const Ye=je.dict,tt=Ye.getArray("Matrix");let ot=Ye.getArray("BBox");Array.isArray(ot)&&ot.length===4?ot=R.Util.normalizeRect(ot):ot=null;let st,dt;Ye.has("OC")&&(st=await this.parseMarkedContentProps(Ye.get("OC"),Ve)),st!==void 0&&et.addOp(R.OPS.beginMarkedContentProps,["OC",st]);const ct=Ye.get("Group");if(ct){dt={matrix:tt,bbox:ot,smask:Le,isolated:!1,knockout:!1};const ut=ct.get("S");let rt=null;if((0,K.isName)(ut,"Transparency")&&(dt.isolated=ct.get("I")||!1,dt.knockout=ct.get("K")||!1,ct.has("CS"))){const He=ct.getRaw("CS"),Je=me.ColorSpace.getCached(He,this.xref,$e);Je?rt=Je:rt=await this.parseColorSpace({cs:He,resources:Ve,localColorSpaceCache:$e})}Le&&Le.backdrop&&(rt=rt||me.ColorSpace.singletons.rgb,Le.backdrop=rt.getRgb(Le.backdrop,0)),et.addOp(R.OPS.beginGroup,[dt])}const mt=ct?[tt,null]:[tt,ot];return et.addOp(R.OPS.paintFormXObjectBegin,mt),this.getOperatorList({stream:je,task:Qe,resources:Ye.get("Resources")||Ve,operatorList:et,initialState:Ue}).then(function(){et.addOp(R.OPS.paintFormXObjectEnd,[]),ct&&et.addOp(R.OPS.endGroup,[dt]),st!==void 0&&et.addOp(R.OPS.endMarkedContent,[])})}_sendImgData(Ve,je){let Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const et=je?[je.bitmap||je.data.buffer]:null;return this.parsingType3Font||Le?this.handler.send("commonobj",[Ve,"Image",je],et):this.handler.send("obj",[Ve,this.pageIndex,"Image",je],et)}async buildPaintImageXObject(Ve){let{resources:je,image:Le,isInline:et=!1,operatorList:Qe,cacheKey:Ue,localImageCache:$e,localColorSpaceCache:Ye}=Ve;const tt=Le.dict,ot=tt.objId,st=tt.get("W","Width"),dt=tt.get("H","Height");if(!(st&&typeof st=="number")||!(dt&&typeof dt=="number")){(0,R.warn)("Image dimensions are missing, or not numbers.");return}const ct=this.options.maxImageSize;if(ct!==-1&&st*dt>ct){const Pt="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,R.warn)(Pt);return}throw new Error(Pt)}let mt;tt.has("OC")&&(mt=await this.parseMarkedContentProps(tt.get("OC"),je));const ut=tt.get("IM","ImageMask")||!1;let rt,He;if(ut){const Pt=tt.get("I","Interpolate"),Nt=st+7>>3,Vt=Le.getBytes(Nt*dt),Wt=tt.getArray("D","Decode");if(this.parsingType3Font){rt=Ce.PDFImage.createRawMask({imgArray:Vt,width:st,height:dt,imageIsFromDecodeStream:Le instanceof Ee.DecodeStream,inverseDecode:!!Wt&&Wt[0]>0,interpolate:Pt}),rt.cached=!!Ue,He=[rt],Qe.addImageOps(R.OPS.paintImageMaskXObject,He,mt),Ue&&$e.set(Ue,ot,{fn:R.OPS.paintImageMaskXObject,args:He,optionalContent:mt});return}if(rt=Ce.PDFImage.createMask({imgArray:Vt,width:st,height:dt,imageIsFromDecodeStream:Le instanceof Ee.DecodeStream,inverseDecode:!!Wt&&Wt[0]>0,interpolate:Pt}),rt.isSingleOpaquePixel){Qe.addImageOps(R.OPS.paintSolidColorImageMask,[],mt),Ue&&$e.set(Ue,ot,{fn:R.OPS.paintSolidColorImageMask,args:[],optionalContent:mt});return}const Mt=`mask_${this.idFactory.createObjId()}`;Qe.addDependency(Mt),this._sendImgData(Mt,rt),He=[{data:Mt,width:rt.width,height:rt.height,interpolate:rt.interpolate,count:1}],Qe.addImageOps(R.OPS.paintImageMaskXObject,He,mt),Ue&&$e.set(Ue,ot,{fn:R.OPS.paintImageMaskXObject,args:He,optionalContent:mt});return}const Je=tt.get("SM","SMask")||!1,St=tt.get("Mask")||!1,bt=200;if(et&&!Je&&!St&&st+dt<bt){rt=new Ce.PDFImage({xref:this.xref,res:je,image:Le,isInline:et,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:Ye}).createImageData(!0),Qe.addImageOps(R.OPS.paintInlineImageXObject,[rt],mt);return}let pt=`img_${this.idFactory.createObjId()}`,wt=!1;this.parsingType3Font?pt=`${this.idFactory.getDocId()}_type3_${pt}`:ot&&(wt=this.globalImageCache.shouldCache(ot,this.pageIndex),wt&&(pt=`${this.idFactory.getDocId()}_${pt}`)),Qe.addDependency(pt),He=[pt,st,dt],Ce.PDFImage.buildImage({xref:this.xref,res:je,image:Le,isInline:et,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:Ye}).then(Pt=>(rt=Pt.createImageData(!1),Ue&&ot&&wt&&this.globalImageCache.addByteSize(ot,rt.data.length),this._sendImgData(pt,rt,wt))).catch(Pt=>((0,R.warn)(`Unable to decode image "${pt}": "${Pt}".`),this._sendImgData(pt,null,wt))),Qe.addImageOps(R.OPS.paintImageXObject,He,mt),Ue&&($e.set(Ue,ot,{fn:R.OPS.paintImageXObject,args:He,optionalContent:mt}),ot&&((0,R.assert)(!et,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(ot,this.pageIndex),wt&&this.globalImageCache.setData(ot,{objId:pt,fn:R.OPS.paintImageXObject,args:He,optionalContent:mt,byteSize:0})))}handleSMask(Ve,je,Le,et,Qe,Ue){const $e=Ve.get("G"),Ye={subtype:Ve.get("S").name,backdrop:Ve.get("BC")},tt=Ve.get("TR");if((0,L.isPDFFunction)(tt)){const ot=this._pdfFunctionFactory.create(tt),st=new Uint8Array(256),dt=new Float32Array(1);for(let ct=0;ct<256;ct++)dt[0]=ct/255,ot(dt,0,dt,0),st[ct]=dt[0]*255|0;Ye.transferMap=st}return this.buildFormXObject(je,$e,Ye,Le,et,Qe.state.clone(),Ue)}handleTransferFunction(Ve){let je;if(Array.isArray(Ve))je=Ve;else if((0,L.isPDFFunction)(Ve))je=[Ve];else return null;const Le=[];let et=0,Qe=0;for(const Ue of je){const $e=this.xref.fetchIfRef(Ue);if(et++,(0,K.isName)($e,"Identity")){Le.push(null);continue}else if(!(0,L.isPDFFunction)($e))return null;const Ye=this._pdfFunctionFactory.create($e),tt=new Uint8Array(256),ot=new Float32Array(1);for(let st=0;st<256;st++)ot[0]=st/255,Ye(ot,0,ot,0),tt[st]=ot[0]*255|0;Le.push(tt),Qe++}return!(et===1||et===4)||Qe===0?null:Le}handleTilingType(Ve,je,Le,et,Qe,Ue,$e,Ye){const tt=new ye.OperatorList,ot=K.Dict.merge({xref:this.xref,dictArray:[Qe.get("Resources"),Le]});return this.getOperatorList({stream:et,task:$e,resources:ot,operatorList:tt}).then(function(){const st=tt.getIR(),dt=(0,J.getTilingPatternIR)(st,Qe,je);Ue.addDependencies(tt.dependencies),Ue.addOp(Ve,dt),Qe.objId&&Ye.set(null,Qe.objId,{operatorListIR:st,dict:Qe})}).catch(st=>{if(!(st instanceof R.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,R.warn)(`handleTilingType - ignoring pattern: "${st}".`);return}throw st}})}handleSetFont(Ve,je,Le,et,Qe,Ue){let $e=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,Ye=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;const tt=je&&je[0]instanceof K.Name?je[0].name:null;return this.loadFont(tt,Le,Ve,$e,Ye).then(ot=>ot.font.isType3Font?ot.loadType3Data(this,Ve,Qe).then(function(){return et.addDependencies(ot.type3Dependencies),ot}).catch(st=>(this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontLoadType3}),new Fe({loadedName:"g_font_error",font:new z.ErrorFont(`Type3 font load error: ${st}`),dict:ot.font,evaluatorOptions:this.options}))):ot).then(ot=>(Ue.font=ot.font,ot.send(this.handler),ot.loadedName))}handleText(Ve,je){const Le=je.font,et=Le.charsToGlyphs(Ve);return Le.data&&(je.textRenderingMode&R.TextRenderingMode.ADD_TO_PATH_FLAG||je.fillColorSpace.name==="Pattern"||Le.disableFontFace||this.options.disableFontFace)&&Te.buildFontPaths(Le,et,this.handler,this.options),et}ensureStateFont(Ve){if(Ve.font)return;const je=new R.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontState}),(0,R.warn)(`ensureStateFont: "${je}".`);return}throw je}async setGState(Ve){let{resources:je,gState:Le,operatorList:et,cacheKey:Qe,task:Ue,stateManager:$e,localGStateCache:Ye,localColorSpaceCache:tt}=Ve;const ot=Le.objId;let st=!0;const dt=[],ct=Le.getKeys();let mt=Promise.resolve();for(let ut=0,rt=ct.length;ut<rt;ut++){const He=ct[ut],Je=Le.get(He);switch(He){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":dt.push([He,Je]);break;case"Font":st=!1,mt=mt.then(()=>this.handleSetFont(je,null,Je[0],et,Ue,$e.state).then(function(bt){et.addDependency(bt),dt.push([He,[bt,Je[1]]])}));break;case"BM":dt.push([He,Ne(Je)]);break;case"SMask":if((0,K.isName)(Je,"None")){dt.push([He,!1]);break}Je instanceof K.Dict?(st=!1,mt=mt.then(()=>this.handleSMask(Je,je,et,Ue,$e,tt)),dt.push([He,!0])):(0,R.warn)("Unsupported SMask type");break;case"TR":const St=this.handleTransferFunction(Je);dt.push([He,St]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,R.info)("graphic state operator "+He);break;default:(0,R.info)("Unknown graphic state operator "+He);break}}return mt.then(function(){dt.length>0&&et.addOp(R.OPS.setGState,[dt]),st&&Ye.set(Qe,ot,dt)})}loadFont(Ve,je,Le){let et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,Qe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const Ue=async()=>new Fe({loadedName:"g_font_error",font:new z.ErrorFont(`Font "${Ve}" is not available.`),dict:je,evaluatorOptions:this.options}),$e=this.xref;let Ye;if(je)je instanceof K.Ref&&(Ye=je);else{const ut=Le.get("Font");ut&&(Ye=ut.getRaw(Ve))}if(!Ye){const ut=`Font "${Ve||je&&je.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,R.warn)(`${ut}.`),Ue();this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontMissing}),(0,R.warn)(`${ut} -- attempting to fallback to a default font.`),et?Ye=et:Ye=Te.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(Ye))return Ue();if(this.fontCache.has(Ye))return this.fontCache.get(Ye);if(je=$e.fetchIfRef(Ye),!(je instanceof K.Dict))return Ue();if(je.cacheKey&&this.fontCache.has(je.cacheKey))return this.fontCache.get(je.cacheKey);const tt=(0,R.createPromiseCapability)();let ot;try{ot=this.preEvaluateFont(je),ot.cssFontInfo=Qe}catch(ut){return(0,R.warn)(`loadFont - preEvaluateFont failed: "${ut}".`),Ue()}const{descriptor:st,hash:dt}=ot,ct=Ye instanceof K.Ref;let mt;if(ct&&(mt=`f${Ye.toString()}`),dt&&st instanceof K.Dict){st.fontAliases||(st.fontAliases=Object.create(null));const ut=st.fontAliases;if(ut[dt]){const rt=ut[dt].aliasRef;if(ct&&rt&&this.fontCache.has(rt))return this.fontCache.putAlias(Ye,rt),this.fontCache.get(Ye)}else ut[dt]={fontID:this.idFactory.createFontId()};ct&&(ut[dt].aliasRef=Ye),mt=ut[dt].fontID}return ct?this.fontCache.put(Ye,tt.promise):(mt||(mt=this.idFactory.createFontId()),je.cacheKey=`cacheKey_${mt}`,this.fontCache.put(je.cacheKey,tt.promise)),(0,R.assert)(mt&&mt.startsWith("f"),'The "fontID" must be (correctly) defined.'),je.loadedName=`${this.idFactory.getDocId()}_${mt}`,this.translateFont(ot).then(ut=>{ut.fontType!==void 0&&$e.stats.addFontType(ut.fontType),tt.resolve(new Fe({loadedName:je.loadedName,font:ut,dict:je,evaluatorOptions:this.options}))}).catch(ut=>{this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,R.warn)(`loadFont - translateFont failed: "${ut}".`);try{const rt=st&&st.get("FontFile3"),He=rt&&rt.get("Subtype"),Je=(0,e.getFontType)(ot.type,He&&He.name);Je!==void 0&&$e.stats.addFontType(Je)}catch{}tt.resolve(new Fe({loadedName:je.loadedName,font:new z.ErrorFont(ut instanceof Error?ut.message:ut),dict:je,evaluatorOptions:this.options}))}),tt.promise}buildPath(Ve,je,Le){let et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const Qe=Ve.length-1;Le||(Le=[]);let Ue;if(Qe<0||Ve.fnArray[Qe]!==R.OPS.constructPath)et&&((0,R.warn)(`Encountered path operator "${je}" inside of a text object.`),Ve.addOp(R.OPS.save,null)),Ue=[1/0,-1/0,1/0,-1/0],Ve.addOp(R.OPS.constructPath,[[je],Le,Ue]),et&&Ve.addOp(R.OPS.restore,null);else{const $e=Ve.argsArray[Qe];$e[0].push(je),Array.prototype.push.apply($e[1],Le),Ue=$e[2]}switch(je){case R.OPS.rectangle:Ue[0]=Math.min(Ue[0],Le[0],Le[0]+Le[2]),Ue[1]=Math.max(Ue[1],Le[0],Le[0]+Le[2]),Ue[2]=Math.min(Ue[2],Le[1],Le[1]+Le[3]),Ue[3]=Math.max(Ue[3],Le[1],Le[1]+Le[3]);break;case R.OPS.moveTo:case R.OPS.lineTo:Ue[0]=Math.min(Ue[0],Le[0]),Ue[1]=Math.max(Ue[1],Le[0]),Ue[2]=Math.min(Ue[2],Le[1]),Ue[3]=Math.max(Ue[3],Le[1]);break}}parseColorSpace(Ve){let{cs:je,resources:Le,localColorSpaceCache:et}=Ve;return me.ColorSpace.parseAsync({cs:je,xref:this.xref,resources:Le,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:et}).catch(Qe=>{if(Qe instanceof R.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorColorSpace}),(0,R.warn)(`parseColorSpace - ignoring ColorSpace: "${Qe}".`),null;throw Qe})}parseShading(Ve){let{shading:je,resources:Le,localColorSpaceCache:et,localShadingPatternCache:Qe}=Ve,Ue=Qe.get(je);if(!Ue){var $e=J.Pattern.parseShading(je,this.xref,Le,this.handler,this._pdfFunctionFactory,et);const Ye=$e.getIR();Ue=`pattern_${this.idFactory.createObjId()}`,Qe.set(je,Ue),this.handler.send("obj",[Ue,this.pageIndex,"Pattern",Ye])}return Ue}handleColorN(Ve,je,Le,et,Qe,Ue,$e,Ye,tt,ot){const st=Le.pop();if(st instanceof K.Name){const dt=Qe.getRaw(st.name),ct=dt instanceof K.Ref&&tt.getByRef(dt);if(ct)try{const ut=et.base?et.base.getRgb(Le,0):null,rt=(0,J.getTilingPatternIR)(ct.operatorListIR,ct.dict,ut);Ve.addOp(je,rt);return}catch{}const mt=this.xref.fetchIfRef(dt);if(mt){const ut=mt instanceof se.BaseStream?mt.dict:mt,rt=ut.get("PatternType");if(rt===_e.TILING){const He=et.base?et.base.getRgb(Le,0):null;return this.handleTilingType(je,He,Ue,mt,ut,Ve,$e,tt)}else if(rt===_e.SHADING){const He=ut.get("Shading"),Je=ut.getArray("Matrix"),St=this.parseShading({shading:He,resources:Ue,localColorSpaceCache:Ye,localShadingPatternCache:ot});Ve.addOp(je,["Shading",St,Je]);return}throw new R.FormatError(`Unknown PatternType: ${rt}`)}}throw new R.FormatError(`Unknown PatternName: ${st}`)}_parseVisibilityExpression(Ve,je,Le){if(++je>10){(0,R.warn)("Visibility expression is too deeply nested");return}const Qe=Ve.length,Ue=this.xref.fetchIfRef(Ve[0]);if(Qe<2||!(Ue instanceof K.Name)){(0,R.warn)("Invalid visibility expression");return}switch(Ue.name){case"And":case"Or":case"Not":Le.push(Ue.name);break;default:(0,R.warn)(`Invalid operator ${Ue.name} in visibility expression`);return}for(let $e=1;$e<Qe;$e++){const Ye=Ve[$e],tt=this.xref.fetchIfRef(Ye);if(Array.isArray(tt)){const ot=[];Le.push(ot),this._parseVisibilityExpression(tt,je,ot)}else Ye instanceof K.Ref&&Le.push(Ye.toString())}}async parseMarkedContentProps(Ve,je){let Le;if(Ve instanceof K.Name)Le=je.get("Properties").get(Ve.name);else if(Ve instanceof K.Dict)Le=Ve;else throw new R.FormatError("Optional content properties malformed.");const et=Le.get("Type").name;if(et==="OCG")return{type:et,id:Le.objId};if(et==="OCMD"){const Qe=Le.get("VE");if(Array.isArray(Qe)){const $e=[];if(this._parseVisibilityExpression(Qe,0,$e),$e.length>0)return{type:"OCMD",expression:$e}}const Ue=Le.get("OCGs");if(Array.isArray(Ue)||Ue instanceof K.Dict){const $e=[];if(Array.isArray(Ue))for(const Ye of Ue)$e.push(Ye.toString());else $e.push(Ue.objId);return{type:et,ids:$e,policy:Le.get("P")instanceof K.Name?Le.get("P").name:null,expression:null}}else if(Ue instanceof K.Ref)return{type:et,id:Ue.toString()}}return null}getOperatorList(Ve){let{stream:je,task:Le,resources:et,operatorList:Qe,initialState:Ue=null,fallbackFontDict:$e=null}=Ve;if(et=et||K.Dict.empty,Ue=Ue||new Ie,!Qe)throw new Error('getOperatorList: missing "operatorList" parameter');const Ye=this,tt=this.xref;let ot=!1;const st=new ce.LocalImageCache,dt=new ce.LocalColorSpaceCache,ct=new ce.LocalGStateCache,mt=new ce.LocalTilingPatternCache,ut=new Map,rt=et.get("XObject")||K.Dict.empty,He=et.get("Pattern")||K.Dict.empty,Je=new Pe(Ue),St=new Be(je,tt,Je),bt=new ze;function pt(wt){for(let Pt=0,Nt=St.savedStatesDepth;Pt<Nt;Pt++)Qe.addOp(R.OPS.restore,[])}return new Promise(function wt(Pt,Nt){const Vt=function(cr){Promise.all([cr,Qe.ready]).then(function(){try{wt(Pt,Nt)}catch(Ar){Nt(Ar)}},Nt)};Le.ensureNotTerminated(),bt.reset();const Wt={};let Mt,$t,Yt,Ft,Jt,er;for(;!(Mt=bt.check())&&(Wt.args=null,!!St.read(Wt));){let cr=Wt.args,Ar=Wt.fn;switch(Ar|0){case R.OPS.paintXObject:if(er=cr[0]instanceof K.Name,Jt=cr[0].name,er){const vt=st.getByName(Jt);if(vt){Qe.addImageOps(vt.fn,vt.args,vt.optionalContent),Ze(vt),cr=null;continue}}Vt(new Promise(function(vt,Xt){if(!er)throw new R.FormatError("XObject must be referred to by name.");let At=rt.getRaw(Jt);if(At instanceof K.Ref){const Br=st.getByRef(At);if(Br){Qe.addImageOps(Br.fn,Br.args,Br.optionalContent),Ze(Br),vt();return}const br=Ye.globalImageCache.getData(At,Ye.pageIndex);if(br){Qe.addDependency(br.objId),Qe.addImageOps(br.fn,br.args,br.optionalContent),vt();return}At=tt.fetch(At)}if(!(At instanceof se.BaseStream))throw new R.FormatError("XObject should be a stream");const zt=At.dict.get("Subtype");if(!(zt instanceof K.Name))throw new R.FormatError("XObject should have a Name subtype");if(zt.name==="Form"){Je.save(),Ye.buildFormXObject(et,At,null,Qe,Le,Je.state.clone(),dt).then(function(){Je.restore(),vt()},Xt);return}else if(zt.name==="Image"){Ye.buildPaintImageXObject({resources:et,image:At,operatorList:Qe,cacheKey:Jt,localImageCache:st,localColorSpaceCache:dt}).then(vt,Xt);return}else if(zt.name==="PS")(0,R.info)("Ignored XObject subtype PS");else throw new R.FormatError(`Unhandled XObject subtype ${zt.name}`);vt()}).catch(function(vt){if(!(vt instanceof R.AbortException)){if(Ye.options.ignoreErrors){Ye.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorXObject}),(0,R.warn)(`getOperatorList - ignoring XObject: "${vt}".`);return}throw vt}}));return;case R.OPS.setFont:var Bt=cr[1];Vt(Ye.handleSetFont(et,cr,null,Qe,Le,Je.state,$e).then(function(vt){Qe.addDependency(vt),Qe.addOp(R.OPS.setFont,[vt,Bt])}));return;case R.OPS.beginText:ot=!0;break;case R.OPS.endText:ot=!1;break;case R.OPS.endInlineImage:var It=cr[0].cacheKey;if(It){const vt=st.getByName(It);if(vt){Qe.addImageOps(vt.fn,vt.args,vt.optionalContent),Ze(vt),cr=null;continue}}Vt(Ye.buildPaintImageXObject({resources:et,image:cr[0],isInline:!0,operatorList:Qe,cacheKey:It,localImageCache:st,localColorSpaceCache:dt}));return;case R.OPS.showText:if(!Je.state.font){Ye.ensureStateFont(Je.state);continue}cr[0]=Ye.handleText(cr[0],Je.state);break;case R.OPS.showSpacedText:if(!Je.state.font){Ye.ensureStateFont(Je.state);continue}var Dt=cr[0],Zt=[],gr=Dt.length,fr=Je.state;for($t=0;$t<gr;++$t){const vt=Dt[$t];typeof vt=="string"?Array.prototype.push.apply(Zt,Ye.handleText(vt,fr)):typeof vt=="number"&&Zt.push(vt)}cr[0]=Zt,Ar=R.OPS.showText;break;case R.OPS.nextLineShowText:if(!Je.state.font){Ye.ensureStateFont(Je.state);continue}Qe.addOp(R.OPS.nextLine),cr[0]=Ye.handleText(cr[0],Je.state),Ar=R.OPS.showText;break;case R.OPS.nextLineSetSpacingShowText:if(!Je.state.font){Ye.ensureStateFont(Je.state);continue}Qe.addOp(R.OPS.nextLine),Qe.addOp(R.OPS.setWordSpacing,[cr.shift()]),Qe.addOp(R.OPS.setCharSpacing,[cr.shift()]),cr[0]=Ye.handleText(cr[0],Je.state),Ar=R.OPS.showText;break;case R.OPS.setTextRenderingMode:Je.state.textRenderingMode=cr[0];break;case R.OPS.setFillColorSpace:{const vt=me.ColorSpace.getCached(cr[0],tt,dt);if(vt){Je.state.fillColorSpace=vt;continue}Vt(Ye.parseColorSpace({cs:cr[0],resources:et,localColorSpaceCache:dt}).then(function(Xt){Xt&&(Je.state.fillColorSpace=Xt)}));return}case R.OPS.setStrokeColorSpace:{const vt=me.ColorSpace.getCached(cr[0],tt,dt);if(vt){Je.state.strokeColorSpace=vt;continue}Vt(Ye.parseColorSpace({cs:cr[0],resources:et,localColorSpaceCache:dt}).then(function(Xt){Xt&&(Je.state.strokeColorSpace=Xt)}));return}case R.OPS.setFillColor:Ft=Je.state.fillColorSpace,cr=Ft.getRgb(cr,0),Ar=R.OPS.setFillRGBColor;break;case R.OPS.setStrokeColor:Ft=Je.state.strokeColorSpace,cr=Ft.getRgb(cr,0),Ar=R.OPS.setStrokeRGBColor;break;case R.OPS.setFillGray:Je.state.fillColorSpace=me.ColorSpace.singletons.gray,cr=me.ColorSpace.singletons.gray.getRgb(cr,0),Ar=R.OPS.setFillRGBColor;break;case R.OPS.setStrokeGray:Je.state.strokeColorSpace=me.ColorSpace.singletons.gray,cr=me.ColorSpace.singletons.gray.getRgb(cr,0),Ar=R.OPS.setStrokeRGBColor;break;case R.OPS.setFillCMYKColor:Je.state.fillColorSpace=me.ColorSpace.singletons.cmyk,cr=me.ColorSpace.singletons.cmyk.getRgb(cr,0),Ar=R.OPS.setFillRGBColor;break;case R.OPS.setStrokeCMYKColor:Je.state.strokeColorSpace=me.ColorSpace.singletons.cmyk,cr=me.ColorSpace.singletons.cmyk.getRgb(cr,0),Ar=R.OPS.setStrokeRGBColor;break;case R.OPS.setFillRGBColor:Je.state.fillColorSpace=me.ColorSpace.singletons.rgb,cr=me.ColorSpace.singletons.rgb.getRgb(cr,0);break;case R.OPS.setStrokeRGBColor:Je.state.strokeColorSpace=me.ColorSpace.singletons.rgb,cr=me.ColorSpace.singletons.rgb.getRgb(cr,0);break;case R.OPS.setFillColorN:if(Ft=Je.state.fillColorSpace,Ft.name==="Pattern"){Vt(Ye.handleColorN(Qe,R.OPS.setFillColorN,cr,Ft,He,et,Le,dt,mt,ut));return}cr=Ft.getRgb(cr,0),Ar=R.OPS.setFillRGBColor;break;case R.OPS.setStrokeColorN:if(Ft=Je.state.strokeColorSpace,Ft.name==="Pattern"){Vt(Ye.handleColorN(Qe,R.OPS.setStrokeColorN,cr,Ft,He,et,Le,dt,mt,ut));return}cr=Ft.getRgb(cr,0),Ar=R.OPS.setStrokeRGBColor;break;case R.OPS.shadingFill:var Dr=et.get("Shading");if(!Dr)throw new R.FormatError("No shading resource found");var kr=Dr.get(cr[0].name);if(!kr)throw new R.FormatError("No shading object found");cr=[Ye.parseShading({shading:kr,resources:et,localColorSpaceCache:dt,localShadingPatternCache:ut})],Ar=R.OPS.shadingFill;break;case R.OPS.setGState:if(er=cr[0]instanceof K.Name,Jt=cr[0].name,er){const vt=ct.getByName(Jt);if(vt){vt.length>0&&Qe.addOp(R.OPS.setGState,[vt]),cr=null;continue}}Vt(new Promise(function(vt,Xt){if(!er)throw new R.FormatError("GState must be referred to by name.");const At=et.get("ExtGState");if(!(At instanceof K.Dict))throw new R.FormatError("ExtGState should be a dictionary.");const zt=At.get(Jt);if(!(zt instanceof K.Dict))throw new R.FormatError("GState should be a dictionary.");Ye.setGState({resources:et,gState:zt,operatorList:Qe,cacheKey:Jt,task:Le,stateManager:Je,localGStateCache:ct,localColorSpaceCache:dt}).then(vt,Xt)}).catch(function(vt){if(!(vt instanceof R.AbortException)){if(Ye.options.ignoreErrors){Ye.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorExtGState}),(0,R.warn)(`getOperatorList - ignoring ExtGState: "${vt}".`);return}throw vt}}));return;case R.OPS.moveTo:case R.OPS.lineTo:case R.OPS.curveTo:case R.OPS.curveTo2:case R.OPS.curveTo3:case R.OPS.closePath:case R.OPS.rectangle:Ye.buildPath(Qe,Ar,cr,ot);continue;case R.OPS.markPoint:case R.OPS.markPointProps:case R.OPS.beginCompat:case R.OPS.endCompat:continue;case R.OPS.beginMarkedContentProps:if(!(cr[0]instanceof K.Name)){(0,R.warn)(`Expected name for beginMarkedContentProps arg0=${cr[0]}`);continue}if(cr[0].name==="OC"){Vt(Ye.parseMarkedContentProps(cr[1],et).then(vt=>{Qe.addOp(R.OPS.beginMarkedContentProps,["OC",vt])}).catch(vt=>{if(!(vt instanceof R.AbortException)){if(Ye.options.ignoreErrors){Ye.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorMarkedContent}),(0,R.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${vt}".`);return}throw vt}}));return}cr=[cr[0].name,cr[1]instanceof K.Dict?cr[1].get("MCID"):null];break;case R.OPS.beginMarkedContent:case R.OPS.endMarkedContent:default:if(cr!==null){for($t=0,Yt=cr.length;$t<Yt&&!(cr[$t]instanceof K.Dict);$t++);if($t<Yt){(0,R.warn)("getOperatorList - ignoring operator: "+Ar);continue}}}Qe.addOp(Ar,cr)}if(Mt){Vt(Ae);return}pt(),Pt()}).catch(wt=>{if(!(wt instanceof R.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorOperatorList}),(0,R.warn)(`getOperatorList - ignoring errors during "${Le.name}" task: "${wt}".`),pt();return}throw wt}})}getTextContent(Ve){let{stream:je,task:Le,resources:et,stateManager:Qe=null,combineTextItems:Ue=!1,includeMarkedContent:$e=!1,sink:Ye,seenStyles:tt=new Set,viewBox:ot}=Ve;et=et||K.Dict.empty,Qe=Qe||new Pe(new we);const st=(0,he.getNormalizedUnicodes)(),dt={items:[],styles:Object.create(null)},ct={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},mt=[" "," "];let ut=0;function rt(vt){const Xt=(ut+1)%2,At=mt[ut]!==" "&&mt[Xt]===" ";return mt[ut]=vt,ut=Xt,At}function He(){mt[0]=mt[1]=" ",ut=0}const Je=.1,St=.03,bt=-.2,pt=.1,wt=.6,Pt=this,Nt=this.xref,Vt=[];let Wt=null;const Mt=new ce.LocalImageCache,$t=new ce.LocalGStateCache,Yt=new Be(je,Nt,Qe);let Ft;function Jt(){const vt=Ft.font,Xt=[Ft.fontSize*Ft.textHScale,0,0,Ft.fontSize,0,Ft.textRise];if(vt.isType3Font&&(Ft.fontSize<=1||vt.isCharBBox)&&!(0,R.isArrayEqual)(Ft.fontMatrix,R.FONT_IDENTITY_MATRIX)){const At=vt.bbox[3]-vt.bbox[1];At>0&&(Xt[3]*=At*Ft.fontMatrix[3])}return R.Util.transform(Ft.ctm,R.Util.transform(Ft.textMatrix,Xt))}function er(){if(ct.initialized)return ct;const vt=Ft.font,Xt=vt.loadedName;tt.has(Xt)||(tt.add(Xt),dt.styles[Xt]={fontFamily:vt.fallbackName,ascent:vt.ascent,descent:vt.descent,vertical:vt.vertical}),ct.fontName=Xt;const At=ct.transform=Jt();vt.vertical?(ct.width=ct.totalWidth=Math.hypot(At[0],At[1]),ct.height=ct.totalHeight=0,ct.vertical=!0):(ct.width=ct.totalWidth=0,ct.height=ct.totalHeight=Math.hypot(At[2],At[3]),ct.vertical=!1);const zt=Math.hypot(Ft.textLineMatrix[0],Ft.textLineMatrix[1]),Br=Math.hypot(Ft.ctm[0],Ft.ctm[1]);return ct.textAdvanceScale=Br*zt,ct.trackingSpaceMin=Ft.fontSize*Je,ct.notASpace=Ft.fontSize*St,ct.negativeSpaceMax=Ft.fontSize*bt,ct.spaceInFlowMin=Ft.fontSize*pt,ct.spaceInFlowMax=Ft.fontSize*wt,ct.hasEOL=!1,ct.initialized=!0,ct}function Bt(){if(!ct.initialized)return;const vt=Math.hypot(Ft.textLineMatrix[0],Ft.textLineMatrix[1]),At=Math.hypot(Ft.ctm[0],Ft.ctm[1])*vt;At!==ct.textAdvanceScale&&(ct.vertical?(ct.totalHeight+=ct.height*ct.textAdvanceScale,ct.height=0):(ct.totalWidth+=ct.width*ct.textAdvanceScale,ct.width=0),ct.textAdvanceScale=At)}function It(vt){const Xt=vt.str.join(""),At=(0,oe.bidi)(Xt,-1,vt.vertical);return{str:At.str,dir:At.dir,width:Math.abs(vt.totalWidth),height:Math.abs(vt.totalHeight),transform:vt.transform,fontName:vt.fontName,hasEOL:vt.hasEOL}}function Dt(vt,Xt){return Pt.loadFont(vt,Xt,et).then(function(At){return At.font.isType3Font?At.loadType3Data(Pt,et,Le).catch(function(){}).then(function(){return At}):At}).then(function(At){Ft.font=At.font,Ft.fontMatrix=At.font.fontMatrix||R.FONT_IDENTITY_MATRIX})}function Zt(vt,Xt,At){const zt=Math.hypot(At[0],At[1]);return[(At[0]*vt+At[1]*Xt)/zt,(At[2]*vt+At[3]*Xt)/zt]}function gr(){const vt=Jt();let Xt=vt[4],At=vt[5];const zt=Xt-ot[0],Br=At-ot[1];if(zt<0||zt>ot[2]||Br<0||Br>ot[3])return!1;if(!Ue||!Ft.font||!ct.prevTransform)return!0;let br=ct.prevTransform[4],Ur=ct.prevTransform[5];if(br===Xt&&Ur===At)return!0;let un=-1;switch(vt[0]&&vt[1]===0&&vt[2]===0?un=vt[0]>0?0:180:vt[1]&&vt[0]===0&&vt[3]===0&&(un=vt[1]>0?90:270),un){case 0:break;case 90:[Xt,At]=[At,Xt],[br,Ur]=[Ur,br];break;case 180:[Xt,At,br,Ur]=[-Xt,-At,-br,-Ur];break;case 270:[Xt,At]=[-At,-Xt],[br,Ur]=[-Ur,-br];break;default:[Xt,At]=Zt(Xt,At,vt),[br,Ur]=Zt(br,Ur,ct.prevTransform)}if(Ft.font.vertical){const Tr=(Ur-At)/ct.textAdvanceScale,jt=Xt-br,Wr=Math.sign(ct.height);return Tr<Wr*ct.negativeSpaceMax?Math.abs(jt)>.5*ct.width?(Dr(),!0):(He(),cr(),!0):Math.abs(jt)>ct.width?(Dr(),!0):(Tr<=Wr*ct.notASpace&&He(),Tr<=Wr*ct.trackingSpaceMin?ct.height+=Tr:kr(Tr,ct.prevTransform,Wr)||(ct.str.length===0?(He(),dt.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(Tr),transform:ct.prevTransform,fontName:ct.fontName,hasEOL:!1})):ct.height+=Tr),!0)}const sr=(Xt-br)/ct.textAdvanceScale,ur=At-Ur,Cr=Math.sign(ct.width);return sr<Cr*ct.negativeSpaceMax?Math.abs(ur)>.5*ct.height?(Dr(),!0):(He(),cr(),!0):Math.abs(ur)>ct.height?(Dr(),!0):(sr<=Cr*ct.notASpace&&He(),sr<=Cr*ct.trackingSpaceMin?ct.width+=sr:kr(sr,ct.prevTransform,Cr)||(ct.str.length===0?(He(),dt.items.push({str:" ",dir:"ltr",width:Math.abs(sr),height:0,transform:ct.prevTransform,fontName:ct.fontName,hasEOL:!1})):ct.width+=sr),!0)}function fr(vt){let{chars:Xt,extraSpacing:At}=vt;const zt=Ft.font;if(!Xt){const Ur=Ft.charSpacing+At;Ur&&(zt.vertical?Ft.translateTextMatrix(0,-Ur):Ft.translateTextMatrix(Ur*Ft.textHScale,0));return}const Br=zt.charsToGlyphs(Xt),br=Ft.fontMatrix[0]*Ft.fontSize;for(let Ur=0,un=Br.length;Ur<un;Ur++){const sr=Br[Ur];if(sr.isInvisibleFormatMark)continue;let ur=Ft.charSpacing+(Ur+1===un?At:0),Cr=sr.width;zt.vertical&&(Cr=sr.vmetric?sr.vmetric[0]:-Cr);let Tr=Cr*br;if(sr.isWhitespace){zt.vertical?(ur+=-Tr+Ft.wordSpacing,Ft.translateTextMatrix(0,-ur)):(ur+=Tr+Ft.wordSpacing,Ft.translateTextMatrix(ur*Ft.textHScale,0)),rt(" ");continue}if(!gr())continue;const jt=er();sr.isZeroWidthDiacritic&&(Tr=0),zt.vertical?(Ft.translateTextMatrix(0,Tr),Tr=Math.abs(Tr),jt.height+=Tr):(Tr*=Ft.textHScale,Ft.translateTextMatrix(Tr,0),jt.width+=Tr),Tr&&(jt.prevTransform=Jt());let Wr=sr.unicode;Wr=st[Wr]||Wr,Wr=(0,he.reverseIfRtl)(Wr),rt(Wr)&&jt.str.push(" "),jt.str.push(Wr),ur&&(zt.vertical?Ft.translateTextMatrix(0,-ur):Ft.translateTextMatrix(ur*Ft.textHScale,0))}}function Dr(){He(),ct.initialized?(ct.hasEOL=!0,cr()):dt.items.push({str:"",dir:"ltr",width:0,height:0,transform:Jt(),fontName:Ft.font.loadedName,hasEOL:!0})}function kr(vt,Xt,At){if(At*ct.spaceInFlowMin<=vt&&vt<=At*ct.spaceInFlowMax)return ct.initialized&&(He(),ct.str.push(" ")),!1;const zt=ct.fontName;let Br=0;return ct.vertical&&(Br=vt,vt=0),cr(),He(),dt.items.push({str:" ",dir:"ltr",width:Math.abs(vt),height:Math.abs(Br),transform:Xt||Jt(),fontName:zt,hasEOL:!1}),!0}function cr(){!ct.initialized||!ct.str||(ct.vertical?ct.totalHeight+=ct.height*ct.textAdvanceScale:ct.totalWidth+=ct.width*ct.textAdvanceScale,dt.items.push(It(ct)),ct.initialized=!1,ct.str.length=0)}function Ar(){let vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Xt=dt.items.length;Xt!==0&&(vt&&Xt<Ge||(Ye.enqueue(dt,Xt),dt.items=[],dt.styles=Object.create(null)))}const yt=new ze;return new Promise(function vt(Xt,At){const zt=function(Tr){Ar(!0),Promise.all([Tr,Ye.ready]).then(function(){try{vt(Xt,At)}catch(jt){At(jt)}},At)};Le.ensureNotTerminated(),yt.reset();const Br={};let br,Ur=[];for(;!(br=yt.check())&&(Ur.length=0,Br.args=Ur,!!Yt.read(Br));){Ft=Qe.state;const Tr=Br.fn;switch(Ur=Br.args,Tr|0){case R.OPS.setFont:var un=Ur[0].name,sr=Ur[1];if(Ft.font&&un===Ft.fontName&&sr===Ft.fontSize)break;cr(),Ft.fontName=un,Ft.fontSize=sr,zt(Dt(un,null));return;case R.OPS.setTextRise:Ft.textRise=Ur[0];break;case R.OPS.setHScale:Ft.textHScale=Ur[0]/100;break;case R.OPS.setLeading:Ft.leading=Ur[0];break;case R.OPS.moveText:Ft.translateTextLineMatrix(Ur[0],Ur[1]),Ft.textMatrix=Ft.textLineMatrix.slice();break;case R.OPS.setLeadingMoveText:Ft.leading=-Ur[1],Ft.translateTextLineMatrix(Ur[0],Ur[1]),Ft.textMatrix=Ft.textLineMatrix.slice();break;case R.OPS.nextLine:Ft.carriageReturn();break;case R.OPS.setTextMatrix:Ft.setTextMatrix(Ur[0],Ur[1],Ur[2],Ur[3],Ur[4],Ur[5]),Ft.setTextLineMatrix(Ur[0],Ur[1],Ur[2],Ur[3],Ur[4],Ur[5]),Bt();break;case R.OPS.setCharSpacing:Ft.charSpacing=Ur[0];break;case R.OPS.setWordSpacing:Ft.wordSpacing=Ur[0];break;case R.OPS.beginText:Ft.textMatrix=R.IDENTITY_MATRIX.slice(),Ft.textLineMatrix=R.IDENTITY_MATRIX.slice();break;case R.OPS.showSpacedText:if(!Qe.state.font){Pt.ensureStateFont(Qe.state);continue}const jt=(Ft.font.vertical?1:-1)*Ft.fontSize/1e3,Wr=Ur[0];for(let Gr=0,Jr=Wr.length;Gr<Jr-1;Gr++){const Xr=Wr[Gr];if(typeof Xr=="string")Vt.push(Xr);else if(typeof Xr=="number"&&Xr!==0){const fn=Vt.join("");Vt.length=0,fr({chars:fn,extraSpacing:Xr*jt})}}const ir=Wr.at(-1);if(typeof ir=="string"&&Vt.push(ir),Vt.length>0){const Gr=Vt.join("");Vt.length=0,fr({chars:Gr,extraSpacing:0})}break;case R.OPS.showText:if(!Qe.state.font){Pt.ensureStateFont(Qe.state);continue}fr({chars:Ur[0],extraSpacing:0});break;case R.OPS.nextLineShowText:if(!Qe.state.font){Pt.ensureStateFont(Qe.state);continue}Ft.carriageReturn(),fr({chars:Ur[0],extraSpacing:0});break;case R.OPS.nextLineSetSpacingShowText:if(!Qe.state.font){Pt.ensureStateFont(Qe.state);continue}Ft.wordSpacing=Ur[0],Ft.charSpacing=Ur[1],Ft.carriageReturn(),fr({chars:Ur[2],extraSpacing:0});break;case R.OPS.paintXObject:cr(),Wt||(Wt=et.get("XObject")||K.Dict.empty);var ur=Ur[0]instanceof K.Name,Cr=Ur[0].name;if(ur&&Mt.getByName(Cr))break;zt(new Promise(function(Gr,Jr){if(!ur)throw new R.FormatError("XObject must be referred to by name.");let Xr=Wt.getRaw(Cr);if(Xr instanceof K.Ref){if(Mt.getByRef(Xr)){Gr();return}if(Pt.globalImageCache.getData(Xr,Pt.pageIndex)){Gr();return}Xr=Nt.fetch(Xr)}if(!(Xr instanceof se.BaseStream))throw new R.FormatError("XObject should be a stream");const fn=Xr.dict.get("Subtype");if(!(fn instanceof K.Name))throw new R.FormatError("XObject should have a Name subtype");if(fn.name!=="Form"){Mt.set(Cr,Xr.dict.objId,!0),Gr();return}const cn=Qe.state.clone(),nn=new Pe(cn),ar=Xr.dict.getArray("Matrix");Array.isArray(ar)&&ar.length===6&&nn.transform(ar),Ar();const xr={enqueueInvoked:!1,enqueue(Lr,Rr){this.enqueueInvoked=!0,Ye.enqueue(Lr,Rr)},get desiredSize(){return Ye.desiredSize},get ready(){return Ye.ready}};Pt.getTextContent({stream:Xr,task:Le,resources:Xr.dict.get("Resources")||et,stateManager:nn,combineTextItems:Ue,includeMarkedContent:$e,sink:xr,seenStyles:tt,viewBox:ot}).then(function(){xr.enqueueInvoked||Mt.set(Cr,Xr.dict.objId,!0),Gr()},Jr)}).catch(function(Gr){if(!(Gr instanceof R.AbortException)){if(Pt.options.ignoreErrors){(0,R.warn)(`getTextContent - ignoring XObject: "${Gr}".`);return}throw Gr}}));return;case R.OPS.setGState:if(ur=Ur[0]instanceof K.Name,Cr=Ur[0].name,ur&&$t.getByName(Cr))break;zt(new Promise(function(Gr,Jr){if(!ur)throw new R.FormatError("GState must be referred to by name.");const Xr=et.get("ExtGState");if(!(Xr instanceof K.Dict))throw new R.FormatError("ExtGState should be a dictionary.");const fn=Xr.get(Cr);if(!(fn instanceof K.Dict))throw new R.FormatError("GState should be a dictionary.");const cn=fn.get("Font");if(!cn){$t.set(Cr,fn.objId,!0),Gr();return}cr(),Ft.fontName=null,Ft.fontSize=cn[1],Dt(null,cn[0]).then(Gr,Jr)}).catch(function(Gr){if(!(Gr instanceof R.AbortException)){if(Pt.options.ignoreErrors){(0,R.warn)(`getTextContent - ignoring ExtGState: "${Gr}".`);return}throw Gr}}));return;case R.OPS.beginMarkedContent:cr(),$e&&dt.items.push({type:"beginMarkedContent",tag:Ur[0]instanceof K.Name?Ur[0].name:null});break;case R.OPS.beginMarkedContentProps:if(cr(),$e){let Gr=null;Ur[1]instanceof K.Dict&&(Gr=Ur[1].get("MCID")),dt.items.push({type:"beginMarkedContentProps",id:Number.isInteger(Gr)?`${Pt.idFactory.getPageObjId()}_mcid${Gr}`:null,tag:Ur[0]instanceof K.Name?Ur[0].name:null})}break;case R.OPS.endMarkedContent:cr(),$e&&dt.items.push({type:"endMarkedContent"});break}if(dt.items.length>=Ye.desiredSize){br=!0;break}}if(br){zt(Ae);return}cr(),Ar(),Xt()}).catch(vt=>{if(!(vt instanceof R.AbortException)){if(this.options.ignoreErrors){(0,R.warn)(`getTextContent - ignoring errors during "${Le.name}" task: "${vt}".`),cr(),Ar();return}throw vt}})}extractDataStructures(Ve,je,Le){const et=this.xref;let Qe;const Ue=this.readToUnicode(Le.toUnicode||Ve.get("ToUnicode")||je.get("ToUnicode"));if(Le.composite){const ot=Ve.get("CIDSystemInfo");ot instanceof K.Dict&&(Le.cidSystemInfo={registry:(0,R.stringToPDFString)(ot.get("Registry")),ordering:(0,R.stringToPDFString)(ot.get("Ordering")),supplement:ot.get("Supplement")});try{const st=Ve.get("CIDToGIDMap");st instanceof se.BaseStream&&(Qe=st.getBytes())}catch(st){if(!this.options.ignoreErrors)throw st;(0,R.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${st}".`)}}const $e=[];let Ye=null,tt;if(Ve.has("Encoding")){if(tt=Ve.get("Encoding"),tt instanceof K.Dict){if(Ye=tt.get("BaseEncoding"),Ye=Ye instanceof K.Name?Ye.name:null,tt.has("Differences")){const ot=tt.get("Differences");let st=0;for(let dt=0,ct=ot.length;dt<ct;dt++){const mt=et.fetchIfRef(ot[dt]);if(typeof mt=="number")st=mt;else if(mt instanceof K.Name)$e[st++]=mt.name;else throw new R.FormatError(`Invalid entry in 'Differences' array: ${mt}`)}}}else if(tt instanceof K.Name)Ye=tt.name;else{const ot="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new R.FormatError(ot);(0,R.warn)(ot)}Ye!=="MacRomanEncoding"&&Ye!=="MacExpertEncoding"&&Ye!=="WinAnsiEncoding"&&(Ye=null)}if(Ye)Le.defaultEncoding=(0,ae.getEncoding)(Ye);else{const ot=!!(Le.flags&e.FontFlags.Symbolic),st=!!(Le.flags&e.FontFlags.Nonsymbolic);tt=ae.StandardEncoding,Le.type==="TrueType"&&!st&&(tt=ae.WinAnsiEncoding),ot&&(tt=ae.MacRomanEncoding,(!Le.file||Le.isInternalFont)&&(/Symbol/i.test(Le.name)?tt=ae.SymbolSetEncoding:/Dingbats|Wingdings/i.test(Le.name)&&(tt=ae.ZapfDingbatsEncoding))),Le.defaultEncoding=tt}return Le.differences=$e,Le.baseEncodingName=Ye,Le.hasEncoding=!!Ye||$e.length>0,Le.dict=Ve,Ue.then(ot=>(Le.toUnicode=ot,this.buildToUnicode(Le))).then(ot=>(Le.toUnicode=ot,Qe&&(Le.cidToGidMap=this.readCidToGidMap(Qe,ot)),Le))}_simpleFontToUnicode(Ve){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,R.assert)(!Ve.composite,"Must be a simple font.");const Le=[],et=Ve.defaultEncoding.slice(),Qe=Ve.baseEncodingName,Ue=Ve.differences;for(const Ye in Ue){const tt=Ue[Ye];tt!==".notdef"&&(et[Ye]=tt)}const $e=(0,ke.getGlyphsUnicode)();for(const Ye in et){let tt=et[Ye];if(tt!==""){if($e[tt]===void 0){let ot=0;switch(tt[0]){case"G":tt.length===3&&(ot=parseInt(tt.substring(1),16));break;case"g":tt.length===5&&(ot=parseInt(tt.substring(1),16));break;case"C":case"c":if(tt.length>=3&&tt.length<=4){const dt=tt.substring(1);if(je){ot=parseInt(dt,16);break}if(ot=+dt,Number.isNaN(ot)&&Number.isInteger(parseInt(dt,16)))return this._simpleFontToUnicode(Ve,!0)}break;default:const st=(0,he.getUnicodeForGlyph)(tt,$e);st!==-1&&(ot=st)}if(ot>0&&ot<=1114111&&Number.isInteger(ot)){if(Qe&&ot===+Ye){const st=(0,ae.getEncoding)(Qe);if(st&&(tt=st[Ye])){Le[Ye]=String.fromCharCode($e[tt]);continue}}Le[Ye]=String.fromCodePoint(ot)}continue}Le[Ye]=String.fromCharCode($e[tt])}}return Le}async buildToUnicode(Ve){if(Ve.hasIncludedToUnicodeMap=!!Ve.toUnicode&&Ve.toUnicode.length>0,Ve.hasIncludedToUnicodeMap)return!Ve.composite&&Ve.hasEncoding&&(Ve.fallbackToUnicode=this._simpleFontToUnicode(Ve)),Ve.toUnicode;if(!Ve.composite)return new X.ToUnicodeMap(this._simpleFontToUnicode(Ve));if(Ve.composite&&(Ve.cMap.builtInCMap&&!(Ve.cMap instanceof U.IdentityCMap)||Ve.cidSystemInfo.registry==="Adobe"&&(Ve.cidSystemInfo.ordering==="GB1"||Ve.cidSystemInfo.ordering==="CNS1"||Ve.cidSystemInfo.ordering==="Japan1"||Ve.cidSystemInfo.ordering==="Korea1"))){const{registry:je,ordering:Le}=Ve.cidSystemInfo,et=K.Name.get(`${je}-${Le}-UCS2`),Qe=await U.CMapFactory.create({encoding:et,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),Ue=[];return Ve.cMap.forEach(function($e,Ye){if(Ye>65535)throw new R.FormatError("Max size of CID is 65,535");const tt=Qe.lookup(Ye);tt&&(Ue[$e]=String.fromCharCode((tt.charCodeAt(0)<<8)+tt.charCodeAt(1)))}),new X.ToUnicodeMap(Ue)}return new X.IdentityToUnicodeMap(Ve.firstChar,Ve.lastChar)}readToUnicode(Ve){return Ve?Ve instanceof K.Name?U.CMapFactory.create({encoding:Ve,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(je){return je instanceof U.IdentityCMap?new X.IdentityToUnicodeMap(0,65535):new X.ToUnicodeMap(je.getMap())}):Ve instanceof se.BaseStream?U.CMapFactory.create({encoding:Ve,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(je){if(je instanceof U.IdentityCMap)return new X.IdentityToUnicodeMap(0,65535);const Le=new Array(je.length);return je.forEach(function(et,Qe){if(typeof Qe=="number"){Le[et]=String.fromCodePoint(Qe);return}const Ue=[];for(let $e=0;$e<Qe.length;$e+=2){const Ye=Qe.charCodeAt($e)<<8|Qe.charCodeAt($e+1);if((Ye&63488)!==55296){Ue.push(Ye);continue}$e+=2;const tt=Qe.charCodeAt($e)<<8|Qe.charCodeAt($e+1);Ue.push(((Ye&1023)<<10)+(tt&1023)+65536)}Le[et]=String.fromCodePoint(...Ue)}),new X.ToUnicodeMap(Le)},je=>{if(je instanceof R.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,R.warn)(`readToUnicode - ignoring ToUnicode data: "${je}".`),null;throw je}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(Ve,je){const Le=[];for(let et=0,Qe=Ve.length;et<Qe;et++){const Ue=Ve[et++]<<8|Ve[et],$e=et>>1;Ue===0&&!je.has($e)||(Le[$e]=Ue)}return Le}extractWidths(Ve,je,Le){const et=this.xref;let Qe=[],Ue=0;const $e=[];let Ye,tt,ot,st,dt,ct,mt,ut;if(Le.composite){if(Ue=Ve.has("DW")?Ve.get("DW"):1e3,ut=Ve.get("W"),ut)for(tt=0,ot=ut.length;tt<ot;tt++)if(ct=et.fetchIfRef(ut[tt++]),mt=et.fetchIfRef(ut[tt]),Array.isArray(mt))for(st=0,dt=mt.length;st<dt;st++)Qe[ct++]=et.fetchIfRef(mt[st]);else{const Je=et.fetchIfRef(ut[++tt]);for(st=ct;st<=mt;st++)Qe[st]=Je}if(Le.vertical){let Je=Ve.getArray("DW2")||[880,-1e3];if(Ye=[Je[1],Ue*.5,Je[0]],Je=Ve.get("W2"),Je)for(tt=0,ot=Je.length;tt<ot;tt++)if(ct=et.fetchIfRef(Je[tt++]),mt=et.fetchIfRef(Je[tt]),Array.isArray(mt))for(st=0,dt=mt.length;st<dt;st++)$e[ct++]=[et.fetchIfRef(mt[st++]),et.fetchIfRef(mt[st++]),et.fetchIfRef(mt[st])];else{const St=[et.fetchIfRef(Je[++tt]),et.fetchIfRef(Je[++tt]),et.fetchIfRef(Je[++tt])];for(st=ct;st<=mt;st++)$e[st]=St}}}else{const Je=Le.firstChar;if(ut=Ve.get("Widths"),ut){for(st=Je,tt=0,ot=ut.length;tt<ot;tt++)Qe[st++]=et.fetchIfRef(ut[tt]);Ue=parseFloat(je.get("MissingWidth"))||0}else{const St=Ve.get("BaseFont");if(St instanceof K.Name){const bt=this.getBaseFontMetrics(St.name);Qe=this.buildCharCodeToWidth(bt.widths,Le),Ue=bt.defaultWidth}}}let rt=!0,He=Ue;for(const Je in Qe){const St=Qe[Je];if(St){if(!He){He=St;continue}if(He!==St){rt=!1;break}}}rt&&(Le.flags|=e.FontFlags.FixedPitch),Le.defaultWidth=Ue,Le.widths=Qe,Le.defaultVMetrics=Ye,Le.vmetrics=$e}isSerifFont(Ve){const je=Ve.split("-")[0];return je in(0,ie.getSerifFonts)()||je.search(/serif/gi)!==-1}getBaseFontMetrics(Ve){let je=0,Le=Object.create(null),et=!1,Ue=(0,ie.getStdFontMap)()[Ve]||Ve;const $e=(0,fe.getMetrics)();Ue in $e||(this.isSerifFont(Ve)?Ue="Times-Roman":Ue="Helvetica");const Ye=$e[Ue];return typeof Ye=="number"?(je=Ye,et=!0):Le=Ye(),{defaultWidth:je,monospace:et,widths:Le}}buildCharCodeToWidth(Ve,je){const Le=Object.create(null),et=je.differences,Qe=je.defaultEncoding;for(let Ue=0;Ue<256;Ue++){if(Ue in et&&Ve[et[Ue]]){Le[Ue]=Ve[et[Ue]];continue}if(Ue in Qe&&Ve[Qe[Ue]]){Le[Ue]=Ve[Qe[Ue]];continue}}return Le}preEvaluateFont(Ve){const je=Ve;let Le=Ve.get("Subtype");if(!(Le instanceof K.Name))throw new R.FormatError("invalid font Subtype");let et=!1,Qe,Ue;if(Le.name==="Type0"){const ot=Ve.get("DescendantFonts");if(!ot)throw new R.FormatError("Descendant fonts are not specified");if(Ve=Array.isArray(ot)?this.xref.fetchIfRef(ot[0]):ot,!(Ve instanceof K.Dict))throw new R.FormatError("Descendant font is not a dictionary.");if(Le=Ve.get("Subtype"),!(Le instanceof K.Name))throw new R.FormatError("invalid font Subtype");et=!0}const $e=Ve.get("FirstChar")||0,Ye=Ve.get("LastChar")||(et?65535:255),tt=Ve.get("FontDescriptor");if(tt){Qe=new ve.MurmurHash3_64;const ot=je.getRaw("Encoding");if(ot instanceof K.Name)Qe.update(ot.name);else if(ot instanceof K.Ref)Qe.update(ot.toString());else if(ot instanceof K.Dict){for(const dt of ot.getRawValues())if(dt instanceof K.Name)Qe.update(dt.name);else if(dt instanceof K.Ref)Qe.update(dt.toString());else if(Array.isArray(dt)){const ct=dt.length,mt=new Array(ct);for(let ut=0;ut<ct;ut++){const rt=dt[ut];rt instanceof K.Name?mt[ut]=rt.name:(typeof rt=="number"||rt instanceof K.Ref)&&(mt[ut]=rt.toString())}Qe.update(mt.join())}}if(Qe.update(`${$e}-${Ye}`),Ue=Ve.get("ToUnicode")||je.get("ToUnicode"),Ue instanceof se.BaseStream){const dt=Ue.str||Ue,ct=dt.buffer?new Uint8Array(dt.buffer.buffer,0,dt.bufferLength):new Uint8Array(dt.bytes.buffer,dt.start,dt.end-dt.start);Qe.update(ct)}else Ue instanceof K.Name&&Qe.update(Ue.name);const st=Ve.get("Widths")||je.get("Widths");if(Array.isArray(st)){const dt=[];for(const ct of st)(typeof ct=="number"||ct instanceof K.Ref)&&dt.push(ct.toString());Qe.update(dt.join())}if(et){Qe.update("compositeFont");const dt=Ve.get("W")||je.get("W");if(Array.isArray(dt)){const mt=[];for(const ut of dt)if(typeof ut=="number"||ut instanceof K.Ref)mt.push(ut.toString());else if(Array.isArray(ut)){const rt=[];for(const He of ut)(typeof He=="number"||He instanceof K.Ref)&&rt.push(He.toString());mt.push(`[${rt.join()}]`)}Qe.update(mt.join())}const ct=Ve.getRaw("CIDToGIDMap")||je.getRaw("CIDToGIDMap");ct instanceof K.Name?Qe.update(ct.name):ct instanceof K.Ref?Qe.update(ct.toString()):ct instanceof se.BaseStream&&Qe.update(ct.peekBytes())}}return{descriptor:tt,dict:Ve,baseDict:je,composite:et,type:Le.name,firstChar:$e,lastChar:Ye,toUnicode:Ue,hash:Qe?Qe.hexdigest():""}}async translateFont(Ve){let{descriptor:je,dict:Le,baseDict:et,composite:Qe,type:Ue,firstChar:$e,lastChar:Ye,toUnicode:tt,cssFontInfo:ot}=Ve;const st=Ue==="Type3";let dt;if(!je)if(st)je=new K.Dict(null),je.set("FontName",K.Name.get(Ue)),je.set("FontBBox",Le.getArray("FontBBox")||[0,0,0,0]);else{let Pt=Le.get("BaseFont");if(!(Pt instanceof K.Name))throw new R.FormatError("Base font is not specified");Pt=Pt.name.replace(/[,_]/g,"-");const Nt=this.getBaseFontMetrics(Pt),Vt=Pt.split("-")[0],Wt=(this.isSerifFont(Vt)?e.FontFlags.Serif:0)|(Nt.monospace?e.FontFlags.FixedPitch:0)|((0,ie.getSymbolsFonts)()[Vt]?e.FontFlags.Symbolic:e.FontFlags.Nonsymbolic);dt={type:Ue,name:Pt,loadedName:et.loadedName,widths:Nt.widths,defaultWidth:Nt.defaultWidth,isSimulatedFlags:!0,flags:Wt,firstChar:$e,lastChar:Ye,toUnicode:tt,xHeight:0,capHeight:0,italicAngle:0,isType3Font:st};const Mt=Le.get("Widths"),$t=(0,ie.getStandardFontName)(Pt);let Yt=null;return $t&&(dt.isStandardFont=!0,Yt=await this.fetchStandardFontData($t),dt.isInternalFont=!!Yt),this.extractDataStructures(Le,Le,dt).then(Ft=>{if(Mt){const Jt=[];let er=$e;for(let Bt=0,It=Mt.length;Bt<It;Bt++)Jt[er++]=this.xref.fetchIfRef(Mt[Bt]);Ft.widths=Jt}else Ft.widths=this.buildCharCodeToWidth(Nt.widths,Ft);return new z.Font(Pt,Yt,Ft)})}let ct=je.get("FontName"),mt=Le.get("BaseFont");if(typeof ct=="string"&&(ct=K.Name.get(ct)),typeof mt=="string"&&(mt=K.Name.get(mt)),!st){const Pt=ct&&ct.name,Nt=mt&&mt.name;Pt!==Nt&&((0,R.info)(`The FontDescriptor's FontName is "${Pt}" but should be the same as the Font's BaseFont "${Nt}".`),Pt&&Nt&&Nt.startsWith(Pt)&&(ct=mt))}if(ct=ct||mt,!(ct instanceof K.Name))throw new R.FormatError("invalid font name");let ut,rt,He,Je,St;try{ut=je.get("FontFile","FontFile2","FontFile3")}catch(Pt){if(!this.options.ignoreErrors)throw Pt;(0,R.warn)(`translateFont - fetching "${ct.name}" font file: "${Pt}".`),ut=new de.NullStream}let bt=!1,pt=!1,wt=null;if(ut){if(ut.dict){const Pt=ut.dict.get("Subtype");Pt instanceof K.Name&&(rt=Pt.name),He=ut.dict.get("Length1"),Je=ut.dict.get("Length2"),St=ut.dict.get("Length3")}}else if(ot){const Pt=(0,W.getXfaFontName)(ct.name);Pt&&(ot.fontFamily=`${ot.fontFamily}-PdfJS-XFA`,ot.metrics=Pt.metrics||null,wt=Pt.factors||null,ut=await this.fetchStandardFontData(Pt.name),pt=!!ut,et=Le=(0,W.getXfaFontDict)(ct.name),Qe=!0)}else if(!st){const Pt=(0,ie.getStandardFontName)(ct.name);Pt&&(bt=!0,ut=await this.fetchStandardFontData(Pt),pt=!!ut)}if(dt={type:Ue,name:ct.name,subtype:rt,file:ut,length1:He,length2:Je,length3:St,isStandardFont:bt,isInternalFont:pt,loadedName:et.loadedName,composite:Qe,fixedPitch:!1,fontMatrix:Le.getArray("FontMatrix")||R.FONT_IDENTITY_MATRIX,firstChar:$e,lastChar:Ye,toUnicode:tt,bbox:je.getArray("FontBBox")||Le.getArray("FontBBox"),ascent:je.get("Ascent"),descent:je.get("Descent"),xHeight:je.get("XHeight")||0,capHeight:je.get("CapHeight")||0,flags:je.get("Flags"),italicAngle:je.get("ItalicAngle")||0,isType3Font:st,cssFontInfo:ot,scaleFactors:wt},Qe){const Pt=et.get("Encoding");Pt instanceof K.Name&&(dt.cidEncoding=Pt.name);const Nt=await U.CMapFactory.create({encoding:Pt,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});dt.cMap=Nt,dt.vertical=dt.cMap.vertical}return this.extractDataStructures(Le,et,dt).then(Pt=>(this.extractWidths(Le,je,Pt),new z.Font(ct.name,ut,Pt)))}static buildFontPaths(Ve,je,Le,et){function Qe(Ue){const $e=`${Ve.loadedName}_path_${Ue}`;try{if(Ve.renderer.hasBuiltPath(Ue))return;Le.send("commonobj",[$e,"FontPath",Ve.renderer.getPathJs(Ue)])}catch(Ye){if(et.ignoreErrors){Le.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.errorFontBuildPath}),(0,R.warn)(`buildFontPaths - ignoring ${$e} glyph: "${Ye}".`);return}throw Ye}}for(const Ue of je){Qe(Ue.fontChar);const $e=Ue.accent;$e&&$e.fontChar&&Qe($e.fontChar)}}static get fallbackFontDict(){const Ve=new K.Dict;return Ve.set("BaseFont",K.Name.get("PDFJS-FallbackFont")),Ve.set("Type",K.Name.get("FallbackType")),Ve.set("Subtype",K.Name.get("FallbackType")),Ve.set("Encoding",K.Name.get("WinAnsiEncoding")),(0,R.shadow)(this,"fallbackFontDict",Ve)}}D.PartialEvaluator=Te;class Fe{constructor(Ve){let{loadedName:je,font:Le,dict:et,evaluatorOptions:Qe}=Ve;this.loadedName=je,this.font=Le,this.dict=et,this._evaluatorOptions=Qe||pe,this.type3Loaded=null,this.type3Dependencies=Le.isType3Font?new Set:null,this.sent=!1}send(Ve){this.sent||(this.sent=!0,Ve.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(Ve){this.font.data&&(this.font.disableFontFace=!0,Te.buildFontPaths(this.font,this.font.glyphCacheValues,Ve,this._evaluatorOptions))}loadType3Data(Ve,je,Le){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const et=Ve.clone({ignoreErrors:!1});et.parsingType3Font=!0;const Qe=new K.RefSet(Ve.type3FontRefs);this.dict.objId&&!Qe.has(this.dict.objId)&&Qe.put(this.dict.objId),et.type3FontRefs=Qe;const Ue=this.font,$e=this.type3Dependencies;let Ye=Promise.resolve();const tt=this.dict.get("CharProcs"),ot=this.dict.get("Resources")||je,st=Object.create(null),dt=R.Util.normalizeRect(Ue.bbox||[0,0,0,0]),ct=dt[2]-dt[0],mt=dt[3]-dt[1],ut=Math.hypot(ct,mt);for(const rt of tt.getKeys())Ye=Ye.then(()=>{const He=tt.get(rt),Je=new ye.OperatorList;return et.getOperatorList({stream:He,task:Le,resources:ot,operatorList:Je}).then(()=>{Je.fnArray[0]===R.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(Je,ut),st[rt]=Je.getIR();for(const St of Je.dependencies)$e.add(St)}).catch(function(St){(0,R.warn)(`Type3 font resource "${rt}" is not available.`);const bt=new ye.OperatorList;st[rt]=bt.getIR()})});return this.type3Loaded=Ye.then(()=>{Ue.charProcOperatorList=st,this._bbox&&(Ue.isCharBBox=!0,Ue.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(Ve){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN;const Le=R.Util.normalizeRect(Ve.argsArray[0].slice(2)),et=Le[2]-Le[0],Qe=Le[3]-Le[1],Ue=Math.hypot(et,Qe);et===0||Qe===0?(Ve.fnArray.splice(0,1),Ve.argsArray.splice(0,1)):(je===0||Math.round(Ue/je)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],Le[0]),this._bbox[1]=Math.min(this._bbox[1],Le[1]),this._bbox[2]=Math.max(this._bbox[2],Le[2]),this._bbox[3]=Math.max(this._bbox[3],Le[3]));let $e=0,Ye=Ve.length;for(;$e<Ye;){switch(Ve.fnArray[$e]){case R.OPS.setCharWidthAndBounds:break;case R.OPS.setStrokeColorSpace:case R.OPS.setFillColorSpace:case R.OPS.setStrokeColor:case R.OPS.setStrokeColorN:case R.OPS.setFillColor:case R.OPS.setFillColorN:case R.OPS.setStrokeGray:case R.OPS.setFillGray:case R.OPS.setStrokeRGBColor:case R.OPS.setFillRGBColor:case R.OPS.setStrokeCMYKColor:case R.OPS.setFillCMYKColor:case R.OPS.shadingFill:case R.OPS.setRenderingIntent:Ve.fnArray.splice($e,1),Ve.argsArray.splice($e,1),Ye--;continue;case R.OPS.setGState:const[tt]=Ve.argsArray[$e];let ot=0,st=tt.length;for(;ot<st;){const[dt]=tt[ot];switch(dt){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":tt.splice(ot,1),st--;continue}ot++}break}$e++}}}class Pe{constructor(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Ie;this.state=Ve,this.stateStack=[]}save(){const Ve=this.state;this.stateStack.push(this.state),this.state=Ve.clone()}restore(){const Ve=this.stateStack.pop();Ve&&(this.state=Ve)}transform(Ve){this.state.ctm=R.Util.transform(this.state.ctm,Ve)}}class we{constructor(){this.ctm=new Float32Array(R.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=R.FONT_IDENTITY_MATRIX,this.textMatrix=R.IDENTITY_MATRIX.slice(),this.textLineMatrix=R.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(Ve,je,Le,et,Qe,Ue){const $e=this.textMatrix;$e[0]=Ve,$e[1]=je,$e[2]=Le,$e[3]=et,$e[4]=Qe,$e[5]=Ue}setTextLineMatrix(Ve,je,Le,et,Qe,Ue){const $e=this.textLineMatrix;$e[0]=Ve,$e[1]=je,$e[2]=Le,$e[3]=et,$e[4]=Qe,$e[5]=Ue}translateTextMatrix(Ve,je){const Le=this.textMatrix;Le[4]=Le[0]*Ve+Le[2]*je+Le[4],Le[5]=Le[1]*Ve+Le[3]*je+Le[5]}translateTextLineMatrix(Ve,je){const Le=this.textLineMatrix;Le[4]=Le[0]*Ve+Le[2]*je+Le[4],Le[5]=Le[1]*Ve+Le[3]*je+Le[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const Ve=Object.create(this);return Ve.textMatrix=this.textMatrix.slice(),Ve.textLineMatrix=this.textLineMatrix.slice(),Ve.fontMatrix=this.fontMatrix.slice(),Ve}}class Ie{constructor(){this.ctm=new Float32Array(R.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=R.TextRenderingMode.FILL,this.fillColorSpace=me.ColorSpace.singletons.gray,this.strokeColorSpace=me.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class Be{static get opMap(){const Ve=(0,xe.getLookupTableFactory)(function(je){je.w={id:R.OPS.setLineWidth,numArgs:1,variableArgs:!1},je.J={id:R.OPS.setLineCap,numArgs:1,variableArgs:!1},je.j={id:R.OPS.setLineJoin,numArgs:1,variableArgs:!1},je.M={id:R.OPS.setMiterLimit,numArgs:1,variableArgs:!1},je.d={id:R.OPS.setDash,numArgs:2,variableArgs:!1},je.ri={id:R.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},je.i={id:R.OPS.setFlatness,numArgs:1,variableArgs:!1},je.gs={id:R.OPS.setGState,numArgs:1,variableArgs:!1},je.q={id:R.OPS.save,numArgs:0,variableArgs:!1},je.Q={id:R.OPS.restore,numArgs:0,variableArgs:!1},je.cm={id:R.OPS.transform,numArgs:6,variableArgs:!1},je.m={id:R.OPS.moveTo,numArgs:2,variableArgs:!1},je.l={id:R.OPS.lineTo,numArgs:2,variableArgs:!1},je.c={id:R.OPS.curveTo,numArgs:6,variableArgs:!1},je.v={id:R.OPS.curveTo2,numArgs:4,variableArgs:!1},je.y={id:R.OPS.curveTo3,numArgs:4,variableArgs:!1},je.h={id:R.OPS.closePath,numArgs:0,variableArgs:!1},je.re={id:R.OPS.rectangle,numArgs:4,variableArgs:!1},je.S={id:R.OPS.stroke,numArgs:0,variableArgs:!1},je.s={id:R.OPS.closeStroke,numArgs:0,variableArgs:!1},je.f={id:R.OPS.fill,numArgs:0,variableArgs:!1},je.F={id:R.OPS.fill,numArgs:0,variableArgs:!1},je["f*"]={id:R.OPS.eoFill,numArgs:0,variableArgs:!1},je.B={id:R.OPS.fillStroke,numArgs:0,variableArgs:!1},je["B*"]={id:R.OPS.eoFillStroke,numArgs:0,variableArgs:!1},je.b={id:R.OPS.closeFillStroke,numArgs:0,variableArgs:!1},je["b*"]={id:R.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},je.n={id:R.OPS.endPath,numArgs:0,variableArgs:!1},je.W={id:R.OPS.clip,numArgs:0,variableArgs:!1},je["W*"]={id:R.OPS.eoClip,numArgs:0,variableArgs:!1},je.BT={id:R.OPS.beginText,numArgs:0,variableArgs:!1},je.ET={id:R.OPS.endText,numArgs:0,variableArgs:!1},je.Tc={id:R.OPS.setCharSpacing,numArgs:1,variableArgs:!1},je.Tw={id:R.OPS.setWordSpacing,numArgs:1,variableArgs:!1},je.Tz={id:R.OPS.setHScale,numArgs:1,variableArgs:!1},je.TL={id:R.OPS.setLeading,numArgs:1,variableArgs:!1},je.Tf={id:R.OPS.setFont,numArgs:2,variableArgs:!1},je.Tr={id:R.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},je.Ts={id:R.OPS.setTextRise,numArgs:1,variableArgs:!1},je.Td={id:R.OPS.moveText,numArgs:2,variableArgs:!1},je.TD={id:R.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},je.Tm={id:R.OPS.setTextMatrix,numArgs:6,variableArgs:!1},je["T*"]={id:R.OPS.nextLine,numArgs:0,variableArgs:!1},je.Tj={id:R.OPS.showText,numArgs:1,variableArgs:!1},je.TJ={id:R.OPS.showSpacedText,numArgs:1,variableArgs:!1},je["'"]={id:R.OPS.nextLineShowText,numArgs:1,variableArgs:!1},je['"']={id:R.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},je.d0={id:R.OPS.setCharWidth,numArgs:2,variableArgs:!1},je.d1={id:R.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},je.CS={id:R.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},je.cs={id:R.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},je.SC={id:R.OPS.setStrokeColor,numArgs:4,variableArgs:!0},je.SCN={id:R.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},je.sc={id:R.OPS.setFillColor,numArgs:4,variableArgs:!0},je.scn={id:R.OPS.setFillColorN,numArgs:33,variableArgs:!0},je.G={id:R.OPS.setStrokeGray,numArgs:1,variableArgs:!1},je.g={id:R.OPS.setFillGray,numArgs:1,variableArgs:!1},je.RG={id:R.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},je.rg={id:R.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},je.K={id:R.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},je.k={id:R.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},je.sh={id:R.OPS.shadingFill,numArgs:1,variableArgs:!1},je.BI={id:R.OPS.beginInlineImage,numArgs:0,variableArgs:!1},je.ID={id:R.OPS.beginImageData,numArgs:0,variableArgs:!1},je.EI={id:R.OPS.endInlineImage,numArgs:1,variableArgs:!1},je.Do={id:R.OPS.paintXObject,numArgs:1,variableArgs:!1},je.MP={id:R.OPS.markPoint,numArgs:1,variableArgs:!1},je.DP={id:R.OPS.markPointProps,numArgs:2,variableArgs:!1},je.BMC={id:R.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},je.BDC={id:R.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},je.EMC={id:R.OPS.endMarkedContent,numArgs:0,variableArgs:!1},je.BX={id:R.OPS.beginCompat,numArgs:0,variableArgs:!1},je.EX={id:R.OPS.endCompat,numArgs:0,variableArgs:!1},je.BM=null,je.BD=null,je.true=null,je.fa=null,je.fal=null,je.fals=null,je.false=null,je.nu=null,je.nul=null,je.null=null});return(0,R.shadow)(this,"opMap",Ve())}static get MAX_INVALID_PATH_OPS(){return(0,R.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(Ve,je){let Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Pe;this.parser=new Q.Parser({lexer:new Q.Lexer(Ve,Be.opMap),xref:je}),this.stateManager=Le,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(Ve){let je=Ve.args;for(;;){const Le=this.parser.getObj();if(Le instanceof K.Cmd){const et=Le.cmd,Qe=Be.opMap[et];if(!Qe){(0,R.warn)(`Unknown command "${et}".`);continue}const Ue=Qe.id,$e=Qe.numArgs;let Ye=je!==null?je.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=Ue>=R.OPS.moveTo&&Ue<=R.OPS.endPath,Qe.variableArgs)Ye>$e&&(0,R.info)(`Command ${et}: expected [0, ${$e}] args, but received ${Ye} args.`);else{if(Ye!==$e){const tt=this.nonProcessedArgs;for(;Ye>$e;)tt.push(je.shift()),Ye--;for(;Ye<$e&&tt.length!==0;)je===null&&(je=[]),je.unshift(tt.pop()),Ye++}if(Ye<$e){const tt=`command ${et}: expected ${$e} args, but received ${Ye} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>Be.MAX_INVALID_PATH_OPS)throw new R.FormatError(`Invalid ${tt}`);(0,R.warn)(`Skipping ${tt}`),je!==null&&(je.length=0);continue}}return this.preprocessCommand(Ue,je),Ve.fn=Ue,Ve.args=je,!0}if(Le===K.EOF)return!1;if(Le!==null&&(je===null&&(je=[]),je.push(Le),je.length>33))throw new R.FormatError("Too many arguments")}}preprocessCommand(Ve,je){switch(Ve|0){case R.OPS.save:this.stateManager.save();break;case R.OPS.restore:this.stateManager.restore();break;case R.OPS.transform:this.stateManager.transform(je);break}}}D.EvaluatorPreprocessor=Be},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.IdentityCMap=D.CMapFactory=D.CMap=void 0;var R=B(2),U=B(130),K=B(132),z=B(142),e=B(131),ae=B(135);const ie=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],he=2**24-1;class J{constructor(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=ce}addCodespaceRange(ce,de,se){this.codespaceRanges[ce-1].push(de,se),this.numCodespaceRanges++}mapCidRange(ce,de,se){if(de-ce>he)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;ce<=de;)this._map[ce++]=se++}mapBfRange(ce,de,se){if(de-ce>he)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const oe=se.length-1;for(;ce<=de;){this._map[ce++]=se;const me=se.charCodeAt(oe)+1;if(me>255){se=se.substring(0,oe-1)+String.fromCharCode(se.charCodeAt(oe-1)+1)+"\0";continue}se=se.substring(0,oe)+String.fromCharCode(me)}}mapBfRangeToArray(ce,de,se){if(de-ce>he)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const oe=se.length;let me=0;for(;ce<=de&&me<oe;)this._map[ce]=se[me++],++ce}mapOne(ce,de){this._map[ce]=de}lookup(ce){return this._map[ce]}contains(ce){return this._map[ce]!==void 0}forEach(ce){const de=this._map,se=de.length;if(se<=65536)for(let oe=0;oe<se;oe++)de[oe]!==void 0&&ce(oe,de[oe]);else for(const oe in de)ce(oe,de[oe])}charCodeOf(ce){const de=this._map;if(de.length<=65536)return de.indexOf(ce);for(const se in de)if(de[se]===ce)return se|0;return-1}getMap(){return this._map}readCharCode(ce,de,se){let oe=0;const me=this.codespaceRanges;for(let Ee=0,ke=me.length;Ee<ke;Ee++){oe=(oe<<8|ce.charCodeAt(de+Ee))>>>0;const xe=me[Ee];for(let fe=0,ve=xe.length;fe<ve;){const ye=xe[fe++],Ce=xe[fe++];if(oe>=ye&&oe<=Ce){se.charcode=oe,se.length=Ee+1;return}}}se.charcode=0,se.length=1}getCharCodeLength(ce){const de=this.codespaceRanges;for(let se=0,oe=de.length;se<oe;se++){const me=de[se];for(let Ee=0,ke=me.length;Ee<ke;){const xe=me[Ee++],fe=me[Ee++];if(ce>=xe&&ce<=fe)return se+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")||this._map.length!==65536)return!1;for(let ce=0;ce<65536;ce++)if(this._map[ce]!==ce)return!1;return!0}}D.CMap=J;class W extends J{constructor(ce,de){super(),this.vertical=ce,this.addCodespaceRange(de,0,65535)}mapCidRange(ce,de,se){(0,R.unreachable)("should not call mapCidRange")}mapBfRange(ce,de,se){(0,R.unreachable)("should not call mapBfRange")}mapBfRangeToArray(ce,de,se){(0,R.unreachable)("should not call mapBfRangeToArray")}mapOne(ce,de){(0,R.unreachable)("should not call mapCidOne")}lookup(ce){return Number.isInteger(ce)&&ce<=65535?ce:void 0}contains(ce){return Number.isInteger(ce)&&ce<=65535}forEach(ce){for(let de=0;de<=65535;de++)ce(de,de)}charCodeOf(ce){return Number.isInteger(ce)&&ce<=65535?ce:-1}getMap(){const ce=new Array(65536);for(let de=0;de<=65535;de++)ce[de]=de;return ce}get length(){return 65536}get isIdentityCMap(){(0,R.unreachable)("should not access .isIdentityCMap")}}D.IdentityCMap=W;const X=function(){function ce(fe,ve){let ye=0;for(let Ce=0;Ce<=ve;Ce++)ye=ye<<8|fe[Ce];return ye>>>0}function de(fe,ve){return ve===1?String.fromCharCode(fe[0],fe[1]):ve===3?String.fromCharCode(fe[0],fe[1],fe[2],fe[3]):String.fromCharCode.apply(null,fe.subarray(0,ve+1))}function se(fe,ve,ye){let Ce=0;for(let pe=ye;pe>=0;pe--)Ce+=fe[pe]+ve[pe],fe[pe]=Ce&255,Ce>>=8}function oe(fe,ve){let ye=1;for(let Ce=ve;Ce>=0&&ye>0;Ce--)ye+=fe[Ce],fe[Ce]=ye&255,ye>>=8}const me=16,Ee=19;class ke{constructor(ve){this.buffer=ve,this.pos=0,this.end=ve.length,this.tmpBuf=new Uint8Array(Ee)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let ve=0,ye;do{const Ce=this.readByte();if(Ce<0)throw new R.FormatError("unexpected EOF in bcmap");ye=!(Ce&128),ve=ve<<7|Ce&127}while(!ye);return ve}readSigned(){const ve=this.readNumber();return ve&1?~(ve>>>1):ve>>>1}readHex(ve,ye){ve.set(this.buffer.subarray(this.pos,this.pos+ye+1)),this.pos+=ye+1}readHexNumber(ve,ye){let Ce;const pe=this.tmpBuf;let _e=0;do{const Ze=this.readByte();if(Ze<0)throw new R.FormatError("unexpected EOF in bcmap");Ce=!(Ze&128),pe[_e++]=Ze&127}while(!Ce);let Ge=ye,Ae=0,Ne=0;for(;Ge>=0;){for(;Ne<8&&pe.length>0;)Ae|=pe[--_e]<<Ne,Ne+=7;ve[Ge]=Ae&255,Ge--,Ae>>=8,Ne-=8}}readHexSigned(ve,ye){this.readHexNumber(ve,ye);const Ce=ve[ye]&1?255:0;let pe=0;for(let _e=0;_e<=ye;_e++)pe=(pe&1)<<8|ve[_e],ve[_e]=pe>>1^Ce}readString(){const ve=this.readNumber();let ye="";for(let Ce=0;Ce<ve;Ce++)ye+=String.fromCharCode(this.readNumber());return ye}}class xe{async process(ve,ye,Ce){const pe=new ke(ve),_e=pe.readByte();ye.vertical=!!(_e&1);let Ge=null;const Ae=new Uint8Array(me),Ne=new Uint8Array(me),Ze=new Uint8Array(me),ze=new Uint8Array(me),Te=new Uint8Array(me);let Fe,Pe;for(;(Pe=pe.readByte())>=0;){const we=Pe>>5;if(we===7){switch(Pe&31){case 0:pe.readString();break;case 1:Ge=pe.readString();break}continue}const Ie=!!(Pe&16),Be=Pe&15;if(Be+1>me)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const Ke=1,Ve=pe.readNumber();switch(we){case 0:pe.readHex(Ae,Be),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),ye.addCodespaceRange(Be+1,ce(Ae,Be),ce(Ne,Be));for(let je=1;je<Ve;je++)oe(Ne,Be),pe.readHexNumber(Ae,Be),se(Ae,Ne,Be),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),ye.addCodespaceRange(Be+1,ce(Ae,Be),ce(Ne,Be));break;case 1:pe.readHex(Ae,Be),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),pe.readNumber();for(let je=1;je<Ve;je++)oe(Ne,Be),pe.readHexNumber(Ae,Be),se(Ae,Ne,Be),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),pe.readNumber();break;case 2:pe.readHex(Ze,Be),Fe=pe.readNumber(),ye.mapOne(ce(Ze,Be),Fe);for(let je=1;je<Ve;je++)oe(Ze,Be),Ie||(pe.readHexNumber(Te,Be),se(Ze,Te,Be)),Fe=pe.readSigned()+(Fe+1),ye.mapOne(ce(Ze,Be),Fe);break;case 3:pe.readHex(Ae,Be),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),Fe=pe.readNumber(),ye.mapCidRange(ce(Ae,Be),ce(Ne,Be),Fe);for(let je=1;je<Ve;je++)oe(Ne,Be),Ie?Ae.set(Ne):(pe.readHexNumber(Ae,Be),se(Ae,Ne,Be)),pe.readHexNumber(Ne,Be),se(Ne,Ae,Be),Fe=pe.readNumber(),ye.mapCidRange(ce(Ae,Be),ce(Ne,Be),Fe);break;case 4:pe.readHex(Ze,Ke),pe.readHex(ze,Be),ye.mapOne(ce(Ze,Ke),de(ze,Be));for(let je=1;je<Ve;je++)oe(Ze,Ke),Ie||(pe.readHexNumber(Te,Ke),se(Ze,Te,Ke)),oe(ze,Be),pe.readHexSigned(Te,Be),se(ze,Te,Be),ye.mapOne(ce(Ze,Ke),de(ze,Be));break;case 5:pe.readHex(Ae,Ke),pe.readHexNumber(Ne,Ke),se(Ne,Ae,Ke),pe.readHex(ze,Be),ye.mapBfRange(ce(Ae,Ke),ce(Ne,Ke),de(ze,Be));for(let je=1;je<Ve;je++)oe(Ne,Ke),Ie?Ae.set(Ne):(pe.readHexNumber(Ae,Ke),se(Ae,Ne,Ke)),pe.readHexNumber(Ne,Ke),se(Ne,Ae,Ke),pe.readHex(ze,Be),ye.mapBfRange(ce(Ae,Ke),ce(Ne,Ke),de(ze,Be));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${we}`)}}return Ge?Ce(Ge):ye}}return xe}(),L=function(){function ce(_e){let Ge=0;for(let Ae=0;Ae<_e.length;Ae++)Ge=Ge<<8|_e.charCodeAt(Ae);return Ge>>>0}function de(_e){if(typeof _e!="string")throw new R.FormatError("Malformed CMap: expected string.")}function se(_e){if(!Number.isInteger(_e))throw new R.FormatError("Malformed CMap: expected int.")}function oe(_e,Ge){for(;;){let Ae=Ge.getObj();if(Ae===U.EOF)break;if((0,U.isCmd)(Ae,"endbfchar"))return;de(Ae);const Ne=ce(Ae);Ae=Ge.getObj(),de(Ae);const Ze=Ae;_e.mapOne(Ne,Ze)}}function me(_e,Ge){for(;;){let Ae=Ge.getObj();if(Ae===U.EOF)break;if((0,U.isCmd)(Ae,"endbfrange"))return;de(Ae);const Ne=ce(Ae);Ae=Ge.getObj(),de(Ae);const Ze=ce(Ae);if(Ae=Ge.getObj(),Number.isInteger(Ae)||typeof Ae=="string"){const ze=Number.isInteger(Ae)?String.fromCharCode(Ae):Ae;_e.mapBfRange(Ne,Ze,ze)}else if((0,U.isCmd)(Ae,"[")){Ae=Ge.getObj();const ze=[];for(;!(0,U.isCmd)(Ae,"]")&&Ae!==U.EOF;)ze.push(Ae),Ae=Ge.getObj();_e.mapBfRangeToArray(Ne,Ze,ze)}else break}throw new R.FormatError("Invalid bf range.")}function Ee(_e,Ge){for(;;){let Ae=Ge.getObj();if(Ae===U.EOF)break;if((0,U.isCmd)(Ae,"endcidchar"))return;de(Ae);const Ne=ce(Ae);Ae=Ge.getObj(),se(Ae);const Ze=Ae;_e.mapOne(Ne,Ze)}}function ke(_e,Ge){for(;;){let Ae=Ge.getObj();if(Ae===U.EOF)break;if((0,U.isCmd)(Ae,"endcidrange"))return;de(Ae);const Ne=ce(Ae);Ae=Ge.getObj(),de(Ae);const Ze=ce(Ae);Ae=Ge.getObj(),se(Ae);const ze=Ae;_e.mapCidRange(Ne,Ze,ze)}}function xe(_e,Ge){for(;;){let Ae=Ge.getObj();if(Ae===U.EOF)break;if((0,U.isCmd)(Ae,"endcodespacerange"))return;if(typeof Ae!="string")break;const Ne=ce(Ae);if(Ae=Ge.getObj(),typeof Ae!="string")break;const Ze=ce(Ae);_e.addCodespaceRange(Ae.length,Ne,Ze)}throw new R.FormatError("Invalid codespace range.")}function fe(_e,Ge){const Ae=Ge.getObj();Number.isInteger(Ae)&&(_e.vertical=!!Ae)}function ve(_e,Ge){const Ae=Ge.getObj();Ae instanceof U.Name&&(_e.name=Ae.name)}async function ye(_e,Ge,Ae,Ne){let Ze,ze;e:for(;;)try{const Te=Ge.getObj();if(Te===U.EOF)break;if(Te instanceof U.Name)Te.name==="WMode"?fe(_e,Ge):Te.name==="CMapName"&&ve(_e,Ge),Ze=Te;else if(Te instanceof U.Cmd)switch(Te.cmd){case"endcmap":break e;case"usecmap":Ze instanceof U.Name&&(ze=Ze.name);break;case"begincodespacerange":xe(_e,Ge);break;case"beginbfchar":oe(_e,Ge);break;case"begincidchar":Ee(_e,Ge);break;case"beginbfrange":me(_e,Ge);break;case"begincidrange":ke(_e,Ge);break}}catch(Te){if(Te instanceof e.MissingDataException)throw Te;(0,R.warn)("Invalid cMap data: "+Te);continue}return!Ne&&ze&&(Ne=ze),Ne?Ce(_e,Ae,Ne):_e}async function Ce(_e,Ge,Ae){if(_e.useCMap=await pe(Ae,Ge),_e.numCodespaceRanges===0){const Ne=_e.useCMap.codespaceRanges;for(let Ze=0;Ze<Ne.length;Ze++)_e.codespaceRanges[Ze]=Ne[Ze].slice();_e.numCodespaceRanges=_e.useCMap.numCodespaceRanges}return _e.useCMap.forEach(function(Ne,Ze){_e.contains(Ne)||_e.mapOne(Ne,_e.useCMap.lookup(Ne))}),_e}async function pe(_e,Ge){if(_e==="Identity-H")return new W(!1,2);if(_e==="Identity-V")return new W(!0,2);if(!ie.includes(_e))throw new Error("Unknown CMap name: "+_e);if(!Ge)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:Ae,compressionType:Ne}=await Ge(_e),Ze=new J(!0);if(Ne===R.CMapCompressionType.BINARY)return new X().process(Ae,Ze,ze=>Ce(Ze,Ge,ze));if(Ne===R.CMapCompressionType.NONE){const ze=new z.Lexer(new ae.Stream(Ae));return ye(Ze,ze,Ge,null)}throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.")}return{async create(_e){const Ge=_e.encoding,Ae=_e.fetchBuiltInCMap,Ne=_e.useCMap;if(Ge instanceof U.Name)return pe(Ge.name,Ae);if(Ge instanceof K.BaseStream){const Ze=await ye(new J,new z.Lexer(Ge),Ae,Ne);return Ze.isIdentityCMap?pe(Ze.name,Ae):Ze}throw new Error("Encoding required.")}}}();D.CMapFactory=L},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Parser=D.Linearization=D.Lexer=void 0;var R=B(2),U=B(130),K=B(131),z=B(143),e=B(145),ae=B(146),ie=B(148),he=B(149),J=B(152),W=B(154),X=B(156),L=B(135),Q=B(157),ce=B(158);const de=1e3,se=5552;function oe(ve){const ye=ve.length;let Ce=1,pe=0;for(let _e=0;_e<ye;++_e)Ce+=ve[_e]&255,pe+=Ce;return pe%65521<<16|Ce%65521}class me{constructor(ye){let{lexer:Ce,xref:pe,allowStreams:_e=!1,recoveryMode:Ge=!1}=ye;this.lexer=Ce,this.xref=pe,this.allowStreams=_e,this.recoveryMode=Ge,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof U.Cmd&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(ye){if(ye instanceof K.MissingDataException)throw ye;return!1}}getObj(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const Ce=this.buf1;if(this.shift(),Ce instanceof U.Cmd)switch(Ce.cmd){case"BI":return this.makeInlineImage(ye);case"[":const pe=[];for(;!(0,U.isCmd)(this.buf1,"]")&&this.buf1!==U.EOF;)pe.push(this.getObj(ye));if(this.buf1===U.EOF){if(this.recoveryMode)return pe;throw new K.ParserEOFException("End of file inside array.")}return this.shift(),pe;case"<<":const _e=new U.Dict(this.xref);for(;!(0,U.isCmd)(this.buf1,">>")&&this.buf1!==U.EOF;){if(!(this.buf1 instanceof U.Name)){(0,R.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const Ge=this.buf1.name;if(this.shift(),this.buf1===U.EOF)break;_e.set(Ge,this.getObj(ye))}if(this.buf1===U.EOF){if(this.recoveryMode)return _e;throw new K.ParserEOFException("End of file inside dictionary.")}return(0,U.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(_e,ye):_e:(this.shift(),_e);default:return Ce}if(Number.isInteger(Ce)){if(Number.isInteger(this.buf1)&&(0,U.isCmd)(this.buf2,"R")){const pe=U.Ref.get(Ce,this.buf1);return this.shift(),this.shift(),pe}return Ce}return typeof Ce=="string"&&ye?ye.decryptString(Ce):Ce}findDefaultInlineStreamEnd(ye){const Ze=this.lexer,ze=ye.pos,Te=10;let Fe=0,Pe,we;for(;(Pe=ye.getByte())!==-1;)if(Fe===0)Fe=Pe===69?1:0;else if(Fe===1)Fe=Pe===73?2:0;else if((0,R.assert)(Fe===2,"findDefaultInlineStreamEnd - invalid state."),Pe===32||Pe===10||Pe===13){we=ye.pos;const Be=ye.peekBytes(Te);for(let Ke=0,Ve=Be.length;Ke<Ve;Ke++)if(Pe=Be[Ke],!(Pe===0&&Be[Ke+1]!==0)&&Pe!==10&&Pe!==13&&(Pe<32||Pe>127)){Fe=0;break}if(Fe!==2)continue;if(Ze.knownCommands){const Ke=Ze.peekObj();Ke instanceof U.Cmd&&!Ze.knownCommands[Ke.cmd]&&(Fe=0)}else(0,R.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(Fe===2)break}else Fe=0;Pe===-1&&((0,R.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),we&&((0,R.warn)('... trying to recover by using the last "EI" occurrence.'),ye.skip(-(ye.pos-we))));let Ie=4;return ye.skip(-Ie),Pe=ye.peekByte(),ye.skip(Ie),(0,K.isWhiteSpace)(Pe)||Ie--,ye.pos-Ie-ze}findDCTDecodeInlineStreamEnd(ye){const Ce=ye.pos;let pe=!1,_e,Ge;for(;(_e=ye.getByte())!==-1;)if(_e===255){switch(ye.getByte()){case 0:break;case 255:ye.skip(-1);break;case 217:pe=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:Ge=ye.getUint16(),Ge>2?ye.skip(Ge-2):ye.skip(-2);break}if(pe)break}const Ae=ye.pos-Ce;return _e===-1?((0,R.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),ye.skip(-Ae),this.findDefaultInlineStreamEnd(ye)):(this.inlineStreamSkipEI(ye),Ae)}findASCII85DecodeInlineStreamEnd(ye){const _e=ye.pos;let Ge;for(;(Ge=ye.getByte())!==-1;)if(Ge===126){const Ne=ye.pos;for(Ge=ye.peekByte();(0,K.isWhiteSpace)(Ge);)ye.skip(),Ge=ye.peekByte();if(Ge===62){ye.skip();break}if(ye.pos>Ne){const Ze=ye.peekBytes(2);if(Ze[0]===69&&Ze[1]===73)break}}const Ae=ye.pos-_e;return Ge===-1?((0,R.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),ye.skip(-Ae),this.findDefaultInlineStreamEnd(ye)):(this.inlineStreamSkipEI(ye),Ae)}findASCIIHexDecodeInlineStreamEnd(ye){const pe=ye.pos;let _e;for(;(_e=ye.getByte())!==-1&&_e!==62;);const Ge=ye.pos-pe;return _e===-1?((0,R.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),ye.skip(-Ge),this.findDefaultInlineStreamEnd(ye)):(this.inlineStreamSkipEI(ye),Ge)}inlineStreamSkipEI(ye){let _e=0,Ge;for(;(Ge=ye.getByte())!==-1;)if(_e===0)_e=Ge===69?1:0;else if(_e===1)_e=Ge===73?2:0;else if(_e===2)break}makeInlineImage(ye){const Ce=this.lexer,pe=Ce.stream,_e=new U.Dict(this.xref);let Ge;for(;!(0,U.isCmd)(this.buf1,"ID")&&this.buf1!==U.EOF;){if(!(this.buf1 instanceof U.Name))throw new R.FormatError("Dictionary key must be a name object");const Pe=this.buf1.name;if(this.shift(),this.buf1===U.EOF)break;_e.set(Pe,this.getObj(ye))}Ce.beginInlineImagePos!==-1&&(Ge=pe.pos-Ce.beginInlineImagePos);const Ae=_e.get("F","Filter");let Ne;if(Ae instanceof U.Name)Ne=Ae.name;else if(Array.isArray(Ae)){const Pe=this.xref.fetchIfRef(Ae[0]);Pe instanceof U.Name&&(Ne=Pe.name)}const Ze=pe.pos;let ze;switch(Ne){case"DCT":case"DCTDecode":ze=this.findDCTDecodeInlineStreamEnd(pe);break;case"A85":case"ASCII85Decode":ze=this.findASCII85DecodeInlineStreamEnd(pe);break;case"AHx":case"ASCIIHexDecode":ze=this.findASCIIHexDecodeInlineStreamEnd(pe);break;default:ze=this.findDefaultInlineStreamEnd(pe)}let Te=pe.makeSubStream(Ze,ze,_e),Fe;if(ze<de&&Ge<se){const Pe=Te.getBytes();Te.reset();const we=pe.pos;pe.pos=Ce.beginInlineImagePos;const Ie=pe.getBytes(Ge);pe.pos=we,Fe=oe(Pe)+"_"+oe(Ie);const Be=this.imageCache[Fe];if(Be!==void 0)return this.buf2=U.Cmd.get("EI"),this.shift(),Be.reset(),Be}return ye&&(Te=ye.createStream(Te,ze)),Te=this.filter(Te,_e,ze),Te.dict=_e,Fe!==void 0&&(Te.cacheKey=`inline_${ze}_${Fe}`,this.imageCache[Fe]=Te),this.buf2=U.Cmd.get("EI"),this.shift(),Te}_findStreamLength(ye,Ce){const{stream:pe}=this.lexer;pe.pos=ye;const _e=2048,Ge=Ce.length;for(;pe.pos<pe.end;){const Ae=pe.peekBytes(_e),Ne=Ae.length-Ge;if(Ne<=0)break;let Ze=0;for(;Ze<Ne;){let ze=0;for(;ze<Ge&&Ae[Ze+ze]===Ce[ze];)ze++;if(ze>=Ge)return pe.pos+=Ze,pe.pos-ye;Ze++}pe.pos+=Ne}return-1}makeStream(ye,Ce){const pe=this.lexer;let _e=pe.stream;pe.skipToNextLine();const Ge=_e.pos-1;let Ae=ye.get("Length");if(Number.isInteger(Ae)||((0,R.info)(`Bad length "${Ae&&Ae.toString()}" in stream.`),Ae=0),_e.pos=Ge+Ae,pe.nextChar(),this.tryShift()&&(0,U.isCmd)(this.buf2,"endstream"))this.shift();else{const Ne=new Uint8Array([101,110,100,115,116,114,101,97,109]);let Ze=this._findStreamLength(Ge,Ne);if(Ze<0){for(let Te=1;Te<=1;Te++){const Fe=Ne.length-Te,Pe=Ne.slice(0,Fe),we=this._findStreamLength(Ge,Pe);if(we>=0){const Ie=_e.peekBytes(Fe+1)[Fe];if(!(0,K.isWhiteSpace)(Ie))break;(0,R.info)(`Found "${(0,R.bytesToString)(Pe)}" when searching for endstream command.`),Ze=we;break}}if(Ze<0)throw new R.FormatError("Missing endstream command.")}Ae=Ze,pe.nextChar(),this.shift(),this.shift()}return this.shift(),_e=_e.makeSubStream(Ge,Ae,ye),Ce&&(_e=Ce.createStream(_e,Ae)),_e=this.filter(_e,ye,Ae),_e.dict=ye,_e}filter(ye,Ce,pe){let _e=Ce.get("F","Filter"),Ge=Ce.get("DP","DecodeParms");if(_e instanceof U.Name)return Array.isArray(Ge)&&(0,R.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(ye,_e.name,pe,Ge);let Ae=pe;if(Array.isArray(_e)){const Ne=_e,Ze=Ge;for(let ze=0,Te=Ne.length;ze<Te;++ze){if(_e=this.xref.fetchIfRef(Ne[ze]),!(_e instanceof U.Name))throw new R.FormatError(`Bad filter name "${_e}"`);Ge=null,Array.isArray(Ze)&&ze in Ze&&(Ge=this.xref.fetchIfRef(Ze[ze])),ye=this.makeFilter(ye,_e.name,Ae,Ge),Ae=null}}return ye}makeFilter(ye,Ce,pe,_e){if(pe===0)return(0,R.warn)(`Empty "${Ce}" stream.`),new L.NullStream;const Ge=this.xref.stats;try{switch(Ce){case"Fl":case"FlateDecode":return Ge.addStreamType(R.StreamType.FLATE),_e?new Q.PredictorStream(new ie.FlateStream(ye,pe),pe,_e):new ie.FlateStream(ye,pe);case"LZW":case"LZWDecode":Ge.addStreamType(R.StreamType.LZW);let Ae=1;return _e?(_e.has("EarlyChange")&&(Ae=_e.get("EarlyChange")),new Q.PredictorStream(new X.LZWStream(ye,pe,Ae),pe,_e)):new X.LZWStream(ye,pe,Ae);case"DCT":case"DCTDecode":return Ge.addStreamType(R.StreamType.DCT),new J.JpegStream(ye,pe,_e);case"JPX":case"JPXDecode":return Ge.addStreamType(R.StreamType.JPX),new W.JpxStream(ye,pe,_e);case"A85":case"ASCII85Decode":return Ge.addStreamType(R.StreamType.A85),new z.Ascii85Stream(ye,pe);case"AHx":case"ASCIIHexDecode":return Ge.addStreamType(R.StreamType.AHX),new e.AsciiHexStream(ye,pe);case"CCF":case"CCITTFaxDecode":return Ge.addStreamType(R.StreamType.CCF),new ae.CCITTFaxStream(ye,pe,_e);case"RL":case"RunLengthDecode":return Ge.addStreamType(R.StreamType.RLX),new ce.RunLengthStream(ye,pe);case"JBIG2Decode":return Ge.addStreamType(R.StreamType.JBIG),new he.Jbig2Stream(ye,pe,_e)}return(0,R.warn)(`Filter "${Ce}" is not supported.`),ye}catch(Ae){if(Ae instanceof K.MissingDataException)throw Ae;return(0,R.warn)(`Invalid stream: "${Ae}"`),new L.NullStream}}}D.Parser=me;const Ee=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function ke(ve){return ve>=48&&ve<=57?ve&15:ve>=65&&ve<=70||ve>=97&&ve<=102?(ve&15)+9:-1}class xe{constructor(ye){let Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.stream=ye,this.nextChar(),this.strBuf=[],this.knownCommands=Ce,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let ye=this.currentChar,Ce=!1,pe=0,_e=0;if(ye===45?(_e=-1,ye=this.nextChar(),ye===45&&(ye=this.nextChar())):ye===43&&(_e=1,ye=this.nextChar()),ye===10||ye===13)do ye=this.nextChar();while(ye===10||ye===13);if(ye===46&&(pe=10,ye=this.nextChar()),ye<48||ye>57){if((0,K.isWhiteSpace)(ye)||ye===-1){if(pe===10&&_e===0)return(0,R.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;if(pe===0&&_e===-1)return(0,R.warn)("Lexer.getNumber - treating a single minus sign as zero."),0}throw new R.FormatError(`Invalid number: ${String.fromCharCode(ye)} (charCode ${ye})`)}_e=_e||1;let Ge=ye-48,Ae=0,Ne=1;for(;(ye=this.nextChar())>=0;)if(ye>=48&&ye<=57){const Ze=ye-48;Ce?Ae=Ae*10+Ze:(pe!==0&&(pe*=10),Ge=Ge*10+Ze)}else if(ye===46)if(pe===0)pe=1;else break;else if(ye===45)(0,R.warn)("Badly formatted number: minus sign in the middle");else if(ye===69||ye===101){if(ye=this.peekChar(),ye===43||ye===45)Ne=ye===45?-1:1,this.nextChar();else if(ye<48||ye>57)break;Ce=!0}else break;return pe!==0&&(Ge/=pe),Ce&&(Ge*=10**(Ne*Ae)),_e*Ge}getString(){let ye=1,Ce=!1;const pe=this.strBuf;pe.length=0;let _e=this.nextChar();for(;;){let Ge=!1;switch(_e|0){case-1:(0,R.warn)("Unterminated string"),Ce=!0;break;case 40:++ye,pe.push("(");break;case 41:--ye===0?(this.nextChar(),Ce=!0):pe.push(")");break;case 92:switch(_e=this.nextChar(),_e){case-1:(0,R.warn)("Unterminated string"),Ce=!0;break;case 110:pe.push(`
`);break;case 114:pe.push("\r");break;case 116:pe.push(" ");break;case 98:pe.push("\b");break;case 102:pe.push("\f");break;case 92:case 40:case 41:pe.push(String.fromCharCode(_e));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let Ae=_e&15;_e=this.nextChar(),Ge=!0,_e>=48&&_e<=55&&(Ae=(Ae<<3)+(_e&15),_e=this.nextChar(),_e>=48&&_e<=55&&(Ge=!1,Ae=(Ae<<3)+(_e&15))),pe.push(String.fromCharCode(Ae));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:pe.push(String.fromCharCode(_e));break}break;default:pe.push(String.fromCharCode(_e));break}if(Ce)break;Ge||(_e=this.nextChar())}return pe.join("")}getName(){let ye,Ce;const pe=this.strBuf;for(pe.length=0;(ye=this.nextChar())>=0&&!Ee[ye];)if(ye===35){if(ye=this.nextChar(),Ee[ye]){(0,R.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),pe.push("#");break}const _e=ke(ye);if(_e!==-1){Ce=ye,ye=this.nextChar();const Ge=ke(ye);if(Ge===-1){if((0,R.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(ye)}) in hexadecimal number.`),pe.push("#",String.fromCharCode(Ce)),Ee[ye])break;pe.push(String.fromCharCode(ye));continue}pe.push(String.fromCharCode(_e<<4|Ge))}else pe.push("#",String.fromCharCode(ye))}else pe.push(String.fromCharCode(ye));return pe.length>127&&(0,R.warn)(`Name token is longer than allowed by the spec: ${pe.length}`),U.Name.get(pe.join(""))}_hexStringWarn(ye){if(this._hexStringNumWarn++===5){(0,R.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,R.warn)(`getHexString - ignoring invalid character: ${ye}`)}getHexString(){const ye=this.strBuf;ye.length=0;let Ce=this.currentChar,pe=!0,_e,Ge;for(this._hexStringNumWarn=0;;)if(Ce<0){(0,R.warn)("Unterminated hex string");break}else if(Ce===62){this.nextChar();break}else if(Ee[Ce]===1){Ce=this.nextChar();continue}else{if(pe){if(_e=ke(Ce),_e===-1){this._hexStringWarn(Ce),Ce=this.nextChar();continue}}else{if(Ge=ke(Ce),Ge===-1){this._hexStringWarn(Ce),Ce=this.nextChar();continue}ye.push(String.fromCharCode(_e<<4|Ge))}pe=!pe,Ce=this.nextChar()}return ye.join("")}getObj(){let ye=!1,Ce=this.currentChar;for(;;){if(Ce<0)return U.EOF;if(ye)(Ce===10||Ce===13)&&(ye=!1);else if(Ce===37)ye=!0;else if(Ee[Ce]!==1)break;Ce=this.nextChar()}switch(Ce|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),U.Cmd.get("[");case 93:return this.nextChar(),U.Cmd.get("]");case 60:return Ce=this.nextChar(),Ce===60?(this.nextChar(),U.Cmd.get("<<")):this.getHexString();case 62:return Ce=this.nextChar(),Ce===62?(this.nextChar(),U.Cmd.get(">>")):U.Cmd.get(">");case 123:return this.nextChar(),U.Cmd.get("{");case 125:return this.nextChar(),U.Cmd.get("}");case 41:throw this.nextChar(),new R.FormatError(`Illegal character: ${Ce}`)}let pe=String.fromCharCode(Ce);if(Ce<32||Ce>127){const Ae=this.peekChar();if(Ae>=32&&Ae<=127)return this.nextChar(),U.Cmd.get(pe)}const _e=this.knownCommands;let Ge=_e&&_e[pe]!==void 0;for(;(Ce=this.nextChar())>=0&&!Ee[Ce];){const Ae=pe+String.fromCharCode(Ce);if(Ge&&_e[Ae]===void 0)break;if(pe.length===128)throw new R.FormatError(`Command token too long: ${pe.length}`);pe=Ae,Ge=_e&&_e[pe]!==void 0}return pe==="true"?!0:pe==="false"?!1:pe==="null"?null:(pe==="BI"&&(this.beginInlineImagePos=this.stream.pos),U.Cmd.get(pe))}peekObj(){const ye=this.stream.pos,Ce=this.currentChar,pe=this.beginInlineImagePos;let _e;try{_e=this.getObj()}catch(Ge){if(Ge instanceof K.MissingDataException)throw Ge;(0,R.warn)(`peekObj: ${Ge}`)}return this.stream.pos=ye,this.currentChar=Ce,this.beginInlineImagePos=pe,_e}skipToNextLine(){let ye=this.currentChar;for(;ye>=0;){if(ye===13){ye=this.nextChar(),ye===10&&this.nextChar();break}else if(ye===10){this.nextChar();break}ye=this.nextChar()}}}D.Lexer=xe;class fe{static create(ye){function Ce(Fe,Pe){let we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const Ie=Fe.get(Pe);if(Number.isInteger(Ie)&&(we?Ie>=0:Ie>0))return Ie;throw new Error(`The "${Pe}" parameter in the linearization dictionary is invalid.`)}function pe(Fe){const Pe=Fe.get("H");let we;if(Array.isArray(Pe)&&((we=Pe.length)===2||we===4)){for(let Ie=0;Ie<we;Ie++){const Be=Pe[Ie];if(!(Number.isInteger(Be)&&Be>0))throw new Error(`Hint (${Ie}) in the linearization dictionary is invalid.`)}return Pe}throw new Error("Hint array in the linearization dictionary is invalid.")}const _e=new me({lexer:new xe(ye),xref:null}),Ge=_e.getObj(),Ae=_e.getObj(),Ne=_e.getObj(),Ze=_e.getObj();let ze,Te;if(Number.isInteger(Ge)&&Number.isInteger(Ae)&&(0,U.isCmd)(Ne,"obj")&&Ze instanceof U.Dict&&typeof(ze=Ze.get("Linearized"))=="number"&&ze>0){if((Te=Ce(Ze,"L"))!==ye.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:Te,hints:pe(Ze),objectNumberFirst:Ce(Ze,"O"),endFirst:Ce(Ze,"E"),numPages:Ce(Ze,"N"),mainXRefEntriesOffset:Ce(Ze,"T"),pageFirst:Ze.has("P")?Ce(Ze,"P",!0):0}}}D.Linearization=fe},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Ascii85Stream=void 0;var R=B(144),U=B(131);class K extends R.DecodeStream{constructor(e,ae){ae&&(ae*=.8),super(ae),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const he=this.str;let J=he.getByte();for(;(0,U.isWhiteSpace)(J);)J=he.getByte();if(J===-1||J===126){this.eof=!0;return}const W=this.bufferLength;let X,L;if(J===122){for(X=this.ensureBuffer(W+4),L=0;L<4;++L)X[W+L]=0;this.bufferLength+=4}else{const Q=this.input;for(Q[0]=J,L=1;L<5;++L){for(J=he.getByte();(0,U.isWhiteSpace)(J);)J=he.getByte();if(Q[L]=J,J===-1||J===126)break}if(X=this.ensureBuffer(W+L-1),this.bufferLength+=L-1,L<5){for(;L<5;++L)Q[L]=117;this.eof=!0}let ce=0;for(L=0;L<5;++L)ce=ce*85+(Q[L]-33);for(L=3;L>=0;--L)X[W+L]=ce&255,ce>>=8}}}D.Ascii85Stream=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.StreamsSequenceStream=D.DecodeStream=void 0;var R=B(132),U=B(135);const K=new Uint8Array(0);class z extends R.BaseStream{constructor(ie){if(super(),this._rawMinBufferLength=ie||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=K,this.minBufferLength=512,ie)for(;this.minBufferLength<ie;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(ie){const he=this.buffer;if(ie<=he.byteLength)return he;let J=this.minBufferLength;for(;J<ie;)J*=2;const W=new Uint8Array(J);return W.set(he),this.buffer=W}getByte(){const ie=this.pos;for(;this.bufferLength<=ie;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(ie){const he=this.pos;let J;if(ie){for(this.ensureBuffer(he+ie),J=he+ie;!this.eof&&this.bufferLength<J;)this.readBlock();const W=this.bufferLength;J>W&&(J=W)}else{for(;!this.eof;)this.readBlock();J=this.bufferLength}return this.pos=J,this.buffer.subarray(he,J)}reset(){this.pos=0}makeSubStream(ie,he){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(he===void 0)for(;!this.eof;)this.readBlock();else{const W=ie+he;for(;this.bufferLength<=W&&!this.eof;)this.readBlock()}return new U.Stream(this.buffer,ie,he,J)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}D.DecodeStream=z;class e extends z{constructor(ie){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,J=0;for(const W of ie)J+=W instanceof z?W._rawMinBufferLength:W.length;super(J),this.streams=ie,this._onError=he}readBlock(){const ie=this.streams;if(ie.length===0){this.eof=!0;return}const he=ie.shift();let J;try{J=he.getBytes()}catch(Q){if(this._onError){this._onError(Q,he.dict&&he.dict.objId);return}throw Q}const W=this.bufferLength,X=W+J.length;this.ensureBuffer(X).set(J,W),this.bufferLength=X}getBaseStreams(){const ie=[];for(const he of this.streams){const J=he.getBaseStreams();J&&ie.push(...J)}return ie.length>0?ie:null}}D.StreamsSequenceStream=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.AsciiHexStream=void 0;var R=B(144);class U extends R.DecodeStream{constructor(z,e){e&&(e*=.5),super(e),this.str=z,this.dict=z.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return}const ae=e.length+1>>1,ie=this.ensureBuffer(this.bufferLength+ae);let he=this.bufferLength,J=this.firstDigit;for(const W of e){let X;if(W>=48&&W<=57)X=W&15;else if(W>=65&&W<=70||W>=97&&W<=102)X=(W&15)+9;else if(W===62){this.eof=!0;break}else continue;J<0?J=X:(ie[he++]=J<<4|X,J=-1)}J>=0&&this.eof&&(ie[he++]=J<<4,J=-1),this.firstDigit=J,this.bufferLength=he}}D.AsciiHexStream=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CCITTFaxStream=void 0;var R=B(147),U=B(144),K=B(130);class z extends U.DecodeStream{constructor(ae,ie,he){super(ie),this.str=ae,this.dict=ae.dict,he instanceof K.Dict||(he=K.Dict.empty);const J={next(){return ae.getByte()}};this.ccittFaxDecoder=new R.CCITTFaxDecoder(J,{K:he.get("K"),EndOfLine:he.get("EndOfLine"),EncodedByteAlign:he.get("EncodedByteAlign"),Columns:he.get("Columns"),Rows:he.get("Rows"),EndOfBlock:he.get("EndOfBlock"),BlackIs1:he.get("BlackIs1")})}readBlock(){for(;!this.eof;){const ae=this.ccittFaxDecoder.readNextChar();if(ae===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=ae}}}D.CCITTFaxStream=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CCITTFaxDecoder=void 0;var R=B(2);const U=-2,K=-1,z=0,e=1,ae=2,ie=3,he=4,J=5,W=6,X=7,L=8,Q=[[-1,-1],[-1,-1],[7,L],[7,X],[6,W],[6,W],[6,J],[6,J],[4,z],[4,z],[4,z],[4,z],[4,z],[4,z],[4,z],[4,z],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,he],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[3,ie],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae],[1,ae]],ce=[[-1,-1],[12,U],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],de=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],se=[[-1,-1],[-1,-1],[12,U],[12,U],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],oe=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],me=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class Ee{constructor(xe){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xe||typeof xe.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=xe,this.eof=!1,this.encoding=fe.K||0,this.eoline=fe.EndOfLine||!1,this.byteAlign=fe.EncodedByteAlign||!1,this.columns=fe.Columns||1728,this.rows=fe.Rows||0;let ve=fe.EndOfBlock;ve==null&&(ve=!0),this.eoblock=ve,this.black=fe.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let ye;for(;(ye=this._lookBits(12))===0;)this._eatBits(1);ye===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const xe=this.refLine,fe=this.codingLine,ve=this.columns;let ye,Ce,pe,_e;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let Ae,Ne,Ze;if(this.nextLine2D){for(_e=0;fe[_e]<ve;++_e)xe[_e]=fe[_e];for(xe[_e++]=ve,xe[_e]=ve,fe[0]=0,this.codingPos=0,ye=0,Ce=0;fe[this.codingPos]<ve;)switch(Ae=this._getTwoDimCode(),Ae){case z:this._addPixels(xe[ye+1],Ce),xe[ye+1]<ve&&(ye+=2);break;case e:if(Ae=Ne=0,Ce){do Ae+=Ze=this._getBlackCode();while(Ze>=64);do Ne+=Ze=this._getWhiteCode();while(Ze>=64)}else{do Ae+=Ze=this._getWhiteCode();while(Ze>=64);do Ne+=Ze=this._getBlackCode();while(Ze>=64)}for(this._addPixels(fe[this.codingPos]+Ae,Ce),fe[this.codingPos]<ve&&this._addPixels(fe[this.codingPos]+Ne,Ce^1);xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case X:if(this._addPixels(xe[ye]+3,Ce),Ce^=1,fe[this.codingPos]<ve)for(++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case J:if(this._addPixels(xe[ye]+2,Ce),Ce^=1,fe[this.codingPos]<ve)for(++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case ie:if(this._addPixels(xe[ye]+1,Ce),Ce^=1,fe[this.codingPos]<ve)for(++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case ae:if(this._addPixels(xe[ye],Ce),Ce^=1,fe[this.codingPos]<ve)for(++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case L:if(this._addPixelsNeg(xe[ye]-3,Ce),Ce^=1,fe[this.codingPos]<ve)for(ye>0?--ye:++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case W:if(this._addPixelsNeg(xe[ye]-2,Ce),Ce^=1,fe[this.codingPos]<ve)for(ye>0?--ye:++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case he:if(this._addPixelsNeg(xe[ye]-1,Ce),Ce^=1,fe[this.codingPos]<ve)for(ye>0?--ye:++ye;xe[ye]<=fe[this.codingPos]&&xe[ye]<ve;)ye+=2;break;case K:this._addPixels(ve,0),this.eof=!0;break;default:(0,R.info)("bad 2d code"),this._addPixels(ve,0),this.err=!0}}else for(fe[0]=0,this.codingPos=0,Ce=0;fe[this.codingPos]<ve;){if(Ae=0,Ce)do Ae+=Ze=this._getBlackCode();while(Ze>=64);else do Ae+=Ze=this._getWhiteCode();while(Ze>=64);this._addPixels(fe[this.codingPos]+Ae,Ce),Ce^=1}let ze=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(Ae=this._lookBits(12),this.eoline)for(;Ae!==K&&Ae!==1;)this._eatBits(1),Ae=this._lookBits(12);else for(;Ae===0;)this._eatBits(1),Ae=this._lookBits(12);Ae===1?(this._eatBits(12),ze=!0):Ae===K&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&ze&&this.byteAlign){if(Ae=this._lookBits(12),Ae===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(_e=0;_e<4;++_e)Ae=this._lookBits(12),Ae!==1&&(0,R.info)("bad rtc code: "+Ae),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(Ae=this._lookBits(13),Ae===K)return this.eof=!0,-1;if(Ae>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(Ae&1))}fe[0]>0?this.outputBits=fe[this.codingPos=0]:this.outputBits=fe[this.codingPos=1],this.row++}let Ge;if(this.outputBits>=8)Ge=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&fe[this.codingPos]<ve&&(this.codingPos++,this.outputBits=fe[this.codingPos]-fe[this.codingPos-1]);else{pe=8,Ge=0;do{if(typeof this.outputBits!="number")throw new R.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>pe?(Ge<<=pe,this.codingPos&1||(Ge|=255>>8-pe),this.outputBits-=pe,pe=0):(Ge<<=this.outputBits,this.codingPos&1||(Ge|=255>>8-this.outputBits),pe-=this.outputBits,this.outputBits=0,fe[this.codingPos]<ve?(this.codingPos++,this.outputBits=fe[this.codingPos]-fe[this.codingPos-1]):pe>0&&(Ge<<=pe,pe=0))}while(pe)}return this.black&&(Ge^=255),Ge}_addPixels(xe,fe){const ve=this.codingLine;let ye=this.codingPos;xe>ve[ye]&&(xe>this.columns&&((0,R.info)("row is wrong length"),this.err=!0,xe=this.columns),ye&1^fe&&++ye,ve[ye]=xe),this.codingPos=ye}_addPixelsNeg(xe,fe){const ve=this.codingLine;let ye=this.codingPos;if(xe>ve[ye])xe>this.columns&&((0,R.info)("row is wrong length"),this.err=!0,xe=this.columns),ye&1^fe&&++ye,ve[ye]=xe;else if(xe<ve[ye]){for(xe<0&&((0,R.info)("invalid code"),this.err=!0,xe=0);ye>0&&xe<ve[ye-1];)--ye;ve[ye]=xe}this.codingPos=ye}_findTableCode(xe,fe,ve,ye){const Ce=ye||0;for(let pe=xe;pe<=fe;++pe){let _e=this._lookBits(pe);if(_e===K)return[!0,1,!1];if(pe<fe&&(_e<<=fe-pe),!Ce||_e>=Ce){const Ge=ve[_e-Ce];if(Ge[0]===pe)return this._eatBits(pe),[!0,Ge[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let xe=0,fe;if(this.eoblock){if(xe=this._lookBits(7),fe=Q[xe],fe&&fe[0]>0)return this._eatBits(fe[0]),fe[1]}else{const ve=this._findTableCode(1,7,Q);if(ve[0]&&ve[2])return ve[1]}return(0,R.info)("Bad two dim code"),K}_getWhiteCode(){let xe=0,fe;if(this.eoblock){if(xe=this._lookBits(12),xe===K)return 1;if(xe>>5?fe=de[xe>>3]:fe=ce[xe],fe[0]>0)return this._eatBits(fe[0]),fe[1]}else{let ve=this._findTableCode(1,9,de);if(ve[0]||(ve=this._findTableCode(11,12,ce),ve[0]))return ve[1]}return(0,R.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let xe,fe;if(this.eoblock){if(xe=this._lookBits(13),xe===K)return 1;if(xe>>7?!(xe>>9)&&xe>>7?fe=oe[(xe>>1)-64]:fe=me[xe>>7]:fe=se[xe],fe[0]>0)return this._eatBits(fe[0]),fe[1]}else{let ve=this._findTableCode(2,6,me);if(ve[0]||(ve=this._findTableCode(7,12,oe,64),ve[0])||(ve=this._findTableCode(10,13,se),ve[0]))return ve[1]}return(0,R.info)("bad black code"),this._eatBits(1),1}_lookBits(xe){let fe;for(;this.inputBits<xe;){if((fe=this.source.next())===-1)return this.inputBits===0?K:this.inputBuf<<xe-this.inputBits&65535>>16-xe;this.inputBuf=this.inputBuf<<8|fe,this.inputBits+=8}return this.inputBuf>>this.inputBits-xe&65535>>16-xe}_eatBits(xe){(this.inputBits-=xe)<0&&(this.inputBits=0)}}D.CCITTFaxDecoder=Ee},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.FlateStream=void 0;var R=B(144),U=B(2);const K=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),z=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),e=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),ae=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],ie=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class he extends R.DecodeStream{constructor(W,X){super(X),this.str=W,this.dict=W.dict;const L=W.getByte(),Q=W.getByte();if(L===-1||Q===-1)throw new U.FormatError(`Invalid header in flate stream: ${L}, ${Q}`);if((L&15)!==8)throw new U.FormatError(`Unknown compression method in flate stream: ${L}, ${Q}`);if(((L<<8)+Q)%31!==0)throw new U.FormatError(`Bad FCHECK in flate stream: ${L}, ${Q}`);if(Q&32)throw new U.FormatError(`FDICT bit set in flate stream: ${L}, ${Q}`);this.codeSize=0,this.codeBuf=0}getBits(W){const X=this.str;let L=this.codeSize,Q=this.codeBuf,ce;for(;L<W;){if((ce=X.getByte())===-1)throw new U.FormatError("Bad encoding in flate stream");Q|=ce<<L,L+=8}return ce=Q&(1<<W)-1,this.codeBuf=Q>>W,this.codeSize=L-=W,ce}getCode(W){const X=this.str,L=W[0],Q=W[1];let ce=this.codeSize,de=this.codeBuf,se;for(;ce<Q&&(se=X.getByte())!==-1;)de|=se<<ce,ce+=8;const oe=L[de&(1<<Q)-1],me=oe>>16,Ee=oe&65535;if(me<1||ce<me)throw new U.FormatError("Bad encoding in flate stream");return this.codeBuf=de>>me,this.codeSize=ce-me,Ee}generateHuffmanTable(W){const X=W.length;let L=0,Q;for(Q=0;Q<X;++Q)W[Q]>L&&(L=W[Q]);const ce=1<<L,de=new Int32Array(ce);for(let se=1,oe=0,me=2;se<=L;++se,oe<<=1,me<<=1)for(let Ee=0;Ee<X;++Ee)if(W[Ee]===se){let ke=0,xe=oe;for(Q=0;Q<se;++Q)ke=ke<<1|xe&1,xe>>=1;for(Q=ke;Q<ce;Q+=me)de[Q]=se<<16|Ee;++oe}return[de,L]}readBlock(){let W,X;const L=this.str;let Q=this.getBits(3);if(Q&1&&(this.eof=!0),Q>>=1,Q===0){let me;if((me=L.getByte())===-1)throw new U.FormatError("Bad block header in flate stream");let Ee=me;if((me=L.getByte())===-1)throw new U.FormatError("Bad block header in flate stream");if(Ee|=me<<8,(me=L.getByte())===-1)throw new U.FormatError("Bad block header in flate stream");let ke=me;if((me=L.getByte())===-1)throw new U.FormatError("Bad block header in flate stream");if(ke|=me<<8,ke!==(~Ee&65535)&&(Ee!==0||ke!==0))throw new U.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const xe=this.bufferLength,fe=xe+Ee;if(W=this.ensureBuffer(fe),this.bufferLength=fe,Ee===0)L.peekByte()===-1&&(this.eof=!0);else{const ve=L.getBytes(Ee);W.set(ve,xe),ve.length<Ee&&(this.eof=!0)}return}let ce,de;if(Q===1)ce=ae,de=ie;else if(Q===2){const me=this.getBits(5)+257,Ee=this.getBits(5)+1,ke=this.getBits(4)+4,xe=new Uint8Array(K.length);let fe;for(fe=0;fe<ke;++fe)xe[K[fe]]=this.getBits(3);const ve=this.generateHuffmanTable(xe);X=0,fe=0;const ye=me+Ee,Ce=new Uint8Array(ye);let pe,_e,Ge;for(;fe<ye;){const Ae=this.getCode(ve);if(Ae===16)pe=2,_e=3,Ge=X;else if(Ae===17)pe=3,_e=3,Ge=X=0;else if(Ae===18)pe=7,_e=11,Ge=X=0;else{Ce[fe++]=X=Ae;continue}let Ne=this.getBits(pe)+_e;for(;Ne-- >0;)Ce[fe++]=Ge}ce=this.generateHuffmanTable(Ce.subarray(0,me)),de=this.generateHuffmanTable(Ce.subarray(me,ye))}else throw new U.FormatError("Unknown block type in flate stream");W=this.buffer;let se=W?W.length:0,oe=this.bufferLength;for(;;){let me=this.getCode(ce);if(me<256){oe+1>=se&&(W=this.ensureBuffer(oe+1),se=W.length),W[oe++]=me;continue}if(me===256){this.bufferLength=oe;return}me-=257,me=z[me];let Ee=me>>16;Ee>0&&(Ee=this.getBits(Ee)),X=(me&65535)+Ee,me=this.getCode(de),me=e[me],Ee=me>>16,Ee>0&&(Ee=this.getBits(Ee));const ke=(me&65535)+Ee;oe+X>=se&&(W=this.ensureBuffer(oe+X),se=W.length);for(let xe=0;xe<X;++xe,++oe)W[oe]=W[oe-ke]}}}D.FlateStream=he},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Jbig2Stream=void 0;var R=B(132),U=B(144),K=B(130),z=B(150),e=B(2);class ae extends U.DecodeStream{constructor(he,J,W){super(J),this.stream=he,this.dict=he.dict,this.maybeLength=J,this.params=W}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(he){}readBlock(){if(this.eof)return;const he=new z.Jbig2Image,J=[];if(this.params instanceof K.Dict){const L=this.params.get("JBIG2Globals");if(L instanceof R.BaseStream){const Q=L.getBytes();J.push({data:Q,start:0,end:Q.length})}}J.push({data:this.bytes,start:0,end:this.bytes.length});const W=he.parseChunks(J),X=W.length;for(let L=0;L<X;L++)W[L]^=255;this.buffer=W,this.bufferLength=X,this.eof=!0}}D.Jbig2Stream=ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Jbig2Image=void 0;var R=B(2),U=B(131),K=B(151),z=B(147);class e extends R.BaseException{constructor(Qe){super(`JBIG2 error: ${Qe}`,"Jbig2Error")}}class ae{getContexts(Qe){return Qe in this?this[Qe]:this[Qe]=new Int8Array(65536)}}class ie{constructor(Qe,Ue,$e){this.data=Qe,this.start=Ue,this.end=$e}get decoder(){const Qe=new K.ArithmeticDecoder(this.data,this.start,this.end);return(0,R.shadow)(this,"decoder",Qe)}get contextCache(){const Qe=new ae;return(0,R.shadow)(this,"contextCache",Qe)}}function he(et,Qe,Ue){const $e=et.getContexts(Qe);let Ye=1;function tt(dt){let ct=0;for(let mt=0;mt<dt;mt++){const ut=Ue.readBit($e,Ye);Ye=Ye<256?Ye<<1|ut:(Ye<<1|ut)&511|256,ct=ct<<1|ut}return ct>>>0}const ot=tt(1),st=tt(1)?tt(1)?tt(1)?tt(1)?tt(1)?tt(32)+4436:tt(12)+340:tt(8)+84:tt(6)+20:tt(4)+4:tt(2);return ot===0?st:st>0?-st:null}function J(et,Qe,Ue){const $e=et.getContexts("IAID");let Ye=1;for(let tt=0;tt<Ue;tt++){const ot=Qe.readBit($e,Ye);Ye=Ye<<1|ot}return Ue<31?Ye&(1<<Ue)-1:Ye&2147483647}const W=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],X=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],L=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],Q=[39717,1941,229,405],ce=[32,8];function de(et,Qe,Ue){const $e=Ue.decoder,Ye=Ue.contextCache.getContexts("GB"),tt=[];let ot,st,dt,ct,mt,ut,rt;const He=31735;for(st=0;st<Qe;st++)for(mt=tt[st]=new Uint8Array(et),ut=st<1?mt:tt[st-1],rt=st<2?mt:tt[st-2],ot=rt[0]<<13|rt[1]<<12|rt[2]<<11|ut[0]<<7|ut[1]<<6|ut[2]<<5|ut[3]<<4,dt=0;dt<et;dt++)mt[dt]=ct=$e.readBit(Ye,ot),ot=(ot&He)<<1|(dt+3<et?rt[dt+3]<<11:0)|(dt+4<et?ut[dt+4]<<4:0)|ct;return tt}function se(et,Qe,Ue,$e,Ye,tt,ot,st){if(et){const yt=new we(st.data,st.start,st.end);return je(yt,Qe,Ue,!1)}if($e===0&&!tt&&!Ye&&ot.length===4&&ot[0].x===3&&ot[0].y===-1&&ot[1].x===-3&&ot[1].y===-1&&ot[2].x===2&&ot[2].y===-2&&ot[3].x===-2&&ot[3].y===-2)return de(Qe,Ue,st);const dt=!!tt,ct=X[$e].concat(ot);ct.sort(function(yt,vt){return yt.y-vt.y||yt.x-vt.x});const mt=ct.length,ut=new Int8Array(mt),rt=new Int8Array(mt),He=[];let Je=0,St=0,bt=0,pt=0,wt,Pt;for(Pt=0;Pt<mt;Pt++)ut[Pt]=ct[Pt].x,rt[Pt]=ct[Pt].y,St=Math.min(St,ct[Pt].x),bt=Math.max(bt,ct[Pt].x),pt=Math.min(pt,ct[Pt].y),Pt<mt-1&&ct[Pt].y===ct[Pt+1].y&&ct[Pt].x===ct[Pt+1].x-1?Je|=1<<mt-1-Pt:He.push(Pt);const Nt=He.length,Vt=new Int8Array(Nt),Wt=new Int8Array(Nt),Mt=new Uint16Array(Nt);for(wt=0;wt<Nt;wt++)Pt=He[wt],Vt[wt]=ct[Pt].x,Wt[wt]=ct[Pt].y,Mt[wt]=1<<mt-1-Pt;const $t=-St,Yt=-pt,Ft=Qe-bt,Jt=Q[$e];let er=new Uint8Array(Qe);const Bt=[],It=st.decoder,Dt=st.contextCache.getContexts("GB");let Zt=0,gr,fr,Dr,kr=0,cr,Ar;for(let yt=0;yt<Ue;yt++){if(Ye){const vt=It.readBit(Dt,Jt);if(Zt^=vt,Zt){Bt.push(er);continue}}for(er=new Uint8Array(er),Bt.push(er),gr=0;gr<Qe;gr++){if(dt&&tt[yt][gr]){er[gr]=0;continue}if(gr>=$t&&gr<Ft&&yt>=Yt)for(kr=kr<<1&Je,Pt=0;Pt<Nt;Pt++)fr=yt+Wt[Pt],Dr=gr+Vt[Pt],cr=Bt[fr][Dr],cr&&(cr=Mt[Pt],kr|=cr);else for(kr=0,Ar=mt-1,Pt=0;Pt<mt;Pt++,Ar--)Dr=gr+ut[Pt],Dr>=0&&Dr<Qe&&(fr=yt+rt[Pt],fr>=0&&(cr=Bt[fr][Dr],cr&&(kr|=cr<<Ar)));const vt=It.readBit(Dt,kr);er[gr]=vt}}return Bt}function oe(et,Qe,Ue,$e,Ye,tt,ot,st,dt){let ct=L[Ue].coding;Ue===0&&(ct=ct.concat([st[0]]));const mt=ct.length,ut=new Int32Array(mt),rt=new Int32Array(mt);let He;for(He=0;He<mt;He++)ut[He]=ct[He].x,rt[He]=ct[He].y;let Je=L[Ue].reference;Ue===0&&(Je=Je.concat([st[1]]));const St=Je.length,bt=new Int32Array(St),pt=new Int32Array(St);for(He=0;He<St;He++)bt[He]=Je[He].x,pt[He]=Je[He].y;const wt=$e[0].length,Pt=$e.length,Nt=ce[Ue],Vt=[],Wt=dt.decoder,Mt=dt.contextCache.getContexts("GR");let $t=0;for(let Yt=0;Yt<Qe;Yt++){if(ot){const Jt=Wt.readBit(Mt,Nt);if($t^=Jt,$t)throw new e("prediction is not supported")}const Ft=new Uint8Array(et);Vt.push(Ft);for(let Jt=0;Jt<et;Jt++){let er,Bt,It=0;for(He=0;He<mt;He++)er=Yt+rt[He],Bt=Jt+ut[He],er<0||Bt<0||Bt>=et?It<<=1:It=It<<1|Vt[er][Bt];for(He=0;He<St;He++)er=Yt+pt[He]-tt,Bt=Jt+bt[He]-Ye,er<0||er>=Pt||Bt<0||Bt>=wt?It<<=1:It=It<<1|$e[er][Bt];const Dt=Wt.readBit(Mt,It);Ft[Jt]=Dt}}return Vt}function me(et,Qe,Ue,$e,Ye,tt,ot,st,dt,ct,mt,ut){if(et&&Qe)throw new e("symbol refinement with Huffman is not supported");const rt=[];let He=0,Je=(0,U.log2)(Ue.length+$e);const St=mt.decoder,bt=mt.contextCache;let pt,wt;for(et&&(pt=Pe(1),wt=[],Je=Math.max(Je,1));rt.length<$e;){const Yt=et?tt.tableDeltaHeight.decode(ut):he(bt,"IADH",St);He+=Yt;let Ft=0,Jt=0;const er=et?wt.length:0;for(;;){const Bt=et?tt.tableDeltaWidth.decode(ut):he(bt,"IADW",St);if(Bt===null)break;Ft+=Bt,Jt+=Ft;let It;if(Qe){const Dt=he(bt,"IAAI",St);if(Dt>1)It=Ee(et,Qe,Ft,He,0,Dt,1,Ue.concat(rt),Je,0,0,1,0,tt,dt,ct,mt,0,ut);else{const Zt=J(bt,St,Je),gr=he(bt,"IARDX",St),fr=he(bt,"IARDY",St),Dr=Zt<Ue.length?Ue[Zt]:rt[Zt-Ue.length];It=oe(Ft,He,dt,Dr,gr,fr,!1,ct,mt)}rt.push(It)}else et?wt.push(Ft):(It=se(!1,Ft,He,ot,!1,null,st,mt),rt.push(It))}if(et&&!Qe){const Bt=tt.tableBitmapSize.decode(ut);ut.byteAlign();let It;if(Bt===0)It=Ve(ut,Jt,He);else{const Zt=ut.end,gr=ut.position+Bt;ut.end=gr,It=je(ut,Jt,He,!1),ut.end=Zt,ut.position=gr}const Dt=wt.length;if(er===Dt-1)rt.push(It);else{let Zt,gr,fr=0,Dr,kr,cr;for(Zt=er;Zt<Dt;Zt++){for(kr=wt[Zt],Dr=fr+kr,cr=[],gr=0;gr<He;gr++)cr.push(It[gr].subarray(fr,Dr));rt.push(cr),fr=Dr}}}}const Pt=[],Nt=[];let Vt=!1,Wt,Mt;const $t=Ue.length+$e;for(;Nt.length<$t;){let Yt=et?pt.decode(ut):he(bt,"IAEX",St);for(;Yt--;)Nt.push(Vt);Vt=!Vt}for(Wt=0,Mt=Ue.length;Wt<Mt;Wt++)Nt[Wt]&&Pt.push(Ue[Wt]);for(let Yt=0;Yt<$e;Wt++,Yt++)Nt[Wt]&&Pt.push(rt[Yt]);return Pt}function Ee(et,Qe,Ue,$e,Ye,tt,ot,st,dt,ct,mt,ut,rt,He,Je,St,bt,pt,wt){if(et&&Qe)throw new e("refinement with Huffman is not supported");const Pt=[];let Nt,Vt;for(Nt=0;Nt<$e;Nt++){if(Vt=new Uint8Array(Ue),Ye)for(let Ft=0;Ft<Ue;Ft++)Vt[Ft]=Ye;Pt.push(Vt)}const Wt=bt.decoder,Mt=bt.contextCache;let $t=et?-He.tableDeltaT.decode(wt):-he(Mt,"IADT",Wt),Yt=0;for(Nt=0;Nt<tt;){const Ft=et?He.tableDeltaT.decode(wt):he(Mt,"IADT",Wt);$t+=Ft;const Jt=et?He.tableFirstS.decode(wt):he(Mt,"IAFS",Wt);Yt+=Jt;let er=Yt;do{let Bt=0;ot>1&&(Bt=et?wt.readBits(pt):he(Mt,"IAIT",Wt));const It=ot*$t+Bt,Dt=et?He.symbolIDTable.decode(wt):J(Mt,Wt,dt),Zt=Qe&&(et?wt.readBit():he(Mt,"IARI",Wt));let gr=st[Dt],fr=gr[0].length,Dr=gr.length;if(Zt){const At=he(Mt,"IARDW",Wt),zt=he(Mt,"IARDH",Wt),Br=he(Mt,"IARDX",Wt),br=he(Mt,"IARDY",Wt);fr+=At,Dr+=zt,gr=oe(fr,Dr,Je,gr,(At>>1)+Br,(zt>>1)+br,!1,St,bt)}const kr=It-(ut&1?0:Dr-1),cr=er-(ut&2?fr-1:0);let Ar,yt,vt;if(ct){for(Ar=0;Ar<Dr;Ar++){if(Vt=Pt[cr+Ar],!Vt)continue;vt=gr[Ar];const At=Math.min(Ue-kr,fr);switch(rt){case 0:for(yt=0;yt<At;yt++)Vt[kr+yt]|=vt[yt];break;case 2:for(yt=0;yt<At;yt++)Vt[kr+yt]^=vt[yt];break;default:throw new e(`operator ${rt} is not supported`)}}er+=Dr-1}else{for(yt=0;yt<Dr;yt++)if(Vt=Pt[kr+yt],!!Vt)switch(vt=gr[yt],rt){case 0:for(Ar=0;Ar<fr;Ar++)Vt[cr+Ar]|=vt[Ar];break;case 2:for(Ar=0;Ar<fr;Ar++)Vt[cr+Ar]^=vt[Ar];break;default:throw new e(`operator ${rt} is not supported`)}er+=fr-1}Nt++;const Xt=et?He.tableDeltaS.decode(wt):he(Mt,"IADS",Wt);if(Xt===null)break;er+=Xt+mt}while(!0)}return Pt}function ke(et,Qe,Ue,$e,Ye,tt){const ot=[];et||(ot.push({x:-Qe,y:0}),Ye===0&&ot.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const st=($e+1)*Qe,dt=se(et,st,Ue,Ye,!1,null,ot,tt),ct=[];for(let mt=0;mt<=$e;mt++){const ut=[],rt=Qe*mt,He=rt+Qe;for(let Je=0;Je<Ue;Je++)ut.push(dt[Je].subarray(rt,He));ct.push(ut)}return ct}function xe(et,Qe,Ue,$e,Ye,tt,ot,st,dt,ct,mt,ut,rt,He,Je){if(ot)throw new e("skip is not supported");if(st!==0)throw new e(`operator "${st}" is not supported in halftone region`);const bt=[];let pt,wt,Pt;for(pt=0;pt<Ye;pt++){if(Pt=new Uint8Array($e),tt)for(wt=0;wt<$e;wt++)Pt[wt]=tt;bt.push(Pt)}const Nt=Qe.length,Vt=Qe[0],Wt=Vt[0].length,Mt=Vt.length,$t=(0,U.log2)(Nt),Yt=[];et||(Yt.push({x:Ue<=1?3:2,y:-1}),Ue===0&&Yt.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const Ft=[];let Jt,er;for(et&&(Jt=new we(Je.data,Je.start,Je.end)),pt=$t-1;pt>=0;pt--)et?er=je(Jt,dt,ct,!0):er=se(!1,dt,ct,Ue,!1,null,Yt,Je),Ft[pt]=er;let Bt,It,Dt,Zt,gr,fr,Dr,kr,cr;for(Bt=0;Bt<ct;Bt++)for(It=0;It<dt;It++){for(Dt=0,Zt=0,wt=$t-1;wt>=0;wt--)Dt^=Ft[wt][Bt][It],Zt|=Dt<<wt;if(gr=Qe[Zt],fr=mt+Bt*He+It*rt>>8,Dr=ut+Bt*rt-It*He>>8,fr>=0&&fr+Wt<=$e&&Dr>=0&&Dr+Mt<=Ye)for(pt=0;pt<Mt;pt++)for(cr=bt[Dr+pt],kr=gr[pt],wt=0;wt<Wt;wt++)cr[fr+wt]|=kr[wt];else{let Ar,yt;for(pt=0;pt<Mt;pt++)if(yt=Dr+pt,!(yt<0||yt>=Ye))for(cr=bt[yt],kr=gr[pt],wt=0;wt<Wt;wt++)Ar=fr+wt,Ar>=0&&Ar<$e&&(cr[Ar]|=kr[wt])}}return bt}function fe(et,Qe){const Ue={};Ue.number=(0,U.readUint32)(et,Qe);const $e=et[Qe+4],Ye=$e&63;if(!W[Ye])throw new e("invalid segment type: "+Ye);Ue.type=Ye,Ue.typeName=W[Ye],Ue.deferredNonRetain=!!($e&128);const tt=!!($e&64),ot=et[Qe+5];let st=ot>>5&7;const dt=[ot&31];let ct=Qe+6;if(ot===7){st=(0,U.readUint32)(et,ct-1)&536870911,ct+=3;let Je=st+7>>3;for(dt[0]=et[ct++];--Je>0;)dt.push(et[ct++])}else if(ot===5||ot===6)throw new e("invalid referred-to flags");Ue.retainBits=dt;let mt=4;Ue.number<=256?mt=1:Ue.number<=65536&&(mt=2);const ut=[];let rt,He;for(rt=0;rt<st;rt++){let Je;mt===1?Je=et[ct]:mt===2?Je=(0,U.readUint16)(et,ct):Je=(0,U.readUint32)(et,ct),ut.push(Je),ct+=mt}if(Ue.referredTo=ut,tt?(Ue.pageAssociation=(0,U.readUint32)(et,ct),ct+=4):Ue.pageAssociation=et[ct++],Ue.length=(0,U.readUint32)(et,ct),ct+=4,Ue.length===4294967295)if(Ye===38){const Je=ye(et,ct),bt=!!(et[ct+Ce]&1),pt=6,wt=new Uint8Array(pt);for(bt||(wt[0]=255,wt[1]=172),wt[2]=Je.height>>>24&255,wt[3]=Je.height>>16&255,wt[4]=Je.height>>8&255,wt[5]=Je.height&255,rt=ct,He=et.length;rt<He;rt++){let Pt=0;for(;Pt<pt&&wt[Pt]===et[rt+Pt];)Pt++;if(Pt===pt){Ue.length=rt+pt;break}}if(Ue.length===4294967295)throw new e("segment end was not found")}else throw new e("invalid unknown segment length");return Ue.headerEnd=ct,Ue}function ve(et,Qe,Ue,$e){const Ye=[];let tt=Ue;for(;tt<$e;){const ot=fe(Qe,tt);tt=ot.headerEnd;const st={header:ot,data:Qe};if(et.randomAccess||(st.start=tt,tt+=ot.length,st.end=tt),Ye.push(st),ot.type===51)break}if(et.randomAccess)for(let ot=0,st=Ye.length;ot<st;ot++)Ye[ot].start=tt,tt+=Ye[ot].header.length,Ye[ot].end=tt;return Ye}function ye(et,Qe){return{width:(0,U.readUint32)(et,Qe),height:(0,U.readUint32)(et,Qe+4),x:(0,U.readUint32)(et,Qe+8),y:(0,U.readUint32)(et,Qe+12),combinationOperator:et[Qe+16]&7}}const Ce=17;function pe(et,Qe){const Ue=et.header,$e=et.data,Ye=et.end;let tt=et.start,ot,st,dt,ct;switch(Ue.type){case 0:const ut={},rt=(0,U.readUint16)($e,tt);if(ut.huffman=!!(rt&1),ut.refinement=!!(rt&2),ut.huffmanDHSelector=rt>>2&3,ut.huffmanDWSelector=rt>>4&3,ut.bitmapSizeSelector=rt>>6&1,ut.aggregationInstancesSelector=rt>>7&1,ut.bitmapCodingContextUsed=!!(rt&256),ut.bitmapCodingContextRetained=!!(rt&512),ut.template=rt>>10&3,ut.refinementTemplate=rt>>12&1,tt+=2,!ut.huffman){for(ct=ut.template===0?4:1,st=[],dt=0;dt<ct;dt++)st.push({x:(0,U.readInt8)($e,tt),y:(0,U.readInt8)($e,tt+1)}),tt+=2;ut.at=st}if(ut.refinement&&!ut.refinementTemplate){for(st=[],dt=0;dt<2;dt++)st.push({x:(0,U.readInt8)($e,tt),y:(0,U.readInt8)($e,tt+1)}),tt+=2;ut.refinementAt=st}ut.numberOfExportedSymbols=(0,U.readUint32)($e,tt),tt+=4,ut.numberOfNewSymbols=(0,U.readUint32)($e,tt),tt+=4,ot=[ut,Ue.number,Ue.referredTo,$e,tt,Ye];break;case 6:case 7:const He={};He.info=ye($e,tt),tt+=Ce;const Je=(0,U.readUint16)($e,tt);if(tt+=2,He.huffman=!!(Je&1),He.refinement=!!(Je&2),He.logStripSize=Je>>2&3,He.stripSize=1<<He.logStripSize,He.referenceCorner=Je>>4&3,He.transposed=!!(Je&64),He.combinationOperator=Je>>7&3,He.defaultPixelValue=Je>>9&1,He.dsOffset=Je<<17>>27,He.refinementTemplate=Je>>15&1,He.huffman){const Mt=(0,U.readUint16)($e,tt);tt+=2,He.huffmanFS=Mt&3,He.huffmanDS=Mt>>2&3,He.huffmanDT=Mt>>4&3,He.huffmanRefinementDW=Mt>>6&3,He.huffmanRefinementDH=Mt>>8&3,He.huffmanRefinementDX=Mt>>10&3,He.huffmanRefinementDY=Mt>>12&3,He.huffmanRefinementSizeSelector=!!(Mt&16384)}if(He.refinement&&!He.refinementTemplate){for(st=[],dt=0;dt<2;dt++)st.push({x:(0,U.readInt8)($e,tt),y:(0,U.readInt8)($e,tt+1)}),tt+=2;He.refinementAt=st}He.numberOfSymbolInstances=(0,U.readUint32)($e,tt),tt+=4,ot=[He,Ue.referredTo,$e,tt,Ye];break;case 16:const St={},bt=$e[tt++];St.mmr=!!(bt&1),St.template=bt>>1&3,St.patternWidth=$e[tt++],St.patternHeight=$e[tt++],St.maxPatternIndex=(0,U.readUint32)($e,tt),tt+=4,ot=[St,Ue.number,$e,tt,Ye];break;case 22:case 23:const pt={};pt.info=ye($e,tt),tt+=Ce;const wt=$e[tt++];pt.mmr=!!(wt&1),pt.template=wt>>1&3,pt.enableSkip=!!(wt&8),pt.combinationOperator=wt>>4&7,pt.defaultPixelValue=wt>>7&1,pt.gridWidth=(0,U.readUint32)($e,tt),tt+=4,pt.gridHeight=(0,U.readUint32)($e,tt),tt+=4,pt.gridOffsetX=(0,U.readUint32)($e,tt)&4294967295,tt+=4,pt.gridOffsetY=(0,U.readUint32)($e,tt)&4294967295,tt+=4,pt.gridVectorX=(0,U.readUint16)($e,tt),tt+=2,pt.gridVectorY=(0,U.readUint16)($e,tt),tt+=2,ot=[pt,Ue.referredTo,$e,tt,Ye];break;case 38:case 39:const Pt={};Pt.info=ye($e,tt),tt+=Ce;const Nt=$e[tt++];if(Pt.mmr=!!(Nt&1),Pt.template=Nt>>1&3,Pt.prediction=!!(Nt&8),!Pt.mmr){for(ct=Pt.template===0?4:1,st=[],dt=0;dt<ct;dt++)st.push({x:(0,U.readInt8)($e,tt),y:(0,U.readInt8)($e,tt+1)}),tt+=2;Pt.at=st}ot=[Pt,$e,tt,Ye];break;case 48:const Vt={width:(0,U.readUint32)($e,tt),height:(0,U.readUint32)($e,tt+4),resolutionX:(0,U.readUint32)($e,tt+8),resolutionY:(0,U.readUint32)($e,tt+12)};Vt.height===4294967295&&delete Vt.height;const Wt=$e[tt+16];(0,U.readUint16)($e,tt+17),Vt.lossless=!!(Wt&1),Vt.refinement=!!(Wt&2),Vt.defaultPixelValue=Wt>>2&1,Vt.combinationOperator=Wt>>3&3,Vt.requiresBuffer=!!(Wt&32),Vt.combinationOperatorOverride=!!(Wt&64),ot=[Vt];break;case 49:break;case 50:break;case 51:break;case 53:ot=[Ue.number,$e,tt,Ye];break;case 62:break;default:throw new e(`segment type ${Ue.typeName}(${Ue.type}) is not implemented`)}const mt="on"+Ue.typeName;mt in Qe&&Qe[mt].apply(Qe,ot)}function _e(et,Qe){for(let Ue=0,$e=et.length;Ue<$e;Ue++)pe(et[Ue],Qe)}function Ge(et){const Qe=new Ae;for(let Ue=0,$e=et.length;Ue<$e;Ue++){const Ye=et[Ue],tt=ve({},Ye.data,Ye.start,Ye.end);_e(tt,Qe)}return Qe.buffer}class Ae{onPageInformation(Qe){this.currentPageInfo=Qe;const Ue=Qe.width+7>>3,$e=new Uint8ClampedArray(Ue*Qe.height);Qe.defaultPixelValue&&$e.fill(255),this.buffer=$e}drawBitmap(Qe,Ue){const $e=this.currentPageInfo,Ye=Qe.width,tt=Qe.height,ot=$e.width+7>>3,st=$e.combinationOperatorOverride?Qe.combinationOperator:$e.combinationOperator,dt=this.buffer,ct=128>>(Qe.x&7);let mt=Qe.y*ot+(Qe.x>>3),ut,rt,He,Je;switch(st){case 0:for(ut=0;ut<tt;ut++){for(He=ct,Je=mt,rt=0;rt<Ye;rt++)Ue[ut][rt]&&(dt[Je]|=He),He>>=1,He||(He=128,Je++);mt+=ot}break;case 2:for(ut=0;ut<tt;ut++){for(He=ct,Je=mt,rt=0;rt<Ye;rt++)Ue[ut][rt]&&(dt[Je]^=He),He>>=1,He||(He=128,Je++);mt+=ot}break;default:throw new e(`operator ${st} is not supported`)}}onImmediateGenericRegion(Qe,Ue,$e,Ye){const tt=Qe.info,ot=new ie(Ue,$e,Ye),st=se(Qe.mmr,tt.width,tt.height,Qe.template,Qe.prediction,null,Qe.at,ot);this.drawBitmap(tt,st)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(Qe,Ue,$e,Ye,tt,ot){let st,dt;Qe.huffman&&(st=Ke(Qe,$e,this.customTables),dt=new we(Ye,tt,ot));let ct=this.symbols;ct||(this.symbols=ct={});const mt=[];for(const rt of $e){const He=ct[rt];He&&mt.push(...He)}const ut=new ie(Ye,tt,ot);ct[Ue]=me(Qe.huffman,Qe.refinement,mt,Qe.numberOfNewSymbols,Qe.numberOfExportedSymbols,st,Qe.template,Qe.at,Qe.refinementTemplate,Qe.refinementAt,ut,dt)}onImmediateTextRegion(Qe,Ue,$e,Ye,tt){const ot=Qe.info;let st,dt;const ct=this.symbols,mt=[];for(const Je of Ue){const St=ct[Je];St&&mt.push(...St)}const ut=(0,U.log2)(mt.length);Qe.huffman&&(dt=new we($e,Ye,tt),st=Be(Qe,Ue,this.customTables,mt.length,dt));const rt=new ie($e,Ye,tt),He=Ee(Qe.huffman,Qe.refinement,ot.width,ot.height,Qe.defaultPixelValue,Qe.numberOfSymbolInstances,Qe.stripSize,mt,ut,Qe.transposed,Qe.dsOffset,Qe.referenceCorner,Qe.combinationOperator,st,Qe.refinementTemplate,Qe.refinementAt,rt,Qe.logStripSize,dt);this.drawBitmap(ot,He)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(Qe,Ue,$e,Ye,tt){let ot=this.patterns;ot||(this.patterns=ot={});const st=new ie($e,Ye,tt);ot[Ue]=ke(Qe.mmr,Qe.patternWidth,Qe.patternHeight,Qe.maxPatternIndex,Qe.template,st)}onImmediateHalftoneRegion(Qe,Ue,$e,Ye,tt){const ot=this.patterns[Ue[0]],st=Qe.info,dt=new ie($e,Ye,tt),ct=xe(Qe.mmr,ot,Qe.template,st.width,st.height,Qe.defaultPixelValue,Qe.enableSkip,Qe.combinationOperator,Qe.gridWidth,Qe.gridHeight,Qe.gridOffsetX,Qe.gridOffsetY,Qe.gridVectorX,Qe.gridVectorY,dt);this.drawBitmap(st,ct)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(Qe,Ue,$e,Ye){let tt=this.customTables;tt||(this.customTables=tt={}),tt[Qe]=Te(Ue,$e,Ye)}}class Ne{constructor(Qe){Qe.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=Qe[0],this.rangeLength=0,this.prefixCode=Qe[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=Qe[0],this.prefixLength=Qe[1],this.rangeLength=Qe[2],this.prefixCode=Qe[3],this.isLowerRange=Qe[4]==="lower")}}class Ze{constructor(Qe){this.children=[],Qe?(this.isLeaf=!0,this.rangeLength=Qe.rangeLength,this.rangeLow=Qe.rangeLow,this.isLowerRange=Qe.isLowerRange,this.isOOB=Qe.isOOB):this.isLeaf=!1}buildTree(Qe,Ue){const $e=Qe.prefixCode>>Ue&1;if(Ue<=0)this.children[$e]=new Ze(Qe);else{let Ye=this.children[$e];Ye||(this.children[$e]=Ye=new Ze(null)),Ye.buildTree(Qe,Ue-1)}}decodeNode(Qe){if(this.isLeaf){if(this.isOOB)return null;const $e=Qe.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-$e:$e)}const Ue=this.children[Qe.readBit()];if(!Ue)throw new e("invalid Huffman data");return Ue.decodeNode(Qe)}}class ze{constructor(Qe,Ue){Ue||this.assignPrefixCodes(Qe),this.rootNode=new Ze(null);for(let $e=0,Ye=Qe.length;$e<Ye;$e++){const tt=Qe[$e];tt.prefixLength>0&&this.rootNode.buildTree(tt,tt.prefixLength-1)}}decode(Qe){return this.rootNode.decodeNode(Qe)}assignPrefixCodes(Qe){const Ue=Qe.length;let $e=0;for(let mt=0;mt<Ue;mt++)$e=Math.max($e,Qe[mt].prefixLength);const Ye=new Uint32Array($e+1);for(let mt=0;mt<Ue;mt++)Ye[Qe[mt].prefixLength]++;let tt=1,ot=0,st,dt,ct;for(Ye[0]=0;tt<=$e;){for(ot=ot+Ye[tt-1]<<1,st=ot,dt=0;dt<Ue;)ct=Qe[dt],ct.prefixLength===tt&&(ct.prefixCode=st,st++),dt++;tt++}}}function Te(et,Qe,Ue){const $e=et[Qe],Ye=(0,U.readUint32)(et,Qe+1)&4294967295,tt=(0,U.readUint32)(et,Qe+5)&4294967295,ot=new we(et,Qe+9,Ue),st=($e>>1&7)+1,dt=($e>>4&7)+1,ct=[];let mt,ut,rt=Ye;do mt=ot.readBits(st),ut=ot.readBits(dt),ct.push(new Ne([rt,mt,ut,0])),rt+=1<<ut;while(rt<tt);return mt=ot.readBits(st),ct.push(new Ne([Ye-1,mt,32,0,"lower"])),mt=ot.readBits(st),ct.push(new Ne([tt,mt,32,0])),$e&1&&(mt=ot.readBits(st),ct.push(new Ne([mt,0]))),new ze(ct,!1)}const Fe={};function Pe(et){let Qe=Fe[et];if(Qe)return Qe;let Ue;switch(et){case 1:Ue=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:Ue=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:Ue=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:Ue=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:Ue=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:Ue=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:Ue=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:Ue=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:Ue=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:Ue=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:Ue=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:Ue=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:Ue=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:Ue=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:Ue=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new e(`standard table B.${et} does not exist`)}for(let $e=0,Ye=Ue.length;$e<Ye;$e++)Ue[$e]=new Ne(Ue[$e]);return Qe=new ze(Ue,!0),Fe[et]=Qe,Qe}class we{constructor(Qe,Ue,$e){this.data=Qe,this.start=Ue,this.end=$e,this.position=Ue,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new e("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const Qe=this.currentByte>>this.shift&1;return this.shift--,Qe}readBits(Qe){let Ue=0,$e;for($e=Qe-1;$e>=0;$e--)Ue|=this.readBit()<<$e;return Ue}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function Ie(et,Qe,Ue){let $e=0;for(let Ye=0,tt=Qe.length;Ye<tt;Ye++){const ot=Ue[Qe[Ye]];if(ot){if(et===$e)return ot;$e++}}throw new e("can't find custom Huffman table")}function Be(et,Qe,Ue,$e,Ye){const tt=[];for(let rt=0;rt<=34;rt++){const He=Ye.readBits(4);tt.push(new Ne([rt,He,0,0]))}const ot=new ze(tt,!1);tt.length=0;for(let rt=0;rt<$e;){const He=ot.decode(Ye);if(He>=32){let Je,St,bt;switch(He){case 32:if(rt===0)throw new e("no previous value in symbol ID table");St=Ye.readBits(2)+3,Je=tt[rt-1].prefixLength;break;case 33:St=Ye.readBits(3)+3,Je=0;break;case 34:St=Ye.readBits(7)+11,Je=0;break;default:throw new e("invalid code length in symbol ID table")}for(bt=0;bt<St;bt++)tt.push(new Ne([rt,Je,0,0])),rt++}else tt.push(new Ne([rt,He,0,0])),rt++}Ye.byteAlign();const st=new ze(tt,!1);let dt=0,ct,mt,ut;switch(et.huffmanFS){case 0:case 1:ct=Pe(et.huffmanFS+6);break;case 3:ct=Ie(dt,Qe,Ue),dt++;break;default:throw new e("invalid Huffman FS selector")}switch(et.huffmanDS){case 0:case 1:case 2:mt=Pe(et.huffmanDS+8);break;case 3:mt=Ie(dt,Qe,Ue),dt++;break;default:throw new e("invalid Huffman DS selector")}switch(et.huffmanDT){case 0:case 1:case 2:ut=Pe(et.huffmanDT+11);break;case 3:ut=Ie(dt,Qe,Ue),dt++;break;default:throw new e("invalid Huffman DT selector")}if(et.refinement)throw new e("refinement with Huffman is not supported");return{symbolIDTable:st,tableFirstS:ct,tableDeltaS:mt,tableDeltaT:ut}}function Ke(et,Qe,Ue){let $e=0,Ye,tt;switch(et.huffmanDHSelector){case 0:case 1:Ye=Pe(et.huffmanDHSelector+4);break;case 3:Ye=Ie($e,Qe,Ue),$e++;break;default:throw new e("invalid Huffman DH selector")}switch(et.huffmanDWSelector){case 0:case 1:tt=Pe(et.huffmanDWSelector+2);break;case 3:tt=Ie($e,Qe,Ue),$e++;break;default:throw new e("invalid Huffman DW selector")}let ot,st;return et.bitmapSizeSelector?(ot=Ie($e,Qe,Ue),$e++):ot=Pe(1),et.aggregationInstancesSelector?st=Ie($e,Qe,Ue):st=Pe(1),{tableDeltaHeight:Ye,tableDeltaWidth:tt,tableBitmapSize:ot,tableAggregateInstances:st}}function Ve(et,Qe,Ue){const $e=[];for(let Ye=0;Ye<Ue;Ye++){const tt=new Uint8Array(Qe);$e.push(tt);for(let ot=0;ot<Qe;ot++)tt[ot]=et.readBit();et.byteAlign()}return $e}function je(et,Qe,Ue,$e){const Ye={K:-1,Columns:Qe,Rows:Ue,BlackIs1:!0,EndOfBlock:$e},tt=new z.CCITTFaxDecoder(et,Ye),ot=[];let st,dt=!1;for(let ct=0;ct<Ue;ct++){const mt=new Uint8Array(Qe);ot.push(mt);let ut=-1;for(let rt=0;rt<Qe;rt++)ut<0&&(st=tt.readNextChar(),st===-1&&(st=0,dt=!0),ut=7),mt[rt]=st>>ut&1,ut--}if($e&&!dt)for(let mt=0;mt<5&&tt.readNextChar()!==-1;mt++);return ot}class Le{parseChunks(Qe){return Ge(Qe)}parse(Qe){throw new Error("Not implemented: Jbig2Image.parse")}}D.Jbig2Image=Le},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ArithmeticDecoder=void 0;const B=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class R{constructor(K,z,e){this.data=K,this.bp=z,this.dataEnd=e,this.chigh=K[z],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const K=this.data;let z=this.bp;K[z]===255?K[z+1]>143?(this.clow+=65280,this.ct=8):(z++,this.clow+=K[z]<<9,this.ct=7,this.bp=z):(z++,this.clow+=z<this.dataEnd?K[z]<<8:65280,this.ct=8,this.bp=z),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(K,z){let e=K[z]>>1,ae=K[z]&1;const ie=B[e],he=ie.qe;let J,W=this.a-he;if(this.chigh<he)W<he?(W=he,J=ae,e=ie.nmps):(W=he,J=1^ae,ie.switchFlag===1&&(ae=J),e=ie.nlps);else{if(this.chigh-=he,W&32768)return this.a=W,ae;W<he?(J=1^ae,ie.switchFlag===1&&(ae=J),e=ie.nlps):(J=ae,e=ie.nmps)}do this.ct===0&&this.byteIn(),W<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(W&32768));return this.a=W,K[z]=e<<1|ae,J}}D.ArithmeticDecoder=R},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.JpegStream=void 0;var R=B(144),U=B(130),K=B(153),z=B(2);class e extends R.DecodeStream{constructor(ie,he,J){let W;for(;(W=ie.getByte())!==-1;)if(W===255){ie.skip(-1);break}super(he),this.stream=ie,this.dict=ie.dict,this.maybeLength=he,this.params=J}get bytes(){return(0,z.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(ie){}readBlock(){if(this.eof)return;const ie={decodeTransform:void 0,colorTransform:void 0},he=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(he)){const X=this.dict.get("BPC","BitsPerComponent")||8,L=he.length,Q=new Int32Array(L);let ce=!1;const de=(1<<X)-1;for(let se=0;se<L;se+=2)Q[se]=(he[se+1]-he[se])*256|0,Q[se+1]=he[se]*de|0,(Q[se]!==256||Q[se+1]!==0)&&(ce=!0);ce&&(ie.decodeTransform=Q)}if(this.params instanceof U.Dict){const X=this.params.get("ColorTransform");Number.isInteger(X)&&(ie.colorTransform=X)}const J=new K.JpegImage(ie);J.parse(this.bytes);const W=J.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=W,this.bufferLength=W.length,this.eof=!0}}D.JpegStream=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.JpegImage=void 0;var R=B(2),U=B(131);class K extends R.BaseException{constructor(ve){super(`JPEG error: ${ve}`,"JpegError")}}class z extends R.BaseException{constructor(ve,ye){super(ve,"DNLMarkerError"),this.scanLines=ye}}class e extends R.BaseException{constructor(ve){super(ve,"EOIMarkerError")}}const ae=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),ie=4017,he=799,J=3406,W=2276,X=1567,L=3784,Q=5793,ce=2896;function de(fe,ve){let ye=0,Ce,pe,_e=16;for(;_e>0&&!fe[_e-1];)_e--;const Ge=[{children:[],index:0}];let Ae=Ge[0],Ne;for(Ce=0;Ce<_e;Ce++){for(pe=0;pe<fe[Ce];pe++){for(Ae=Ge.pop(),Ae.children[Ae.index]=ve[ye];Ae.index>0;)Ae=Ge.pop();for(Ae.index++,Ge.push(Ae);Ge.length<=Ce;)Ge.push(Ne={children:[],index:0}),Ae.children[Ae.index]=Ne.children,Ae=Ne;ye++}Ce+1<_e&&(Ge.push(Ne={children:[],index:0}),Ae.children[Ae.index]=Ne.children,Ae=Ne)}return Ge[0].children}function se(fe,ve,ye){return 64*((fe.blocksPerLine+1)*ve+ye)}function oe(fe,ve,ye,Ce,pe,_e,Ge,Ae,Ne){let Ze=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1;const ze=ye.mcusPerLine,Te=ye.progressive,Fe=ve;let Pe=0,we=0;function Ie(){if(we>0)return we--,Pe>>we&1;if(Pe=fe[ve++],Pe===255){const Vt=fe[ve++];if(Vt){if(Vt===220&&Ze){ve+=2;const Wt=(0,U.readUint16)(fe,ve);if(ve+=2,Wt>0&&Wt!==ye.scanLines)throw new z("Found DNL marker (0xFFDC) while parsing scan data",Wt)}else if(Vt===217){if(Ze){const Wt=ot*(ye.precision===8?8:0);if(Wt>0&&Math.round(ye.scanLines/Wt)>=10)throw new z("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",Wt)}throw new e("Found EOI marker (0xFFD9) while parsing scan data")}throw new K(`unexpected marker ${(Pe<<8|Vt).toString(16)}`)}}return we=7,Pe>>>7}function Be(Vt){let Wt=Vt;for(;;){switch(Wt=Wt[Ie()],typeof Wt){case"number":return Wt;case"object":continue}throw new K("invalid huffman sequence")}}function Ke(Vt){let Wt=0;for(;Vt>0;)Wt=Wt<<1|Ie(),Vt--;return Wt}function Ve(Vt){if(Vt===1)return Ie()===1?1:-1;const Wt=Ke(Vt);return Wt>=1<<Vt-1?Wt:Wt+(-1<<Vt)+1}function je(Vt,Wt){const Mt=Be(Vt.huffmanTableDC),$t=Mt===0?0:Ve(Mt);Vt.blockData[Wt]=Vt.pred+=$t;let Yt=1;for(;Yt<64;){const Ft=Be(Vt.huffmanTableAC),Jt=Ft&15,er=Ft>>4;if(Jt===0){if(er<15)break;Yt+=16;continue}Yt+=er;const Bt=ae[Yt];Vt.blockData[Wt+Bt]=Ve(Jt),Yt++}}function Le(Vt,Wt){const Mt=Be(Vt.huffmanTableDC),$t=Mt===0?0:Ve(Mt)<<Ne;Vt.blockData[Wt]=Vt.pred+=$t}function et(Vt,Wt){Vt.blockData[Wt]|=Ie()<<Ne}let Qe=0;function Ue(Vt,Wt){if(Qe>0){Qe--;return}let Mt=_e;const $t=Ge;for(;Mt<=$t;){const Yt=Be(Vt.huffmanTableAC),Ft=Yt&15,Jt=Yt>>4;if(Ft===0){if(Jt<15){Qe=Ke(Jt)+(1<<Jt)-1;break}Mt+=16;continue}Mt+=Jt;const er=ae[Mt];Vt.blockData[Wt+er]=Ve(Ft)*(1<<Ne),Mt++}}let $e=0,Ye;function tt(Vt,Wt){let Mt=_e;const $t=Ge;let Yt=0,Ft,Jt;for(;Mt<=$t;){const er=Wt+ae[Mt],Bt=Vt.blockData[er]<0?-1:1;switch($e){case 0:if(Jt=Be(Vt.huffmanTableAC),Ft=Jt&15,Yt=Jt>>4,Ft===0)Yt<15?(Qe=Ke(Yt)+(1<<Yt),$e=4):(Yt=16,$e=1);else{if(Ft!==1)throw new K("invalid ACn encoding");Ye=Ve(Ft),$e=Yt?2:3}continue;case 1:case 2:Vt.blockData[er]?Vt.blockData[er]+=Bt*(Ie()<<Ne):(Yt--,Yt===0&&($e=$e===2?3:0));break;case 3:Vt.blockData[er]?Vt.blockData[er]+=Bt*(Ie()<<Ne):(Vt.blockData[er]=Ye<<Ne,$e=0);break;case 4:Vt.blockData[er]&&(Vt.blockData[er]+=Bt*(Ie()<<Ne));break}Mt++}$e===4&&(Qe--,Qe===0&&($e=0))}let ot=0;function st(Vt,Wt,Mt,$t,Yt){const Ft=Mt/ze|0,Jt=Mt%ze;ot=Ft*Vt.v+$t;const er=Jt*Vt.h+Yt,Bt=se(Vt,ot,er);Wt(Vt,Bt)}function dt(Vt,Wt,Mt){ot=Mt/Vt.blocksPerLine|0;const $t=Mt%Vt.blocksPerLine,Yt=se(Vt,ot,$t);Wt(Vt,Yt)}const ct=Ce.length;let mt,ut,rt,He,Je,St;Te?_e===0?St=Ae===0?Le:et:St=Ae===0?Ue:tt:St=je;let bt=0,pt,wt;ct===1?wt=Ce[0].blocksPerLine*Ce[0].blocksPerColumn:wt=ze*ye.mcusPerColumn;let Pt,Nt;for(;bt<=wt;){const Vt=pe?Math.min(wt-bt,pe):wt;if(Vt>0){for(ut=0;ut<ct;ut++)Ce[ut].pred=0;if(Qe=0,ct===1)for(mt=Ce[0],Je=0;Je<Vt;Je++)dt(mt,St,bt),bt++;else for(Je=0;Je<Vt;Je++){for(ut=0;ut<ct;ut++)for(mt=Ce[ut],Pt=mt.h,Nt=mt.v,rt=0;rt<Nt;rt++)for(He=0;He<Pt;He++)st(mt,St,bt,rt,He);bt++}}if(we=0,pt=ke(fe,ve),!pt)break;if(pt.invalid){const Wt=Vt>0?"unexpected":"excessive";(0,R.warn)(`decodeScan - ${Wt} MCU data, current marker is: ${pt.invalid}`),ve=pt.offset}if(pt.marker>=65488&&pt.marker<=65495)ve+=2;else break}return ve-Fe}function me(fe,ve,ye){const Ce=fe.quantizationTable,pe=fe.blockData;let _e,Ge,Ae,Ne,Ze,ze,Te,Fe,Pe,we,Ie,Be,Ke,Ve,je,Le,et;if(!Ce)throw new K("missing required Quantization Table.");for(let Qe=0;Qe<64;Qe+=8){if(Pe=pe[ve+Qe],we=pe[ve+Qe+1],Ie=pe[ve+Qe+2],Be=pe[ve+Qe+3],Ke=pe[ve+Qe+4],Ve=pe[ve+Qe+5],je=pe[ve+Qe+6],Le=pe[ve+Qe+7],Pe*=Ce[Qe],!(we|Ie|Be|Ke|Ve|je|Le)){et=Q*Pe+512>>10,ye[Qe]=et,ye[Qe+1]=et,ye[Qe+2]=et,ye[Qe+3]=et,ye[Qe+4]=et,ye[Qe+5]=et,ye[Qe+6]=et,ye[Qe+7]=et;continue}we*=Ce[Qe+1],Ie*=Ce[Qe+2],Be*=Ce[Qe+3],Ke*=Ce[Qe+4],Ve*=Ce[Qe+5],je*=Ce[Qe+6],Le*=Ce[Qe+7],_e=Q*Pe+128>>8,Ge=Q*Ke+128>>8,Ae=Ie,Ne=je,Ze=ce*(we-Le)+128>>8,Fe=ce*(we+Le)+128>>8,ze=Be<<4,Te=Ve<<4,_e=_e+Ge+1>>1,Ge=_e-Ge,et=Ae*L+Ne*X+128>>8,Ae=Ae*X-Ne*L+128>>8,Ne=et,Ze=Ze+Te+1>>1,Te=Ze-Te,Fe=Fe+ze+1>>1,ze=Fe-ze,_e=_e+Ne+1>>1,Ne=_e-Ne,Ge=Ge+Ae+1>>1,Ae=Ge-Ae,et=Ze*W+Fe*J+2048>>12,Ze=Ze*J-Fe*W+2048>>12,Fe=et,et=ze*he+Te*ie+2048>>12,ze=ze*ie-Te*he+2048>>12,Te=et,ye[Qe]=_e+Fe,ye[Qe+7]=_e-Fe,ye[Qe+1]=Ge+Te,ye[Qe+6]=Ge-Te,ye[Qe+2]=Ae+ze,ye[Qe+5]=Ae-ze,ye[Qe+3]=Ne+Ze,ye[Qe+4]=Ne-Ze}for(let Qe=0;Qe<8;++Qe){if(Pe=ye[Qe],we=ye[Qe+8],Ie=ye[Qe+16],Be=ye[Qe+24],Ke=ye[Qe+32],Ve=ye[Qe+40],je=ye[Qe+48],Le=ye[Qe+56],!(we|Ie|Be|Ke|Ve|je|Le)){et=Q*Pe+8192>>14,et<-2040?et=0:et>=2024?et=255:et=et+2056>>4,pe[ve+Qe]=et,pe[ve+Qe+8]=et,pe[ve+Qe+16]=et,pe[ve+Qe+24]=et,pe[ve+Qe+32]=et,pe[ve+Qe+40]=et,pe[ve+Qe+48]=et,pe[ve+Qe+56]=et;continue}_e=Q*Pe+2048>>12,Ge=Q*Ke+2048>>12,Ae=Ie,Ne=je,Ze=ce*(we-Le)+2048>>12,Fe=ce*(we+Le)+2048>>12,ze=Be,Te=Ve,_e=(_e+Ge+1>>1)+4112,Ge=_e-Ge,et=Ae*L+Ne*X+2048>>12,Ae=Ae*X-Ne*L+2048>>12,Ne=et,Ze=Ze+Te+1>>1,Te=Ze-Te,Fe=Fe+ze+1>>1,ze=Fe-ze,_e=_e+Ne+1>>1,Ne=_e-Ne,Ge=Ge+Ae+1>>1,Ae=Ge-Ae,et=Ze*W+Fe*J+2048>>12,Ze=Ze*J-Fe*W+2048>>12,Fe=et,et=ze*he+Te*ie+2048>>12,ze=ze*ie-Te*he+2048>>12,Te=et,Pe=_e+Fe,Le=_e-Fe,we=Ge+Te,je=Ge-Te,Ie=Ae+ze,Ve=Ae-ze,Be=Ne+Ze,Ke=Ne-Ze,Pe<16?Pe=0:Pe>=4080?Pe=255:Pe>>=4,we<16?we=0:we>=4080?we=255:we>>=4,Ie<16?Ie=0:Ie>=4080?Ie=255:Ie>>=4,Be<16?Be=0:Be>=4080?Be=255:Be>>=4,Ke<16?Ke=0:Ke>=4080?Ke=255:Ke>>=4,Ve<16?Ve=0:Ve>=4080?Ve=255:Ve>>=4,je<16?je=0:je>=4080?je=255:je>>=4,Le<16?Le=0:Le>=4080?Le=255:Le>>=4,pe[ve+Qe]=Pe,pe[ve+Qe+8]=we,pe[ve+Qe+16]=Ie,pe[ve+Qe+24]=Be,pe[ve+Qe+32]=Ke,pe[ve+Qe+40]=Ve,pe[ve+Qe+48]=je,pe[ve+Qe+56]=Le}}function Ee(fe,ve){const ye=ve.blocksPerLine,Ce=ve.blocksPerColumn,pe=new Int16Array(64);for(let _e=0;_e<Ce;_e++)for(let Ge=0;Ge<ye;Ge++){const Ae=se(ve,_e,Ge);me(ve,Ae,pe)}return ve.blockData}function ke(fe,ve){let ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve;const Ce=fe.length-1;let pe=ye<ve?ye:ve;if(ve>=Ce)return null;const _e=(0,U.readUint16)(fe,ve);if(_e>=65472&&_e<=65534)return{invalid:null,marker:_e,offset:ve};let Ge=(0,U.readUint16)(fe,pe);for(;!(Ge>=65472&&Ge<=65534);){if(++pe>=Ce)return null;Ge=(0,U.readUint16)(fe,pe)}return{invalid:_e.toString(16),marker:Ge,offset:pe}}class xe{constructor(){let{decodeTransform:ve=null,colorTransform:ye=-1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._decodeTransform=ve,this._colorTransform=ye}parse(ve){let{dnlScanLines:ye=null}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function Ce(){const Ie=(0,U.readUint16)(ve,_e);_e+=2;let Be=_e+Ie-2;const Ke=ke(ve,Be,_e);Ke&&Ke.invalid&&((0,R.warn)("readDataBlock - incorrect length, current marker is: "+Ke.invalid),Be=Ke.offset);const Ve=ve.subarray(_e,Be);return _e+=Ve.length,Ve}function pe(Ie){const Be=Math.ceil(Ie.samplesPerLine/8/Ie.maxH),Ke=Math.ceil(Ie.scanLines/8/Ie.maxV);for(let Ve=0,je=Ie.components.length;Ve<je;Ve++){const Le=Ie.components[Ve],et=Math.ceil(Math.ceil(Ie.samplesPerLine/8)*Le.h/Ie.maxH),Qe=Math.ceil(Math.ceil(Ie.scanLines/8)*Le.v/Ie.maxV),Ue=Be*Le.h,Ye=64*(Ke*Le.v)*(Ue+1);Le.blockData=new Int16Array(Ye),Le.blocksPerLine=et,Le.blocksPerColumn=Qe}Ie.mcusPerLine=Be,Ie.mcusPerColumn=Ke}let _e=0,Ge=null,Ae=null,Ne,Ze,ze=0;const Te=[],Fe=[],Pe=[];let we=(0,U.readUint16)(ve,_e);if(_e+=2,we!==65496)throw new K("SOI not found");we=(0,U.readUint16)(ve,_e),_e+=2;e:for(;we!==65497;){let Ie,Be,Ke;switch(we){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const Ve=Ce();we===65504&&Ve[0]===74&&Ve[1]===70&&Ve[2]===73&&Ve[3]===70&&Ve[4]===0&&(Ge={version:{major:Ve[5],minor:Ve[6]},densityUnits:Ve[7],xDensity:Ve[8]<<8|Ve[9],yDensity:Ve[10]<<8|Ve[11],thumbWidth:Ve[12],thumbHeight:Ve[13],thumbData:Ve.subarray(14,14+3*Ve[12]*Ve[13])}),we===65518&&Ve[0]===65&&Ve[1]===100&&Ve[2]===111&&Ve[3]===98&&Ve[4]===101&&(Ae={version:Ve[5]<<8|Ve[6],flags0:Ve[7]<<8|Ve[8],flags1:Ve[9]<<8|Ve[10],transformCode:Ve[11]});break;case 65499:const je=(0,U.readUint16)(ve,_e);_e+=2;const Le=je+_e-2;let et;for(;_e<Le;){const He=ve[_e++],Je=new Uint16Array(64);if(He>>4)if(He>>4===1)for(Be=0;Be<64;Be++)et=ae[Be],Je[et]=(0,U.readUint16)(ve,_e),_e+=2;else throw new K("DQT - invalid table spec");else for(Be=0;Be<64;Be++)et=ae[Be],Je[et]=ve[_e++];Te[He&15]=Je}break;case 65472:case 65473:case 65474:if(Ne)throw new K("Only single frame JPEGs supported");_e+=2,Ne={},Ne.extended=we===65473,Ne.progressive=we===65474,Ne.precision=ve[_e++];const Qe=(0,U.readUint16)(ve,_e);_e+=2,Ne.scanLines=ye||Qe,Ne.samplesPerLine=(0,U.readUint16)(ve,_e),_e+=2,Ne.components=[],Ne.componentIds={};const Ue=ve[_e++];let $e=0,Ye=0;for(Ie=0;Ie<Ue;Ie++){const He=ve[_e],Je=ve[_e+1]>>4,St=ve[_e+1]&15;$e<Je&&($e=Je),Ye<St&&(Ye=St);const bt=ve[_e+2];Ke=Ne.components.push({h:Je,v:St,quantizationId:bt,quantizationTable:null}),Ne.componentIds[He]=Ke-1,_e+=3}Ne.maxH=$e,Ne.maxV=Ye,pe(Ne);break;case 65476:const tt=(0,U.readUint16)(ve,_e);for(_e+=2,Ie=2;Ie<tt;){const He=ve[_e++],Je=new Uint8Array(16);let St=0;for(Be=0;Be<16;Be++,_e++)St+=Je[Be]=ve[_e];const bt=new Uint8Array(St);for(Be=0;Be<St;Be++,_e++)bt[Be]=ve[_e];Ie+=17+St,(He>>4?Fe:Pe)[He&15]=de(Je,bt)}break;case 65501:_e+=2,Ze=(0,U.readUint16)(ve,_e),_e+=2;break;case 65498:const ot=++ze===1&&!ye;_e+=2;const st=ve[_e++],dt=[];for(Ie=0;Ie<st;Ie++){const He=ve[_e++],Je=Ne.componentIds[He],St=Ne.components[Je];St.index=He;const bt=ve[_e++];St.huffmanTableDC=Pe[bt>>4],St.huffmanTableAC=Fe[bt&15],dt.push(St)}const ct=ve[_e++],mt=ve[_e++],ut=ve[_e++];try{const He=oe(ve,_e,Ne,dt,Ze,ct,mt,ut>>4,ut&15,ot);_e+=He}catch(He){if(He instanceof z)return(0,R.warn)(`${He.message} -- attempting to re-parse the JPEG image.`),this.parse(ve,{dnlScanLines:He.scanLines});if(He instanceof e){(0,R.warn)(`${He.message} -- ignoring the rest of the image data.`);break e}throw He}break;case 65500:_e+=4;break;case 65535:ve[_e]!==255&&_e--;break;default:const rt=ke(ve,_e-2,_e-3);if(rt&&rt.invalid){(0,R.warn)("JpegImage.parse - unexpected data, current marker is: "+rt.invalid),_e=rt.offset;break}if(!rt||_e>=ve.length-1){(0,R.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new K("JpegImage.parse - unknown marker: "+we.toString(16))}we=(0,U.readUint16)(ve,_e),_e+=2}this.width=Ne.samplesPerLine,this.height=Ne.scanLines,this.jfif=Ge,this.adobe=Ae,this.components=[];for(let Ie=0,Be=Ne.components.length;Ie<Be;Ie++){const Ke=Ne.components[Ie],Ve=Te[Ke.quantizationId];Ve&&(Ke.quantizationTable=Ve),this.components.push({index:Ke.index,output:Ee(Ne,Ke),scaleX:Ke.h/Ne.maxH,scaleY:Ke.v/Ne.maxV,blocksPerLine:Ke.blocksPerLine,blocksPerColumn:Ke.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(ve,ye){let Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const pe=this.width/ve,_e=this.height/ye;let Ge,Ae,Ne,Ze,ze,Te,Fe,Pe,we,Ie,Be=0,Ke;const Ve=this.components.length,je=ve*ye*Ve,Le=new Uint8ClampedArray(je),et=new Uint32Array(ve),Qe=4294967288;let Ue;for(Fe=0;Fe<Ve;Fe++){if(Ge=this.components[Fe],Ae=Ge.scaleX*pe,Ne=Ge.scaleY*_e,Be=Fe,Ke=Ge.output,Ze=Ge.blocksPerLine+1<<3,Ae!==Ue){for(ze=0;ze<ve;ze++)Pe=0|ze*Ae,et[ze]=(Pe&Qe)<<3|Pe&7;Ue=Ae}for(Te=0;Te<ye;Te++)for(Pe=0|Te*Ne,Ie=Ze*(Pe&Qe)|(Pe&7)<<3,ze=0;ze<ve;ze++)Le[Be]=Ke[Ie+et[ze]],Be+=Ve}let $e=this._decodeTransform;if(!Ce&&Ve===4&&!$e&&($e=new Int32Array([-256,255,-256,255,-256,255,-256,255])),$e)for(Fe=0;Fe<je;)for(Pe=0,we=0;Pe<Ve;Pe++,Fe++,we+=2)Le[Fe]=(Le[Fe]*$e[we]>>8)+$e[we+1];return Le}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(ve){let ye,Ce,pe;for(let _e=0,Ge=ve.length;_e<Ge;_e+=3)ye=ve[_e],Ce=ve[_e+1],pe=ve[_e+2],ve[_e]=ye-179.456+1.402*pe,ve[_e+1]=ye+135.459-.344*Ce-.714*pe,ve[_e+2]=ye-226.816+1.772*Ce;return ve}_convertYcckToRgb(ve){let ye,Ce,pe,_e,Ge=0;for(let Ae=0,Ne=ve.length;Ae<Ne;Ae+=4)ye=ve[Ae],Ce=ve[Ae+1],pe=ve[Ae+2],_e=ve[Ae+3],ve[Ge++]=-122.67195406894+Ce*(-660635669420364e-19*Ce+.000437130475926232*pe-54080610064599e-18*ye+.00048449797120281*_e-.154362151871126)+pe*(-.000957964378445773*pe+.000817076911346625*ye-.00477271405408747*_e+1.53380253221734)+ye*(.000961250184130688*ye-.00266257332283933*_e+.48357088451265)+_e*(-.000336197177618394*_e+.484791561490776),ve[Ge++]=107.268039397724+Ce*(219927104525741e-19*Ce-.000640992018297945*pe+.000659397001245577*ye+.000426105652938837*_e-.176491792462875)+pe*(-.000778269941513683*pe+.00130872261408275*ye+.000770482631801132*_e-.151051492775562)+ye*(.00126935368114843*ye-.00265090189010898*_e+.25802910206845)+_e*(-.000318913117588328*_e-.213742400323665),ve[Ge++]=-20.810012546947+Ce*(-.000570115196973677*Ce-263409051004589e-19*pe+.0020741088115012*ye-.00288260236853442*_e+.814272968359295)+pe*(-153496057440975e-19*pe-.000132689043961446*ye+.000560833691242812*_e-.195152027534049)+ye*(.00174418132927582*ye-.00255243321439347*_e+.116935020465145)+_e*(-.000343531996510555*_e+.24165260232407);return ve.subarray(0,Ge)}_convertYcckToCmyk(ve){let ye,Ce,pe;for(let _e=0,Ge=ve.length;_e<Ge;_e+=4)ye=ve[_e],Ce=ve[_e+1],pe=ve[_e+2],ve[_e]=434.456-ye-1.402*pe,ve[_e+1]=119.541-ye+.344*Ce+.714*pe,ve[_e+2]=481.816-ye-1.772*Ce;return ve}_convertCmykToRgb(ve){let ye,Ce,pe,_e,Ge=0;for(let Ae=0,Ne=ve.length;Ae<Ne;Ae+=4)ye=ve[Ae],Ce=ve[Ae+1],pe=ve[Ae+2],_e=ve[Ae+3],ve[Ge++]=255+ye*(-6747147073602441e-20*ye+.0008379262121013727*Ce+.0002894718188643294*pe+.003264231057537806*_e-1.1185611867203937)+Ce*(26374107616089405e-21*Ce-8626949158638572e-20*pe-.0002748769067499491*_e-.02155688794978967)+pe*(-3878099212869363e-20*pe-.0003267808279485286*_e+.0686742238595345)-_e*(.0003361971776183937*_e+.7430659151342254),ve[Ge++]=255+ye*(.00013596372813588848*ye+.000924537132573585*Ce+.00010567359618683593*pe+.0004791864687436512*_e-.3109689587515875)+Ce*(-.00023545346108370344*Ce+.0002702845253534714*pe+.0020200308977307156*_e-.7488052167015494)+pe*(6834815998235662e-20*pe+.00015168452363460973*_e-.09751927774728933)-_e*(.0003189131175883281*_e+.7364883807733168),ve[Ge++]=255+ye*(13598650411385307e-21*ye+.00012423956175490851*Ce+.0004751985097583589*pe-36729317476630422e-22*_e-.05562186980264034)+Ce*(.00016141380598724676*Ce+.0009692239130725186*pe+.0007782692450036253*_e-.44015232367526463)+pe*(5068882914068769e-22*pe+.0017778369011375071*_e-.7591454649749609)-_e*(.0003435319965105553*_e+.7063770186160144);return ve.subarray(0,Ge)}getData(ve){let{width:ye,height:Ce,forceRGB:pe=!1,isSourcePDF:_e=!1}=ve;if(this.numComponents>4)throw new K("Unsupported color mode");const Ge=this._getLinearizedBlockData(ye,Ce,_e);if(this.numComponents===1&&pe){const Ae=Ge.length,Ne=new Uint8ClampedArray(Ae*3);let Ze=0;for(let ze=0;ze<Ae;ze++){const Te=Ge[ze];Ne[Ze++]=Te,Ne[Ze++]=Te,Ne[Ze++]=Te}return Ne}else{if(this.numComponents===3&&this._isColorConversionNeeded)return this._convertYccToRgb(Ge);if(this.numComponents===4){if(this._isColorConversionNeeded)return pe?this._convertYcckToRgb(Ge):this._convertYcckToCmyk(Ge);if(pe)return this._convertCmykToRgb(Ge)}}return Ge}}D.JpegImage=xe},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.JpxStream=void 0;var R=B(144),U=B(155),K=B(2);class z extends R.DecodeStream{constructor(ae,ie,he){super(ie),this.stream=ae,this.dict=ae.dict,this.maybeLength=ie,this.params=he}get bytes(){return(0,K.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(ae){}readBlock(){if(this.eof)return;const ae=new U.JpxImage;ae.parse(this.bytes);const ie=ae.width,he=ae.height,J=ae.componentsCount,W=ae.tiles.length;if(W===1)this.buffer=ae.tiles[0].items;else{const X=new Uint8ClampedArray(ie*he*J);for(let L=0;L<W;L++){const Q=ae.tiles[L],ce=Q.width,de=Q.height,se=Q.left,oe=Q.top,me=Q.items;let Ee=0,ke=(ie*oe+se)*J;const xe=ie*J,fe=ce*J;for(let ve=0;ve<de;ve++){const ye=me.subarray(Ee,Ee+fe);X.set(ye,ke),Ee+=fe,ke+=xe}}this.buffer=X}this.bufferLength=this.buffer.length,this.eof=!0}}D.JpxStream=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.JpxImage=void 0;var R=B(2),U=B(131),K=B(151);class z extends R.BaseException{constructor(Te){super(`JPX error: ${Te}`,"JpxError")}}const e={LL:0,LH:1,HL:1,HH:2};class ae{constructor(){this.failOnCorruptedImage=!1}parse(Te){if((0,U.readUint16)(Te,0)===65359){this.parseCodestream(Te,0,Te.length);return}const Pe=Te.length;let we=0;for(;we<Pe;){let Ie=8,Be=(0,U.readUint32)(Te,we);const Ke=(0,U.readUint32)(Te,we+4);if(we+=Ie,Be===1&&(Be=(0,U.readUint32)(Te,we)*4294967296+(0,U.readUint32)(Te,we+4),we+=8,Ie+=8),Be===0&&(Be=Pe-we+Ie),Be<Ie)throw new z("Invalid box field size");const Ve=Be-Ie;let je=!0;switch(Ke){case 1785737832:je=!1;break;case 1668246642:const Le=Te[we];if(Le===1){const Qe=(0,U.readUint32)(Te,we+3);switch(Qe){case 16:case 17:case 18:break;default:(0,R.warn)("Unknown colorspace "+Qe);break}}else Le===2&&(0,R.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(Te,we,we+Ve);break;case 1783636e3:(0,U.readUint32)(Te,we)!==218793738&&(0,R.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const et=String.fromCharCode(Ke>>24&255,Ke>>16&255,Ke>>8&255,Ke&255);(0,R.warn)(`Unsupported header type ${Ke} (${et}).`);break}je&&(we+=Ve)}}parseImageProperties(Te){let Fe=Te.getByte();for(;Fe>=0;){const Pe=Fe;if(Fe=Te.getByte(),(Pe<<8|Fe)===65361){Te.skip(4);const Ie=Te.getInt32()>>>0,Be=Te.getInt32()>>>0,Ke=Te.getInt32()>>>0,Ve=Te.getInt32()>>>0;Te.skip(16);const je=Te.getUint16();this.width=Ie-Ke,this.height=Be-Ve,this.componentsCount=je,this.bitsPerComponent=8;return}}throw new z("No size marker found in JPX stream")}parseCodestream(Te,Fe,Pe){const we={};let Ie=!1;try{let Be=Fe;for(;Be+1<Pe;){const Ke=(0,U.readUint16)(Te,Be);Be+=2;let Ve=0,je,Le,et,Qe,Ue,$e;switch(Ke){case 65359:we.mainHeader=!0;break;case 65497:break;case 65361:Ve=(0,U.readUint16)(Te,Be);const Ye={};Ye.Xsiz=(0,U.readUint32)(Te,Be+4),Ye.Ysiz=(0,U.readUint32)(Te,Be+8),Ye.XOsiz=(0,U.readUint32)(Te,Be+12),Ye.YOsiz=(0,U.readUint32)(Te,Be+16),Ye.XTsiz=(0,U.readUint32)(Te,Be+20),Ye.YTsiz=(0,U.readUint32)(Te,Be+24),Ye.XTOsiz=(0,U.readUint32)(Te,Be+28),Ye.YTOsiz=(0,U.readUint32)(Te,Be+32);const tt=(0,U.readUint16)(Te,Be+36);Ye.Csiz=tt;const ot=[];je=Be+38;for(let Je=0;Je<tt;Je++){const St={precision:(Te[je]&127)+1,isSigned:!!(Te[je]&128),XRsiz:Te[je+1],YRsiz:Te[je+2]};je+=3,ie(St,Ye),ot.push(St)}we.SIZ=Ye,we.components=ot,he(we,ot),we.QCC=[],we.COC=[];break;case 65372:Ve=(0,U.readUint16)(Te,Be);const st={};switch(je=Be+2,Le=Te[je++],Le&31){case 0:Qe=8,Ue=!0;break;case 1:Qe=16,Ue=!1;break;case 2:Qe=16,Ue=!0;break;default:throw new Error("Invalid SQcd value "+Le)}for(st.noQuantization=Qe===8,st.scalarExpounded=Ue,st.guardBits=Le>>5,et=[];je<Ve+Be;){const Je={};Qe===8?(Je.epsilon=Te[je++]>>3,Je.mu=0):(Je.epsilon=Te[je]>>3,Je.mu=(Te[je]&7)<<8|Te[je+1],je+=2),et.push(Je)}st.SPqcds=et,we.mainHeader?we.QCD=st:(we.currentTile.QCD=st,we.currentTile.QCC=[]);break;case 65373:Ve=(0,U.readUint16)(Te,Be);const dt={};je=Be+2;let ct;switch(we.SIZ.Csiz<257?ct=Te[je++]:(ct=(0,U.readUint16)(Te,je),je+=2),Le=Te[je++],Le&31){case 0:Qe=8,Ue=!0;break;case 1:Qe=16,Ue=!1;break;case 2:Qe=16,Ue=!0;break;default:throw new Error("Invalid SQcd value "+Le)}for(dt.noQuantization=Qe===8,dt.scalarExpounded=Ue,dt.guardBits=Le>>5,et=[];je<Ve+Be;){const Je={};Qe===8?(Je.epsilon=Te[je++]>>3,Je.mu=0):(Je.epsilon=Te[je]>>3,Je.mu=(Te[je]&7)<<8|Te[je+1],je+=2),et.push(Je)}dt.SPqcds=et,we.mainHeader?we.QCC[ct]=dt:we.currentTile.QCC[ct]=dt;break;case 65362:Ve=(0,U.readUint16)(Te,Be);const mt={};je=Be+2;const ut=Te[je++];mt.entropyCoderWithCustomPrecincts=!!(ut&1),mt.sopMarkerUsed=!!(ut&2),mt.ephMarkerUsed=!!(ut&4),mt.progressionOrder=Te[je++],mt.layersCount=(0,U.readUint16)(Te,je),je+=2,mt.multipleComponentTransform=Te[je++],mt.decompositionLevelsCount=Te[je++],mt.xcb=(Te[je++]&15)+2,mt.ycb=(Te[je++]&15)+2;const rt=Te[je++];if(mt.selectiveArithmeticCodingBypass=!!(rt&1),mt.resetContextProbabilities=!!(rt&2),mt.terminationOnEachCodingPass=!!(rt&4),mt.verticallyStripe=!!(rt&8),mt.predictableTermination=!!(rt&16),mt.segmentationSymbolUsed=!!(rt&32),mt.reversibleTransformation=Te[je++],mt.entropyCoderWithCustomPrecincts){const Je=[];for(;je<Ve+Be;){const St=Te[je++];Je.push({PPx:St&15,PPy:St>>4})}mt.precinctsSizes=Je}const He=[];mt.selectiveArithmeticCodingBypass&&He.push("selectiveArithmeticCodingBypass"),mt.terminationOnEachCodingPass&&He.push("terminationOnEachCodingPass"),mt.verticallyStripe&&He.push("verticallyStripe"),mt.predictableTermination&&He.push("predictableTermination"),He.length>0&&(Ie=!0,(0,R.warn)(`JPX: Unsupported COD options (${He.join(", ")}).`)),we.mainHeader?we.COD=mt:(we.currentTile.COD=mt,we.currentTile.COC=[]);break;case 65424:Ve=(0,U.readUint16)(Te,Be),$e={},$e.index=(0,U.readUint16)(Te,Be+2),$e.length=(0,U.readUint32)(Te,Be+4),$e.dataEnd=$e.length+Be-2,$e.partIndex=Te[Be+8],$e.partsCount=Te[Be+9],we.mainHeader=!1,$e.partIndex===0&&($e.COD=we.COD,$e.COC=we.COC.slice(0),$e.QCD=we.QCD,$e.QCC=we.QCC.slice(0)),we.currentTile=$e;break;case 65427:$e=we.currentTile,$e.partIndex===0&&(Ce(we,$e.index),ke(we)),Ve=$e.dataEnd-Be,xe(we,Te,Be,Ve);break;case 65363:(0,R.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:Ve=(0,U.readUint16)(Te,Be);break;default:throw new Error("Unknown codestream code: "+Ke.toString(16))}Be+=Ve}}catch(Be){if(Ie||this.failOnCorruptedImage)throw new z(Be.message);(0,R.warn)(`JPX: Trying to recover from: "${Be.message}".`)}this.tiles=ye(we),this.width=we.SIZ.Xsiz-we.SIZ.XOsiz,this.height=we.SIZ.Ysiz-we.SIZ.YOsiz,this.componentsCount=we.SIZ.Csiz}}D.JpxImage=ae;function ie(ze,Te){ze.x0=Math.ceil(Te.XOsiz/ze.XRsiz),ze.x1=Math.ceil(Te.Xsiz/ze.XRsiz),ze.y0=Math.ceil(Te.YOsiz/ze.YRsiz),ze.y1=Math.ceil(Te.Ysiz/ze.YRsiz),ze.width=ze.x1-ze.x0,ze.height=ze.y1-ze.y0}function he(ze,Te){const Fe=ze.SIZ,Pe=[];let we;const Ie=Math.ceil((Fe.Xsiz-Fe.XTOsiz)/Fe.XTsiz),Be=Math.ceil((Fe.Ysiz-Fe.YTOsiz)/Fe.YTsiz);for(let Ve=0;Ve<Be;Ve++)for(let je=0;je<Ie;je++)we={},we.tx0=Math.max(Fe.XTOsiz+je*Fe.XTsiz,Fe.XOsiz),we.ty0=Math.max(Fe.YTOsiz+Ve*Fe.YTsiz,Fe.YOsiz),we.tx1=Math.min(Fe.XTOsiz+(je+1)*Fe.XTsiz,Fe.Xsiz),we.ty1=Math.min(Fe.YTOsiz+(Ve+1)*Fe.YTsiz,Fe.Ysiz),we.width=we.tx1-we.tx0,we.height=we.ty1-we.ty0,we.components=[],Pe.push(we);ze.tiles=Pe;const Ke=Fe.Csiz;for(let Ve=0,je=Ke;Ve<je;Ve++){const Le=Te[Ve];for(let et=0,Qe=Pe.length;et<Qe;et++){const Ue={};we=Pe[et],Ue.tcx0=Math.ceil(we.tx0/Le.XRsiz),Ue.tcy0=Math.ceil(we.ty0/Le.YRsiz),Ue.tcx1=Math.ceil(we.tx1/Le.XRsiz),Ue.tcy1=Math.ceil(we.ty1/Le.YRsiz),Ue.width=Ue.tcx1-Ue.tcx0,Ue.height=Ue.tcy1-Ue.tcy0,we.components[Ve]=Ue}}}function J(ze,Te,Fe){const Pe=Te.codingStyleParameters,we={};return Pe.entropyCoderWithCustomPrecincts?(we.PPx=Pe.precinctsSizes[Fe].PPx,we.PPy=Pe.precinctsSizes[Fe].PPy):(we.PPx=15,we.PPy=15),we.xcb_=Fe>0?Math.min(Pe.xcb,we.PPx-1):Math.min(Pe.xcb,we.PPx),we.ycb_=Fe>0?Math.min(Pe.ycb,we.PPy-1):Math.min(Pe.ycb,we.PPy),we}function W(ze,Te,Fe){const Pe=1<<Fe.PPx,we=1<<Fe.PPy,Ie=Te.resLevel===0,Be=1<<Fe.PPx+(Ie?0:-1),Ke=1<<Fe.PPy+(Ie?0:-1),Ve=Te.trx1>Te.trx0?Math.ceil(Te.trx1/Pe)-Math.floor(Te.trx0/Pe):0,je=Te.try1>Te.try0?Math.ceil(Te.try1/we)-Math.floor(Te.try0/we):0,Le=Ve*je;Te.precinctParameters={precinctWidth:Pe,precinctHeight:we,numprecinctswide:Ve,numprecinctshigh:je,numprecincts:Le,precinctWidthInSubband:Be,precinctHeightInSubband:Ke}}function X(ze,Te,Fe){const Pe=Fe.xcb_,we=Fe.ycb_,Ie=1<<Pe,Be=1<<we,Ke=Te.tbx0>>Pe,Ve=Te.tby0>>we,je=Te.tbx1+Ie-1>>Pe,Le=Te.tby1+Be-1>>we,et=Te.resolution.precinctParameters,Qe=[],Ue=[];let $e,Ye,tt,ot;for(Ye=Ve;Ye<Le;Ye++)for($e=Ke;$e<je;$e++){tt={cbx:$e,cby:Ye,tbx0:Ie*$e,tby0:Be*Ye,tbx1:Ie*($e+1),tby1:Be*(Ye+1)},tt.tbx0_=Math.max(Te.tbx0,tt.tbx0),tt.tby0_=Math.max(Te.tby0,tt.tby0),tt.tbx1_=Math.min(Te.tbx1,tt.tbx1),tt.tby1_=Math.min(Te.tby1,tt.tby1);const st=Math.floor((tt.tbx0_-Te.tbx0)/et.precinctWidthInSubband),dt=Math.floor((tt.tby0_-Te.tby0)/et.precinctHeightInSubband);if(ot=st+dt*et.numprecinctswide,tt.precinctNumber=ot,tt.subbandType=Te.type,tt.Lblock=3,tt.tbx1_<=tt.tbx0_||tt.tby1_<=tt.tby0_)continue;Qe.push(tt);let ct=Ue[ot];ct!==void 0?($e<ct.cbxMin?ct.cbxMin=$e:$e>ct.cbxMax&&(ct.cbxMax=$e),Ye<ct.cbyMin?ct.cbxMin=Ye:Ye>ct.cbyMax&&(ct.cbyMax=Ye)):Ue[ot]=ct={cbxMin:$e,cbyMin:Ye,cbxMax:$e,cbyMax:Ye},tt.precinct=ct}Te.codeblockParameters={codeblockWidth:Pe,codeblockHeight:we,numcodeblockwide:je-Ke+1,numcodeblockhigh:Le-Ve+1},Te.codeblocks=Qe,Te.precincts=Ue}function L(ze,Te,Fe){const Pe=[],we=ze.subbands;for(let Ie=0,Be=we.length;Ie<Be;Ie++){const Ve=we[Ie].codeblocks;for(let je=0,Le=Ve.length;je<Le;je++){const et=Ve[je];et.precinctNumber===Te&&Pe.push(et)}}return{layerNumber:Fe,codeblocks:Pe}}function Q(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Pe.codingStyleDefaultParameters.layersCount,Ie=Te.Csiz;let Be=0;for(let et=0;et<Ie;et++)Be=Math.max(Be,Pe.components[et].codingStyleParameters.decompositionLevelsCount);let Ke=0,Ve=0,je=0,Le=0;this.nextPacket=function(){for(;Ke<we;Ke++){for(;Ve<=Be;Ve++){for(;je<Ie;je++){const Qe=Pe.components[je];if(Ve>Qe.codingStyleParameters.decompositionLevelsCount)continue;const Ue=Qe.resolutions[Ve],$e=Ue.precinctParameters.numprecincts;for(;Le<$e;){const Ye=L(Ue,Le,Ke);return Le++,Ye}Le=0}je=0}Ve=0}throw new z("Out of packets")}}function ce(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Pe.codingStyleDefaultParameters.layersCount,Ie=Te.Csiz;let Be=0;for(let et=0;et<Ie;et++)Be=Math.max(Be,Pe.components[et].codingStyleParameters.decompositionLevelsCount);let Ke=0,Ve=0,je=0,Le=0;this.nextPacket=function(){for(;Ke<=Be;Ke++){for(;Ve<we;Ve++){for(;je<Ie;je++){const Qe=Pe.components[je];if(Ke>Qe.codingStyleParameters.decompositionLevelsCount)continue;const Ue=Qe.resolutions[Ke],$e=Ue.precinctParameters.numprecincts;for(;Le<$e;){const Ye=L(Ue,Le,Ve);return Le++,Ye}Le=0}je=0}Ve=0}throw new z("Out of packets")}}function de(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Pe.codingStyleDefaultParameters.layersCount,Ie=Te.Csiz;let Be,Ke,Ve,je,Le=0;for(Ve=0;Ve<Ie;Ve++){const Qe=Pe.components[Ve];Le=Math.max(Le,Qe.codingStyleParameters.decompositionLevelsCount)}const et=new Int32Array(Le+1);for(Ke=0;Ke<=Le;++Ke){let Qe=0;for(Ve=0;Ve<Ie;++Ve){const Ue=Pe.components[Ve].resolutions;Ke<Ue.length&&(Qe=Math.max(Qe,Ue[Ke].precinctParameters.numprecincts))}et[Ke]=Qe}Be=0,Ke=0,Ve=0,je=0,this.nextPacket=function(){for(;Ke<=Le;Ke++){for(;je<et[Ke];je++){for(;Ve<Ie;Ve++){const Ue=Pe.components[Ve];if(Ke>Ue.codingStyleParameters.decompositionLevelsCount)continue;const $e=Ue.resolutions[Ke],Ye=$e.precinctParameters.numprecincts;if(!(je>=Ye)){for(;Be<we;){const tt=L($e,je,Be);return Be++,tt}Be=0}}Ve=0}je=0}throw new z("Out of packets")}}function se(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Pe.codingStyleDefaultParameters.layersCount,Ie=Te.Csiz,Be=Ee(Pe),Ke=Be;let Ve=0,je=0,Le=0,et=0,Qe=0;this.nextPacket=function(){for(;Qe<Ke.maxNumHigh;Qe++){for(;et<Ke.maxNumWide;et++){for(;Le<Ie;Le++){const $e=Pe.components[Le],Ye=$e.codingStyleParameters.decompositionLevelsCount;for(;je<=Ye;je++){const tt=$e.resolutions[je],ot=Be.components[Le].resolutions[je],st=me(et,Qe,ot,Ke,tt);if(st!==null){for(;Ve<we;){const dt=L(tt,st,Ve);return Ve++,dt}Ve=0}}je=0}Le=0}et=0}throw new z("Out of packets")}}function oe(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Pe.codingStyleDefaultParameters.layersCount,Ie=Te.Csiz,Be=Ee(Pe);let Ke=0,Ve=0,je=0,Le=0,et=0;this.nextPacket=function(){for(;je<Ie;++je){const Ue=Pe.components[je],$e=Be.components[je],Ye=Ue.codingStyleParameters.decompositionLevelsCount;for(;et<$e.maxNumHigh;et++){for(;Le<$e.maxNumWide;Le++){for(;Ve<=Ye;Ve++){const tt=Ue.resolutions[Ve],ot=$e.resolutions[Ve],st=me(Le,et,ot,$e,tt);if(st!==null){for(;Ke<we;){const dt=L(tt,st,Ke);return Ke++,dt}Ke=0}}Ve=0}Le=0}et=0}throw new z("Out of packets")}}function me(ze,Te,Fe,Pe,we){const Ie=ze*Pe.minWidth,Be=Te*Pe.minHeight;if(Ie%Fe.width!==0||Be%Fe.height!==0)return null;const Ke=Be/Fe.width*we.precinctParameters.numprecinctswide;return Ie/Fe.height+Ke}function Ee(ze){const Te=ze.components.length;let Fe=Number.MAX_VALUE,Pe=Number.MAX_VALUE,we=0,Ie=0;const Be=new Array(Te);for(let Ke=0;Ke<Te;Ke++){const Ve=ze.components[Ke],je=Ve.codingStyleParameters.decompositionLevelsCount,Le=new Array(je+1);let et=Number.MAX_VALUE,Qe=Number.MAX_VALUE,Ue=0,$e=0,Ye=1;for(let tt=je;tt>=0;--tt){const ot=Ve.resolutions[tt],st=Ye*ot.precinctParameters.precinctWidth,dt=Ye*ot.precinctParameters.precinctHeight;et=Math.min(et,st),Qe=Math.min(Qe,dt),Ue=Math.max(Ue,ot.precinctParameters.numprecinctswide),$e=Math.max($e,ot.precinctParameters.numprecinctshigh),Le[tt]={width:st,height:dt},Ye<<=1}Fe=Math.min(Fe,et),Pe=Math.min(Pe,Qe),we=Math.max(we,Ue),Ie=Math.max(Ie,$e),Be[Ke]={resolutions:Le,minWidth:et,minHeight:Qe,maxNumWide:Ue,maxNumHigh:$e}}return{components:Be,minWidth:Fe,minHeight:Pe,maxNumWide:we,maxNumHigh:Ie}}function ke(ze){const Te=ze.SIZ,Fe=ze.currentTile.index,Pe=ze.tiles[Fe],we=Te.Csiz;for(let Be=0;Be<we;Be++){const Ke=Pe.components[Be],Ve=Ke.codingStyleParameters.decompositionLevelsCount,je=[],Le=[];for(let et=0;et<=Ve;et++){const Qe=J(ze,Ke,et),Ue={},$e=1<<Ve-et;Ue.trx0=Math.ceil(Ke.tcx0/$e),Ue.try0=Math.ceil(Ke.tcy0/$e),Ue.trx1=Math.ceil(Ke.tcx1/$e),Ue.try1=Math.ceil(Ke.tcy1/$e),Ue.resLevel=et,W(ze,Ue,Qe),je.push(Ue);let Ye;if(et===0)Ye={},Ye.type="LL",Ye.tbx0=Math.ceil(Ke.tcx0/$e),Ye.tby0=Math.ceil(Ke.tcy0/$e),Ye.tbx1=Math.ceil(Ke.tcx1/$e),Ye.tby1=Math.ceil(Ke.tcy1/$e),Ye.resolution=Ue,X(ze,Ye,Qe),Le.push(Ye),Ue.subbands=[Ye];else{const tt=1<<Ve-et+1,ot=[];Ye={},Ye.type="HL",Ye.tbx0=Math.ceil(Ke.tcx0/tt-.5),Ye.tby0=Math.ceil(Ke.tcy0/tt),Ye.tbx1=Math.ceil(Ke.tcx1/tt-.5),Ye.tby1=Math.ceil(Ke.tcy1/tt),Ye.resolution=Ue,X(ze,Ye,Qe),Le.push(Ye),ot.push(Ye),Ye={},Ye.type="LH",Ye.tbx0=Math.ceil(Ke.tcx0/tt),Ye.tby0=Math.ceil(Ke.tcy0/tt-.5),Ye.tbx1=Math.ceil(Ke.tcx1/tt),Ye.tby1=Math.ceil(Ke.tcy1/tt-.5),Ye.resolution=Ue,X(ze,Ye,Qe),Le.push(Ye),ot.push(Ye),Ye={},Ye.type="HH",Ye.tbx0=Math.ceil(Ke.tcx0/tt-.5),Ye.tby0=Math.ceil(Ke.tcy0/tt-.5),Ye.tbx1=Math.ceil(Ke.tcx1/tt-.5),Ye.tby1=Math.ceil(Ke.tcy1/tt-.5),Ye.resolution=Ue,X(ze,Ye,Qe),Le.push(Ye),ot.push(Ye),Ue.subbands=ot}}Ke.resolutions=je,Ke.subbands=Le}const Ie=Pe.codingStyleDefaultParameters.progressionOrder;switch(Ie){case 0:Pe.packetsIterator=new Q(ze);break;case 1:Pe.packetsIterator=new ce(ze);break;case 2:Pe.packetsIterator=new de(ze);break;case 3:Pe.packetsIterator=new se(ze);break;case 4:Pe.packetsIterator=new oe(ze);break;default:throw new z(`Unsupported progression order ${Ie}`)}}function xe(ze,Te,Fe,Pe){let we=0,Ie,Be=0,Ke=!1;function Ve(st){for(;Be<st;){const dt=Te[Fe+we];we++,Ke?(Ie=Ie<<7|dt,Be+=7,Ke=!1):(Ie=Ie<<8|dt,Be+=8),dt===255&&(Ke=!0)}return Be-=st,Ie>>>Be&(1<<st)-1}function je(st){return Te[Fe+we-1]===255&&Te[Fe+we]===st?(Le(1),!0):Te[Fe+we]===255&&Te[Fe+we+1]===st?(Le(2),!0):!1}function Le(st){we+=st}function et(){Be=0,Ke&&(we++,Ke=!1)}function Qe(){if(Ve(1)===0)return 1;if(Ve(1)===0)return 2;let st=Ve(2);return st<3?st+3:(st=Ve(5),st<31?st+6:(st=Ve(7),st+37))}const Ue=ze.currentTile.index,$e=ze.tiles[Ue],Ye=ze.COD.sopMarkerUsed,tt=ze.COD.ephMarkerUsed,ot=$e.packetsIterator;for(;we<Pe;){et(),Ye&&je(145)&&Le(4);const st=ot.nextPacket();if(!Ve(1))continue;const dt=st.layerNumber,ct=[];let mt;for(let ut=0,rt=st.codeblocks.length;ut<rt;ut++){mt=st.codeblocks[ut];let He=mt.precinct;const Je=mt.cbx-He.cbxMin,St=mt.cby-He.cbyMin;let bt=!1,pt=!1,wt,Pt;if(mt.included!==void 0)bt=!!Ve(1);else{He=mt.precinct;let $t;if(He.inclusionTree!==void 0)$t=He.inclusionTree;else{const Yt=He.cbxMax-He.cbxMin+1,Ft=He.cbyMax-He.cbyMin+1;$t=new _e(Yt,Ft,dt),Pt=new pe(Yt,Ft),He.inclusionTree=$t,He.zeroBitPlanesTree=Pt;for(let Jt=0;Jt<dt;Jt++)if(Ve(1)!==0)throw new z("Invalid tag tree")}if($t.reset(Je,St,dt))for(;;)if(Ve(1)){if(wt=!$t.nextLevel(),wt){mt.included=!0,bt=pt=!0;break}}else{$t.incrementValue(dt);break}}if(!bt)continue;if(pt){for(Pt=He.zeroBitPlanesTree,Pt.reset(Je,St);;)if(Ve(1)){if(wt=!Pt.nextLevel(),wt)break}else Pt.incrementValue();mt.zeroBitPlanes=Pt.value}const Nt=Qe();for(;Ve(1);)mt.Lblock++;const Vt=(0,U.log2)(Nt),Wt=(Nt<1<<Vt?Vt-1:Vt)+mt.Lblock,Mt=Ve(Wt);ct.push({codeblock:mt,codingpasses:Nt,dataLength:Mt})}for(et(),tt&&je(146);ct.length>0;){const ut=ct.shift();mt=ut.codeblock,mt.data===void 0&&(mt.data=[]),mt.data.push({data:Te,start:Fe+we,end:Fe+we+ut.dataLength,codingpasses:ut.codingpasses}),we+=ut.dataLength}}return we}function fe(ze,Te,Fe,Pe,we,Ie,Be,Ke,Ve){const je=Pe.tbx0,Le=Pe.tby0,et=Pe.tbx1-Pe.tbx0,Qe=Pe.codeblocks,Ue=Pe.type.charAt(0)==="H"?1:0,$e=Pe.type.charAt(1)==="H"?Te:0;for(let Ye=0,tt=Qe.length;Ye<tt;++Ye){const ot=Qe[Ye],st=ot.tbx1_-ot.tbx0_,dt=ot.tby1_-ot.tby0_;if(st===0||dt===0||ot.data===void 0)continue;const ct=new Ge(st,dt,ot.subbandType,ot.zeroBitPlanes,Ie);let mt=2;const ut=ot.data;let rt=0,He=0,Je,St,bt;for(Je=0,St=ut.length;Je<St;Je++)bt=ut[Je],rt+=bt.end-bt.start,He+=bt.codingpasses;const pt=new Uint8Array(rt);let wt=0;for(Je=0,St=ut.length;Je<St;Je++){bt=ut[Je];const Bt=bt.data.subarray(bt.start,bt.end);pt.set(Bt,wt),wt+=Bt.length}const Pt=new K.ArithmeticDecoder(pt,0,rt);for(ct.setDecoder(Pt),Je=0;Je<He;Je++){switch(mt){case 0:ct.runSignificancePropagationPass();break;case 1:ct.runMagnitudeRefinementPass();break;case 2:ct.runCleanupPass(),Ke&&ct.checkSegmentationSymbol();break}Ve&&ct.reset(),mt=(mt+1)%3}let Nt=ot.tbx0_-je+(ot.tby0_-Le)*et;const Vt=ct.coefficentsSign,Wt=ct.coefficentsMagnitude,Mt=ct.bitsDecoded,$t=Be?0:.5;let Yt,Ft,Jt;wt=0;const er=Pe.type!=="LL";for(Je=0;Je<dt;Je++){const It=2*(Nt/et|0)*(Te-et)+Ue+$e;for(Yt=0;Yt<st;Yt++){if(Ft=Wt[wt],Ft!==0){Ft=(Ft+$t)*we,Vt[wt]!==0&&(Ft=-Ft),Jt=Mt[wt];const Dt=er?It+(Nt<<1):Nt;Be&&Jt>=Ie?ze[Dt]=Ft:ze[Dt]=Ft*(1<<Ie-Jt)}Nt++,wt++}Nt+=et-st}}}function ve(ze,Te,Fe){const Pe=Te.components[Fe],we=Pe.codingStyleParameters,Ie=Pe.quantizationParameters,Be=we.decompositionLevelsCount,Ke=Ie.SPqcds,Ve=Ie.scalarExpounded,je=Ie.guardBits,Le=we.segmentationSymbolUsed,et=we.resetContextProbabilities,Qe=ze.components[Fe].precision,Ue=we.reversibleTransformation,$e=Ue?new Ze:new Ne,Ye=[];let tt=0;for(let st=0;st<=Be;st++){const dt=Pe.resolutions[st],ct=dt.trx1-dt.trx0,mt=dt.try1-dt.try0,ut=new Float32Array(ct*mt);for(let rt=0,He=dt.subbands.length;rt<He;rt++){let Je,St;Ve?(Je=Ke[tt].mu,St=Ke[tt].epsilon,tt++):(Je=Ke[0].mu,St=Ke[0].epsilon+(st>0?1-st:0));const bt=dt.subbands[rt],pt=e[bt.type],wt=Ue?1:2**(Qe+pt-St)*(1+Je/2048),Pt=je+St-1;fe(ut,ct,mt,bt,wt,Pt,Ue,Le,et)}Ye.push({width:ct,height:mt,items:ut})}const ot=$e.calculate(Ye,Pe.tcx0,Pe.tcy0);return{left:Pe.tcx0,top:Pe.tcy0,width:ot.width,height:ot.height,items:ot.items}}function ye(ze){const Te=ze.SIZ,Fe=ze.components,Pe=Te.Csiz,we=[];for(let Ie=0,Be=ze.tiles.length;Ie<Be;Ie++){const Ke=ze.tiles[Ie],Ve=[];for(let ct=0;ct<Pe;ct++)Ve[ct]=ve(ze,Ke,ct);const je=Ve[0],Le=new Uint8ClampedArray(je.items.length*Pe),et={left:je.left,top:je.top,width:je.width,height:je.height,items:Le};let Qe,Ue,$e=0,Ye,tt,ot,st,dt;if(Ke.codingStyleDefaultParameters.multipleComponentTransform){const ct=Pe===4,mt=Ve[0].items,ut=Ve[1].items,rt=Ve[2].items,He=ct?Ve[3].items:null;Qe=Fe[0].precision-8,Ue=(128<<Qe)+.5;const Je=Ke.components[0],St=Pe-3;if(tt=mt.length,Je.codingStyleParameters.reversibleTransformation)for(Ye=0;Ye<tt;Ye++,$e+=St){ot=mt[Ye]+Ue,st=ut[Ye],dt=rt[Ye];const bt=ot-(dt+st>>2);Le[$e++]=bt+dt>>Qe,Le[$e++]=bt>>Qe,Le[$e++]=bt+st>>Qe}else for(Ye=0;Ye<tt;Ye++,$e+=St)ot=mt[Ye]+Ue,st=ut[Ye],dt=rt[Ye],Le[$e++]=ot+1.402*dt>>Qe,Le[$e++]=ot-.34413*st-.71414*dt>>Qe,Le[$e++]=ot+1.772*st>>Qe;if(ct)for(Ye=0,$e=3;Ye<tt;Ye++,$e+=4)Le[$e]=He[Ye]+Ue>>Qe}else for(let ct=0;ct<Pe;ct++){const mt=Ve[ct].items;for(Qe=Fe[ct].precision-8,Ue=(128<<Qe)+.5,$e=ct,Ye=0,tt=mt.length;Ye<tt;Ye++)Le[$e]=mt[Ye]+Ue>>Qe,$e+=Pe}we.push(et)}return we}function Ce(ze,Te){const Pe=ze.SIZ.Csiz,we=ze.tiles[Te];for(let Ie=0;Ie<Pe;Ie++){const Be=we.components[Ie],Ke=ze.currentTile.QCC[Ie]!==void 0?ze.currentTile.QCC[Ie]:ze.currentTile.QCD;Be.quantizationParameters=Ke;const Ve=ze.currentTile.COC[Ie]!==void 0?ze.currentTile.COC[Ie]:ze.currentTile.COD;Be.codingStyleParameters=Ve}we.codingStyleDefaultParameters=ze.currentTile.COD}class pe{constructor(Te,Fe){const Pe=(0,U.log2)(Math.max(Te,Fe))+1;this.levels=[];for(let we=0;we<Pe;we++){const Ie={width:Te,height:Fe,items:[]};this.levels.push(Ie),Te=Math.ceil(Te/2),Fe=Math.ceil(Fe/2)}}reset(Te,Fe){let Pe=0,we=0,Ie;for(;Pe<this.levels.length;){Ie=this.levels[Pe];const Be=Te+Fe*Ie.width;if(Ie.items[Be]!==void 0){we=Ie.items[Be];break}Ie.index=Be,Te>>=1,Fe>>=1,Pe++}Pe--,Ie=this.levels[Pe],Ie.items[Ie.index]=we,this.currentLevel=Pe,delete this.value}incrementValue(){const Te=this.levels[this.currentLevel];Te.items[Te.index]++}nextLevel(){let Te=this.currentLevel,Fe=this.levels[Te];const Pe=Fe.items[Fe.index];return Te--,Te<0?(this.value=Pe,!1):(this.currentLevel=Te,Fe=this.levels[Te],Fe.items[Fe.index]=Pe,!0)}}class _e{constructor(Te,Fe,Pe){const we=(0,U.log2)(Math.max(Te,Fe))+1;this.levels=[];for(let Ie=0;Ie<we;Ie++){const Be=new Uint8Array(Te*Fe);for(let Ve=0,je=Be.length;Ve<je;Ve++)Be[Ve]=Pe;const Ke={width:Te,height:Fe,items:Be};this.levels.push(Ke),Te=Math.ceil(Te/2),Fe=Math.ceil(Fe/2)}}reset(Te,Fe,Pe){let we=0;for(;we<this.levels.length;){const Ie=this.levels[we],Be=Te+Fe*Ie.width;Ie.index=Be;const Ke=Ie.items[Be];if(Ke===255)break;if(Ke>Pe)return this.currentLevel=we,this.propagateValues(),!1;Te>>=1,Fe>>=1,we++}return this.currentLevel=we-1,!0}incrementValue(Te){const Fe=this.levels[this.currentLevel];Fe.items[Fe.index]=Te+1,this.propagateValues()}propagateValues(){let Te=this.currentLevel,Fe=this.levels[Te];const Pe=Fe.items[Fe.index];for(;--Te>=0;)Fe=this.levels[Te],Fe.items[Fe.index]=Pe}nextLevel(){let Te=this.currentLevel,Fe=this.levels[Te];const Pe=Fe.items[Fe.index];return Fe.items[Fe.index]=255,Te--,Te<0?!1:(this.currentLevel=Te,Fe=this.levels[Te],Fe.items[Fe.index]=Pe,!0)}}const Ge=function(){const Pe=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),we=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),Ie=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);class Be{constructor(Ve,je,Le,et,Qe){this.width=Ve,this.height=je;let Ue;Le==="HH"?Ue=Ie:Le==="HL"?Ue=we:Ue=Pe,this.contextLabelTable=Ue;const $e=Ve*je;this.neighborsSignificance=new Uint8Array($e),this.coefficentsSign=new Uint8Array($e);let Ye;Qe>14?Ye=new Uint32Array($e):Qe>6?Ye=new Uint16Array($e):Ye=new Uint8Array($e),this.coefficentsMagnitude=Ye,this.processingFlags=new Uint8Array($e);const tt=new Uint8Array($e);if(et!==0)for(let ot=0;ot<$e;ot++)tt[ot]=et;this.bitsDecoded=tt,this.reset()}setDecoder(Ve){this.decoder=Ve}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6}setNeighborsSignificance(Ve,je,Le){const et=this.neighborsSignificance,Qe=this.width,Ue=this.height,$e=je>0,Ye=je+1<Qe;let tt;Ve>0&&(tt=Le-Qe,$e&&(et[tt-1]+=16),Ye&&(et[tt+1]+=16),et[tt]+=4),Ve+1<Ue&&(tt=Le+Qe,$e&&(et[tt-1]+=16),Ye&&(et[tt+1]+=16),et[tt]+=4),$e&&(et[Le-1]+=1),Ye&&(et[Le+1]+=1),et[Le]|=128}runSignificancePropagationPass(){const Ve=this.decoder,je=this.width,Le=this.height,et=this.coefficentsMagnitude,Qe=this.coefficentsSign,Ue=this.neighborsSignificance,$e=this.processingFlags,Ye=this.contexts,tt=this.contextLabelTable,ot=this.bitsDecoded,st=-2,dt=1,ct=2;for(let mt=0;mt<Le;mt+=4)for(let ut=0;ut<je;ut++){let rt=mt*je+ut;for(let He=0;He<4;He++,rt+=je){const Je=mt+He;if(Je>=Le)break;if($e[rt]&=st,et[rt]||!Ue[rt])continue;const St=tt[Ue[rt]];if(Ve.readBit(Ye,St)){const pt=this.decodeSignBit(Je,ut,rt);Qe[rt]=pt,et[rt]=1,this.setNeighborsSignificance(Je,ut,rt),$e[rt]|=ct}ot[rt]++,$e[rt]|=dt}}}decodeSignBit(Ve,je,Le){const et=this.width,Qe=this.height,Ue=this.coefficentsMagnitude,$e=this.coefficentsSign;let Ye,tt,ot,st,dt,ct;st=je>0&&Ue[Le-1]!==0,je+1<et&&Ue[Le+1]!==0?(ot=$e[Le+1],st?(tt=$e[Le-1],Ye=1-ot-tt):Ye=1-ot-ot):st?(tt=$e[Le-1],Ye=1-tt-tt):Ye=0;const mt=3*Ye;return st=Ve>0&&Ue[Le-et]!==0,Ve+1<Qe&&Ue[Le+et]!==0?(ot=$e[Le+et],st?(tt=$e[Le-et],Ye=1-ot-tt+mt):Ye=1-ot-ot+mt):st?(tt=$e[Le-et],Ye=1-tt-tt+mt):Ye=mt,Ye>=0?(dt=9+Ye,ct=this.decoder.readBit(this.contexts,dt)):(dt=9-Ye,ct=this.decoder.readBit(this.contexts,dt)^1),ct}runMagnitudeRefinementPass(){const Ve=this.decoder,je=this.width,Le=this.height,et=this.coefficentsMagnitude,Qe=this.neighborsSignificance,Ue=this.contexts,$e=this.bitsDecoded,Ye=this.processingFlags,tt=1,ot=2,st=je*Le,dt=je*4;for(let ct=0,mt;ct<st;ct=mt){mt=Math.min(st,ct+dt);for(let ut=0;ut<je;ut++)for(let rt=ct+ut;rt<mt;rt+=je){if(!et[rt]||Ye[rt]&tt)continue;let He=16;Ye[rt]&ot&&(Ye[rt]^=ot,He=(Qe[rt]&127)===0?15:14);const Je=Ve.readBit(Ue,He);et[rt]=et[rt]<<1|Je,$e[rt]++,Ye[rt]|=tt}}}runCleanupPass(){const Ve=this.decoder,je=this.width,Le=this.height,et=this.neighborsSignificance,Qe=this.coefficentsMagnitude,Ue=this.coefficentsSign,$e=this.contexts,Ye=this.contextLabelTable,tt=this.bitsDecoded,ot=this.processingFlags,st=1,dt=2,ct=je,mt=je*2,ut=je*3;let rt;for(let He=0;He<Le;He=rt){rt=Math.min(He+4,Le);const Je=He*je,St=He+3<Le;for(let bt=0;bt<je;bt++){const pt=Je+bt,wt=St&&ot[pt]===0&&ot[pt+ct]===0&&ot[pt+mt]===0&&ot[pt+ut]===0&&et[pt]===0&&et[pt+ct]===0&&et[pt+mt]===0&&et[pt+ut]===0;let Pt=0,Nt=pt,Vt=He,Wt;if(wt){if(!Ve.readBit($e,18)){tt[pt]++,tt[pt+ct]++,tt[pt+mt]++,tt[pt+ut]++;continue}Pt=Ve.readBit($e,17)<<1|Ve.readBit($e,17),Pt!==0&&(Vt=He+Pt,Nt+=Pt*je),Wt=this.decodeSignBit(Vt,bt,Nt),Ue[Nt]=Wt,Qe[Nt]=1,this.setNeighborsSignificance(Vt,bt,Nt),ot[Nt]|=dt,Nt=pt;for(let $t=He;$t<=Vt;$t++,Nt+=je)tt[Nt]++;Pt++}for(Vt=He+Pt;Vt<rt;Vt++,Nt+=je){if(Qe[Nt]||ot[Nt]&st)continue;const Mt=Ye[et[Nt]];Ve.readBit($e,Mt)===1&&(Wt=this.decodeSignBit(Vt,bt,Nt),Ue[Nt]=Wt,Qe[Nt]=1,this.setNeighborsSignificance(Vt,bt,Nt),ot[Nt]|=dt),tt[Nt]++}}}}checkSegmentationSymbol(){const Ve=this.decoder,je=this.contexts;if((Ve.readBit(je,17)<<3|Ve.readBit(je,17)<<2|Ve.readBit(je,17)<<1|Ve.readBit(je,17))!==10)throw new z("Invalid segmentation symbol")}}return Be}();class Ae{constructor(){this.constructor===Ae&&(0,R.unreachable)("Cannot initialize Transform.")}calculate(Te,Fe,Pe){let we=Te[0];for(let Ie=1,Be=Te.length;Ie<Be;Ie++)we=this.iterate(we,Te[Ie],Fe,Pe);return we}extend(Te,Fe,Pe){let we=Fe-1,Ie=Fe+1,Be=Fe+Pe-2,Ke=Fe+Pe;Te[we--]=Te[Ie++],Te[Ke++]=Te[Be--],Te[we--]=Te[Ie++],Te[Ke++]=Te[Be--],Te[we--]=Te[Ie++],Te[Ke++]=Te[Be--],Te[we]=Te[Ie],Te[Ke]=Te[Be]}filter(Te,Fe,Pe){(0,R.unreachable)("Abstract method `filter` called")}iterate(Te,Fe,Pe,we){const Ie=Te.width,Be=Te.height;let Ke=Te.items;const Ve=Fe.width,je=Fe.height,Le=Fe.items;let et,Qe,Ue,$e,Ye,tt;for(Ue=0,et=0;et<Be;et++)for($e=et*2*Ve,Qe=0;Qe<Ie;Qe++,Ue++,$e+=2)Le[$e]=Ke[Ue];Ke=Te.items=null;const ot=4,st=new Float32Array(Ve+2*ot);if(Ve===1){if(Pe&1)for(tt=0,Ue=0;tt<je;tt++,Ue+=Ve)Le[Ue]*=.5}else for(tt=0,Ue=0;tt<je;tt++,Ue+=Ve)st.set(Le.subarray(Ue,Ue+Ve),ot),this.extend(st,ot,Ve),this.filter(st,ot,Ve),Le.set(st.subarray(ot,ot+Ve),Ue);let dt=16;const ct=[];for(et=0;et<dt;et++)ct.push(new Float32Array(je+2*ot));let mt,ut=0;if(Te=ot+je,je===1){if(we&1)for(Ye=0;Ye<Ve;Ye++)Le[Ye]*=.5}else for(Ye=0;Ye<Ve;Ye++){if(ut===0){for(dt=Math.min(Ve-Ye,dt),Ue=Ye,$e=ot;$e<Te;Ue+=Ve,$e++)for(mt=0;mt<dt;mt++)ct[mt][$e]=Le[Ue+mt];ut=dt}ut--;const rt=ct[ut];if(this.extend(rt,ot,je),this.filter(rt,ot,je),ut===0)for(Ue=Ye-dt+1,$e=ot;$e<Te;Ue+=Ve,$e++)for(mt=0;mt<dt;mt++)Le[Ue+mt]=ct[mt][$e]}return{width:Ve,height:je,items:Le}}}class Ne extends Ae{filter(Te,Fe,Pe){const we=Pe>>1;Fe|=0;let Ie,Be,Ke,Ve;const je=-1.586134342059924,Le=-.052980118572961,et=.882911075530934,Qe=.443506852043971,Ue=1.230174104914001,$e=1/Ue;for(Ie=Fe-3,Be=we+4;Be--;Ie+=2)Te[Ie]*=$e;for(Ie=Fe-2,Ke=Qe*Te[Ie-1],Be=we+3;Be--&&(Ve=Qe*Te[Ie+1],Te[Ie]=Ue*Te[Ie]-Ke-Ve,Be--);Ie+=2)Ie+=2,Ke=Qe*Te[Ie+1],Te[Ie]=Ue*Te[Ie]-Ke-Ve;for(Ie=Fe-1,Ke=et*Te[Ie-1],Be=we+2;Be--&&(Ve=et*Te[Ie+1],Te[Ie]-=Ke+Ve,Be--);Ie+=2)Ie+=2,Ke=et*Te[Ie+1],Te[Ie]-=Ke+Ve;for(Ie=Fe,Ke=Le*Te[Ie-1],Be=we+1;Be--&&(Ve=Le*Te[Ie+1],Te[Ie]-=Ke+Ve,Be--);Ie+=2)Ie+=2,Ke=Le*Te[Ie+1],Te[Ie]-=Ke+Ve;if(we!==0)for(Ie=Fe+1,Ke=je*Te[Ie-1],Be=we;Be--&&(Ve=je*Te[Ie+1],Te[Ie]-=Ke+Ve,Be--);Ie+=2)Ie+=2,Ke=je*Te[Ie+1],Te[Ie]-=Ke+Ve}}class Ze extends Ae{filter(Te,Fe,Pe){const we=Pe>>1;Fe|=0;let Ie,Be;for(Ie=Fe,Be=we+1;Be--;Ie+=2)Te[Ie]-=Te[Ie-1]+Te[Ie+1]+2>>2;for(Ie=Fe+1,Be=we;Be--;Ie+=2)Te[Ie]+=Te[Ie-1]+Te[Ie+1]>>1}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.LZWStream=void 0;var R=B(144);class U extends R.DecodeStream{constructor(z,e,ae){super(e),this.str=z,this.dict=z.dict,this.cachedData=0,this.bitsCached=0;const ie=4096,he={earlyChange:ae,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(ie),dictionaryLengths:new Uint16Array(ie),dictionaryPrevCodes:new Uint16Array(ie),currentSequence:new Uint8Array(ie),currentSequenceLength:0};for(let J=0;J<256;++J)he.dictionaryValues[J]=J,he.dictionaryLengths[J]=1;this.lzwState=he}readBits(z){let e=this.bitsCached,ae=this.cachedData;for(;e<z;){const ie=this.str.getByte();if(ie===-1)return this.eof=!0,null;ae=ae<<8|ie,e+=8}return this.bitsCached=e-=z,this.cachedData=ae,this.lastCode=null,ae>>>e&(1<<z)-1}readBlock(){let ae=1024,ie,he,J;const W=this.lzwState;if(!W)return;const X=W.earlyChange;let L=W.nextCode;const Q=W.dictionaryValues,ce=W.dictionaryLengths,de=W.dictionaryPrevCodes;let se=W.codeLength,oe=W.prevCode;const me=W.currentSequence;let Ee=W.currentSequenceLength,ke=0,xe=this.bufferLength,fe=this.ensureBuffer(this.bufferLength+ae);for(ie=0;ie<512;ie++){const ve=this.readBits(se),ye=Ee>0;if(ve<256)me[0]=ve,Ee=1;else if(ve>=258)if(ve<L)for(Ee=ce[ve],he=Ee-1,J=ve;he>=0;he--)me[he]=Q[J],J=de[J];else me[Ee++]=me[0];else if(ve===256){se=9,L=258,Ee=0;continue}else{this.eof=!0,delete this.lzwState;break}if(ye&&(de[L]=oe,ce[L]=ce[oe]+1,Q[L]=me[0],L++,se=L+X&L+X-1?se:Math.min(Math.log(L+X)/.6931471805599453+1,12)|0),oe=ve,ke+=Ee,ae<ke){do ae+=512;while(ae<ke);fe=this.ensureBuffer(this.bufferLength+ae)}for(he=0;he<Ee;he++)fe[xe++]=me[he]}W.nextCode=L,W.codeLength=se,W.prevCode=oe,W.currentSequenceLength=Ee,this.bufferLength=xe}}D.LZWStream=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PredictorStream=void 0;var R=B(144),U=B(130),K=B(2);class z extends R.DecodeStream{constructor(ae,ie,he){if(super(ie),!(he instanceof U.Dict))return ae;const J=this.predictor=he.get("Predictor")||1;if(J<=1)return ae;if(J!==2&&(J<10||J>15))throw new K.FormatError(`Unsupported predictor: ${J}`);J===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=ae,this.dict=ae.dict;const W=this.colors=he.get("Colors")||1,X=this.bits=he.get("BPC","BitsPerComponent")||8,L=this.columns=he.get("Columns")||1;return this.pixBytes=W*X+7>>3,this.rowBytes=L*W*X+7>>3,this}readBlockTiff(){const ae=this.rowBytes,ie=this.bufferLength,he=this.ensureBuffer(ie+ae),J=this.bits,W=this.colors,X=this.str.getBytes(ae);if(this.eof=!X.length,this.eof)return;let L=0,Q=0,ce=0,de=0,se=ie,oe;if(J===1&&W===1)for(oe=0;oe<ae;++oe){let me=X[oe]^L;me^=me>>1,me^=me>>2,me^=me>>4,L=(me&1)<<7,he[se++]=me}else if(J===8){for(oe=0;oe<W;++oe)he[se++]=X[oe];for(;oe<ae;++oe)he[se]=he[se-W]+X[oe],se++}else if(J===16){const me=W*2;for(oe=0;oe<me;++oe)he[se++]=X[oe];for(;oe<ae;oe+=2){const Ee=((X[oe]&255)<<8)+(X[oe+1]&255)+((he[se-me]&255)<<8)+(he[se-me+1]&255);he[se++]=Ee>>8&255,he[se++]=Ee&255}}else{const me=new Uint8Array(W+1),Ee=(1<<J)-1;let ke=0,xe=ie;const fe=this.columns;for(oe=0;oe<fe;++oe)for(let ve=0;ve<W;++ve)ce<J&&(L=L<<8|X[ke++]&255,ce+=8),me[ve]=me[ve]+(L>>ce-J)&Ee,ce-=J,Q=Q<<J|me[ve],de+=J,de>=8&&(he[xe++]=Q>>de-8&255,de-=8);de>0&&(he[xe++]=(Q<<8-de)+(L&(1<<8-de)-1))}this.bufferLength+=ae}readBlockPng(){const ae=this.rowBytes,ie=this.pixBytes,he=this.str.getByte(),J=this.str.getBytes(ae);if(this.eof=!J.length,this.eof)return;const W=this.bufferLength,X=this.ensureBuffer(W+ae);let L=X.subarray(W-ae,W);L.length===0&&(L=new Uint8Array(ae));let Q,ce=W,de,se;switch(he){case 0:for(Q=0;Q<ae;++Q)X[ce++]=J[Q];break;case 1:for(Q=0;Q<ie;++Q)X[ce++]=J[Q];for(;Q<ae;++Q)X[ce]=X[ce-ie]+J[Q]&255,ce++;break;case 2:for(Q=0;Q<ae;++Q)X[ce++]=L[Q]+J[Q]&255;break;case 3:for(Q=0;Q<ie;++Q)X[ce++]=(L[Q]>>1)+J[Q];for(;Q<ae;++Q)X[ce]=(L[Q]+X[ce-ie]>>1)+J[Q]&255,ce++;break;case 4:for(Q=0;Q<ie;++Q)de=L[Q],se=J[Q],X[ce++]=de+se;for(;Q<ae;++Q){de=L[Q];const oe=L[Q-ie],me=X[ce-ie],Ee=me+de-oe;let ke=Ee-me;ke<0&&(ke=-ke);let xe=Ee-de;xe<0&&(xe=-xe);let fe=Ee-oe;fe<0&&(fe=-fe),se=J[Q],ke<=xe&&ke<=fe?X[ce++]=me+se:xe<=fe?X[ce++]=de+se:X[ce++]=oe+se}break;default:throw new K.FormatError(`Unsupported predictor: ${he}`)}this.bufferLength+=ae}}D.PredictorStream=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.RunLengthStream=void 0;var R=B(144);class U extends R.DecodeStream{constructor(z,e){super(e),this.str=z,this.dict=z.dict}readBlock(){const z=this.str.getBytes(2);if(!z||z.length<2||z[0]===128){this.eof=!0;return}let e,ae=this.bufferLength,ie=z[0];if(ie<128){if(e=this.ensureBuffer(ae+ie+1),e[ae++]=z[1],ie>0){const he=this.str.getBytes(ie);e.set(he,ae),ae+=ie}}else{ie=257-ie;const he=z[1];e=this.ensureBuffer(ae+ie+1);for(let J=0;J<ie;J++)e[ae++]=he}this.bufferLength=ae}}D.RunLengthStream=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Font=D.ErrorFont=void 0;var R=B(2),U=B(160),K=B(163),z=B(165),e=B(164),ae=B(162),ie=B(166),he=B(167),J=B(168),W=B(169),X=B(170),L=B(171),Q=B(141),ce=B(172),de=B(131),se=B(135),oe=B(173);const me=[[57344,63743],[1048576,1114109]],Ee=1e3,ke=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],xe=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function fe(dt){if(!dt.fontMatrix||dt.fontMatrix[0]===R.FONT_IDENTITY_MATRIX[0])return;const ct=.001/dt.fontMatrix[0],mt=dt.widths;for(const ut in mt)mt[ut]*=ct;dt.defaultWidth*=ct}function ve(dt,ct){if(dt.isInternalFont||ct===dt.defaultEncoding||dt.toUnicode instanceof he.IdentityToUnicodeMap)return;const mt=[],ut=(0,e.getGlyphsUnicode)();for(const rt in ct){if(dt.hasIncludedToUnicodeMap){if(dt.toUnicode.has(rt))continue}else if(dt.hasEncoding&&(dt.differences.length===0||dt.differences[rt]!==void 0))continue;const He=ct[rt],Je=(0,z.getUnicodeForGlyph)(He,ut);Je!==-1&&(mt[rt]=String.fromCharCode(Je))}mt.length>0&&dt.toUnicode.amend(mt)}function ye(dt){if(!dt.fallbackToUnicode||dt.toUnicode instanceof he.IdentityToUnicodeMap)return;const ct=[];for(const mt in dt.fallbackToUnicode)dt.toUnicode.has(mt)||(ct[mt]=dt.fallbackToUnicode[mt]);ct.length>0&&dt.toUnicode.amend(ct)}class Ce{constructor(ct,mt,ut,rt,He,Je,St,bt,pt){this.originalCharCode=ct,this.fontChar=mt,this.unicode=ut,this.accent=rt,this.width=He,this.vmetric=Je,this.operatorListId=St,this.isSpace=bt,this.isInFont=pt;const wt=(0,z.getCharUnicodeCategory)(ut);this.isWhitespace=wt.isWhitespace,this.isZeroWidthDiacritic=wt.isZeroWidthDiacritic,this.isInvisibleFormatMark=wt.isInvisibleFormatMark}matchesForCache(ct,mt,ut,rt,He,Je,St,bt,pt){return this.originalCharCode===ct&&this.fontChar===mt&&this.unicode===ut&&this.accent===rt&&this.width===He&&this.vmetric===Je&&this.operatorListId===St&&this.isSpace===bt&&this.isInFont===pt}}function pe(dt,ct){return(dt<<8)+ct}function _e(dt,ct,mt){dt[ct+1]=mt,dt[ct]=mt>>>8}function Ge(dt,ct){const mt=(dt<<8)+ct;return mt&32768?mt-65536:mt}function Ae(dt,ct,mt,ut){return(dt<<24)+(ct<<16)+(mt<<8)+ut}function Ne(dt){return String.fromCharCode(dt>>8&255,dt&255)}function Ze(dt){return dt>32767?dt=32767:dt<-32768&&(dt=-32768),String.fromCharCode(dt>>8&255,dt&255)}function ze(dt){const ct=dt.peekBytes(4);return(0,de.readUint32)(ct,0)===65536||(0,R.bytesToString)(ct)==="true"}function Te(dt){const ct=dt.peekBytes(4);return(0,R.bytesToString)(ct)==="ttcf"}function Fe(dt){const ct=dt.peekBytes(4);return(0,R.bytesToString)(ct)==="OTTO"}function Pe(dt){const ct=dt.peekBytes(2);return ct[0]===37&&ct[1]===33||ct[0]===128&&ct[1]===1}function we(dt){const ct=dt.peekBytes(4);return ct[0]>=1&&ct[3]>=1&&ct[3]<=4}function Ie(dt,ct){let{type:mt,subtype:ut,composite:rt}=ct,He,Je;return ze(dt)||Te(dt)?rt?He="CIDFontType2":He="TrueType":Fe(dt)?rt?He="CIDFontType2":He="OpenType":Pe(dt)?rt?He="CIDFontType0":He=mt==="MMType1"?"MMType1":"Type1":we(dt)?rt?(He="CIDFontType0",Je="CIDFontType0C"):(He=mt==="MMType1"?"MMType1":"Type1",Je="Type1C"):((0,R.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),He=mt,Je=ut),[He,Je]}function Be(dt,ct){for(const mt in ct)dt[+mt]=ct[mt]}function Ke(dt,ct,mt){const ut=[];let rt;for(let He=0,Je=dt.length;He<Je;He++)rt=(0,z.getUnicodeForGlyph)(dt[He],ct),rt!==-1&&(ut[He]=rt);for(const He in mt)rt=(0,z.getUnicodeForGlyph)(mt[He],ct),rt!==-1&&(ut[+He]=rt);return ut}function Ve(dt,ct){let mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;switch(ct.length){case 1:return ct.charCodeAt(0);case 2:return ct.charCodeAt(0)<<8|ct.charCodeAt(1)}const ut=`Unsupported CID string (charCode ${dt}): "${ct}".`;if(mt)throw new R.FormatError(ut);return(0,R.warn)(ut),ct}function je(dt,ct,mt,ut){const rt=Object.create(null),He=new Map,Je=[],St=new Set;let bt=0;const pt=me[bt][0];let wt=pt,Pt=me[bt][1];for(let Nt in dt){Nt|=0;let Vt=dt[Nt];if(!ct(Vt))continue;if(wt>Pt){if(bt++,bt>=me.length){(0,R.warn)("Ran out of space in font private use area.");break}wt=me[bt][0],Pt=me[bt][1]}const Wt=wt++;Vt===0&&(Vt=mt);let Mt=ut.get(Nt);typeof Mt=="string"&&(Mt=Mt.codePointAt(0)),Mt&&Mt<pt&&!St.has(Vt)&&(He.set(Mt,Vt),St.add(Vt)),rt[Wt]=Vt,Je[Nt]=Wt}return{toFontChar:Je,charCodeToGlyphId:rt,toUnicodeExtraMap:He,nextAvailableFontCharCode:wt}}function Le(dt,ct,mt){const ut=[];for(const Je in dt)dt[Je]>=mt||ut.push({fontCharCode:Je|0,glyphId:dt[Je]});if(ct)for(const[Je,St]of ct)St>=mt||ut.push({fontCharCode:Je,glyphId:St});ut.length===0&&ut.push({fontCharCode:0,glyphId:0}),ut.sort(function(St,bt){return St.fontCharCode-bt.fontCharCode});const rt=[],He=ut.length;for(let Je=0;Je<He;){const St=ut[Je].fontCharCode,bt=[ut[Je].glyphId];++Je;let pt=St;for(;Je<He&&pt+1===ut[Je].fontCharCode&&(bt.push(ut[Je].glyphId),++pt,++Je,pt!==65535););rt.push([St,pt,bt])}return rt}function et(dt,ct,mt){const ut=Le(dt,ct,mt),rt=ut.at(-1)[1]>65535?2:1;let He="\0\0"+Ne(rt)+"\0\0"+(0,R.string32)(4+rt*8),Je,St,bt,pt;for(Je=ut.length-1;Je>=0&&!(ut[Je][0]<=65535);--Je);const wt=Je+1;ut[Je][0]<65535&&ut[Je][1]===65535&&(ut[Je][1]=65534);const Pt=ut[Je][1]<65535?1:0,Nt=wt+Pt,Vt=ce.OpenTypeFileBuilder.getSearchParams(Nt,2);let Wt="",Mt="",$t="",Yt="",Ft="",Jt=0,er,Bt,It,Dt;for(Je=0,St=wt;Je<St;Je++){er=ut[Je],Bt=er[0],It=er[1],Wt+=Ne(Bt),Mt+=Ne(It),Dt=er[2];let Dr=!0;for(bt=1,pt=Dt.length;bt<pt;++bt)if(Dt[bt]!==Dt[bt-1]+1){Dr=!1;break}if(Dr){const kr=Dt[0];$t+=Ne(kr-Bt&65535),Yt+=Ne(0)}else{const kr=(Nt-Je)*2+Jt*2;for(Jt+=It-Bt+1,$t+=Ne(0),Yt+=Ne(kr),bt=0,pt=Dt.length;bt<pt;++bt)Ft+=Ne(Dt[bt])}}Pt>0&&(Mt+="ÿÿ",Wt+="ÿÿ",$t+="\0",Yt+="\0\0");const Zt="\0\0"+Ne(2*Nt)+Ne(Vt.range)+Ne(Vt.entry)+Ne(Vt.rangeShift)+Mt+"\0\0"+Wt+$t+Yt+Ft;let gr="",fr="";if(rt>1){for(He+=`\0\0
`+(0,R.string32)(4+rt*8+4+Zt.length),gr="",Je=0,St=ut.length;Je<St;Je++){er=ut[Je],Bt=er[0],Dt=er[2];let Dr=Dt[0];for(bt=1,pt=Dt.length;bt<pt;++bt)Dt[bt]!==Dt[bt-1]+1&&(It=er[0]+bt-1,gr+=(0,R.string32)(Bt)+(0,R.string32)(It)+(0,R.string32)(Dr),Bt=It+1,Dr=Dt[bt]);gr+=(0,R.string32)(Bt)+(0,R.string32)(er[1])+(0,R.string32)(Dr)}fr="\0\f\0\0"+(0,R.string32)(gr.length+16)+"\0\0\0\0"+(0,R.string32)(gr.length/12)}return He+"\0"+Ne(Zt.length+4)+Zt+fr+gr}function Qe(dt,ct){ct.pos=(ct.start||0)+dt.offset;const mt=ct.getUint16();ct.skip(60);const ut=ct.getUint16();if(mt<4&&ut&768)return!1;const rt=ct.getUint16(),He=ct.getUint16();return rt>He||(ct.skip(6),ct.getUint16()===0)?!1:(dt.data[8]=dt.data[9]=0,!0)}function Ue(dt,ct,mt){mt=mt||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let ut=0,rt=0,He=0,Je=0,St=null,bt=0;if(ct){for(let $t in ct){$t|=0,(St>$t||!St)&&(St=$t),bt<$t&&(bt=$t);const Yt=(0,z.getUnicodeRangeFor)($t);if(Yt<32)ut|=1<<Yt;else if(Yt<64)rt|=1<<Yt-32;else if(Yt<96)He|=1<<Yt-64;else if(Yt<123)Je|=1<<Yt-96;else throw new R.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}bt>65535&&(bt=65535)}else St=0,bt=255;const pt=dt.bbox||[0,0,0,0],wt=mt.unitsPerEm||1/(dt.fontMatrix||R.FONT_IDENTITY_MATRIX)[0],Pt=dt.ascentScaled?1:wt/Ee,Nt=mt.ascent||Math.round(Pt*(dt.ascent||pt[3]));let Vt=mt.descent||Math.round(Pt*(dt.descent||pt[1]));Vt>0&&dt.descent>0&&pt[1]<0&&(Vt=-Vt);const Wt=mt.yMax||Nt,Mt=-mt.yMin||-Vt;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(dt.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,R.string32)(ut)+(0,R.string32)(rt)+(0,R.string32)(He)+(0,R.string32)(Je)+"*21*"+Ne(dt.italicAngle?1:0)+Ne(St||dt.firstChar)+Ne(bt||dt.lastChar)+Ne(Nt)+Ne(Vt)+"\0d"+Ne(Wt)+Ne(Mt)+"\0\0\0\0\0\0\0\0"+Ne(dt.xHeight)+Ne(dt.capHeight)+Ne(0)+Ne(St||dt.firstChar)+"\0"}function $e(dt){const ct=Math.floor(dt.italicAngle*65536);return"\0\0\0"+(0,R.string32)(ct)+"\0\0\0\0"+(0,R.string32)(dt.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function Ye(dt){return dt.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function tt(dt,ct){ct||(ct=[[],[]]);const mt=[ct[0][0]||"Original licence",ct[0][1]||dt,ct[0][2]||"Unknown",ct[0][3]||"uniqueID",ct[0][4]||dt,ct[0][5]||"Version 0.11",ct[0][6]||Ye(dt),ct[0][7]||"Unknown",ct[0][8]||"Unknown",ct[0][9]||"Unknown"],ut=[];let rt,He,Je,St,bt;for(rt=0,He=mt.length;rt<He;rt++){bt=ct[1][rt]||mt[rt];const $t=[];for(Je=0,St=bt.length;Je<St;Je++)$t.push(Ne(bt.charCodeAt(Je)));ut.push($t.join(""))}const pt=[mt,ut],wt=["\0","\0"],Pt=["\0\0","\0"],Nt=["\0\0"," "],Vt=mt.length*wt.length;let Wt="\0\0"+Ne(Vt)+Ne(Vt*12+6),Mt=0;for(rt=0,He=wt.length;rt<He;rt++){const $t=pt[rt];for(Je=0,St=$t.length;Je<St;Je++){bt=$t[Je];const Yt=wt[rt]+Pt[rt]+Nt[rt]+Ne(Je)+Ne(bt.length)+Ne(Mt);Wt+=Yt,Mt+=bt.length}}return Wt+=mt.join("")+ut.join(""),Wt}class ot{constructor(ct,mt,ut){this.name=ct,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=ut.loadedName,this.isType3Font=ut.isType3Font,this.missingFile=!1,this.cssFontInfo=ut.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let rt=!!(ut.flags&K.FontFlags.Serif);if(!rt&&!ut.isSimulatedFlags){const pt=ct.replace(/[,_]/g,"-").split("-")[0],wt=(0,ie.getSerifFonts)();for(const Pt of pt.split("+"))if(wt[Pt]){rt=!0;break}}this.isSerifFont=rt,this.isSymbolicFont=!!(ut.flags&K.FontFlags.Symbolic),this.isMonospace=!!(ut.flags&K.FontFlags.FixedPitch);let He=ut.type,Je=ut.subtype;this.type=He,this.subtype=Je;let St="sans-serif";if(this.isMonospace?St="monospace":this.isSerifFont&&(St="serif"),this.fallbackName=St,this.differences=ut.differences,this.widths=ut.widths,this.defaultWidth=ut.defaultWidth,this.composite=ut.composite,this.cMap=ut.cMap,this.capHeight=ut.capHeight/Ee,this.ascent=ut.ascent/Ee,this.descent=ut.descent/Ee,this.lineHeight=this.ascent-this.descent,this.fontMatrix=ut.fontMatrix,this.bbox=ut.bbox,this.defaultEncoding=ut.defaultEncoding,this.toUnicode=ut.toUnicode,this.toFontChar=[],ut.type==="Type3"){for(let pt=0;pt<256;pt++)this.toFontChar[pt]=this.differences[pt]||ut.defaultEncoding[pt];this.fontType=R.FontType.TYPE3;return}if(this.cidEncoding=ut.cidEncoding||"",this.vertical=!!ut.vertical,this.vertical&&(this.vmetrics=ut.vmetrics,this.defaultVMetrics=ut.defaultVMetrics),!mt||mt.isEmpty){mt&&(0,R.warn)('Font file is empty in "'+ct+'" ('+this.loadedName+")"),this.fallbackToSystemFont(ut);return}[He,Je]=Ie(mt,ut),(He!==this.type||Je!==this.subtype)&&(0,R.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${He}/${Je}.`);let bt;try{switch(He){case"MMType1":(0,R.info)("MMType1 font ("+ct+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const pt=Je==="Type1C"||Je==="CIDFontType0C"?new J.CFFFont(mt,ut):new oe.Type1Font(ct,mt,ut);fe(ut),bt=this.convert(ct,pt,ut);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",bt=this.checkAndRepair(ct,mt,ut),this.isOpenType&&(fe(ut),He="OpenType");break;default:throw new R.FormatError(`Font ${He} is not supported`)}}catch(pt){(0,R.warn)(pt),this.fallbackToSystemFont(ut);return}ye(ut),this.data=bt,this.fontType=(0,K.getFontType)(He,Je,ut.isStandardFont),this.fontMatrix=ut.fontMatrix,this.widths=ut.widths,this.defaultWidth=ut.defaultWidth,this.toUnicode=ut.toUnicode,this.seacMap=ut.seacMap}get renderer(){const ct=W.FontRendererFactory.create(this,K.SEAC_ANALYSIS_ENABLED);return(0,R.shadow)(this,"renderer",ct)}exportData(){const mt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?[...ke,...xe]:ke,ut=Object.create(null);let rt,He;for(rt of mt)He=this[rt],He!==void 0&&(ut[rt]=He);return ut}fallbackToSystemFont(ct){this.missingFile=!0;const mt=this.name,ut=this.type,rt=this.subtype;let He=(0,K.normalizeFontName)(mt);const Je=(0,ie.getStdFontMap)(),St=(0,ie.getNonStdFontMap)(),bt=!!Je[He],pt=!!(St[He]&&Je[St[He]]);He=Je[He]||St[He]||He;const Pt=(0,X.getFontBasicMetrics)()[He];Pt&&(isNaN(this.ascent)&&(this.ascent=Pt.ascent/Ee),isNaN(this.descent)&&(this.descent=Pt.descent/Ee),isNaN(this.capHeight)&&(this.capHeight=Pt.capHeight/Ee)),this.bold=He.search(/bold/gi)!==-1,this.italic=He.search(/oblique/gi)!==-1||He.search(/italic/gi)!==-1,this.black=mt.search(/Black/g)!==-1;const Nt=mt.search(/Narrow/g)!==-1;if(this.remeasure=(!bt||Nt)&&Object.keys(this.widths).length>0,(bt||pt)&&ut==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const Vt=ct.cidToGidMap,Wt=[];if(Be(Wt,(0,ie.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(mt)?Be(Wt,(0,ie.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(mt)&&Be(Wt,(0,ie.getSupplementalGlyphMapForCalibri)()),Vt){for(const Mt in Wt){const $t=Wt[Mt];Vt[$t]!==void 0&&(Wt[+Mt]=Vt[$t])}Vt.length!==this.toUnicode.length&&ct.hasIncludedToUnicodeMap&&this.toUnicode instanceof he.IdentityToUnicodeMap&&this.toUnicode.forEach(function(Mt,$t){const Yt=Wt[Mt];Vt[Yt]===void 0&&(Wt[+Mt]=$t)})}this.toUnicode instanceof he.IdentityToUnicodeMap||this.toUnicode.forEach(function(Mt,$t){Wt[+Mt]=$t}),this.toFontChar=Wt,this.toUnicode=new he.ToUnicodeMap(Wt)}else if(/Symbol/i.test(He))this.toFontChar=Ke(ae.SymbolSetEncoding,(0,e.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(He))/Wingdings/i.test(mt)&&(0,R.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=Ke(ae.ZapfDingbatsEncoding,(0,e.getDingbatsGlyphsUnicode)(),this.differences);else if(bt){const Vt=Ke(this.defaultEncoding,(0,e.getGlyphsUnicode)(),this.differences);ut==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof he.IdentityToUnicodeMap)&&this.toUnicode.forEach(function(Wt,Mt){Vt[+Wt]=Mt}),this.toFontChar=Vt}else{const Vt=(0,e.getGlyphsUnicode)(),Wt=[];this.toUnicode.forEach((Mt,$t)=>{if(!this.composite){const Yt=this.differences[Mt]||this.defaultEncoding[Mt],Ft=(0,z.getUnicodeForGlyph)(Yt,Vt);Ft!==-1&&($t=Ft)}Wt[+Mt]=$t}),this.composite&&this.toUnicode instanceof he.IdentityToUnicodeMap&&/Verdana/i.test(mt)&&Be(Wt,(0,ie.getGlyphMapForStandardFonts)()),this.toFontChar=Wt}ye(ct),this.loadedName=He.split("-")[0],this.fontType=(0,K.getFontType)(ut,rt,ct.isStandardFont)}checkAndRepair(ct,mt,ut){const rt=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function He(sr,ur){const Cr=Object.create(null);Cr["OS/2"]=null,Cr.cmap=null,Cr.head=null,Cr.hhea=null,Cr.hmtx=null,Cr.maxp=null,Cr.name=null,Cr.post=null;for(let Tr=0;Tr<ur;Tr++){const jt=Je(sr);rt.includes(jt.tag)&&jt.length!==0&&(Cr[jt.tag]=jt)}return Cr}function Je(sr){const ur=sr.getString(4),Cr=sr.getInt32()>>>0,Tr=sr.getInt32()>>>0,jt=sr.getInt32()>>>0,Wr=sr.pos;sr.pos=sr.start||0,sr.skip(Tr);const ir=sr.getBytes(jt);return sr.pos=Wr,ur==="head"&&(ir[8]=ir[9]=ir[10]=ir[11]=0,ir[17]|=32),{tag:ur,checksum:Cr,length:jt,offset:Tr,data:ir}}function St(sr){return{version:sr.getString(4),numTables:sr.getUint16(),searchRange:sr.getUint16(),entrySelector:sr.getUint16(),rangeShift:sr.getUint16()}}function bt(sr){const ur=sr.getString(4);(0,R.assert)(ur==="ttcf","Must be a TrueType Collection font.");const Cr=sr.getUint16(),Tr=sr.getUint16(),jt=sr.getInt32()>>>0,Wr=[];for(let Gr=0;Gr<jt;Gr++)Wr.push(sr.getInt32()>>>0);const ir={ttcTag:ur,majorVersion:Cr,minorVersion:Tr,numFonts:jt,offsetTable:Wr};switch(Cr){case 1:return ir;case 2:return ir.dsigTag=sr.getInt32()>>>0,ir.dsigLength=sr.getInt32()>>>0,ir.dsigOffset=sr.getInt32()>>>0,ir}throw new R.FormatError(`Invalid TrueType Collection majorVersion: ${Cr}.`)}function pt(sr,ur){const{numFonts:Cr,offsetTable:Tr}=bt(sr),jt=ur.split("+");let Wr;for(let ir=0;ir<Cr;ir++){sr.pos=(sr.start||0)+Tr[ir];const Gr=St(sr),Jr=He(sr,Gr.numTables);if(!Jr.name)throw new R.FormatError('TrueType Collection font must contain a "name" table.');const Xr=$t(Jr.name);for(let fn=0,cn=Xr.length;fn<cn;fn++)for(let nn=0,ar=Xr[fn].length;nn<ar;nn++){const xr=Xr[fn][nn]&&Xr[fn][nn].replace(/\s/g,"");if(xr){if(xr===ur)return{header:Gr,tables:Jr};if(!(jt.length<2))for(const Lr of jt)xr===Lr&&(Wr={name:Lr,header:Gr,tables:Jr})}}}if(Wr)return(0,R.warn)(`TrueType Collection does not contain "${ur}" font, falling back to "${Wr.name}" font instead.`),{header:Wr.header,tables:Wr.tables};throw new R.FormatError(`TrueType Collection does not contain "${ur}" font.`)}function wt(sr,ur,Cr,Tr){if(!sr)return(0,R.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let jt,Wr=(ur.start||0)+sr.offset;ur.pos=Wr,ur.skip(2);const ir=ur.getUint16();let Gr,Jr=!1;for(let xr=0;xr<ir;xr++){const Lr=ur.getUint16(),Rr=ur.getUint16(),Mr=ur.getInt32()>>>0;let an=!1;if(!(Gr&&Gr.platformId===Lr&&Gr.encodingId===Rr)){if(Lr===0&&(Rr===0||Rr===1||Rr===3))an=!0;else if(Lr===1&&Rr===0)an=!0;else if(Lr===3&&Rr===1&&(Tr||!Gr))an=!0,Cr||(Jr=!0);else if(Cr&&Lr===3&&Rr===0){an=!0;let gn=!0;if(xr<ir-1){const dn=ur.peekBytes(2);pe(dn[0],dn[1])<Lr&&(gn=!1)}gn&&(Jr=!0)}if(an&&(Gr={platformId:Lr,encodingId:Rr,offset:Mr}),Jr)break}}if(Gr&&(ur.pos=Wr+Gr.offset),!Gr||ur.peekByte()===-1)return(0,R.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};const Xr=ur.getUint16();let fn=!1;const cn=[];let nn,ar;if(Xr===0){for(ur.skip(4),nn=0;nn<256;nn++){const xr=ur.getByte();xr&&cn.push({charCode:nn,glyphId:xr})}fn=!0}else if(Xr===2){ur.skip(4);const xr=[];let Lr=0;for(let Mr=0;Mr<256;Mr++){const an=ur.getUint16()>>3;xr.push(an),Lr=Math.max(an,Lr)}const Rr=[];for(let Mr=0;Mr<=Lr;Mr++)Rr.push({firstCode:ur.getUint16(),entryCount:ur.getUint16(),idDelta:Ge(ur.getByte(),ur.getByte()),idRangePos:ur.pos+ur.getUint16()});for(let Mr=0;Mr<256;Mr++)if(xr[Mr]===0)ur.pos=Rr[0].idRangePos+2*Mr,ar=ur.getUint16(),cn.push({charCode:Mr,glyphId:ar});else{const an=Rr[xr[Mr]];for(nn=0;nn<an.entryCount;nn++){const gn=(Mr<<8)+nn+an.firstCode;ur.pos=an.idRangePos+2*nn,ar=ur.getUint16(),ar!==0&&(ar=(ar+an.idDelta)%65536),cn.push({charCode:gn,glyphId:ar})}}}else if(Xr===4){ur.skip(4);const xr=ur.getUint16()>>1;ur.skip(6);const Lr=[];let Rr;for(Rr=0;Rr<xr;Rr++)Lr.push({end:ur.getUint16()});for(ur.skip(2),Rr=0;Rr<xr;Rr++)Lr[Rr].start=ur.getUint16();for(Rr=0;Rr<xr;Rr++)Lr[Rr].delta=ur.getUint16();let Mr=0,an;for(Rr=0;Rr<xr;Rr++){jt=Lr[Rr];const dn=ur.getUint16();if(!dn){jt.offsetIndex=-1;continue}an=(dn>>1)-(xr-Rr),jt.offsetIndex=an,Mr=Math.max(Mr,an+jt.end-jt.start+1)}const gn=[];for(nn=0;nn<Mr;nn++)gn.push(ur.getUint16());for(Rr=0;Rr<xr;Rr++){jt=Lr[Rr],Wr=jt.start;const dn=jt.end,pn=jt.delta;for(an=jt.offsetIndex,nn=Wr;nn<=dn;nn++)nn!==65535&&(ar=an<0?nn:gn[an+nn-Wr],ar=ar+pn&65535,cn.push({charCode:nn,glyphId:ar}))}}else if(Xr===6){ur.skip(4);const xr=ur.getUint16(),Lr=ur.getUint16();for(nn=0;nn<Lr;nn++){ar=ur.getUint16();const Rr=xr+nn;cn.push({charCode:Rr,glyphId:ar})}}else if(Xr===12){ur.skip(10);const xr=ur.getInt32()>>>0;for(nn=0;nn<xr;nn++){const Lr=ur.getInt32()>>>0,Rr=ur.getInt32()>>>0;let Mr=ur.getInt32()>>>0;for(let an=Lr;an<=Rr;an++)cn.push({charCode:an,glyphId:Mr++})}}else return(0,R.warn)("cmap table has unsupported format: "+Xr),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};cn.sort(function(xr,Lr){return xr.charCode-Lr.charCode});for(let xr=1;xr<cn.length;xr++)cn[xr-1].charCode===cn[xr].charCode&&(cn.splice(xr,1),xr--);return{platformId:Gr.platformId,encodingId:Gr.encodingId,mappings:cn,hasShortCmap:fn}}function Pt(sr,ur,Cr,Tr,jt,Wr){if(!ur){Cr&&(Cr.data=null);return}sr.pos=(sr.start||0)+ur.offset,sr.pos+=4,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2,sr.pos+=2;const ir=sr.getUint16();sr.pos+=8,sr.pos+=2;let Gr=sr.getUint16();ir!==0&&(pe(Tr.data[44],Tr.data[45])&2||(ur.data[22]=0,ur.data[23]=0)),Gr>jt&&((0,R.info)(`The numOfMetrics (${Gr}) should not be greater than the numGlyphs (${jt}).`),Gr=jt,ur.data[34]=(Gr&65280)>>8,ur.data[35]=Gr&255);const Xr=jt-Gr-(Cr.length-Gr*4>>1);if(Xr>0){const fn=new Uint8Array(Cr.length+Xr*2);fn.set(Cr.data),Wr&&(fn[Cr.length]=Cr.data[2],fn[Cr.length+1]=Cr.data[3]),Cr.data=fn}}function Nt(sr,ur,Cr,Tr,jt,Wr){const ir={length:0,sizeOfInstructions:0};if(Cr-ur<=12)return ir;const Gr=sr.subarray(ur,Cr);let Jr=Ge(Gr[0],Gr[1]);if(Jr<0)return Jr=-1,_e(Gr,0,Jr),Tr.set(Gr,jt),ir.length=Gr.length,ir;let Xr,fn=10,cn=0;for(Xr=0;Xr<Jr;Xr++)cn=(Gr[fn]<<8|Gr[fn+1])+1,fn+=2;const nn=fn,ar=Gr[fn]<<8|Gr[fn+1];ir.sizeOfInstructions=ar,fn+=2+ar;const xr=fn;let Lr=0;for(Xr=0;Xr<cn;Xr++){const Mr=Gr[fn++];Mr&192&&(Gr[fn-1]=Mr&63);let an=2;Mr&2?an=1:Mr&16&&(an=0);let gn=2;Mr&4?gn=1:Mr&32&&(gn=0);const dn=an+gn;if(Lr+=dn,Mr&8){const pn=Gr[fn++];Xr+=pn,Lr+=pn*dn}}if(Lr===0)return ir;let Rr=fn+Lr;return Rr>Gr.length?ir:!Wr&&ar>0?(Tr.set(Gr.subarray(0,nn),jt),Tr.set([0,0],jt+nn),Tr.set(Gr.subarray(xr,Rr),jt+nn+2),Rr-=ar,Gr.length-Rr>3&&(Rr=Rr+3&-4),ir.length=Rr,ir):Gr.length-Rr>3?(Rr=Rr+3&-4,Tr.set(Gr.subarray(0,Rr),jt),ir.length=Rr,ir):(Tr.set(Gr,jt),ir.length=Gr.length,ir)}function Vt(sr,ur,Cr){const Tr=sr.data,jt=Ae(Tr[0],Tr[1],Tr[2],Tr[3]);jt>>16!==1&&((0,R.info)("Attempting to fix invalid version in head table: "+jt),Tr[0]=0,Tr[1]=1,Tr[2]=0,Tr[3]=0);const Wr=pe(Tr[50],Tr[51]);if(Wr<0||Wr>1){(0,R.info)("Attempting to fix invalid indexToLocFormat in head table: "+Wr);const ir=ur+1;if(Cr===ir<<1)Tr[50]=0,Tr[51]=0;else if(Cr===ir<<2)Tr[50]=0,Tr[51]=1;else throw new R.FormatError("Could not fix indexToLocFormat: "+Wr)}}function Wt(sr,ur,Cr,Tr,jt,Wr,ir){let Gr,Jr,Xr;Tr?(Gr=4,Jr=function(Mn,Yn){return Mn[Yn]<<24|Mn[Yn+1]<<16|Mn[Yn+2]<<8|Mn[Yn+3]},Xr=function(Mn,Yn,hi){Mn[Yn]=hi>>>24&255,Mn[Yn+1]=hi>>16&255,Mn[Yn+2]=hi>>8&255,Mn[Yn+3]=hi&255}):(Gr=2,Jr=function(Mn,Yn){return Mn[Yn]<<9|Mn[Yn+1]<<1},Xr=function(Mn,Yn,hi){Mn[Yn]=hi>>9&255,Mn[Yn+1]=hi>>1&255});const fn=Wr?Cr+1:Cr,cn=Gr*(1+fn),nn=new Uint8Array(cn);nn.set(sr.data.subarray(0,cn)),sr.data=nn;const ar=ur.data,xr=ar.length,Lr=new Uint8Array(xr);let Rr,Mr;const an=[];for(Rr=0,Mr=0;Rr<Cr+1;Rr++,Mr+=Gr){let pn=Jr(nn,Mr);pn>xr&&(pn=xr),an.push({index:Rr,offset:pn,endOffset:0})}for(an.sort((pn,Mn)=>pn.offset-Mn.offset),Rr=0;Rr<Cr;Rr++)an[Rr].endOffset=an[Rr+1].offset;for(an.sort((pn,Mn)=>pn.index-Mn.index),Rr=0;Rr<Cr;Rr++){const{offset:pn,endOffset:Mn}=an[Rr];if(pn!==0||Mn!==0)break;const Yn=an[Rr+1].offset;if(Yn!==0){an[Rr].endOffset=Yn;break}}const gn=Object.create(null);let dn=0;for(Xr(nn,0,dn),Rr=0,Mr=Gr;Rr<Cr;Rr++,Mr+=Gr){const pn=Nt(ar,an[Rr].offset,an[Rr].endOffset,Lr,dn,jt),Mn=pn.length;Mn===0&&(gn[Rr]=!0),pn.sizeOfInstructions>ir&&(ir=pn.sizeOfInstructions),dn+=Mn,Xr(nn,Mr,dn)}if(dn===0){const pn=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(Rr=0,Mr=Gr;Rr<fn;Rr++,Mr+=Gr)Xr(nn,Mr,pn.length);ur.data=pn}else if(Wr){const pn=Jr(nn,Gr);Lr.length>pn+dn?ur.data=Lr.subarray(0,pn+dn):(ur.data=new Uint8Array(pn+dn),ur.data.set(Lr.subarray(0,dn))),ur.data.set(Lr.subarray(0,pn),dn),Xr(sr.data,nn.length-Gr,dn+pn)}else ur.data=Lr.subarray(0,dn);return{missingGlyphs:gn,maxSizeOfInstructions:ir}}function Mt(sr,ur,Cr){const Tr=(mt.start||0)+sr.offset;mt.pos=Tr;const jt=sr.length,Wr=Tr+jt,ir=mt.getInt32();mt.skip(28);let Gr,Jr=!0,Xr;switch(ir){case 65536:Gr=K.MacStandardGlyphOrdering;break;case 131072:const fn=mt.getUint16();if(fn!==Cr){Jr=!1;break}const cn=[];for(Xr=0;Xr<fn;++Xr){const xr=mt.getUint16();if(xr>=32768){Jr=!1;break}cn.push(xr)}if(!Jr)break;const nn=[],ar=[];for(;mt.pos<Wr;){const xr=mt.getByte();for(ar.length=xr,Xr=0;Xr<xr;++Xr)ar[Xr]=String.fromCharCode(mt.getByte());nn.push(ar.join(""))}for(Gr=[],Xr=0;Xr<fn;++Xr){const xr=cn[Xr];if(xr<258){Gr.push(K.MacStandardGlyphOrdering[xr]);continue}Gr.push(nn[xr-258])}break;case 196608:break;default:(0,R.warn)("Unknown/unsupported post table version "+ir),Jr=!1,ur.defaultEncoding&&(Gr=ur.defaultEncoding);break}return ur.glyphNames=Gr,Jr}function $t(sr){const ur=(mt.start||0)+sr.offset;mt.pos=ur;const Cr=[[],[]],Tr=sr.length,jt=ur+Tr;if(mt.getUint16()!==0||Tr<6)return Cr;const Gr=mt.getUint16(),Jr=mt.getUint16(),Xr=[],fn=12;let cn,nn;for(cn=0;cn<Gr&&mt.pos+fn<=jt;cn++){const ar={platform:mt.getUint16(),encoding:mt.getUint16(),language:mt.getUint16(),name:mt.getUint16(),length:mt.getUint16(),offset:mt.getUint16()};(ar.platform===1&&ar.encoding===0&&ar.language===0||ar.platform===3&&ar.encoding===1&&ar.language===1033)&&Xr.push(ar)}for(cn=0,nn=Xr.length;cn<nn;cn++){const ar=Xr[cn];if(ar.length<=0)continue;const xr=ur+Jr+ar.offset;if(xr+ar.length>jt)continue;mt.pos=xr;const Lr=ar.name;if(ar.encoding){let Rr="";for(let Mr=0,an=ar.length;Mr<an;Mr+=2)Rr+=String.fromCharCode(mt.getUint16());Cr[1][Lr]=Rr}else Cr[0][Lr]=mt.getString(ar.length)}return Cr}const Yt=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function Ft(sr,ur){let Cr=sr.data,Tr=0,jt,Wr,ir,Gr,Jr,Xr=0,fn=0;const cn=[],nn=[],ar=[];let xr=ur.tooComplexToFollowFunctions,Lr=!1,Rr=0,Mr=0;for(let gn=Cr.length;Tr<gn;){const dn=Cr[Tr++];if(dn===64)if(Wr=Cr[Tr++],Lr||Mr)Tr+=Wr;else for(jt=0;jt<Wr;jt++)cn.push(Cr[Tr++]);else if(dn===65)if(Wr=Cr[Tr++],Lr||Mr)Tr+=Wr*2;else for(jt=0;jt<Wr;jt++)ir=Cr[Tr++],cn.push(ir<<8|Cr[Tr++]);else if((dn&248)===176)if(Wr=dn-176+1,Lr||Mr)Tr+=Wr;else for(jt=0;jt<Wr;jt++)cn.push(Cr[Tr++]);else if((dn&248)===184)if(Wr=dn-184+1,Lr||Mr)Tr+=Wr*2;else for(jt=0;jt<Wr;jt++)ir=Cr[Tr++],cn.push(ir<<8|Cr[Tr++]);else if(dn===43&&!xr){if(!Lr&&!Mr){if(Gr=cn.at(-1),isNaN(Gr))(0,R.info)("TT: CALL empty stack (or invalid entry).");else if(ur.functionsUsed[Gr]=!0,Gr in ur.functionsStackDeltas){const pn=cn.length+ur.functionsStackDeltas[Gr];if(pn<0){(0,R.warn)("TT: CALL invalid functions stack delta."),ur.hintsValid=!1;return}cn.length=pn}else if(Gr in ur.functionsDefined&&!ar.includes(Gr)){if(nn.push({data:Cr,i:Tr,stackTop:cn.length-1}),ar.push(Gr),Jr=ur.functionsDefined[Gr],!Jr){(0,R.warn)("TT: CALL non-existent function"),ur.hintsValid=!1;return}Cr=Jr.data,Tr=Jr.i}}}else if(dn===44&&!xr)(Lr||Mr)&&((0,R.warn)("TT: nested FDEFs not allowed"),xr=!0),Lr=!0,fn=Tr,Gr=cn.pop(),ur.functionsDefined[Gr]={data:Cr,i:Tr};else if(dn===45)if(Lr)Lr=!1,Xr=Tr;else{if(Jr=nn.pop(),!Jr){(0,R.warn)("TT: ENDF bad stack"),ur.hintsValid=!1;return}Gr=ar.pop(),Cr=Jr.data,Tr=Jr.i,ur.functionsStackDeltas[Gr]=cn.length-Jr.stackTop}else if(dn===137)(Lr||Mr)&&((0,R.warn)("TT: nested IDEFs not allowed"),xr=!0),Lr=!0,fn=Tr;else if(dn===88)++Rr;else if(dn===27)Mr=Rr;else if(dn===89)Mr===Rr&&(Mr=0),--Rr;else if(dn===28&&!Lr&&!Mr){const pn=cn.at(-1);pn>0&&(Tr+=pn-1)}if(!Lr&&!Mr){let pn=0;for(dn<=142?pn=Yt[dn]:dn>=192&&dn<=223?pn=-1:dn>=224&&(pn=-2),dn>=113&&dn<=117&&(Wr=cn.pop(),isNaN(Wr)||(pn=-Wr*2));pn<0&&cn.length>0;)cn.pop(),pn++;for(;pn>0;)cn.push(NaN),pn--}}ur.tooComplexToFollowFunctions=xr;const an=[Cr];Tr>Cr.length&&an.push(new Uint8Array(Tr-Cr.length)),fn>Xr&&((0,R.warn)("TT: complementing a missing function tail"),an.push(new Uint8Array([34,45]))),er(sr,an)}function Jt(sr,ur){if(!sr.tooComplexToFollowFunctions){if(sr.functionsDefined.length>ur){(0,R.warn)("TT: more functions defined than expected"),sr.hintsValid=!1;return}for(let Cr=0,Tr=sr.functionsUsed.length;Cr<Tr;Cr++){if(Cr>ur){(0,R.warn)("TT: invalid function id: "+Cr),sr.hintsValid=!1;return}if(sr.functionsUsed[Cr]&&!sr.functionsDefined[Cr]){(0,R.warn)("TT: undefined function: "+Cr),sr.hintsValid=!1;return}}}}function er(sr,ur){if(ur.length>1){let Cr=0,Tr,jt;for(Tr=0,jt=ur.length;Tr<jt;Tr++)Cr+=ur[Tr].length;Cr=Cr+3&-4;const Wr=new Uint8Array(Cr);let ir=0;for(Tr=0,jt=ur.length;Tr<jt;Tr++)Wr.set(ur[Tr],ir),ir+=ur[Tr].length;sr.data=Wr,sr.length=Cr}}function Bt(sr,ur,Cr,Tr){const jt={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(sr&&Ft(sr,jt),ur&&Ft(ur,jt),sr&&Jt(jt,Tr),Cr&&Cr.length&1){const Wr=new Uint8Array(Cr.length+1);Wr.set(Cr.data),Cr.data=Wr}return jt.hintsValid}mt=new se.Stream(new Uint8Array(mt.getBytes()));let It,Dt;if(Te(mt)){const sr=pt(mt,this.name);It=sr.header,Dt=sr.tables}else It=St(mt),Dt=He(mt,It.numTables);let Zt,gr;const fr=!Dt["CFF "];if(fr){if(!Dt.loca)throw new R.FormatError('Required "loca" table is not found');Dt.glyf||((0,R.warn)('Required "glyf" table is not found -- trying to recover.'),Dt.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const sr=ut.composite&&((ut.cidToGidMap||[]).length>0||!(ut.cMap instanceof Q.IdentityCMap));if(It.version==="OTTO"&&!sr||!Dt.head||!Dt.hhea||!Dt.maxp||!Dt.post)return gr=new se.Stream(Dt["CFF "].data),Zt=new J.CFFFont(gr,ut),fe(ut),this.convert(ct,Zt,ut);delete Dt.glyf,delete Dt.loca,delete Dt.fpgm,delete Dt.prep,delete Dt["cvt "],this.isOpenType=!0}if(!Dt.maxp)throw new R.FormatError('Required "maxp" table is not found');mt.pos=(mt.start||0)+Dt.maxp.offset;const Dr=mt.getInt32(),kr=mt.getUint16();if(ut.scaleFactors&&ut.scaleFactors.length===kr&&fr){const{scaleFactors:sr}=ut,ur=pe(Dt.head.data[50],Dt.head.data[51]),Cr=new L.GlyfTable({glyfTable:Dt.glyf.data,isGlyphLocationsLong:ur,locaTable:Dt.loca.data,numGlyphs:kr});Cr.scale(sr);const{glyf:Tr,loca:jt,isLocationLong:Wr}=Cr.write();Dt.glyf.data=Tr,Dt.loca.data=jt,Wr!==!!ur&&(Dt.head.data[50]=0,Dt.head.data[51]=Wr?1:0);const ir=Dt.hmtx.data;for(let Gr=0;Gr<kr;Gr++){const Jr=4*Gr,Xr=Math.round(sr[Gr]*pe(ir[Jr],ir[Jr+1]));ir[Jr]=Xr>>8&255,ir[Jr+1]=Xr&255;const fn=Math.round(sr[Gr]*Ge(ir[Jr+2],ir[Jr+3]));_e(ir,Jr+2,fn)}}let cr=kr+1,Ar=!0;cr>65535&&(Ar=!1,cr=kr,(0,R.warn)("Not enough space in glyfs to duplicate first glyph."));let yt=0,vt=0;Dr>=65536&&Dt.maxp.length>=22&&(mt.pos+=8,mt.getUint16()>2&&(Dt.maxp.data[14]=0,Dt.maxp.data[15]=2),mt.pos+=4,yt=mt.getUint16(),mt.pos+=4,vt=mt.getUint16()),Dt.maxp.data[4]=cr>>8,Dt.maxp.data[5]=cr&255;const Xt=Bt(Dt.fpgm,Dt.prep,Dt["cvt "],yt);if(Xt||(delete Dt.fpgm,delete Dt.prep,delete Dt["cvt "]),Pt(mt,Dt.hhea,Dt.hmtx,Dt.head,cr,Ar),!Dt.head)throw new R.FormatError('Required "head" table is not found');Vt(Dt.head,kr,fr?Dt.loca.length:0);let At=Object.create(null);if(fr){const sr=pe(Dt.head.data[50],Dt.head.data[51]),ur=Wt(Dt.loca,Dt.glyf,kr,sr,Xt,Ar,vt);At=ur.missingGlyphs,Dr>=65536&&Dt.maxp.length>=22&&(Dt.maxp.data[26]=ur.maxSizeOfInstructions>>8,Dt.maxp.data[27]=ur.maxSizeOfInstructions&255)}if(!Dt.hhea)throw new R.FormatError('Required "hhea" table is not found');Dt.hhea.data[10]===0&&Dt.hhea.data[11]===0&&(Dt.hhea.data[10]=255,Dt.hhea.data[11]=255);const zt={unitsPerEm:pe(Dt.head.data[18],Dt.head.data[19]),yMax:pe(Dt.head.data[42],Dt.head.data[43]),yMin:Ge(Dt.head.data[38],Dt.head.data[39]),ascent:Ge(Dt.hhea.data[4],Dt.hhea.data[5]),descent:Ge(Dt.hhea.data[6],Dt.hhea.data[7]),lineGap:Ge(Dt.hhea.data[8],Dt.hhea.data[9])};this.ascent=zt.ascent/zt.unitsPerEm,this.descent=zt.descent/zt.unitsPerEm,this.lineGap=zt.lineGap/zt.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,Dt.post&&Mt(Dt.post,ut,kr),Dt.post={tag:"post",data:$e(ut)};const Br=[];function br(sr){return!At[sr]}if(ut.composite){const sr=ut.cidToGidMap||[],ur=sr.length===0;ut.cMap.forEach(function(Cr,Tr){if(typeof Tr=="string"&&(Tr=Ve(Cr,Tr,!0)),Tr>65535)throw new R.FormatError("Max size of CID is 65,535");let jt=-1;ur?jt=Tr:sr[Tr]!==void 0&&(jt=sr[Tr]),jt>=0&&jt<kr&&br(jt)&&(Br[Cr]=jt)})}else{const sr=wt(Dt.cmap,mt,this.isSymbolicFont,ut.hasEncoding),ur=sr.platformId,Cr=sr.encodingId,Tr=sr.mappings,jt=Tr.length;let Wr=[],ir=!1;if(ut.hasEncoding&&(ut.baseEncodingName==="MacRomanEncoding"||ut.baseEncodingName==="WinAnsiEncoding")&&(Wr=(0,ae.getEncoding)(ut.baseEncodingName)),ut.hasEncoding&&!this.isSymbolicFont&&(ur===3&&Cr===1||ur===1&&Cr===0)){const Gr=(0,e.getGlyphsUnicode)();for(let Jr=0;Jr<256;Jr++){let Xr;if(this.differences[Jr]!==void 0?Xr=this.differences[Jr]:Wr.length&&Wr[Jr]!==""?Xr=Wr[Jr]:Xr=ae.StandardEncoding[Jr],!Xr)continue;const fn=(0,K.recoverGlyphName)(Xr,Gr);let cn;if(ur===3&&Cr===1?cn=Gr[fn]:ur===1&&Cr===0&&(cn=ae.MacRomanEncoding.indexOf(fn)),cn===void 0){if(!ut.glyphNames&&ut.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof he.IdentityToUnicodeMap)){const nn=this.toUnicode.get(Jr);nn&&(cn=nn.codePointAt(0))}if(cn===void 0)continue}for(let nn=0;nn<jt;++nn)if(Tr[nn].charCode===cn){Br[Jr]=Tr[nn].glyphId;break}}}else if(ur===0){for(let Gr=0;Gr<jt;++Gr)Br[Tr[Gr].charCode]=Tr[Gr].glyphId;ir=!0}else for(let Gr=0;Gr<jt;++Gr){let Jr=Tr[Gr].charCode;ur===3&&Jr>=61440&&Jr<=61695&&(Jr&=255),Br[Jr]=Tr[Gr].glyphId}if(ut.glyphNames&&(Wr.length||this.differences.length))for(let Gr=0;Gr<256;++Gr){if(!ir&&Br[Gr]!==void 0)continue;const Jr=this.differences[Gr]||Wr[Gr];if(!Jr)continue;const Xr=ut.glyphNames.indexOf(Jr);Xr>0&&br(Xr)&&(Br[Gr]=Xr)}}Br.length===0&&(Br[0]=0);let Ur=cr-1;if(Ar||(Ur=0),!ut.cssFontInfo){const sr=je(Br,br,Ur,this.toUnicode);this.toFontChar=sr.toFontChar,Dt.cmap={tag:"cmap",data:et(sr.charCodeToGlyphId,sr.toUnicodeExtraMap,cr)},(!Dt["OS/2"]||!Qe(Dt["OS/2"],mt))&&(Dt["OS/2"]={tag:"OS/2",data:Ue(ut,sr.charCodeToGlyphId,zt)})}if(!fr)try{gr=new se.Stream(Dt["CFF "].data),Zt=new U.CFFParser(gr,ut,K.SEAC_ANALYSIS_ENABLED).parse(),Zt.duplicateFirstGlyph();const ur=new U.CFFCompiler(Zt);Dt["CFF "].data=ur.compile()}catch{(0,R.warn)("Failed to compile font "+ut.loadedName)}if(!Dt.name)Dt.name={tag:"name",data:tt(this.name)};else{const sr=$t(Dt.name);Dt.name.data=tt(ct,sr),this.psName=sr[0][6]||null}const un=new ce.OpenTypeFileBuilder(It.version);for(const sr in Dt)un.addTable(sr,Dt[sr].data);return un.toArray()}convert(ct,mt,ut){ut.fixedPitch=!1,ut.builtInEncoding&&ve(ut,ut.builtInEncoding);let rt=1;mt instanceof J.CFFFont&&(rt=mt.numGlyphs-1);const He=mt.getGlyphMapping(ut);let Je=null,St=He,bt=null;ut.cssFontInfo||(Je=je(He,mt.hasGlyphId.bind(mt),rt,this.toUnicode),this.toFontChar=Je.toFontChar,St=Je.charCodeToGlyphId,bt=Je.toUnicodeExtraMap);const pt=mt.numGlyphs;function wt(Mt,$t){let Yt=null;for(const Ft in Mt)$t===Mt[Ft]&&(Yt||(Yt=[]),Yt.push(Ft|0));return Yt}function Pt(Mt,$t){for(const Yt in Mt)if($t===Mt[Yt])return Yt|0;return Je.charCodeToGlyphId[Je.nextAvailableFontCharCode]=$t,Je.nextAvailableFontCharCode++}const Nt=mt.seacs;if(Je&&K.SEAC_ANALYSIS_ENABLED&&Nt&&Nt.length){const Mt=ut.fontMatrix||R.FONT_IDENTITY_MATRIX,$t=mt.getCharset(),Yt=Object.create(null);for(let Ft in Nt){Ft|=0;const Jt=Nt[Ft],er=ae.StandardEncoding[Jt[2]],Bt=ae.StandardEncoding[Jt[3]],It=$t.indexOf(er),Dt=$t.indexOf(Bt);if(It<0||Dt<0)continue;const Zt={x:Jt[0]*Mt[0]+Jt[1]*Mt[2]+Mt[4],y:Jt[0]*Mt[1]+Jt[1]*Mt[3]+Mt[5]},gr=wt(He,Ft);if(gr)for(let fr=0,Dr=gr.length;fr<Dr;fr++){const kr=gr[fr],cr=Je.charCodeToGlyphId,Ar=Pt(cr,It),yt=Pt(cr,Dt);Yt[kr]={baseFontCharCode:Ar,accentFontCharCode:yt,accentOffset:Zt}}}ut.seacMap=Yt}const Vt=1/(ut.fontMatrix||R.FONT_IDENTITY_MATRIX)[0],Wt=new ce.OpenTypeFileBuilder("OTTO");return Wt.addTable("CFF ",mt.data),Wt.addTable("OS/2",Ue(ut,St)),Wt.addTable("cmap",et(St,bt,pt)),Wt.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+Ze(Vt)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+Ze(ut.descent)+"ÿ"+Ze(ut.ascent)+Ne(ut.italicAngle?2:0)+"\0\0\0\0\0\0\0"),Wt.addTable("hhea","\0\0\0"+Ze(ut.ascent)+Ze(ut.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+Ze(ut.capHeight)+Ze(Math.tan(ut.italicAngle)*ut.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+Ne(pt)),Wt.addTable("hmtx",function(){const $t=mt.charstrings,Yt=mt.cff?mt.cff.widths:null;let Ft="\0\0\0\0";for(let Jt=1,er=pt;Jt<er;Jt++){let Bt=0;if($t){const It=$t[Jt-1];Bt="width"in It?It.width:0}else Yt&&(Bt=Math.ceil(Yt[Jt]||0));Ft+=Ne(Bt)+Ne(0)}return Ft}()),Wt.addTable("maxp","\0\0P\0"+Ne(pt)),Wt.addTable("name",tt(ct)),Wt.addTable("post",$e(ut)),Wt.toArray()}get spaceWidth(){const ct=["space","minus","one","i","I"];let mt;for(let ut=0,rt=ct.length;ut<rt;ut++){const He=ct[ut];if(He in this.widths){mt=this.widths[He];break}const St=(0,e.getGlyphsUnicode)()[He];let bt=0;if(this.composite&&this.cMap.contains(St)&&(bt=this.cMap.lookup(St),typeof bt=="string"&&(bt=Ve(St,bt))),!bt&&this.toUnicode&&(bt=this.toUnicode.charCodeOf(St)),bt<=0&&(bt=St),mt=this.widths[bt],mt)break}return mt=mt||this.defaultWidth,(0,R.shadow)(this,"spaceWidth",mt)}_charToGlyph(ct){let mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut,rt,He,Je=ct;this.cMap&&this.cMap.contains(ct)&&(Je=this.cMap.lookup(ct),typeof Je=="string"&&(Je=Ve(ct,Je))),rt=this.widths[Je],typeof rt!="number"&&(rt=this.defaultWidth);const St=this.vmetrics&&this.vmetrics[Je];let bt=this.toUnicode.get(ct)||ct;typeof bt=="number"&&(bt=String.fromCharCode(bt));let pt=this.toFontChar[ct]!==void 0;if(ut=this.toFontChar[ct]||ct,this.missingFile){const Vt=this.differences[ct]||this.defaultEncoding[ct];(Vt===".notdef"||Vt==="")&&this.type==="Type1"&&(ut=32),ut=(0,z.mapSpecialUnicodeValues)(ut)}this.isType3Font&&(He=ut);let wt=null;if(this.seacMap&&this.seacMap[ct]){pt=!0;const Vt=this.seacMap[ct];ut=Vt.baseFontCharCode,wt={fontChar:String.fromCodePoint(Vt.accentFontCharCode),offset:Vt.accentOffset}}let Pt="";typeof ut=="number"&&(ut<=1114111?Pt=String.fromCodePoint(ut):(0,R.warn)(`charToGlyph - invalid fontCharCode: ${ut}`));let Nt=this._glyphCache[ct];return(!Nt||!Nt.matchesForCache(ct,Pt,bt,wt,rt,St,He,mt,pt))&&(Nt=new Ce(ct,Pt,bt,wt,rt,St,He,mt,pt),this._glyphCache[ct]=Nt),Nt}charsToGlyphs(ct){let mt=this._charsCache[ct];if(mt)return mt;if(mt=[],this.cMap){const ut=Object.create(null),rt=ct.length;let He=0;for(;He<rt;){this.cMap.readCharCode(ct,He,ut);const{charcode:Je,length:St}=ut;He+=St;const bt=this._charToGlyph(Je,St===1&&ct.charCodeAt(He-1)===32);mt.push(bt)}}else for(let ut=0,rt=ct.length;ut<rt;++ut){const He=ct.charCodeAt(ut),Je=this._charToGlyph(He,He===32);mt.push(Je)}return this._charsCache[ct]=mt}getCharPositions(ct){const mt=[];if(this.cMap){const ut=Object.create(null);let rt=0;for(;rt<ct.length;){this.cMap.readCharCode(ct,rt,ut);const He=ut.length;mt.push([rt,rt+He]),rt+=He}}else for(let ut=0,rt=ct.length;ut<rt;++ut)mt.push([ut,ut+1]);return mt}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(ct){const mt=[],ut=[],rt=()=>mt.length%2===1,He=this.toUnicode instanceof he.IdentityToUnicodeMap?Je=>this.toUnicode.charCodeOf(Je):Je=>this.toUnicode.charCodeOf(String.fromCodePoint(Je));for(let Je=0,St=ct.length;Je<St;Je++){const bt=ct.codePointAt(Je);if(bt>55295&&(bt<57344||bt>65533)&&Je++,this.toUnicode){const pt=He(bt);if(pt!==-1){rt()&&(mt.push(ut.join("")),ut.length=0);const wt=this.cMap?this.cMap.getCharCodeLength(pt):1;for(let Pt=wt-1;Pt>=0;Pt--)ut.push(String.fromCharCode(pt>>8*Pt&255));continue}}rt()||(mt.push(ut.join("")),ut.length=0),ut.push(String.fromCodePoint(bt))}return mt.push(ut.join("")),mt}}D.Font=ot;class st{constructor(ct){this.error=ct,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(ct){return[ct]}exportData(){return{error:this.error}}}D.ErrorFont=st},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CFFTopDict=D.CFFStrings=D.CFFStandardStrings=D.CFFPrivateDict=D.CFFParser=D.CFFIndex=D.CFFHeader=D.CFFFDSelect=D.CFFCompiler=D.CFFCharset=D.CFF=void 0;var R=B(2),U=B(161),K=B(162);const z=10,e=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];D.CFFStandardStrings=e;const ae=391,ie=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],he=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(Ce,pe){Ce[pe-2]=Ce[pe-2]+Ce[pe-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(Ce,pe){Ce[pe-2]=Ce[pe-2]-Ce[pe-1]}},{id:"div",min:2,stackDelta:-1,stackFn(Ce,pe){Ce[pe-2]=Ce[pe-2]/Ce[pe-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(Ce,pe){Ce[pe-1]=-Ce[pe-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(Ce,pe){Ce[pe-2]=Ce[pe-2]*Ce[pe-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];class J{constructor(pe,_e,Ge){this.bytes=pe.getBytes(),this.properties=_e,this.seacAnalysisEnabled=!!Ge}parse(){const pe=this.properties,_e=new W;this.cff=_e;const Ge=this.parseHeader(),Ae=this.parseIndex(Ge.endPos),Ne=this.parseIndex(Ae.endPos),Ze=this.parseIndex(Ne.endPos),ze=this.parseIndex(Ze.endPos),Te=this.parseDict(Ne.obj.get(0)),Fe=this.createDict(se,Te,_e.strings);_e.header=Ge.obj,_e.names=this.parseNameIndex(Ae.obj),_e.strings=this.parseStringIndex(Ze.obj),_e.topDict=Fe,_e.globalSubrIndex=ze.obj,this.parsePrivateDict(_e.topDict),_e.isCIDFont=Fe.hasName("ROS");const Pe=Fe.getByName("CharStrings"),we=this.parseIndex(Pe).obj,Ie=Fe.getByName("FontMatrix");Ie&&(pe.fontMatrix=Ie);const Be=Fe.getByName("FontBBox");Be&&(pe.ascent=Math.max(Be[3],Be[1]),pe.descent=Math.min(Be[1],Be[3]),pe.ascentScaled=!0);let Ke,Ve;if(_e.isCIDFont){const Le=this.parseIndex(Fe.getByName("FDArray")).obj;for(let et=0,Qe=Le.count;et<Qe;++et){const Ue=Le.get(et),$e=this.createDict(se,this.parseDict(Ue),_e.strings);this.parsePrivateDict($e),_e.fdArray.push($e)}Ve=null,Ke=this.parseCharsets(Fe.getByName("charset"),we.count,_e.strings,!0),_e.fdSelect=this.parseFDSelect(Fe.getByName("FDSelect"),we.count)}else Ke=this.parseCharsets(Fe.getByName("charset"),we.count,_e.strings,!1),Ve=this.parseEncoding(Fe.getByName("Encoding"),pe,_e.strings,Ke.charset);_e.charset=Ke,_e.encoding=Ve;const je=this.parseCharStrings({charStrings:we,localSubrIndex:Fe.privateDict.subrsIndex,globalSubrIndex:ze.obj,fdSelect:_e.fdSelect,fdArray:_e.fdArray,privateDict:Fe.privateDict});return _e.charStrings=je.charStrings,_e.seacs=je.seacs,_e.widths=je.widths,_e}parseHeader(){let pe=this.bytes;const _e=pe.length;let Ge=0;for(;Ge<_e&&pe[Ge]!==1;)++Ge;if(Ge>=_e)throw new R.FormatError("Invalid CFF header");Ge!==0&&((0,R.info)("cff data is shifted"),pe=pe.subarray(Ge),this.bytes=pe);const Ae=pe[0],Ne=pe[1],Ze=pe[2],ze=pe[3];return{obj:new X(Ae,Ne,Ze,ze),endPos:Ze}}parseDict(pe){let _e=0;function Ge(){let Te=pe[_e++];return Te===30?Ae():Te===28?(Te=pe[_e++],Te=(Te<<24|pe[_e++]<<16)>>16,Te):Te===29?(Te=pe[_e++],Te=Te<<8|pe[_e++],Te=Te<<8|pe[_e++],Te=Te<<8|pe[_e++],Te):Te>=32&&Te<=246?Te-139:Te>=247&&Te<=250?(Te-247)*256+pe[_e++]+108:Te>=251&&Te<=254?-((Te-251)*256)-pe[_e++]-108:((0,R.warn)('CFFParser_parseDict: "'+Te+'" is a reserved command.'),NaN)}function Ae(){let Te="";const Pe=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],we=pe.length;for(;_e<we;){const Ie=pe[_e++],Be=Ie>>4,Ke=Ie&15;if(Be===15||(Te+=Pe[Be],Ke===15))break;Te+=Pe[Ke]}return parseFloat(Te)}let Ne=[];const Ze=[];_e=0;const ze=pe.length;for(;_e<ze;){let Te=pe[_e];Te<=21?(Te===12&&(Te=Te<<8|pe[++_e]),Ze.push([Te,Ne]),Ne=[],++_e):Ne.push(Ge())}return Ze}parseIndex(pe){const _e=new Q,Ge=this.bytes,Ae=Ge[pe++]<<8|Ge[pe++],Ne=[];let Ze=pe,ze,Te;if(Ae!==0){const Fe=Ge[pe++],Pe=pe+(Ae+1)*Fe-1;for(ze=0,Te=Ae+1;ze<Te;++ze){let we=0;for(let Ie=0;Ie<Fe;++Ie)we<<=8,we+=Ge[pe++];Ne.push(Pe+we)}Ze=Ne[Ae]}for(ze=0,Te=Ne.length-1;ze<Te;++ze){const Fe=Ne[ze],Pe=Ne[ze+1];_e.add(Ge.subarray(Fe,Pe))}return{obj:_e,endPos:Ze}}parseNameIndex(pe){const _e=[];for(let Ge=0,Ae=pe.count;Ge<Ae;++Ge){const Ne=pe.get(Ge);_e.push((0,R.bytesToString)(Ne))}return _e}parseStringIndex(pe){const _e=new L;for(let Ge=0,Ae=pe.count;Ge<Ae;++Ge){const Ne=pe.get(Ge);_e.add((0,R.bytesToString)(Ne))}return _e}createDict(pe,_e,Ge){const Ae=new pe(Ge);for(let Ne=0,Ze=_e.length;Ne<Ze;++Ne){const ze=_e[Ne],Te=ze[0],Fe=ze[1];Ae.setByKey(Te,Fe)}return Ae}parseCharString(pe,_e,Ge,Ae){if(!_e||pe.callDepth>z)return!1;let Ne=pe.stackSize;const Ze=pe.stack,ze=_e.length;for(let Te=0;Te<ze;){const Fe=_e[Te++];let Pe=null;if(Fe===12){const we=_e[Te++];we===0?(_e[Te-2]=139,_e[Te-1]=22,Ne=0):Pe=he[we]}else if(Fe===28)Ze[Ne]=(_e[Te]<<24|_e[Te+1]<<16)>>16,Te+=2,Ne++;else if(Fe===14){if(Ne>=4&&(Ne-=4,this.seacAnalysisEnabled))return pe.seac=Ze.slice(Ne,Ne+4),!1;Pe=ie[Fe]}else if(Fe>=32&&Fe<=246)Ze[Ne]=Fe-139,Ne++;else if(Fe>=247&&Fe<=254)Ze[Ne]=Fe<251?(Fe-247<<8)+_e[Te]+108:-(Fe-251<<8)-_e[Te]-108,Te++,Ne++;else if(Fe===255)Ze[Ne]=(_e[Te]<<24|_e[Te+1]<<16|_e[Te+2]<<8|_e[Te+3])/65536,Te+=4,Ne++;else if(Fe===19||Fe===20)pe.hints+=Ne>>1,Te+=pe.hints+7>>3,Ne%=2,Pe=ie[Fe];else if(Fe===10||Fe===29){let we;if(Fe===10?we=Ge:we=Ae,!we)return Pe=ie[Fe],(0,R.warn)("Missing subrsIndex for "+Pe.id),!1;let Ie=32768;we.count<1240?Ie=107:we.count<33900&&(Ie=1131);const Be=Ze[--Ne]+Ie;if(Be<0||Be>=we.count||isNaN(Be))return Pe=ie[Fe],(0,R.warn)("Out of bounds subrIndex for "+Pe.id),!1;if(pe.stackSize=Ne,pe.callDepth++,!this.parseCharString(pe,we.get(Be),Ge,Ae))return!1;pe.callDepth--,Ne=pe.stackSize;continue}else{if(Fe===11)return pe.stackSize=Ne,!0;Fe===0&&Te===_e.length?(_e[Te-1]=14,Pe=ie[14]):Pe=ie[Fe]}if(Pe){if(Pe.stem&&(pe.hints+=Ne>>1,Fe===3||Fe===23?pe.hasVStems=!0:pe.hasVStems&&(Fe===1||Fe===18)&&((0,R.warn)("CFF stem hints are in wrong order"),_e[Te-1]=Fe===1?3:23)),"min"in Pe&&!pe.undefStack&&Ne<Pe.min)return(0,R.warn)("Not enough parameters for "+Pe.id+"; actual: "+Ne+", expected: "+Pe.min),Ne===0?(_e[Te-1]=14,!0):!1;pe.firstStackClearing&&Pe.stackClearing&&(pe.firstStackClearing=!1,Ne-=Pe.min,Ne>=2&&Pe.stem?Ne%=2:Ne>1&&(0,R.warn)("Found too many parameters for stack-clearing command"),Ne>0&&(pe.width=Ze[Ne-1])),"stackDelta"in Pe?("stackFn"in Pe&&Pe.stackFn(Ze,Ne),Ne+=Pe.stackDelta):Pe.stackClearing?Ne=0:Pe.resetStack?(Ne=0,pe.undefStack=!1):Pe.undefStack&&(Ne=0,pe.undefStack=!0,pe.firstStackClearing=!1)}}return pe.stackSize=Ne,!0}parseCharStrings(pe){let{charStrings:_e,localSubrIndex:Ge,globalSubrIndex:Ae,fdSelect:Ne,fdArray:Ze,privateDict:ze}=pe;const Te=[],Fe=[],Pe=_e.count;for(let we=0;we<Pe;we++){const Ie=_e.get(we),Be={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let Ke=!0,Ve=null,je=ze;if(Ne&&Ze.length){const Le=Ne.getFDIndex(we);Le===-1&&((0,R.warn)("Glyph index is not in fd select."),Ke=!1),Le>=Ze.length&&((0,R.warn)("Invalid fd index for glyph index."),Ke=!1),Ke&&(je=Ze[Le].privateDict,Ve=je.subrsIndex)}else Ge&&(Ve=Ge);if(Ke&&(Ke=this.parseCharString(Be,Ie,Ve,Ae)),Be.width!==null){const Le=je.getByName("nominalWidthX");Fe[we]=Le+Be.width}else{const Le=je.getByName("defaultWidthX");Fe[we]=Le}Be.seac!==null&&(Te[we]=Be.seac),Ke||_e.set(we,new Uint8Array([14]))}return{charStrings:_e,seacs:Te,widths:Fe}}emptyPrivateDictionary(pe){const _e=this.createDict(me,[],pe.strings);pe.setByKey(18,[0,0]),pe.privateDict=_e}parsePrivateDict(pe){if(!pe.hasName("Private")){this.emptyPrivateDictionary(pe);return}const _e=pe.getByName("Private");if(!Array.isArray(_e)||_e.length!==2){pe.removeByName("Private");return}const Ge=_e[0],Ae=_e[1];if(Ge===0||Ae>=this.bytes.length){this.emptyPrivateDictionary(pe);return}const Ne=Ae+Ge,Ze=this.bytes.subarray(Ae,Ne),ze=this.parseDict(Ze),Te=this.createDict(me,ze,pe.strings);if(pe.privateDict=Te,!Te.getByName("Subrs"))return;const Fe=Te.getByName("Subrs"),Pe=Ae+Fe;if(Fe===0||Pe>=this.bytes.length){this.emptyPrivateDictionary(pe);return}const we=this.parseIndex(Pe);Te.subrsIndex=we.obj}parseCharsets(pe,_e,Ge,Ae){if(pe===0)return new ke(!0,Ee.ISO_ADOBE,U.ISOAdobeCharset);if(pe===1)return new ke(!0,Ee.EXPERT,U.ExpertCharset);if(pe===2)return new ke(!0,Ee.EXPERT_SUBSET,U.ExpertSubsetCharset);const Ne=this.bytes,Ze=pe,ze=Ne[pe++],Te=[Ae?0:".notdef"];let Fe,Pe,we;switch(_e-=1,ze){case 0:for(we=0;we<_e;we++)Fe=Ne[pe++]<<8|Ne[pe++],Te.push(Ae?Fe:Ge.get(Fe));break;case 1:for(;Te.length<=_e;)for(Fe=Ne[pe++]<<8|Ne[pe++],Pe=Ne[pe++],we=0;we<=Pe;we++)Te.push(Ae?Fe++:Ge.get(Fe++));break;case 2:for(;Te.length<=_e;)for(Fe=Ne[pe++]<<8|Ne[pe++],Pe=Ne[pe++]<<8|Ne[pe++],we=0;we<=Pe;we++)Te.push(Ae?Fe++:Ge.get(Fe++));break;default:throw new R.FormatError("Unknown charset format")}const Ie=pe,Be=Ne.subarray(Ze,Ie);return new ke(!1,ze,Te,Be)}parseEncoding(pe,_e,Ge,Ae){const Ne=Object.create(null),Ze=this.bytes;let ze=!1,Te,Fe,Pe,we=null;function Ie(){const Be=Ze[pe++];for(Fe=0;Fe<Be;Fe++){const Ke=Ze[pe++],Ve=(Ze[pe++]<<8)+(Ze[pe++]&255);Ne[Ke]=Ae.indexOf(Ge.get(Ve))}}if(pe===0||pe===1){ze=!0,Te=pe;const Be=pe?K.ExpertEncoding:K.StandardEncoding;for(Fe=0,Pe=Ae.length;Fe<Pe;Fe++){const Ke=Be.indexOf(Ae[Fe]);Ke!==-1&&(Ne[Ke]=Fe)}}else{const Be=pe;switch(Te=Ze[pe++],Te&127){case 0:const Ve=Ze[pe++];for(Fe=1;Fe<=Ve;Fe++)Ne[Ze[pe++]]=Fe;break;case 1:const je=Ze[pe++];let Le=1;for(Fe=0;Fe<je;Fe++){const et=Ze[pe++],Qe=Ze[pe++];for(let Ue=et;Ue<=et+Qe;Ue++)Ne[Ue]=Le++}break;default:throw new R.FormatError(`Unknown encoding format: ${Te} in CFF`)}const Ke=pe;Te&128&&(Ze[Be]&=127,Ie()),we=Ze.subarray(Be,Ke)}return Te&=127,new xe(ze,Te,Ne,we)}parseFDSelect(pe,_e){const Ge=this.bytes,Ae=Ge[pe++],Ne=[];let Ze;switch(Ae){case 0:for(Ze=0;Ze<_e;++Ze){const Te=Ge[pe++];Ne.push(Te)}break;case 3:const ze=Ge[pe++]<<8|Ge[pe++];for(Ze=0;Ze<ze;++Ze){let Te=Ge[pe++]<<8|Ge[pe++];Ze===0&&Te!==0&&((0,R.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),Te=0);const Fe=Ge[pe++],Pe=Ge[pe]<<8|Ge[pe+1];for(let we=Te;we<Pe;++we)Ne.push(Fe)}pe+=2;break;default:throw new R.FormatError(`parseFDSelect: Unknown format "${Ae}".`)}if(Ne.length!==_e)throw new R.FormatError("parseFDSelect: Invalid font data.");return new fe(Ae,Ne)}}D.CFFParser=J;class W{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new L,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,R.warn)("Not enough space in charstrings to duplicate first glyph.");return}const pe=this.charStrings.get(0);this.charStrings.add(pe),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(pe){return pe<0||pe>=this.charStrings.count?!1:this.charStrings.get(pe).length>0}}D.CFF=W;class X{constructor(pe,_e,Ge,Ae){this.major=pe,this.minor=_e,this.hdrSize=Ge,this.offSize=Ae}}D.CFFHeader=X;class L{constructor(){this.strings=[]}get(pe){return pe>=0&&pe<=ae-1?e[pe]:pe-ae<=this.strings.length?this.strings[pe-ae]:e[0]}getSID(pe){let _e=e.indexOf(pe);return _e!==-1?_e:(_e=this.strings.indexOf(pe),_e!==-1?_e+ae:-1)}add(pe){this.strings.push(pe)}get count(){return this.strings.length}}D.CFFStrings=L;class Q{constructor(){this.objects=[],this.length=0}add(pe){this.length+=pe.length,this.objects.push(pe)}set(pe,_e){this.length+=_e.length-this.objects[pe].length,this.objects[pe]=_e}get(pe){return this.objects[pe]}get count(){return this.objects.length}}D.CFFIndex=Q;class ce{constructor(pe,_e){this.keyToNameMap=pe.keyToNameMap,this.nameToKeyMap=pe.nameToKeyMap,this.defaults=pe.defaults,this.types=pe.types,this.opcodes=pe.opcodes,this.order=pe.order,this.strings=_e,this.values=Object.create(null)}setByKey(pe,_e){if(!(pe in this.keyToNameMap))return!1;const Ge=_e.length;if(Ge===0)return!0;for(let Ne=0;Ne<Ge;Ne++)if(isNaN(_e[Ne]))return(0,R.warn)('Invalid CFFDict value: "'+_e+'" for key "'+pe+'".'),!0;const Ae=this.types[pe];return(Ae==="num"||Ae==="sid"||Ae==="offset")&&(_e=_e[0]),this.values[pe]=_e,!0}setByName(pe,_e){if(!(pe in this.nameToKeyMap))throw new R.FormatError(`Invalid dictionary name "${pe}"`);this.values[this.nameToKeyMap[pe]]=_e}hasName(pe){return this.nameToKeyMap[pe]in this.values}getByName(pe){if(!(pe in this.nameToKeyMap))throw new R.FormatError(`Invalid dictionary name ${pe}"`);const _e=this.nameToKeyMap[pe];return _e in this.values?this.values[_e]:this.defaults[_e]}removeByName(pe){delete this.values[this.nameToKeyMap[pe]]}static createTables(pe){const _e={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let Ge=0,Ae=pe.length;Ge<Ae;++Ge){const Ne=pe[Ge],Ze=Array.isArray(Ne[0])?(Ne[0][0]<<8)+Ne[0][1]:Ne[0];_e.keyToNameMap[Ze]=Ne[1],_e.nameToKeyMap[Ne[1]]=Ze,_e.types[Ze]=Ne[2],_e.defaults[Ze]=Ne[3],_e.opcodes[Ze]=Array.isArray(Ne[0])?Ne[0]:[Ne[0]],_e.order.push(Ze)}return _e}}const de=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class se extends ce{static get tables(){return(0,R.shadow)(this,"tables",this.createTables(de))}constructor(pe){super(se.tables,pe),this.privateDict=null}}D.CFFTopDict=se;const oe=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class me extends ce{static get tables(){return(0,R.shadow)(this,"tables",this.createTables(oe))}constructor(pe){super(me.tables,pe),this.subrsIndex=null}}D.CFFPrivateDict=me;const Ee={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class ke{constructor(pe,_e,Ge,Ae){this.predefined=pe,this.format=_e,this.charset=Ge,this.raw=Ae}}D.CFFCharset=ke;class xe{constructor(pe,_e,Ge,Ae){this.predefined=pe,this.format=_e,this.encoding=Ge,this.raw=Ae}}class fe{constructor(pe,_e){this.format=pe,this.fdSelect=_e}getFDIndex(pe){return pe<0||pe>=this.fdSelect.length?-1:this.fdSelect[pe]}}D.CFFFDSelect=fe;class ve{constructor(){this.offsets=Object.create(null)}isTracking(pe){return pe in this.offsets}track(pe,_e){if(pe in this.offsets)throw new R.FormatError(`Already tracking location of ${pe}`);this.offsets[pe]=_e}offset(pe){for(const _e in this.offsets)this.offsets[_e]+=pe}setEntryLocation(pe,_e,Ge){if(!(pe in this.offsets))throw new R.FormatError(`Not tracking location of ${pe}`);const Ae=Ge.data,Ne=this.offsets[pe],Ze=5;for(let ze=0,Te=_e.length;ze<Te;++ze){const Fe=ze*Ze+Ne,Pe=Fe+1,we=Fe+2,Ie=Fe+3,Be=Fe+4;if(Ae[Fe]!==29||Ae[Pe]!==0||Ae[we]!==0||Ae[Ie]!==0||Ae[Be]!==0)throw new R.FormatError("writing to an offset that is not empty");const Ke=_e[ze];Ae[Fe]=29,Ae[Pe]=Ke>>24&255,Ae[we]=Ke>>16&255,Ae[Ie]=Ke>>8&255,Ae[Be]=Ke&255}}}class ye{constructor(pe){this.cff=pe}compile(){const pe=this.cff,_e={data:[],length:0,add(Ie){this.data=this.data.concat(Ie),this.length=this.data.length}},Ge=this.compileHeader(pe.header);_e.add(Ge);const Ae=this.compileNameIndex(pe.names);if(_e.add(Ae),pe.isCIDFont&&pe.topDict.hasName("FontMatrix")){const Ie=pe.topDict.getByName("FontMatrix");pe.topDict.removeByName("FontMatrix");for(let Be=0,Ke=pe.fdArray.length;Be<Ke;Be++){const Ve=pe.fdArray[Be];let je=Ie.slice(0);Ve.hasName("FontMatrix")&&(je=R.Util.transform(je,Ve.getByName("FontMatrix"))),Ve.setByName("FontMatrix",je)}}const Ne=pe.topDict.getByName("XUID");Ne&&Ne.length>16&&pe.topDict.removeByName("XUID"),pe.topDict.setByName("charset",0);let Ze=this.compileTopDicts([pe.topDict],_e.length,pe.isCIDFont);_e.add(Ze.output);const ze=Ze.trackers[0],Te=this.compileStringIndex(pe.strings.strings);_e.add(Te);const Fe=this.compileIndex(pe.globalSubrIndex);if(_e.add(Fe),pe.encoding&&pe.topDict.hasName("Encoding"))if(pe.encoding.predefined)ze.setEntryLocation("Encoding",[pe.encoding.format],_e);else{const Ie=this.compileEncoding(pe.encoding);ze.setEntryLocation("Encoding",[_e.length],_e),_e.add(Ie)}const Pe=this.compileCharset(pe.charset,pe.charStrings.count,pe.strings,pe.isCIDFont);ze.setEntryLocation("charset",[_e.length],_e),_e.add(Pe);const we=this.compileCharStrings(pe.charStrings);if(ze.setEntryLocation("CharStrings",[_e.length],_e),_e.add(we),pe.isCIDFont){ze.setEntryLocation("FDSelect",[_e.length],_e);const Ie=this.compileFDSelect(pe.fdSelect);_e.add(Ie),Ze=this.compileTopDicts(pe.fdArray,_e.length,!0),ze.setEntryLocation("FDArray",[_e.length],_e),_e.add(Ze.output);const Be=Ze.trackers;this.compilePrivateDicts(pe.fdArray,Be,_e)}return this.compilePrivateDicts([pe.topDict],[ze],_e),_e.add([0]),_e.data}encodeNumber(pe){return Number.isInteger(pe)?this.encodeInteger(pe):this.encodeFloat(pe)}static get EncodeFloatRegExp(){return(0,R.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(pe){let _e=pe.toString();const Ge=ye.EncodeFloatRegExp.exec(_e);if(Ge){const Te=parseFloat("1e"+((Ge[2]?+Ge[2]:0)+Ge[1].length));_e=(Math.round(pe*Te)/Te).toString()}let Ae="",Ne,Ze;for(Ne=0,Ze=_e.length;Ne<Ze;++Ne){const Te=_e[Ne];Te==="e"?Ae+=_e[++Ne]==="-"?"c":"b":Te==="."?Ae+="a":Te==="-"?Ae+="e":Ae+=Te}Ae+=Ae.length&1?"f":"ff";const ze=[30];for(Ne=0,Ze=Ae.length;Ne<Ze;Ne+=2)ze.push(parseInt(Ae.substring(Ne,Ne+2),16));return ze}encodeInteger(pe){let _e;return pe>=-107&&pe<=107?_e=[pe+139]:pe>=108&&pe<=1131?(pe-=108,_e=[(pe>>8)+247,pe&255]):pe>=-1131&&pe<=-108?(pe=-pe-108,_e=[(pe>>8)+251,pe&255]):pe>=-32768&&pe<=32767?_e=[28,pe>>8&255,pe&255]:_e=[29,pe>>24&255,pe>>16&255,pe>>8&255,pe&255],_e}compileHeader(pe){return[pe.major,pe.minor,4,pe.offSize]}compileNameIndex(pe){const _e=new Q;for(let Ge=0,Ae=pe.length;Ge<Ae;++Ge){const Ne=pe[Ge],Ze=Math.min(Ne.length,127);let ze=new Array(Ze);for(let Te=0;Te<Ze;Te++){let Fe=Ne[Te];(Fe<"!"||Fe>"~"||Fe==="["||Fe==="]"||Fe==="("||Fe===")"||Fe==="{"||Fe==="}"||Fe==="<"||Fe===">"||Fe==="/"||Fe==="%")&&(Fe="_"),ze[Te]=Fe}ze=ze.join(""),ze===""&&(ze="Bad_Font_Name"),_e.add((0,R.stringToBytes)(ze))}return this.compileIndex(_e)}compileTopDicts(pe,_e,Ge){const Ae=[];let Ne=new Q;for(let Ze=0,ze=pe.length;Ze<ze;++Ze){const Te=pe[Ze];Ge&&(Te.removeByName("CIDFontVersion"),Te.removeByName("CIDFontRevision"),Te.removeByName("CIDFontType"),Te.removeByName("CIDCount"),Te.removeByName("UIDBase"));const Fe=new ve,Pe=this.compileDict(Te,Fe);Ae.push(Fe),Ne.add(Pe),Fe.offset(_e)}return Ne=this.compileIndex(Ne,Ae),{trackers:Ae,output:Ne}}compilePrivateDicts(pe,_e,Ge){for(let Ae=0,Ne=pe.length;Ae<Ne;++Ae){const Ze=pe[Ae],ze=Ze.privateDict;if(!ze||!Ze.hasName("Private"))throw new R.FormatError("There must be a private dictionary.");const Te=new ve,Fe=this.compileDict(ze,Te);let Pe=Ge.length;if(Te.offset(Pe),Fe.length||(Pe=0),_e[Ae].setEntryLocation("Private",[Fe.length,Pe],Ge),Ge.add(Fe),ze.subrsIndex&&ze.hasName("Subrs")){const we=this.compileIndex(ze.subrsIndex);Te.setEntryLocation("Subrs",[Fe.length],Ge),Ge.add(we)}}}compileDict(pe,_e){const Ge=[];for(const Ae of pe.order){if(!(Ae in pe.values))continue;let Ne=pe.values[Ae],Ze=pe.types[Ae];if(Array.isArray(Ze)||(Ze=[Ze]),Array.isArray(Ne)||(Ne=[Ne]),Ne.length!==0){for(let ze=0,Te=Ze.length;ze<Te;++ze){const Fe=Ze[ze],Pe=Ne[ze];switch(Fe){case"num":case"sid":Ge.push(...this.encodeNumber(Pe));break;case"offset":const we=pe.keyToNameMap[Ae];_e.isTracking(we)||_e.track(we,Ge.length),Ge.push(29,0,0,0,0);break;case"array":case"delta":Ge.push(...this.encodeNumber(Pe));for(let Ie=1,Be=Ne.length;Ie<Be;++Ie)Ge.push(...this.encodeNumber(Ne[Ie]));break;default:throw new R.FormatError(`Unknown data type of ${Fe}`)}}Ge.push(...pe.opcodes[Ae])}}return Ge}compileStringIndex(pe){const _e=new Q;for(let Ge=0,Ae=pe.length;Ge<Ae;++Ge)_e.add((0,R.stringToBytes)(pe[Ge]));return this.compileIndex(_e)}compileGlobalSubrIndex(){const pe=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(pe))}compileCharStrings(pe){const _e=new Q;for(let Ge=0;Ge<pe.count;Ge++){const Ae=pe.get(Ge);if(Ae.length===0){_e.add(new Uint8Array([139,14]));continue}_e.add(Ae)}return this.compileIndex(_e)}compileCharset(pe,_e,Ge,Ae){let Ne;const Ze=_e-1;if(Ae)Ne=new Uint8Array([2,0,0,Ze>>8&255,Ze&255]);else{const ze=1+Ze*2;Ne=new Uint8Array(ze),Ne[0]=0;let Te=0;const Fe=pe.charset.length;let Pe=!1;for(let we=1;we<Ne.length;we+=2){let Ie=0;if(Te<Fe){const Be=pe.charset[Te++];Ie=Ge.getSID(Be),Ie===-1&&(Ie=0,Pe||(Pe=!0,(0,R.warn)(`Couldn't find ${Be} in CFF strings`)))}Ne[we]=Ie>>8&255,Ne[we+1]=Ie&255}}return this.compileTypedArray(Ne)}compileEncoding(pe){return this.compileTypedArray(pe.raw)}compileFDSelect(pe){const _e=pe.format;let Ge,Ae;switch(_e){case 0:for(Ge=new Uint8Array(1+pe.fdSelect.length),Ge[0]=_e,Ae=0;Ae<pe.fdSelect.length;Ae++)Ge[Ae+1]=pe.fdSelect[Ae];break;case 3:const Ne=0;let Ze=pe.fdSelect[0];const ze=[_e,0,0,Ne>>8&255,Ne&255,Ze];for(Ae=1;Ae<pe.fdSelect.length;Ae++){const Fe=pe.fdSelect[Ae];Fe!==Ze&&(ze.push(Ae>>8&255,Ae&255,Fe),Ze=Fe)}const Te=(ze.length-3)/3;ze[1]=Te>>8&255,ze[2]=Te&255,ze.push(Ae>>8&255,Ae&255),Ge=new Uint8Array(ze);break}return this.compileTypedArray(Ge)}compileTypedArray(pe){const _e=[];for(let Ge=0,Ae=pe.length;Ge<Ae;++Ge)_e[Ge]=pe[Ge];return _e}compileIndex(pe){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const Ge=pe.objects,Ae=Ge.length;if(Ae===0)return[0,0];const Ne=[Ae>>8&255,Ae&255];let Ze=1,ze;for(ze=0;ze<Ae;++ze)Ze+=Ge[ze].length;let Te;Ze<256?Te=1:Ze<65536?Te=2:Ze<16777216?Te=3:Te=4,Ne.push(Te);let Fe=1;for(ze=0;ze<Ae+1;ze++)Te===1?Ne.push(Fe&255):Te===2?Ne.push(Fe>>8&255,Fe&255):Te===3?Ne.push(Fe>>16&255,Fe>>8&255,Fe&255):Ne.push(Fe>>>24&255,Fe>>16&255,Fe>>8&255,Fe&255),Ge[ze]&&(Fe+=Ge[ze].length);for(ze=0;ze<Ae;ze++){_e[ze]&&_e[ze].offset(Ne.length);for(let Pe=0,we=Ge[ze].length;Pe<we;Pe++)Ne.push(Ge[ze][Pe])}return Ne}}D.CFFCompiler=ye},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ISOAdobeCharset=D.ExpertSubsetCharset=D.ExpertCharset=void 0;const B=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];D.ISOAdobeCharset=B;const R=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];D.ExpertCharset=R;const U=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];D.ExpertSubsetCharset=U},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ZapfDingbatsEncoding=D.WinAnsiEncoding=D.SymbolSetEncoding=D.StandardEncoding=D.MacRomanEncoding=D.ExpertEncoding=void 0,D.getEncoding=ie;const B=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];D.ExpertEncoding=B;const R=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],U=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];D.MacRomanEncoding=U;const K=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];D.StandardEncoding=K;const z=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];D.WinAnsiEncoding=z;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];D.SymbolSetEncoding=e;const ae=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];D.ZapfDingbatsEncoding=ae;function ie(he){switch(he){case"WinAnsiEncoding":return z;case"StandardEncoding":return K;case"MacRomanEncoding":return U;case"SymbolSetEncoding":return e;case"ZapfDingbatsEncoding":return ae;case"ExpertEncoding":return B;case"MacExpertEncoding":return R;default:return null}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.SEAC_ANALYSIS_ENABLED=D.MacStandardGlyphOrdering=D.FontFlags=void 0,D.getFontType=he,D.normalizeFontName=X,D.recoverGlyphName=J,D.type1FontGlyphMapping=W;var R=B(2),U=B(162),K=B(164),z=B(165);const e=!0;D.SEAC_ANALYSIS_ENABLED=e;const ae={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};D.FontFlags=ae;const ie=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];D.MacStandardGlyphOrdering=ie;function he(L,Q){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;switch(L){case"Type1":return ce?R.FontType.TYPE1STANDARD:Q==="Type1C"?R.FontType.TYPE1C:R.FontType.TYPE1;case"CIDFontType0":return Q==="CIDFontType0C"?R.FontType.CIDFONTTYPE0C:R.FontType.CIDFONTTYPE0;case"OpenType":return R.FontType.OPENTYPE;case"TrueType":return R.FontType.TRUETYPE;case"CIDFontType2":return R.FontType.CIDFONTTYPE2;case"MMType1":return R.FontType.MMTYPE1;case"Type0":return R.FontType.TYPE0;default:return R.FontType.UNKNOWN}}function J(L,Q){if(Q[L]!==void 0)return L;const ce=(0,z.getUnicodeForGlyph)(L,Q);if(ce!==-1){for(const de in Q)if(Q[de]===ce)return de}return(0,R.info)("Unable to recover a standard glyph name for: "+L),L}function W(L,Q,ce){const de=Object.create(null);let se,oe,me;const Ee=!!(L.flags&ae.Symbolic);if(L.isInternalFont)for(me=Q,oe=0;oe<me.length;oe++)se=ce.indexOf(me[oe]),se>=0?de[oe]=se:de[oe]=0;else if(L.baseEncodingName)for(me=(0,U.getEncoding)(L.baseEncodingName),oe=0;oe<me.length;oe++)se=ce.indexOf(me[oe]),se>=0?de[oe]=se:de[oe]=0;else if(Ee)for(oe in Q)de[oe]=Q[oe];else for(me=U.StandardEncoding,oe=0;oe<me.length;oe++)se=ce.indexOf(me[oe]),se>=0?de[oe]=se:de[oe]=0;const ke=L.differences;let xe;if(ke)for(oe in ke){const fe=ke[oe];if(se=ce.indexOf(fe),se===-1){xe||(xe=(0,K.getGlyphsUnicode)());const ve=J(fe,xe);ve!==fe&&(se=ce.indexOf(ve))}se>=0?de[oe]=se:de[oe]=0}return de}function X(L){return L.replace(/[,_]/g,"-").replace(/\s/g,"")}},($,D,B)=>{B.r(D),B.d(D,{getDingbatsGlyphsUnicode:()=>K,getGlyphsUnicode:()=>U});var R=B(131);const U=(0,R.getArrayLookupTableFactory)(function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]}),K=(0,R.getArrayLookupTableFactory)(function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]})},($,D,B)=>{B.r(D),B.d(D,{clearUnicodeCaches:()=>Q,getCharUnicodeCategory:()=>L,getNormalizedUnicodes:()=>he,getUnicodeForGlyph:()=>z,getUnicodeRangeFor:()=>ae,mapSpecialUnicodeValues:()=>K,reverseIfRtl:()=>J});var R=B(131);const U=(0,R.getLookupTableFactory)(function(ce){ce[63721]=169,ce[63193]=169,ce[63720]=174,ce[63194]=174,ce[63722]=8482,ce[63195]=8482,ce[63729]=9127,ce[63730]=9128,ce[63731]=9129,ce[63740]=9131,ce[63741]=9132,ce[63742]=9133,ce[63726]=9121,ce[63727]=9122,ce[63728]=9123,ce[63737]=9124,ce[63738]=9125,ce[63739]=9126,ce[63723]=9115,ce[63724]=9116,ce[63725]=9117,ce[63734]=9118,ce[63735]=9119,ce[63736]=9120});function K(ce){return ce>=65520&&ce<=65535?0:ce>=62976&&ce<=63743?U()[ce]||ce:ce===173?45:ce}function z(ce,de){let se=de[ce];if(se!==void 0)return se;if(!ce)return-1;if(ce[0]==="u"){const oe=ce.length;let me;if(oe===7&&ce[1]==="n"&&ce[2]==="i")me=ce.substring(3);else if(oe>=5&&oe<=7)me=ce.substring(1);else return-1;if(me===me.toUpperCase()&&(se=parseInt(me,16),se>=0))return se}return-1}const e=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function ae(ce){for(let de=0,se=e.length;de<se;de++){const oe=e[de];if(ce>=oe.begin&&ce<oe.end)return de}return-1}function ie(ce){let de=e[13];return ce>=de.begin&&ce<de.end||(de=e[11],ce>=de.begin&&ce<de.end)}const he=(0,R.getArrayLookupTableFactory)(function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ",""," ̓","᾿"," ̓",""," ͂",""," ̔",""," ",""," ",""," ",""," ",""," ",""," ",""," ",""," ","‗"," ̳","",".","‥","..","…","...","″","","‴","","‶","","‷","","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","",""," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","","X","Ⅺ","XI","Ⅻ","XII","","L","","C","","D","","M","","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","","x","ⅺ","xi","ⅻ","xii","","l","","c","","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","","","","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","","","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","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日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","","ہ","","ہ","","ہ","","ہ","","ھ","","ھ","","ھ","","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","","_","","_","","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","","ا","","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","","ه","","ه","","ه","","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]});function J(ce){const de=ce.length;if(de<=1||!ie(ce.charCodeAt(0)))return ce;const se=[];for(let oe=de-1;oe>=0;oe--)se.push(ce[oe]);return se.join("")}const W=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),X=new Map;function L(ce){const de=X.get(ce);if(de)return de;const se=ce.match(W),oe={isWhitespace:!!(se&&se[1]),isZeroWidthDiacritic:!!(se&&se[2]),isInvisibleFormatMark:!!(se&&se[3])};return X.set(ce,oe),oe}function Q(){X.clear()}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.getSerifFonts=D.getNonStdFontMap=D.getGlyphMapForStandardFonts=D.getFontNameToFileMap=void 0,D.getStandardFontName=X,D.getSymbolsFonts=D.getSupplementalGlyphMapForCalibri=D.getSupplementalGlyphMapForArialBlack=D.getStdFontMap=void 0;var R=B(131),U=B(163);const K=(0,R.getLookupTableFactory)(function(L){L["Times-Roman"]="Times-Roman",L.Helvetica="Helvetica",L.Courier="Courier",L.Symbol="Symbol",L["Times-Bold"]="Times-Bold",L["Helvetica-Bold"]="Helvetica-Bold",L["Courier-Bold"]="Courier-Bold",L.ZapfDingbats="ZapfDingbats",L["Times-Italic"]="Times-Italic",L["Helvetica-Oblique"]="Helvetica-Oblique",L["Courier-Oblique"]="Courier-Oblique",L["Times-BoldItalic"]="Times-BoldItalic",L["Helvetica-BoldOblique"]="Helvetica-BoldOblique",L["Courier-BoldOblique"]="Courier-BoldOblique",L.ArialNarrow="Helvetica",L["ArialNarrow-Bold"]="Helvetica-Bold",L["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",L["ArialNarrow-Italic"]="Helvetica-Oblique",L.ArialBlack="Helvetica",L["ArialBlack-Bold"]="Helvetica-Bold",L["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",L["ArialBlack-Italic"]="Helvetica-Oblique",L["Arial-Black"]="Helvetica",L["Arial-Black-Bold"]="Helvetica-Bold",L["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",L["Arial-Black-Italic"]="Helvetica-Oblique",L.Arial="Helvetica",L["Arial-Bold"]="Helvetica-Bold",L["Arial-BoldItalic"]="Helvetica-BoldOblique",L["Arial-Italic"]="Helvetica-Oblique",L.ArialMT="Helvetica",L["Arial-BoldItalicMT"]="Helvetica-BoldOblique",L["Arial-BoldMT"]="Helvetica-Bold",L["Arial-ItalicMT"]="Helvetica-Oblique",L.ArialUnicodeMS="Helvetica",L["ArialUnicodeMS-Bold"]="Helvetica-Bold",L["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",L["ArialUnicodeMS-Italic"]="Helvetica-Oblique",L["Courier-BoldItalic"]="Courier-BoldOblique",L["Courier-Italic"]="Courier-Oblique",L.CourierNew="Courier",L["CourierNew-Bold"]="Courier-Bold",L["CourierNew-BoldItalic"]="Courier-BoldOblique",L["CourierNew-Italic"]="Courier-Oblique",L["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",L["CourierNewPS-BoldMT"]="Courier-Bold",L["CourierNewPS-ItalicMT"]="Courier-Oblique",L.CourierNewPSMT="Courier",L["Helvetica-BoldItalic"]="Helvetica-BoldOblique",L["Helvetica-Italic"]="Helvetica-Oblique",L["Symbol-Bold"]="Symbol",L["Symbol-BoldItalic"]="Symbol",L["Symbol-Italic"]="Symbol",L.TimesNewRoman="Times-Roman",L["TimesNewRoman-Bold"]="Times-Bold",L["TimesNewRoman-BoldItalic"]="Times-BoldItalic",L["TimesNewRoman-Italic"]="Times-Italic",L.TimesNewRomanPS="Times-Roman",L["TimesNewRomanPS-Bold"]="Times-Bold",L["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",L["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",L["TimesNewRomanPS-BoldMT"]="Times-Bold",L["TimesNewRomanPS-Italic"]="Times-Italic",L["TimesNewRomanPS-ItalicMT"]="Times-Italic",L.TimesNewRomanPSMT="Times-Roman",L["TimesNewRomanPSMT-Bold"]="Times-Bold",L["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",L["TimesNewRomanPSMT-Italic"]="Times-Italic"});D.getStdFontMap=K;const z=(0,R.getLookupTableFactory)(function(L){L.Courier="FoxitFixed.pfb",L["Courier-Bold"]="FoxitFixedBold.pfb",L["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",L["Courier-Oblique"]="FoxitFixedItalic.pfb",L.Helvetica="FoxitSans.pfb",L["Helvetica-Bold"]="FoxitSansBold.pfb",L["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",L["Helvetica-Oblique"]="FoxitSansItalic.pfb",L["Times-Roman"]="FoxitSerif.pfb",L["Times-Bold"]="FoxitSerifBold.pfb",L["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",L["Times-Italic"]="FoxitSerifItalic.pfb",L.Symbol="FoxitSymbol.pfb",L.ZapfDingbats="FoxitDingbats.pfb",L["LiberationSans-Regular"]="LiberationSans-Regular.ttf",L["LiberationSans-Bold"]="LiberationSans-Bold.ttf",L["LiberationSans-Italic"]="LiberationSans-Italic.ttf",L["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});D.getFontNameToFileMap=z;const e=(0,R.getLookupTableFactory)(function(L){L.Calibri="Helvetica",L["Calibri-Bold"]="Helvetica-Bold",L["Calibri-BoldItalic"]="Helvetica-BoldOblique",L["Calibri-Italic"]="Helvetica-Oblique",L.CenturyGothic="Helvetica",L["CenturyGothic-Bold"]="Helvetica-Bold",L["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",L["CenturyGothic-Italic"]="Helvetica-Oblique",L.ComicSansMS="Comic Sans MS",L["ComicSansMS-Bold"]="Comic Sans MS-Bold",L["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",L["ComicSansMS-Italic"]="Comic Sans MS-Italic",L["ItcSymbol-Bold"]="Helvetica-Bold",L["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",L["ItcSymbol-Book"]="Helvetica",L["ItcSymbol-BookItalic"]="Helvetica-Oblique",L["ItcSymbol-Medium"]="Helvetica",L["ItcSymbol-MediumItalic"]="Helvetica-Oblique",L.LucidaConsole="Courier",L["LucidaConsole-Bold"]="Courier-Bold",L["LucidaConsole-BoldItalic"]="Courier-BoldOblique",L["LucidaConsole-Italic"]="Courier-Oblique",L["LucidaSans-Demi"]="Helvetica-Bold",L["MS-Gothic"]="MS Gothic",L["MS-Gothic-Bold"]="MS Gothic-Bold",L["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",L["MS-Gothic-Italic"]="MS Gothic-Italic",L["MS-Mincho"]="MS Mincho",L["MS-Mincho-Bold"]="MS Mincho-Bold",L["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",L["MS-Mincho-Italic"]="MS Mincho-Italic",L["MS-PGothic"]="MS PGothic",L["MS-PGothic-Bold"]="MS PGothic-Bold",L["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",L["MS-PGothic-Italic"]="MS PGothic-Italic",L["MS-PMincho"]="MS PMincho",L["MS-PMincho-Bold"]="MS PMincho-Bold",L["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",L["MS-PMincho-Italic"]="MS PMincho-Italic",L.NuptialScript="Times-Italic",L.SegoeUISymbol="Helvetica",L.Wingdings="ZapfDingbats",L["Wingdings-Regular"]="ZapfDingbats"});D.getNonStdFontMap=e;const ae=(0,R.getLookupTableFactory)(function(L){L["Adobe Jenson"]=!0,L["Adobe Text"]=!0,L.Albertus=!0,L.Aldus=!0,L.Alexandria=!0,L.Algerian=!0,L["American Typewriter"]=!0,L.Antiqua=!0,L.Apex=!0,L.Arno=!0,L.Aster=!0,L.Aurora=!0,L.Baskerville=!0,L.Bell=!0,L.Bembo=!0,L["Bembo Schoolbook"]=!0,L.Benguiat=!0,L["Berkeley Old Style"]=!0,L["Bernhard Modern"]=!0,L["Berthold City"]=!0,L.Bodoni=!0,L["Bauer Bodoni"]=!0,L["Book Antiqua"]=!0,L.Bookman=!0,L["Bordeaux Roman"]=!0,L["Californian FB"]=!0,L.Calisto=!0,L.Calvert=!0,L.Capitals=!0,L.Cambria=!0,L.Cartier=!0,L.Caslon=!0,L.Catull=!0,L.Centaur=!0,L["Century Old Style"]=!0,L["Century Schoolbook"]=!0,L.Chaparral=!0,L["Charis SIL"]=!0,L.Cheltenham=!0,L["Cholla Slab"]=!0,L.Clarendon=!0,L.Clearface=!0,L.Cochin=!0,L.Colonna=!0,L["Computer Modern"]=!0,L["Concrete Roman"]=!0,L.Constantia=!0,L["Cooper Black"]=!0,L.Corona=!0,L.Ecotype=!0,L.Egyptienne=!0,L.Elephant=!0,L.Excelsior=!0,L.Fairfield=!0,L["FF Scala"]=!0,L.Folkard=!0,L.Footlight=!0,L.FreeSerif=!0,L["Friz Quadrata"]=!0,L.Garamond=!0,L.Gentium=!0,L.Georgia=!0,L.Gloucester=!0,L["Goudy Old Style"]=!0,L["Goudy Schoolbook"]=!0,L["Goudy Pro Font"]=!0,L.Granjon=!0,L["Guardian Egyptian"]=!0,L.Heather=!0,L.Hercules=!0,L["High Tower Text"]=!0,L.Hiroshige=!0,L["Hoefler Text"]=!0,L["Humana Serif"]=!0,L.Imprint=!0,L["Ionic No. 5"]=!0,L.Janson=!0,L.Joanna=!0,L.Korinna=!0,L.Lexicon=!0,L.LiberationSerif=!0,L["Liberation Serif"]=!0,L["Linux Libertine"]=!0,L.Literaturnaya=!0,L.Lucida=!0,L["Lucida Bright"]=!0,L.Melior=!0,L.Memphis=!0,L.Miller=!0,L.Minion=!0,L.Modern=!0,L["Mona Lisa"]=!0,L["Mrs Eaves"]=!0,L["MS Serif"]=!0,L["Museo Slab"]=!0,L["New York"]=!0,L["Nimbus Roman"]=!0,L["NPS Rawlinson Roadway"]=!0,L.NuptialScript=!0,L.Palatino=!0,L.Perpetua=!0,L.Plantin=!0,L["Plantin Schoolbook"]=!0,L.Playbill=!0,L["Poor Richard"]=!0,L["Rawlinson Roadway"]=!0,L.Renault=!0,L.Requiem=!0,L.Rockwell=!0,L.Roman=!0,L["Rotis Serif"]=!0,L.Sabon=!0,L.Scala=!0,L.Seagull=!0,L.Sistina=!0,L.Souvenir=!0,L.STIX=!0,L["Stone Informal"]=!0,L["Stone Serif"]=!0,L.Sylfaen=!0,L.Times=!0,L.Trajan=!0,L.Trinité=!0,L["Trump Mediaeval"]=!0,L.Utopia=!0,L["Vale Type"]=!0,L["Bitstream Vera"]=!0,L["Vera Serif"]=!0,L.Versailles=!0,L.Wanted=!0,L.Weiss=!0,L["Wide Latin"]=!0,L.Windsor=!0,L.XITS=!0});D.getSerifFonts=ae;const ie=(0,R.getLookupTableFactory)(function(L){L.Dingbats=!0,L.Symbol=!0,L.ZapfDingbats=!0});D.getSymbolsFonts=ie;const he=(0,R.getLookupTableFactory)(function(L){L[2]=10,L[3]=32,L[4]=33,L[5]=34,L[6]=35,L[7]=36,L[8]=37,L[9]=38,L[10]=39,L[11]=40,L[12]=41,L[13]=42,L[14]=43,L[15]=44,L[16]=45,L[17]=46,L[18]=47,L[19]=48,L[20]=49,L[21]=50,L[22]=51,L[23]=52,L[24]=53,L[25]=54,L[26]=55,L[27]=56,L[28]=57,L[29]=58,L[30]=894,L[31]=60,L[32]=61,L[33]=62,L[34]=63,L[35]=64,L[36]=65,L[37]=66,L[38]=67,L[39]=68,L[40]=69,L[41]=70,L[42]=71,L[43]=72,L[44]=73,L[45]=74,L[46]=75,L[47]=76,L[48]=77,L[49]=78,L[50]=79,L[51]=80,L[52]=81,L[53]=82,L[54]=83,L[55]=84,L[56]=85,L[57]=86,L[58]=87,L[59]=88,L[60]=89,L[61]=90,L[62]=91,L[63]=92,L[64]=93,L[65]=94,L[66]=95,L[67]=96,L[68]=97,L[69]=98,L[70]=99,L[71]=100,L[72]=101,L[73]=102,L[74]=103,L[75]=104,L[76]=105,L[77]=106,L[78]=107,L[79]=108,L[80]=109,L[81]=110,L[82]=111,L[83]=112,L[84]=113,L[85]=114,L[86]=115,L[87]=116,L[88]=117,L[89]=118,L[90]=119,L[91]=120,L[92]=121,L[93]=122,L[94]=123,L[95]=124,L[96]=125,L[97]=126,L[98]=196,L[99]=197,L[100]=199,L[101]=201,L[102]=209,L[103]=214,L[104]=220,L[105]=225,L[106]=224,L[107]=226,L[108]=228,L[109]=227,L[110]=229,L[111]=231,L[112]=233,L[113]=232,L[114]=234,L[115]=235,L[116]=237,L[117]=236,L[118]=238,L[119]=239,L[120]=241,L[121]=243,L[122]=242,L[123]=244,L[124]=246,L[125]=245,L[126]=250,L[127]=249,L[128]=251,L[129]=252,L[130]=8224,L[131]=176,L[132]=162,L[133]=163,L[134]=167,L[135]=8226,L[136]=182,L[137]=223,L[138]=174,L[139]=169,L[140]=8482,L[141]=180,L[142]=168,L[143]=8800,L[144]=198,L[145]=216,L[146]=8734,L[147]=177,L[148]=8804,L[149]=8805,L[150]=165,L[151]=181,L[152]=8706,L[153]=8721,L[154]=8719,L[156]=8747,L[157]=170,L[158]=186,L[159]=8486,L[160]=230,L[161]=248,L[162]=191,L[163]=161,L[164]=172,L[165]=8730,L[166]=402,L[167]=8776,L[168]=8710,L[169]=171,L[170]=187,L[171]=8230,L[200]=193,L[203]=205,L[210]=218,L[223]=711,L[224]=321,L[225]=322,L[226]=352,L[227]=353,L[228]=381,L[229]=382,L[233]=221,L[234]=253,L[252]=263,L[253]=268,L[254]=269,L[258]=258,L[260]=260,L[261]=261,L[265]=280,L[266]=281,L[267]=282,L[268]=283,L[269]=313,L[275]=323,L[276]=324,L[278]=328,L[283]=344,L[284]=345,L[285]=346,L[286]=347,L[292]=367,L[295]=377,L[296]=378,L[298]=380,L[305]=963,L[306]=964,L[307]=966,L[308]=8215,L[309]=8252,L[310]=8319,L[311]=8359,L[312]=8592,L[313]=8593,L[337]=9552,L[493]=1039,L[494]=1040,L[672]=1488,L[673]=1489,L[674]=1490,L[675]=1491,L[676]=1492,L[677]=1493,L[678]=1494,L[679]=1495,L[680]=1496,L[681]=1497,L[682]=1498,L[683]=1499,L[684]=1500,L[685]=1501,L[686]=1502,L[687]=1503,L[688]=1504,L[689]=1505,L[690]=1506,L[691]=1507,L[692]=1508,L[693]=1509,L[694]=1510,L[695]=1511,L[696]=1512,L[697]=1513,L[698]=1514,L[705]=1524,L[706]=8362,L[710]=64288,L[711]=64298,L[759]=1617,L[761]=1776,L[763]=1778,L[775]=1652,L[777]=1764,L[778]=1780,L[779]=1781,L[780]=1782,L[782]=771,L[783]=64726,L[786]=8363,L[788]=8532,L[790]=768,L[791]=769,L[792]=768,L[795]=803,L[797]=64336,L[798]=64337,L[799]=64342,L[800]=64343,L[801]=64344,L[802]=64345,L[803]=64362,L[804]=64363,L[805]=64364,L[2424]=7821,L[2425]=7822,L[2426]=7823,L[2427]=7824,L[2428]=7825,L[2429]=7826,L[2430]=7827,L[2433]=7682,L[2678]=8045,L[2679]=8046,L[2830]=1552,L[2838]=686,L[2840]=751,L[2842]=753,L[2843]=754,L[2844]=755,L[2846]=757,L[2856]=767,L[2857]=848,L[2858]=849,L[2862]=853,L[2863]=854,L[2864]=855,L[2865]=861,L[2866]=862,L[2906]=7460,L[2908]=7462,L[2909]=7463,L[2910]=7464,L[2912]=7466,L[2913]=7467,L[2914]=7468,L[2916]=7470,L[2917]=7471,L[2918]=7472,L[2920]=7474,L[2921]=7475,L[2922]=7476,L[2924]=7478,L[2925]=7479,L[2926]=7480,L[2928]=7482,L[2929]=7483,L[2930]=7484,L[2932]=7486,L[2933]=7487,L[2934]=7488,L[2936]=7490,L[2937]=7491,L[2938]=7492,L[2940]=7494,L[2941]=7495,L[2942]=7496,L[2944]=7498,L[2946]=7500,L[2948]=7502,L[2950]=7504,L[2951]=7505,L[2952]=7506,L[2954]=7508,L[2955]=7509,L[2956]=7510,L[2958]=7512,L[2959]=7513,L[2960]=7514,L[2962]=7516,L[2963]=7517,L[2964]=7518,L[2966]=7520,L[2967]=7521,L[2968]=7522,L[2970]=7524,L[2971]=7525,L[2972]=7526,L[2974]=7528,L[2975]=7529,L[2976]=7530,L[2978]=1537,L[2979]=1538,L[2980]=1539,L[2982]=1549,L[2983]=1551,L[2984]=1552,L[2986]=1554,L[2987]=1555,L[2988]=1556,L[2990]=1623,L[2991]=1624,L[2995]=1775,L[2999]=1791,L[3002]=64290,L[3003]=64291,L[3004]=64292,L[3006]=64294,L[3007]=64295,L[3008]=64296,L[3011]=1900,L[3014]=8223,L[3015]=8244,L[3017]=7532,L[3018]=7533,L[3019]=7534,L[3075]=7590,L[3076]=7591,L[3079]=7594,L[3080]=7595,L[3083]=7598,L[3084]=7599,L[3087]=7602,L[3088]=7603,L[3091]=7606,L[3092]=7607,L[3095]=7610,L[3096]=7611,L[3099]=7614,L[3100]=7615,L[3103]=7618,L[3104]=7619,L[3107]=8337,L[3108]=8338,L[3116]=1884,L[3119]=1885,L[3120]=1885,L[3123]=1886,L[3124]=1886,L[3127]=1887,L[3128]=1887,L[3131]=1888,L[3132]=1888,L[3135]=1889,L[3136]=1889,L[3139]=1890,L[3140]=1890,L[3143]=1891,L[3144]=1891,L[3147]=1892,L[3148]=1892,L[3153]=580,L[3154]=581,L[3157]=584,L[3158]=585,L[3161]=588,L[3162]=589,L[3165]=891,L[3166]=892,L[3169]=1274,L[3170]=1275,L[3173]=1278,L[3174]=1279,L[3181]=7622,L[3182]=7623,L[3282]=11799,L[3316]=578,L[3379]=42785,L[3393]=1159,L[3416]=8377});D.getGlyphMapForStandardFonts=he;const J=(0,R.getLookupTableFactory)(function(L){L[227]=322,L[264]=261,L[291]=346});D.getSupplementalGlyphMapForArialBlack=J;const W=(0,R.getLookupTableFactory)(function(L){L[1]=32,L[4]=65,L[6]=193,L[17]=66,L[18]=67,L[21]=268,L[24]=68,L[28]=69,L[30]=201,L[32]=282,L[38]=70,L[39]=71,L[44]=72,L[47]=73,L[49]=205,L[58]=74,L[60]=75,L[62]=76,L[68]=77,L[69]=78,L[75]=79,L[87]=80,L[89]=81,L[90]=82,L[92]=344,L[94]=83,L[97]=352,L[100]=84,L[104]=85,L[115]=86,L[116]=87,L[121]=88,L[122]=89,L[124]=221,L[127]=90,L[129]=381,L[258]=97,L[260]=225,L[268]=261,L[271]=98,L[272]=99,L[273]=263,L[275]=269,L[282]=100,L[286]=101,L[288]=233,L[290]=283,L[295]=281,L[296]=102,L[336]=103,L[346]=104,L[349]=105,L[351]=237,L[361]=106,L[364]=107,L[367]=108,L[371]=322,L[373]=109,L[374]=110,L[381]=111,L[383]=243,L[393]=112,L[395]=113,L[396]=114,L[398]=345,L[400]=115,L[401]=347,L[403]=353,L[410]=116,L[437]=117,L[448]=118,L[449]=119,L[454]=120,L[455]=121,L[457]=253,L[460]=122,L[462]=382,L[463]=380,L[853]=44,L[855]=58,L[856]=46,L[876]=47,L[878]=45,L[882]=45,L[894]=40,L[895]=41,L[896]=91,L[897]=93,L[923]=64,L[1004]=48,L[1005]=49,L[1006]=50,L[1007]=51,L[1008]=52,L[1009]=53,L[1010]=54,L[1011]=55,L[1012]=56,L[1013]=57,L[1081]=37,L[1085]=43,L[1086]=45});D.getSupplementalGlyphMapForCalibri=W;function X(L){const Q=(0,U.normalizeFontName)(L);return K()[Q]}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ToUnicodeMap=D.IdentityToUnicodeMap=void 0;var R=B(2);class U{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const ae in this._map)e(ae,this._map[ae].charCodeAt(0))}has(e){return this._map[e]!==void 0}get(e){return this._map[e]}charCodeOf(e){const ae=this._map;if(ae.length<=65536)return ae.indexOf(e);for(const ie in ae)if(ae[ie]===e)return ie|0;return-1}amend(e){for(const ae in e)this._map[ae]=e[ae]}}D.ToUnicodeMap=U;class K{constructor(e,ae){this.firstChar=e,this.lastChar=ae}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let ae=this.firstChar,ie=this.lastChar;ae<=ie;ae++)e(ae,ae)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,R.unreachable)("Should not call amend()")}}D.IdentityToUnicodeMap=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CFFFont=void 0;var R=B(160),U=B(163),K=B(2);class z{constructor(ae,ie){this.properties=ie;const he=new R.CFFParser(ae,ie,U.SEAC_ANALYSIS_ENABLED);this.cff=he.parse(),this.cff.duplicateFirstGlyph();const J=new R.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=J.compile()}catch{(0,K.warn)("Failed to compile font "+ie.loadedName),this.data=ae}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const ae=this.cff,ie=this.properties,he=ae.charset.charset;let J,W;if(ie.composite){J=Object.create(null);let L;if(ae.isCIDFont)for(W=0;W<he.length;W++){const Q=he[W];L=ie.cMap.charCodeOf(Q),J[L]=W}else for(W=0;W<ae.charStrings.count;W++)L=ie.cMap.charCodeOf(W),J[L]=W;return J}let X=ae.encoding?ae.encoding.encoding:null;return ie.isInternalFont&&(X=ie.defaultEncoding),J=(0,U.type1FontGlyphMapping)(ie,X,he),J}hasGlyphId(ae){return this.cff.hasGlyphId(ae)}_createBuiltInEncoding(){const{charset:ae,encoding:ie}=this.cff;if(!ae||!ie)return;const he=ae.charset,J=ie.encoding,W=[];for(const X in J){const L=J[X];if(L>=0){const Q=he[L];Q&&(W[X]=Q)}}W.length>0&&(this.properties.builtInEncoding=W)}}D.CFFFont=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.FontRendererFactory=void 0;var R=B(2),U=B(160),K=B(164),z=B(162),e=B(135);function ae(ve,ye){return(ve[ye]<<24|ve[ye+1]<<16|ve[ye+2]<<8|ve[ye+3])>>>0}function ie(ve,ye){return ve[ye]<<8|ve[ye+1]}function he(ve,ye){return(ve[ye]<<24|ve[ye+1]<<16)>>16}function J(ve,ye){return ve[ye]<<24>>24}function W(ve,ye){return he(ve,ye)/16384}function X(ve){const ye=ve.length;let Ce=32768;return ye<1240?Ce=107:ye<33900&&(Ce=1131),Ce}function L(ve,ye,Ce){const pe=ie(ve,ye+2)===1?ae(ve,ye+8):ae(ve,ye+16),_e=ie(ve,ye+pe);let Ge,Ae,Ne;if(_e===4){ie(ve,ye+pe+2);const Ze=ie(ve,ye+pe+6)>>1;for(Ae=ye+pe+14,Ge=[],Ne=0;Ne<Ze;Ne++,Ae+=2)Ge[Ne]={end:ie(ve,Ae)};for(Ae+=2,Ne=0;Ne<Ze;Ne++,Ae+=2)Ge[Ne].start=ie(ve,Ae);for(Ne=0;Ne<Ze;Ne++,Ae+=2)Ge[Ne].idDelta=ie(ve,Ae);for(Ne=0;Ne<Ze;Ne++,Ae+=2){let ze=ie(ve,Ae);if(ze!==0){Ge[Ne].ids=[];for(let Te=0,Fe=Ge[Ne].end-Ge[Ne].start+1;Te<Fe;Te++)Ge[Ne].ids[Te]=ie(ve,Ae+ze),ze+=2}}return Ge}else if(_e===12){const Ze=ae(ve,ye+pe+12);for(Ae=ye+pe+16,Ge=[],Ne=0;Ne<Ze;Ne++)ye=ae(ve,Ae),Ge.push({start:ye,end:ae(ve,Ae+4),idDelta:ae(ve,Ae+8)-ye}),Ae+=12;return Ge}throw new R.FormatError(`unsupported cmap: ${_e}`)}function Q(ve,ye,Ce,pe){const _e={},Ae=new U.CFFParser(new e.Stream(ve,ye,Ce-ye),_e,pe).parse();return{glyphs:Ae.charStrings.objects,subrs:Ae.topDict.privateDict&&Ae.topDict.privateDict.subrsIndex&&Ae.topDict.privateDict.subrsIndex.objects,gsubrs:Ae.globalSubrIndex&&Ae.globalSubrIndex.objects,isCFFCIDFont:Ae.isCIDFont,fdSelect:Ae.fdSelect,fdArray:Ae.fdArray}}function ce(ve,ye,Ce){let pe,_e;Ce?(pe=4,_e=ae):(pe=2,_e=(Ne,Ze)=>2*ie(Ne,Ze));const Ge=[];let Ae=_e(ye,0);for(let Ne=pe;Ne<ye.length;Ne+=pe){const Ze=_e(ye,Ne);Ge.push(ve.subarray(Ae,Ze)),Ae=Ze}return Ge}function de(ve,ye){const Ce=ye.codePointAt(0);let pe=0,_e=0,Ge=ve.length-1;for(;_e<Ge;){const Ae=_e+Ge+1>>1;Ce<ve[Ae].start?Ge=Ae-1:_e=Ae}return ve[_e].start<=Ce&&Ce<=ve[_e].end&&(pe=ve[_e].idDelta+(ve[_e].ids?ve[_e].ids[Ce-ve[_e].start]:Ce)&65535),{charCode:Ce,glyphId:pe}}function se(ve,ye,Ce){function pe(Fe,Pe){ye.push({cmd:"moveTo",args:[Fe,Pe]})}function _e(Fe,Pe){ye.push({cmd:"lineTo",args:[Fe,Pe]})}function Ge(Fe,Pe,we,Ie){ye.push({cmd:"quadraticCurveTo",args:[Fe,Pe,we,Ie]})}let Ae=0;const Ne=he(ve,Ae);let Ze,ze=0,Te=0;if(Ae+=10,Ne<0)do{Ze=ie(ve,Ae);const Fe=ie(ve,Ae+2);Ae+=4;let Pe,we;Ze&1?(Ze&2?(Pe=he(ve,Ae),we=he(ve,Ae+2)):(Pe=ie(ve,Ae),we=ie(ve,Ae+2)),Ae+=4):Ze&2?(Pe=J(ve,Ae++),we=J(ve,Ae++)):(Pe=ve[Ae++],we=ve[Ae++]),Ze&2?(ze=Pe,Te=we):(ze=0,Te=0);let Ie=1,Be=1,Ke=0,Ve=0;Ze&8?(Ie=Be=W(ve,Ae),Ae+=2):Ze&64?(Ie=W(ve,Ae),Be=W(ve,Ae+2),Ae+=4):Ze&128&&(Ie=W(ve,Ae),Ke=W(ve,Ae+2),Ve=W(ve,Ae+4),Be=W(ve,Ae+6),Ae+=8);const je=Ce.glyphs[Fe];je&&(ye.push({cmd:"save"},{cmd:"transform",args:[Ie,Ke,Ve,Be,ze,Te]}),se(je,ye,Ce),ye.push({cmd:"restore"}))}while(Ze&32);else{const Fe=[];let Pe,we;for(Pe=0;Pe<Ne;Pe++)Fe.push(ie(ve,Ae)),Ae+=2;const Ie=ie(ve,Ae);Ae+=2+Ie;const Be=Fe.at(-1)+1,Ke=[];for(;Ke.length<Be;){Ze=ve[Ae++];let je=1;for(Ze&8&&(je+=ve[Ae++]);je-- >0;)Ke.push({flags:Ze})}for(Pe=0;Pe<Be;Pe++){switch(Ke[Pe].flags&18){case 0:ze+=he(ve,Ae),Ae+=2;break;case 2:ze-=ve[Ae++];break;case 18:ze+=ve[Ae++];break}Ke[Pe].x=ze}for(Pe=0;Pe<Be;Pe++){switch(Ke[Pe].flags&36){case 0:Te+=he(ve,Ae),Ae+=2;break;case 4:Te-=ve[Ae++];break;case 36:Te+=ve[Ae++];break}Ke[Pe].y=Te}let Ve=0;for(Ae=0;Ae<Ne;Ae++){const je=Fe[Ae],Le=Ke.slice(Ve,je+1);if(Le[0].flags&1)Le.push(Le[0]);else if(Le.at(-1).flags&1)Le.unshift(Le.at(-1));else{const et={flags:1,x:(Le[0].x+Le.at(-1).x)/2,y:(Le[0].y+Le.at(-1).y)/2};Le.unshift(et),Le.push(et)}for(pe(Le[0].x,Le[0].y),Pe=1,we=Le.length;Pe<we;Pe++)Le[Pe].flags&1?_e(Le[Pe].x,Le[Pe].y):Le[Pe+1].flags&1?(Ge(Le[Pe].x,Le[Pe].y,Le[Pe+1].x,Le[Pe+1].y),Pe++):Ge(Le[Pe].x,Le[Pe].y,(Le[Pe].x+Le[Pe+1].x)/2,(Le[Pe].y+Le[Pe+1].y)/2);Ve=je+1}}}function oe(ve,ye,Ce,pe){function _e(Pe,we){ye.push({cmd:"moveTo",args:[Pe,we]})}function Ge(Pe,we){ye.push({cmd:"lineTo",args:[Pe,we]})}function Ae(Pe,we,Ie,Be,Ke,Ve){ye.push({cmd:"bezierCurveTo",args:[Pe,we,Ie,Be,Ke,Ve]})}const Ne=[];let Ze=0,ze=0,Te=0;function Fe(Pe){let we=0;for(;we<Pe.length;){let Ie=!1,Be=Pe[we++],Ke,Ve,je,Le,et,Qe,Ue,$e,Ye;switch(Be){case 1:Te+=Ne.length>>1,Ie=!0;break;case 3:Te+=Ne.length>>1,Ie=!0;break;case 4:ze+=Ne.pop(),_e(Ze,ze),Ie=!0;break;case 5:for(;Ne.length>0;)Ze+=Ne.shift(),ze+=Ne.shift(),Ge(Ze,ze);break;case 6:for(;Ne.length>0&&(Ze+=Ne.shift(),Ge(Ze,ze),Ne.length!==0);)ze+=Ne.shift(),Ge(Ze,ze);break;case 7:for(;Ne.length>0&&(ze+=Ne.shift(),Ge(Ze,ze),Ne.length!==0);)Ze+=Ne.shift(),Ge(Ze,ze);break;case 8:for(;Ne.length>0;)Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze);break;case 10:if($e=Ne.pop(),Ye=null,Ce.isCFFCIDFont){const tt=Ce.fdSelect.getFDIndex(pe);if(tt>=0&&tt<Ce.fdArray.length){const ot=Ce.fdArray[tt];let st;ot.privateDict&&ot.privateDict.subrsIndex&&(st=ot.privateDict.subrsIndex.objects),st&&($e+=X(st),Ye=st[$e])}else(0,R.warn)("Invalid fd index for glyph index.")}else Ye=Ce.subrs[$e+Ce.subrsBias];Ye&&Fe(Ye);break;case 11:return;case 12:switch(Be=Pe[we++],Be){case 34:Ke=Ze+Ne.shift(),Ve=Ke+Ne.shift(),et=ze+Ne.shift(),Ze=Ve+Ne.shift(),Ae(Ke,ze,Ve,et,Ze,et),Ke=Ze+Ne.shift(),Ve=Ke+Ne.shift(),Ze=Ve+Ne.shift(),Ae(Ke,et,Ve,ze,Ze,ze);break;case 35:Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze),Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze),Ne.pop();break;case 36:Ke=Ze+Ne.shift(),et=ze+Ne.shift(),Ve=Ke+Ne.shift(),Qe=et+Ne.shift(),Ze=Ve+Ne.shift(),Ae(Ke,et,Ve,Qe,Ze,Qe),Ke=Ze+Ne.shift(),Ve=Ke+Ne.shift(),Ue=Qe+Ne.shift(),Ze=Ve+Ne.shift(),Ae(Ke,Qe,Ve,Ue,Ze,ze);break;case 37:const tt=Ze,ot=ze;Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze),Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve,ze=Le,Math.abs(Ze-tt)>Math.abs(ze-ot)?Ze+=Ne.shift():ze+=Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze);break;default:throw new R.FormatError(`unknown operator: 12 ${Be}`)}break;case 14:if(Ne.length>=4){const tt=Ne.pop(),ot=Ne.pop();ze=Ne.pop(),Ze=Ne.pop(),ye.push({cmd:"save"},{cmd:"translate",args:[Ze,ze]});let st=de(Ce.cmap,String.fromCharCode(Ce.glyphNameMap[z.StandardEncoding[tt]]));oe(Ce.glyphs[st.glyphId],ye,Ce,st.glyphId),ye.push({cmd:"restore"}),st=de(Ce.cmap,String.fromCharCode(Ce.glyphNameMap[z.StandardEncoding[ot]])),oe(Ce.glyphs[st.glyphId],ye,Ce,st.glyphId)}return;case 18:Te+=Ne.length>>1,Ie=!0;break;case 19:Te+=Ne.length>>1,we+=Te+7>>3,Ie=!0;break;case 20:Te+=Ne.length>>1,we+=Te+7>>3,Ie=!0;break;case 21:ze+=Ne.pop(),Ze+=Ne.pop(),_e(Ze,ze),Ie=!0;break;case 22:Ze+=Ne.pop(),_e(Ze,ze),Ie=!0;break;case 23:Te+=Ne.length>>1,Ie=!0;break;case 24:for(;Ne.length>2;)Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze);Ze+=Ne.shift(),ze+=Ne.shift(),Ge(Ze,ze);break;case 25:for(;Ne.length>6;)Ze+=Ne.shift(),ze+=Ne.shift(),Ge(Ze,ze);Ke=Ze+Ne.shift(),je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze);break;case 26:for(Ne.length%2&&(Ze+=Ne.shift());Ne.length>0;)Ke=Ze,je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve,ze=Le+Ne.shift(),Ae(Ke,je,Ve,Le,Ze,ze);break;case 27:for(Ne.length%2&&(ze+=Ne.shift());Ne.length>0;)Ke=Ze+Ne.shift(),je=ze,Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le,Ae(Ke,je,Ve,Le,Ze,ze);break;case 28:Ne.push((Pe[we]<<24|Pe[we+1]<<16)>>16),we+=2;break;case 29:$e=Ne.pop()+Ce.gsubrsBias,Ye=Ce.gsubrs[$e],Ye&&Fe(Ye);break;case 30:for(;Ne.length>0&&(Ke=Ze,je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+(Ne.length===1?Ne.shift():0),Ae(Ke,je,Ve,Le,Ze,ze),Ne.length!==0);)Ke=Ze+Ne.shift(),je=ze,Ve=Ke+Ne.shift(),Le=je+Ne.shift(),ze=Le+Ne.shift(),Ze=Ve+(Ne.length===1?Ne.shift():0),Ae(Ke,je,Ve,Le,Ze,ze);break;case 31:for(;Ne.length>0&&(Ke=Ze+Ne.shift(),je=ze,Ve=Ke+Ne.shift(),Le=je+Ne.shift(),ze=Le+Ne.shift(),Ze=Ve+(Ne.length===1?Ne.shift():0),Ae(Ke,je,Ve,Le,Ze,ze),Ne.length!==0);)Ke=Ze,je=ze+Ne.shift(),Ve=Ke+Ne.shift(),Le=je+Ne.shift(),Ze=Ve+Ne.shift(),ze=Le+(Ne.length===1?Ne.shift():0),Ae(Ke,je,Ve,Le,Ze,ze);break;default:if(Be<32)throw new R.FormatError(`unknown operator: ${Be}`);Be<247?Ne.push(Be-139):Be<251?Ne.push((Be-247)*256+Pe[we++]+108):Be<255?Ne.push(-(Be-251)*256-Pe[we++]-108):(Ne.push((Pe[we]<<24|Pe[we+1]<<16|Pe[we+2]<<8|Pe[we+3])/65536),we+=4);break}Ie&&(Ne.length=0)}}Fe(ve)}const me=[];class Ee{constructor(ye){this.constructor===Ee&&(0,R.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=ye,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(ye){const{charCode:Ce,glyphId:pe}=de(this.cmap,ye);let _e=this.compiledGlyphs[pe];if(!_e)try{_e=this.compileGlyph(this.glyphs[pe],pe),this.compiledGlyphs[pe]=_e}catch(Ge){throw this.compiledGlyphs[pe]=me,this.compiledCharCodeToGlyphId[Ce]===void 0&&(this.compiledCharCodeToGlyphId[Ce]=pe),Ge}return this.compiledCharCodeToGlyphId[Ce]===void 0&&(this.compiledCharCodeToGlyphId[Ce]=pe),_e}compileGlyph(ye,Ce){if(!ye||ye.length===0||ye[0]===14)return me;let pe=this.fontMatrix;if(this.isCFFCIDFont){const Ge=this.fdSelect.getFDIndex(Ce);Ge>=0&&Ge<this.fdArray.length?pe=this.fdArray[Ge].getByName("FontMatrix")||R.FONT_IDENTITY_MATRIX:(0,R.warn)("Invalid fd index for glyph index.")}const _e=[{cmd:"save"},{cmd:"transform",args:pe.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(ye,_e,Ce),_e.push({cmd:"restore"}),_e}compileGlyphImpl(){(0,R.unreachable)("Children classes should implement this.")}hasBuiltPath(ye){const{charCode:Ce,glyphId:pe}=de(this.cmap,ye);return this.compiledGlyphs[pe]!==void 0&&this.compiledCharCodeToGlyphId[Ce]!==void 0}}class ke extends Ee{constructor(ye,Ce,pe){super(pe||[488e-6,0,0,488e-6,0,0]),this.glyphs=ye,this.cmap=Ce}compileGlyphImpl(ye,Ce){se(ye,Ce,this)}}class xe extends Ee{constructor(ye,Ce,pe,_e){super(pe||[.001,0,0,.001,0,0]),this.glyphs=ye.glyphs,this.gsubrs=ye.gsubrs||[],this.subrs=ye.subrs||[],this.cmap=Ce,this.glyphNameMap=_e||(0,K.getGlyphsUnicode)(),this.gsubrsBias=X(this.gsubrs),this.subrsBias=X(this.subrs),this.isCFFCIDFont=ye.isCFFCIDFont,this.fdSelect=ye.fdSelect,this.fdArray=ye.fdArray}compileGlyphImpl(ye,Ce,pe){oe(ye,Ce,this,pe)}}class fe{static create(ye,Ce){const pe=new Uint8Array(ye.data);let _e,Ge,Ae,Ne,Ze,ze;const Te=ie(pe,4);for(let Fe=0,Pe=12;Fe<Te;Fe++,Pe+=16){const we=(0,R.bytesToString)(pe.subarray(Pe,Pe+4)),Ie=ae(pe,Pe+8),Be=ae(pe,Pe+12);switch(we){case"cmap":_e=L(pe,Ie);break;case"glyf":Ge=pe.subarray(Ie,Ie+Be);break;case"loca":Ae=pe.subarray(Ie,Ie+Be);break;case"head":ze=ie(pe,Ie+18),Ze=ie(pe,Ie+50);break;case"CFF ":Ne=Q(pe,Ie,Ie+Be,Ce);break}}if(Ge){const Fe=ze?[1/ze,0,0,1/ze,0,0]:ye.fontMatrix;return new ke(ce(Ge,Ae,Ze),_e,Fe)}return new xe(Ne,_e,ye.fontMatrix,ye.glyphNameMap)}}D.FontRendererFactory=fe},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.getMetrics=D.getFontBasicMetrics=void 0;var R=B(131);const U=(0,R.getLookupTableFactory)(function(z){z.Courier=600,z["Courier-Bold"]=600,z["Courier-BoldOblique"]=600,z["Courier-Oblique"]=600,z.Helvetica=(0,R.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),z["Helvetica-Bold"]=(0,R.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),z["Helvetica-BoldOblique"]=(0,R.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),z["Helvetica-Oblique"]=(0,R.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),z.Symbol=(0,R.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),z["Times-Roman"]=(0,R.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),z["Times-Bold"]=(0,R.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),z["Times-BoldItalic"]=(0,R.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),z["Times-Italic"]=(0,R.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),z.ZapfDingbats=(0,R.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});D.getMetrics=U;const K=(0,R.getLookupTableFactory)(function(z){z.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},z["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},z["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},z["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},z.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},z["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},z["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},z["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},z["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},z["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},z["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},z["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},z.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},z.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});D.getFontBasicMetrics=K},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.GlyfTable=void 0;const B=1,R=2,U=4,K=8,z=16,e=32,ae=64,ie=1,he=2,J=8,W=32,X=64,L=128,Q=256;class ce{constructor(xe){let{glyfTable:fe,isGlyphLocationsLong:ve,locaTable:ye,numGlyphs:Ce}=xe;this.glyphs=[];const pe=new DataView(ye.buffer,ye.byteOffset,ye.byteLength),_e=new DataView(fe.buffer,fe.byteOffset,fe.byteLength),Ge=ve?4:2;let Ae=ve?pe.getUint32(0):2*pe.getUint16(0),Ne=0;for(let Ze=0;Ze<Ce;Ze++){Ne+=Ge;const ze=ve?pe.getUint32(Ne):2*pe.getUint16(Ne);if(ze===Ae){this.glyphs.push(new de({}));continue}const Te=de.parse(Ae,_e);this.glyphs.push(Te),Ae=ze}}getSize(){return this.glyphs.reduce((xe,fe)=>{const ve=fe.getSize();return xe+(ve+3&-4)},0)}write(){const xe=this.getSize(),fe=new DataView(new ArrayBuffer(xe)),ve=xe>131070,ye=ve?4:2,Ce=new DataView(new ArrayBuffer((this.glyphs.length+1)*ye));ve?Ce.setUint32(0,0):Ce.setUint16(0,0);let pe=0,_e=0;for(const Ge of this.glyphs)pe+=Ge.write(pe,fe),pe=pe+3&-4,_e+=ye,ve?Ce.setUint32(_e,pe):Ce.setUint16(_e,pe>>1);return{isLocationLong:ve,loca:new Uint8Array(Ce.buffer),glyf:new Uint8Array(fe.buffer)}}scale(xe){for(let fe=0,ve=this.glyphs.length;fe<ve;fe++)this.glyphs[fe].scale(xe[fe])}}D.GlyfTable=ce;class de{constructor(xe){let{header:fe=null,simple:ve=null,composites:ye=null}=xe;this.header=fe,this.simple=ve,this.composites=ye}static parse(xe,fe){const[ve,ye]=se.parse(xe,fe);if(xe+=ve,ye.numberOfContours<0){const pe=[];for(;;){const[_e,Ge]=Ee.parse(xe,fe);if(xe+=_e,pe.push(Ge),!(Ge.flags&W))break}return new de({header:ye,composites:pe})}const Ce=me.parse(xe,fe,ye.numberOfContours);return new de({header:ye,simple:Ce})}getSize(){if(!this.header)return 0;const xe=this.simple?this.simple.getSize():this.composites.reduce((fe,ve)=>fe+ve.getSize(),0);return this.header.getSize()+xe}write(xe,fe){if(!this.header)return 0;const ve=xe;if(xe+=this.header.write(xe,fe),this.simple)xe+=this.simple.write(xe,fe);else for(const ye of this.composites)xe+=ye.write(xe,fe);return xe-ve}scale(xe){if(!this.header)return;const fe=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(fe,xe),this.simple)this.simple.scale(fe,xe);else for(const ve of this.composites)ve.scale(fe,xe)}}class se{constructor(xe){let{numberOfContours:fe,xMin:ve,yMin:ye,xMax:Ce,yMax:pe}=xe;this.numberOfContours=fe,this.xMin=ve,this.yMin=ye,this.xMax=Ce,this.yMax=pe}static parse(xe,fe){return[10,new se({numberOfContours:fe.getInt16(xe),xMin:fe.getInt16(xe+2),yMin:fe.getInt16(xe+4),xMax:fe.getInt16(xe+6),yMax:fe.getInt16(xe+8)})]}getSize(){return 10}write(xe,fe){return fe.setInt16(xe,this.numberOfContours),fe.setInt16(xe+2,this.xMin),fe.setInt16(xe+4,this.yMin),fe.setInt16(xe+6,this.xMax),fe.setInt16(xe+8,this.yMax),10}scale(xe,fe){this.xMin=Math.round(xe+(this.xMin-xe)*fe),this.xMax=Math.round(xe+(this.xMax-xe)*fe)}}class oe{constructor(xe){let{flags:fe,xCoordinates:ve,yCoordinates:ye}=xe;this.xCoordinates=ve,this.yCoordinates=ye,this.flags=fe}}class me{constructor(xe){let{contours:fe,instructions:ve}=xe;this.contours=fe,this.instructions=ve}static parse(xe,fe,ve){const ye=[];for(let we=0;we<ve;we++){const Ie=fe.getUint16(xe);xe+=2,ye.push(Ie)}const Ce=ye[ve-1]+1,pe=fe.getUint16(xe);xe+=2;const _e=new Uint8Array(fe).slice(xe,xe+pe);xe+=pe;const Ge=[];for(let we=0;we<Ce;xe++,we++){let Ie=fe.getUint8(xe);if(Ge.push(Ie),Ie&K){const Be=fe.getUint8(++xe);Ie^=K;for(let Ke=0;Ke<Be;Ke++)Ge.push(Ie);we+=Be}}const Ae=[];let Ne=[],Ze=[],ze=[];const Te=[];let Fe=0,Pe=0;for(let we=0;we<Ce;we++){const Ie=Ge[we];if(Ie&R){const Be=fe.getUint8(xe++);Pe+=Ie&z?Be:-Be,Ne.push(Pe)}else Ie&z||(Pe+=fe.getInt16(xe),xe+=2),Ne.push(Pe);ye[Fe]===we&&(Fe++,Ae.push(Ne),Ne=[])}Pe=0,Fe=0;for(let we=0;we<Ce;we++){const Ie=Ge[we];if(Ie&U){const Be=fe.getUint8(xe++);Pe+=Ie&e?Be:-Be,Ze.push(Pe)}else Ie&e||(Pe+=fe.getInt16(xe),xe+=2),Ze.push(Pe);ze.push(Ie&B|Ie&ae),ye[Fe]===we&&(Ne=Ae[Fe],Fe++,Te.push(new oe({flags:ze,xCoordinates:Ne,yCoordinates:Ze})),Ze=[],ze=[])}return new me({contours:Te,instructions:_e})}getSize(){let xe=this.contours.length*2+2+this.instructions.length,fe=0,ve=0;for(const ye of this.contours){xe+=ye.flags.length;for(let Ce=0,pe=ye.xCoordinates.length;Ce<pe;Ce++){const _e=ye.xCoordinates[Ce],Ge=ye.yCoordinates[Ce];let Ae=Math.abs(_e-fe);Ae>255?xe+=2:Ae>0&&(xe+=1),fe=_e,Ae=Math.abs(Ge-ve),Ae>255?xe+=2:Ae>0&&(xe+=1),ve=Ge}}return xe}write(xe,fe){const ve=xe,ye=[],Ce=[],pe=[];let _e=0,Ge=0;for(const Ae of this.contours){for(let Ne=0,Ze=Ae.xCoordinates.length;Ne<Ze;Ne++){let ze=Ae.flags[Ne];const Te=Ae.xCoordinates[Ne];let Fe=Te-_e;if(Fe===0)ze|=z,ye.push(0);else{const we=Math.abs(Fe);we<=255?(ze|=Fe>=0?R|z:R,ye.push(we)):ye.push(Fe)}_e=Te;const Pe=Ae.yCoordinates[Ne];if(Fe=Pe-Ge,Fe===0)ze|=e,Ce.push(0);else{const we=Math.abs(Fe);we<=255?(ze|=Fe>=0?U|e:U,Ce.push(we)):Ce.push(Fe)}Ge=Pe,pe.push(ze)}fe.setUint16(xe,ye.length-1),xe+=2}fe.setUint16(xe,this.instructions.length),xe+=2,this.instructions.length&&(new Uint8Array(fe.buffer,0,fe.buffer.byteLength).set(this.instructions,xe),xe+=this.instructions.length);for(const Ae of pe)fe.setUint8(xe++,Ae);for(let Ae=0,Ne=ye.length;Ae<Ne;Ae++){const Ze=ye[Ae],ze=pe[Ae];ze&R?fe.setUint8(xe++,Ze):ze&z||(fe.setInt16(xe,Ze),xe+=2)}for(let Ae=0,Ne=Ce.length;Ae<Ne;Ae++){const Ze=Ce[Ae],ze=pe[Ae];ze&U?fe.setUint8(xe++,Ze):ze&e||(fe.setInt16(xe,Ze),xe+=2)}return xe-ve}scale(xe,fe){for(const ve of this.contours)if(ve.xCoordinates.length!==0)for(let ye=0,Ce=ve.xCoordinates.length;ye<Ce;ye++)ve.xCoordinates[ye]=Math.round(xe+(ve.xCoordinates[ye]-xe)*fe)}}class Ee{constructor(xe){let{flags:fe,glyphIndex:ve,argument1:ye,argument2:Ce,transf:pe,instructions:_e}=xe;this.flags=fe,this.glyphIndex=ve,this.argument1=ye,this.argument2=Ce,this.transf=pe,this.instructions=_e}static parse(xe,fe){const ve=xe,ye=[];let Ce=fe.getUint16(xe);const pe=fe.getUint16(xe+2);xe+=4;let _e,Ge;Ce&ie?(Ce&he?(_e=fe.getInt16(xe),Ge=fe.getInt16(xe+2)):(_e=fe.getUint16(xe),Ge=fe.getUint16(xe+2)),xe+=4,Ce^=ie):(Ce&he?(_e=fe.getInt8(xe),Ge=fe.getInt8(xe+1)):(_e=fe.getUint8(xe),Ge=fe.getUint8(xe+1)),xe+=2),Ce&J?(ye.push(fe.getUint16(xe)),xe+=2):Ce&X?(ye.push(fe.getUint16(xe),fe.getUint16(xe+2)),xe+=4):Ce&L&&(ye.push(fe.getUint16(xe),fe.getUint16(xe+2),fe.getUint16(xe+4),fe.getUint16(xe+6)),xe+=8);let Ae=null;if(Ce&Q){const Ne=fe.getUint16(xe);xe+=2,Ae=new Uint8Array(fe).slice(xe,xe+Ne),xe+=Ne}return[xe-ve,new Ee({flags:Ce,glyphIndex:pe,argument1:_e,argument2:Ge,transf:ye,instructions:Ae})]}getSize(){let xe=4+this.transf.length*2;return this.flags&Q&&(xe+=2+this.instructions.length),xe+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(xe+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(xe+=2),xe}write(xe,fe){const ve=xe;return this.flags&he?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=ie):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=ie),fe.setUint16(xe,this.flags),fe.setUint16(xe+2,this.glyphIndex),xe+=4,this.flags&ie?(this.flags&he?(fe.setInt16(xe,this.argument1),fe.setInt16(xe+2,this.argument2)):(fe.setUint16(xe,this.argument1),fe.setUint16(xe+2,this.argument2)),xe+=4):(fe.setUint8(xe,this.argument1),fe.setUint8(xe+1,this.argument2),xe+=2),this.flags&Q&&(fe.setUint16(xe,this.instructions.length),xe+=2,this.instructions.length&&(new Uint8Array(fe.buffer,0,fe.buffer.byteLength).set(this.instructions,xe),xe+=this.instructions.length)),xe-ve}scale(xe,fe){}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.OpenTypeFileBuilder=void 0;var R=B(131),U=B(2);function K(J,W,X){J[W]=X>>8&255,J[W+1]=X&255}function z(J,W,X){J[W]=X>>24&255,J[W+1]=X>>16&255,J[W+2]=X>>8&255,J[W+3]=X&255}function e(J,W,X){if(X instanceof Uint8Array)J.set(X,W);else if(typeof X=="string")for(let L=0,Q=X.length;L<Q;L++)J[W++]=X.charCodeAt(L)&255;else for(let L=0,Q=X.length;L<Q;L++)J[W++]=X[L]&255}const ae=12,ie=16;class he{constructor(W){this.sfnt=W,this.tables=Object.create(null)}static getSearchParams(W,X){let L=1,Q=0;for(;(L^W)>L;)L<<=1,Q++;const ce=L*X;return{range:ce,entry:Q,rangeShift:X*W-ce}}toArray(){let W=this.sfnt;const X=this.tables,L=Object.keys(X);L.sort();const Q=L.length;let ce,de,se,oe,me,Ee=ae+Q*ie;const ke=[Ee];for(ce=0;ce<Q;ce++){oe=X[L[ce]];const ve=(oe.length+3&-4)>>>0;Ee+=ve,ke.push(Ee)}const xe=new Uint8Array(Ee);for(ce=0;ce<Q;ce++)oe=X[L[ce]],e(xe,ke[ce],oe);W==="true"&&(W=(0,U.string32)(65536)),xe[0]=W.charCodeAt(0)&255,xe[1]=W.charCodeAt(1)&255,xe[2]=W.charCodeAt(2)&255,xe[3]=W.charCodeAt(3)&255,K(xe,4,Q);const fe=he.getSearchParams(Q,16);for(K(xe,6,fe.range),K(xe,8,fe.entry),K(xe,10,fe.rangeShift),Ee=ae,ce=0;ce<Q;ce++){me=L[ce],xe[Ee]=me.charCodeAt(0)&255,xe[Ee+1]=me.charCodeAt(1)&255,xe[Ee+2]=me.charCodeAt(2)&255,xe[Ee+3]=me.charCodeAt(3)&255;let ve=0;for(de=ke[ce],se=ke[ce+1];de<se;de+=4){const ye=(0,R.readUint32)(xe,de);ve=ve+ye>>>0}z(xe,Ee+4,ve),z(xe,Ee+8,ke[ce]),z(xe,Ee+12,X[me].length),Ee+=ie}return xe}addTable(W,X){if(W in this.tables)throw new Error("Table "+W+" already exists");this.tables[W]=X}}D.OpenTypeFileBuilder=he},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Type1Font=void 0;var R=B(160),U=B(163),K=B(131),z=B(135),e=B(174),ae=B(2);function ie(X,L,Q){const ce=X.length,de=L.length,se=ce-de;let oe=Q,me=!1;for(;oe<se;){let Ee=0;for(;Ee<de&&X[oe+Ee]===L[Ee];)Ee++;if(Ee>=de){for(oe+=Ee;oe<ce&&(0,K.isWhiteSpace)(X[oe]);)oe++;me=!0;break}oe++}return{found:me,length:oe}}function he(X,L){const Q=[101,101,120,101,99],ce=X.pos;let de,se,oe;try{de=X.getBytes(L),se=de.length}catch{}if(se===L&&(oe=ie(de,Q,L-2*Q.length),oe.found&&oe.length===L))return{stream:new z.Stream(de),length:L};(0,ae.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),X.pos=ce;const me=2048;let Ee;for(;;){const ke=X.peekBytes(me);if(oe=ie(ke,Q,0),oe.length===0)break;if(X.pos+=oe.length,oe.found){Ee=X.pos-ce;break}}return X.pos=ce,Ee?{stream:new z.Stream(X.getBytes(Ee)),length:Ee}:((0,ae.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new z.Stream(X.getBytes(L)),length:L})}function J(X,L){const Q=X.getBytes();return{stream:new z.Stream(Q),length:Q.length}}class W{constructor(L,Q,ce){let se=ce.length1;ce.length2;let oe=Q.peekBytes(6);const me=oe[0]===128&&oe[1]===1;me&&(Q.skip(6),se=oe[5]<<24|oe[4]<<16|oe[3]<<8|oe[2]);const Ee=he(Q,se);new e.Type1Parser(Ee.stream,!1,U.SEAC_ANALYSIS_ENABLED).extractFontHeader(ce),me&&(oe=Q.getBytes(6),oe[5]<<24|oe[4]<<16|oe[3]<<8|oe[2]);const xe=J(Q),ve=new e.Type1Parser(xe.stream,!0,U.SEAC_ANALYSIS_ENABLED).extractFontProgram(ce);for(const _e in ve.properties)ce[_e]=ve.properties[_e];const ye=ve.charstrings,Ce=this.getType2Charstrings(ye),pe=this.getType2Subrs(ve.subrs);this.charstrings=ye,this.data=this.wrap(L,Ce,this.charstrings,pe,ce),this.seacs=this.getSeacs(ve.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const L=[".notdef"];for(const{glyphName:Q}of this.charstrings)L.push(Q);return L}getGlyphMapping(L){const Q=this.charstrings;if(L.composite){const me=Object.create(null);for(let Ee=0,ke=Q.length;Ee<ke;Ee++){const xe=L.cMap.charCodeOf(Ee);me[xe]=Ee+1}return me}const ce=[".notdef"];let de,se;for(se=0;se<Q.length;se++)ce.push(Q[se].glyphName);const oe=L.builtInEncoding;if(oe){de=Object.create(null);for(const me in oe)se=ce.indexOf(oe[me]),se>=0&&(de[me]=se)}return(0,U.type1FontGlyphMapping)(L,de,ce)}hasGlyphId(L){return L<0||L>=this.numGlyphs?!1:L===0?!0:this.charstrings[L-1].charstring.length>0}getSeacs(L){const Q=[];for(let ce=0,de=L.length;ce<de;ce++){const se=L[ce];se.seac&&(Q[ce+1]=se.seac)}return Q}getType2Charstrings(L){const Q=[];for(let ce=0,de=L.length;ce<de;ce++)Q.push(L[ce].charstring);return Q}getType2Subrs(L){let Q=0;const ce=L.length;ce<1133?Q=107:ce<33769?Q=1131:Q=32768;const de=[];let se;for(se=0;se<Q;se++)de.push([11]);for(se=0;se<ce;se++)de.push(L[se]);return de}wrap(L,Q,ce,de,se){const oe=new R.CFF;oe.header=new R.CFFHeader(1,0,4,4),oe.names=[L];const me=new R.CFFTopDict;me.setByName("version",391),me.setByName("Notice",392),me.setByName("FullName",393),me.setByName("FamilyName",394),me.setByName("Weight",395),me.setByName("Encoding",null),me.setByName("FontMatrix",se.fontMatrix),me.setByName("FontBBox",se.bbox),me.setByName("charset",null),me.setByName("CharStrings",null),me.setByName("Private",null),oe.topDict=me;const Ee=new R.CFFStrings;Ee.add("Version 0.11"),Ee.add("See original notice"),Ee.add(L),Ee.add(L),Ee.add("Medium"),oe.strings=Ee,oe.globalSubrIndex=new R.CFFIndex;const ke=Q.length,xe=[".notdef"];let fe,ve;for(fe=0;fe<ke;fe++){const Ae=ce[fe].glyphName;R.CFFStandardStrings.indexOf(Ae)===-1&&Ee.add(Ae),xe.push(Ae)}oe.charset=new R.CFFCharset(!1,0,xe);const ye=new R.CFFIndex;for(ye.add([139,14]),fe=0;fe<ke;fe++)ye.add(Q[fe]);oe.charStrings=ye;const Ce=new R.CFFPrivateDict;Ce.setByName("Subrs",null);const pe=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(fe=0,ve=pe.length;fe<ve;fe++){const Ae=pe[fe];if(!(Ae in se.privateData))continue;const Ne=se.privateData[Ae];if(Array.isArray(Ne))for(let Ze=Ne.length-1;Ze>0;Ze--)Ne[Ze]-=Ne[Ze-1];Ce.setByName(Ae,Ne)}oe.topDict.privateDict=Ce;const _e=new R.CFFIndex;for(fe=0,ve=de.length;fe<ve;fe++)_e.add(de[fe]);return Ce.subrsIndex=_e,new R.CFFCompiler(oe).compile()}}D.Type1Font=W},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Type1Parser=void 0;var R=B(162),U=B(131),K=B(135),z=B(2);const e=!1,ae={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class ie{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(se,oe,me){const Ee=se.length;let ke=!1,xe,fe,ve;for(let ye=0;ye<Ee;ye++){let Ce=se[ye];if(Ce<32){switch(Ce===12&&(Ce=(Ce<<8)+se[++ye]),Ce){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){ke=!0;break}const Ne=this.stack.pop();this.stack.push(0,Ne);break}ke=this.executeCommand(1,ae.vmoveto);break;case 5:ke=this.executeCommand(2,ae.rlineto);break;case 6:ke=this.executeCommand(1,ae.hlineto);break;case 7:ke=this.executeCommand(1,ae.vlineto);break;case 8:ke=this.executeCommand(6,ae.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){ke=!0;break}if(ve=this.stack.pop(),!oe[ve]){ke=!0;break}ke=this.convert(oe[ve],oe,me);break;case 11:return ke;case 13:if(this.stack.length<2){ke=!0;break}xe=this.stack.pop(),fe=this.stack.pop(),this.lsb=fe,this.width=xe,this.stack.push(xe,fe),ke=this.executeCommand(2,ae.hmoveto);break;case 14:this.output.push(ae.endchar[0]);break;case 21:if(this.flexing)break;ke=this.executeCommand(2,ae.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}ke=this.executeCommand(1,ae.hmoveto);break;case 30:ke=this.executeCommand(4,ae.vhcurveto);break;case 31:ke=this.executeCommand(4,ae.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:if(me){const Ne=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-Ne,ke=this.executeCommand(0,ae.endchar)}else ke=this.executeCommand(4,ae.endchar);break;case 3079:if(this.stack.length<4){ke=!0;break}this.stack.pop(),xe=this.stack.pop();const pe=this.stack.pop();fe=this.stack.pop(),this.lsb=fe,this.width=xe,this.stack.push(xe,fe,pe),ke=this.executeCommand(3,ae.rmoveto);break;case 3084:if(this.stack.length<2){ke=!0;break}const _e=this.stack.pop(),Ge=this.stack.pop();this.stack.push(Ge/_e);break;case 3088:if(this.stack.length<2){ke=!0;break}ve=this.stack.pop();const Ae=this.stack.pop();if(ve===0&&Ae===3){const Ne=this.stack.splice(this.stack.length-17,17);this.stack.push(Ne[2]+Ne[0],Ne[3]+Ne[1],Ne[4],Ne[5],Ne[6],Ne[7],Ne[8],Ne[9],Ne[10],Ne[11],Ne[12],Ne[13],Ne[14]),ke=this.executeCommand(13,ae.flex,!0),this.flexing=!1,this.stack.push(Ne[15],Ne[16])}else ve===1&&Ae===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,z.warn)('Unknown type 1 charstring command of "'+Ce+'"');break}if(ke)break;continue}else Ce<=246?Ce-=139:Ce<=250?Ce=(Ce-247)*256+se[++ye]+108:Ce<=254?Ce=-((Ce-251)*256)-se[++ye]-108:Ce=(se[++ye]&255)<<24|(se[++ye]&255)<<16|(se[++ye]&255)<<8|(se[++ye]&255)<<0;this.stack.push(Ce)}return ke}executeCommand(se,oe,me){const Ee=this.stack.length;if(se>Ee)return!0;const ke=Ee-se;for(let xe=ke;xe<Ee;xe++){let fe=this.stack[xe];Number.isInteger(fe)?this.output.push(28,fe>>8&255,fe&255):(fe=65536*fe|0,this.output.push(255,fe>>24&255,fe>>16&255,fe>>8&255,fe&255))}return this.output.push(...oe),me?this.stack.splice(ke,se):this.stack.length=0,!1}}const he=55665,J=4330;function W(de){return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102}function X(de,se,oe){if(oe>=de.length)return new Uint8Array(0);const me=52845,Ee=22719;let ke=se|0,xe,fe;for(xe=0;xe<oe;xe++)ke=(de[xe]+ke)*me+Ee&65535;const ve=de.length-oe,ye=new Uint8Array(ve);for(xe=oe,fe=0;fe<ve;xe++,fe++){const Ce=de[xe];ye[fe]=Ce^ke>>8,ke=(Ce+ke)*me+Ee&65535}return ye}function L(de,se,oe){let ke=se|0;const xe=de.length,fe=xe>>>1,ve=new Uint8Array(fe);let ye,Ce;for(ye=0,Ce=0;ye<xe;ye++){const pe=de[ye];if(!W(pe))continue;ye++;let _e;for(;ye<xe&&!W(_e=de[ye]);)ye++;if(ye<xe){const Ge=parseInt(String.fromCharCode(pe,_e),16);ve[Ce++]=Ge^ke>>8,ke=(Ge+ke)*52845+22719&65535}}return ve.slice(oe,Ce)}function Q(de){return de===47||de===91||de===93||de===123||de===125||de===40||de===41}class ce{constructor(se,oe,me){if(oe){const Ee=se.getBytes(),ke=!((W(Ee[0])||(0,U.isWhiteSpace)(Ee[0]))&&W(Ee[1])&&W(Ee[2])&&W(Ee[3])&&W(Ee[4])&&W(Ee[5])&&W(Ee[6])&&W(Ee[7]));se=new K.Stream(ke?X(Ee,he,4):L(Ee,he,4))}this.seacAnalysisEnabled=!!me,this.stream=se,this.nextChar()}readNumberArray(){this.getToken();const se=[];for(;;){const oe=this.getToken();if(oe===null||oe==="]"||oe==="}")break;se.push(parseFloat(oe||0))}return se}readNumber(){const se=this.getToken();return parseFloat(se||0)}readInt(){const se=this.getToken();return parseInt(se||0,10)|0}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let se=!1,oe=this.currentChar;for(;;){if(oe===-1)return null;if(se)(oe===10||oe===13)&&(se=!1);else if(oe===37)se=!0;else if(!(0,U.isWhiteSpace)(oe))break;oe=this.nextChar()}if(Q(oe))return this.nextChar(),String.fromCharCode(oe);let me="";do me+=String.fromCharCode(oe),oe=this.nextChar();while(oe>=0&&!(0,U.isWhiteSpace)(oe)&&!Q(oe));return me}readCharStrings(se,oe){return oe===-1?se:X(se,J,oe)}extractFontProgram(se){const oe=this.stream,me=[],Ee=[],ke=Object.create(null);ke.lenIV=4;const xe={subrs:[],charstrings:[],properties:{privateData:ke}};let fe,ve,ye,Ce;for(;(fe=this.getToken())!==null;)if(fe==="/")switch(fe=this.getToken(),fe){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();fe=this.getToken(),!(fe===null||fe==="end");){if(fe!=="/")continue;const _e=this.getToken();ve=this.readInt(),this.getToken(),ye=ve>0?oe.getBytes(ve):new Uint8Array(0),Ce=xe.properties.privateData.lenIV;const Ge=this.readCharStrings(ye,Ce);this.nextChar(),fe=this.getToken(),fe==="noaccess"?this.getToken():fe==="/"&&this.prevChar(),Ee.push({glyph:_e,encoded:Ge})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const _e=this.readInt();ve=this.readInt(),this.getToken(),ye=ve>0?oe.getBytes(ve):new Uint8Array(0),Ce=xe.properties.privateData.lenIV;const Ge=this.readCharStrings(ye,Ce);this.nextChar(),fe=this.getToken(),fe==="noaccess"&&this.getToken(),me[_e]=Ge}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const pe=this.readNumberArray();pe.length>0&&pe.length%2===0&&e&&(xe.properties.privateData[fe]=pe);break;case"StemSnapH":case"StemSnapV":xe.properties.privateData[fe]=this.readNumberArray();break;case"StdHW":case"StdVW":xe.properties.privateData[fe]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":xe.properties.privateData[fe]=this.readNumber();break;case"ForceBold":xe.properties.privateData[fe]=this.readBoolean();break}for(const{encoded:pe,glyph:_e}of Ee){const Ge=new ie,Ae=Ge.convert(pe,me,this.seacAnalysisEnabled);let Ne=Ge.output;Ae&&(Ne=[14]);const Ze={glyphName:_e,charstring:Ne,width:Ge.width,lsb:Ge.lsb,seac:Ge.seac};if(_e===".notdef"?xe.charstrings.unshift(Ze):xe.charstrings.push(Ze),se.builtInEncoding){const ze=se.builtInEncoding.indexOf(_e);ze>-1&&se.widths[ze]===void 0&&ze>=se.firstChar&&ze<=se.lastChar&&(se.widths[ze]=Ge.width)}}return xe}extractFontHeader(se){let oe;for(;(oe=this.getToken())!==null;)if(oe==="/")switch(oe=this.getToken(),oe){case"FontMatrix":const me=this.readNumberArray();se.fontMatrix=me;break;case"Encoding":const Ee=this.getToken();let ke;if(!/^\d+$/.test(Ee))ke=(0,R.getEncoding)(Ee);else{ke=[];const fe=parseInt(Ee,10)|0;this.getToken();for(let ve=0;ve<fe;ve++){for(oe=this.getToken();oe!=="dup"&&oe!=="def";)if(oe=this.getToken(),oe===null)return;if(oe==="def")break;const ye=this.readInt();this.getToken();const Ce=this.getToken();ke[ye]=Ce,this.getToken()}}se.builtInEncoding=ke;break;case"FontBBox":const xe=this.readNumberArray();se.ascent=Math.max(xe[3],xe[1]),se.descent=Math.min(xe[1],xe[3]),se.ascentScaled=!0;break}}}D.Type1Parser=ce},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Pattern=void 0,D.getTilingPatternIR=Q;var R=B(2),U=B(132),K=B(139),z=B(131);const e={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class ae{constructor(){(0,R.unreachable)("Cannot initialize Pattern.")}static parseShading(de,se,oe,me,Ee,ke){const xe=de instanceof U.BaseStream?de.dict:de,fe=xe.get("ShadingType");try{switch(fe){case e.AXIAL:case e.RADIAL:return new he(xe,se,oe,Ee,ke);case e.FREE_FORM_MESH:case e.LATTICE_FORM_MESH:case e.COONS_PATCH_MESH:case e.TENSOR_PATCH_MESH:return new X(de,se,oe,Ee,ke);default:throw new R.FormatError("Unsupported ShadingType: "+fe)}}catch(ve){if(ve instanceof z.MissingDataException)throw ve;return me.send("UnsupportedFeature",{featureId:R.UNSUPPORTED_FEATURES.shadingPattern}),(0,R.warn)(ve),new L}}}D.Pattern=ae;class ie{static get SMALL_NUMBER(){return(0,R.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===ie&&(0,R.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,R.unreachable)("Abstract method `getIR` called.")}}class he extends ie{constructor(de,se,oe,me,Ee){super(),this.coordsArr=de.getArray("Coords"),this.shadingType=de.get("ShadingType");const ke=K.ColorSpace.parse({cs:de.getRaw("CS")||de.getRaw("ColorSpace"),xref:se,resources:oe,pdfFunctionFactory:me,localColorSpaceCache:Ee}),xe=de.getArray("BBox");Array.isArray(xe)&&xe.length===4?this.bbox=R.Util.normalizeRect(xe):this.bbox=null;let fe=0,ve=1;if(de.has("Domain")){const Pe=de.getArray("Domain");fe=Pe[0],ve=Pe[1]}let ye=!1,Ce=!1;if(de.has("Extend")){const Pe=de.getArray("Extend");ye=Pe[0],Ce=Pe[1]}if(this.shadingType===e.RADIAL&&(!ye||!Ce)){const[Pe,we,Ie,Be,Ke,Ve]=this.coordsArr,je=Math.hypot(Pe-Be,we-Ke);Ie<=Ve+je&&Ve<=Ie+je&&(0,R.warn)("Unsupported radial gradient.")}this.extendStart=ye,this.extendEnd=Ce;const pe=de.getRaw("Function"),_e=me.createFromArray(pe),Ge=10,Ae=(ve-fe)/Ge,Ne=this.colorStops=[];if(fe>=ve||Ae<=0){(0,R.info)("Bad shading domain.");return}const Ze=new Float32Array(ke.numComps),ze=new Float32Array(1);let Te;for(let Pe=0;Pe<=Ge;Pe++){ze[0]=fe+Pe*Ae,_e(ze,0,Ze,0),Te=ke.getRgb(Ze,0);const we=R.Util.makeHexColor(Te[0],Te[1],Te[2]);Ne.push([Pe/Ge,we])}let Fe="transparent";de.has("Background")&&(Te=ke.getRgb(de.get("Background"),0),Fe=R.Util.makeHexColor(Te[0],Te[1],Te[2])),ye||(Ne.unshift([0,Fe]),Ne[1][0]+=ie.SMALL_NUMBER),Ce||(Ne.at(-1)[0]-=ie.SMALL_NUMBER,Ne.push([1,Fe])),this.colorStops=Ne}getIR(){const de=this.coordsArr,se=this.shadingType;let oe,me,Ee,ke,xe;return se===e.AXIAL?(me=[de[0],de[1]],Ee=[de[2],de[3]],ke=null,xe=null,oe="axial"):se===e.RADIAL?(me=[de[0],de[1]],Ee=[de[3],de[4]],ke=de[2],xe=de[5],oe="radial"):(0,R.unreachable)(`getPattern type unknown: ${se}`),["RadialAxial",oe,this.bbox,this.colorStops,me,Ee,ke,xe]}}class J{constructor(de,se){this.stream=de,this.context=se,this.buffer=0,this.bufferLength=0;const oe=se.numComps;this.tmpCompsBuf=new Float32Array(oe);const me=se.colorSpace.numComps;this.tmpCsCompsBuf=se.colorFn?new Float32Array(me):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const de=this.stream.getByte();return de<0?!1:(this.buffer=de,this.bufferLength=8,!0)}readBits(de){let se=this.buffer,oe=this.bufferLength;if(de===32){if(oe===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;se=se<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const me=this.stream.getByte();return this.buffer=me&(1<<oe)-1,(se<<8-oe|(me&255)>>oe)>>>0}if(de===8&&oe===0)return this.stream.getByte();for(;oe<de;)se=se<<8|this.stream.getByte(),oe+=8;return oe-=de,this.bufferLength=oe,this.buffer=se&(1<<oe)-1,se>>oe}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const de=this.context.bitsPerCoordinate,se=this.readBits(de),oe=this.readBits(de),me=this.context.decode,Ee=de<32?1/((1<<de)-1):23283064365386963e-26;return[se*Ee*(me[1]-me[0])+me[0],oe*Ee*(me[3]-me[2])+me[2]]}readComponents(){const de=this.context.numComps,se=this.context.bitsPerComponent,oe=se<32?1/((1<<se)-1):23283064365386963e-26,me=this.context.decode,Ee=this.tmpCompsBuf;for(let xe=0,fe=4;xe<de;xe++,fe+=2){const ve=this.readBits(se);Ee[xe]=ve*oe*(me[fe+1]-me[fe])+me[fe]}const ke=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(Ee,0,ke,0),this.context.colorSpace.getRgb(ke,0)}}const W=function(){function de(oe){const me=[];for(let Ee=0;Ee<=oe;Ee++){const ke=Ee/oe,xe=1-ke;me.push(new Float32Array([xe*xe*xe,3*ke*xe*xe,3*ke*ke*xe,ke*ke*ke]))}return me}const se=[];return function(oe){return se[oe]||(se[oe]=de(oe)),se[oe]}}();class X extends ie{static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,R.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,R.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}static get TRIANGLE_DENSITY(){return(0,R.shadow)(this,"TRIANGLE_DENSITY",20)}constructor(de,se,oe,me,Ee){if(super(),!(de instanceof U.BaseStream))throw new R.FormatError("Mesh data is not a stream");const ke=de.dict;this.shadingType=ke.get("ShadingType");const xe=ke.getArray("BBox");Array.isArray(xe)&&xe.length===4?this.bbox=R.Util.normalizeRect(xe):this.bbox=null;const fe=K.ColorSpace.parse({cs:ke.getRaw("CS")||ke.getRaw("ColorSpace"),xref:se,resources:oe,pdfFunctionFactory:me,localColorSpaceCache:Ee});this.background=ke.has("Background")?fe.getRgb(ke.get("Background"),0):null;const ve=ke.getRaw("Function"),ye=ve?me.createFromArray(ve):null;this.coords=[],this.colors=[],this.figures=[];const Ce={bitsPerCoordinate:ke.get("BitsPerCoordinate"),bitsPerComponent:ke.get("BitsPerComponent"),bitsPerFlag:ke.get("BitsPerFlag"),decode:ke.getArray("Decode"),colorFn:ye,colorSpace:fe,numComps:ye?1:fe.numComps},pe=new J(de,Ce);let _e=!1;switch(this.shadingType){case e.FREE_FORM_MESH:this._decodeType4Shading(pe);break;case e.LATTICE_FORM_MESH:const Ge=ke.get("VerticesPerRow")|0;if(Ge<2)throw new R.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(pe,Ge);break;case e.COONS_PATCH_MESH:this._decodeType6Shading(pe),_e=!0;break;case e.TENSOR_PATCH_MESH:this._decodeType7Shading(pe),_e=!0;break;default:(0,R.unreachable)("Unsupported mesh type.");break}if(_e){this._updateBounds();for(let Ge=0,Ae=this.figures.length;Ge<Ae;Ge++)this._buildFigureFromPatch(Ge)}this._updateBounds(),this._packData()}_decodeType4Shading(de){const se=this.coords,oe=this.colors,me=[];let Ee=0;for(;de.hasData;){const ke=de.readFlag(),xe=de.readCoordinate(),fe=de.readComponents();if(Ee===0){if(!(0<=ke&&ke<=2))throw new R.FormatError("Unknown type4 flag");switch(ke){case 0:Ee=3;break;case 1:me.push(me.at(-2),me.at(-1)),Ee=1;break;case 2:me.push(me.at(-3),me.at(-1)),Ee=1;break}}me.push(se.length),se.push(xe),oe.push(fe),Ee--,de.align()}this.figures.push({type:"triangles",coords:new Int32Array(me),colors:new Int32Array(me)})}_decodeType5Shading(de,se){const oe=this.coords,me=this.colors,Ee=[];for(;de.hasData;){const ke=de.readCoordinate(),xe=de.readComponents();Ee.push(oe.length),oe.push(ke),me.push(xe)}this.figures.push({type:"lattice",coords:new Int32Array(Ee),colors:new Int32Array(Ee),verticesPerRow:se})}_decodeType6Shading(de){const se=this.coords,oe=this.colors,me=new Int32Array(16),Ee=new Int32Array(4);for(;de.hasData;){const ke=de.readFlag();if(!(0<=ke&&ke<=3))throw new R.FormatError("Unknown type6 flag");const xe=se.length;for(let _e=0,Ge=ke!==0?8:12;_e<Ge;_e++)se.push(de.readCoordinate());const fe=oe.length;for(let _e=0,Ge=ke!==0?2:4;_e<Ge;_e++)oe.push(de.readComponents());let ve,ye,Ce,pe;switch(ke){case 0:me[12]=xe+3,me[13]=xe+4,me[14]=xe+5,me[15]=xe+6,me[8]=xe+2,me[11]=xe+7,me[4]=xe+1,me[7]=xe+8,me[0]=xe,me[1]=xe+11,me[2]=xe+10,me[3]=xe+9,Ee[2]=fe+1,Ee[3]=fe+2,Ee[0]=fe,Ee[1]=fe+3;break;case 1:ve=me[12],ye=me[13],Ce=me[14],pe=me[15],me[12]=pe,me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=Ce,me[11]=xe+3,me[4]=ye,me[7]=xe+4,me[0]=ve,me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,ve=Ee[2],ye=Ee[3],Ee[2]=ye,Ee[3]=fe,Ee[0]=ve,Ee[1]=fe+1;break;case 2:ve=me[15],ye=me[11],me[12]=me[3],me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=me[7],me[11]=xe+3,me[4]=ye,me[7]=xe+4,me[0]=ve,me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,ve=Ee[3],Ee[2]=Ee[1],Ee[3]=fe,Ee[0]=ve,Ee[1]=fe+1;break;case 3:me[12]=me[0],me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=me[1],me[11]=xe+3,me[4]=me[2],me[7]=xe+4,me[0]=me[3],me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,Ee[2]=Ee[0],Ee[3]=fe,Ee[0]=Ee[1],Ee[1]=fe+1;break}me[5]=se.length,se.push([(-4*se[me[0]][0]-se[me[15]][0]+6*(se[me[4]][0]+se[me[1]][0])-2*(se[me[12]][0]+se[me[3]][0])+3*(se[me[13]][0]+se[me[7]][0]))/9,(-4*se[me[0]][1]-se[me[15]][1]+6*(se[me[4]][1]+se[me[1]][1])-2*(se[me[12]][1]+se[me[3]][1])+3*(se[me[13]][1]+se[me[7]][1]))/9]),me[6]=se.length,se.push([(-4*se[me[3]][0]-se[me[12]][0]+6*(se[me[2]][0]+se[me[7]][0])-2*(se[me[0]][0]+se[me[15]][0])+3*(se[me[4]][0]+se[me[14]][0]))/9,(-4*se[me[3]][1]-se[me[12]][1]+6*(se[me[2]][1]+se[me[7]][1])-2*(se[me[0]][1]+se[me[15]][1])+3*(se[me[4]][1]+se[me[14]][1]))/9]),me[9]=se.length,se.push([(-4*se[me[12]][0]-se[me[3]][0]+6*(se[me[8]][0]+se[me[13]][0])-2*(se[me[0]][0]+se[me[15]][0])+3*(se[me[11]][0]+se[me[1]][0]))/9,(-4*se[me[12]][1]-se[me[3]][1]+6*(se[me[8]][1]+se[me[13]][1])-2*(se[me[0]][1]+se[me[15]][1])+3*(se[me[11]][1]+se[me[1]][1]))/9]),me[10]=se.length,se.push([(-4*se[me[15]][0]-se[me[0]][0]+6*(se[me[11]][0]+se[me[14]][0])-2*(se[me[12]][0]+se[me[3]][0])+3*(se[me[2]][0]+se[me[8]][0]))/9,(-4*se[me[15]][1]-se[me[0]][1]+6*(se[me[11]][1]+se[me[14]][1])-2*(se[me[12]][1]+se[me[3]][1])+3*(se[me[2]][1]+se[me[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(me),colors:new Int32Array(Ee)})}}_decodeType7Shading(de){const se=this.coords,oe=this.colors,me=new Int32Array(16),Ee=new Int32Array(4);for(;de.hasData;){const ke=de.readFlag();if(!(0<=ke&&ke<=3))throw new R.FormatError("Unknown type7 flag");const xe=se.length;for(let _e=0,Ge=ke!==0?12:16;_e<Ge;_e++)se.push(de.readCoordinate());const fe=oe.length;for(let _e=0,Ge=ke!==0?2:4;_e<Ge;_e++)oe.push(de.readComponents());let ve,ye,Ce,pe;switch(ke){case 0:me[12]=xe+3,me[13]=xe+4,me[14]=xe+5,me[15]=xe+6,me[8]=xe+2,me[9]=xe+13,me[10]=xe+14,me[11]=xe+7,me[4]=xe+1,me[5]=xe+12,me[6]=xe+15,me[7]=xe+8,me[0]=xe,me[1]=xe+11,me[2]=xe+10,me[3]=xe+9,Ee[2]=fe+1,Ee[3]=fe+2,Ee[0]=fe,Ee[1]=fe+3;break;case 1:ve=me[12],ye=me[13],Ce=me[14],pe=me[15],me[12]=pe,me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=Ce,me[9]=xe+9,me[10]=xe+10,me[11]=xe+3,me[4]=ye,me[5]=xe+8,me[6]=xe+11,me[7]=xe+4,me[0]=ve,me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,ve=Ee[2],ye=Ee[3],Ee[2]=ye,Ee[3]=fe,Ee[0]=ve,Ee[1]=fe+1;break;case 2:ve=me[15],ye=me[11],me[12]=me[3],me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=me[7],me[9]=xe+9,me[10]=xe+10,me[11]=xe+3,me[4]=ye,me[5]=xe+8,me[6]=xe+11,me[7]=xe+4,me[0]=ve,me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,ve=Ee[3],Ee[2]=Ee[1],Ee[3]=fe,Ee[0]=ve,Ee[1]=fe+1;break;case 3:me[12]=me[0],me[13]=xe+0,me[14]=xe+1,me[15]=xe+2,me[8]=me[1],me[9]=xe+9,me[10]=xe+10,me[11]=xe+3,me[4]=me[2],me[5]=xe+8,me[6]=xe+11,me[7]=xe+4,me[0]=me[3],me[1]=xe+7,me[2]=xe+6,me[3]=xe+5,Ee[2]=Ee[0],Ee[3]=fe,Ee[0]=Ee[1],Ee[1]=fe+1;break}this.figures.push({type:"patch",coords:new Int32Array(me),colors:new Int32Array(Ee)})}}_buildFigureFromPatch(de){const se=this.figures[de];(0,R.assert)(se.type==="patch","Unexpected patch mesh figure");const oe=this.coords,me=this.colors,Ee=se.coords,ke=se.colors,xe=Math.min(oe[Ee[0]][0],oe[Ee[3]][0],oe[Ee[12]][0],oe[Ee[15]][0]),fe=Math.min(oe[Ee[0]][1],oe[Ee[3]][1],oe[Ee[12]][1],oe[Ee[15]][1]),ve=Math.max(oe[Ee[0]][0],oe[Ee[3]][0],oe[Ee[12]][0],oe[Ee[15]][0]),ye=Math.max(oe[Ee[0]][1],oe[Ee[3]][1],oe[Ee[12]][1],oe[Ee[15]][1]);let Ce=Math.ceil((ve-xe)*X.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));Ce=Math.max(X.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(X.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,Ce));let pe=Math.ceil((ye-fe)*X.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));pe=Math.max(X.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(X.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,pe));const _e=Ce+1,Ge=new Int32Array((pe+1)*_e),Ae=new Int32Array((pe+1)*_e);let Ne=0;const Ze=new Uint8Array(3),ze=new Uint8Array(3),Te=me[ke[0]],Fe=me[ke[1]],Pe=me[ke[2]],we=me[ke[3]],Ie=W(pe),Be=W(Ce);for(let Ke=0;Ke<=pe;Ke++){Ze[0]=(Te[0]*(pe-Ke)+Pe[0]*Ke)/pe|0,Ze[1]=(Te[1]*(pe-Ke)+Pe[1]*Ke)/pe|0,Ze[2]=(Te[2]*(pe-Ke)+Pe[2]*Ke)/pe|0,ze[0]=(Fe[0]*(pe-Ke)+we[0]*Ke)/pe|0,ze[1]=(Fe[1]*(pe-Ke)+we[1]*Ke)/pe|0,ze[2]=(Fe[2]*(pe-Ke)+we[2]*Ke)/pe|0;for(let Ve=0;Ve<=Ce;Ve++,Ne++){if((Ke===0||Ke===pe)&&(Ve===0||Ve===Ce))continue;let je=0,Le=0,et=0;for(let Ue=0;Ue<=3;Ue++)for(let $e=0;$e<=3;$e++,et++){const Ye=Ie[Ke][Ue]*Be[Ve][$e];je+=oe[Ee[et]][0]*Ye,Le+=oe[Ee[et]][1]*Ye}Ge[Ne]=oe.length,oe.push([je,Le]),Ae[Ne]=me.length;const Qe=new Uint8Array(3);Qe[0]=(Ze[0]*(Ce-Ve)+ze[0]*Ve)/Ce|0,Qe[1]=(Ze[1]*(Ce-Ve)+ze[1]*Ve)/Ce|0,Qe[2]=(Ze[2]*(Ce-Ve)+ze[2]*Ve)/Ce|0,me.push(Qe)}}Ge[0]=Ee[0],Ae[0]=ke[0],Ge[Ce]=Ee[3],Ae[Ce]=ke[1],Ge[_e*pe]=Ee[12],Ae[_e*pe]=ke[2],Ge[_e*pe+Ce]=Ee[15],Ae[_e*pe+Ce]=ke[3],this.figures[de]={type:"lattice",coords:Ge,colors:Ae,verticesPerRow:_e}}_updateBounds(){let de=this.coords[0][0],se=this.coords[0][1],oe=de,me=se;for(let Ee=1,ke=this.coords.length;Ee<ke;Ee++){const xe=this.coords[Ee][0],fe=this.coords[Ee][1];de=de>xe?xe:de,se=se>fe?fe:se,oe=oe<xe?xe:oe,me=me<fe?fe:me}this.bounds=[de,se,oe,me]}_packData(){let de,se,oe,me;const Ee=this.coords,ke=new Float32Array(Ee.length*2);for(de=0,oe=0,se=Ee.length;de<se;de++){const ye=Ee[de];ke[oe++]=ye[0],ke[oe++]=ye[1]}this.coords=ke;const xe=this.colors,fe=new Uint8Array(xe.length*3);for(de=0,oe=0,se=xe.length;de<se;de++){const ye=xe[de];fe[oe++]=ye[0],fe[oe++]=ye[1],fe[oe++]=ye[2]}this.colors=fe;const ve=this.figures;for(de=0,se=ve.length;de<se;de++){const ye=ve[de],Ce=ye.coords,pe=ye.colors;for(oe=0,me=Ce.length;oe<me;oe++)Ce[oe]*=2,pe[oe]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class L extends ie{getIR(){return["Dummy"]}}function Q(ce,de,se){const oe=de.getArray("Matrix"),me=R.Util.normalizeRect(de.getArray("BBox")),Ee=de.get("XStep"),ke=de.get("YStep"),xe=de.get("PaintType"),fe=de.get("TilingType");if(me[2]-me[0]===0||me[3]-me[1]===0)throw new R.FormatError(`Invalid getTilingPatternIR /BBox array: [${me}].`);return["TilingPattern",se,ce,oe,me,Ee,ke,xe,fe]}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.getXfaFontDict=L,D.getXfaFontName=W;var R=B(177),U=B(130),K=B(178),z=B(179),e=B(180),ae=B(181),ie=B(131),he=B(163);const J=(0,ie.getLookupTableFactory)(function(Q){Q["MyriadPro-Regular"]=Q["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:e.MyriadProRegularFactors,baseWidths:z.LiberationSansRegularWidths,baseMapping:z.LiberationSansRegularMapping,metrics:e.MyriadProRegularMetrics},Q["MyriadPro-Bold"]=Q["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:e.MyriadProBoldFactors,baseWidths:z.LiberationSansBoldWidths,baseMapping:z.LiberationSansBoldMapping,metrics:e.MyriadProBoldMetrics},Q["MyriadPro-It"]=Q["MyriadPro-Italic"]=Q["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:e.MyriadProItalicFactors,baseWidths:z.LiberationSansItalicWidths,baseMapping:z.LiberationSansItalicMapping,metrics:e.MyriadProItalicMetrics},Q["MyriadPro-BoldIt"]=Q["MyriadPro-BoldItalic"]=Q["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:e.MyriadProBoldItalicFactors,baseWidths:z.LiberationSansBoldItalicWidths,baseMapping:z.LiberationSansBoldItalicMapping,metrics:e.MyriadProBoldItalicMetrics},Q.ArialMT=Q.Arial=Q["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:z.LiberationSansRegularWidths,baseMapping:z.LiberationSansRegularMapping},Q["Arial-BoldMT"]=Q["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:z.LiberationSansBoldWidths,baseMapping:z.LiberationSansBoldMapping},Q["Arial-ItalicMT"]=Q["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:z.LiberationSansItalicWidths,baseMapping:z.LiberationSansItalicMapping},Q["Arial-BoldItalicMT"]=Q["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:z.LiberationSansBoldItalicWidths,baseMapping:z.LiberationSansBoldItalicMapping},Q["Calibri-Regular"]={name:"LiberationSans-Regular",factors:R.CalibriRegularFactors,baseWidths:z.LiberationSansRegularWidths,baseMapping:z.LiberationSansRegularMapping,metrics:R.CalibriRegularMetrics},Q["Calibri-Bold"]={name:"LiberationSans-Bold",factors:R.CalibriBoldFactors,baseWidths:z.LiberationSansBoldWidths,baseMapping:z.LiberationSansBoldMapping,metrics:R.CalibriBoldMetrics},Q["Calibri-Italic"]={name:"LiberationSans-Italic",factors:R.CalibriItalicFactors,baseWidths:z.LiberationSansItalicWidths,baseMapping:z.LiberationSansItalicMapping,metrics:R.CalibriItalicMetrics},Q["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:R.CalibriBoldItalicFactors,baseWidths:z.LiberationSansBoldItalicWidths,baseMapping:z.LiberationSansBoldItalicMapping,metrics:R.CalibriBoldItalicMetrics},Q["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:ae.SegoeuiRegularFactors,baseWidths:z.LiberationSansRegularWidths,baseMapping:z.LiberationSansRegularMapping,metrics:ae.SegoeuiRegularMetrics},Q["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:ae.SegoeuiBoldFactors,baseWidths:z.LiberationSansBoldWidths,baseMapping:z.LiberationSansBoldMapping,metrics:ae.SegoeuiBoldMetrics},Q["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:ae.SegoeuiItalicFactors,baseWidths:z.LiberationSansItalicWidths,baseMapping:z.LiberationSansItalicMapping,metrics:ae.SegoeuiItalicMetrics},Q["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:ae.SegoeuiBoldItalicFactors,baseWidths:z.LiberationSansBoldItalicWidths,baseMapping:z.LiberationSansBoldItalicMapping,metrics:ae.SegoeuiBoldItalicMetrics},Q["Helvetica-Regular"]=Q.Helvetica={name:"LiberationSans-Regular",factors:K.HelveticaRegularFactors,baseWidths:z.LiberationSansRegularWidths,baseMapping:z.LiberationSansRegularMapping,metrics:K.HelveticaRegularMetrics},Q["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:K.HelveticaBoldFactors,baseWidths:z.LiberationSansBoldWidths,baseMapping:z.LiberationSansBoldMapping,metrics:K.HelveticaBoldMetrics},Q["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:K.HelveticaItalicFactors,baseWidths:z.LiberationSansItalicWidths,baseMapping:z.LiberationSansItalicMapping,metrics:K.HelveticaItalicMetrics},Q["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:K.HelveticaBoldItalicFactors,baseWidths:z.LiberationSansBoldItalicWidths,baseMapping:z.LiberationSansBoldItalicMapping,metrics:K.HelveticaBoldItalicMetrics}});function W(Q){const ce=(0,he.normalizeFontName)(Q);return J()[ce]}function X(Q){const ce=W(Q);if(!ce)return null;const{baseWidths:de,baseMapping:se,factors:oe}=ce;let me;oe?me=de.map((fe,ve)=>fe*oe[ve]):me=de;let Ee=-2,ke;const xe=[];for(const[fe,ve]of se.map((ye,Ce)=>[ye,Ce]).sort((ye,Ce)=>{let[pe]=ye,[_e]=Ce;return pe-_e}))fe!==-1&&(fe===Ee+1?(ke.push(me[ve]),Ee+=1):(Ee=fe,ke=[me[ve]],xe.push(fe,ke)));return xe}function L(Q){const ce=X(Q),de=new U.Dict(null);de.set("BaseFont",U.Name.get(Q)),de.set("Type",U.Name.get("Font")),de.set("Subtype",U.Name.get("CIDFontType2")),de.set("Encoding",U.Name.get("Identity-H")),de.set("CIDToGIDMap",U.Name.get("Identity")),de.set("W",ce),de.set("FirstChar",ce[0]),de.set("LastChar",ce.at(-2)+ce.at(-1).length-1);const se=new U.Dict(null);de.set("FontDescriptor",se);const oe=new U.Dict(null);return oe.set("Ordering","Identity"),oe.set("Registry","Adobe"),oe.set("Supplement",0),de.set("CIDSystemInfo",oe),de}},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CalibriRegularMetrics=D.CalibriRegularFactors=D.CalibriItalicMetrics=D.CalibriItalicFactors=D.CalibriBoldMetrics=D.CalibriBoldItalicMetrics=D.CalibriBoldItalicFactors=D.CalibriBoldFactors=void 0;const B=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.CalibriBoldFactors=B;const R={lineHeight:1.2207,lineGap:.2207};D.CalibriBoldMetrics=R;const U=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.CalibriBoldItalicFactors=U;const K={lineHeight:1.2207,lineGap:.2207};D.CalibriBoldItalicMetrics=K;const z=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.CalibriItalicFactors=z;const e={lineHeight:1.2207,lineGap:.2207};D.CalibriItalicMetrics=e;const ae=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];D.CalibriRegularFactors=ae;const ie={lineHeight:1.2207,lineGap:.2207};D.CalibriRegularMetrics=ie},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.HelveticaRegularMetrics=D.HelveticaRegularFactors=D.HelveticaItalicMetrics=D.HelveticaItalicFactors=D.HelveticaBoldMetrics=D.HelveticaBoldItalicMetrics=D.HelveticaBoldItalicFactors=D.HelveticaBoldFactors=void 0;const B=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];D.HelveticaBoldFactors=B;const R={lineHeight:1.2,lineGap:.2};D.HelveticaBoldMetrics=R;const U=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];D.HelveticaBoldItalicFactors=U;const K={lineHeight:1.35,lineGap:.2};D.HelveticaBoldItalicMetrics=K;const z=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];D.HelveticaItalicFactors=z;const e={lineHeight:1.35,lineGap:.2};D.HelveticaItalicMetrics=e;const ae=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.HelveticaRegularFactors=ae;const ie={lineHeight:1.2,lineGap:.2};D.HelveticaRegularMetrics=ie},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.LiberationSansRegularWidths=D.LiberationSansRegularMapping=D.LiberationSansItalicWidths=D.LiberationSansItalicMapping=D.LiberationSansBoldWidths=D.LiberationSansBoldMapping=D.LiberationSansBoldItalicWidths=D.LiberationSansBoldItalicMapping=void 0;const B=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];D.LiberationSansBoldWidths=B;const R=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];D.LiberationSansBoldMapping=R;const U=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];D.LiberationSansBoldItalicWidths=U;const K=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];D.LiberationSansBoldItalicMapping=K;const z=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];D.LiberationSansItalicWidths=z;const e=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];D.LiberationSansItalicMapping=e;const ae=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];D.LiberationSansRegularWidths=ae;const ie=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];D.LiberationSansRegularMapping=ie},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.MyriadProRegularMetrics=D.MyriadProRegularFactors=D.MyriadProItalicMetrics=D.MyriadProItalicFactors=D.MyriadProBoldMetrics=D.MyriadProBoldItalicMetrics=D.MyriadProBoldItalicFactors=D.MyriadProBoldFactors=void 0;const B=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.MyriadProBoldFactors=B;const R={lineHeight:1.2,lineGap:.2};D.MyriadProBoldMetrics=R;const U=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.MyriadProBoldItalicFactors=U;const K={lineHeight:1.2,lineGap:.2};D.MyriadProBoldItalicMetrics=K;const z=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.MyriadProItalicFactors=z;const e={lineHeight:1.2,lineGap:.2};D.MyriadProItalicMetrics=e;const ae=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.MyriadProRegularFactors=ae;const ie={lineHeight:1.2,lineGap:.2};D.MyriadProRegularMetrics=ie},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.SegoeuiRegularMetrics=D.SegoeuiRegularFactors=D.SegoeuiItalicMetrics=D.SegoeuiItalicFactors=D.SegoeuiBoldMetrics=D.SegoeuiBoldItalicMetrics=D.SegoeuiBoldItalicFactors=D.SegoeuiBoldFactors=void 0;const B=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.SegoeuiBoldFactors=B;const R={lineHeight:1.33008,lineGap:0};D.SegoeuiBoldMetrics=R;const U=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.SegoeuiBoldItalicFactors=U;const K={lineHeight:1.33008,lineGap:0};D.SegoeuiBoldItalicMetrics=K;const z=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];D.SegoeuiItalicFactors=z;const e={lineHeight:1.33008,lineGap:0};D.SegoeuiItalicMetrics=e;const ae=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];D.SegoeuiRegularFactors=ae;const ie={lineHeight:1.33008,lineGap:0};D.SegoeuiRegularMetrics=ie},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PostScriptEvaluator=D.PostScriptCompiler=D.PDFFunctionFactory=void 0,D.isPDFFunction=J;var R=B(130),U=B(2),K=B(183),z=B(132),e=B(184);class ae{constructor(pe){let{xref:_e,isEvalSupported:Ge=!0}=pe;this.xref=_e,this.isEvalSupported=Ge!==!1}create(pe){const _e=this.getCached(pe);if(_e)return _e;const Ge=he.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:pe instanceof R.Ref?this.xref.fetch(pe):pe});return this._cache(pe,Ge),Ge}createFromArray(pe){const _e=this.getCached(pe);if(_e)return _e;const Ge=he.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:pe instanceof R.Ref?this.xref.fetch(pe):pe});return this._cache(pe,Ge),Ge}getCached(pe){let _e;if(pe instanceof R.Ref?_e=pe:pe instanceof R.Dict?_e=pe.objId:pe instanceof z.BaseStream&&(_e=pe.dict&&pe.dict.objId),_e){const Ge=this._localFunctionCache.getByRef(_e);if(Ge)return Ge}return null}_cache(pe,_e){if(!_e)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let Ge;pe instanceof R.Ref?Ge=pe:pe instanceof R.Dict?Ge=pe.objId:pe instanceof z.BaseStream&&(Ge=pe.dict&&pe.dict.objId),Ge&&this._localFunctionCache.set(null,Ge,_e)}get _localFunctionCache(){return(0,U.shadow)(this,"_localFunctionCache",new e.LocalFunctionCache)}}D.PDFFunctionFactory=ae;function ie(Ce){if(!Array.isArray(Ce))return null;const pe=Ce.length;for(let _e=0;_e<pe;_e++)if(typeof Ce[_e]!="number"){const Ge=new Array(pe);for(let Ae=0;Ae<pe;Ae++)Ge[Ae]=+Ce[Ae];return Ge}return Ce}class he{static getSampleArray(pe,_e,Ge,Ae){let Ne,Ze,ze=1;for(Ne=0,Ze=pe.length;Ne<Ze;Ne++)ze*=pe[Ne];ze*=_e;const Te=new Array(ze);let Fe=0,Pe=0;const we=1/(2**Ge-1),Ie=Ae.getBytes((ze*Ge+7)/8);let Be=0;for(Ne=0;Ne<ze;Ne++){for(;Fe<Ge;)Pe<<=8,Pe|=Ie[Be++],Fe+=8;Fe-=Ge,Te[Ne]=(Pe>>Fe)*we,Pe&=(1<<Fe)-1}return Te}static parse(pe){let{xref:_e,isEvalSupported:Ge,fn:Ae}=pe;const Ne=Ae.dict||Ae;switch(Ne.get("FunctionType")){case 0:return this.constructSampled({xref:_e,isEvalSupported:Ge,fn:Ae,dict:Ne});case 1:break;case 2:return this.constructInterpolated({xref:_e,isEvalSupported:Ge,dict:Ne});case 3:return this.constructStiched({xref:_e,isEvalSupported:Ge,dict:Ne});case 4:return this.constructPostScript({xref:_e,isEvalSupported:Ge,fn:Ae,dict:Ne})}throw new U.FormatError("Unknown type of function")}static parseArray(pe){let{xref:_e,isEvalSupported:Ge,fnObj:Ae}=pe;if(!Array.isArray(Ae))return this.parse({xref:_e,isEvalSupported:Ge,fn:Ae});const Ne=[];for(let Ze=0,ze=Ae.length;Ze<ze;Ze++)Ne.push(this.parse({xref:_e,isEvalSupported:Ge,fn:_e.fetchIfRef(Ae[Ze])}));return function(Ze,ze,Te,Fe){for(let Pe=0,we=Ne.length;Pe<we;Pe++)Ne[Pe](Ze,ze,Te,Fe+Pe)}}static constructSampled(pe){let{xref:_e,isEvalSupported:Ge,fn:Ae,dict:Ne}=pe;function Ze(et){const Qe=et.length,Ue=[];let $e=0;for(let Ye=0;Ye<Qe;Ye+=2)Ue[$e++]=[et[Ye],et[Ye+1]];return Ue}function ze(et,Qe,Ue,$e,Ye){return $e+(et-Qe)*((Ye-$e)/(Ue-Qe))}let Te=ie(Ne.getArray("Domain")),Fe=ie(Ne.getArray("Range"));if(!Te||!Fe)throw new U.FormatError("No domain or range");const Pe=Te.length/2,we=Fe.length/2;Te=Ze(Te),Fe=Ze(Fe);const Ie=ie(Ne.getArray("Size")),Be=Ne.get("BitsPerSample"),Ke=Ne.get("Order")||1;Ke!==1&&(0,U.info)("No support for cubic spline interpolation: "+Ke);let Ve=ie(Ne.getArray("Encode"));if(Ve)Ve=Ze(Ve);else{Ve=[];for(let et=0;et<Pe;++et)Ve.push([0,Ie[et]-1])}let je=ie(Ne.getArray("Decode"));je?je=Ze(je):je=Fe;const Le=this.getSampleArray(Ie,we,Be,Ae);return function(Qe,Ue,$e,Ye){const tt=1<<Pe,ot=new Float64Array(tt),st=new Uint32Array(tt);let dt,ct;for(ct=0;ct<tt;ct++)ot[ct]=1;let mt=we,ut=1;for(dt=0;dt<Pe;++dt){const rt=Te[dt][0],He=Te[dt][1],Je=Math.min(Math.max(Qe[Ue+dt],rt),He);let St=ze(Je,rt,He,Ve[dt][0],Ve[dt][1]);const bt=Ie[dt];St=Math.min(Math.max(St,0),bt-1);const pt=St<bt-1?Math.floor(St):St-1,wt=pt+1-St,Pt=St-pt,Nt=pt*mt,Vt=Nt+mt;for(ct=0;ct<tt;ct++)ct&ut?(ot[ct]*=Pt,st[ct]+=Vt):(ot[ct]*=wt,st[ct]+=Nt);mt*=bt,ut<<=1}for(ct=0;ct<we;++ct){let rt=0;for(dt=0;dt<tt;dt++)rt+=Le[st[dt]+ct]*ot[dt];rt=ze(rt,0,1,je[ct][0],je[ct][1]),$e[Ye+ct]=Math.min(Math.max(rt,Fe[ct][0]),Fe[ct][1])}}}static constructInterpolated(pe){let{xref:_e,isEvalSupported:Ge,dict:Ae}=pe;const Ne=ie(Ae.getArray("C0"))||[0],Ze=ie(Ae.getArray("C1"))||[1],ze=Ae.get("N"),Te=[];for(let Pe=0,we=Ne.length;Pe<we;++Pe)Te.push(Ze[Pe]-Ne[Pe]);const Fe=Te.length;return function(we,Ie,Be,Ke){const Ve=ze===1?we[Ie]:we[Ie]**ze;for(let je=0;je<Fe;++je)Be[Ke+je]=Ne[je]+Ve*Te[je]}}static constructStiched(pe){let{xref:_e,isEvalSupported:Ge,dict:Ae}=pe;const Ne=ie(Ae.getArray("Domain"));if(!Ne)throw new U.FormatError("No domain");if(Ne.length/2!==1)throw new U.FormatError("Bad domain for stiched function");const ze=Ae.get("Functions"),Te=[];for(let Ie=0,Be=ze.length;Ie<Be;++Ie)Te.push(this.parse({xref:_e,isEvalSupported:Ge,fn:_e.fetchIfRef(ze[Ie])}));const Fe=ie(Ae.getArray("Bounds")),Pe=ie(Ae.getArray("Encode")),we=new Float32Array(1);return function(Be,Ke,Ve,je){const et=function(dt,ct,mt){return dt>mt?dt=mt:dt<ct&&(dt=ct),dt}(Be[Ke],Ne[0],Ne[1]),Qe=Fe.length;let Ue;for(Ue=0;Ue<Qe&&!(et<Fe[Ue]);++Ue);let $e=Ne[0];Ue>0&&($e=Fe[Ue-1]);let Ye=Ne[1];Ue<Fe.length&&(Ye=Fe[Ue]);const tt=Pe[2*Ue],ot=Pe[2*Ue+1];we[0]=$e===Ye?tt:tt+(et-$e)*(ot-tt)/(Ye-$e),Te[Ue](we,0,Ve,je)}}static constructPostScript(pe){let{xref:_e,isEvalSupported:Ge,fn:Ae,dict:Ne}=pe;const Ze=ie(Ne.getArray("Domain")),ze=ie(Ne.getArray("Range"));if(!Ze)throw new U.FormatError("No domain.");if(!ze)throw new U.FormatError("No range.");const Te=new K.PostScriptLexer(Ae),Pe=new K.PostScriptParser(Te).parse();if(Ge&&U.FeatureTest.isEvalSupported){const et=new ye().compile(Pe,Ze,ze);if(et)return new Function("src","srcOffset","dest","destOffset",et)}(0,U.info)("Unable to compile PS function");const we=ze.length>>1,Ie=Ze.length>>1,Be=new X(Pe),Ke=Object.create(null);let je=2048*4;const Le=new Float32Array(Ie);return function(Qe,Ue,$e,Ye){let tt,ot,st="";const dt=Le;for(tt=0;tt<Ie;tt++)ot=Qe[Ue+tt],dt[tt]=ot,st+=ot+"_";const ct=Ke[st];if(ct!==void 0){$e.set(ct,Ye);return}const mt=new Float32Array(we),ut=Be.execute(dt),rt=ut.length-we;for(tt=0;tt<we;tt++){ot=ut[rt+tt];let He=ze[tt*2];ot<He?ot=He:(He=ze[tt*2+1],ot>He&&(ot=He)),mt[tt]=ot}je>0&&(je--,Ke[st]=mt),$e.set(mt,Ye)}}}function J(Ce){let pe;if(typeof Ce!="object")return!1;if(Ce instanceof R.Dict)pe=Ce;else if(Ce instanceof z.BaseStream)pe=Ce.dict;else return!1;return pe.has("FunctionType")}class W{static get MAX_STACK_SIZE(){return(0,U.shadow)(this,"MAX_STACK_SIZE",100)}constructor(pe){this.stack=pe?Array.prototype.slice.call(pe,0):[]}push(pe){if(this.stack.length>=W.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(pe)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(pe){if(this.stack.length+pe>=W.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const _e=this.stack;for(let Ge=_e.length-pe,Ae=pe-1;Ae>=0;Ae--,Ge++)_e.push(_e[Ge])}index(pe){this.push(this.stack[this.stack.length-pe-1])}roll(pe,_e){const Ge=this.stack,Ae=Ge.length-pe,Ne=Ge.length-1,Ze=Ae+(_e-Math.floor(_e/pe)*pe);for(let ze=Ae,Te=Ne;ze<Te;ze++,Te--){const Fe=Ge[ze];Ge[ze]=Ge[Te],Ge[Te]=Fe}for(let ze=Ae,Te=Ze-1;ze<Te;ze++,Te--){const Fe=Ge[ze];Ge[ze]=Ge[Te],Ge[Te]=Fe}for(let ze=Ze,Te=Ne;ze<Te;ze++,Te--){const Fe=Ge[ze];Ge[ze]=Ge[Te],Ge[Te]=Fe}}}class X{constructor(pe){this.operators=pe}execute(pe){const _e=new W(pe);let Ge=0;const Ae=this.operators,Ne=Ae.length;let Ze,ze,Te;for(;Ge<Ne;){if(Ze=Ae[Ge++],typeof Ze=="number"){_e.push(Ze);continue}switch(Ze){case"jz":Te=_e.pop(),ze=_e.pop(),ze||(Ge=Te);break;case"j":ze=_e.pop(),Ge=ze;break;case"abs":ze=_e.pop(),_e.push(Math.abs(ze));break;case"add":Te=_e.pop(),ze=_e.pop(),_e.push(ze+Te);break;case"and":Te=_e.pop(),ze=_e.pop(),typeof ze=="boolean"&&typeof Te=="boolean"?_e.push(ze&&Te):_e.push(ze&Te);break;case"atan":ze=_e.pop(),_e.push(Math.atan(ze));break;case"bitshift":Te=_e.pop(),ze=_e.pop(),ze>0?_e.push(ze<<Te):_e.push(ze>>Te);break;case"ceiling":ze=_e.pop(),_e.push(Math.ceil(ze));break;case"copy":ze=_e.pop(),_e.copy(ze);break;case"cos":ze=_e.pop(),_e.push(Math.cos(ze));break;case"cvi":ze=_e.pop()|0,_e.push(ze);break;case"cvr":break;case"div":Te=_e.pop(),ze=_e.pop(),_e.push(ze/Te);break;case"dup":_e.copy(1);break;case"eq":Te=_e.pop(),ze=_e.pop(),_e.push(ze===Te);break;case"exch":_e.roll(2,1);break;case"exp":Te=_e.pop(),ze=_e.pop(),_e.push(ze**Te);break;case"false":_e.push(!1);break;case"floor":ze=_e.pop(),_e.push(Math.floor(ze));break;case"ge":Te=_e.pop(),ze=_e.pop(),_e.push(ze>=Te);break;case"gt":Te=_e.pop(),ze=_e.pop(),_e.push(ze>Te);break;case"idiv":Te=_e.pop(),ze=_e.pop(),_e.push(ze/Te|0);break;case"index":ze=_e.pop(),_e.index(ze);break;case"le":Te=_e.pop(),ze=_e.pop(),_e.push(ze<=Te);break;case"ln":ze=_e.pop(),_e.push(Math.log(ze));break;case"log":ze=_e.pop(),_e.push(Math.log(ze)/Math.LN10);break;case"lt":Te=_e.pop(),ze=_e.pop(),_e.push(ze<Te);break;case"mod":Te=_e.pop(),ze=_e.pop(),_e.push(ze%Te);break;case"mul":Te=_e.pop(),ze=_e.pop(),_e.push(ze*Te);break;case"ne":Te=_e.pop(),ze=_e.pop(),_e.push(ze!==Te);break;case"neg":ze=_e.pop(),_e.push(-ze);break;case"not":ze=_e.pop(),typeof ze=="boolean"?_e.push(!ze):_e.push(~ze);break;case"or":Te=_e.pop(),ze=_e.pop(),typeof ze=="boolean"&&typeof Te=="boolean"?_e.push(ze||Te):_e.push(ze|Te);break;case"pop":_e.pop();break;case"roll":Te=_e.pop(),ze=_e.pop(),_e.roll(ze,Te);break;case"round":ze=_e.pop(),_e.push(Math.round(ze));break;case"sin":ze=_e.pop(),_e.push(Math.sin(ze));break;case"sqrt":ze=_e.pop(),_e.push(Math.sqrt(ze));break;case"sub":Te=_e.pop(),ze=_e.pop(),_e.push(ze-Te);break;case"true":_e.push(!0);break;case"truncate":ze=_e.pop(),ze=ze<0?Math.ceil(ze):Math.floor(ze),_e.push(ze);break;case"xor":Te=_e.pop(),ze=_e.pop(),typeof ze=="boolean"&&typeof Te=="boolean"?_e.push(ze!==Te):_e.push(ze^Te);break;default:throw new U.FormatError(`Unknown operator ${Ze}`)}}return _e.stack}}D.PostScriptEvaluator=X;class L{constructor(pe){this.type=pe}visit(pe){(0,U.unreachable)("abstract method")}}class Q extends L{constructor(pe,_e,Ge){super("args"),this.index=pe,this.min=_e,this.max=Ge}visit(pe){pe.visitArgument(this)}}class ce extends L{constructor(pe){super("literal"),this.number=pe,this.min=pe,this.max=pe}visit(pe){pe.visitLiteral(this)}}class de extends L{constructor(pe,_e,Ge,Ae,Ne){super("binary"),this.op=pe,this.arg1=_e,this.arg2=Ge,this.min=Ae,this.max=Ne}visit(pe){pe.visitBinaryOperation(this)}}class se extends L{constructor(pe,_e){super("max"),this.arg=pe,this.min=pe.min,this.max=_e}visit(pe){pe.visitMin(this)}}class oe extends L{constructor(pe,_e,Ge){super("var"),this.index=pe,this.min=_e,this.max=Ge}visit(pe){pe.visitVariable(this)}}class me extends L{constructor(pe,_e){super("definition"),this.variable=pe,this.arg=_e}visit(pe){pe.visitVariableDefinition(this)}}class Ee{constructor(){this.parts=[]}visitArgument(pe){this.parts.push("Math.max(",pe.min,", Math.min(",pe.max,", src[srcOffset + ",pe.index,"]))")}visitVariable(pe){this.parts.push("v",pe.index)}visitLiteral(pe){this.parts.push(pe.number)}visitBinaryOperation(pe){this.parts.push("("),pe.arg1.visit(this),this.parts.push(" ",pe.op," "),pe.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(pe){this.parts.push("var "),pe.variable.visit(this),this.parts.push(" = "),pe.arg.visit(this),this.parts.push(";")}visitMin(pe){this.parts.push("Math.min("),pe.arg.visit(this),this.parts.push(", ",pe.max,")")}toString(){return this.parts.join("")}}function ke(Ce,pe){return pe.type==="literal"&&pe.number===0?Ce:Ce.type==="literal"&&Ce.number===0?pe:pe.type==="literal"&&Ce.type==="literal"?new ce(Ce.number+pe.number):new de("+",Ce,pe,Ce.min+pe.min,Ce.max+pe.max)}function xe(Ce,pe){if(pe.type==="literal"){if(pe.number===0)return new ce(0);if(pe.number===1)return Ce;if(Ce.type==="literal")return new ce(Ce.number*pe.number)}if(Ce.type==="literal"){if(Ce.number===0)return new ce(0);if(Ce.number===1)return pe}const _e=Math.min(Ce.min*pe.min,Ce.min*pe.max,Ce.max*pe.min,Ce.max*pe.max),Ge=Math.max(Ce.min*pe.min,Ce.min*pe.max,Ce.max*pe.min,Ce.max*pe.max);return new de("*",Ce,pe,_e,Ge)}function fe(Ce,pe){if(pe.type==="literal"){if(pe.number===0)return Ce;if(Ce.type==="literal")return new ce(Ce.number-pe.number)}return pe.type==="binary"&&pe.op==="-"&&Ce.type==="literal"&&Ce.number===1&&pe.arg1.type==="literal"&&pe.arg1.number===1?pe.arg2:new de("-",Ce,pe,Ce.min-pe.max,Ce.max-pe.min)}function ve(Ce,pe){return Ce.min>=pe?new ce(pe):Ce.max<=pe?Ce:new se(Ce,pe)}class ye{compile(pe,_e,Ge){const Ae=[],Ne=[],Ze=_e.length>>1,ze=Ge.length>>1;let Te=0,Fe,Pe,we,Ie,Be,Ke,Ve,je;for(let et=0;et<Ze;et++)Ae.push(new Q(et,_e[et*2],_e[et*2+1]));for(let et=0,Qe=pe.length;et<Qe;et++){if(je=pe[et],typeof je=="number"){Ae.push(new ce(je));continue}switch(je){case"add":if(Ae.length<2)return null;Ie=Ae.pop(),we=Ae.pop(),Ae.push(ke(we,Ie));break;case"cvr":if(Ae.length<1)return null;break;case"mul":if(Ae.length<2)return null;Ie=Ae.pop(),we=Ae.pop(),Ae.push(xe(we,Ie));break;case"sub":if(Ae.length<2)return null;Ie=Ae.pop(),we=Ae.pop(),Ae.push(fe(we,Ie));break;case"exch":if(Ae.length<2)return null;Be=Ae.pop(),Ke=Ae.pop(),Ae.push(Be,Ke);break;case"pop":if(Ae.length<1)return null;Ae.pop();break;case"index":if(Ae.length<1||(we=Ae.pop(),we.type!=="literal")||(Fe=we.number,Fe<0||!Number.isInteger(Fe)||Ae.length<Fe))return null;if(Be=Ae[Ae.length-Fe-1],Be.type==="literal"||Be.type==="var"){Ae.push(Be);break}Ve=new oe(Te++,Be.min,Be.max),Ae[Ae.length-Fe-1]=Ve,Ae.push(Ve),Ne.push(new me(Ve,Be));break;case"dup":if(Ae.length<1)return null;if(typeof pe[et+1]=="number"&&pe[et+2]==="gt"&&pe[et+3]===et+7&&pe[et+4]==="jz"&&pe[et+5]==="pop"&&pe[et+6]===pe[et+1]){we=Ae.pop(),Ae.push(ve(we,pe[et+1])),et+=6;break}if(Be=Ae.at(-1),Be.type==="literal"||Be.type==="var"){Ae.push(Be);break}Ve=new oe(Te++,Be.min,Be.max),Ae[Ae.length-1]=Ve,Ae.push(Ve),Ne.push(new me(Ve,Be));break;case"roll":if(Ae.length<2||(Ie=Ae.pop(),we=Ae.pop(),Ie.type!=="literal"||we.type!=="literal")||(Pe=Ie.number,Fe=we.number,Fe<=0||!Number.isInteger(Fe)||!Number.isInteger(Pe)||Ae.length<Fe))return null;if(Pe=(Pe%Fe+Fe)%Fe,Pe===0)break;Array.prototype.push.apply(Ae,Ae.splice(Ae.length-Fe,Fe-Pe));break;default:return null}}if(Ae.length!==ze)return null;const Le=[];for(const et of Ne){const Qe=new Ee;et.visit(Qe),Le.push(Qe.toString())}for(let et=0,Qe=Ae.length;et<Qe;et++){const Ue=Ae[et],$e=new Ee;Ue.visit($e);const Ye=Ge[et*2],tt=Ge[et*2+1],ot=[$e.toString()];Ye>Ue.min&&(ot.unshift("Math.max(",Ye,", "),ot.push(")")),tt<Ue.max&&(ot.unshift("Math.min(",tt,", "),ot.push(")")),ot.unshift("dest[destOffset + ",et,"] = "),ot.push(";"),Le.push(ot.join(""))}return Le.join(`
`)}}D.PostScriptCompiler=ye},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PostScriptParser=D.PostScriptLexer=void 0;var R=B(2),U=B(130),K=B(131);class z{constructor(J){this.lexer=J,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(J){return this.token.type===J?(this.nextToken(),!0):!1}expect(J){if(this.accept(J))return!0;throw new R.FormatError(`Unexpected symbol: found ${this.token.type} expected ${J}.`)}parse(){return this.nextToken(),this.expect(e.LBRACE),this.parseBlock(),this.expect(e.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(e.NUMBER))this.operators.push(this.prev.value);else if(this.accept(e.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(e.LBRACE))this.parseCondition();else return}parseCondition(){const J=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(e.RBRACE),this.accept(e.IF))this.operators[J]=this.operators.length,this.operators[J+1]="jz";else if(this.accept(e.LBRACE)){const W=this.operators.length;this.operators.push(null,null);const X=this.operators.length;this.parseBlock(),this.expect(e.RBRACE),this.expect(e.IFELSE),this.operators[W]=this.operators.length,this.operators[W+1]="j",this.operators[J]=X,this.operators[J+1]="jz"}else throw new R.FormatError("PS Function: error parsing conditional.")}}D.PostScriptParser=z;const e={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class ae{static get opCache(){return(0,R.shadow)(this,"opCache",Object.create(null))}constructor(J,W){this.type=J,this.value=W}static getOperator(J){const W=ae.opCache[J];return W||(ae.opCache[J]=new ae(e.OPERATOR,J))}static get LBRACE(){return(0,R.shadow)(this,"LBRACE",new ae(e.LBRACE,"{"))}static get RBRACE(){return(0,R.shadow)(this,"RBRACE",new ae(e.RBRACE,"}"))}static get IF(){return(0,R.shadow)(this,"IF",new ae(e.IF,"IF"))}static get IFELSE(){return(0,R.shadow)(this,"IFELSE",new ae(e.IFELSE,"IFELSE"))}}class ie{constructor(J){this.stream=J,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let J=!1,W=this.currentChar;for(;;){if(W<0)return U.EOF;if(J)(W===10||W===13)&&(J=!1);else if(W===37)J=!0;else if(!(0,K.isWhiteSpace)(W))break;W=this.nextChar()}switch(W|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new ae(e.NUMBER,this.getNumber());case 123:return this.nextChar(),ae.LBRACE;case 125:return this.nextChar(),ae.RBRACE}const X=this.strBuf;for(X.length=0,X[0]=String.fromCharCode(W);(W=this.nextChar())>=0&&(W>=65&&W<=90||W>=97&&W<=122);)X.push(String.fromCharCode(W));const L=X.join("");switch(L.toLowerCase()){case"if":return ae.IF;case"ifelse":return ae.IFELSE;default:return ae.getOperator(L)}}getNumber(){let J=this.currentChar;const W=this.strBuf;for(W.length=0,W[0]=String.fromCharCode(J);(J=this.nextChar())>=0&&(J>=48&&J<=57||J===45||J===46);)W.push(String.fromCharCode(J));const X=parseFloat(W.join(""));if(isNaN(X))throw new R.FormatError(`Invalid floating point number: ${X}`);return X}}D.PostScriptLexer=ie},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.LocalTilingPatternCache=D.LocalImageCache=D.LocalGStateCache=D.LocalFunctionCache=D.LocalColorSpaceCache=D.GlobalImageCache=void 0;var R=B(2),U=B(130);class K{constructor(X){this.constructor===K&&(0,R.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(X&&X.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new U.RefSetCache}getByName(X){this._onlyRefs&&(0,R.unreachable)("Should not call `getByName` method.");const L=this._nameRefMap.get(X);return L?this.getByRef(L):this._imageMap.get(X)||null}getByRef(X){return this._imageCache.get(X)||null}set(X,L,Q){(0,R.unreachable)("Abstract method `set` called.")}}class z extends K{set(X){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2?arguments[2]:void 0;if(typeof X!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(L){if(this._imageCache.has(L))return;this._nameRefMap.set(X,L),this._imageCache.put(L,Q);return}this._imageMap.has(X)||this._imageMap.set(X,Q)}}D.LocalImageCache=z;class e extends K{set(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2?arguments[2]:void 0;if(typeof X!="string"&&!L)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(L){if(this._imageCache.has(L))return;X!==null&&this._nameRefMap.set(X,L),this._imageCache.put(L,Q);return}this._imageMap.has(X)||this._imageMap.set(X,Q)}}D.LocalColorSpaceCache=e;class ae extends K{constructor(X){super({onlyRefs:!0})}set(){let X=arguments.length>1?arguments[1]:void 0,L=arguments.length>2?arguments[2]:void 0;if(!X)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(X)||this._imageCache.put(X,L)}}D.LocalFunctionCache=ae;class ie extends K{set(X){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2?arguments[2]:void 0;if(typeof X!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(L){if(this._imageCache.has(L))return;this._nameRefMap.set(X,L),this._imageCache.put(L,Q);return}this._imageMap.has(X)||this._imageMap.set(X,Q)}}D.LocalGStateCache=ie;class he extends K{constructor(X){super({onlyRefs:!0})}set(){let X=arguments.length>1?arguments[1]:void 0,L=arguments.length>2?arguments[2]:void 0;if(!X)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(X)||this._imageCache.put(X,L)}}D.LocalTilingPatternCache=he;class J{static get NUM_PAGES_THRESHOLD(){return(0,R.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,R.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,R.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new U.RefSetCache,this._imageCache=new U.RefSetCache}get _byteSize(){let X=0;for(const L of this._imageCache)X+=L.byteSize;return X}get _cacheLimitReached(){return!(this._imageCache.size<J.MIN_IMAGES_TO_CACHE||this._byteSize<J.MAX_BYTE_SIZE)}shouldCache(X,L){const Q=this._refCache.get(X);return!((Q?Q.size+(Q.has(L)?0:1):1)<J.NUM_PAGES_THRESHOLD||!this._imageCache.has(X)&&this._cacheLimitReached)}addPageIndex(X,L){let Q=this._refCache.get(X);Q||(Q=new Set,this._refCache.put(X,Q)),Q.add(L)}addByteSize(X,L){const Q=this._imageCache.get(X);Q&&(Q.byteSize||(Q.byteSize=L))}getData(X,L){const Q=this._refCache.get(X);if(!Q||Q.size<J.NUM_PAGES_THRESHOLD)return null;const ce=this._imageCache.get(X);return ce?(Q.add(L),ce):null}setData(X,L){if(!this._refCache.has(X))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');if(!this._imageCache.has(X)){if(this._cacheLimitReached){(0,R.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(X,L)}}clear(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||this._refCache.clear(),this._imageCache.clear()}}D.GlobalImageCache=J},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.bidi=L;var R=B(2);const U=["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","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","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","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],K=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","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","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","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function z(Q){return(Q&1)!==0}function e(Q){return(Q&1)===0}function ae(Q,ce,de){let se,oe;for(se=ce,oe=Q.length;se<oe;++se)if(Q[se]!==de)return se;return se}function ie(Q,ce,de,se){for(let oe=ce;oe<de;++oe)Q[oe]=se}function he(Q,ce,de){for(let se=ce,oe=de-1;se<oe;++se,--oe){const me=Q[se];Q[se]=Q[oe],Q[oe]=me}}function J(Q,ce){let de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,se="ltr";return de?se="ttb":ce||(se="rtl"),{str:Q,dir:se}}const W=[],X=[];function L(Q){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,se=!0;const oe=Q.length;if(oe===0||de)return J(Q,se,de);W.length=oe,X.length=oe;let me=0,Ee,ke;for(Ee=0;Ee<oe;++Ee){W[Ee]=Q.charAt(Ee);const Ne=Q.charCodeAt(Ee);let Ze="L";Ne<=255?Ze=U[Ne]:1424<=Ne&&Ne<=1524?Ze="R":1536<=Ne&&Ne<=1791?(Ze=K[Ne&255],Ze||(0,R.warn)("Bidi: invalid Unicode character "+Ne.toString(16))):1792<=Ne&&Ne<=2220&&(Ze="AL"),(Ze==="R"||Ze==="AL"||Ze==="AN")&&me++,X[Ee]=Ze}if(me===0)return se=!0,J(Q,se);ce===-1&&(me/oe<.3&&oe>4?(se=!0,ce=0):(se=!1,ce=1));const xe=[];for(Ee=0;Ee<oe;++Ee)xe[Ee]=ce;const fe=z(ce)?"R":"L",ve=fe,ye=ve;let Ce=ve;for(Ee=0;Ee<oe;++Ee)X[Ee]==="NSM"?X[Ee]=Ce:Ce=X[Ee];Ce=ve;let pe;for(Ee=0;Ee<oe;++Ee)pe=X[Ee],pe==="EN"?X[Ee]=Ce==="AL"?"AN":"EN":(pe==="R"||pe==="L"||pe==="AL")&&(Ce=pe);for(Ee=0;Ee<oe;++Ee)pe=X[Ee],pe==="AL"&&(X[Ee]="R");for(Ee=1;Ee<oe-1;++Ee)X[Ee]==="ES"&&X[Ee-1]==="EN"&&X[Ee+1]==="EN"&&(X[Ee]="EN"),X[Ee]==="CS"&&(X[Ee-1]==="EN"||X[Ee-1]==="AN")&&X[Ee+1]===X[Ee-1]&&(X[Ee]=X[Ee-1]);for(Ee=0;Ee<oe;++Ee)if(X[Ee]==="EN"){for(let Ne=Ee-1;Ne>=0&&X[Ne]==="ET";--Ne)X[Ne]="EN";for(let Ne=Ee+1;Ne<oe&&X[Ne]==="ET";++Ne)X[Ne]="EN"}for(Ee=0;Ee<oe;++Ee)pe=X[Ee],(pe==="WS"||pe==="ES"||pe==="ET"||pe==="CS")&&(X[Ee]="ON");for(Ce=ve,Ee=0;Ee<oe;++Ee)pe=X[Ee],pe==="EN"?X[Ee]=Ce==="L"?"L":"EN":(pe==="R"||pe==="L")&&(Ce=pe);for(Ee=0;Ee<oe;++Ee)if(X[Ee]==="ON"){const Ne=ae(X,Ee+1,"ON");let Ze=ve;Ee>0&&(Ze=X[Ee-1]);let ze=ye;Ne+1<oe&&(ze=X[Ne+1]),Ze!=="L"&&(Ze="R"),ze!=="L"&&(ze="R"),Ze===ze&&ie(X,Ee,Ne,Ze),Ee=Ne-1}for(Ee=0;Ee<oe;++Ee)X[Ee]==="ON"&&(X[Ee]=fe);for(Ee=0;Ee<oe;++Ee)pe=X[Ee],e(xe[Ee])?pe==="R"?xe[Ee]+=1:(pe==="AN"||pe==="EN")&&(xe[Ee]+=2):(pe==="L"||pe==="AN"||pe==="EN")&&(xe[Ee]+=1);let _e=-1,Ge=99,Ae;for(Ee=0,ke=xe.length;Ee<ke;++Ee)Ae=xe[Ee],_e<Ae&&(_e=Ae),Ge>Ae&&z(Ae)&&(Ge=Ae);for(Ae=_e;Ae>=Ge;--Ae){let Ne=-1;for(Ee=0,ke=xe.length;Ee<ke;++Ee)xe[Ee]<Ae?Ne>=0&&(he(W,Ne,Ee),Ne=-1):Ne<0&&(Ne=Ee);Ne>=0&&he(W,Ne,xe.length)}for(Ee=0,ke=W.length;Ee<ke;++Ee){const Ne=W[Ee];(Ne==="<"||Ne===">")&&(W[Ee]="")}return J(W.join(""),se)}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.MurmurHash3_64=void 0;var R=B(2);const U=3285377520,K=4294901760,z=65535;class e{constructor(ie){this.h1=ie?ie&4294967295:U,this.h2=ie?ie&4294967295:U}update(ie){let he,J;if(typeof ie=="string"){he=new Uint8Array(ie.length*2),J=0;for(let xe=0,fe=ie.length;xe<fe;xe++){const ve=ie.charCodeAt(xe);ve<=255?he[J++]=ve:(he[J++]=ve>>>8,he[J++]=ve&255)}}else if((0,R.isArrayBuffer)(ie))he=ie.slice(),J=he.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const W=J>>2,X=J-W*4,L=new Uint32Array(he.buffer,0,W);let Q=0,ce=0,de=this.h1,se=this.h2;const oe=3432918353,me=461845907,Ee=oe&z,ke=me&z;for(let xe=0;xe<W;xe++)xe&1?(Q=L[xe],Q=Q*oe&K|Q*Ee&z,Q=Q<<15|Q>>>17,Q=Q*me&K|Q*ke&z,de^=Q,de=de<<13|de>>>19,de=de*5+3864292196):(ce=L[xe],ce=ce*oe&K|ce*Ee&z,ce=ce<<15|ce>>>17,ce=ce*me&K|ce*ke&z,se^=ce,se=se<<13|se>>>19,se=se*5+3864292196);switch(Q=0,X){case 3:Q^=he[W*4+2]<<16;case 2:Q^=he[W*4+1]<<8;case 1:Q^=he[W*4],Q=Q*oe&K|Q*Ee&z,Q=Q<<15|Q>>>17,Q=Q*me&K|Q*ke&z,W&1?de^=Q:se^=Q}this.h1=de,this.h2=se}hexdigest(){let ie=this.h1,he=this.h2;ie^=he>>>1,ie=ie*3981806797&K|ie*36045&z,he=he*4283543511&K|((he<<16|ie>>>16)*2950163797&K)>>>16,ie^=he>>>1,ie=ie*444984403&K|ie*60499&z,he=he*3301882366&K|((he<<16|ie>>>16)*3120437893&K)>>>16,ie^=he>>>1;const J=(ie>>>0).toString(16),W=(he>>>0).toString(16);return J.padStart(8,"0")+W.padStart(8,"0")}}D.MurmurHash3_64=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.OperatorList=void 0;var R=B(2);function U(ie,he,J,W,X){let L=ie;for(let Q=0,ce=he.length-1;Q<ce;Q++){const de=he[Q];L=L[de]||(L[de]=[])}L[he.at(-1)]={checkFn:J,iterateFn:W,processFn:X}}const K=[];U(K,[R.OPS.save,R.OPS.transform,R.OPS.paintInlineImageXObject,R.OPS.restore],null,function(he,J){const W=he.fnArray,X=he.iCurr-3,L=(J-X)%4;switch(L){case 0:return W[J]===R.OPS.save;case 1:return W[J]===R.OPS.transform;case 2:return W[J]===R.OPS.paintInlineImageXObject;case 3:return W[J]===R.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${L}`)},function(he,J){const ce=he.fnArray,de=he.argsArray,se=he.iCurr,oe=se-3,me=se-2,Ee=se-1,ke=Math.min(Math.floor((J-oe)/4),200);if(ke<10)return J-(J-oe)%4;let xe=0;const fe=[];let ve=0,ye=1,Ce=1;for(let Ne=0;Ne<ke;Ne++){const Ze=de[me+(Ne<<2)],ze=de[Ee+(Ne<<2)][0];ye+ze.width>1e3&&(xe=Math.max(xe,ye),Ce+=ve+2,ye=0,ve=0),fe.push({transform:Ze,x:ye,y:Ce,w:ze.width,h:ze.height}),ye+=ze.width+2,ve=Math.max(ve,ze.height)}const pe=Math.max(xe,ye)+1,_e=Ce+ve+1,Ge=new Uint8Array(pe*_e*4),Ae=pe<<2;for(let Ne=0;Ne<ke;Ne++){const Ze=de[Ee+(Ne<<2)][0].data,ze=fe[Ne].w<<2;let Te=0,Fe=fe[Ne].x+fe[Ne].y*pe<<2;Ge.set(Ze.subarray(0,ze),Fe-Ae);for(let Pe=0,we=fe[Ne].h;Pe<we;Pe++)Ge.set(Ze.subarray(Te,Te+ze),Fe),Te+=ze,Fe+=Ae;for(Ge.set(Ze.subarray(Te-ze,Te),Fe);Fe>=0;)Ze[Fe-4]=Ze[Fe],Ze[Fe-3]=Ze[Fe+1],Ze[Fe-2]=Ze[Fe+2],Ze[Fe-1]=Ze[Fe+3],Ze[Fe+ze]=Ze[Fe+ze-4],Ze[Fe+ze+1]=Ze[Fe+ze-3],Ze[Fe+ze+2]=Ze[Fe+ze-2],Ze[Fe+ze+3]=Ze[Fe+ze-1],Fe-=Ae}return ce.splice(oe,ke*4,R.OPS.paintInlineImageXObjectGroup),de.splice(oe,ke*4,[{width:pe,height:_e,kind:R.ImageKind.RGBA_32BPP,data:Ge},fe]),oe+1}),U(K,[R.OPS.save,R.OPS.transform,R.OPS.paintImageMaskXObject,R.OPS.restore],null,function(he,J){const W=he.fnArray,X=he.iCurr-3,L=(J-X)%4;switch(L){case 0:return W[J]===R.OPS.save;case 1:return W[J]===R.OPS.transform;case 2:return W[J]===R.OPS.paintImageMaskXObject;case 3:return W[J]===R.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${L}`)},function(he,J){const Q=he.fnArray,ce=he.argsArray,de=he.iCurr,se=de-3,oe=de-2,me=de-1;let Ee=Math.floor((J-se)/4);if(Ee<10)return J-(J-se)%4;let ke=!1,xe,fe;const ve=ce[me][0],ye=ce[oe][0],Ce=ce[oe][1],pe=ce[oe][2],_e=ce[oe][3];if(Ce===pe){ke=!0,xe=oe+4;let Ge=me+4;for(let Ae=1;Ae<Ee;Ae++,xe+=4,Ge+=4)if(fe=ce[xe],ce[Ge][0]!==ve||fe[0]!==ye||fe[1]!==Ce||fe[2]!==pe||fe[3]!==_e){Ae<10?ke=!1:Ee=Ae;break}}if(ke){Ee=Math.min(Ee,1e3);const Ge=new Float32Array(Ee*2);xe=oe;for(let Ae=0;Ae<Ee;Ae++,xe+=4)fe=ce[xe],Ge[Ae<<1]=fe[4],Ge[(Ae<<1)+1]=fe[5];Q.splice(se,Ee*4,R.OPS.paintImageMaskXObjectRepeat),ce.splice(se,Ee*4,[ve,ye,Ce,pe,_e,Ge])}else{Ee=Math.min(Ee,100);const Ge=[];for(let Ae=0;Ae<Ee;Ae++){fe=ce[oe+(Ae<<2)];const Ne=ce[me+(Ae<<2)][0];Ge.push({data:Ne.data,width:Ne.width,height:Ne.height,interpolate:Ne.interpolate,count:Ne.count,transform:fe})}Q.splice(se,Ee*4,R.OPS.paintImageMaskXObjectGroup),ce.splice(se,Ee*4,[Ge])}return se+1}),U(K,[R.OPS.save,R.OPS.transform,R.OPS.paintImageXObject,R.OPS.restore],function(ie){const he=ie.argsArray,J=ie.iCurr-2;return he[J][1]===0&&he[J][2]===0},function(he,J){const W=he.fnArray,X=he.argsArray,L=he.iCurr-3,Q=(J-L)%4;switch(Q){case 0:return W[J]===R.OPS.save;case 1:if(W[J]!==R.OPS.transform)return!1;const ce=he.iCurr-2,de=X[ce][0],se=X[ce][3];return!(X[J][0]!==de||X[J][1]!==0||X[J][2]!==0||X[J][3]!==se);case 2:if(W[J]!==R.OPS.paintImageXObject)return!1;const oe=he.iCurr-1,me=X[oe][0];return X[J][0]===me;case 3:return W[J]===R.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${Q}`)},function(ie,he){const X=ie.fnArray,L=ie.argsArray,Q=ie.iCurr,ce=Q-3,de=Q-2,se=Q-1,oe=L[se][0],me=L[de][0],Ee=L[de][3],ke=Math.min(Math.floor((he-ce)/4),1e3);if(ke<3)return he-(he-ce)%4;const xe=new Float32Array(ke*2);let fe=de;for(let ye=0;ye<ke;ye++,fe+=4){const Ce=L[fe];xe[ye<<1]=Ce[4],xe[(ye<<1)+1]=Ce[5]}const ve=[oe,me,Ee,xe];return X.splice(ce,ke*4,R.OPS.paintImageXObjectRepeat),L.splice(ce,ke*4,ve),ce+1}),U(K,[R.OPS.beginText,R.OPS.setFont,R.OPS.setTextMatrix,R.OPS.showText,R.OPS.endText],null,function(he,J){const W=he.fnArray,X=he.argsArray,L=he.iCurr-4,Q=(J-L)%5;switch(Q){case 0:return W[J]===R.OPS.beginText;case 1:return W[J]===R.OPS.setFont;case 2:return W[J]===R.OPS.setTextMatrix;case 3:if(W[J]!==R.OPS.showText)return!1;const ce=he.iCurr-3,de=X[ce][0],se=X[ce][1];return!(X[J][0]!==de||X[J][1]!==se);case 4:return W[J]===R.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${Q}`)},function(ie,he){const X=ie.fnArray,L=ie.argsArray,Q=ie.iCurr,ce=Q-4,de=Q-3,se=Q-2,oe=Q-1,me=Q,Ee=L[de][0],ke=L[de][1];let xe=Math.min(Math.floor((he-ce)/5),1e3);if(xe<3)return he-(he-ce)%5;let fe=ce;ce>=4&&X[ce-4]===X[de]&&X[ce-3]===X[se]&&X[ce-2]===X[oe]&&X[ce-1]===X[me]&&L[ce-4][0]===Ee&&L[ce-4][1]===ke&&(xe++,fe-=5);let ve=fe+4;for(let ye=1;ye<xe;ye++)X.splice(ve,3),L.splice(ve,3),ve+=2;return ve+1});class z{constructor(he){this.queue=he}_optimize(){}push(he,J){this.queue.fnArray.push(he),this.queue.argsArray.push(J),this._optimize()}flush(){}reset(){}}class e extends z{constructor(he){super(he),this.state=null,this.context={iCurr:0,fnArray:he.fnArray,argsArray:he.argsArray},this.match=null,this.lastProcessed=0}_optimize(){const he=this.queue.fnArray;let J=this.lastProcessed,W=he.length,X=this.state,L=this.match;if(!X&&!L&&J+1===W&&!K[he[J]]){this.lastProcessed=W;return}const Q=this.context;for(;J<W;){if(L){if((0,L.iterateFn)(Q,J)){J++;continue}if(J=(0,L.processFn)(Q,J+1),W=he.length,L=null,X=null,J>=W)break}if(X=(X||K)[he[J]],!X||Array.isArray(X)){J++;continue}if(Q.iCurr=J,J++,X.checkFn&&!(0,X.checkFn)(Q)){X=null;continue}L=X,X=null}this.state=X,this.match=L,this.lastProcessed=J}flush(){for(;this.match;){const he=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,he),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class ae{static get CHUNK_SIZE(){return(0,R.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,R.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,J=arguments.length>1?arguments[1]:void 0;this._streamSink=J,this.fnArray=[],this.argsArray=[],J&&!(he&R.RenderingIntentFlag.OPLIST)?this.optimizer=new e(this):this.optimizer=new z(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=J?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(he,J){this.optimizer.push(he,J),this.weight++,this._streamSink&&(this.weight>=ae.CHUNK_SIZE?this.flush():this.weight>=ae.CHUNK_SIZE_ABOUT&&(he===R.OPS.restore||he===R.OPS.endText)&&this.flush())}addImageOps(he,J,W){W!==void 0&&this.addOp(R.OPS.beginMarkedContentProps,["OC",W]),this.addOp(he,J),W!==void 0&&this.addOp(R.OPS.endMarkedContent,[])}addDependency(he){this.dependencies.has(he)||(this.dependencies.add(he),this.addOp(R.OPS.dependency,[he]))}addDependencies(he){for(const J of he)this.addDependency(J)}addOpList(he){if(!(he instanceof ae)){(0,R.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const J of he.dependencies)this.dependencies.add(J);for(let J=0,W=he.length;J<W;J++)this.addOp(he.fnArray[J],he.argsArray[J])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const he=[],{fnArray:J,argsArray:W,length:X}=this;for(let L=0;L<X;L++)switch(J[L]){case R.OPS.paintInlineImageXObject:case R.OPS.paintInlineImageXObjectGroup:case R.OPS.paintImageMaskXObject:const Q=W[L][0];!Q.cached&&Q.data&&Q.data.buffer instanceof ArrayBuffer&&he.push(Q.data.buffer);break}return he}flush(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.optimizer.flush();const W=this.length;this._totalLength+=W,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:he,separateAnnots:J,length:W},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}D.OperatorList=ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFImage=void 0;var R=B(2),U=B(189),K=B(132),z=B(139),e=B(144),ae=B(152),ie=B(155),he=B(130);function J(L,Q,ce,de){return L=Q+L*ce,L<0?L=0:L>de&&(L=de),L}function W(L,Q,ce,de,se,oe){const me=se*oe;let Ee;Q<=8?Ee=new Uint8Array(me):Q<=16?Ee=new Uint16Array(me):Ee=new Uint32Array(me);const ke=ce/se,xe=de/oe;let fe,ve,ye,Ce=0,pe;const _e=new Uint16Array(se),Ge=ce;for(fe=0;fe<se;fe++)_e[fe]=Math.floor(fe*ke);for(fe=0;fe<oe;fe++)for(ye=Math.floor(fe*xe)*Ge,ve=0;ve<se;ve++)pe=ye+_e[ve],Ee[Ce++]=L[pe];return Ee}class X{constructor(Q){let{xref:ce,res:de,image:se,isInline:oe=!1,smask:me=null,mask:Ee=null,isMask:ke=!1,pdfFunctionFactory:xe,localColorSpaceCache:fe}=Q;this.image=se;const ve=se.dict,ye=ve.get("F","Filter");let Ce;if(ye instanceof he.Name)Ce=ye.name;else if(Array.isArray(ye)){const Ae=ce.fetchIfRef(ye[0]);Ae instanceof he.Name&&(Ce=Ae.name)}switch(Ce){case"JPXDecode":const Ae=new ie.JpxImage;Ae.parseImageProperties(se.stream),se.stream.reset(),se.width=Ae.width,se.height=Ae.height,se.bitsPerComponent=Ae.bitsPerComponent,se.numComps=Ae.componentsCount;break;case"JBIG2Decode":se.bitsPerComponent=1,se.numComps=1;break}let pe=ve.get("W","Width"),_e=ve.get("H","Height");if(Number.isInteger(se.width)&&se.width>0&&Number.isInteger(se.height)&&se.height>0&&(se.width!==pe||se.height!==_e)&&((0,R.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),pe=se.width,_e=se.height),pe<1||_e<1)throw new R.FormatError(`Invalid image width: ${pe} or height: ${_e}`);this.width=pe,this.height=_e,this.interpolate=ve.get("I","Interpolate"),this.imageMask=ve.get("IM","ImageMask")||!1,this.matte=ve.get("Matte")||!1;let Ge=se.bitsPerComponent;if(!Ge&&(Ge=ve.get("BPC","BitsPerComponent"),!Ge))if(this.imageMask)Ge=1;else throw new R.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=Ge,!this.imageMask){let Ae=ve.getRaw("CS")||ve.getRaw("ColorSpace");if(!Ae)switch((0,R.info)("JPX images (which do not require color spaces)"),se.numComps){case 1:Ae=he.Name.get("DeviceGray");break;case 3:Ae=he.Name.get("DeviceRGB");break;case 4:Ae=he.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${se.numComps} color components not supported.`)}this.colorSpace=z.ColorSpace.parse({cs:Ae,xref:ce,resources:oe?de:null,pdfFunctionFactory:xe,localColorSpaceCache:fe}),this.numComps=this.colorSpace.numComps}if(this.decode=ve.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,Ge)||ke&&!z.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const Ae=(1<<Ge)-1;this.decodeCoefficients=[],this.decodeAddends=[];const Ne=this.colorSpace&&this.colorSpace.name==="Indexed";for(let Ze=0,ze=0;Ze<this.decode.length;Ze+=2,++ze){const Te=this.decode[Ze],Fe=this.decode[Ze+1];this.decodeCoefficients[ze]=Ne?(Fe-Te)/Ae:Fe-Te,this.decodeAddends[ze]=Ne?Te:Ae*Te}}me?this.smask=new X({xref:ce,res:de,image:me,isInline:oe,pdfFunctionFactory:xe,localColorSpaceCache:fe}):Ee&&(Ee instanceof K.BaseStream?Ee.dict.get("IM","ImageMask")?this.mask=new X({xref:ce,res:de,image:Ee,isInline:oe,isMask:!0,pdfFunctionFactory:xe,localColorSpaceCache:fe}):(0,R.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=Ee)}static async buildImage(Q){let{xref:ce,res:de,image:se,isInline:oe=!1,pdfFunctionFactory:me,localColorSpaceCache:Ee}=Q;const ke=se;let xe=null,fe=null;const ve=se.dict.get("SMask"),ye=se.dict.get("Mask");return ve?ve instanceof K.BaseStream?xe=ve:(0,R.warn)("Unsupported /SMask format."):ye&&(ye instanceof K.BaseStream||Array.isArray(ye)?fe=ye:(0,R.warn)("Unsupported /Mask format.")),new X({xref:ce,res:de,image:ke,isInline:oe,smask:xe,mask:fe,pdfFunctionFactory:me,localColorSpaceCache:Ee})}static createRawMask(Q){let{imgArray:ce,width:de,height:se,imageIsFromDecodeStream:oe,inverseDecode:me,interpolate:Ee}=Q;const ke=(de+7>>3)*se,xe=ce.byteLength,fe=ke===xe;let ve,ye;if(oe&&(!me||fe)?ve=ce:me?(ve=new Uint8Array(ke),ve.set(ce),ve.fill(255,xe)):ve=new Uint8Array(ce),me)for(ye=0;ye<xe;ye++)ve[ye]^=255;return{data:ve,width:de,height:se,interpolate:Ee}}static createMask(Q){let{imgArray:ce,width:de,height:se,imageIsFromDecodeStream:oe,inverseDecode:me,interpolate:Ee}=Q;const ke=de===1&&se===1&&me===(ce.length===0||!!(ce[0]&128));if(ke)return{isSingleOpaquePixel:ke};if(R.FeatureTest.isOffscreenCanvasSupported){const xe=new OffscreenCanvas(de,se),fe=xe.getContext("2d"),ve=fe.createImageData(de,se);(0,U.applyMaskImageData)({src:ce,dest:ve.data,width:de,height:se,inverseDecode:me}),fe.putImageData(ve,0,0);const ye=xe.transferToImageBitmap();return{data:null,width:de,height:se,interpolate:Ee,bitmap:ye}}return this.createRawMask({imgArray:ce,width:de,height:se,inverseDecode:me,imageIsFromDecodeStream:oe,interpolate:Ee})}get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}decodeBuffer(Q){const ce=this.bpc,de=this.numComps,se=this.decodeAddends,oe=this.decodeCoefficients,me=(1<<ce)-1;let Ee,ke;if(ce===1){for(Ee=0,ke=Q.length;Ee<ke;Ee++)Q[Ee]=+!Q[Ee];return}let xe=0;for(Ee=0,ke=this.width*this.height;Ee<ke;Ee++)for(let fe=0;fe<de;fe++)Q[xe]=J(Q[xe],se[fe],oe[fe],me),xe++}getComponents(Q){const ce=this.bpc;if(ce===8)return Q;const de=this.width,se=this.height,oe=this.numComps,me=de*se*oe;let Ee=0,ke;ce<=8?ke=new Uint8Array(me):ce<=16?ke=new Uint16Array(me):ke=new Uint32Array(me);const xe=de*oe,fe=(1<<ce)-1;let ve=0,ye,Ce;if(ce===1){let pe,_e,Ge;for(let Ae=0;Ae<se;Ae++){for(_e=ve+(xe&-8),Ge=ve+xe;ve<_e;)Ce=Q[Ee++],ke[ve]=Ce>>7&1,ke[ve+1]=Ce>>6&1,ke[ve+2]=Ce>>5&1,ke[ve+3]=Ce>>4&1,ke[ve+4]=Ce>>3&1,ke[ve+5]=Ce>>2&1,ke[ve+6]=Ce>>1&1,ke[ve+7]=Ce&1,ve+=8;if(ve<Ge)for(Ce=Q[Ee++],pe=128;ve<Ge;)ke[ve++]=+!!(Ce&pe),pe>>=1}}else{let pe=0;for(Ce=0,ve=0,ye=me;ve<ye;++ve){for(ve%xe===0&&(Ce=0,pe=0);pe<ce;)Ce=Ce<<8|Q[Ee++],pe+=8;const _e=pe-ce;let Ge=Ce>>_e;Ge<0?Ge=0:Ge>fe&&(Ge=fe),ke[ve]=Ge,Ce&=(1<<_e)-1,pe=_e}}return ke}fillOpacity(Q,ce,de,se,oe){const me=this.smask,Ee=this.mask;let ke,xe,fe,ve,ye,Ce;if(me)xe=me.width,fe=me.height,ke=new Uint8ClampedArray(xe*fe),me.fillGrayBuffer(ke),(xe!==ce||fe!==de)&&(ke=W(ke,me.bpc,xe,fe,ce,de));else if(Ee)if(Ee instanceof X){for(xe=Ee.width,fe=Ee.height,ke=new Uint8ClampedArray(xe*fe),Ee.numComps=1,Ee.fillGrayBuffer(ke),ve=0,ye=xe*fe;ve<ye;++ve)ke[ve]=255-ke[ve];(xe!==ce||fe!==de)&&(ke=W(ke,Ee.bpc,xe,fe,ce,de))}else if(Array.isArray(Ee)){ke=new Uint8ClampedArray(ce*de);const pe=this.numComps;for(ve=0,ye=ce*de;ve<ye;++ve){let _e=0;const Ge=ve*pe;for(Ce=0;Ce<pe;++Ce){const Ae=oe[Ge+Ce],Ne=Ce*2;if(Ae<Ee[Ne]||Ae>Ee[Ne+1]){_e=255;break}}ke[ve]=_e}}else throw new R.FormatError("Unknown mask format.");if(ke)for(ve=0,Ce=3,ye=ce*se;ve<ye;++ve,Ce+=4)Q[Ce]=ke[ve];else for(ve=0,Ce=3,ye=ce*se;ve<ye;++ve,Ce+=4)Q[Ce]=255}undoPreblend(Q,ce,de){const se=this.smask&&this.smask.matte;if(!se)return;const oe=this.colorSpace.getRgb(se,0),me=oe[0],Ee=oe[1],ke=oe[2],xe=ce*de*4;for(let fe=0;fe<xe;fe+=4){const ve=Q[fe+3];if(ve===0){Q[fe]=255,Q[fe+1]=255,Q[fe+2]=255;continue}const ye=255/ve;Q[fe]=(Q[fe]-me)*ye+me,Q[fe+1]=(Q[fe+1]-Ee)*ye+Ee,Q[fe+2]=(Q[fe+2]-ke)*ye+ke}}createImageData(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ce=this.drawWidth,de=this.drawHeight,se={width:ce,height:de,interpolate:this.interpolate,kind:0,data:null},oe=this.numComps,me=this.width,Ee=this.height,ke=this.bpc,xe=me*oe*ke+7>>3;if(!Q){let _e;if(this.colorSpace.name==="DeviceGray"&&ke===1?_e=R.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&ke===8&&!this.needsDecode&&(_e=R.ImageKind.RGB_24BPP),_e&&!this.smask&&!this.mask&&ce===me&&de===Ee){if(se.kind=_e,se.data=this.getImageBytes(Ee*xe,{}),this.needsDecode){(0,R.assert)(_e===R.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const Ge=se.data;for(let Ae=0,Ne=Ge.length;Ae<Ne;Ae++)Ge[Ae]^=255}return se}if(this.image instanceof ae.JpegStream&&!this.smask&&!this.mask){let Ge=Ee*xe;switch(this.colorSpace.name){case"DeviceGray":Ge*=3;case"DeviceRGB":case"DeviceCMYK":return se.kind=R.ImageKind.RGB_24BPP,se.data=this.getImageBytes(Ge,{drawWidth:ce,drawHeight:de,forceRGB:!0}),se}}}const fe=this.getImageBytes(Ee*xe,{internal:!0}),ve=0|fe.length/xe*de/Ee,ye=this.getComponents(fe);let Ce,pe;return!Q&&!this.smask&&!this.mask?(se.kind=R.ImageKind.RGB_24BPP,se.data=new Uint8ClampedArray(ce*de*3),Ce=0,pe=!1):(se.kind=R.ImageKind.RGBA_32BPP,se.data=new Uint8ClampedArray(ce*de*4),Ce=1,pe=!0,this.fillOpacity(se.data,ce,de,ve,ye)),this.needsDecode&&this.decodeBuffer(ye),this.colorSpace.fillRgb(se.data,me,Ee,ce,de,ve,ke,ye,Ce),pe&&this.undoPreblend(se.data,ce,ve),se}fillGrayBuffer(Q){const ce=this.numComps;if(ce!==1)throw new R.FormatError(`Reading gray scale from a color image: ${ce}`);const de=this.width,se=this.height,oe=this.bpc,me=de*ce*oe+7>>3,Ee=this.getImageBytes(se*me,{internal:!0}),ke=this.getComponents(Ee);let xe,fe;if(oe===1){if(fe=de*se,this.needsDecode)for(xe=0;xe<fe;++xe)Q[xe]=ke[xe]-1&255;else for(xe=0;xe<fe;++xe)Q[xe]=-ke[xe]&255;return}this.needsDecode&&this.decodeBuffer(ke),fe=de*se;const ve=255/((1<<oe)-1);for(xe=0;xe<fe;++xe)Q[xe]=ve*ke[xe]}getImageBytes(Q,ce){let{drawWidth:de,drawHeight:se,forceRGB:oe=!1,internal:me=!1}=ce;this.image.reset(),this.image.drawWidth=de||this.width,this.image.drawHeight=se||this.height,this.image.forceRGB=!!oe;const Ee=this.image.getBytes(Q);return me||this.image instanceof e.DecodeStream?Ee:((0,R.assert)(Ee instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(Ee))}}D.PDFImage=X},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.applyMaskImageData=U;var R=B(2);function U(K){let{src:z,srcPos:e=0,dest:ae,destPos:ie=0,width:he,height:J,inverseDecode:W=!1}=K;const X=R.FeatureTest.isLittleEndian?4278190080:255,[L,Q]=W?[0,X]:[X,0],ce=he>>3,de=he&7,se=z.length;ae=new Uint32Array(ae.buffer);for(let oe=0;oe<J;oe++){for(const Ee=e+ce;e<Ee;e++){const ke=e<se?z[e]:255;ae[ie++]=ke&128?Q:L,ae[ie++]=ke&64?Q:L,ae[ie++]=ke&32?Q:L,ae[ie++]=ke&16?Q:L,ae[ie++]=ke&8?Q:L,ae[ie++]=ke&4?Q:L,ae[ie++]=ke&2?Q:L,ae[ie++]=ke&1?Q:L}if(de===0)continue;const me=e<se?z[e++]:255;for(let Ee=0;Ee<de;Ee++)ae[ie++]=me&1<<7-Ee?Q:L}return{srcPos:e,destPos:ie}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.incrementalUpdate=oe,D.writeDict=he,D.writeObject=ie;var R=B(2),U=B(130),K=B(131),z=B(191),e=B(132),ae=B(192);function ie(me,Ee,ke,xe){ke.push(`${me.num} ${me.gen} obj
`),Ee instanceof U.Dict?he(Ee,ke,xe):Ee instanceof e.BaseStream&&J(Ee,ke,xe),ke.push(`
endobj
`)}function he(me,Ee,ke){Ee.push("<<");for(const xe of me.getKeys())Ee.push(` /${(0,K.escapePDFName)(xe)} `),X(me.getRaw(xe),Ee,ke);Ee.push(">>")}function J(me,Ee,ke){he(me.dict,Ee,ke),Ee.push(` stream
`);let xe=me.getString();ke!==null&&(xe=ke.encryptString(xe)),Ee.push(xe,`
endstream
`)}function W(me,Ee,ke){Ee.push("[");let xe=!0;for(const fe of me)xe?xe=!1:Ee.push(" "),X(fe,Ee,ke);Ee.push("]")}function X(me,Ee,ke){me instanceof U.Name?Ee.push(`/${(0,K.escapePDFName)(me.name)}`):me instanceof U.Ref?Ee.push(`${me.num} ${me.gen} R`):Array.isArray(me)?W(me,Ee,ke):typeof me=="string"?(ke!==null&&(me=ke.encryptString(me)),Ee.push(`(${(0,R.escapeString)(me)})`)):typeof me=="number"?Ee.push((0,K.numberToString)(me)):typeof me=="boolean"?Ee.push(me.toString()):me instanceof U.Dict?he(me,Ee,ke):me instanceof e.BaseStream?J(me,Ee,ke):me===null?Ee.push("null"):(0,R.warn)(`Unhandled value in writer: ${typeof me}, please file a bug.`)}function L(me,Ee,ke,xe){for(let fe=Ee+ke-1;fe>ke-1;fe--)xe[fe]=me&255,me>>=8;return ke+Ee}function Q(me,Ee,ke){for(let xe=0,fe=me.length;xe<fe;xe++)ke[Ee+xe]=me.charCodeAt(xe)&255}function ce(me,Ee){const ke=Math.floor(Date.now()/1e3),xe=Ee.filename||"",fe=[ke.toString(),xe,me.toString()];let ve=fe.reduce((pe,_e)=>pe+_e.length,0);for(const pe of Object.values(Ee.info))fe.push(pe),ve+=pe.length;const ye=new Uint8Array(ve);let Ce=0;for(const pe of fe)Q(pe,Ce,ye),Ce+=pe.length;return(0,R.bytesToString)((0,ae.calculateMD5)(ye))}function de(me,Ee){const ke=new z.SimpleXMLParser({hasAttributes:!0}).parseFromString(me);for(const{xfa:fe}of Ee){if(!fe)continue;const{path:ve,value:ye}=fe;if(!ve)continue;const Ce=ke.documentElement.searchNode((0,K.parseXFAPath)(ve),0);Ce?Array.isArray(ye)?Ce.childNodes=ye.map(pe=>new z.SimpleDOMNode("value",pe)):Ce.childNodes=[new z.SimpleDOMNode("#text",ye)]:(0,R.warn)(`Node not found for path: ${ve}`)}const xe=[];return ke.documentElement.dump(xe),xe.join("")}function se(me){let{xfaData:Ee,xfaDatasetsRef:ke,hasXfaDatasetsEntry:xe,acroFormRef:fe,acroForm:ve,newRefs:ye,xref:Ce,xrefInfo:pe}=me;if(Ce===null)return;if(!xe){if(!fe){(0,R.warn)("XFA - Cannot save it");return}const Ae=ve.get("XFA"),Ne=Ae.slice();Ne.splice(2,0,"datasets"),Ne.splice(3,0,ke),ve.set("XFA",Ne);const Ze=Ce.encrypt;let ze=null;Ze&&(ze=Ze.createCipherTransform(fe.num,fe.gen));const Te=[`${fe.num} ${fe.gen} obj
`];he(ve,Te,ze),Te.push(`
`),ve.set("XFA",Ae),ye.push({ref:fe,data:Te.join("")})}if(Ee===null){const Ae=Ce.fetchIfRef(ke);Ee=de(Ae.getString(),ye)}const _e=Ce.encrypt;_e&&(Ee=_e.createCipherTransform(ke.num,ke.gen).encryptString(Ee));const Ge=`${ke.num} ${ke.gen} obj
<< /Type /EmbeddedFile /Length ${Ee.length}>>
stream
`+Ee+`
endstream
endobj
`;ye.push({ref:ke,data:Ge})}function oe(me){let{originalData:Ee,xrefInfo:ke,newRefs:xe,xref:fe=null,hasXfa:ve=!1,xfaDatasetsRef:ye=null,hasXfaDatasetsEntry:Ce=!1,acroFormRef:pe=null,acroForm:_e=null,xfaData:Ge=null}=me;ve&&se({xfaData:Ge,xfaDatasetsRef:ye,hasXfaDatasetsEntry:Ce,acroFormRef:pe,acroForm:_e,newRefs:xe,xref:fe,xrefInfo:ke});const Ae=new U.Dict(null),Ne=ke.newRef;let Ze,ze;const Te=Ee.at(-1);Te===10||Te===13?(Ze=[],ze=Ee.length):(Ze=[`
`],ze=Ee.length+1),Ae.set("Size",Ne.num+1),Ae.set("Prev",ke.startXRef),Ae.set("Type",U.Name.get("XRef")),ke.rootRef!==null&&Ae.set("Root",ke.rootRef),ke.infoRef!==null&&Ae.set("Info",ke.infoRef),ke.encryptRef!==null&&Ae.set("Encrypt",ke.encryptRef),xe.push({ref:Ne,data:""}),xe=xe.sort((Ue,$e)=>Ue.ref.num-$e.ref.num);const Fe=[[0,1,65535]],Pe=[0,1];let we=0;for(const{ref:Ue,data:$e}of xe)we=Math.max(we,ze),Fe.push([1,ze,Math.min(Ue.gen,65535)]),ze+=$e.length,Pe.push(Ue.num,1),Ze.push($e);if(Ae.set("Index",Pe),Array.isArray(ke.fileIds)&&ke.fileIds.length>0){const Ue=ce(ze,ke);Ae.set("ID",[ke.fileIds[0],Ue])}const Be=[1,Math.ceil(Math.log2(we)/8),2],Ve=(Be[0]+Be[1]+Be[2])*Fe.length;Ae.set("W",Be),Ae.set("Length",Ve),Ze.push(`${Ne.num} ${Ne.gen} obj
`),he(Ae,Ze,null),Ze.push(` stream
`);const je=Ze.reduce((Ue,$e)=>Ue+$e.length,0),Le=`
endstream
endobj
startxref
${ze}
%%EOF
`,et=new Uint8Array(Ee.length+je+Ve+Le.length);et.set(Ee);let Qe=Ee.length;for(const Ue of Ze)Q(Ue,Qe,et),Qe+=Ue.length;for(const[Ue,$e,Ye]of Fe)Qe=L(Ue,Be[0],Qe,et),Qe=L($e,Be[1],Qe,et),Qe=L(Ye,Be[2],Qe,et);return Q(Le,Qe,et),et}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XMLParserErrorCode=D.XMLParserBase=D.SimpleXMLParser=D.SimpleDOMNode=void 0;var R=B(131);const U={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};D.XMLParserErrorCode=U;function K(he,J){const W=he[J];return W===" "||W===`
`||W==="\r"||W===" "}function z(he){for(let J=0,W=he.length;J<W;J++)if(!K(he,J))return!1;return!0}class e{_resolveEntities(J){return J.replace(/&([^;]+);/g,(W,X)=>{if(X.substring(0,2)==="#x")return String.fromCodePoint(parseInt(X.substring(2),16));if(X.substring(0,1)==="#")return String.fromCodePoint(parseInt(X.substring(1),10));switch(X){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(X)})}_parseContent(J,W){const X=[];let L=W;function Q(){for(;L<J.length&&K(J,L);)++L}for(;L<J.length&&!K(J,L)&&J[L]!==">"&&J[L]!=="/";)++L;const ce=J.substring(W,L);for(Q();L<J.length&&J[L]!==">"&&J[L]!=="/"&&J[L]!=="?";){Q();let de="",se="";for(;L<J.length&&!K(J,L)&&J[L]!=="=";)de+=J[L],++L;if(Q(),J[L]!=="=")return null;++L,Q();const oe=J[L];if(oe!=='"'&&oe!=="'")return null;const me=J.indexOf(oe,++L);if(me<0)return null;se=J.substring(L,me),X.push({name:de,value:this._resolveEntities(se)}),L=me+1,Q()}return{name:ce,attributes:X,parsed:L-W}}_parseProcessingInstruction(J,W){let X=W;function L(){for(;X<J.length&&K(J,X);)++X}for(;X<J.length&&!K(J,X)&&J[X]!==">"&&J[X]!=="?"&&J[X]!=="/";)++X;const Q=J.substring(W,X);L();const ce=X;for(;X<J.length&&(J[X]!=="?"||J[X+1]!==">");)++X;const de=J.substring(ce,X);return{name:Q,value:de,parsed:X-W}}parseXml(J){let W=0;for(;W<J.length;){const X=J[W];let L=W;if(X==="<"){++L;const Q=J[L];let ce;switch(Q){case"/":if(++L,ce=J.indexOf(">",L),ce<0){this.onError(U.UnterminatedElement);return}this.onEndElement(J.substring(L,ce)),L=ce+1;break;case"?":++L;const de=this._parseProcessingInstruction(J,L);if(J.substring(L+de.parsed,L+de.parsed+2)!=="?>"){this.onError(U.UnterminatedXmlDeclaration);return}this.onPi(de.name,de.value),L+=de.parsed+2;break;case"!":if(J.substring(L+1,L+3)==="--"){if(ce=J.indexOf("-->",L+3),ce<0){this.onError(U.UnterminatedComment);return}this.onComment(J.substring(L+3,ce)),L=ce+3}else if(J.substring(L+1,L+8)==="[CDATA["){if(ce=J.indexOf("]]>",L+8),ce<0){this.onError(U.UnterminatedCdat);return}this.onCdata(J.substring(L+8,ce)),L=ce+3}else if(J.substring(L+1,L+8)==="DOCTYPE"){const me=J.indexOf("[",L+8);let Ee=!1;if(ce=J.indexOf(">",L+8),ce<0){this.onError(U.UnterminatedDoctypeDeclaration);return}if(me>0&&ce>me){if(ce=J.indexOf("]>",L+8),ce<0){this.onError(U.UnterminatedDoctypeDeclaration);return}Ee=!0}const ke=J.substring(L+8,ce+(Ee?1:0));this.onDoctype(ke),L=ce+(Ee?2:1)}else{this.onError(U.MalformedElement);return}break;default:const se=this._parseContent(J,L);if(se===null){this.onError(U.MalformedElement);return}let oe=!1;if(J.substring(L+se.parsed,L+se.parsed+2)==="/>")oe=!0;else if(J.substring(L+se.parsed,L+se.parsed+1)!==">"){this.onError(U.UnterminatedElement);return}this.onBeginElement(se.name,se.attributes,oe),L+=se.parsed+(oe?2:1);break}}else{for(;L<J.length&&J[L]!=="<";)L++;const Q=J.substring(W,L);this.onText(this._resolveEntities(Q))}W=L}}onResolveEntity(J){return`&${J};`}onPi(J,W){}onComment(J){}onCdata(J){}onDoctype(J){}onText(J){}onBeginElement(J,W,X){}onEndElement(J){}onError(J){}}D.XMLParserBase=e;class ae{constructor(J,W){this.nodeName=J,this.nodeValue=W,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const J=this.parentNode.childNodes;if(!J)return;const W=J.indexOf(this);if(W!==-1)return J[W+1]}get textContent(){return this.childNodes?this.childNodes.map(function(J){return J.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(J,W){if(W>=J.length)return this;const X=J[W],L=[];let Q=this;for(;;){if(X.name===Q.nodeName)if(X.pos===0){const ce=Q.searchNode(J,W+1);if(ce!==null)return ce}else{if(L.length===0)return null;{const[ce]=L.pop();let de=0;for(const se of ce.childNodes)if(X.name===se.nodeName){if(de===X.pos)return se.searchNode(J,W+1);de++}return Q.searchNode(J,W+1)}}if(Q.childNodes&&Q.childNodes.length!==0)L.push([Q,0]),Q=Q.childNodes[0];else{if(L.length===0)return null;for(;L.length!==0;){const[ce,de]=L.pop(),se=de+1;if(se<ce.childNodes.length){L.push([ce,se]),Q=ce.childNodes[se];break}}if(L.length===0)return null}}}dump(J){if(this.nodeName==="#text"){J.push((0,R.encodeToXmlString)(this.nodeValue));return}if(J.push(`<${this.nodeName}`),this.attributes)for(const W of this.attributes)J.push(` ${W.name}="${(0,R.encodeToXmlString)(W.value)}"`);if(this.hasChildNodes()){J.push(">");for(const W of this.childNodes)W.dump(J);J.push(`</${this.nodeName}>`)}else this.nodeValue?J.push(`>${(0,R.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):J.push("/>")}}D.SimpleDOMNode=ae;class ie extends e{constructor(J){let{hasAttributes:W=!1,lowerCaseName:X=!1}=J;super(),this._currentFragment=null,this._stack=null,this._errorCode=U.NoError,this._hasAttributes=W,this._lowerCaseName=X}parseFromString(J){if(this._currentFragment=[],this._stack=[],this._errorCode=U.NoError,this.parseXml(J),this._errorCode!==U.NoError)return;const[W]=this._currentFragment;if(W)return{documentElement:W}}onText(J){if(z(J))return;const W=new ae("#text",J);this._currentFragment.push(W)}onCdata(J){const W=new ae("#text",J);this._currentFragment.push(W)}onBeginElement(J,W,X){this._lowerCaseName&&(J=J.toLowerCase());const L=new ae(J);L.childNodes=[],this._hasAttributes&&(L.attributes=W),this._currentFragment.push(L),!X&&(this._stack.push(this._currentFragment),this._currentFragment=L.childNodes)}onEndElement(J){this._currentFragment=this._stack.pop()||[];const W=this._currentFragment.at(-1);if(!W)return null;for(let X=0,L=W.childNodes.length;X<L;X++)W.childNodes[X].parentNode=W;return W}onError(J){this._errorCode=J}}D.SimpleXMLParser=ie},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.calculateSHA256=D.calculateMD5=D.PDF20=D.PDF17=D.CipherTransformFactory=D.ARCFourCipher=D.AES256Cipher=D.AES128Cipher=void 0,D.calculateSHA384=J,D.calculateSHA512=void 0;var R=B(2),U=B(130),K=B(193);class z{constructor(Ee){this.a=0,this.b=0;const ke=new Uint8Array(256),xe=Ee.length;for(let fe=0;fe<256;++fe)ke[fe]=fe;for(let fe=0,ve=0;fe<256;++fe){const ye=ke[fe];ve=ve+ye+Ee[fe%xe]&255,ke[fe]=ke[ve],ke[ve]=ye}this.s=ke}encryptBlock(Ee){let ke=this.a,xe=this.b;const fe=this.s,ve=Ee.length,ye=new Uint8Array(ve);for(let Ce=0;Ce<ve;++Ce){ke=ke+1&255;const pe=fe[ke];xe=xe+pe&255;const _e=fe[xe];fe[ke]=_e,fe[xe]=pe,ye[Ce]=Ee[Ce]^fe[pe+_e&255]}return this.a=ke,this.b=xe,ye}decryptBlock(Ee){return this.encryptBlock(Ee)}encrypt(Ee){return this.encryptBlock(Ee)}}D.ARCFourCipher=z;const e=function(){const Ee=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),ke=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function xe(fe,ve,ye){let Ce=1732584193,pe=-271733879,_e=-1732584194,Ge=271733878;const Ae=ye+72&-64,Ne=new Uint8Array(Ae);let Ze,ze;for(Ze=0;Ze<ye;++Ze)Ne[Ze]=fe[ve++];Ne[Ze++]=128;const Te=Ae-8;for(;Ze<Te;)Ne[Ze++]=0;Ne[Ze++]=ye<<3&255,Ne[Ze++]=ye>>5&255,Ne[Ze++]=ye>>13&255,Ne[Ze++]=ye>>21&255,Ne[Ze++]=ye>>>29&255,Ne[Ze++]=0,Ne[Ze++]=0,Ne[Ze++]=0;const Fe=new Int32Array(16);for(Ze=0;Ze<Ae;){for(ze=0;ze<16;++ze,Ze+=4)Fe[ze]=Ne[Ze]|Ne[Ze+1]<<8|Ne[Ze+2]<<16|Ne[Ze+3]<<24;let Pe=Ce,we=pe,Ie=_e,Be=Ge,Ke,Ve;for(ze=0;ze<64;++ze){ze<16?(Ke=we&Ie|~we&Be,Ve=ze):ze<32?(Ke=Be&we|~Be&Ie,Ve=5*ze+1&15):ze<48?(Ke=we^Ie^Be,Ve=3*ze+5&15):(Ke=Ie^(we|~Be),Ve=7*ze&15);const je=Be,Le=Pe+Ke+ke[ze]+Fe[Ve]|0,et=Ee[ze];Be=Ie,Ie=we,we=we+(Le<<et|Le>>>32-et)|0,Pe=je}Ce=Ce+Pe|0,pe=pe+we|0,_e=_e+Ie|0,Ge=Ge+Be|0}return new Uint8Array([Ce&255,Ce>>8&255,Ce>>16&255,Ce>>>24&255,pe&255,pe>>8&255,pe>>16&255,pe>>>24&255,_e&255,_e>>8&255,_e>>16&255,_e>>>24&255,Ge&255,Ge>>8&255,Ge>>16&255,Ge>>>24&255])}return xe}();D.calculateMD5=e;class ae{constructor(Ee,ke){this.high=Ee|0,this.low=ke|0}and(Ee){this.high&=Ee.high,this.low&=Ee.low}xor(Ee){this.high^=Ee.high,this.low^=Ee.low}or(Ee){this.high|=Ee.high,this.low|=Ee.low}shiftRight(Ee){Ee>=32?(this.low=this.high>>>Ee-32|0,this.high=0):(this.low=this.low>>>Ee|this.high<<32-Ee,this.high=this.high>>>Ee|0)}shiftLeft(Ee){Ee>=32?(this.high=this.low<<Ee-32,this.low=0):(this.high=this.high<<Ee|this.low>>>32-Ee,this.low<<=Ee)}rotateRight(Ee){let ke,xe;Ee&32?(xe=this.low,ke=this.high):(ke=this.low,xe=this.high),Ee&=31,this.low=ke>>>Ee|xe<<32-Ee,this.high=xe>>>Ee|ke<<32-Ee}not(){this.high=~this.high,this.low=~this.low}add(Ee){const ke=(this.low>>>0)+(Ee.low>>>0);let xe=(this.high>>>0)+(Ee.high>>>0);ke>4294967295&&(xe+=1),this.low=ke|0,this.high=xe|0}copyTo(Ee,ke){Ee[ke]=this.high>>>24&255,Ee[ke+1]=this.high>>16&255,Ee[ke+2]=this.high>>8&255,Ee[ke+3]=this.high&255,Ee[ke+4]=this.low>>>24&255,Ee[ke+5]=this.low>>16&255,Ee[ke+6]=this.low>>8&255,Ee[ke+7]=this.low&255}assign(Ee){this.high=Ee.high,this.low=Ee.low}}const ie=function(){function Ee(Ge,Ae){return Ge>>>Ae|Ge<<32-Ae}function ke(Ge,Ae,Ne){return Ge&Ae^~Ge&Ne}function xe(Ge,Ae,Ne){return Ge&Ae^Ge&Ne^Ae&Ne}function fe(Ge){return Ee(Ge,2)^Ee(Ge,13)^Ee(Ge,22)}function ve(Ge){return Ee(Ge,6)^Ee(Ge,11)^Ee(Ge,25)}function ye(Ge){return Ee(Ge,7)^Ee(Ge,18)^Ge>>>3}function Ce(Ge){return Ee(Ge,17)^Ee(Ge,19)^Ge>>>10}const pe=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function _e(Ge,Ae,Ne){let Ze=1779033703,ze=3144134277,Te=1013904242,Fe=2773480762,Pe=1359893119,we=2600822924,Ie=528734635,Be=1541459225;const Ke=Math.ceil((Ne+9)/64)*64,Ve=new Uint8Array(Ke);let je,Le;for(je=0;je<Ne;++je)Ve[je]=Ge[Ae++];Ve[je++]=128;const et=Ke-8;for(;je<et;)Ve[je++]=0;Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=Ne>>>29&255,Ve[je++]=Ne>>21&255,Ve[je++]=Ne>>13&255,Ve[je++]=Ne>>5&255,Ve[je++]=Ne<<3&255;const Qe=new Uint32Array(64);for(je=0;je<Ke;){for(Le=0;Le<16;++Le)Qe[Le]=Ve[je]<<24|Ve[je+1]<<16|Ve[je+2]<<8|Ve[je+3],je+=4;for(Le=16;Le<64;++Le)Qe[Le]=Ce(Qe[Le-2])+Qe[Le-7]+ye(Qe[Le-15])+Qe[Le-16]|0;let Ue=Ze,$e=ze,Ye=Te,tt=Fe,ot=Pe,st=we,dt=Ie,ct=Be,mt,ut;for(Le=0;Le<64;++Le)mt=ct+ve(ot)+ke(ot,st,dt)+pe[Le]+Qe[Le],ut=fe(Ue)+xe(Ue,$e,Ye),ct=dt,dt=st,st=ot,ot=tt+mt|0,tt=Ye,Ye=$e,$e=Ue,Ue=mt+ut|0;Ze=Ze+Ue|0,ze=ze+$e|0,Te=Te+Ye|0,Fe=Fe+tt|0,Pe=Pe+ot|0,we=we+st|0,Ie=Ie+dt|0,Be=Be+ct|0}return new Uint8Array([Ze>>24&255,Ze>>16&255,Ze>>8&255,Ze&255,ze>>24&255,ze>>16&255,ze>>8&255,ze&255,Te>>24&255,Te>>16&255,Te>>8&255,Te&255,Fe>>24&255,Fe>>16&255,Fe>>8&255,Fe&255,Pe>>24&255,Pe>>16&255,Pe>>8&255,Pe&255,we>>24&255,we>>16&255,we>>8&255,we&255,Ie>>24&255,Ie>>16&255,Ie>>8&255,Ie&255,Be>>24&255,Be>>16&255,Be>>8&255,Be&255])}return _e}();D.calculateSHA256=ie;const he=function(){function Ee(_e,Ge,Ae,Ne,Ze){_e.assign(Ge),_e.and(Ae),Ze.assign(Ge),Ze.not(),Ze.and(Ne),_e.xor(Ze)}function ke(_e,Ge,Ae,Ne,Ze){_e.assign(Ge),_e.and(Ae),Ze.assign(Ge),Ze.and(Ne),_e.xor(Ze),Ze.assign(Ae),Ze.and(Ne),_e.xor(Ze)}function xe(_e,Ge,Ae){_e.assign(Ge),_e.rotateRight(28),Ae.assign(Ge),Ae.rotateRight(34),_e.xor(Ae),Ae.assign(Ge),Ae.rotateRight(39),_e.xor(Ae)}function fe(_e,Ge,Ae){_e.assign(Ge),_e.rotateRight(14),Ae.assign(Ge),Ae.rotateRight(18),_e.xor(Ae),Ae.assign(Ge),Ae.rotateRight(41),_e.xor(Ae)}function ve(_e,Ge,Ae){_e.assign(Ge),_e.rotateRight(1),Ae.assign(Ge),Ae.rotateRight(8),_e.xor(Ae),Ae.assign(Ge),Ae.shiftRight(7),_e.xor(Ae)}function ye(_e,Ge,Ae){_e.assign(Ge),_e.rotateRight(19),Ae.assign(Ge),Ae.rotateRight(61),_e.xor(Ae),Ae.assign(Ge),Ae.shiftRight(6),_e.xor(Ae)}const Ce=[new ae(1116352408,3609767458),new ae(1899447441,602891725),new ae(3049323471,3964484399),new ae(3921009573,2173295548),new ae(961987163,4081628472),new ae(1508970993,3053834265),new ae(2453635748,2937671579),new ae(2870763221,3664609560),new ae(3624381080,2734883394),new ae(310598401,1164996542),new ae(607225278,1323610764),new ae(1426881987,3590304994),new ae(1925078388,4068182383),new ae(2162078206,991336113),new ae(2614888103,633803317),new ae(3248222580,3479774868),new ae(3835390401,2666613458),new ae(4022224774,944711139),new ae(264347078,2341262773),new ae(604807628,2007800933),new ae(770255983,1495990901),new ae(1249150122,1856431235),new ae(1555081692,3175218132),new ae(1996064986,2198950837),new ae(2554220882,3999719339),new ae(2821834349,766784016),new ae(2952996808,2566594879),new ae(3210313671,3203337956),new ae(3336571891,1034457026),new ae(3584528711,2466948901),new ae(113926993,3758326383),new ae(338241895,168717936),new ae(666307205,1188179964),new ae(773529912,1546045734),new ae(1294757372,1522805485),new ae(1396182291,2643833823),new ae(1695183700,2343527390),new ae(1986661051,1014477480),new ae(2177026350,1206759142),new ae(2456956037,344077627),new ae(2730485921,1290863460),new ae(2820302411,3158454273),new ae(3259730800,3505952657),new ae(3345764771,106217008),new ae(3516065817,3606008344),new ae(3600352804,1432725776),new ae(4094571909,1467031594),new ae(275423344,851169720),new ae(430227734,3100823752),new ae(506948616,1363258195),new ae(659060556,3750685593),new ae(883997877,3785050280),new ae(958139571,3318307427),new ae(1322822218,3812723403),new ae(1537002063,2003034995),new ae(1747873779,3602036899),new ae(1955562222,1575990012),new ae(2024104815,1125592928),new ae(2227730452,2716904306),new ae(2361852424,442776044),new ae(2428436474,593698344),new ae(2756734187,3733110249),new ae(3204031479,2999351573),new ae(3329325298,3815920427),new ae(3391569614,3928383900),new ae(3515267271,566280711),new ae(3940187606,3454069534),new ae(4118630271,4000239992),new ae(116418474,1914138554),new ae(174292421,2731055270),new ae(289380356,3203993006),new ae(460393269,320620315),new ae(685471733,587496836),new ae(852142971,1086792851),new ae(1017036298,365543100),new ae(1126000580,2618297676),new ae(1288033470,3409855158),new ae(1501505948,4234509866),new ae(1607167915,987167468),new ae(1816402316,1246189591)];function pe(_e,Ge,Ae){let Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ze,ze,Te,Fe,Pe,we,Ie,Be;Ne?(Ze=new ae(3418070365,3238371032),ze=new ae(1654270250,914150663),Te=new ae(2438529370,812702999),Fe=new ae(355462360,4144912697),Pe=new ae(1731405415,4290775857),we=new ae(2394180231,1750603025),Ie=new ae(3675008525,1694076839),Be=new ae(1203062813,3204075428)):(Ze=new ae(1779033703,4089235720),ze=new ae(3144134277,2227873595),Te=new ae(1013904242,4271175723),Fe=new ae(2773480762,1595750129),Pe=new ae(1359893119,2917565137),we=new ae(2600822924,725511199),Ie=new ae(528734635,4215389547),Be=new ae(1541459225,327033209));const Ke=Math.ceil((Ae+17)/128)*128,Ve=new Uint8Array(Ke);let je,Le;for(je=0;je<Ae;++je)Ve[je]=_e[Ge++];Ve[je++]=128;const et=Ke-16;for(;je<et;)Ve[je++]=0;Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=0,Ve[je++]=Ae>>>29&255,Ve[je++]=Ae>>21&255,Ve[je++]=Ae>>13&255,Ve[je++]=Ae>>5&255,Ve[je++]=Ae<<3&255;const Qe=new Array(80);for(je=0;je<80;je++)Qe[je]=new ae(0,0);let Ue=new ae(0,0),$e=new ae(0,0),Ye=new ae(0,0),tt=new ae(0,0),ot=new ae(0,0),st=new ae(0,0),dt=new ae(0,0),ct=new ae(0,0);const mt=new ae(0,0),ut=new ae(0,0),rt=new ae(0,0),He=new ae(0,0);let Je;for(je=0;je<Ke;){for(Le=0;Le<16;++Le)Qe[Le].high=Ve[je]<<24|Ve[je+1]<<16|Ve[je+2]<<8|Ve[je+3],Qe[Le].low=Ve[je+4]<<24|Ve[je+5]<<16|Ve[je+6]<<8|Ve[je+7],je+=8;for(Le=16;Le<80;++Le)Je=Qe[Le],ye(Je,Qe[Le-2],He),Je.add(Qe[Le-7]),ve(rt,Qe[Le-15],He),Je.add(rt),Je.add(Qe[Le-16]);for(Ue.assign(Ze),$e.assign(ze),Ye.assign(Te),tt.assign(Fe),ot.assign(Pe),st.assign(we),dt.assign(Ie),ct.assign(Be),Le=0;Le<80;++Le)mt.assign(ct),fe(rt,ot,He),mt.add(rt),Ee(rt,ot,st,dt,He),mt.add(rt),mt.add(Ce[Le]),mt.add(Qe[Le]),xe(ut,Ue,He),ke(rt,Ue,$e,Ye,He),ut.add(rt),Je=ct,ct=dt,dt=st,st=ot,tt.add(mt),ot=tt,tt=Ye,Ye=$e,$e=Ue,Je.assign(mt),Je.add(ut),Ue=Je;Ze.add(Ue),ze.add($e),Te.add(Ye),Fe.add(tt),Pe.add(ot),we.add(st),Ie.add(dt),Be.add(ct)}let St;return Ne?(St=new Uint8Array(48),Ze.copyTo(St,0),ze.copyTo(St,8),Te.copyTo(St,16),Fe.copyTo(St,24),Pe.copyTo(St,32),we.copyTo(St,40)):(St=new Uint8Array(64),Ze.copyTo(St,0),ze.copyTo(St,8),Te.copyTo(St,16),Fe.copyTo(St,24),Pe.copyTo(St,32),we.copyTo(St,40),Ie.copyTo(St,48),Be.copyTo(St,56)),St}return pe}();D.calculateSHA512=he;function J(me,Ee,ke){return he(me,Ee,ke,!0)}class W{decryptBlock(Ee){return Ee}encrypt(Ee){return Ee}}class X{constructor(){this.constructor===X&&(0,R.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let Ee=0;Ee<256;Ee++)Ee<128?this._mixCol[Ee]=Ee<<1:this._mixCol[Ee]=Ee<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(Ee){(0,R.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(Ee,ke){let xe,fe,ve;const ye=new Uint8Array(16);ye.set(Ee);for(let Ce=0,pe=this._keySize;Ce<16;++Ce,++pe)ye[Ce]^=ke[pe];for(let Ce=this._cyclesOfRepetition-1;Ce>=1;--Ce){xe=ye[13],ye[13]=ye[9],ye[9]=ye[5],ye[5]=ye[1],ye[1]=xe,xe=ye[14],fe=ye[10],ye[14]=ye[6],ye[10]=ye[2],ye[6]=xe,ye[2]=fe,xe=ye[15],fe=ye[11],ve=ye[7],ye[15]=ye[3],ye[11]=xe,ye[7]=fe,ye[3]=ve;for(let pe=0;pe<16;++pe)ye[pe]=this._inv_s[ye[pe]];for(let pe=0,_e=Ce*16;pe<16;++pe,++_e)ye[pe]^=ke[_e];for(let pe=0;pe<16;pe+=4){const _e=this._mix[ye[pe]],Ge=this._mix[ye[pe+1]],Ae=this._mix[ye[pe+2]],Ne=this._mix[ye[pe+3]];xe=_e^Ge>>>8^Ge<<24^Ae>>>16^Ae<<16^Ne>>>24^Ne<<8,ye[pe]=xe>>>24&255,ye[pe+1]=xe>>16&255,ye[pe+2]=xe>>8&255,ye[pe+3]=xe&255}}xe=ye[13],ye[13]=ye[9],ye[9]=ye[5],ye[5]=ye[1],ye[1]=xe,xe=ye[14],fe=ye[10],ye[14]=ye[6],ye[10]=ye[2],ye[6]=xe,ye[2]=fe,xe=ye[15],fe=ye[11],ve=ye[7],ye[15]=ye[3],ye[11]=xe,ye[7]=fe,ye[3]=ve;for(let Ce=0;Ce<16;++Ce)ye[Ce]=this._inv_s[ye[Ce]],ye[Ce]^=ke[Ce];return ye}_encrypt(Ee,ke){const xe=this._s;let fe,ve,ye;const Ce=new Uint8Array(16);Ce.set(Ee);for(let pe=0;pe<16;++pe)Ce[pe]^=ke[pe];for(let pe=1;pe<this._cyclesOfRepetition;pe++){for(let _e=0;_e<16;++_e)Ce[_e]=xe[Ce[_e]];ye=Ce[1],Ce[1]=Ce[5],Ce[5]=Ce[9],Ce[9]=Ce[13],Ce[13]=ye,ye=Ce[2],ve=Ce[6],Ce[2]=Ce[10],Ce[6]=Ce[14],Ce[10]=ye,Ce[14]=ve,ye=Ce[3],ve=Ce[7],fe=Ce[11],Ce[3]=Ce[15],Ce[7]=ye,Ce[11]=ve,Ce[15]=fe;for(let _e=0;_e<16;_e+=4){const Ge=Ce[_e+0],Ae=Ce[_e+1],Ne=Ce[_e+2],Ze=Ce[_e+3];fe=Ge^Ae^Ne^Ze,Ce[_e+0]^=fe^this._mixCol[Ge^Ae],Ce[_e+1]^=fe^this._mixCol[Ae^Ne],Ce[_e+2]^=fe^this._mixCol[Ne^Ze],Ce[_e+3]^=fe^this._mixCol[Ze^Ge]}for(let _e=0,Ge=pe*16;_e<16;++_e,++Ge)Ce[_e]^=ke[Ge]}for(let pe=0;pe<16;++pe)Ce[pe]=xe[Ce[pe]];ye=Ce[1],Ce[1]=Ce[5],Ce[5]=Ce[9],Ce[9]=Ce[13],Ce[13]=ye,ye=Ce[2],ve=Ce[6],Ce[2]=Ce[10],Ce[6]=Ce[14],Ce[10]=ye,Ce[14]=ve,ye=Ce[3],ve=Ce[7],fe=Ce[11],Ce[3]=Ce[15],Ce[7]=ye,Ce[11]=ve,Ce[15]=fe;for(let pe=0,_e=this._keySize;pe<16;++pe,++_e)Ce[pe]^=ke[_e];return Ce}_decryptBlock2(Ee,ke){const xe=Ee.length;let fe=this.buffer,ve=this.bufferPosition;const ye=[];let Ce=this.iv;for(let Ge=0;Ge<xe;++Ge){if(fe[ve]=Ee[Ge],++ve,ve<16)continue;const Ae=this._decrypt(fe,this._key);for(let Ne=0;Ne<16;++Ne)Ae[Ne]^=Ce[Ne];Ce=fe,ye.push(Ae),fe=new Uint8Array(16),ve=0}if(this.buffer=fe,this.bufferLength=ve,this.iv=Ce,ye.length===0)return new Uint8Array(0);let pe=16*ye.length;if(ke){const Ge=ye.at(-1);let Ae=Ge[15];if(Ae<=16){for(let Ne=15,Ze=16-Ae;Ne>=Ze;--Ne)if(Ge[Ne]!==Ae){Ae=0;break}pe-=Ae,ye[ye.length-1]=Ge.subarray(0,16-Ae)}}const _e=new Uint8Array(pe);for(let Ge=0,Ae=0,Ne=ye.length;Ge<Ne;++Ge,Ae+=16)_e.set(ye[Ge],Ae);return _e}decryptBlock(Ee,ke){let xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const fe=Ee.length,ve=this.buffer;let ye=this.bufferPosition;if(xe)this.iv=xe;else{for(let Ce=0;ye<16&&Ce<fe;++Ce,++ye)ve[ye]=Ee[Ce];if(ye<16)return this.bufferLength=ye,new Uint8Array(0);this.iv=ve,Ee=Ee.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(Ee,ke)}encrypt(Ee,ke){const xe=Ee.length;let fe=this.buffer,ve=this.bufferPosition;const ye=[];ke||(ke=new Uint8Array(16));for(let _e=0;_e<xe;++_e){if(fe[ve]=Ee[_e],++ve,ve<16)continue;for(let Ae=0;Ae<16;++Ae)fe[Ae]^=ke[Ae];const Ge=this._encrypt(fe,this._key);ke=Ge,ye.push(Ge),fe=new Uint8Array(16),ve=0}if(this.buffer=fe,this.bufferLength=ve,this.iv=ke,ye.length===0)return new Uint8Array(0);const Ce=16*ye.length,pe=new Uint8Array(Ce);for(let _e=0,Ge=0,Ae=ye.length;_e<Ae;++_e,Ge+=16)pe.set(ye[_e],Ge);return pe}}class L extends X{constructor(Ee){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(Ee)}_expandKey(Ee){const xe=this._s,fe=this._rcon,ve=new Uint8Array(176);ve.set(Ee);for(let ye=16,Ce=1;ye<176;++Ce){let pe=ve[ye-3],_e=ve[ye-2],Ge=ve[ye-1],Ae=ve[ye-4];pe=xe[pe],_e=xe[_e],Ge=xe[Ge],Ae=xe[Ae],pe^=fe[Ce];for(let Ne=0;Ne<4;++Ne)ve[ye]=pe^=ve[ye-16],ye++,ve[ye]=_e^=ve[ye-16],ye++,ve[ye]=Ge^=ve[ye-16],ye++,ve[ye]=Ae^=ve[ye-16],ye++}return ve}}D.AES128Cipher=L;class Q extends X{constructor(Ee){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(Ee)}_expandKey(Ee){const xe=this._s,fe=new Uint8Array(240);fe.set(Ee);let ve=1,ye,Ce,pe,_e;for(let Ge=32,Ae=1;Ge<240;++Ae){Ge%32===16?(ye=xe[ye],Ce=xe[Ce],pe=xe[pe],_e=xe[_e]):Ge%32===0&&(ye=fe[Ge-3],Ce=fe[Ge-2],pe=fe[Ge-1],_e=fe[Ge-4],ye=xe[ye],Ce=xe[Ce],pe=xe[pe],_e=xe[_e],ye^=ve,(ve<<=1)>=256&&(ve=(ve^27)&255));for(let Ne=0;Ne<4;++Ne)fe[Ge]=ye^=fe[Ge-32],Ge++,fe[Ge]=Ce^=fe[Ge-32],Ge++,fe[Ge]=pe^=fe[Ge-32],Ge++,fe[Ge]=_e^=fe[Ge-32],Ge++}return fe}}D.AES256Cipher=Q;class ce{checkOwnerPassword(Ee,ke,xe,fe){const ve=new Uint8Array(Ee.length+56);ve.set(Ee,0),ve.set(ke,Ee.length),ve.set(xe,Ee.length+ke.length);const ye=ie(ve,0,ve.length);return(0,R.isArrayEqual)(ye,fe)}checkUserPassword(Ee,ke,xe){const fe=new Uint8Array(Ee.length+8);fe.set(Ee,0),fe.set(ke,Ee.length);const ve=ie(fe,0,fe.length);return(0,R.isArrayEqual)(ve,xe)}getOwnerKey(Ee,ke,xe,fe){const ve=new Uint8Array(Ee.length+56);ve.set(Ee,0),ve.set(ke,Ee.length),ve.set(xe,Ee.length+ke.length);const ye=ie(ve,0,ve.length);return new Q(ye).decryptBlock(fe,!1,new Uint8Array(16))}getUserKey(Ee,ke,xe){const fe=new Uint8Array(Ee.length+8);fe.set(Ee,0),fe.set(ke,Ee.length);const ve=ie(fe,0,fe.length);return new Q(ve).decryptBlock(xe,!1,new Uint8Array(16))}}D.PDF17=ce;const de=function(){function Ee(xe,fe,ve){let ye=ie(fe,0,fe.length).subarray(0,32),Ce=[0],pe=0;for(;pe<64||Ce.at(-1)>pe-32;){const _e=xe.length+ye.length+ve.length,Ge=new Uint8Array(_e);let Ae=0;Ge.set(xe,Ae),Ae+=xe.length,Ge.set(ye,Ae),Ae+=ye.length,Ge.set(ve,Ae);const Ne=new Uint8Array(_e*64);for(let Te=0,Fe=0;Te<64;Te++,Fe+=_e)Ne.set(Ge,Fe);Ce=new L(ye.subarray(0,16)).encrypt(Ne,ye.subarray(16,32));let ze=0;for(let Te=0;Te<16;Te++)ze*=256%3,ze%=3,ze+=(Ce[Te]>>>0)%3,ze%=3;ze===0?ye=ie(Ce,0,Ce.length):ze===1?ye=J(Ce,0,Ce.length):ze===2&&(ye=he(Ce,0,Ce.length)),pe++}return ye.subarray(0,32)}class ke{hash(fe,ve,ye){return Ee(fe,ve,ye)}checkOwnerPassword(fe,ve,ye,Ce){const pe=new Uint8Array(fe.length+56);pe.set(fe,0),pe.set(ve,fe.length),pe.set(ye,fe.length+ve.length);const _e=Ee(fe,pe,ye);return(0,R.isArrayEqual)(_e,Ce)}checkUserPassword(fe,ve,ye){const Ce=new Uint8Array(fe.length+8);Ce.set(fe,0),Ce.set(ve,fe.length);const pe=Ee(fe,Ce,[]);return(0,R.isArrayEqual)(pe,ye)}getOwnerKey(fe,ve,ye,Ce){const pe=new Uint8Array(fe.length+56);pe.set(fe,0),pe.set(ve,fe.length),pe.set(ye,fe.length+ve.length);const _e=Ee(fe,pe,ye);return new Q(_e).decryptBlock(Ce,!1,new Uint8Array(16))}getUserKey(fe,ve,ye){const Ce=new Uint8Array(fe.length+8);Ce.set(fe,0),Ce.set(ve,fe.length);const pe=Ee(fe,Ce,[]);return new Q(pe).decryptBlock(ye,!1,new Uint8Array(16))}}return ke}();D.PDF20=de;class se{constructor(Ee,ke){this.StringCipherConstructor=Ee,this.StreamCipherConstructor=ke}createStream(Ee,ke){const xe=new this.StreamCipherConstructor;return new K.DecryptStream(Ee,ke,function(ve,ye){return xe.decryptBlock(ve,ye)})}decryptString(Ee){const ke=new this.StringCipherConstructor;let xe=(0,R.stringToBytes)(Ee);return xe=ke.decryptBlock(xe,!0),(0,R.bytesToString)(xe)}encryptString(Ee){const ke=new this.StringCipherConstructor;if(ke instanceof X){const ve=16-Ee.length%16;Ee+=String.fromCharCode(ve).repeat(ve);const ye=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(ye);else for(let _e=0;_e<16;_e++)ye[_e]=Math.floor(256*Math.random());let Ce=(0,R.stringToBytes)(Ee);Ce=ke.encrypt(Ce,ye);const pe=new Uint8Array(16+Ce.length);return pe.set(ye),pe.set(Ce,16),(0,R.bytesToString)(pe)}let xe=(0,R.stringToBytes)(Ee);return xe=ke.encrypt(xe),(0,R.bytesToString)(xe)}}const oe=function(){const Ee=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function ke(_e,Ge,Ae,Ne,Ze,ze,Te,Fe,Pe,we,Ie,Be){if(Ge){const Ve=Math.min(127,Ge.length);Ge=Ge.subarray(0,Ve)}else Ge=[];let Ke;return _e===6?Ke=new de:Ke=new ce,Ke.checkUserPassword(Ge,Fe,Te)?Ke.getUserKey(Ge,Pe,Ie):Ge.length&&Ke.checkOwnerPassword(Ge,Ne,ze,Ae)?Ke.getOwnerKey(Ge,Ze,ze,we):null}function xe(_e,Ge,Ae,Ne,Ze,ze,Te,Fe){const Pe=40+Ae.length+_e.length,we=new Uint8Array(Pe);let Ie=0,Be,Ke;if(Ge)for(Ke=Math.min(32,Ge.length);Ie<Ke;++Ie)we[Ie]=Ge[Ie];for(Be=0;Ie<32;)we[Ie++]=Ee[Be++];for(Be=0,Ke=Ae.length;Be<Ke;++Be)we[Ie++]=Ae[Be];for(we[Ie++]=Ze&255,we[Ie++]=Ze>>8&255,we[Ie++]=Ze>>16&255,we[Ie++]=Ze>>>24&255,Be=0,Ke=_e.length;Be<Ke;++Be)we[Ie++]=_e[Be];ze>=4&&!Fe&&(we[Ie++]=255,we[Ie++]=255,we[Ie++]=255,we[Ie++]=255);let Ve=e(we,0,Ie);const je=Te>>3;if(ze>=3)for(Be=0;Be<50;++Be)Ve=e(Ve,0,je);const Le=Ve.subarray(0,je);let et,Qe;if(ze>=3){for(Ie=0;Ie<32;++Ie)we[Ie]=Ee[Ie];for(Be=0,Ke=_e.length;Be<Ke;++Be)we[Ie++]=_e[Be];et=new z(Le),Qe=et.encryptBlock(e(we,0,Ie)),Ke=Le.length;const Ue=new Uint8Array(Ke);for(Be=1;Be<=19;++Be){for(let $e=0;$e<Ke;++$e)Ue[$e]=Le[$e]^Be;et=new z(Ue),Qe=et.encryptBlock(Qe)}for(Be=0,Ke=Qe.length;Be<Ke;++Be)if(Ne[Be]!==Qe[Be])return null}else for(et=new z(Le),Qe=et.encryptBlock(Ee),Be=0,Ke=Qe.length;Be<Ke;++Be)if(Ne[Be]!==Qe[Be])return null;return Le}function fe(_e,Ge,Ae,Ne){const Ze=new Uint8Array(32);let ze=0;const Te=Math.min(32,_e.length);for(;ze<Te;++ze)Ze[ze]=_e[ze];let Fe=0;for(;ze<32;)Ze[ze++]=Ee[Fe++];let Pe=e(Ze,0,ze);const we=Ne>>3;if(Ae>=3)for(Fe=0;Fe<50;++Fe)Pe=e(Pe,0,Pe.length);let Ie,Be;if(Ae>=3){Be=Ge;const Ke=new Uint8Array(we);for(Fe=19;Fe>=0;Fe--){for(let Ve=0;Ve<we;++Ve)Ke[Ve]=Pe[Ve]^Fe;Ie=new z(Ke),Be=Ie.encryptBlock(Be)}}else Ie=new z(Pe.subarray(0,we)),Be=Ie.encryptBlock(Ge);return Be}const ve=U.Name.get("Identity");function ye(_e,Ge,Ae){let Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const Ze=new Uint8Array(Ae.length+9),ze=Ae.length;let Te;for(Te=0;Te<ze;++Te)Ze[Te]=Ae[Te];return Ze[Te++]=_e&255,Ze[Te++]=_e>>8&255,Ze[Te++]=_e>>16&255,Ze[Te++]=Ge&255,Ze[Te++]=Ge>>8&255,Ne&&(Ze[Te++]=115,Ze[Te++]=65,Ze[Te++]=108,Ze[Te++]=84),e(Ze,0,Te).subarray(0,Math.min(Ae.length+5,16))}function Ce(_e,Ge,Ae,Ne,Ze){if(!(Ge instanceof U.Name))throw new R.FormatError("Invalid crypt filter name.");const ze=_e.get(Ge.name);let Te;if(ze!=null&&(Te=ze.get("CFM")),!Te||Te.name==="None")return function(){return new W};if(Te.name==="V2")return function(){return new z(ye(Ae,Ne,Ze,!1))};if(Te.name==="AESV2")return function(){return new L(ye(Ae,Ne,Ze,!0))};if(Te.name==="AESV3")return function(){return new Q(Ze)};throw new R.FormatError("Unknown crypto method")}class pe{constructor(Ge,Ae,Ne){const Ze=Ge.get("Filter");if(!(0,U.isName)(Ze,"Standard"))throw new R.FormatError("unknown encryption method");this.filterName=Ze.name,this.dict=Ge;const ze=Ge.get("V");if(!Number.isInteger(ze)||ze!==1&&ze!==2&&ze!==4&&ze!==5)throw new R.FormatError("unsupported encryption algorithm");this.algorithm=ze;let Te=Ge.get("Length");if(!Te)if(ze<=3)Te=40;else{const Le=Ge.get("CF"),et=Ge.get("StmF");if(Le instanceof U.Dict&&et instanceof U.Name){Le.suppressEncryption=!0;const Qe=Le.get(et.name);Te=Qe&&Qe.get("Length")||128,Te<40&&(Te<<=3)}}if(!Number.isInteger(Te)||Te<40||Te%8!==0)throw new R.FormatError("invalid key length");const Fe=(0,R.stringToBytes)(Ge.get("O")).subarray(0,32),Pe=(0,R.stringToBytes)(Ge.get("U")).subarray(0,32),we=Ge.get("P"),Ie=Ge.get("R"),Be=(ze===4||ze===5)&&Ge.get("EncryptMetadata")!==!1;this.encryptMetadata=Be;const Ke=(0,R.stringToBytes)(Ae);let Ve;if(Ne){if(Ie===6)try{Ne=(0,R.utf8StringToString)(Ne)}catch{(0,R.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}Ve=(0,R.stringToBytes)(Ne)}let je;if(ze!==5)je=xe(Ke,Ve,Fe,Pe,we,Ie,Te,Be);else{const Le=(0,R.stringToBytes)(Ge.get("O")).subarray(32,40),et=(0,R.stringToBytes)(Ge.get("O")).subarray(40,48),Qe=(0,R.stringToBytes)(Ge.get("U")).subarray(0,48),Ue=(0,R.stringToBytes)(Ge.get("U")).subarray(32,40),$e=(0,R.stringToBytes)(Ge.get("U")).subarray(40,48),Ye=(0,R.stringToBytes)(Ge.get("OE")),tt=(0,R.stringToBytes)(Ge.get("UE"));(0,R.stringToBytes)(Ge.get("Perms")),je=ke(Ie,Ve,Fe,Le,et,Qe,Pe,Ue,$e,Ye,tt)}if(!je&&!Ne)throw new R.PasswordException("No password given",R.PasswordResponses.NEED_PASSWORD);if(!je&&Ne){const Le=fe(Ve,Fe,Ie,Te);je=xe(Ke,Le,Fe,Pe,we,Ie,Te,Be)}if(!je)throw new R.PasswordException("Incorrect Password",R.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=je,ze>=4){const Le=Ge.get("CF");Le instanceof U.Dict&&(Le.suppressEncryption=!0),this.cf=Le,this.stmf=Ge.get("StmF")||ve,this.strf=Ge.get("StrF")||ve,this.eff=Ge.get("EFF")||this.stmf}}createCipherTransform(Ge,Ae){if(this.algorithm===4||this.algorithm===5)return new se(Ce(this.cf,this.strf,Ge,Ae,this.encryptionKey),Ce(this.cf,this.stmf,Ge,Ae,this.encryptionKey));const Ne=ye(Ge,Ae,this.encryptionKey,!1),Ze=function(){return new z(Ne)};return new se(Ze,Ze)}}return pe}();D.CipherTransformFactory=oe},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DecryptStream=void 0;var R=B(144);const U=512;class K extends R.DecodeStream{constructor(e,ae,ie){super(ae),this.str=e,this.dict=e.dict,this.decrypt=ie,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(U),this.initialized=!0),!e||e.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(U);const ae=this.nextChunk&&this.nextChunk.length>0,ie=this.decrypt;e=ie(e,!ae);let he=this.bufferLength;const J=e.length,W=this.ensureBuffer(he+J);for(let X=0;X<J;X++)W[he++]=e[X];this.bufferLength=he}}D.DecryptStream=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Catalog=void 0;var R=B(131),U=B(2),K=B(130),z=B(195),e=B(132),ae=B(196),ie=B(139),he=B(197),J=B(184),W=B(198),X=B(199);function L(ce){return ce instanceof K.Dict&&(ce=ce.get("D")),Array.isArray(ce)?ce:null}class Q{constructor(de,se){if(this.pdfManager=de,this.xref=se,this._catDict=se.getCatalogObj(),!(this._catDict instanceof K.Dict))throw new U.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new K.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new J.GlobalImageCache,this.pageKidsCountCache=new K.RefSetCache,this.pageIndexCache=new K.RefSetCache,this.nonBlendModesSet=new K.RefSet}get version(){const de=this._catDict.get("Version");return(0,U.shadow)(this,"version",de instanceof K.Name?de.name:null)}get lang(){const de=this._catDict.get("Lang");return(0,U.shadow)(this,"lang",typeof de=="string"?(0,U.stringToPDFString)(de):null)}get needsRendering(){const de=this._catDict.get("NeedsRendering");return(0,U.shadow)(this,"needsRendering",typeof de=="boolean"?de:!1)}get collection(){let de=null;try{const se=this._catDict.get("Collection");se instanceof K.Dict&&se.size>0&&(de=se)}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,U.shadow)(this,"collection",de)}get acroForm(){let de=null;try{const se=this._catDict.get("AcroForm");se instanceof K.Dict&&se.size>0&&(de=se)}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,U.shadow)(this,"acroForm",de)}get acroFormRef(){const de=this._catDict.getRaw("AcroForm");return(0,U.shadow)(this,"acroFormRef",de instanceof K.Ref?de:null)}get metadata(){const de=this._catDict.getRaw("Metadata");if(!(de instanceof K.Ref))return(0,U.shadow)(this,"metadata",null);let se=null;try{const oe=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),me=this.xref.fetch(de,oe);if(me instanceof e.BaseStream&&me.dict instanceof K.Dict){const Ee=me.dict.get("Type"),ke=me.dict.get("Subtype");if((0,K.isName)(Ee,"Metadata")&&(0,K.isName)(ke,"XML")){const xe=(0,U.stringToUTF8String)(me.getString());xe&&(se=new W.MetadataParser(xe).serializable)}}}catch(oe){if(oe instanceof R.MissingDataException)throw oe;(0,U.info)(`Skipping invalid Metadata: "${oe}".`)}return(0,U.shadow)(this,"metadata",se)}get markInfo(){let de=null;try{de=this._readMarkInfo()}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)("Unable to read mark info.")}return(0,U.shadow)(this,"markInfo",de)}_readMarkInfo(){const de=this._catDict.get("MarkInfo");if(!(de instanceof K.Dict))return null;const se={Marked:!1,UserProperties:!1,Suspects:!1};for(const oe in se){const me=de.get(oe);typeof me=="boolean"&&(se[oe]=me)}return se}get structTreeRoot(){let de=null;try{de=this._readStructTreeRoot()}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)("Unable read to structTreeRoot info.")}return(0,U.shadow)(this,"structTreeRoot",de)}_readStructTreeRoot(){const de=this._catDict.get("StructTreeRoot");if(!(de instanceof K.Dict))return null;const se=new X.StructTreeRoot(de);return se.init(),se}get toplevelPagesDict(){const de=this._catDict.get("Pages");if(!(de instanceof K.Dict))throw new U.FormatError("Invalid top-level pages dictionary.");return(0,U.shadow)(this,"toplevelPagesDict",de)}get documentOutline(){let de=null;try{de=this._readDocumentOutline()}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)("Unable to read document outline.")}return(0,U.shadow)(this,"documentOutline",de)}_readDocumentOutline(){let de=this._catDict.get("Outlines");if(!(de instanceof K.Dict)||(de=de.getRaw("First"),!(de instanceof K.Ref)))return null;const se={items:[]},oe=[{obj:de,parent:se}],me=new K.RefSet;me.put(de);const Ee=this.xref,ke=new Uint8ClampedArray(3);for(;oe.length>0;){const xe=oe.shift(),fe=Ee.fetchIfRef(xe.obj);if(fe===null)continue;if(!fe.has("Title"))throw new U.FormatError("Invalid outline item encountered.");const ve={url:null,dest:null};Q.parseDestDictionary({destDict:fe,resultObj:ve,docBaseUrl:this.pdfManager.docBaseUrl});const ye=fe.get("Title"),Ce=fe.get("F")||0,pe=fe.getArray("C"),_e=fe.get("Count");let Ge=ke;Array.isArray(pe)&&pe.length===3&&(pe[0]!==0||pe[1]!==0||pe[2]!==0)&&(Ge=ie.ColorSpace.singletons.rgb.getRgb(pe,0));const Ae={dest:ve.dest,url:ve.url,unsafeUrl:ve.unsafeUrl,newWindow:ve.newWindow,title:(0,U.stringToPDFString)(ye),color:Ge,count:Number.isInteger(_e)?_e:void 0,bold:!!(Ce&2),italic:!!(Ce&1),items:[]};xe.parent.items.push(Ae),de=fe.getRaw("First"),de instanceof K.Ref&&!me.has(de)&&(oe.push({obj:de,parent:Ae}),me.put(de)),de=fe.getRaw("Next"),de instanceof K.Ref&&!me.has(de)&&(oe.push({obj:de,parent:xe.parent}),me.put(de))}return se.items.length>0?se.items:null}get permissions(){let de=null;try{de=this._readPermissions()}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)("Unable to read permissions.")}return(0,U.shadow)(this,"permissions",de)}_readPermissions(){const de=this.xref.trailer.get("Encrypt");if(!(de instanceof K.Dict))return null;let se=de.get("P");if(typeof se!="number")return null;se+=4294967296;const oe=[];for(const me in U.PermissionFlag){const Ee=U.PermissionFlag[me];se&Ee&&oe.push(Ee)}return oe}get optionalContentConfig(){let de=null;try{const se=this._catDict.get("OCProperties");if(!se)return(0,U.shadow)(this,"optionalContentConfig",null);const oe=se.get("D");if(!oe)return(0,U.shadow)(this,"optionalContentConfig",null);const me=se.get("OCGs");if(!Array.isArray(me))return(0,U.shadow)(this,"optionalContentConfig",null);const Ee=[],ke=[];for(const xe of me){if(!(xe instanceof K.Ref))continue;ke.push(xe);const fe=this.xref.fetchIfRef(xe);Ee.push({id:xe.toString(),name:typeof fe.get("Name")=="string"?(0,U.stringToPDFString)(fe.get("Name")):null,intent:typeof fe.get("Intent")=="string"?(0,U.stringToPDFString)(fe.get("Intent")):null})}de=this._readOptionalContentConfig(oe,ke),de.groups=Ee}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)(`Unable to read optional content config: ${se}`)}return(0,U.shadow)(this,"optionalContentConfig",de)}_readOptionalContentConfig(de,se){function oe(ve){const ye=[];if(Array.isArray(ve))for(const Ce of ve)Ce instanceof K.Ref&&se.includes(Ce)&&ye.push(Ce.toString());return ye}function me(ve){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!Array.isArray(ve))return null;const Ce=[];for(const _e of ve){if(_e instanceof K.Ref&&se.includes(_e)){xe.put(_e),Ce.push(_e.toString());continue}const Ge=Ee(_e,ye);Ge&&Ce.push(Ge)}if(ye>0)return Ce;const pe=[];for(const _e of se)xe.has(_e)||pe.push(_e.toString());return pe.length&&Ce.push({name:null,order:pe}),Ce}function Ee(ve,ye){if(++ye>fe)return(0,U.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const Ce=ke.fetchIfRef(ve);if(!Array.isArray(Ce))return null;const pe=ke.fetchIfRef(Ce[0]);if(typeof pe!="string")return null;const _e=me(Ce.slice(1),ye);return!_e||!_e.length?null:{name:(0,U.stringToPDFString)(pe),order:_e}}const ke=this.xref,xe=new K.RefSet,fe=10;return{name:typeof de.get("Name")=="string"?(0,U.stringToPDFString)(de.get("Name")):null,creator:typeof de.get("Creator")=="string"?(0,U.stringToPDFString)(de.get("Creator")):null,baseState:de.get("BaseState")instanceof K.Name?de.get("BaseState").name:null,on:oe(de.get("ON")),off:oe(de.get("OFF")),order:me(de.get("Order")),groups:null}}setActualNumPages(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._actualNumPages=de}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const de=this.toplevelPagesDict.get("Count");if(!Number.isInteger(de))throw new U.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,U.shadow)(this,"_pagesCount",de)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const de=this._readDests(),se=Object.create(null);if(de instanceof z.NameTree)for(const[oe,me]of de.getAll()){const Ee=L(me);Ee&&(se[(0,U.stringToPDFString)(oe)]=Ee)}else de instanceof K.Dict&&de.forEach(function(oe,me){const Ee=L(me);Ee&&(se[oe]=Ee)});return(0,U.shadow)(this,"destinations",se)}getDestination(de){const se=this._readDests();if(se instanceof z.NameTree){const oe=L(se.get(de));if(oe)return oe;const me=this.destinations[de];if(me)return(0,U.warn)(`Found "${de}" at an incorrect position in the NameTree.`),me}else if(se instanceof K.Dict){const oe=L(se.get(de));if(oe)return oe}return null}_readDests(){const de=this._catDict.get("Names");if(de&&de.has("Dests"))return new z.NameTree(de.getRaw("Dests"),this.xref);if(this._catDict.has("Dests"))return this._catDict.get("Dests")}get pageLabels(){let de=null;try{de=this._readPageLabels()}catch(se){if(se instanceof R.MissingDataException)throw se;(0,U.warn)("Unable to read page labels.")}return(0,U.shadow)(this,"pageLabels",de)}_readPageLabels(){const de=this._catDict.getRaw("PageLabels");if(!de)return null;const se=new Array(this.numPages);let oe=null,me="";const ke=new z.NumberTree(de,this.xref).getAll();let xe="",fe=1;for(let ve=0,ye=this.numPages;ve<ye;ve++){const Ce=ke.get(ve);if(Ce!==void 0){if(!(Ce instanceof K.Dict))throw new U.FormatError("PageLabel is not a dictionary.");if(Ce.has("Type")&&!(0,K.isName)(Ce.get("Type"),"PageLabel"))throw new U.FormatError("Invalid type in PageLabel dictionary.");if(Ce.has("S")){const pe=Ce.get("S");if(!(pe instanceof K.Name))throw new U.FormatError("Invalid style in PageLabel dictionary.");oe=pe.name}else oe=null;if(Ce.has("P")){const pe=Ce.get("P");if(typeof pe!="string")throw new U.FormatError("Invalid prefix in PageLabel dictionary.");me=(0,U.stringToPDFString)(pe)}else me="";if(Ce.has("St")){const pe=Ce.get("St");if(!(Number.isInteger(pe)&&pe>=1))throw new U.FormatError("Invalid start in PageLabel dictionary.");fe=pe}else fe=1}switch(oe){case"D":xe=fe;break;case"R":case"r":xe=(0,R.toRomanNumerals)(fe,oe==="r");break;case"A":case"a":const pe=26,Ae=oe==="a"?97:65,Ne=fe-1;xe=String.fromCharCode(Ae+Ne%pe).repeat(Math.floor(Ne/pe)+1);break;default:if(oe)throw new U.FormatError(`Invalid style "${oe}" in PageLabel dictionary.`);xe=""}se[ve]=me+xe,fe++}return se}get pageLayout(){const de=this._catDict.get("PageLayout");let se="";if(de instanceof K.Name)switch(de.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":se=de.name}return(0,U.shadow)(this,"pageLayout",se)}get pageMode(){const de=this._catDict.get("PageMode");let se="UseNone";if(de instanceof K.Name)switch(de.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":se=de.name}return(0,U.shadow)(this,"pageMode",se)}get viewerPreferences(){const de=this._catDict.get("ViewerPreferences");if(!(de instanceof K.Dict))return(0,U.shadow)(this,"viewerPreferences",null);let se=null;for(const oe of de.getKeys()){const me=de.get(oe);let Ee;switch(oe){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof me=="boolean"&&(Ee=me);break;case"NonFullScreenPageMode":if(me instanceof K.Name)switch(me.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":Ee=me.name;break;default:Ee="UseNone"}break;case"Direction":if(me instanceof K.Name)switch(me.name){case"L2R":case"R2L":Ee=me.name;break;default:Ee="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(me instanceof K.Name)switch(me.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":Ee=me.name;break;default:Ee="CropBox"}break;case"PrintScaling":if(me instanceof K.Name)switch(me.name){case"None":case"AppDefault":Ee=me.name;break;default:Ee="AppDefault"}break;case"Duplex":if(me instanceof K.Name)switch(me.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":Ee=me.name;break;default:Ee="None"}break;case"PrintPageRange":Array.isArray(me)&&me.length%2===0&&me.every((xe,fe,ve)=>Number.isInteger(xe)&&xe>0&&(fe===0||xe>=ve[fe-1])&&xe<=this.numPages)&&(Ee=me);break;case"NumCopies":Number.isInteger(me)&&me>0&&(Ee=me);break;default:(0,U.warn)(`Ignoring non-standard key in ViewerPreferences: ${oe}.`);continue}if(Ee===void 0){(0,U.warn)(`Bad value, for key "${oe}", in ViewerPreferences: ${me}.`);continue}se||(se=Object.create(null)),se[oe]=Ee}return(0,U.shadow)(this,"viewerPreferences",se)}get openAction(){const de=this._catDict.get("OpenAction"),se=Object.create(null);if(de instanceof K.Dict){const oe=new K.Dict(this.xref);oe.set("A",de);const me={url:null,dest:null,action:null};Q.parseDestDictionary({destDict:oe,resultObj:me}),Array.isArray(me.dest)?se.dest=me.dest:me.action&&(se.action=me.action)}else Array.isArray(de)&&(se.dest=de);return(0,U.shadow)(this,"openAction",(0,U.objectSize)(se)>0?se:null)}get attachments(){const de=this._catDict.get("Names");let se=null;if(de instanceof K.Dict&&de.has("EmbeddedFiles")){const oe=new z.NameTree(de.getRaw("EmbeddedFiles"),this.xref);for(const[me,Ee]of oe.getAll()){const ke=new he.FileSpec(Ee,this.xref);se||(se=Object.create(null)),se[(0,U.stringToPDFString)(me)]=ke.serializable}}return(0,U.shadow)(this,"attachments",se)}get xfaImages(){const de=this._catDict.get("Names");let se=null;if(de instanceof K.Dict&&de.has("XFAImages")){const oe=new z.NameTree(de.getRaw("XFAImages"),this.xref);for(const[me,Ee]of oe.getAll())se||(se=new K.Dict(this.xref)),se.set((0,U.stringToPDFString)(me),Ee)}return(0,U.shadow)(this,"xfaImages",se)}_collectJavaScript(){const de=this._catDict.get("Names");let se=null;function oe(Ee,ke){if(!(ke instanceof K.Dict)||!(0,K.isName)(ke.get("S"),"JavaScript"))return;let xe=ke.get("JS");if(xe instanceof e.BaseStream)xe=xe.getString();else if(typeof xe!="string")return;se===null&&(se=new Map),xe=(0,U.stringToPDFString)(xe).replace(/\u0000/g,""),se.set(Ee,xe)}if(de instanceof K.Dict&&de.has("JavaScript")){const Ee=new z.NameTree(de.getRaw("JavaScript"),this.xref);for(const[ke,xe]of Ee.getAll())oe((0,U.stringToPDFString)(ke),xe)}const me=this._catDict.get("OpenAction");return me&&oe("OpenAction",me),se}get javaScript(){const de=this._collectJavaScript();return(0,U.shadow)(this,"javaScript",de?[...de.values()]:null)}get jsActions(){const de=this._collectJavaScript();let se=(0,R.collectActions)(this.xref,this._catDict,U.DocumentActionEventType);if(de){se||(se=Object.create(null));for(const[oe,me]of de)oe in se?se[oe].push(me):se[oe]=[me]}return(0,U.shadow)(this,"jsActions",se)}async fontFallback(de,se){const oe=await Promise.all(this.fontCache);for(const me of oe)if(me.loadedName===de){me.fallback(se);return}}async cleanup(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;(0,ae.clearGlobalCaches)(),this.globalImageCache.clear(de),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const se=await Promise.all(this.fontCache);for(const{dict:oe}of se)delete oe.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(de){const se=[this.toplevelPagesDict],oe=new K.RefSet,me=this._catDict.getRaw("Pages");me instanceof K.Ref&&oe.put(me);const Ee=this.xref,ke=this.pageKidsCountCache,xe=this.pageIndexCache;let fe=0;for(;se.length;){const ve=se.pop();if(ve instanceof K.Ref){const _e=ke.get(ve);if(_e>=0&&fe+_e<=de){fe+=_e;continue}if(oe.has(ve))throw new U.FormatError("Pages tree contains circular reference.");oe.put(ve);const Ge=await Ee.fetchAsync(ve);if(Ge instanceof K.Dict){let Ae=Ge.getRaw("Type");if(Ae instanceof K.Ref&&(Ae=await Ee.fetchAsync(Ae)),(0,K.isName)(Ae,"Page")||!Ge.has("Kids")){if(ke.has(ve)||ke.put(ve,1),xe.has(ve)||xe.put(ve,fe),fe===de)return[Ge,ve];fe++;continue}}se.push(Ge);continue}if(!(ve instanceof K.Dict))throw new U.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:ye}=ve;let Ce=ve.getRaw("Count");if(Ce instanceof K.Ref&&(Ce=await Ee.fetchAsync(Ce)),Number.isInteger(Ce)&&Ce>=0&&(ye&&!ke.has(ye)&&ke.put(ye,Ce),fe+Ce<=de)){fe+=Ce;continue}let pe=ve.getRaw("Kids");if(pe instanceof K.Ref&&(pe=await Ee.fetchAsync(pe)),!Array.isArray(pe)){let _e=ve.getRaw("Type");if(_e instanceof K.Ref&&(_e=await Ee.fetchAsync(_e)),(0,K.isName)(_e,"Page")||!ve.has("Kids")){if(fe===de)return[ve,null];fe++;continue}throw new U.FormatError("Page dictionary kids object is not an array.")}for(let _e=pe.length-1;_e>=0;_e--)se.push(pe[_e])}throw new Error(`Page index ${de} not found.`)}async getAllPageDicts(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const se=[{currentNode:this.toplevelPagesDict,posInKids:0}],oe=new K.RefSet,me=this._catDict.getRaw("Pages");me instanceof K.Ref&&oe.put(me);const Ee=new Map,ke=this.xref,xe=this.pageIndexCache;let fe=0;function ve(Ce,pe){pe&&!xe.has(pe)&&xe.put(pe,fe),Ee.set(fe++,[Ce,pe])}function ye(Ce){if(Ce instanceof R.XRefEntryException&&!de)throw Ce;Ee.set(fe++,[Ce,null])}for(;se.length>0;){const Ce=se.at(-1),{currentNode:pe,posInKids:_e}=Ce;let Ge=pe.getRaw("Kids");if(Ge instanceof K.Ref)try{Ge=await ke.fetchAsync(Ge)}catch(ze){ye(ze);break}if(!Array.isArray(Ge)){ye(new U.FormatError("Page dictionary kids object is not an array."));break}if(_e>=Ge.length){se.pop();continue}const Ae=Ge[_e];let Ne;if(Ae instanceof K.Ref){if(oe.has(Ae)){ye(new U.FormatError("Pages tree contains circular reference."));break}oe.put(Ae);try{Ne=await ke.fetchAsync(Ae)}catch(ze){ye(ze);break}}else Ne=Ae;if(!(Ne instanceof K.Dict)){ye(new U.FormatError("Page dictionary kid reference points to wrong type of object."));break}let Ze=Ne.getRaw("Type");if(Ze instanceof K.Ref)try{Ze=await ke.fetchAsync(Ze)}catch(ze){ye(ze);break}(0,K.isName)(Ze,"Page")||!Ne.has("Kids")?ve(Ne,Ae instanceof K.Ref?Ae:null):se.push({currentNode:Ne,posInKids:0}),Ce.posInKids++}return Ee}getPageIndex(de){const se=this.pageIndexCache.get(de);if(se!==void 0)return Promise.resolve(se);const oe=this.xref;function me(xe){let fe=0,ve;return oe.fetchAsync(xe).then(function(ye){if((0,K.isRefsEqual)(xe,de)&&!(0,K.isDict)(ye,"Page")&&!(ye instanceof K.Dict&&!ye.has("Type")&&ye.has("Contents")))throw new U.FormatError("The reference does not point to a /Page dictionary.");if(!ye)return null;if(!(ye instanceof K.Dict))throw new U.FormatError("Node must be a dictionary.");return ve=ye.getRaw("Parent"),ye.getAsync("Parent")}).then(function(ye){if(!ye)return null;if(!(ye instanceof K.Dict))throw new U.FormatError("Parent must be a dictionary.");return ye.getAsync("Kids")}).then(function(ye){if(!ye)return null;const Ce=[];let pe=!1;for(let _e=0,Ge=ye.length;_e<Ge;_e++){const Ae=ye[_e];if(!(Ae instanceof K.Ref))throw new U.FormatError("Kid must be a reference.");if((0,K.isRefsEqual)(Ae,xe)){pe=!0;break}Ce.push(oe.fetchAsync(Ae).then(function(Ne){if(!(Ne instanceof K.Dict))throw new U.FormatError("Kid node must be a dictionary.");Ne.has("Count")?fe+=Ne.get("Count"):fe++}))}if(!pe)throw new U.FormatError("Kid reference not found in parent's kids.");return Promise.all(Ce).then(function(){return[fe,ve]})})}let Ee=0;const ke=xe=>me(xe).then(fe=>{if(!fe)return this.pageIndexCache.put(de,Ee),Ee;const[ve,ye]=fe;return Ee+=ve,ke(ye)});return ke(de)}get baseUrl(){const de=this._catDict.get("URI");if(de instanceof K.Dict){const se=de.get("Base");if(typeof se=="string"){const oe=(0,U.createValidAbsoluteUrl)(se,null,{tryConvertEncoding:!0});if(oe)return(0,U.shadow)(this,"baseUrl",oe.href)}}return(0,U.shadow)(this,"baseUrl",null)}static parseDestDictionary(de){const se=de.destDict;if(!(se instanceof K.Dict)){(0,U.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const oe=de.resultObj;if(typeof oe!="object"){(0,U.warn)("parseDestDictionary: `resultObj` must be an object.");return}const me=de.docBaseUrl||null;let Ee=se.get("A"),ke,xe;if(Ee instanceof K.Dict||(se.has("Dest")?Ee=se.get("Dest"):(Ee=se.get("AA"),Ee instanceof K.Dict&&(Ee.has("D")?Ee=Ee.get("D"):Ee.has("U")&&(Ee=Ee.get("U"))))),Ee instanceof K.Dict){const fe=Ee.get("S");if(!(fe instanceof K.Name)){(0,U.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const ve=fe.name;switch(ve){case"ResetForm":const ye=Ee.get("Flags"),Ce=((typeof ye=="number"?ye:0)&1)===0,pe=[],_e=[];for(const Pe of Ee.get("Fields")||[])Pe instanceof K.Ref?_e.push(Pe.toString()):typeof Pe=="string"&&pe.push((0,U.stringToPDFString)(Pe));oe.resetForm={fields:pe,refs:_e,include:Ce};break;case"URI":ke=Ee.get("URI"),ke instanceof K.Name&&(ke="/"+ke.name);break;case"GoTo":xe=Ee.get("D");break;case"Launch":case"GoToR":const Ge=Ee.get("F");Ge instanceof K.Dict?ke=Ge.get("F")||null:typeof Ge=="string"&&(ke=Ge);let Ae=Ee.get("D");if(Ae&&(Ae instanceof K.Name&&(Ae=Ae.name),typeof ke=="string")){const Pe=ke.split("#")[0];typeof Ae=="string"?ke=Pe+"#"+Ae:Array.isArray(Ae)&&(ke=Pe+"#"+JSON.stringify(Ae))}const Ne=Ee.get("NewWindow");typeof Ne=="boolean"&&(oe.newWindow=Ne);break;case"Named":const Ze=Ee.get("N");Ze instanceof K.Name&&(oe.action=Ze.name);break;case"JavaScript":const ze=Ee.get("JS");let Te;ze instanceof e.BaseStream?Te=ze.getString():typeof ze=="string"&&(Te=ze);const Fe=Te&&(0,R.recoverJsURL)((0,U.stringToPDFString)(Te));if(Fe){ke=Fe.url,oe.newWindow=Fe.newWindow;break}default:if(ve==="JavaScript"||ve==="SubmitForm")break;(0,U.warn)(`parseDestDictionary - unsupported action: "${ve}".`);break}}else se.has("Dest")&&(xe=se.get("Dest"));if(typeof ke=="string"){const fe=(0,U.createValidAbsoluteUrl)(ke,me,{addDefaultProtocol:!0,tryConvertEncoding:!0});fe&&(oe.url=fe.href),oe.unsafeUrl=ke}xe&&(xe instanceof K.Name&&(xe=xe.name),typeof xe=="string"?oe.dest=(0,U.stringToPDFString)(xe):Array.isArray(xe)&&(oe.dest=xe))}}D.Catalog=Q},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.NumberTree=D.NameTree=void 0;var R=B(130),U=B(2);class K{constructor(ie,he,J){this.constructor===K&&(0,U.unreachable)("Cannot initialize NameOrNumberTree."),this.root=ie,this.xref=he,this._type=J}getAll(){const ie=new Map;if(!this.root)return ie;const he=this.xref,J=new R.RefSet;J.put(this.root);const W=[this.root];for(;W.length>0;){const X=he.fetchIfRef(W.shift());if(!(X instanceof R.Dict))continue;if(X.has("Kids")){const Q=X.get("Kids");if(!Array.isArray(Q))continue;for(const ce of Q){if(J.has(ce))throw new U.FormatError(`Duplicate entry in "${this._type}" tree.`);W.push(ce),J.put(ce)}continue}const L=X.get(this._type);if(Array.isArray(L))for(let Q=0,ce=L.length;Q<ce;Q+=2)ie.set(he.fetchIfRef(L[Q]),he.fetchIfRef(L[Q+1]))}return ie}get(ie){if(!this.root)return null;const he=this.xref;let J=he.fetchIfRef(this.root),W=0;const X=10;for(;J.has("Kids");){if(++W>X)return(0,U.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const Q=J.get("Kids");if(!Array.isArray(Q))return null;let ce=0,de=Q.length-1;for(;ce<=de;){const se=ce+de>>1,oe=he.fetchIfRef(Q[se]),me=oe.get("Limits");if(ie<he.fetchIfRef(me[0]))de=se-1;else if(ie>he.fetchIfRef(me[1]))ce=se+1;else{J=oe;break}}if(ce>de)return null}const L=J.get(this._type);if(Array.isArray(L)){let Q=0,ce=L.length-2;for(;Q<=ce;){const de=Q+ce>>1,se=de+(de&1),oe=he.fetchIfRef(L[se]);if(ie<oe)ce=se-2;else if(ie>oe)Q=se+2;else return he.fetchIfRef(L[se+1])}}return null}}class z extends K{constructor(ie,he){super(ie,he,"Names")}}D.NameTree=z;class e extends K{constructor(ie,he){super(ie,he,"Nums")}}D.NumberTree=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.clearGlobalCaches=K;var R=B(130),U=B(165);function K(){(0,R.clearPrimitiveCaches)(),(0,U.clearUnicodeCaches)()}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.FileSpec=void 0;var R=B(2),U=B(132),K=B(130);function z(ae){return ae.has("UF")?ae.get("UF"):ae.has("F")?ae.get("F"):ae.has("Unix")?ae.get("Unix"):ae.has("Mac")?ae.get("Mac"):ae.has("DOS")?ae.get("DOS"):null}class e{constructor(ie,he){ie instanceof K.Dict&&(this.xref=he,this.root=ie,ie.has("FS")&&(this.fs=ie.get("FS")),this.description=ie.has("Desc")?(0,R.stringToPDFString)(ie.get("Desc")):"",ie.has("RF")&&(0,R.warn)("Related file specifications are not supported"),this.contentAvailable=!0,ie.has("EF")||(this.contentAvailable=!1,(0,R.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const ie=z(this.root)||"unnamed";this._filename=(0,R.stringToPDFString)(ie).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=z(this.root.get("EF")));let ie=null;if(this.contentRef){const he=this.xref.fetchIfRef(this.contentRef);he instanceof U.BaseStream?ie=he.getBytes():(0,R.warn)("Embedded file specification points to non-existing/invalid content")}else(0,R.warn)("Embedded file specification does not have a content");return ie}get serializable(){return{filename:this.filename,content:this.content}}}D.FileSpec=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.MetadataParser=void 0;var R=B(191);class U{constructor(z){z=this._repair(z);const ae=new R.SimpleXMLParser({lowerCaseName:!0}).parseFromString(z);this._metadataMap=new Map,this._data=z,ae&&this._parse(ae)}_repair(z){return z.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,ae){const ie=ae.replace(/\\([0-3])([0-7])([0-7])/g,function(J,W,X,L){return String.fromCharCode(W*64+X*8+L*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(J,W){switch(W){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${W} isn't defined.`)}),he=[];for(let J=0,W=ie.length;J<W;J+=2){const X=ie.charCodeAt(J)*256+ie.charCodeAt(J+1);X>=32&&X<127&&X!==60&&X!==62&&X!==38?he.push(String.fromCharCode(X)):he.push("&#x"+(65536+X).toString(16).substring(1)+";")}return">"+he.join("")})}_getSequence(z){const e=z.nodeName;return e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"?null:z.childNodes.filter(ae=>ae.nodeName==="rdf:li")}_parseArray(z){if(!z.hasChildNodes())return;const[e]=z.childNodes,ae=this._getSequence(e)||[];this._metadataMap.set(z.nodeName,ae.map(ie=>ie.textContent.trim()))}_parse(z){let e=z.documentElement;if(e.nodeName!=="rdf:rdf")for(e=e.firstChild;e&&e.nodeName!=="rdf:rdf";)e=e.nextSibling;if(!(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes())){for(const ae of e.childNodes)if(ae.nodeName==="rdf:description")for(const ie of ae.childNodes){const he=ie.nodeName;switch(he){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(ie);continue}this._metadataMap.set(he,ie.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}D.MetadataParser=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.StructTreeRoot=D.StructTreePage=void 0;var R=B(130),U=B(2),K=B(195);const z=40,e={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};class ae{constructor(X){this.dict=X,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const X=this.dict.get("RoleMap");X instanceof R.Dict&&X.forEach((L,Q)=>{Q instanceof R.Name&&this.roleMap.set(L,Q.name)})}}D.StructTreeRoot=ae;class ie{constructor(X,L){this.tree=X,this.dict=L,this.kids=[],this.parseKids()}get role(){const X=this.dict.get("S"),L=X instanceof R.Name?X.name:"",{root:Q}=this.tree;return Q.roleMap.has(L)?Q.roleMap.get(L):L}parseKids(){let X=null;const L=this.dict.getRaw("Pg");L instanceof R.Ref&&(X=L.toString());const Q=this.dict.get("K");if(Array.isArray(Q))for(const ce of Q){const de=this.parseKid(X,ce);de&&this.kids.push(de)}else{const ce=this.parseKid(X,Q);ce&&this.kids.push(ce)}}parseKid(X,L){if(Number.isInteger(L))return this.tree.pageDict.objId!==X?null:new he({type:e.PAGE_CONTENT,mcid:L,pageObjId:X});let Q=null;if(L instanceof R.Ref?Q=this.dict.xref.fetch(L):L instanceof R.Dict&&(Q=L),!Q)return null;const ce=Q.getRaw("Pg");ce instanceof R.Ref&&(X=ce.toString());const de=Q.get("Type")instanceof R.Name?Q.get("Type").name:null;return de==="MCR"?this.tree.pageDict.objId!==X?null:new he({type:e.STREAM_CONTENT,refObjId:Q.getRaw("Stm")instanceof R.Ref?Q.getRaw("Stm").toString():null,pageObjId:X,mcid:Q.get("MCID")}):de==="OBJR"?this.tree.pageDict.objId!==X?null:new he({type:e.OBJECT,refObjId:Q.getRaw("Obj")instanceof R.Ref?Q.getRaw("Obj").toString():null,pageObjId:X}):new he({type:e.ELEMENT,dict:Q})}}class he{constructor(X){let{type:L,dict:Q=null,mcid:ce=null,pageObjId:de=null,refObjId:se=null}=X;this.type=L,this.dict=Q,this.mcid=ce,this.pageObjId=de,this.refObjId=se,this.parentNode=null}}class J{constructor(X,L){this.root=X,this.rootDict=X?X.dict:null,this.pageDict=L,this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const X=this.rootDict.get("ParentTree");if(!X)return;const L=this.pageDict.get("StructParents");if(!Number.isInteger(L))return;const ce=new K.NumberTree(X,this.rootDict.xref).get(L);if(!Array.isArray(ce))return;const de=new Map;for(const se of ce)se instanceof R.Ref&&this.addNode(this.rootDict.xref.fetch(se),de)}addNode(X,L){let Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Q>z)return(0,U.warn)("StructTree MAX_DEPTH reached."),null;if(L.has(X))return L.get(X);const ce=new ie(this,X);L.set(X,ce);const de=X.get("P");if(!de||(0,R.isName)(de.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(X,ce)||L.delete(X),ce;const se=this.addNode(de,L,Q+1);if(!se)return ce;let oe=!1;for(const me of se.kids)me.type===e.ELEMENT&&me.dict===X&&(me.parentNode=ce,oe=!0);return oe||L.delete(X),ce}addTopLevelNode(X,L){const Q=this.rootDict.get("K");if(!Q)return!1;if(Q instanceof R.Dict)return Q.objId!==X.objId?!1:(this.nodes[0]=L,!0);if(!Array.isArray(Q))return!0;let ce=!1;for(let de=0;de<Q.length;de++){const se=Q[de];se&&se.toString()===X.objId&&(this.nodes[de]=L,ce=!0)}return ce}get serializable(){function X(Q,ce){let de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(de>z){(0,U.warn)("StructTree too deep to be fully serialized.");return}const se=Object.create(null);se.role=Q.role,se.children=[],ce.children.push(se);const oe=Q.dict.get("Alt");typeof oe=="string"&&(se.alt=(0,U.stringToPDFString)(oe));const me=Q.dict.get("Lang");typeof me=="string"&&(se.lang=(0,U.stringToPDFString)(me));for(const Ee of Q.kids){const ke=Ee.type===e.ELEMENT?Ee.parentNode:null;if(ke){X(ke,se,de+1);continue}else Ee.type===e.PAGE_CONTENT||Ee.type===e.STREAM_CONTENT?se.children.push({type:"content",id:`page${Ee.pageObjId}_mcid${Ee.mcid}`}):Ee.type===e.OBJECT&&se.children.push({type:"object",id:Ee.refObjId})}}const L=Object.create(null);L.children=[],L.role="Root";for(const Q of this.nodes)Q&&X(Q,L);return L}}D.StructTreePage=J},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ObjectLoader=void 0;var R=B(130),U=B(132),K=B(131),z=B(2);function e(he){return he instanceof R.Ref||he instanceof R.Dict||he instanceof U.BaseStream||Array.isArray(he)}function ae(he,J){if(he instanceof R.Dict)he=he.getRawValues();else if(he instanceof U.BaseStream)he=he.dict.getRawValues();else if(!Array.isArray(he))return;for(const W of he)e(W)&&J.push(W)}class ie{constructor(J,W,X){this.dict=J,this.keys=W,this.xref=X,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:J,dict:W}=this;this.refSet=new R.RefSet;const X=[];for(let L=0,Q=J.length;L<Q;L++){const ce=W.getRaw(J[L]);ce!==void 0&&X.push(ce)}return this._walk(X)}async _walk(J){const W=[],X=[];for(;J.length;){let L=J.pop();if(L instanceof R.Ref){if(this.refSet.has(L))continue;try{this.refSet.put(L),L=this.xref.fetch(L)}catch(Q){if(!(Q instanceof K.MissingDataException)){(0,z.warn)(`ObjectLoader._walk - requesting all data: "${Q}".`),this.refSet=null;const{manager:ce}=this.xref.stream;return ce.requestAllChunks()}W.push(L),X.push({begin:Q.begin,end:Q.end})}}if(L instanceof U.BaseStream){const Q=L.getBaseStreams();if(Q){let ce=!1;for(const de of Q)de.isDataLoaded||(ce=!0,X.push({begin:de.start,end:de.end}));ce&&W.push(L)}}ae(L,J)}if(X.length){await this.xref.stream.manager.requestRanges(X);for(const L of W)L instanceof R.Ref&&this.refSet.remove(L);return this._walk(W)}this.refSet=null}}D.ObjectLoader=ie},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XFAFactory=void 0;var R=B(202),U=B(206),K=B(212),z=B(210),e=B(203),ae=B(2),ie=B(213),he=B(223);class J{constructor(X){try{this.root=new ie.XFAParser().parse(J._createDocument(X));const L=new U.Binder(this.root);this.form=L.bind(),this.dataHandler=new K.DataHandler(this.root,L.getData()),this.form[R.$globalData].template=this.form}catch(L){(0,ae.warn)(`XFA - an error occurred during parsing and binding: ${L}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const X=this.form[R.$toPages]();return new Promise((L,Q)=>{const ce=()=>{try{const de=X.next();de.done?L(de.value):setTimeout(ce,0)}catch(de){Q(de)}};setTimeout(ce,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(X=>{const{width:L,height:Q}=X.attributes.style;return[0,0,parseInt(L),parseInt(Q)]})}catch(X){(0,ae.warn)(`XFA - an error occurred during layout: ${X}`)}}getBoundingBox(X){return this.dims[X]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(X){this.form[R.$globalData].images=X}setFonts(X){this.form[R.$globalData].fontFinder=new z.FontFinder(X);const L=[];for(let Q of this.form[R.$globalData].usedTypefaces)Q=(0,e.stripQuotes)(Q),this.form[R.$globalData].fontFinder.find(Q)||L.push(Q);return L.length>0?L:null}appendFonts(X,L){this.form[R.$globalData].fontFinder.add(X,L)}async getPages(){this.pages||await this._createPages();const X=this.pages;return this.pages=null,X}serializeData(X){return this.dataHandler.serialize(X)}static _createDocument(X){return X["/xdp:xdp"]?Object.values(X).join(""):X["xdp:xdp"]}static getRichTextAsHtml(X){if(!X||typeof X!="string")return null;try{let L=new ie.XFAParser(he.XhtmlNamespace,!0).parse(X);if(!["body","xhtml"].includes(L[R.$nodeName])){const se=he.XhtmlNamespace.body({});se[R.$appendChild](L),L=se}const Q=L[R.$toHTML]();if(!Q.success)return null;const{html:ce}=Q,{attributes:de}=ce;return de&&(de.class&&(de.class=de.class.filter(se=>!se.startsWith("xfa"))),de.dir="auto"),{html:ce,str:L[R.$text]()}}catch(L){(0,ae.warn)(`XFA - an error occurred during parsing of rich text: ${L}`)}return null}}D.XFAFactory=J},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XmlObject=D.XFAObjectArray=D.XFAObject=D.XFAAttribute=D.StringObject=D.OptionObject=D.Option10=D.Option01=D.IntegerObject=D.ContentObject=D.$uid=D.$toStyle=D.$toString=D.$toPages=D.$toHTML=D.$text=D.$tabIndex=D.$setValue=D.$setSetAttributes=D.$setId=D.$searchNode=D.$root=D.$resolvePrototypes=D.$removeChild=D.$pushPara=D.$pushGlyphs=D.$popPara=D.$onText=D.$onChildCheck=D.$onChild=D.$nsAttributes=D.$nodeName=D.$namespaceId=D.$isUsable=D.$isTransparent=D.$isThereMoreWidth=D.$isSplittable=D.$isNsAgnostic=D.$isDescendent=D.$isDataValue=D.$isCDATAXml=D.$isBindable=D.$insertAt=D.$indexOf=D.$ids=D.$hasSettableValue=D.$globalData=D.$getTemplateRoot=D.$getSubformParent=D.$getRealChildrenByNameIt=D.$getParent=D.$getNextPage=D.$getExtra=D.$getDataValue=D.$getContainedChildren=D.$getChildrenByNameIt=D.$getChildrenByName=D.$getChildrenByClass=D.$getChildren=D.$getAvailableSpace=D.$getAttributes=D.$getAttributeIt=D.$flushHTML=D.$finalize=D.$extra=D.$dump=D.$data=D.$content=D.$consumed=D.$clone=D.$cleanup=D.$cleanPage=D.$clean=D.$childrenToHTML=D.$appendChild=D.$addHTML=D.$acceptWhitespace=void 0;var R=B(203),U=B(2),K=B(131),z=B(204),e=B(205);const ae=Symbol();D.$acceptWhitespace=ae;const ie=Symbol();D.$addHTML=ie;const he=Symbol();D.$appendChild=he;const J=Symbol();D.$childrenToHTML=J;const W=Symbol();D.$clean=W;const X=Symbol();D.$cleanPage=X;const L=Symbol();D.$cleanup=L;const Q=Symbol();D.$clone=Q;const ce=Symbol();D.$consumed=ce;const de=Symbol("content");D.$content=de;const se=Symbol("data");D.$data=se;const oe=Symbol();D.$dump=oe;const me=Symbol("extra");D.$extra=me;const Ee=Symbol();D.$finalize=Ee;const ke=Symbol();D.$flushHTML=ke;const xe=Symbol();D.$getAttributeIt=xe;const fe=Symbol();D.$getAttributes=fe;const ve=Symbol();D.$getAvailableSpace=ve;const ye=Symbol();D.$getChildrenByClass=ye;const Ce=Symbol();D.$getChildrenByName=Ce;const pe=Symbol();D.$getChildrenByNameIt=pe;const _e=Symbol();D.$getDataValue=_e;const Ge=Symbol();D.$getExtra=Ge;const Ae=Symbol();D.$getRealChildrenByNameIt=Ae;const Ne=Symbol();D.$getChildren=Ne;const Ze=Symbol();D.$getContainedChildren=Ze;const ze=Symbol();D.$getNextPage=ze;const Te=Symbol();D.$getSubformParent=Te;const Fe=Symbol();D.$getParent=Fe;const Pe=Symbol();D.$getTemplateRoot=Pe;const we=Symbol();D.$globalData=we;const Ie=Symbol();D.$hasSettableValue=Ie;const Be=Symbol();D.$ids=Be;const Ke=Symbol();D.$indexOf=Ke;const Ve=Symbol();D.$insertAt=Ve;const je=Symbol();D.$isCDATAXml=je;const Le=Symbol();D.$isBindable=Le;const et=Symbol();D.$isDataValue=et;const Qe=Symbol();D.$isDescendent=Qe;const Ue=Symbol();D.$isNsAgnostic=Ue;const $e=Symbol();D.$isSplittable=$e;const Ye=Symbol();D.$isThereMoreWidth=Ye;const tt=Symbol();D.$isTransparent=tt;const ot=Symbol();D.$isUsable=ot;const st=Symbol(),dt=Symbol("namespaceId");D.$namespaceId=dt;const ct=Symbol("nodeName");D.$nodeName=ct;const mt=Symbol();D.$nsAttributes=mt;const ut=Symbol();D.$onChild=ut;const rt=Symbol();D.$onChildCheck=rt;const He=Symbol();D.$onText=He;const Je=Symbol();D.$pushGlyphs=Je;const St=Symbol();D.$popPara=St;const bt=Symbol();D.$pushPara=bt;const pt=Symbol();D.$removeChild=pt;const wt=Symbol("root");D.$root=wt;const Pt=Symbol();D.$resolvePrototypes=Pt;const Nt=Symbol();D.$searchNode=Nt;const Vt=Symbol();D.$setId=Vt;const Wt=Symbol();D.$setSetAttributes=Wt;const Mt=Symbol();D.$setValue=Mt;const $t=Symbol();D.$tabIndex=$t;const Yt=Symbol();D.$text=Yt;const Ft=Symbol();D.$toPages=Ft;const Jt=Symbol();D.$toHTML=Jt;const er=Symbol();D.$toString=er;const Bt=Symbol();D.$toStyle=Bt;const It=Symbol("uid");D.$uid=It;const Dt=Symbol(),Zt=Symbol(),gr=Symbol(),fr=Symbol("_children"),Dr=Symbol(),kr=Symbol(),cr=Symbol(),Ar=Symbol(),yt=Symbol(),vt=Symbol(),Xt=Symbol(),At=Symbol(),zt=Symbol(),Br=Symbol("parent"),br=Symbol(),Ur=Symbol(),un=Symbol();let sr=0;const ur=z.NamespaceIds.datasets.id;class Cr{constructor(ar,xr){let Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this[dt]=ar,this[ct]=xr,this[Xt]=Lr,this[Br]=null,this[fr]=[],this[It]=`${xr}${sr++}`,this[we]=null}[ut](ar){if(!this[Xt]||!this[rt](ar))return!1;const xr=ar[ct],Lr=this[xr];if(Lr instanceof Tr){if(Lr.push(ar))return this[he](ar),!0}else return Lr!==null&&this[pt](Lr),this[xr]=ar,this[he](ar),!0;let Rr="";return this.id?Rr=` (id: ${this.id})`:this.name&&(Rr=` (name: ${this.name} ${this.h.value})`),(0,U.warn)(`XFA - node "${this[ct]}"${Rr} has already enough "${xr}"!`),!1}[rt](ar){return this.hasOwnProperty(ar[ct])&&ar[dt]===this[dt]}[Ue](){return!1}[ae](){return!1}[je](){return!1}[Le](){return!1}[St](){this.para&&this[Pe]()[me].paraStack.pop()}[bt](){this[Pe]()[me].paraStack.push(this.para)}[Vt](ar){this.id&&this[dt]===z.NamespaceIds.template.id&&ar.set(this.id,this)}[Pe](){return this[we].template}[$e](){return!1}[Ye](){return!1}[he](ar){ar[Br]=this,this[fr].push(ar),!ar[we]&&this[we]&&(ar[we]=this[we])}[pt](ar){const xr=this[fr].indexOf(ar);this[fr].splice(xr,1)}[Ie](){return this.hasOwnProperty("value")}[Mt](ar){}[He](ar){}[Ee](){}[W](ar){delete this[Xt],this[L]&&(ar.clean(this[L]),delete this[L])}[Ke](ar){return this[fr].indexOf(ar)}[Ve](ar,xr){xr[Br]=this,this[fr].splice(ar,0,xr),!xr[we]&&this[we]&&(xr[we]=this[we])}[tt](){return!this.name}[st](){return""}[Yt](){return this[fr].length===0?this[de]:this[fr].map(ar=>ar[Yt]()).join("")}get[gr](){const ar=Object.getPrototypeOf(this);if(!ar._attributes){const xr=ar._attributes=new Set;for(const Lr of Object.getOwnPropertyNames(this)){if(this[Lr]===null||this[Lr]instanceof Cr||this[Lr]instanceof Tr)break;xr.add(Lr)}}return(0,U.shadow)(this,gr,ar._attributes)}[Qe](ar){let xr=this;for(;xr;){if(xr===ar)return!0;xr=xr[Fe]()}return!1}[Fe](){return this[Br]}[Te](){return this[Fe]()}[Ne](){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ar?this[ar]:this[fr]}[oe](){const ar=Object.create(null);this[de]&&(ar.$content=this[de]);for(const xr of Object.getOwnPropertyNames(this)){const Lr=this[xr];Lr!==null&&(Lr instanceof Cr?ar[xr]=Lr[oe]():Lr instanceof Tr?Lr.isEmpty()||(ar[xr]=Lr.dump()):ar[xr]=Lr)}return ar}[Bt](){return null}[Jt](){return R.HTMLResult.EMPTY}*[Ze](){for(const ar of this[Ne]())yield ar}*[Ar](ar,xr){for(const Lr of this[Ze]())if(!ar||xr===ar.has(Lr[ct])){const Rr=this[ve](),Mr=Lr[Jt](Rr);Mr.success||(this[me].failingNode=Lr),yield Mr}}[ke](){return null}[ie](ar,xr){this[me].children.push(ar)}[ve](){}[J](ar){let{filter:xr=null,include:Lr=!0}=ar;if(!this[me].generator)this[me].generator=this[Ar](xr,Lr);else{const Rr=this[ve](),Mr=this[me].failingNode[Jt](Rr);if(!Mr.success)return Mr;Mr.html&&this[ie](Mr.html,Mr.bbox),delete this[me].failingNode}for(;;){const Rr=this[me].generator.next();if(Rr.done)break;const Mr=Rr.value;if(!Mr.success)return Mr;Mr.html&&this[ie](Mr.html,Mr.bbox)}return this[me].generator=null,R.HTMLResult.EMPTY}[Wt](ar){this[Ur]=new Set(Object.keys(ar))}[vt](ar){const xr=this[gr],Lr=this[Ur];return[...ar].filter(Rr=>xr.has(Rr)&&!Lr.has(Rr))}[Pt](ar){let xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const Lr of this[fr])Lr[br](ar,xr)}[br](ar,xr){const Lr=this[yt](ar,xr);Lr?this[Dt](Lr,ar,xr):this[Pt](ar,xr)}[yt](ar,xr){const{use:Lr,usehref:Rr}=this;if(!Lr&&!Rr)return null;let Mr=null,an=null,gn=null,dn=Lr;if(Rr?(dn=Rr,Rr.startsWith("#som(")&&Rr.endsWith(")")?an=Rr.slice(5,Rr.length-1):Rr.startsWith(".#som(")&&Rr.endsWith(")")?an=Rr.slice(6,Rr.length-1):Rr.startsWith("#")?gn=Rr.slice(1):Rr.startsWith(".#")&&(gn=Rr.slice(2))):Lr.startsWith("#")?gn=Lr.slice(1):an=Lr,this.use=this.usehref="",gn?Mr=ar.get(gn):(Mr=(0,e.searchNode)(ar.get(wt),this,an,!0,!1),Mr&&(Mr=Mr[0])),!Mr)return(0,U.warn)(`XFA - Invalid prototype reference: ${dn}.`),null;if(Mr[ct]!==this[ct])return(0,U.warn)(`XFA - Incompatible prototype: ${Mr[ct]} !== ${this[ct]}.`),null;if(xr.has(Mr))return(0,U.warn)("XFA - Cycle detected in prototypes use."),null;xr.add(Mr);const pn=Mr[yt](ar,xr);return pn&&Mr[Dt](pn,ar,xr),Mr[Pt](ar,xr),xr.delete(Mr),Mr}[Dt](ar,xr,Lr){if(Lr.has(ar)){(0,U.warn)("XFA - Cycle detected in prototypes use.");return}!this[de]&&ar[de]&&(this[de]=ar[de]),new Set(Lr).add(ar);for(const Mr of this[vt](ar[Ur]))this[Mr]=ar[Mr],this[Ur]&&this[Ur].add(Mr);for(const Mr of Object.getOwnPropertyNames(this)){if(this[gr].has(Mr))continue;const an=this[Mr],gn=ar[Mr];if(an instanceof Tr){for(const dn of an[fr])dn[br](xr,Lr);for(let dn=an[fr].length,pn=gn[fr].length;dn<pn;dn++){const Mn=ar[fr][dn][Q]();if(an.push(Mn))Mn[Br]=this,this[fr].push(Mn),Mn[br](xr,Lr);else break}continue}if(an!==null){an[Pt](xr,Lr),gn&&an[Dt](gn,xr,Lr);continue}if(gn!==null){const dn=gn[Q]();dn[Br]=this,this[Mr]=dn,this[fr].push(dn),dn[br](xr,Lr)}}}static[Dr](ar){return Array.isArray(ar)?ar.map(xr=>Cr[Dr](xr)):typeof ar=="object"&&ar!==null?Object.assign({},ar):ar}[Q](){const ar=Object.create(Object.getPrototypeOf(this));for(const xr of Object.getOwnPropertySymbols(this))try{ar[xr]=this[xr]}catch{(0,U.shadow)(ar,xr,this[xr])}ar[It]=`${ar[ct]}${sr++}`,ar[fr]=[];for(const xr of Object.getOwnPropertyNames(this)){if(this[gr].has(xr)){ar[xr]=Cr[Dr](this[xr]);continue}const Lr=this[xr];Lr instanceof Tr?ar[xr]=new Tr(Lr[At]):ar[xr]=null}for(const xr of this[fr]){const Lr=xr[ct],Rr=xr[Q]();ar[fr].push(Rr),Rr[Br]=ar,ar[Lr]===null?ar[Lr]=Rr:ar[Lr][fr].push(Rr)}return ar}[Ne](){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ar?this[fr].filter(xr=>xr[ct]===ar):this[fr]}[ye](ar){return this[ar]}[Ce](ar,xr){let Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Array.from(this[pe](ar,xr,Lr))}*[pe](ar,xr){let Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(ar==="parent"){yield this[Br];return}for(const Rr of this[fr])Rr[ct]===ar&&(yield Rr),Rr.name===ar&&(yield Rr),(xr||Rr[tt]())&&(yield*Rr[pe](ar,xr,!1));Lr&&this[gr].has(ar)&&(yield new jt(this,ar,this[ar]))}}D.XFAObject=Cr;class Tr{constructor(){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1/0;this[At]=ar,this[fr]=[]}push(ar){return this[fr].length<=this[At]?(this[fr].push(ar),!0):((0,U.warn)(`XFA - node "${ar[ct]}" accepts no more than ${this[At]} children`),!1)}isEmpty(){return this[fr].length===0}dump(){return this[fr].length===1?this[fr][0][oe]():this[fr].map(ar=>ar[oe]())}[Q](){const ar=new Tr(this[At]);return ar[fr]=this[fr].map(xr=>xr[Q]()),ar}get children(){return this[fr]}clear(){this[fr].length=0}}D.XFAObjectArray=Tr;class jt{constructor(ar,xr,Lr){this[Br]=ar,this[ct]=xr,this[de]=Lr,this[ce]=!1,this[It]=`attribute${sr++}`}[Fe](){return this[Br]}[et](){return!0}[_e](){return this[de].trim()}[Mt](ar){ar=ar.value||"",this[de]=ar.toString()}[Yt](){return this[de]}[Qe](ar){return this[Br]===ar||this[Br][Qe](ar)}}D.XFAAttribute=jt;class Wr extends Cr{constructor(ar,xr){let Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(super(ar,xr),this[de]="",this[kr]=null,xr!=="#text"){const Rr=new Map;this[Zt]=Rr;for(const[Mr,an]of Object.entries(Lr))Rr.set(Mr,new jt(this,Mr,an));if(Lr.hasOwnProperty(mt)){const Mr=Lr[mt].xfa.dataNode;Mr!==void 0&&(Mr==="dataGroup"?this[kr]=!1:Mr==="dataValue"&&(this[kr]=!0))}}this[ce]=!1}[er](ar){const xr=this[ct];if(xr==="#text"){ar.push((0,K.encodeToXmlString)(this[de]));return}const Lr=(0,U.utf8StringToString)(xr),Rr=this[dt]===ur?"xfa:":"";ar.push(`<${Rr}${Lr}`);for(const[Mr,an]of this[Zt].entries()){const gn=(0,U.utf8StringToString)(Mr);ar.push(` ${gn}="${(0,K.encodeToXmlString)(an[de])}"`)}if(this[kr]!==null&&(this[kr]?ar.push(' xfa:dataNode="dataValue"'):ar.push(' xfa:dataNode="dataGroup"')),!this[de]&&this[fr].length===0){ar.push("/>");return}if(ar.push(">"),this[de])typeof this[de]=="string"?ar.push((0,K.encodeToXmlString)(this[de])):this[de][er](ar);else for(const Mr of this[fr])Mr[er](ar);ar.push(`</${Rr}${Lr}>`)}[ut](ar){if(this[de]){const xr=new Wr(this[dt],"#text");this[he](xr),xr[de]=this[de],this[de]=""}return this[he](ar),!0}[He](ar){this[de]+=ar}[Ee](){if(this[de]&&this[fr].length>0){const ar=new Wr(this[dt],"#text");this[he](ar),ar[de]=this[de],delete this[de]}}[Jt](){return this[ct]==="#text"?R.HTMLResult.success({name:"#text",value:this[de]}):R.HTMLResult.EMPTY}[Ne](){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ar?this[fr].filter(xr=>xr[ct]===ar):this[fr]}[fe](){return this[Zt]}[ye](ar){const xr=this[Zt].get(ar);return xr!==void 0?xr:this[Ne](ar)}*[pe](ar,xr){const Lr=this[Zt].get(ar);Lr&&(yield Lr);for(const Rr of this[fr])Rr[ct]===ar&&(yield Rr),xr&&(yield*Rr[pe](ar,xr))}*[xe](ar,xr){const Lr=this[Zt].get(ar);Lr&&(!xr||!Lr[ce])&&(yield Lr);for(const Rr of this[fr])yield*Rr[xe](ar,xr)}*[Ae](ar,xr,Lr){for(const Rr of this[fr])Rr[ct]===ar&&(!Lr||!Rr[ce])&&(yield Rr),xr&&(yield*Rr[Ae](ar,xr,Lr))}[et](){return this[kr]===null?this[fr].length===0||this[fr][0][dt]===z.NamespaceIds.xhtml.id:this[kr]}[_e](){return this[kr]===null?this[fr].length===0?this[de].trim():this[fr][0][dt]===z.NamespaceIds.xhtml.id?this[fr][0][Yt]().trim():null:this[de].trim()}[Mt](ar){ar=ar.value||"",this[de]=ar.toString()}[oe](){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const xr=Object.create(null);ar&&(xr.$ns=this[dt]),this[de]&&(xr.$content=this[de]),xr.$name=this[ct],xr.children=[];for(const Lr of this[fr])xr.children.push(Lr[oe](ar));xr.attributes=Object.create(null);for(const[Lr,Rr]of this[Zt])xr.attributes[Lr]=Rr[de];return xr}}D.XmlObject=Wr;class ir extends Cr{constructor(ar,xr){super(ar,xr),this[de]=""}[He](ar){this[de]+=ar}[Ee](){}}D.ContentObject=ir;class Gr extends ir{constructor(ar,xr,Lr){super(ar,xr),this[zt]=Lr}[Ee](){this[de]=(0,R.getKeyword)({data:this[de],defaultValue:this[zt][0],validate:ar=>this[zt].includes(ar)})}[W](ar){super[W](ar),delete this[zt]}}D.OptionObject=Gr;class Jr extends ir{[Ee](){this[de]=this[de].trim()}}D.StringObject=Jr;class Xr extends ir{constructor(ar,xr,Lr,Rr){super(ar,xr),this[cr]=Lr,this[un]=Rr}[Ee](){this[de]=(0,R.getInteger)({data:this[de],defaultValue:this[cr],validate:this[un]})}[W](ar){super[W](ar),delete this[cr],delete this[un]}}D.IntegerObject=Xr;class fn extends Xr{constructor(ar,xr){super(ar,xr,0,Lr=>Lr===1)}}D.Option01=fn;class cn extends Xr{constructor(ar,xr){super(ar,xr,1,Lr=>Lr===0)}}D.Option10=cn},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.HTMLResult=void 0,D.getBBox=Q,D.getColor=L,D.getFloat=ae,D.getInteger=e,D.getKeyword=ie,D.getMeasurement=J,D.getRatio=W,D.getRelevant=X,D.getStringOption=he,D.stripQuotes=z;var R=B(2);const U={pt:de=>de,cm:de=>de/2.54*72,mm:de=>de/(10*2.54)*72,in:de=>de*72,px:de=>de},K=/([+-]?\d+\.?\d*)(.*)/;function z(de){return de.startsWith("'")||de.startsWith('"')?de.slice(1,de.length-1):de}function e(de){let{data:se,defaultValue:oe,validate:me}=de;if(!se)return oe;se=se.trim();const Ee=parseInt(se,10);return!isNaN(Ee)&&me(Ee)?Ee:oe}function ae(de){let{data:se,defaultValue:oe,validate:me}=de;if(!se)return oe;se=se.trim();const Ee=parseFloat(se);return!isNaN(Ee)&&me(Ee)?Ee:oe}function ie(de){let{data:se,defaultValue:oe,validate:me}=de;return se?(se=se.trim(),me(se)?se:oe):oe}function he(de,se){return ie({data:de,defaultValue:se[0],validate:oe=>se.includes(oe)})}function J(de){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0";if(se=se||"0",!de)return J(se);const oe=de.trim().match(K);if(!oe)return J(se);const[,me,Ee]=oe,ke=parseFloat(me);if(isNaN(ke))return J(se);if(ke===0)return 0;const xe=U[Ee];return xe?xe(ke):ke}function W(de){if(!de)return{num:1,den:1};const se=de.trim().split(/\s*:\s*/).map(Ee=>parseFloat(Ee)).filter(Ee=>!isNaN(Ee));if(se.length===1&&se.push(1),se.length===0)return{num:1,den:1};const[oe,me]=se;return{num:oe,den:me}}function X(de){return de?de.trim().split(/\s+/).map(se=>({excluded:se[0]==="-",viewname:se.substring(1)})):[]}function L(de){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0],[oe,me,Ee]=se;if(!de)return{r:oe,g:me,b:Ee};const ke=de.trim().split(/\s*,\s*/).map(xe=>Math.min(Math.max(0,parseInt(xe.trim(),10)),255)).map(xe=>isNaN(xe)?0:xe);return ke.length<3?{r:oe,g:me,b:Ee}:([oe,me,Ee]=ke,{r:oe,g:me,b:Ee})}function Q(de){if(!de)return{x:-1,y:-1,width:-1,height:-1};const oe=de.trim().split(/\s*,\s*/).map(fe=>J(fe,"-1"));if(oe.length<4||oe[2]<0||oe[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[me,Ee,ke,xe]=oe;return{x:me,y:Ee,width:ke,height:xe}}class ce{static get FAILURE(){return(0,R.shadow)(this,"FAILURE",new ce(!1,null,null,null))}static get EMPTY(){return(0,R.shadow)(this,"EMPTY",new ce(!0,null,null,null))}constructor(se,oe,me,Ee){this.success=se,this.html=oe,this.bbox=me,this.breakNode=Ee}isBreak(){return!!this.breakNode}static breakNode(se){return new ce(!1,null,null,se)}static success(se){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new ce(!0,se,oe,null)}}D.HTMLResult=ce},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.NamespaceIds=D.$buildXFAObject=void 0;const B=Symbol();D.$buildXFAObject=B;const R={config:{id:0,check:U=>U.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:U=>U==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:U=>U==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:U=>U==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:U=>U.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:U=>U.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:U=>U==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:U=>U==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:U=>U==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:U=>U==="http://ns.adobe.com/xmpmeta/"}};D.NamespaceIds=R},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.createDataNode=ce,D.searchNode=L;var R=B(202),U=B(204),K=B(2);const z=/^[^.[]+/,e=/^[^\]]+/,ae={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},ie=new Map([["$data",(de,se)=>de.datasets?de.datasets.data:de],["$record",(de,se)=>(de.datasets?de.datasets.data:de)[R.$getChildren]()[0]],["$template",(de,se)=>de.template],["$connectionSet",(de,se)=>de.connectionSet],["$form",(de,se)=>de.form],["$layout",(de,se)=>de.layout],["$host",(de,se)=>de.host],["$dataWindow",(de,se)=>de.dataWindow],["$event",(de,se)=>de.event],["!",(de,se)=>de.datasets],["$xfa",(de,se)=>de],["xfa",(de,se)=>de],["$",(de,se)=>se]]),he=new WeakMap,J=U.NamespaceIds.datasets.id;function W(de){return de=de.trim(),de==="*"?1/0:parseInt(de,10)||0}function X(de,se){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,me=de.match(z);if(!me)return null;let[Ee]=me;const ke=[{name:Ee,cacheName:"."+Ee,index:0,js:null,formCalc:null,operator:ae.dot}];let xe=Ee.length;for(;xe<de.length;){const fe=xe;if(de.charAt(xe++)==="["){if(me=de.slice(xe).match(e),!me)return(0,K.warn)("XFA - Invalid index in SOM expression"),null;ke.at(-1).index=W(me[0]),xe+=me[0].length+1;continue}let ye;switch(de.charAt(xe)){case".":if(!se)return null;xe++,ye=ae.dotDot;break;case"#":xe++,ye=ae.dotHash;break;case"[":if(oe)return(0,K.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;ye=ae.dotBracket;break;case"(":if(oe)return(0,K.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;ye=ae.dotParen;break;default:ye=ae.dot;break}if(me=de.slice(xe).match(z),!me)break;[Ee]=me,xe+=Ee.length,ke.push({name:Ee,cacheName:de.slice(fe,xe),operator:ye,index:0,js:null,formCalc:null})}return ke}function L(de,se,oe){let me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,Ee=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;const ke=X(oe,me);if(!ke)return null;const xe=ie.get(ke[0].name);let fe=0,ve;xe?(ve=!0,de=[xe(de,se)],fe=1):(ve=se===null,de=[se||de]);for(let ye=ke.length;fe<ye;fe++){const{name:Ce,cacheName:pe,operator:_e,index:Ge}=ke[fe],Ae=[];for(const Ne of de){if(!(Ne instanceof R.XFAObject))continue;let Ze,ze;if(Ee&&(ze=he.get(Ne),ze||(ze=new Map,he.set(Ne,ze)),Ze=ze.get(pe)),!Ze){switch(_e){case ae.dot:Ze=Ne[R.$getChildrenByName](Ce,!1);break;case ae.dotDot:Ze=Ne[R.$getChildrenByName](Ce,!0);break;case ae.dotHash:Ze=Ne[R.$getChildrenByClass](Ce),Ze instanceof R.XFAObjectArray?Ze=Ze.children:Ze=[Ze];break}Ee&&ze.set(pe,Ze)}Ze.length>0&&Ae.push(Ze)}if(Ae.length===0&&!ve&&fe===0){if(se=se[R.$getParent](),!se)return null;fe=-1,de=[se];continue}isFinite(Ge)?de=Ae.filter(Ne=>Ge<Ne.length).map(Ne=>Ne[Ge]):de=Ae.flat()}return de.length===0?null:de}function Q(de,se){let oe=null;for(const{name:me,index:Ee}of se){for(let ke=0,xe=isFinite(Ee)?Ee:0;ke<=xe;ke++){const fe=de[R.$namespaceId]===J?-1:de[R.$namespaceId];oe=new R.XmlObject(fe,me),de[R.$appendChild](oe)}de=oe}return oe}function ce(de,se,oe){const me=X(oe);if(!me||me.some(xe=>xe.operator===ae.dotDot))return null;const Ee=ie.get(me[0].name);let ke=0;Ee?(de=Ee(de,se),ke=1):de=se||de;for(let xe=me.length;ke<xe;ke++){const{name:fe,operator:ve,index:ye}=me[ke];if(!isFinite(ye))return me[ke].index=0,Q(de,me.slice(ke));let Ce;switch(ve){case ae.dot:Ce=de[R.$getChildrenByName](fe,!1);break;case ae.dotDot:Ce=de[R.$getChildrenByName](fe,!0);break;case ae.dotHash:Ce=de[R.$getChildrenByClass](fe),Ce instanceof R.XFAObjectArray?Ce=Ce.children:Ce=[Ce];break}if(Ce.length===0)return Q(de,me.slice(ke));if(ye<Ce.length){const pe=Ce[ye];if(!(pe instanceof R.XFAObject))return(0,K.warn)("XFA - Cannot create a node."),null;de=pe}else return me[ke].index=ye-Ce.length,Q(de,me.slice(ke))}return null}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Binder=void 0;var R=B(202),U=B(207),K=B(205),z=B(204),e=B(2);const ae=z.NamespaceIds.datasets.id;function ie(J){const W=new U.Text({});return W[R.$content]=J,W}class he{constructor(W){this.root=W,this.datasets=W.datasets,W.datasets&&W.datasets.data?this.data=W.datasets.data:this.data=new R.XmlObject(z.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[R.$getChildren]().length===0,this.root.form=this.form=W.template[R.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(W,X,L){if(W[R.$data]=X,W[R.$hasSettableValue]())if(X[R.$isDataValue]()){const Q=X[R.$getDataValue]();W[R.$setValue](ie(Q))}else if(W instanceof U.Field&&W.ui&&W.ui.choiceList&&W.ui.choiceList.open==="multiSelect"){const Q=X[R.$getChildren]().map(ce=>ce[R.$content].trim()).join(`
`);W[R.$setValue](ie(Q))}else this._isConsumeData()&&(0,e.warn)("XFA - Nodes haven't the same type.");else!X[R.$isDataValue]()||this._isMatchTemplate()?this._bindElement(W,X):(0,e.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(W,X,L,Q){if(!W)return null;let ce,de;for(let se=0;se<3;se++){for(ce=L[R.$getRealChildrenByNameIt](W,!1,!0);de=ce.next().value,!!de;)if(X===de[R.$isDataValue]())return de;if(L[R.$namespaceId]===z.NamespaceIds.datasets.id&&L[R.$nodeName]==="data")break;L=L[R.$getParent]()}return Q?(ce=this.data[R.$getRealChildrenByNameIt](W,!0,!1),de=ce.next().value,de||(ce=this.data[R.$getAttributeIt](W,!0),de=ce.next().value,de&&de[R.$isDataValue]())?de:null):null}_setProperties(W,X){if(W.hasOwnProperty("setProperty"))for(const{ref:L,target:Q,connection:ce}of W.setProperty.children){if(ce||!L)continue;const de=(0,K.searchNode)(this.root,X,L,!1,!1);if(!de){(0,e.warn)(`XFA - Invalid reference: ${L}.`);continue}const[se]=de;if(!se[R.$isDescendent](this.data)){(0,e.warn)("XFA - Invalid node: must be a data node.");continue}const oe=(0,K.searchNode)(this.root,W,Q,!1,!1);if(!oe){(0,e.warn)(`XFA - Invalid target: ${Q}.`);continue}const[me]=oe;if(!me[R.$isDescendent](W)){(0,e.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const Ee=me[R.$getParent]();if(me instanceof U.SetProperty||Ee instanceof U.SetProperty){(0,e.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(me instanceof U.BindItems||Ee instanceof U.BindItems){(0,e.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const ke=se[R.$text](),xe=me[R.$nodeName];if(me instanceof R.XFAAttribute){const fe=Object.create(null);fe[xe]=ke;const ve=Reflect.construct(Object.getPrototypeOf(Ee).constructor,[fe]);Ee[xe]=ve[xe];continue}if(!me.hasOwnProperty(R.$content)){(0,e.warn)("XFA - Invalid node to use in setProperty");continue}me[R.$data]=se,me[R.$content]=ke,me[R.$finalize]()}}_bindItems(W,X){if(!W.hasOwnProperty("items")||!W.hasOwnProperty("bindItems")||W.bindItems.isEmpty())return;for(const ce of W.items.children)W[R.$removeChild](ce);W.items.clear();const L=new U.Items({}),Q=new U.Items({});W[R.$appendChild](L),W.items.push(L),W[R.$appendChild](Q),W.items.push(Q);for(const{ref:ce,labelRef:de,valueRef:se,connection:oe}of W.bindItems.children){if(oe||!ce)continue;const me=(0,K.searchNode)(this.root,X,ce,!1,!1);if(!me){(0,e.warn)(`XFA - Invalid reference: ${ce}.`);continue}for(const Ee of me){if(!Ee[R.$isDescendent](this.datasets)){(0,e.warn)(`XFA - Invalid ref (${ce}): must be a datasets child.`);continue}const ke=(0,K.searchNode)(this.root,Ee,de,!0,!1);if(!ke){(0,e.warn)(`XFA - Invalid label: ${de}.`);continue}const[xe]=ke;if(!xe[R.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid label: must be a datasets child.");continue}const fe=(0,K.searchNode)(this.root,Ee,se,!0,!1);if(!fe){(0,e.warn)(`XFA - Invalid value: ${se}.`);continue}const[ve]=fe;if(!ve[R.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid value: must be a datasets child.");continue}const ye=ie(xe[R.$text]()),Ce=ie(ve[R.$text]());L[R.$appendChild](ye),L.text.push(ye),Q[R.$appendChild](Ce),Q.text.push(Ce)}}}_bindOccurrences(W,X,L){let Q;if(X.length>1&&(Q=W[R.$clone](),Q[R.$removeChild](Q.occur),Q.occur=null),this._bindValue(W,X[0],L),this._setProperties(W,X[0]),this._bindItems(W,X[0]),X.length===1)return;const ce=W[R.$getParent](),de=W[R.$nodeName],se=ce[R.$indexOf](W);for(let oe=1,me=X.length;oe<me;oe++){const Ee=X[oe],ke=Q[R.$clone]();ce[de].push(ke),ce[R.$insertAt](se+oe,ke),this._bindValue(ke,Ee,L),this._setProperties(ke,Ee),this._bindItems(ke,Ee)}}_createOccurrences(W){if(!this.emptyMerge)return;const{occur:X}=W;if(!X||X.initial<=1)return;const L=W[R.$getParent](),Q=W[R.$nodeName];if(!(L[Q]instanceof R.XFAObjectArray))return;let ce;W.name?ce=L[Q].children.filter(oe=>oe.name===W.name).length:ce=L[Q].children.length;const de=L[R.$indexOf](W)+1,se=X.initial-ce;if(se){const oe=W[R.$clone]();oe[R.$removeChild](oe.occur),oe.occur=null,L[Q].push(oe),L[R.$insertAt](de,oe);for(let me=1;me<se;me++){const Ee=oe[R.$clone]();L[Q].push(Ee),L[R.$insertAt](de+me,Ee)}}}_getOccurInfo(W){const{name:X,occur:L}=W;if(!L||!X)return[1,1];const Q=L.max===-1?1/0:L.max;return[L.min,Q]}_setAndBind(W,X){this._setProperties(W,X),this._bindItems(W,X),this._bindElement(W,X)}_bindElement(W,X){const L=[];this._createOccurrences(W);for(const Q of W[R.$getChildren]()){if(Q[R.$data])continue;if(this._mergeMode===void 0&&Q[R.$nodeName]==="subform"){this._mergeMode=Q.mergeMode==="consumeData";const ke=X[R.$getChildren]();if(ke.length>0)this._bindOccurrences(Q,[ke[0]],null);else if(this.emptyMerge){const xe=X[R.$namespaceId]===ae?-1:X[R.$namespaceId],fe=Q[R.$data]=new R.XmlObject(xe,Q.name||"root");X[R.$appendChild](fe),this._bindElement(Q,fe)}continue}if(!Q[R.$isBindable]())continue;let ce=!1,de=null,se=null,oe=null;if(Q.bind){switch(Q.bind.match){case"none":this._setAndBind(Q,X);continue;case"global":ce=!0;break;case"dataRef":if(!Q.bind.ref){(0,e.warn)(`XFA - ref is empty in node ${Q[R.$nodeName]}.`),this._setAndBind(Q,X);continue}se=Q.bind.ref;break}Q.bind.picture&&(de=Q.bind.picture[R.$content])}const[me,Ee]=this._getOccurInfo(Q);if(se)if(oe=(0,K.searchNode)(this.root,X,se,!0,!1),oe===null){if(oe=(0,K.createDataNode)(this.data,X,se),!oe)continue;this._isConsumeData()&&(oe[R.$consumed]=!0),this._setAndBind(Q,oe);continue}else this._isConsumeData()&&(oe=oe.filter(ke=>!ke[R.$consumed])),oe.length>Ee?oe=oe.slice(0,Ee):oe.length===0&&(oe=null),oe&&this._isConsumeData()&&oe.forEach(ke=>{ke[R.$consumed]=!0});else{if(!Q.name){this._setAndBind(Q,X);continue}if(this._isConsumeData()){const ke=[];for(;ke.length<Ee;){const xe=this._findDataByNameToConsume(Q.name,Q[R.$hasSettableValue](),X,ce);if(!xe)break;xe[R.$consumed]=!0,ke.push(xe)}oe=ke.length>0?ke:null}else{if(oe=X[R.$getRealChildrenByNameIt](Q.name,!1,this.emptyMerge).next().value,!oe){if(me===0){L.push(Q);continue}const ke=X[R.$namespaceId]===ae?-1:X[R.$namespaceId];oe=Q[R.$data]=new R.XmlObject(ke,Q.name),this.emptyMerge&&(oe[R.$consumed]=!0),X[R.$appendChild](oe),this._setAndBind(Q,oe);continue}this.emptyMerge&&(oe[R.$consumed]=!0),oe=[oe]}}oe?this._bindOccurrences(Q,oe,de):me>0?this._setAndBind(Q,X):L.push(Q)}L.forEach(Q=>Q[R.$getParent]()[R.$removeChild](Q))}}D.Binder=he},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Value=D.Text=D.TemplateNamespace=D.Template=D.SetProperty=D.Items=D.Field=D.BindItems=void 0;var R=B(202),U=B(204),K=B(208),z=B(209),e=B(203),ae=B(2),ie=B(210),he=B(131),J=B(205);const W=U.NamespaceIds.template.id,X="http://www.w3.org/2000/svg",L=2,Q=3,ce=5e3,de=/^H(\d+)$/,se=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),oe=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function me(Er){if(!Er||!Er.border)return{w:0,h:0};const Oe=Er.border[R.$getExtra]();return Oe?{w:Oe.widths[0]+Oe.widths[2]+Oe.insets[0]+Oe.insets[2],h:Oe.widths[1]+Oe.widths[3]+Oe.insets[1]+Oe.insets[3]}:{w:0,h:0}}function Ee(Er){return Er.margin&&(Er.margin.topInset||Er.margin.rightInset||Er.margin.bottomInset||Er.margin.leftInset)}function ke(Er,Oe){if(!Er.value){const ft=new Ai({});Er[R.$appendChild](ft),Er.value=ft}Er.value[R.$setValue](Oe)}function*xe(Er){for(const Oe of Er[R.$getChildren]()){if(Oe instanceof ia){yield*Oe[R.$getContainedChildren]();continue}yield Oe}}function fe(Er){return Er.validate&&Er.validate.nullTest==="error"}function ve(Er){for(;Er;){if(!Er.traversal){Er[R.$tabIndex]=Er[R.$getParent]()[R.$tabIndex];return}if(Er[R.$tabIndex])return;let Oe=null;for(const lr of Er.traversal[R.$getChildren]())if(lr.operation==="next"){Oe=lr;break}if(!Oe||!Oe.ref){Er[R.$tabIndex]=Er[R.$getParent]()[R.$tabIndex];return}const ft=Er[R.$getTemplateRoot]();Er[R.$tabIndex]=++ft[R.$tabIndex];const yr=ft[R.$searchNode](Oe.ref,Er);if(!yr)return;Er=yr[0]}}function ye(Er,Oe){const ft=Er.assist;if(ft){const yr=ft[R.$toHTML]();yr&&(Oe.title=yr);const qr=ft.role.match(de);if(qr){const sn="heading",Kr=qr[1];Oe.role=sn,Oe["aria-level"]=Kr}}if(Er.layout==="table")Oe.role="table";else if(Er.layout==="row")Oe.role="row";else{const yr=Er[R.$getParent]();yr.layout==="row"&&(yr.assist&&yr.assist.role==="TH"?Oe.role="columnheader":Oe.role="cell")}}function Ce(Er){if(!Er.assist)return null;const Oe=Er.assist;return Oe.speak&&Oe.speak[R.$content]!==""?Oe.speak[R.$content]:Oe.toolTip?Oe.toolTip[R.$content]:null}function pe(Er){return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:Er}]})}function _e(Er){const Oe=Er[R.$getTemplateRoot]();Oe[R.$extra].firstUnsplittable===null&&(Oe[R.$extra].firstUnsplittable=Er,Oe[R.$extra].noLayoutFailure=!0)}function Ge(Er){const Oe=Er[R.$getTemplateRoot]();Oe[R.$extra].firstUnsplittable===Er&&(Oe[R.$extra].noLayoutFailure=!1)}function Ae(Er){if(Er[R.$extra]||(Er[R.$extra]=Object.create(null),Er.targetType==="auto"))return!1;const Oe=Er[R.$getTemplateRoot]();let ft=null;if(Er.target){if(ft=Oe[R.$searchNode](Er.target,Er[R.$getParent]()),!ft)return!1;ft=ft[0]}const{currentPageArea:yr,currentContentArea:lr}=Oe[R.$extra];if(Er.targetType==="pageArea")return ft instanceof Rr||(ft=null),Er.startNew?(Er[R.$extra].target=ft||yr,!0):ft&&ft!==yr?(Er[R.$extra].target=ft,!0):!1;ft instanceof ut||(ft=null);const qr=ft&&ft[R.$getParent]();let sn,Kr=qr;if(Er.startNew)if(ft){const on=qr.contentArea.children,bn=on.indexOf(lr),Dn=on.indexOf(ft);bn!==-1&&bn<Dn&&(Kr=null),sn=Dn-1}else sn=yr.contentArea.children.indexOf(lr);else if(ft&&ft!==lr)sn=qr.contentArea.children.indexOf(ft)-1,Kr=qr===yr?null:qr;else return!1;return Er[R.$extra].target=Kr,Er[R.$extra].index=sn,!0}function Ne(Er,Oe,ft){const yr=Er[R.$getTemplateRoot](),lr=yr[R.$extra].noLayoutFailure,qr=Oe[R.$getSubformParent];Oe[R.$getSubformParent]=()=>Er,yr[R.$extra].noLayoutFailure=!0;const sn=Oe[R.$toHTML](ft);Er[R.$addHTML](sn.html,sn.bbox),yr[R.$extra].noLayoutFailure=lr,Oe[R.$getSubformParent]=qr}class Ze extends R.StringObject{constructor(Oe){super(W,"appearanceFilter"),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class ze extends R.XFAObject{constructor(Oe){super(W,"arc",!0),this.circular=(0,e.getInteger)({data:Oe.circular,defaultValue:0,validate:ft=>ft===1}),this.hand=(0,e.getStringOption)(Oe.hand,["even","left","right"]),this.id=Oe.id||"",this.startAngle=(0,e.getFloat)({data:Oe.startAngle,defaultValue:0,validate:ft=>!0}),this.sweepAngle=(0,e.getFloat)({data:Oe.sweepAngle,defaultValue:360,validate:ft=>!0}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.edge=null,this.fill=null}[R.$toHTML](){const Oe=this.edge||new Wt({}),ft=Oe[R.$toStyle](),yr=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(yr,this.fill[R.$toStyle]()):yr.fill="transparent",yr.strokeWidth=(0,z.measureToString)(Oe.presence==="visible"?Oe.thickness:0),yr.stroke=ft.color;let lr;const qr={xmlns:X,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)lr={name:"ellipse",attributes:{xmlns:X,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:yr}};else{const on=this.startAngle*Math.PI/180,bn=this.sweepAngle*Math.PI/180,Dn=this.sweepAngle>180?1:0,[zn,Bn,kn,Gn]=[50*(1+Math.cos(on)),50*(1-Math.sin(on)),50*(1+Math.cos(on+bn)),50*(1-Math.sin(on+bn))];lr={name:"path",attributes:{xmlns:X,d:`M ${zn} ${Bn} A 50 50 0 ${Dn} 0 ${kn} ${Gn}`,vectorEffect:"non-scaling-stroke",style:yr}},Object.assign(qr,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const sn={name:"svg",children:[lr],attributes:qr},Kr=this[R.$getParent]()[R.$getParent]();return Ee(Kr)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[sn]}):(sn.attributes.style.position="absolute",e.HTMLResult.success(sn))}}class Te extends R.XFAObject{constructor(Oe){super(W,"area",!0),this.colSpan=(0,e.getInteger)({data:Oe.colSpan,defaultValue:1,validate:ft=>ft>=1||ft===-1}),this.id=Oe.id||"",this.name=Oe.name||"",this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.desc=null,this.extras=null,this.area=new R.XFAObjectArray,this.draw=new R.XFAObjectArray,this.exObject=new R.XFAObjectArray,this.exclGroup=new R.XFAObjectArray,this.field=new R.XFAObjectArray,this.subform=new R.XFAObjectArray,this.subformSet=new R.XFAObjectArray}*[R.$getContainedChildren](){yield*xe(this)}[R.$isTransparent](){return!0}[R.$isBindable](){return!0}[R.$addHTML](Oe,ft){const[yr,lr,qr,sn]=ft;this[R.$extra].width=Math.max(this[R.$extra].width,yr+qr),this[R.$extra].height=Math.max(this[R.$extra].height,lr+sn),this[R.$extra].children.push(Oe)}[R.$getAvailableSpace](){return this[R.$extra].availableSpace}[R.$toHTML](Oe){const ft=(0,z.toStyle)(this,"position"),yr={style:ft,id:this[R.$uid],class:["xfaArea"]};(0,z.isPrintOnly)(this)&&yr.class.push("xfaPrintOnly"),this.name&&(yr.xfaName=this.name);const lr=[];this[R.$extra]={children:lr,width:0,height:0,availableSpace:Oe};const qr=this[R.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!qr.success)return qr.isBreak()?qr:(delete this[R.$extra],e.HTMLResult.FAILURE);ft.width=(0,z.measureToString)(this[R.$extra].width),ft.height=(0,z.measureToString)(this[R.$extra].height);const sn={name:"div",attributes:yr,children:lr},Kr=[this.x,this.y,this[R.$extra].width,this[R.$extra].height];return delete this[R.$extra],e.HTMLResult.success(sn,Kr)}}class Fe extends R.XFAObject{constructor(Oe){super(W,"assist",!0),this.id=Oe.id||"",this.role=Oe.role||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.speak=null,this.toolTip=null}[R.$toHTML](){return this.toolTip&&this.toolTip[R.$content]?this.toolTip[R.$content]:null}}class Pe extends R.XFAObject{constructor(Oe){super(W,"barcode",!0),this.charEncoding=(0,e.getKeyword)({data:Oe.charEncoding?Oe.charEncoding.toLowerCase():"",defaultValue:"",validate:ft=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(ft)||ft.match(/iso-8859-\d{2}/)}),this.checksum=(0,e.getStringOption)(Oe.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,e.getInteger)({data:Oe.dataColumnCount,defaultValue:-1,validate:ft=>ft>=0}),this.dataLength=(0,e.getInteger)({data:Oe.dataLength,defaultValue:-1,validate:ft=>ft>=0}),this.dataPrep=(0,e.getStringOption)(Oe.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,e.getInteger)({data:Oe.dataRowCount,defaultValue:-1,validate:ft=>ft>=0}),this.endChar=Oe.endChar||"",this.errorCorrectionLevel=(0,e.getInteger)({data:Oe.errorCorrectionLevel,defaultValue:-1,validate:ft=>ft>=0&&ft<=8}),this.id=Oe.id||"",this.moduleHeight=(0,e.getMeasurement)(Oe.moduleHeight,"5mm"),this.moduleWidth=(0,e.getMeasurement)(Oe.moduleWidth,"0.25mm"),this.printCheckDigit=(0,e.getInteger)({data:Oe.printCheckDigit,defaultValue:0,validate:ft=>ft===1}),this.rowColumnRatio=(0,e.getRatio)(Oe.rowColumnRatio),this.startChar=Oe.startChar||"",this.textLocation=(0,e.getStringOption)(Oe.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,e.getInteger)({data:Oe.truncate,defaultValue:0,validate:ft=>ft===1}),this.type=(0,e.getStringOption)(Oe.type?Oe.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,e.getStringOption)(Oe.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.wideNarrowRatio=(0,e.getRatio)(Oe.wideNarrowRatio),this.encrypt=null,this.extras=null}}class we extends R.XFAObject{constructor(Oe){super(W,"bind",!0),this.match=(0,e.getStringOption)(Oe.match,["once","dataRef","global","none"]),this.ref=Oe.ref||"",this.picture=null}}class Ie extends R.XFAObject{constructor(Oe){super(W,"bindItems"),this.connection=Oe.connection||"",this.labelRef=Oe.labelRef||"",this.ref=Oe.ref||"",this.valueRef=Oe.valueRef||""}}D.BindItems=Ie;class Be extends R.XFAObject{constructor(Oe){super(W,"bookend"),this.id=Oe.id||"",this.leader=Oe.leader||"",this.trailer=Oe.trailer||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Ke extends R.Option01{constructor(Oe){super(W,"boolean"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$toHTML](Oe){return pe(this[R.$content]===1?"1":"0")}}class Ve extends R.XFAObject{constructor(Oe){super(W,"border",!0),this.break=(0,e.getStringOption)(Oe.break,["close","open"]),this.hand=(0,e.getStringOption)(Oe.hand,["even","left","right"]),this.id=Oe.id||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.corner=new R.XFAObjectArray(4),this.edge=new R.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[R.$getExtra](){if(!this[R.$extra]){const Oe=this.edge.children.slice();if(Oe.length<4){const lr=Oe.at(-1)||new Wt({});for(let qr=Oe.length;qr<4;qr++)Oe.push(lr)}const ft=Oe.map(lr=>lr.thickness),yr=[0,0,0,0];this.margin&&(yr[0]=this.margin.topInset,yr[1]=this.margin.rightInset,yr[2]=this.margin.bottomInset,yr[3]=this.margin.leftInset),this[R.$extra]={widths:ft,insets:yr,edges:Oe}}return this[R.$extra]}[R.$toStyle](){const{edges:Oe}=this[R.$getExtra](),ft=Oe.map(lr=>{const qr=lr[R.$toStyle]();return qr.color=qr.color||"#000000",qr}),yr=Object.create(null);if(this.margin&&Object.assign(yr,this.margin[R.$toStyle]()),this.fill&&this.fill.presence==="visible"&&Object.assign(yr,this.fill[R.$toStyle]()),this.corner.children.some(lr=>lr.radius!==0)){const lr=this.corner.children.map(qr=>qr[R.$toStyle]());if(lr.length===2||lr.length===3){const qr=lr.at(-1);for(let sn=lr.length;sn<4;sn++)lr.push(qr)}yr.borderRadius=lr.map(qr=>qr.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":yr.borderStyle="";break;case"inactive":yr.borderStyle="none";break;default:yr.borderStyle=ft.map(lr=>lr.style).join(" ");break}return yr.borderWidth=ft.map(lr=>lr.width).join(" "),yr.borderColor=ft.map(lr=>lr.color).join(" "),yr}}class je extends R.XFAObject{constructor(Oe){super(W,"break",!0),this.after=(0,e.getStringOption)(Oe.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=Oe.afterTarget||"",this.before=(0,e.getStringOption)(Oe.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=Oe.beforeTarget||"",this.bookendLeader=Oe.bookendLeader||"",this.bookendTrailer=Oe.bookendTrailer||"",this.id=Oe.id||"",this.overflowLeader=Oe.overflowLeader||"",this.overflowTarget=Oe.overflowTarget||"",this.overflowTrailer=Oe.overflowTrailer||"",this.startNew=(0,e.getInteger)({data:Oe.startNew,defaultValue:0,validate:ft=>ft===1}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}}class Le extends R.XFAObject{constructor(Oe){super(W,"breakAfter",!0),this.id=Oe.id||"",this.leader=Oe.leader||"",this.startNew=(0,e.getInteger)({data:Oe.startNew,defaultValue:0,validate:ft=>ft===1}),this.target=Oe.target||"",this.targetType=(0,e.getStringOption)(Oe.targetType,["auto","contentArea","pageArea"]),this.trailer=Oe.trailer||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.script=null}}class et extends R.XFAObject{constructor(Oe){super(W,"breakBefore",!0),this.id=Oe.id||"",this.leader=Oe.leader||"",this.startNew=(0,e.getInteger)({data:Oe.startNew,defaultValue:0,validate:ft=>ft===1}),this.target=Oe.target||"",this.targetType=(0,e.getStringOption)(Oe.targetType,["auto","contentArea","pageArea"]),this.trailer=Oe.trailer||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.script=null}[R.$toHTML](Oe){return this[R.$extra]={},e.HTMLResult.FAILURE}}class Qe extends R.XFAObject{constructor(Oe){super(W,"button",!0),this.highlight=(0,e.getStringOption)(Oe.highlight,["inverted","none","outline","push"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}[R.$toHTML](Oe){const yr=this[R.$getParent]()[R.$getParent](),lr={name:"button",attributes:{id:this[R.$uid],class:["xfaButton"],style:{}},children:[]};for(const qr of yr.event.children){if(qr.activity!=="click"||!qr.script)continue;const sn=(0,he.recoverJsURL)(qr.script[R.$content]);if(!sn)continue;const Kr=(0,z.fixURL)(sn.url);Kr&&lr.children.push({name:"a",attributes:{id:"link"+this[R.$uid],href:Kr,newWindow:sn.newWindow,class:["xfaLink"],style:{}},children:[]})}return e.HTMLResult.success(lr)}}class Ue extends R.XFAObject{constructor(Oe){super(W,"calculate",!0),this.id=Oe.id||"",this.override=(0,e.getStringOption)(Oe.override,["disabled","error","ignore","warning"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.message=null,this.script=null}}class $e extends R.XFAObject{constructor(Oe){super(W,"caption",!0),this.id=Oe.id||"",this.placement=(0,e.getStringOption)(Oe.placement,["left","bottom","inline","right","top"]),this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,e.getMeasurement)(Oe.reserve)),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[R.$setValue](Oe){ke(this,Oe)}[R.$getExtra](Oe){if(!this[R.$extra]){let{width:ft,height:yr}=Oe;switch(this.placement){case"left":case"right":case"inline":ft=this.reserve<=0?ft:this.reserve;break;case"top":case"bottom":yr=this.reserve<=0?yr:this.reserve;break}this[R.$extra]=(0,z.layoutNode)(this,{width:ft,height:yr})}return this[R.$extra]}[R.$toHTML](Oe){if(!this.value)return e.HTMLResult.EMPTY;this[R.$pushPara]();const ft=this.value[R.$toHTML](Oe).html;if(!ft)return this[R.$popPara](),e.HTMLResult.EMPTY;const yr=this.reserve;if(this.reserve<=0){const{w:sn,h:Kr}=this[R.$getExtra](Oe);switch(this.placement){case"left":case"right":case"inline":this.reserve=sn;break;case"top":case"bottom":this.reserve=Kr;break}}const lr=[];typeof ft=="string"?lr.push({name:"#text",value:ft}):lr.push(ft);const qr=(0,z.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(qr.width=(0,z.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(qr.height=(0,z.measureToString)(this.reserve));break}return(0,z.setPara)(this,null,ft),this[R.$popPara](),this.reserve=yr,e.HTMLResult.success({name:"div",attributes:{style:qr,class:["xfaCaption"]},children:lr})}}class Ye extends R.StringObject{constructor(Oe){super(W,"certificate"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class tt extends R.XFAObject{constructor(Oe){super(W,"certificates",!0),this.credentialServerPolicy=(0,e.getStringOption)(Oe.credentialServerPolicy,["optional","required"]),this.id=Oe.id||"",this.url=Oe.url||"",this.urlPolicy=Oe.urlPolicy||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class ot extends R.XFAObject{constructor(Oe){super(W,"checkButton",!0),this.id=Oe.id||"",this.mark=(0,e.getStringOption)(Oe.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,e.getStringOption)(Oe.shape,["square","round"]),this.size=(0,e.getMeasurement)(Oe.size,"10pt"),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){const ft=(0,z.toStyle)("margin"),yr=(0,z.measureToString)(this.size);ft.width=ft.height=yr;let lr,qr,sn;const Kr=this[R.$getParent]()[R.$getParent](),on=Kr.items.children.length&&Kr.items.children[0][R.$toHTML]().html||[],bn={on:(on[0]!==void 0?on[0]:"on").toString(),off:(on[1]!==void 0?on[1]:"off").toString()},zn=(Kr.value&&Kr.value[R.$text]()||"off")===bn.on||void 0,Bn=Kr[R.$getSubformParent](),kn=Kr[R.$uid];let Gn;Bn instanceof gr?(sn=Bn[R.$uid],lr="radio",qr="xfaRadio",Gn=Bn[R.$data]&&Bn[R.$data][R.$uid]||Bn[R.$uid]):(lr="checkbox",qr="xfaCheckbox",Gn=Kr[R.$data]&&Kr[R.$data][R.$uid]||Kr[R.$uid]);const En={name:"input",attributes:{class:[qr],style:ft,fieldId:kn,dataId:Gn,type:lr,checked:zn,xfaOn:bn.on,xfaOff:bn.off,"aria-label":Ce(Kr),"aria-required":!1}};return sn&&(En.attributes.name=sn),fe(Kr)&&(En.attributes["aria-required"]=!0,En.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[En]})}}class st extends R.XFAObject{constructor(Oe){super(W,"choiceList",!0),this.commitOn=(0,e.getStringOption)(Oe.commitOn,["select","exit"]),this.id=Oe.id||"",this.open=(0,e.getStringOption)(Oe.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,e.getInteger)({data:Oe.textEntry,defaultValue:0,validate:ft=>ft===1}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){const ft=(0,z.toStyle)(this,"border","margin"),lr=this[R.$getParent]()[R.$getParent](),sn={fontSize:`calc(${lr.font&&lr.font.size||10}px * var(--scale-factor))`},Kr=[];if(lr.items.children.length>0){const bn=lr.items;let Dn=0,zn=0;bn.children.length===2&&(Dn=bn.children[0].save,zn=1-Dn);const Bn=bn.children[Dn][R.$toHTML]().html,kn=bn.children[zn][R.$toHTML]().html;let Gn=!1;const En=lr.value&&lr.value[R.$text]()||"";for(let li=0,Sn=Bn.length;li<Sn;li++){const In={name:"option",attributes:{value:kn[li]||Bn[li],style:sn},value:Bn[li]};kn[li]===En&&(In.attributes.selected=Gn=!0),Kr.push(In)}Gn||Kr.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const on={class:["xfaSelect"],fieldId:lr[R.$uid],dataId:lr[R.$data]&&lr[R.$data][R.$uid]||lr[R.$uid],style:ft,"aria-label":Ce(lr),"aria-required":!1};return fe(lr)&&(on["aria-required"]=!0,on.required=!0),this.open==="multiSelect"&&(on.multiple=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:Kr,attributes:on}]})}}class dt extends R.XFAObject{constructor(Oe){super(W,"color",!0),this.cSpace=(0,e.getStringOption)(Oe.cSpace,["SRGB"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.value=Oe.value?(0,e.getColor)(Oe.value):"",this.extras=null}[R.$hasSettableValue](){return!1}[R.$toStyle](){return this.value?ae.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class ct extends R.XFAObject{constructor(Oe){super(W,"comb"),this.id=Oe.id||"",this.numberOfCells=(0,e.getInteger)({data:Oe.numberOfCells,defaultValue:0,validate:ft=>ft>=0}),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class mt extends R.XFAObject{constructor(Oe){super(W,"connect",!0),this.connection=Oe.connection||"",this.id=Oe.id||"",this.ref=Oe.ref||"",this.usage=(0,e.getStringOption)(Oe.usage,["exportAndImport","exportOnly","importOnly"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.picture=null}}class ut extends R.XFAObject{constructor(Oe){super(W,"contentArea",!0),this.h=(0,e.getMeasurement)(Oe.h),this.id=Oe.id||"",this.name=Oe.name||"",this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.w=(0,e.getMeasurement)(Oe.w),this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.desc=null,this.extras=null}[R.$toHTML](Oe){const ft=(0,z.measureToString)(this.x),yr=(0,z.measureToString)(this.y),lr={left:ft,top:yr,width:(0,z.measureToString)(this.w),height:(0,z.measureToString)(this.h)},qr=["xfaContentarea"];return(0,z.isPrintOnly)(this)&&qr.push("xfaPrintOnly"),e.HTMLResult.success({name:"div",children:[],attributes:{style:lr,class:qr,id:this[R.$uid]}})}}class rt extends R.XFAObject{constructor(Oe){super(W,"corner",!0),this.id=Oe.id||"",this.inverted=(0,e.getInteger)({data:Oe.inverted,defaultValue:0,validate:ft=>ft===1}),this.join=(0,e.getStringOption)(Oe.join,["square","round"]),this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,e.getMeasurement)(Oe.radius),this.stroke=(0,e.getStringOption)(Oe.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(Oe.thickness,"0.5pt"),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](){const Oe=(0,z.toStyle)(this,"visibility");return Oe.radius=(0,z.measureToString)(this.join==="square"?0:this.radius),Oe}}class He extends R.ContentObject{constructor(Oe){super(W,"date"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=this[R.$content].trim();this[R.$content]=Oe?new Date(Oe):null}[R.$toHTML](Oe){return pe(this[R.$content]?this[R.$content].toString():"")}}class Je extends R.ContentObject{constructor(Oe){super(W,"dateTime"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=this[R.$content].trim();this[R.$content]=Oe?new Date(Oe):null}[R.$toHTML](Oe){return pe(this[R.$content]?this[R.$content].toString():"")}}class St extends R.XFAObject{constructor(Oe){super(W,"dateTimeEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(Oe.hScrollPolicy,["auto","off","on"]),this.id=Oe.id||"",this.picker=(0,e.getStringOption)(Oe.picker,["host","none"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){const ft=(0,z.toStyle)(this,"border","font","margin"),yr=this[R.$getParent]()[R.$getParent](),lr={name:"input",attributes:{type:"text",fieldId:yr[R.$uid],dataId:yr[R.$data]&&yr[R.$data][R.$uid]||yr[R.$uid],class:["xfaTextfield"],style:ft,"aria-label":Ce(yr),"aria-required":!1}};return fe(yr)&&(lr.attributes["aria-required"]=!0,lr.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[lr]})}}class bt extends R.ContentObject{constructor(Oe){super(W,"decimal"),this.fracDigits=(0,e.getInteger)({data:Oe.fracDigits,defaultValue:2,validate:ft=>!0}),this.id=Oe.id||"",this.leadDigits=(0,e.getInteger)({data:Oe.leadDigits,defaultValue:-1,validate:ft=>!0}),this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=parseFloat(this[R.$content].trim());this[R.$content]=isNaN(Oe)?null:Oe}[R.$toHTML](Oe){return pe(this[R.$content]!==null?this[R.$content].toString():"")}}class pt extends R.XFAObject{constructor(Oe){super(W,"defaultUi",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}}class wt extends R.XFAObject{constructor(Oe){super(W,"desc",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.boolean=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.time=new R.XFAObjectArray}}class Pt extends R.OptionObject{constructor(Oe){super(W,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Nt extends R.XFAObject{constructor(Oe){super(W,"digestMethods",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.digestMethod=new R.XFAObjectArray}}class Vt extends R.XFAObject{constructor(Oe){super(W,"draw",!0),this.anchorType=(0,e.getStringOption)(Oe.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:Oe.colSpan,defaultValue:1,validate:ft=>ft>=1||ft===-1}),this.h=Oe.h?(0,e.getMeasurement)(Oe.h):"",this.hAlign=(0,e.getStringOption)(Oe.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=Oe.id||"",this.locale=Oe.locale||"",this.maxH=(0,e.getMeasurement)(Oe.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(Oe.maxW,"0pt"),this.minH=(0,e.getMeasurement)(Oe.minH,"0pt"),this.minW=(0,e.getMeasurement)(Oe.minW,"0pt"),this.name=Oe.name||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.rotate=(0,e.getInteger)({data:Oe.rotate,defaultValue:0,validate:ft=>ft%90===0}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.w=Oe.w?(0,e.getMeasurement)(Oe.w):"",this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new R.XFAObjectArray}[R.$setValue](Oe){ke(this,Oe)}[R.$toHTML](Oe){if(ve(this),this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;(0,z.fixDimensions)(this),this[R.$pushPara]();const ft=this.w,yr=this.h,{w:lr,h:qr,isBroken:sn}=(0,z.layoutNode)(this,Oe);if(lr&&this.w===""){if(sn&&this[R.$getSubformParent]()[R.$isThereMoreWidth]())return this[R.$popPara](),e.HTMLResult.FAILURE;this.w=lr}if(qr&&this.h===""&&(this.h=qr),_e(this),!(0,K.checkDimensions)(this,Oe))return this.w=ft,this.h=yr,this[R.$popPara](),e.HTMLResult.FAILURE;Ge(this);const Kr=(0,z.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,z.setMinMaxDimensions)(this,Kr),Kr.margin&&(Kr.padding=Kr.margin,delete Kr.margin);const on=["xfaDraw"];this.font&&on.push("xfaFont"),(0,z.isPrintOnly)(this)&&on.push("xfaPrintOnly");const bn={style:Kr,id:this[R.$uid],class:on};this.name&&(bn.xfaName=this.name);const Dn={name:"div",attributes:bn,children:[]};ye(this,bn);const zn=(0,z.computeBbox)(this,Dn,Oe),Bn=this.value?this.value[R.$toHTML](Oe).html:null;return Bn===null?(this.w=ft,this.h=yr,this[R.$popPara](),e.HTMLResult.success((0,z.createWrapper)(this,Dn),zn)):(Dn.children.push(Bn),(0,z.setPara)(this,Kr,Bn),this.w=ft,this.h=yr,this[R.$popPara](),e.HTMLResult.success((0,z.createWrapper)(this,Dn),zn))}}class Wt extends R.XFAObject{constructor(Oe){super(W,"edge",!0),this.cap=(0,e.getStringOption)(Oe.cap,["square","butt","round"]),this.id=Oe.id||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,e.getStringOption)(Oe.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(Oe.thickness,"0.5pt"),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](){const Oe=(0,z.toStyle)(this,"visibility");if(Object.assign(Oe,{linecap:this.cap,width:(0,z.measureToString)(this.thickness),color:this.color?this.color[R.$toStyle]():"#000000",style:""}),this.presence!=="visible")Oe.style="none";else switch(this.stroke){case"solid":Oe.style="solid";break;case"dashDot":Oe.style="dashed";break;case"dashDotDot":Oe.style="dashed";break;case"dashed":Oe.style="dashed";break;case"dotted":Oe.style="dotted";break;case"embossed":Oe.style="ridge";break;case"etched":Oe.style="groove";break;case"lowered":Oe.style="inset";break;case"raised":Oe.style="outset";break}return Oe}}class Mt extends R.OptionObject{constructor(Oe){super(W,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class $t extends R.XFAObject{constructor(Oe){super(W,"encodings",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.encoding=new R.XFAObjectArray}}class Yt extends R.XFAObject{constructor(Oe){super(W,"encrypt",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.certificate=null}}class Ft extends R.XFAObject{constructor(Oe){super(W,"encryptData",!0),this.id=Oe.id||"",this.operation=(0,e.getStringOption)(Oe.operation,["encrypt","decrypt"]),this.target=Oe.target||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.filter=null,this.manifest=null}}class Jt extends R.XFAObject{constructor(Oe){super(W,"encryption",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.certificate=new R.XFAObjectArray}}class er extends R.OptionObject{constructor(Oe){super(W,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Bt extends R.XFAObject{constructor(Oe){super(W,"encryptionMethods",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.encryptionMethod=new R.XFAObjectArray}}class It extends R.XFAObject{constructor(Oe){super(W,"event",!0),this.activity=(0,e.getStringOption)(Oe.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=Oe.id||"",this.listen=(0,e.getStringOption)(Oe.listen,["refOnly","refAndDescendents"]),this.name=Oe.name||"",this.ref=Oe.ref||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Dt extends R.ContentObject{constructor(Oe){super(W,"exData"),this.contentType=Oe.contentType||"",this.href=Oe.href||"",this.id=Oe.id||"",this.maxLength=(0,e.getInteger)({data:Oe.maxLength,defaultValue:-1,validate:ft=>ft>=-1}),this.name=Oe.name||"",this.rid=Oe.rid||"",this.transferEncoding=(0,e.getStringOption)(Oe.transferEncoding,["none","base64","package"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$isCDATAXml](){return this.contentType==="text/html"}[R.$onChild](Oe){return this.contentType==="text/html"&&Oe[R.$namespaceId]===U.NamespaceIds.xhtml.id?(this[R.$content]=Oe,!0):this.contentType==="text/xml"?(this[R.$content]=Oe,!0):!1}[R.$toHTML](Oe){return this.contentType!=="text/html"||!this[R.$content]?e.HTMLResult.EMPTY:this[R.$content][R.$toHTML](Oe)}}class Zt extends R.XFAObject{constructor(Oe){super(W,"exObject",!0),this.archive=Oe.archive||"",this.classId=Oe.classId||"",this.codeBase=Oe.codeBase||"",this.codeType=Oe.codeType||"",this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.boolean=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.exObject=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.time=new R.XFAObjectArray}}class gr extends R.XFAObject{constructor(Oe){super(W,"exclGroup",!0),this.access=(0,e.getStringOption)(Oe.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=Oe.accessKey||"",this.anchorType=(0,e.getStringOption)(Oe.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:Oe.colSpan,defaultValue:1,validate:ft=>ft>=1||ft===-1}),this.h=Oe.h?(0,e.getMeasurement)(Oe.h):"",this.hAlign=(0,e.getStringOption)(Oe.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=Oe.id||"",this.layout=(0,e.getStringOption)(Oe.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,e.getMeasurement)(Oe.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(Oe.maxW,"0pt"),this.minH=(0,e.getMeasurement)(Oe.minH,"0pt"),this.minW=(0,e.getMeasurement)(Oe.minW,"0pt"),this.name=Oe.name||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.w=Oe.w?(0,e.getMeasurement)(Oe.w):"",this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new R.XFAObjectArray,this.event=new R.XFAObjectArray,this.field=new R.XFAObjectArray,this.setProperty=new R.XFAObjectArray}[R.$isBindable](){return!0}[R.$hasSettableValue](){return!0}[R.$setValue](Oe){for(const ft of this.field.children){if(!ft.value){const yr=new Ai({});ft[R.$appendChild](yr),ft.value=yr}ft.value[R.$setValue](Oe)}}[R.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[R.$extra].attempt===0&&this[R.$extra].numberInLine>0||this[R.$getParent]()[R.$isThereMoreWidth]()}[R.$isSplittable](){const Oe=this[R.$getSubformParent]();return Oe[R.$isSplittable]()?this[R.$extra]._isSplittable!==void 0?this[R.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[R.$extra]._isSplittable=!1,!1):Oe.layout&&Oe.layout.endsWith("-tb")&&Oe[R.$extra].numberInLine!==0?!1:(this[R.$extra]._isSplittable=!0,!0):!1}[R.$flushHTML](){return(0,K.flushHTML)(this)}[R.$addHTML](Oe,ft){(0,K.addHTML)(this,Oe,ft)}[R.$getAvailableSpace](){return(0,K.getAvailableSpace)(this)}[R.$toHTML](Oe){if(ve(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;(0,z.fixDimensions)(this);const ft=[],yr={id:this[R.$uid],class:[]};(0,z.setAccess)(this,yr.class),this[R.$extra]||(this[R.$extra]=Object.create(null)),Object.assign(this[R.$extra],{children:ft,attributes:yr,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,Oe.width),height:Math.min(this.h||1/0,Oe.height)},width:0,height:0,prevHeight:0,currentWidth:0});const lr=this[R.$isSplittable]();if(lr||_e(this),!(0,K.checkDimensions)(this,Oe))return e.HTMLResult.FAILURE;const qr=new Set(["field"]);if(this.layout.includes("row")){const Sn=this[R.$getSubformParent]().columnWidths;Array.isArray(Sn)&&Sn.length>0&&(this[R.$extra].columnWidths=Sn,this[R.$extra].currentColumn=0)}const sn=(0,z.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),Kr=["xfaExclgroup"],on=(0,z.layoutClass)(this);on&&Kr.push(on),(0,z.isPrintOnly)(this)&&Kr.push("xfaPrintOnly"),yr.style=sn,yr.class=Kr,this.name&&(yr.xfaName=this.name),this[R.$pushPara]();const bn=this.layout==="lr-tb"||this.layout==="rl-tb",Dn=bn?L:1;for(;this[R.$extra].attempt<Dn;this[R.$extra].attempt++){bn&&this[R.$extra].attempt===L-1&&(this[R.$extra].numberInLine=0);const Sn=this[R.$childrenToHTML]({filter:qr,include:!0});if(Sn.success)break;if(Sn.isBreak())return this[R.$popPara](),Sn;if(bn&&this[R.$extra].attempt===0&&this[R.$extra].numberInLine===0&&!this[R.$getTemplateRoot]()[R.$extra].noLayoutFailure){this[R.$extra].attempt=Dn;break}}if(this[R.$popPara](),lr||Ge(this),this[R.$extra].attempt===Dn)return lr||delete this[R.$extra],e.HTMLResult.FAILURE;let zn=0,Bn=0;this.margin&&(zn=this.margin.leftInset+this.margin.rightInset,Bn=this.margin.topInset+this.margin.bottomInset);const kn=Math.max(this[R.$extra].width+zn,this.w||0),Gn=Math.max(this[R.$extra].height+Bn,this.h||0),En=[this.x,this.y,kn,Gn];this.w===""&&(sn.width=(0,z.measureToString)(kn)),this.h===""&&(sn.height=(0,z.measureToString)(Gn));const li={name:"div",attributes:yr,children:ft};return ye(this,yr),delete this[R.$extra],e.HTMLResult.success((0,z.createWrapper)(this,li),En)}}class fr extends R.XFAObject{constructor(Oe){super(W,"execute"),this.connection=Oe.connection||"",this.executeType=(0,e.getStringOption)(Oe.executeType,["import","remerge"]),this.id=Oe.id||"",this.runAt=(0,e.getStringOption)(Oe.runAt,["client","both","server"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Dr extends R.XFAObject{constructor(Oe){super(W,"extras",!0),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.boolean=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.extras=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.time=new R.XFAObjectArray}}class kr extends R.XFAObject{constructor(Oe){super(W,"field",!0),this.access=(0,e.getStringOption)(Oe.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=Oe.accessKey||"",this.anchorType=(0,e.getStringOption)(Oe.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:Oe.colSpan,defaultValue:1,validate:ft=>ft>=1||ft===-1}),this.h=Oe.h?(0,e.getMeasurement)(Oe.h):"",this.hAlign=(0,e.getStringOption)(Oe.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=Oe.id||"",this.locale=Oe.locale||"",this.maxH=(0,e.getMeasurement)(Oe.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(Oe.maxW,"0pt"),this.minH=(0,e.getMeasurement)(Oe.minH,"0pt"),this.minW=(0,e.getMeasurement)(Oe.minW,"0pt"),this.name=Oe.name||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.rotate=(0,e.getInteger)({data:Oe.rotate,defaultValue:0,validate:ft=>ft%90===0}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.w=Oe.w?(0,e.getMeasurement)(Oe.w):"",this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new R.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new R.XFAObjectArray,this.connect=new R.XFAObjectArray,this.event=new R.XFAObjectArray,this.setProperty=new R.XFAObjectArray}[R.$isBindable](){return!0}[R.$setValue](Oe){ke(this,Oe)}[R.$toHTML](Oe){if(ve(this),!this.ui){this.ui=new Ir({}),this.ui[R.$globalData]=this[R.$globalData],this[R.$appendChild](this.ui);let Sn;switch(this.items.children.length){case 0:Sn=new pa({}),this.ui.textEdit=Sn;break;case 1:Sn=new ot({}),this.ui.checkButton=Sn;break;case 2:Sn=new st({}),this.ui.choiceList=Sn;break}this.ui[R.$appendChild](Sn)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;this.caption&&delete this.caption[R.$extra],this[R.$pushPara]();const ft=this.caption?this.caption[R.$toHTML](Oe).html:null,yr=this.w,lr=this.h;let qr=0,sn=0;this.margin&&(qr=this.margin.leftInset+this.margin.rightInset,sn=this.margin.topInset+this.margin.bottomInset);let Kr=null;if(this.w===""||this.h===""){let Sn=null,In=null,vn=0,Cn=0;if(this.ui.checkButton)vn=Cn=this.ui.checkButton.size;else{const{w:Ti,h:vi}=(0,z.layoutNode)(this,Oe);Ti!==null?(vn=Ti,Cn=vi):Cn=(0,ie.getMetrics)(this.font,!0).lineNoGap}if(Kr=me(this.ui[R.$getExtra]()),vn+=Kr.w,Cn+=Kr.h,this.caption){const{w:Ti,h:vi,isBroken:Hn}=this.caption[R.$getExtra](Oe);if(Hn&&this[R.$getSubformParent]()[R.$isThereMoreWidth]())return this[R.$popPara](),e.HTMLResult.FAILURE;switch(Sn=Ti,In=vi,this.caption.placement){case"left":case"right":case"inline":Sn+=vn;break;case"top":case"bottom":In+=Cn;break}}else Sn=vn,In=Cn;Sn&&this.w===""&&(Sn+=qr,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<Sn?Sn:this.minW)),In&&this.h===""&&(In+=sn,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<In?In:this.minH))}if(this[R.$popPara](),(0,z.fixDimensions)(this),_e(this),!(0,K.checkDimensions)(this,Oe))return this.w=yr,this.h=lr,this[R.$popPara](),e.HTMLResult.FAILURE;Ge(this);const on=(0,z.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,z.setMinMaxDimensions)(this,on);const bn=["xfaField"];this.font&&bn.push("xfaFont"),(0,z.isPrintOnly)(this)&&bn.push("xfaPrintOnly");const Dn={style:on,id:this[R.$uid],class:bn};on.margin&&(on.padding=on.margin,delete on.margin),(0,z.setAccess)(this,bn),this.name&&(Dn.xfaName=this.name);const zn=[],Bn={name:"div",attributes:Dn,children:zn};ye(this,Dn);const kn=this.border?this.border[R.$toStyle]():null,Gn=(0,z.computeBbox)(this,Bn,Oe),En=this.ui[R.$toHTML]().html;if(!En)return Object.assign(on,kn),e.HTMLResult.success((0,z.createWrapper)(this,Bn),Gn);this[R.$tabIndex]&&(En.children&&En.children[0]?En.children[0].attributes.tabindex=this[R.$tabIndex]:En.attributes.tabindex=this[R.$tabIndex]),En.attributes.style||(En.attributes.style=Object.create(null));let li=null;if(this.ui.button?(En.children.length===1&&([li]=En.children.splice(0,1)),Object.assign(En.attributes.style,kn)):Object.assign(on,kn),zn.push(En),this.value){if(this.ui.imageEdit)En.children.push(this.value[R.$toHTML]().html);else if(!this.ui.button){let Sn="";if(this.value.exData)Sn=this.value.exData[R.$text]();else if(this.value.text)Sn=this.value.text[R.$getExtra]();else{const In=this.value[R.$toHTML]().html;In!==null&&(Sn=In.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(En.children[0].attributes.maxLength=this.value.text.maxChars),Sn&&(this.ui.numericEdit&&(Sn=parseFloat(Sn),Sn=isNaN(Sn)?"":Sn.toString()),En.children[0].name==="textarea"?En.children[0].attributes.textContent=Sn:En.children[0].attributes.value=Sn)}}if(!this.ui.imageEdit&&En.children&&En.children[0]&&this.h){Kr=Kr||me(this.ui[R.$getExtra]());let Sn=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){Sn=this.caption.reserve,Sn<=0&&(Sn=this.caption[R.$getExtra](Oe).h);const In=this.h-Sn-sn-Kr.h;En.children[0].attributes.style.height=(0,z.measureToString)(In)}else En.children[0].attributes.style.height="100%"}if(li&&En.children.push(li),!ft)return En.attributes.class&&En.attributes.class.push("xfaLeft"),this.w=yr,this.h=lr,e.HTMLResult.success((0,z.createWrapper)(this,Bn),Gn);if(this.ui.button)return on.padding&&delete on.padding,ft.name==="div"&&(ft.name="span"),En.children.push(ft),e.HTMLResult.success(Bn,Gn);switch(this.ui.checkButton&&(ft.attributes.class[0]="xfaCaptionForCheckButton"),En.attributes.class||(En.attributes.class=[]),En.children.splice(0,0,ft),this.caption.placement){case"left":En.attributes.class.push("xfaLeft");break;case"right":En.attributes.class.push("xfaRight");break;case"top":En.attributes.class.push("xfaTop");break;case"bottom":En.attributes.class.push("xfaBottom");break;case"inline":En.attributes.class.push("xfaLeft");break}return this.w=yr,this.h=lr,e.HTMLResult.success((0,z.createWrapper)(this,Bn),Gn)}}D.Field=kr;class cr extends R.XFAObject{constructor(Oe){super(W,"fill",!0),this.id=Oe.id||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[R.$toStyle](){const Oe=this[R.$getParent](),yr=Oe[R.$getParent]()[R.$getParent](),lr=Object.create(null);let qr="color",sn=qr;Oe instanceof Ve&&(qr="background-color",sn="background",yr instanceof Ir&&(lr.backgroundColor="white")),(Oe instanceof da||Oe instanceof ze)&&(qr=sn="fill",lr.fill="white");for(const Kr of Object.getOwnPropertyNames(this)){if(Kr==="extras"||Kr==="color")continue;const on=this[Kr];if(!(on instanceof R.XFAObject))continue;const bn=on[R.$toStyle](this.color);return bn&&(lr[bn.startsWith("#")?qr:sn]=bn),lr}if(this.color&&this.color.value){const Kr=this.color[R.$toStyle]();lr[Kr.startsWith("#")?qr:sn]=Kr}return lr}}class Ar extends R.XFAObject{constructor(Oe){super(W,"filter",!0),this.addRevocationInfo=(0,e.getStringOption)(Oe.addRevocationInfo,["","required","optional","none"]),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.version=(0,e.getInteger)({data:this.version,defaultValue:5,validate:ft=>ft>=1&&ft<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class yt extends R.ContentObject{constructor(Oe){super(W,"float"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=parseFloat(this[R.$content].trim());this[R.$content]=isNaN(Oe)?null:Oe}[R.$toHTML](Oe){return pe(this[R.$content]!==null?this[R.$content].toString():"")}}class vt extends R.XFAObject{constructor(Oe){super(W,"font",!0),this.baselineShift=(0,e.getMeasurement)(Oe.baselineShift),this.fontHorizontalScale=(0,e.getFloat)({data:Oe.fontHorizontalScale,defaultValue:100,validate:ft=>ft>=0}),this.fontVerticalScale=(0,e.getFloat)({data:Oe.fontVerticalScale,defaultValue:100,validate:ft=>ft>=0}),this.id=Oe.id||"",this.kerningMode=(0,e.getStringOption)(Oe.kerningMode,["none","pair"]),this.letterSpacing=(0,e.getMeasurement)(Oe.letterSpacing,"0"),this.lineThrough=(0,e.getInteger)({data:Oe.lineThrough,defaultValue:0,validate:ft=>ft===1||ft===2}),this.lineThroughPeriod=(0,e.getStringOption)(Oe.lineThroughPeriod,["all","word"]),this.overline=(0,e.getInteger)({data:Oe.overline,defaultValue:0,validate:ft=>ft===1||ft===2}),this.overlinePeriod=(0,e.getStringOption)(Oe.overlinePeriod,["all","word"]),this.posture=(0,e.getStringOption)(Oe.posture,["normal","italic"]),this.size=(0,e.getMeasurement)(Oe.size,"10pt"),this.typeface=Oe.typeface||"Courier",this.underline=(0,e.getInteger)({data:Oe.underline,defaultValue:0,validate:ft=>ft===1||ft===2}),this.underlinePeriod=(0,e.getStringOption)(Oe.underlinePeriod,["all","word"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.weight=(0,e.getStringOption)(Oe.weight,["normal","bold"]),this.extras=null,this.fill=null}[R.$clean](Oe){super[R.$clean](Oe),this[R.$globalData].usedTypefaces.add(this.typeface)}[R.$toStyle](){const Oe=(0,z.toStyle)(this,"fill"),ft=Oe.color;return ft&&(ft==="#000000"?delete Oe.color:ft.startsWith("#")||(Oe.background=ft,Oe.backgroundClip="text",Oe.color="transparent")),this.baselineShift&&(Oe.verticalAlign=(0,z.measureToString)(this.baselineShift)),Oe.fontKerning=this.kerningMode==="none"?"none":"normal",Oe.letterSpacing=(0,z.measureToString)(this.letterSpacing),this.lineThrough!==0&&(Oe.textDecoration="line-through",this.lineThrough===2&&(Oe.textDecorationStyle="double")),this.overline!==0&&(Oe.textDecoration="overline",this.overline===2&&(Oe.textDecorationStyle="double")),Oe.fontStyle=this.posture,Oe.fontSize=(0,z.measureToString)(.99*this.size),(0,z.setFontFamily)(this,this,this[R.$globalData].fontFinder,Oe),this.underline!==0&&(Oe.textDecoration="underline",this.underline===2&&(Oe.textDecorationStyle="double")),Oe.fontWeight=this.weight,Oe}}class Xt extends R.XFAObject{constructor(Oe){super(W,"format",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.picture=null}}class At extends R.StringObject{constructor(Oe){super(W,"handler"),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class zt extends R.XFAObject{constructor(Oe){super(W,"hyphenation"),this.excludeAllCaps=(0,e.getInteger)({data:Oe.excludeAllCaps,defaultValue:0,validate:ft=>ft===1}),this.excludeInitialCap=(0,e.getInteger)({data:Oe.excludeInitialCap,defaultValue:0,validate:ft=>ft===1}),this.hyphenate=(0,e.getInteger)({data:Oe.hyphenate,defaultValue:0,validate:ft=>ft===1}),this.id=Oe.id||"",this.pushCharacterCount=(0,e.getInteger)({data:Oe.pushCharacterCount,defaultValue:3,validate:ft=>ft>=0}),this.remainCharacterCount=(0,e.getInteger)({data:Oe.remainCharacterCount,defaultValue:3,validate:ft=>ft>=0}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.wordCharacterCount=(0,e.getInteger)({data:Oe.wordCharacterCount,defaultValue:7,validate:ft=>ft>=0})}}class Br extends R.StringObject{constructor(Oe){super(W,"image"),this.aspect=(0,e.getStringOption)(Oe.aspect,["fit","actual","height","none","width"]),this.contentType=Oe.contentType||"",this.href=Oe.href||"",this.id=Oe.id||"",this.name=Oe.name||"",this.transferEncoding=(0,e.getStringOption)(Oe.transferEncoding,["base64","none","package"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$toHTML](){if(this.contentType&&!se.has(this.contentType.toLowerCase()))return e.HTMLResult.EMPTY;let Oe=this[R.$globalData].images&&this[R.$globalData].images.get(this.href);if(!Oe&&(this.href||!this[R.$content])||(!Oe&&this.transferEncoding==="base64"&&(Oe=(0,ae.stringToBytes)(atob(this[R.$content]))),!Oe))return e.HTMLResult.EMPTY;if(!this.contentType){for(const[qr,sn]of oe)if(Oe.length>qr.length&&qr.every((Kr,on)=>Kr===Oe[on])){this.contentType=sn;break}if(!this.contentType)return e.HTMLResult.EMPTY}const ft=new Blob([Oe],{type:this.contentType});let yr;switch(this.aspect){case"fit":case"actual":break;case"height":yr={height:"100%",objectFit:"fill"};break;case"none":yr={width:"100%",height:"100%",objectFit:"fill"};break;case"width":yr={width:"100%",objectFit:"fill"};break}const lr=this[R.$getParent]();return e.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:yr,src:URL.createObjectURL(ft),alt:lr?Ce(lr[R.$getParent]()):null}})}}class br extends R.XFAObject{constructor(Oe){super(W,"imageEdit",!0),this.data=(0,e.getStringOption)(Oe.data,["link","embed"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){return this.data==="embed"?e.HTMLResult.success({name:"div",children:[],attributes:{}}):e.HTMLResult.EMPTY}}class Ur extends R.ContentObject{constructor(Oe){super(W,"integer"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=parseInt(this[R.$content].trim(),10);this[R.$content]=isNaN(Oe)?null:Oe}[R.$toHTML](Oe){return pe(this[R.$content]!==null?this[R.$content].toString():"")}}class un extends R.XFAObject{constructor(Oe){super(W,"issuers",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.certificate=new R.XFAObjectArray}}class sr extends R.XFAObject{constructor(Oe){super(W,"items",!0),this.id=Oe.id||"",this.name=Oe.name||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.ref=Oe.ref||"",this.save=(0,e.getInteger)({data:Oe.save,defaultValue:0,validate:ft=>ft===1}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.boolean=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.time=new R.XFAObjectArray}[R.$toHTML](){const Oe=[];for(const ft of this[R.$getChildren]())Oe.push(ft[R.$text]());return e.HTMLResult.success(Oe)}}D.Items=sr;class ur extends R.XFAObject{constructor(Oe){super(W,"keep",!0),this.id=Oe.id||"";const ft=["none","contentArea","pageArea"];this.intact=(0,e.getStringOption)(Oe.intact,ft),this.next=(0,e.getStringOption)(Oe.next,ft),this.previous=(0,e.getStringOption)(Oe.previous,ft),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}}class Cr extends R.XFAObject{constructor(Oe){super(W,"keyUsage");const ft=["","yes","no"];this.crlSign=(0,e.getStringOption)(Oe.crlSign,ft),this.dataEncipherment=(0,e.getStringOption)(Oe.dataEncipherment,ft),this.decipherOnly=(0,e.getStringOption)(Oe.decipherOnly,ft),this.digitalSignature=(0,e.getStringOption)(Oe.digitalSignature,ft),this.encipherOnly=(0,e.getStringOption)(Oe.encipherOnly,ft),this.id=Oe.id||"",this.keyAgreement=(0,e.getStringOption)(Oe.keyAgreement,ft),this.keyCertSign=(0,e.getStringOption)(Oe.keyCertSign,ft),this.keyEncipherment=(0,e.getStringOption)(Oe.keyEncipherment,ft),this.nonRepudiation=(0,e.getStringOption)(Oe.nonRepudiation,ft),this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Tr extends R.XFAObject{constructor(Oe){super(W,"line",!0),this.hand=(0,e.getStringOption)(Oe.hand,["even","left","right"]),this.id=Oe.id||"",this.slope=(0,e.getStringOption)(Oe.slope,["\\","/"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.edge=null}[R.$toHTML](){const Oe=this[R.$getParent]()[R.$getParent](),ft=this.edge||new Wt({}),yr=ft[R.$toStyle](),lr=Object.create(null),qr=ft.presence==="visible"?ft.thickness:0;lr.strokeWidth=(0,z.measureToString)(qr),lr.stroke=yr.color;let sn,Kr,on,bn,Dn="100%",zn="100%";Oe.w<=qr?([sn,Kr,on,bn]=["50%",0,"50%","100%"],Dn=lr.strokeWidth):Oe.h<=qr?([sn,Kr,on,bn]=[0,"50%","100%","50%"],zn=lr.strokeWidth):this.slope==="\\"?[sn,Kr,on,bn]=[0,0,"100%","100%"]:[sn,Kr,on,bn]=[0,"100%","100%",0];const kn={name:"svg",children:[{name:"line",attributes:{xmlns:X,x1:sn,y1:Kr,x2:on,y2:bn,style:lr}}],attributes:{xmlns:X,width:Dn,height:zn,style:{overflow:"visible"}}};return Ee(Oe)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[kn]}):(kn.attributes.style.position="absolute",e.HTMLResult.success(kn))}}class jt extends R.XFAObject{constructor(Oe){super(W,"linear",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["toRight","toBottom","toLeft","toTop"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](Oe){Oe=Oe?Oe[R.$toStyle]():"#FFFFFF";const ft=this.type.replace(/([RBLT])/," $1").toLowerCase(),yr=this.color?this.color[R.$toStyle]():"#000000";return`linear-gradient(${ft}, ${Oe}, ${yr})`}}class Wr extends R.ContentObject{constructor(Oe){super(W,"lockDocument"),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){this[R.$content]=(0,e.getStringOption)(this[R.$content],["auto","0","1"])}}class ir extends R.XFAObject{constructor(Oe){super(W,"manifest",!0),this.action=(0,e.getStringOption)(Oe.action,["include","all","exclude"]),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.ref=new R.XFAObjectArray}}class Gr extends R.XFAObject{constructor(Oe){super(W,"margin",!0),this.bottomInset=(0,e.getMeasurement)(Oe.bottomInset,"0"),this.id=Oe.id||"",this.leftInset=(0,e.getMeasurement)(Oe.leftInset,"0"),this.rightInset=(0,e.getMeasurement)(Oe.rightInset,"0"),this.topInset=(0,e.getMeasurement)(Oe.topInset,"0"),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}[R.$toStyle](){return{margin:(0,z.measureToString)(this.topInset)+" "+(0,z.measureToString)(this.rightInset)+" "+(0,z.measureToString)(this.bottomInset)+" "+(0,z.measureToString)(this.leftInset)}}}class Jr extends R.XFAObject{constructor(Oe){super(W,"mdp"),this.id=Oe.id||"",this.permissions=(0,e.getInteger)({data:Oe.permissions,defaultValue:2,validate:ft=>ft===1||ft===3}),this.signatureType=(0,e.getStringOption)(Oe.signatureType,["filler","author"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Xr extends R.XFAObject{constructor(Oe){super(W,"medium"),this.id=Oe.id||"",this.imagingBBox=(0,e.getBBox)(Oe.imagingBBox),this.long=(0,e.getMeasurement)(Oe.long),this.orientation=(0,e.getStringOption)(Oe.orientation,["portrait","landscape"]),this.short=(0,e.getMeasurement)(Oe.short),this.stock=Oe.stock||"",this.trayIn=(0,e.getStringOption)(Oe.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,e.getStringOption)(Oe.trayOut,["auto","delegate"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class fn extends R.XFAObject{constructor(Oe){super(W,"message",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.text=new R.XFAObjectArray}}class cn extends R.XFAObject{constructor(Oe){super(W,"numericEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(Oe.hScrollPolicy,["auto","off","on"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){const ft=(0,z.toStyle)(this,"border","font","margin"),yr=this[R.$getParent]()[R.$getParent](),lr={name:"input",attributes:{type:"text",fieldId:yr[R.$uid],dataId:yr[R.$data]&&yr[R.$data][R.$uid]||yr[R.$uid],class:["xfaTextfield"],style:ft,"aria-label":Ce(yr),"aria-required":!1}};return fe(yr)&&(lr.attributes["aria-required"]=!0,lr.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[lr]})}}class nn extends R.XFAObject{constructor(Oe){super(W,"occur",!0),this.id=Oe.id||"",this.initial=Oe.initial!==""?(0,e.getInteger)({data:Oe.initial,defaultValue:"",validate:ft=>!0}):"",this.max=Oe.max!==""?(0,e.getInteger)({data:Oe.max,defaultValue:1,validate:ft=>!0}):"",this.min=Oe.min!==""?(0,e.getInteger)({data:Oe.min,defaultValue:1,validate:ft=>!0}):"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}[R.$clean](){const Oe=this[R.$getParent](),ft=this.min;this.min===""&&(this.min=Oe instanceof Rr||Oe instanceof Mr?0:1),this.max===""&&(ft===""?this.max=Oe instanceof Rr||Oe instanceof Mr?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=Oe instanceof fa?1:this.min)}}class ar extends R.StringObject{constructor(Oe){super(W,"oid"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class xr extends R.XFAObject{constructor(Oe){super(W,"oids",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.oid=new R.XFAObjectArray}}class Lr extends R.XFAObject{constructor(Oe){super(W,"overflow"),this.id=Oe.id||"",this.leader=Oe.leader||"",this.target=Oe.target||"",this.trailer=Oe.trailer||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$getExtra](){if(!this[R.$extra]){const Oe=this[R.$getParent](),ft=this[R.$getTemplateRoot](),yr=ft[R.$searchNode](this.target,Oe),lr=ft[R.$searchNode](this.leader,Oe),qr=ft[R.$searchNode](this.trailer,Oe);this[R.$extra]={target:yr&&yr[0]||null,leader:lr&&lr[0]||null,trailer:qr&&qr[0]||null,addLeader:!1,addTrailer:!1}}return this[R.$extra]}}class Rr extends R.XFAObject{constructor(Oe){super(W,"pageArea",!0),this.blankOrNotBlank=(0,e.getStringOption)(Oe.blankOrNotBlank,["any","blank","notBlank"]),this.id=Oe.id||"",this.initialNumber=(0,e.getInteger)({data:Oe.initialNumber,defaultValue:1,validate:ft=>!0}),this.name=Oe.name||"",this.numbered=(0,e.getInteger)({data:Oe.numbered,defaultValue:1,validate:ft=>!0}),this.oddOrEven=(0,e.getStringOption)(Oe.oddOrEven,["any","even","odd"]),this.pagePosition=(0,e.getStringOption)(Oe.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new R.XFAObjectArray,this.contentArea=new R.XFAObjectArray,this.draw=new R.XFAObjectArray,this.exclGroup=new R.XFAObjectArray,this.field=new R.XFAObjectArray,this.subform=new R.XFAObjectArray}[R.$isUsable](){return this[R.$extra]?!this.occur||this.occur.max===-1||this[R.$extra].numberOfUse<this.occur.max:(this[R.$extra]={numberOfUse:0},!0)}[R.$cleanPage](){delete this[R.$extra]}[R.$getNextPage](){this[R.$extra]||(this[R.$extra]={numberOfUse:0});const Oe=this[R.$getParent]();return Oe.relation==="orderedOccurrence"&&this[R.$isUsable]()?(this[R.$extra].numberOfUse+=1,this):Oe[R.$getNextPage]()}[R.$getAvailableSpace](){return this[R.$extra].space||{width:0,height:0}}[R.$toHTML](){this[R.$extra]||(this[R.$extra]={numberOfUse:1});const Oe=[];this[R.$extra].children=Oe;const ft=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(ft.width=(0,z.measureToString)(this.medium.short),ft.height=(0,z.measureToString)(this.medium.long),this[R.$extra].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){const yr=ft.width;ft.width=ft.height,ft.height=yr,this[R.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,ae.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[R.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[R.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),e.HTMLResult.success({name:"div",children:Oe,attributes:{class:["xfaPage"],id:this[R.$uid],style:ft,xfaName:this.name}})}}class Mr extends R.XFAObject{constructor(Oe){super(W,"pageSet",!0),this.duplexImposition=(0,e.getStringOption)(Oe.duplexImposition,["longEdge","shortEdge"]),this.id=Oe.id||"",this.name=Oe.name||"",this.relation=(0,e.getStringOption)(Oe.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.occur=null,this.pageArea=new R.XFAObjectArray,this.pageSet=new R.XFAObjectArray}[R.$cleanPage](){for(const Oe of this.pageArea.children)Oe[R.$cleanPage]();for(const Oe of this.pageSet.children)Oe[R.$cleanPage]()}[R.$isUsable](){return!this.occur||this.occur.max===-1||this[R.$extra].numberOfUse<this.occur.max}[R.$getNextPage](){if(this[R.$extra]||(this[R.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),this.relation==="orderedOccurrence"){if(this[R.$extra].pageIndex+1<this.pageArea.children.length)return this[R.$extra].pageIndex+=1,this.pageArea.children[this[R.$extra].pageIndex][R.$getNextPage]();if(this[R.$extra].pageSetIndex+1<this.pageSet.children.length)return this[R.$extra].pageSetIndex+=1,this.pageSet.children[this[R.$extra].pageSetIndex][R.$getNextPage]();if(this[R.$isUsable]())return this[R.$extra].numberOfUse+=1,this[R.$extra].pageIndex=-1,this[R.$extra].pageSetIndex=-1,this[R.$getNextPage]();const qr=this[R.$getParent]();return qr instanceof Mr?qr[R.$getNextPage]():(this[R.$cleanPage](),this[R.$getNextPage]())}const Oe=this[R.$getTemplateRoot]()[R.$extra].pageNumber,ft=Oe%2===0?"even":"odd",yr=Oe===0?"first":"rest";let lr=this.pageArea.children.find(qr=>qr.oddOrEven===ft&&qr.pagePosition===yr);return lr||(lr=this.pageArea.children.find(qr=>qr.oddOrEven==="any"&&qr.pagePosition===yr),lr)||(lr=this.pageArea.children.find(qr=>qr.oddOrEven==="any"&&qr.pagePosition==="any"),lr)?lr:this.pageArea.children[0]}}class an extends R.XFAObject{constructor(Oe){super(W,"para",!0),this.hAlign=(0,e.getStringOption)(Oe.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=Oe.id||"",this.lineHeight=Oe.lineHeight?(0,e.getMeasurement)(Oe.lineHeight,"0pt"):"",this.marginLeft=Oe.marginLeft?(0,e.getMeasurement)(Oe.marginLeft,"0pt"):"",this.marginRight=Oe.marginRight?(0,e.getMeasurement)(Oe.marginRight,"0pt"):"",this.orphans=(0,e.getInteger)({data:Oe.orphans,defaultValue:0,validate:ft=>ft>=0}),this.preserve=Oe.preserve||"",this.radixOffset=Oe.radixOffset?(0,e.getMeasurement)(Oe.radixOffset,"0pt"):"",this.spaceAbove=Oe.spaceAbove?(0,e.getMeasurement)(Oe.spaceAbove,"0pt"):"",this.spaceBelow=Oe.spaceBelow?(0,e.getMeasurement)(Oe.spaceBelow,"0pt"):"",this.tabDefault=Oe.tabDefault?(0,e.getMeasurement)(this.tabDefault):"",this.tabStops=(Oe.tabStops||"").trim().split(/\s+/).map((ft,yr)=>yr%2===1?(0,e.getMeasurement)(ft):ft),this.textIndent=Oe.textIndent?(0,e.getMeasurement)(Oe.textIndent,"0pt"):"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.vAlign=(0,e.getStringOption)(Oe.vAlign,["top","bottom","middle"]),this.widows=(0,e.getInteger)({data:Oe.widows,defaultValue:0,validate:ft=>ft>=0}),this.hyphenation=null}[R.$toStyle](){const Oe=(0,z.toStyle)(this,"hAlign");return this.marginLeft!==""&&(Oe.paddingLeft=(0,z.measureToString)(this.marginLeft)),this.marginRight!==""&&(Oe.paddingight=(0,z.measureToString)(this.marginRight)),this.spaceAbove!==""&&(Oe.paddingTop=(0,z.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(Oe.paddingBottom=(0,z.measureToString)(this.spaceBelow)),this.textIndent!==""&&(Oe.textIndent=(0,z.measureToString)(this.textIndent),(0,z.fixTextIndent)(Oe)),this.lineHeight>0&&(Oe.lineHeight=(0,z.measureToString)(this.lineHeight)),this.tabDefault!==""&&(Oe.tabSize=(0,z.measureToString)(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(Oe,this.hyphenatation[R.$toStyle]()),Oe}}class gn extends R.XFAObject{constructor(Oe){super(W,"passwordEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(Oe.hScrollPolicy,["auto","off","on"]),this.id=Oe.id||"",this.passwordChar=Oe.passwordChar||"*",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.extras=null,this.margin=null}}class dn extends R.XFAObject{constructor(Oe){super(W,"pattern",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](Oe){Oe=Oe?Oe[R.$toStyle]():"#FFFFFF";const ft=this.color?this.color[R.$toStyle]():"#000000",yr=5,lr="repeating-linear-gradient",qr=`${Oe},${Oe} ${yr}px,${ft} ${yr}px,${ft} ${2*yr}px`;switch(this.type){case"crossHatch":return`${lr}(to top,${qr}) ${lr}(to right,${qr})`;case"crossDiagonal":return`${lr}(45deg,${qr}) ${lr}(-45deg,${qr})`;case"diagonalLeft":return`${lr}(45deg,${qr})`;case"diagonalRight":return`${lr}(-45deg,${qr})`;case"horizontal":return`${lr}(to top,${qr})`;case"vertical":return`${lr}(to right,${qr})`}return""}}class pn extends R.StringObject{constructor(Oe){super(W,"picture"),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Mn extends R.XFAObject{constructor(Oe){super(W,"proto",!0),this.appearanceFilter=new R.XFAObjectArray,this.arc=new R.XFAObjectArray,this.area=new R.XFAObjectArray,this.assist=new R.XFAObjectArray,this.barcode=new R.XFAObjectArray,this.bindItems=new R.XFAObjectArray,this.bookend=new R.XFAObjectArray,this.boolean=new R.XFAObjectArray,this.border=new R.XFAObjectArray,this.break=new R.XFAObjectArray,this.breakAfter=new R.XFAObjectArray,this.breakBefore=new R.XFAObjectArray,this.button=new R.XFAObjectArray,this.calculate=new R.XFAObjectArray,this.caption=new R.XFAObjectArray,this.certificate=new R.XFAObjectArray,this.certificates=new R.XFAObjectArray,this.checkButton=new R.XFAObjectArray,this.choiceList=new R.XFAObjectArray,this.color=new R.XFAObjectArray,this.comb=new R.XFAObjectArray,this.connect=new R.XFAObjectArray,this.contentArea=new R.XFAObjectArray,this.corner=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.dateTimeEdit=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.defaultUi=new R.XFAObjectArray,this.desc=new R.XFAObjectArray,this.digestMethod=new R.XFAObjectArray,this.digestMethods=new R.XFAObjectArray,this.draw=new R.XFAObjectArray,this.edge=new R.XFAObjectArray,this.encoding=new R.XFAObjectArray,this.encodings=new R.XFAObjectArray,this.encrypt=new R.XFAObjectArray,this.encryptData=new R.XFAObjectArray,this.encryption=new R.XFAObjectArray,this.encryptionMethod=new R.XFAObjectArray,this.encryptionMethods=new R.XFAObjectArray,this.event=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.exObject=new R.XFAObjectArray,this.exclGroup=new R.XFAObjectArray,this.execute=new R.XFAObjectArray,this.extras=new R.XFAObjectArray,this.field=new R.XFAObjectArray,this.fill=new R.XFAObjectArray,this.filter=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.font=new R.XFAObjectArray,this.format=new R.XFAObjectArray,this.handler=new R.XFAObjectArray,this.hyphenation=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.imageEdit=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.issuers=new R.XFAObjectArray,this.items=new R.XFAObjectArray,this.keep=new R.XFAObjectArray,this.keyUsage=new R.XFAObjectArray,this.line=new R.XFAObjectArray,this.linear=new R.XFAObjectArray,this.lockDocument=new R.XFAObjectArray,this.manifest=new R.XFAObjectArray,this.margin=new R.XFAObjectArray,this.mdp=new R.XFAObjectArray,this.medium=new R.XFAObjectArray,this.message=new R.XFAObjectArray,this.numericEdit=new R.XFAObjectArray,this.occur=new R.XFAObjectArray,this.oid=new R.XFAObjectArray,this.oids=new R.XFAObjectArray,this.overflow=new R.XFAObjectArray,this.pageArea=new R.XFAObjectArray,this.pageSet=new R.XFAObjectArray,this.para=new R.XFAObjectArray,this.passwordEdit=new R.XFAObjectArray,this.pattern=new R.XFAObjectArray,this.picture=new R.XFAObjectArray,this.radial=new R.XFAObjectArray,this.reason=new R.XFAObjectArray,this.reasons=new R.XFAObjectArray,this.rectangle=new R.XFAObjectArray,this.ref=new R.XFAObjectArray,this.script=new R.XFAObjectArray,this.setProperty=new R.XFAObjectArray,this.signData=new R.XFAObjectArray,this.signature=new R.XFAObjectArray,this.signing=new R.XFAObjectArray,this.solid=new R.XFAObjectArray,this.speak=new R.XFAObjectArray,this.stipple=new R.XFAObjectArray,this.subform=new R.XFAObjectArray,this.subformSet=new R.XFAObjectArray,this.subjectDN=new R.XFAObjectArray,this.subjectDNs=new R.XFAObjectArray,this.submit=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.textEdit=new R.XFAObjectArray,this.time=new R.XFAObjectArray,this.timeStamp=new R.XFAObjectArray,this.toolTip=new R.XFAObjectArray,this.traversal=new R.XFAObjectArray,this.traverse=new R.XFAObjectArray,this.ui=new R.XFAObjectArray,this.validate=new R.XFAObjectArray,this.value=new R.XFAObjectArray,this.variables=new R.XFAObjectArray}}class Yn extends R.XFAObject{constructor(Oe){super(W,"radial",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["toEdge","toCenter"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](Oe){Oe=Oe?Oe[R.$toStyle]():"#FFFFFF";const ft=this.color?this.color[R.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${Oe},${ft}`:`${ft},${Oe}`})`}}class hi extends R.StringObject{constructor(Oe){super(W,"reason"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Ci extends R.XFAObject{constructor(Oe){super(W,"reasons",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.reason=new R.XFAObjectArray}}class da extends R.XFAObject{constructor(Oe){super(W,"rectangle",!0),this.hand=(0,e.getStringOption)(Oe.hand,["even","left","right"]),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.corner=new R.XFAObjectArray(4),this.edge=new R.XFAObjectArray(4),this.fill=null}[R.$toHTML](){const Oe=this.edge.children.length?this.edge.children[0]:new Wt({}),ft=Oe[R.$toStyle](),yr=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(yr,this.fill[R.$toStyle]()):yr.fill="transparent",yr.strokeWidth=(0,z.measureToString)(Oe.presence==="visible"?Oe.thickness:0),yr.stroke=ft.color;const qr=(this.corner.children.length?this.corner.children[0]:new rt({}))[R.$toStyle](),Kr={name:"svg",children:[{name:"rect",attributes:{xmlns:X,width:"100%",height:"100%",x:0,y:0,rx:qr.radius,ry:qr.radius,style:yr}}],attributes:{xmlns:X,style:{overflow:"visible"},width:"100%",height:"100%"}},on=this[R.$getParent]()[R.$getParent]();return Ee(on)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Kr]}):(Kr.attributes.style.position="absolute",e.HTMLResult.success(Kr))}}class ra extends R.StringObject{constructor(Oe){super(W,"ref"),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Ri extends R.StringObject{constructor(Oe){super(W,"script"),this.binding=Oe.binding||"",this.contentType=Oe.contentType||"",this.id=Oe.id||"",this.name=Oe.name||"",this.runAt=(0,e.getStringOption)(Oe.runAt,["client","both","server"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class oi extends R.XFAObject{constructor(Oe){super(W,"setProperty"),this.connection=Oe.connection||"",this.ref=Oe.ref||"",this.target=Oe.target||""}}D.SetProperty=oi;class mi extends R.XFAObject{constructor(Oe){super(W,"signData",!0),this.id=Oe.id||"",this.operation=(0,e.getStringOption)(Oe.operation,["sign","clear","verify"]),this.ref=Oe.ref||"",this.target=Oe.target||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.filter=null,this.manifest=null}}class Ia extends R.XFAObject{constructor(Oe){super(W,"signature",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["PDF1.3","PDF1.6"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class ha extends R.XFAObject{constructor(Oe){super(W,"signing",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.certificate=new R.XFAObjectArray}}class ka extends R.XFAObject{constructor(Oe){super(W,"solid",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null}[R.$toStyle](Oe){return Oe?Oe[R.$toStyle]():"#FFFFFF"}}class na extends R.StringObject{constructor(Oe){super(W,"speak"),this.disable=(0,e.getInteger)({data:Oe.disable,defaultValue:0,validate:ft=>ft===1}),this.id=Oe.id||"",this.priority=(0,e.getStringOption)(Oe.priority,["custom","caption","name","toolTip"]),this.rid=Oe.rid||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class Fi extends R.XFAObject{constructor(Oe){super(W,"stipple",!0),this.id=Oe.id||"",this.rate=(0,e.getInteger)({data:Oe.rate,defaultValue:50,validate:ft=>ft>=0&&ft<=100}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.color=null,this.extras=null}[R.$toStyle](Oe){const ft=this.rate/100;return ae.Util.makeHexColor(Math.round(Oe.value.r*(1-ft)+this.value.r*ft),Math.round(Oe.value.g*(1-ft)+this.value.g*ft),Math.round(Oe.value.b*(1-ft)+this.value.b*ft))}}class Zn extends R.XFAObject{constructor(Oe){super(W,"subform",!0),this.access=(0,e.getStringOption)(Oe.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,e.getInteger)({data:Oe.allowMacro,defaultValue:0,validate:ft=>ft===1}),this.anchorType=(0,e.getStringOption)(Oe.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:Oe.colSpan,defaultValue:1,validate:ft=>ft>=1||ft===-1}),this.columnWidths=(Oe.columnWidths||"").trim().split(/\s+/).map(ft=>ft==="-1"?-1:(0,e.getMeasurement)(ft)),this.h=Oe.h?(0,e.getMeasurement)(Oe.h):"",this.hAlign=(0,e.getStringOption)(Oe.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=Oe.id||"",this.layout=(0,e.getStringOption)(Oe.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=Oe.locale||"",this.maxH=(0,e.getMeasurement)(Oe.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(Oe.maxW,"0pt"),this.mergeMode=(0,e.getStringOption)(Oe.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,e.getMeasurement)(Oe.minH,"0pt"),this.minW=(0,e.getMeasurement)(Oe.minW,"0pt"),this.name=Oe.name||"",this.presence=(0,e.getStringOption)(Oe.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.restoreState=(0,e.getStringOption)(Oe.restoreState,["manual","auto"]),this.scope=(0,e.getStringOption)(Oe.scope,["name","none"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.w=Oe.w?(0,e.getMeasurement)(Oe.w):"",this.x=(0,e.getMeasurement)(Oe.x,"0pt"),this.y=(0,e.getMeasurement)(Oe.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new R.XFAObjectArray,this.breakAfter=new R.XFAObjectArray,this.breakBefore=new R.XFAObjectArray,this.connect=new R.XFAObjectArray,this.draw=new R.XFAObjectArray,this.event=new R.XFAObjectArray,this.exObject=new R.XFAObjectArray,this.exclGroup=new R.XFAObjectArray,this.field=new R.XFAObjectArray,this.proto=new R.XFAObjectArray,this.setProperty=new R.XFAObjectArray,this.subform=new R.XFAObjectArray,this.subformSet=new R.XFAObjectArray}[R.$getSubformParent](){const Oe=this[R.$getParent]();return Oe instanceof ia?Oe[R.$getSubformParent]():Oe}[R.$isBindable](){return!0}[R.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[R.$extra].attempt===0&&this[R.$extra].numberInLine>0||this[R.$getParent]()[R.$isThereMoreWidth]()}*[R.$getContainedChildren](){yield*xe(this)}[R.$flushHTML](){return(0,K.flushHTML)(this)}[R.$addHTML](Oe,ft){(0,K.addHTML)(this,Oe,ft)}[R.$getAvailableSpace](){return(0,K.getAvailableSpace)(this)}[R.$isSplittable](){const Oe=this[R.$getSubformParent]();return Oe[R.$isSplittable]()?this[R.$extra]._isSplittable!==void 0?this[R.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[R.$extra]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[R.$extra]._isSplittable=!1,!1):Oe.layout&&Oe.layout.endsWith("-tb")&&Oe[R.$extra].numberInLine!==0?!1:(this[R.$extra]._isSplittable=!0,!0):!1}[R.$toHTML](Oe){if(ve(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const Cn=new Le({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});Cn[R.$globalData]=this[R.$globalData],this[R.$appendChild](Cn),this.breakAfter.push(Cn)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const Cn=new et({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});Cn[R.$globalData]=this[R.$globalData],this[R.$appendChild](Cn),this.breakBefore.push(Cn)}if(this.break.overflowTarget!==""){const Cn=new Lr({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});Cn[R.$globalData]=this[R.$globalData],this[R.$appendChild](Cn),this.overflow.push(Cn)}this[R.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,ae.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const Cn=this.breakBefore.children[0];if(Ae(Cn))return e.HTMLResult.breakNode(Cn)}if(this[R.$extra]&&this[R.$extra].afterBreakAfter)return e.HTMLResult.EMPTY;(0,z.fixDimensions)(this);const ft=[],yr={id:this[R.$uid],class:[]};(0,z.setAccess)(this,yr.class),this[R.$extra]||(this[R.$extra]=Object.create(null)),Object.assign(this[R.$extra],{children:ft,line:null,attributes:yr,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,Oe.width),height:Math.min(this.h||1/0,Oe.height)},width:0,height:0,prevHeight:0,currentWidth:0});const lr=this[R.$getTemplateRoot](),qr=lr[R.$extra].noLayoutFailure,sn=this[R.$isSplittable]();if(sn||_e(this),!(0,K.checkDimensions)(this,Oe))return e.HTMLResult.FAILURE;const Kr=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const Cn=this[R.$getSubformParent]().columnWidths;Array.isArray(Cn)&&Cn.length>0&&(this[R.$extra].columnWidths=Cn,this[R.$extra].currentColumn=0)}const on=(0,z.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),bn=["xfaSubform"],Dn=(0,z.layoutClass)(this);if(Dn&&bn.push(Dn),yr.style=on,yr.class=bn,this.name&&(yr.xfaName=this.name),this.overflow){const Cn=this.overflow[R.$getExtra]();Cn.addLeader&&(Cn.addLeader=!1,Ne(this,Cn.leader,Oe))}this[R.$pushPara]();const zn=this.layout==="lr-tb"||this.layout==="rl-tb",Bn=zn?L:1;for(;this[R.$extra].attempt<Bn;this[R.$extra].attempt++){zn&&this[R.$extra].attempt===L-1&&(this[R.$extra].numberInLine=0);const Cn=this[R.$childrenToHTML]({filter:Kr,include:!0});if(Cn.success)break;if(Cn.isBreak())return this[R.$popPara](),Cn;if(zn&&this[R.$extra].attempt===0&&this[R.$extra].numberInLine===0&&!lr[R.$extra].noLayoutFailure){this[R.$extra].attempt=Bn;break}}if(this[R.$popPara](),sn||Ge(this),lr[R.$extra].noLayoutFailure=qr,this[R.$extra].attempt===Bn)return this.overflow&&(this[R.$getTemplateRoot]()[R.$extra].overflowNode=this.overflow),sn||delete this[R.$extra],e.HTMLResult.FAILURE;if(this.overflow){const Cn=this.overflow[R.$getExtra]();Cn.addTrailer&&(Cn.addTrailer=!1,Ne(this,Cn.trailer,Oe))}let kn=0,Gn=0;this.margin&&(kn=this.margin.leftInset+this.margin.rightInset,Gn=this.margin.topInset+this.margin.bottomInset);const En=Math.max(this[R.$extra].width+kn,this.w||0),li=Math.max(this[R.$extra].height+Gn,this.h||0),Sn=[this.x,this.y,En,li];if(this.w===""&&(on.width=(0,z.measureToString)(En)),this.h===""&&(on.height=(0,z.measureToString)(li)),(on.width==="0px"||on.height==="0px")&&ft.length===0)return e.HTMLResult.EMPTY;const In={name:"div",attributes:yr,children:ft};ye(this,yr);const vn=e.HTMLResult.success((0,z.createWrapper)(this,In),Sn);if(this.breakAfter.children.length>=1){const Cn=this.breakAfter.children[0];if(Ae(Cn))return this[R.$extra].afterBreakAfter=vn,e.HTMLResult.breakNode(Cn)}return delete this[R.$extra],vn}}class ia extends R.XFAObject{constructor(Oe){super(W,"subformSet",!0),this.id=Oe.id||"",this.name=Oe.name||"",this.relation=(0,e.getStringOption)(Oe.relation,["ordered","choice","unordered"]),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new R.XFAObjectArray,this.breakBefore=new R.XFAObjectArray,this.subform=new R.XFAObjectArray,this.subformSet=new R.XFAObjectArray}*[R.$getContainedChildren](){yield*xe(this)}[R.$getSubformParent](){let Oe=this[R.$getParent]();for(;!(Oe instanceof Zn);)Oe=Oe[R.$getParent]();return Oe}[R.$isBindable](){return!0}}class Oa extends R.ContentObject{constructor(Oe){super(W,"subjectDN"),this.delimiter=Oe.delimiter||",",this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){this[R.$content]=new Map(this[R.$content].split(this.delimiter).map(Oe=>(Oe=Oe.split("=",2),Oe[0]=Oe[0].trim(),Oe)))}}class aa extends R.XFAObject{constructor(Oe){super(W,"subjectDNs",!0),this.id=Oe.id||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.subjectDN=new R.XFAObjectArray}}class Ii extends R.XFAObject{constructor(Oe){super(W,"submit",!0),this.embedPDF=(0,e.getInteger)({data:Oe.embedPDF,defaultValue:0,validate:ft=>ft===1}),this.format=(0,e.getStringOption)(Oe.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=Oe.id||"",this.target=Oe.target||"",this.textEncoding=(0,e.getKeyword)({data:Oe.textEncoding?Oe.textEncoding.toLowerCase():"",defaultValue:"",validate:ft=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(ft)||ft.match(/iso-8859-\d{2}/)}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.xdpContent=Oe.xdpContent||"",this.encrypt=null,this.encryptData=new R.XFAObjectArray,this.signData=new R.XFAObjectArray}}class fa extends R.XFAObject{constructor(Oe){super(W,"template",!0),this.baseProfile=(0,e.getStringOption)(Oe.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new R.XFAObjectArray}[R.$finalize](){this.subform.children.length===0&&(0,ae.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,ae.warn)("XFA - Several subforms in template node: please file a bug."),this[R.$tabIndex]=ce}[R.$isSplittable](){return!0}[R.$searchNode](Oe,ft){return Oe.startsWith("#")?[this[R.$ids].get(Oe.slice(1))]:(0,J.searchNode)(this,ft,Oe,!0,!0)}*[R.$toPages](){if(!this.subform.children.length)return e.HTMLResult.success({name:"div",children:[]});this[R.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const Oe=this.subform.children[0];Oe.pageSet[R.$cleanPage]();const ft=Oe.pageSet.pageArea.children,yr={name:"div",children:[]};let lr=null,qr=null,sn=null;if(Oe.breakBefore.children.length>=1?(qr=Oe.breakBefore.children[0],sn=qr.target):Oe.subform.children.length>=1&&Oe.subform.children[0].breakBefore.children.length>=1?(qr=Oe.subform.children[0].breakBefore.children[0],sn=qr.target):Oe.break&&Oe.break.beforeTarget?(qr=Oe.break,sn=qr.beforeTarget):Oe.subform.children.length>=1&&Oe.subform.children[0].break&&Oe.subform.children[0].break.beforeTarget&&(qr=Oe.subform.children[0].break,sn=qr.beforeTarget),qr){const Gn=this[R.$searchNode](sn,qr[R.$getParent]());Gn instanceof Rr&&(lr=Gn,qr[R.$extra]={})}lr||(lr=ft[0]),lr[R.$extra]={numberOfUse:1};const Kr=lr[R.$getParent]();Kr[R.$extra]={numberOfUse:1,pageIndex:Kr.pageArea.children.indexOf(lr),pageSetIndex:0};let on,bn=null,Dn=null,zn=!0,Bn=0,kn=0;for(;;){if(zn)Bn=0;else if(yr.children.pop(),++Bn===Q)return(0,ae.warn)("XFA - Something goes wrong: please file a bug."),yr;on=null,this[R.$extra].currentPageArea=lr;const Gn=lr[R.$toHTML]().html;yr.children.push(Gn),bn&&(this[R.$extra].noLayoutFailure=!0,Gn.children.push(bn[R.$toHTML](lr[R.$extra].space).html),bn=null),Dn&&(this[R.$extra].noLayoutFailure=!0,Gn.children.push(Dn[R.$toHTML](lr[R.$extra].space).html),Dn=null);const En=lr.contentArea.children,li=Gn.children.filter(In=>In.attributes.class.includes("xfaContentarea"));zn=!1,this[R.$extra].firstUnsplittable=null,this[R.$extra].noLayoutFailure=!1;const Sn=In=>{const vn=Oe[R.$flushHTML]();vn&&(zn=zn||vn.children&&vn.children.length!==0,li[In].children.push(vn))};for(let In=kn,vn=En.length;In<vn;In++){const Cn=this[R.$extra].currentContentArea=En[In],Ti={width:Cn.w,height:Cn.h};kn=0,bn&&(li[In].children.push(bn[R.$toHTML](Ti).html),bn=null),Dn&&(li[In].children.push(Dn[R.$toHTML](Ti).html),Dn=null);const vi=Oe[R.$toHTML](Ti);if(vi.success)return vi.html?(zn=zn||vi.html.children&&vi.html.children.length!==0,li[In].children.push(vi.html)):!zn&&yr.children.length>1&&yr.children.pop(),yr;if(vi.isBreak()){const Hn=vi.breakNode;if(Sn(In),Hn.targetType==="auto")continue;Hn.leader&&(bn=this[R.$searchNode](Hn.leader,Hn[R.$getParent]()),bn=bn?bn[0]:null),Hn.trailer&&(Dn=this[R.$searchNode](Hn.trailer,Hn[R.$getParent]()),Dn=Dn?Dn[0]:null),Hn.targetType==="pageArea"?(on=Hn[R.$extra].target,In=1/0):Hn[R.$extra].target?(on=Hn[R.$extra].target,kn=Hn[R.$extra].index+1,In=1/0):In=Hn[R.$extra].index;continue}if(this[R.$extra].overflowNode){const Hn=this[R.$extra].overflowNode;this[R.$extra].overflowNode=null;const Ni=Hn[R.$getExtra](),zi=Ni.target;Ni.addLeader=Ni.leader!==null,Ni.addTrailer=Ni.trailer!==null,Sn(In);const Qr=In;if(In=1/0,zi instanceof Rr)on=zi;else if(zi instanceof ut){const gi=En.indexOf(zi);gi!==-1?gi>Qr?In=gi-1:kn=gi:(on=zi[R.$getParent](),kn=on.contentArea.children.indexOf(zi))}continue}Sn(In)}this[R.$extra].pageNumber+=1,on&&(on[R.$isUsable]()?on[R.$extra].numberOfUse+=1:on=null),lr=on||lr[R.$getNextPage](),yield null}}}D.Template=fa;class Na extends R.ContentObject{constructor(Oe){super(W,"text"),this.id=Oe.id||"",this.maxChars=(0,e.getInteger)({data:Oe.maxChars,defaultValue:0,validate:ft=>ft>=0}),this.name=Oe.name||"",this.rid=Oe.rid||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$acceptWhitespace](){return!0}[R.$onChild](Oe){return Oe[R.$namespaceId]===U.NamespaceIds.xhtml.id?(this[R.$content]=Oe,!0):((0,ae.warn)(`XFA - Invalid content in Text: ${Oe[R.$nodeName]}.`),!1)}[R.$onText](Oe){this[R.$content]instanceof R.XFAObject||super[R.$onText](Oe)}[R.$finalize](){typeof this[R.$content]=="string"&&(this[R.$content]=this[R.$content].replace(/\r\n/g,`
`))}[R.$getExtra](){return typeof this[R.$content]=="string"?this[R.$content].split(/[\u2029\u2028\n]/).reduce((Oe,ft)=>(ft&&Oe.push(ft),Oe),[]).join(`
`):this[R.$content][R.$text]()}[R.$toHTML](Oe){if(typeof this[R.$content]=="string"){const ft=pe(this[R.$content]).html;return this[R.$content].includes("\u2029")?(ft.name="div",ft.children=[],this[R.$content].split("\u2029").map(yr=>yr.split(/[\u2028\n]/).reduce((lr,qr)=>(lr.push({name:"span",value:qr},{name:"br"}),lr),[])).forEach(yr=>{ft.children.push({name:"p",children:yr})})):/[\u2028\n]/.test(this[R.$content])&&(ft.name="div",ft.children=[],this[R.$content].split(/[\u2028\n]/).forEach(yr=>{ft.children.push({name:"span",value:yr},{name:"br"})})),e.HTMLResult.success(ft)}return this[R.$content][R.$toHTML](Oe)}}D.Text=Na;class pa extends R.XFAObject{constructor(Oe){super(W,"textEdit",!0),this.allowRichText=(0,e.getInteger)({data:Oe.allowRichText,defaultValue:0,validate:ft=>ft===1}),this.hScrollPolicy=(0,e.getStringOption)(Oe.hScrollPolicy,["auto","off","on"]),this.id=Oe.id||"",this.multiLine=(0,e.getInteger)({data:Oe.multiLine,defaultValue:"",validate:ft=>ft===0||ft===1}),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.vScrollPolicy=(0,e.getStringOption)(Oe.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[R.$toHTML](Oe){const ft=(0,z.toStyle)(this,"border","font","margin");let yr;const lr=this[R.$getParent]()[R.$getParent]();return this.multiLine===""&&(this.multiLine=lr instanceof Vt?1:0),this.multiLine===1?yr={name:"textarea",attributes:{dataId:lr[R.$data]&&lr[R.$data][R.$uid]||lr[R.$uid],fieldId:lr[R.$uid],class:["xfaTextfield"],style:ft,"aria-label":Ce(lr),"aria-required":!1}}:yr={name:"input",attributes:{type:"text",dataId:lr[R.$data]&&lr[R.$data][R.$uid]||lr[R.$uid],fieldId:lr[R.$uid],class:["xfaTextfield"],style:ft,"aria-label":Ce(lr),"aria-required":!1}},fe(lr)&&(yr.attributes["aria-required"]=!0,yr.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[yr]})}}class Vi extends R.StringObject{constructor(Oe){super(W,"time"),this.id=Oe.id||"",this.name=Oe.name||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}[R.$finalize](){const Oe=this[R.$content].trim();this[R.$content]=Oe?new Date(Oe):null}[R.$toHTML](Oe){return pe(this[R.$content]?this[R.$content].toString():"")}}class ki extends R.XFAObject{constructor(Oe){super(W,"timeStamp"),this.id=Oe.id||"",this.server=Oe.server||"",this.type=(0,e.getStringOption)(Oe.type,["optional","required"]),this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class ma extends R.StringObject{constructor(Oe){super(W,"toolTip"),this.id=Oe.id||"",this.rid=Oe.rid||"",this.use=Oe.use||"",this.usehref=Oe.usehref||""}}class sa extends R.XFAObject{constructor(Oe){super(W,"traversal",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.traverse=new R.XFAObjectArray}}class oa extends R.XFAObject{constructor(Oe){super(W,"traverse",!0),this.id=Oe.id||"",this.operation=(0,e.getStringOption)(Oe.operation,["next","back","down","first","left","right","up"]),this.ref=Oe.ref||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[R.$isTransparent](){return!1}}class Ir extends R.XFAObject{constructor(Oe){super(W,"ui",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[R.$getExtra](){if(this[R.$extra]===void 0){for(const Oe of Object.getOwnPropertyNames(this)){if(Oe==="extras"||Oe==="picture")continue;const ft=this[Oe];if(ft instanceof R.XFAObject)return this[R.$extra]=ft,ft}this[R.$extra]=null}return this[R.$extra]}[R.$toHTML](Oe){const ft=this[R.$getExtra]();return ft?ft[R.$toHTML](Oe):e.HTMLResult.EMPTY}}class $n extends R.XFAObject{constructor(Oe){super(W,"validate",!0),this.formatTest=(0,e.getStringOption)(Oe.formatTest,["warning","disabled","error"]),this.id=Oe.id||"",this.nullTest=(0,e.getStringOption)(Oe.nullTest,["disabled","error","warning"]),this.scriptTest=(0,e.getStringOption)(Oe.scriptTest,["error","disabled","warning"]),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Ai extends R.XFAObject{constructor(Oe){super(W,"value",!0),this.id=Oe.id||"",this.override=(0,e.getInteger)({data:Oe.override,defaultValue:0,validate:ft=>ft===1}),this.relevant=(0,e.getRelevant)(Oe.relevant),this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[R.$setValue](Oe){const ft=this[R.$getParent]();if(ft instanceof kr&&ft.ui&&ft.ui.imageEdit){this.image||(this.image=new Br({}),this[R.$appendChild](this.image)),this.image[R.$content]=Oe[R.$content];return}const yr=Oe[R.$nodeName];if(this[yr]!==null){this[yr][R.$content]=Oe[R.$content];return}for(const lr of Object.getOwnPropertyNames(this)){const qr=this[lr];qr instanceof R.XFAObject&&(this[lr]=null,this[R.$removeChild](qr))}this[Oe[R.$nodeName]]=Oe,this[R.$appendChild](Oe)}[R.$text](){if(this.exData)return typeof this.exData[R.$content]=="string"?this.exData[R.$content].trim():this.exData[R.$content][R.$text]().trim();for(const Oe of Object.getOwnPropertyNames(this)){if(Oe==="image")continue;const ft=this[Oe];if(ft instanceof R.XFAObject)return(ft[R.$content]||"").toString().trim()}return null}[R.$toHTML](Oe){for(const ft of Object.getOwnPropertyNames(this)){const yr=this[ft];if(yr instanceof R.XFAObject)return yr[R.$toHTML](Oe)}return e.HTMLResult.EMPTY}}D.Value=Ai;class Oi extends R.XFAObject{constructor(Oe){super(W,"variables",!0),this.id=Oe.id||"",this.use=Oe.use||"",this.usehref=Oe.usehref||"",this.boolean=new R.XFAObjectArray,this.date=new R.XFAObjectArray,this.dateTime=new R.XFAObjectArray,this.decimal=new R.XFAObjectArray,this.exData=new R.XFAObjectArray,this.float=new R.XFAObjectArray,this.image=new R.XFAObjectArray,this.integer=new R.XFAObjectArray,this.manifest=new R.XFAObjectArray,this.script=new R.XFAObjectArray,this.text=new R.XFAObjectArray,this.time=new R.XFAObjectArray}[R.$isTransparent](){return!0}}class ga{static[U.$buildXFAObject](Oe,ft){if(ga.hasOwnProperty(Oe)){const yr=ga[Oe](ft);return yr[R.$setSetAttributes](ft),yr}}static appearanceFilter(Oe){return new Ze(Oe)}static arc(Oe){return new ze(Oe)}static area(Oe){return new Te(Oe)}static assist(Oe){return new Fe(Oe)}static barcode(Oe){return new Pe(Oe)}static bind(Oe){return new we(Oe)}static bindItems(Oe){return new Ie(Oe)}static bookend(Oe){return new Be(Oe)}static boolean(Oe){return new Ke(Oe)}static border(Oe){return new Ve(Oe)}static break(Oe){return new je(Oe)}static breakAfter(Oe){return new Le(Oe)}static breakBefore(Oe){return new et(Oe)}static button(Oe){return new Qe(Oe)}static calculate(Oe){return new Ue(Oe)}static caption(Oe){return new $e(Oe)}static certificate(Oe){return new Ye(Oe)}static certificates(Oe){return new tt(Oe)}static checkButton(Oe){return new ot(Oe)}static choiceList(Oe){return new st(Oe)}static color(Oe){return new dt(Oe)}static comb(Oe){return new ct(Oe)}static connect(Oe){return new mt(Oe)}static contentArea(Oe){return new ut(Oe)}static corner(Oe){return new rt(Oe)}static date(Oe){return new He(Oe)}static dateTime(Oe){return new Je(Oe)}static dateTimeEdit(Oe){return new St(Oe)}static decimal(Oe){return new bt(Oe)}static defaultUi(Oe){return new pt(Oe)}static desc(Oe){return new wt(Oe)}static digestMethod(Oe){return new Pt(Oe)}static digestMethods(Oe){return new Nt(Oe)}static draw(Oe){return new Vt(Oe)}static edge(Oe){return new Wt(Oe)}static encoding(Oe){return new Mt(Oe)}static encodings(Oe){return new $t(Oe)}static encrypt(Oe){return new Yt(Oe)}static encryptData(Oe){return new Ft(Oe)}static encryption(Oe){return new Jt(Oe)}static encryptionMethod(Oe){return new er(Oe)}static encryptionMethods(Oe){return new Bt(Oe)}static event(Oe){return new It(Oe)}static exData(Oe){return new Dt(Oe)}static exObject(Oe){return new Zt(Oe)}static exclGroup(Oe){return new gr(Oe)}static execute(Oe){return new fr(Oe)}static extras(Oe){return new Dr(Oe)}static field(Oe){return new kr(Oe)}static fill(Oe){return new cr(Oe)}static filter(Oe){return new Ar(Oe)}static float(Oe){return new yt(Oe)}static font(Oe){return new vt(Oe)}static format(Oe){return new Xt(Oe)}static handler(Oe){return new At(Oe)}static hyphenation(Oe){return new zt(Oe)}static image(Oe){return new Br(Oe)}static imageEdit(Oe){return new br(Oe)}static integer(Oe){return new Ur(Oe)}static issuers(Oe){return new un(Oe)}static items(Oe){return new sr(Oe)}static keep(Oe){return new ur(Oe)}static keyUsage(Oe){return new Cr(Oe)}static line(Oe){return new Tr(Oe)}static linear(Oe){return new jt(Oe)}static lockDocument(Oe){return new Wr(Oe)}static manifest(Oe){return new ir(Oe)}static margin(Oe){return new Gr(Oe)}static mdp(Oe){return new Jr(Oe)}static medium(Oe){return new Xr(Oe)}static message(Oe){return new fn(Oe)}static numericEdit(Oe){return new cn(Oe)}static occur(Oe){return new nn(Oe)}static oid(Oe){return new ar(Oe)}static oids(Oe){return new xr(Oe)}static overflow(Oe){return new Lr(Oe)}static pageArea(Oe){return new Rr(Oe)}static pageSet(Oe){return new Mr(Oe)}static para(Oe){return new an(Oe)}static passwordEdit(Oe){return new gn(Oe)}static pattern(Oe){return new dn(Oe)}static picture(Oe){return new pn(Oe)}static proto(Oe){return new Mn(Oe)}static radial(Oe){return new Yn(Oe)}static reason(Oe){return new hi(Oe)}static reasons(Oe){return new Ci(Oe)}static rectangle(Oe){return new da(Oe)}static ref(Oe){return new ra(Oe)}static script(Oe){return new Ri(Oe)}static setProperty(Oe){return new oi(Oe)}static signData(Oe){return new mi(Oe)}static signature(Oe){return new Ia(Oe)}static signing(Oe){return new ha(Oe)}static solid(Oe){return new ka(Oe)}static speak(Oe){return new na(Oe)}static stipple(Oe){return new Fi(Oe)}static subform(Oe){return new Zn(Oe)}static subformSet(Oe){return new ia(Oe)}static subjectDN(Oe){return new Oa(Oe)}static subjectDNs(Oe){return new aa(Oe)}static submit(Oe){return new Ii(Oe)}static template(Oe){return new fa(Oe)}static text(Oe){return new Na(Oe)}static textEdit(Oe){return new pa(Oe)}static time(Oe){return new Vi(Oe)}static timeStamp(Oe){return new ki(Oe)}static toolTip(Oe){return new ma(Oe)}static traversal(Oe){return new sa(Oe)}static traverse(Oe){return new oa(Oe)}static ui(Oe){return new Ir(Oe)}static validate(Oe){return new $n(Oe)}static value(Oe){return new Ai(Oe)}static variables(Oe){return new Oi(Oe)}}D.TemplateNamespace=ga},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.addHTML=e,D.checkDimensions=he,D.flushHTML=z,D.getAvailableSpace=ae;var R=B(202),U=B(209);function K(J,W){return{name:"div",attributes:{class:[J.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:W}}function z(J){if(!J[R.$extra])return null;const X={name:"div",attributes:J[R.$extra].attributes,children:J[R.$extra].children};if(J[R.$extra].failingNode){const L=J[R.$extra].failingNode[R.$flushHTML]();L&&(J.layout.endsWith("-tb")?X.children.push(K(J,[L])):X.children.push(L))}return X.children.length===0?null:X}function e(J,W,X){const L=J[R.$extra],Q=L.availableSpace,[ce,de,se,oe]=X;switch(J.layout){case"position":{L.width=Math.max(L.width,ce+se),L.height=Math.max(L.height,de+oe),L.children.push(W);break}case"lr-tb":case"rl-tb":(!L.line||L.attempt===1)&&(L.line=K(J,[]),L.children.push(L.line),L.numberInLine=0),L.numberInLine+=1,L.line.children.push(W),L.attempt===0?(L.currentWidth+=se,L.height=Math.max(L.height,L.prevHeight+oe)):(L.currentWidth=se,L.prevHeight=L.height,L.height+=oe,L.attempt=0),L.width=Math.max(L.width,L.currentWidth);break;case"rl-row":case"row":{L.children.push(W),L.width+=se,L.height=Math.max(L.height,oe);const me=(0,U.measureToString)(L.height);for(const Ee of L.children)Ee.attributes.style.height=me;break}case"table":{L.width=Math.min(Q.width,Math.max(L.width,se)),L.height+=oe,L.children.push(W);break}case"tb":{L.width=Math.min(Q.width,Math.max(L.width,se)),L.height+=oe,L.children.push(W);break}}}function ae(J){const W=J[R.$extra].availableSpace,X=J.margin?J.margin.topInset+J.margin.bottomInset:0,L=J.margin?J.margin.leftInset+J.margin.rightInset:0;switch(J.layout){case"lr-tb":case"rl-tb":return J[R.$extra].attempt===0?{width:W.width-L-J[R.$extra].currentWidth,height:W.height-X-J[R.$extra].prevHeight}:{width:W.width-L,height:W.height-X-J[R.$extra].height};case"rl-row":case"row":return{width:J[R.$extra].columnWidths.slice(J[R.$extra].currentColumn).reduce((ce,de)=>ce+de),height:W.height-L};case"table":case"tb":return{width:W.width-L,height:W.height-X-J[R.$extra].height};case"position":default:return W}}function ie(J){let W=J.w===""?NaN:J.w,X=J.h===""?NaN:J.h,[L,Q]=[0,0];switch(J.anchorType||""){case"bottomCenter":[L,Q]=[W/2,X];break;case"bottomLeft":[L,Q]=[0,X];break;case"bottomRight":[L,Q]=[W,X];break;case"middleCenter":[L,Q]=[W/2,X/2];break;case"middleLeft":[L,Q]=[0,X/2];break;case"middleRight":[L,Q]=[W,X/2];break;case"topCenter":[L,Q]=[W/2,0];break;case"topRight":[L,Q]=[W,0];break}let ce,de;switch(J.rotate||0){case 0:[ce,de]=[-L,-Q];break;case 90:[ce,de]=[-Q,L],[W,X]=[X,-W];break;case 180:[ce,de]=[L,Q],[W,X]=[-W,-X];break;case 270:[ce,de]=[Q,-L],[W,X]=[-X,W];break}return[J.x+ce+Math.min(0,W),J.y+de+Math.min(0,X),Math.abs(W),Math.abs(X)]}function he(J,W){if(J[R.$getTemplateRoot]()[R.$extra].firstUnsplittable===null||J.w===0||J.h===0)return!0;const X=2,L=J[R.$getSubformParent](),Q=L[R.$extra]&&L[R.$extra].attempt||0,[,ce,de,se]=ie(J);switch(L.layout){case"lr-tb":case"rl-tb":return Q===0?J[R.$getTemplateRoot]()[R.$extra].noLayoutFailure?J.w!==""?Math.round(de-W.width)<=X:W.width>X:J.h!==""&&Math.round(se-W.height)>X?!1:J.w!==""?Math.round(de-W.width)<=X?!0:L[R.$extra].numberInLine===0?W.height>X:!1:W.width>X:J[R.$getTemplateRoot]()[R.$extra].noLayoutFailure?!0:J.h!==""&&Math.round(se-W.height)>X?!1:J.w===""||Math.round(de-W.width)<=X?W.height>X:L[R.$isThereMoreWidth]()?!1:W.height>X;case"table":case"tb":return J[R.$getTemplateRoot]()[R.$extra].noLayoutFailure?!0:J.h!==""&&!J[R.$isSplittable]()?Math.round(se-W.height)<=X:J.w===""||Math.round(de-W.width)<=X?W.height>X:L[R.$isThereMoreWidth]()?!1:W.height>X;case"position":if(J[R.$getTemplateRoot]()[R.$extra].noLayoutFailure||J.h===""||Math.round(se+ce-W.height)<=X)return!0;const oe=J[R.$getTemplateRoot]()[R.$extra].currentContentArea;return se+ce>oe.h;case"rl-row":case"row":return J[R.$getTemplateRoot]()[R.$extra].noLayoutFailure?!0:J.h!==""?Math.round(se-W.height)<=X:!0;default:return!0}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.computeBbox=X,D.createWrapper=de,D.fixDimensions=L,D.fixTextIndent=se,D.fixURL=fe,D.isPrintOnly=me,D.layoutClass=Q,D.layoutNode=W,D.measureToString=ae,D.setAccess=oe,D.setFontFamily=xe,D.setMinMaxDimensions=he,D.setPara=ke,D.toStyle=ce;var R=B(202),U=B(2),K=B(203),z=B(210),e=B(211);function ae(ve){return typeof ve=="string"?"0px":Number.isInteger(ve)?`${ve}px`:`${ve.toFixed(2)}px`}const ie={anchorType(ve,ye){const Ce=ve[R.$getSubformParent]();if(!(!Ce||Ce.layout&&Ce.layout!=="position"))switch("transform"in ye||(ye.transform=""),ve.anchorType){case"bottomCenter":ye.transform+="translate(-50%, -100%)";break;case"bottomLeft":ye.transform+="translate(0,-100%)";break;case"bottomRight":ye.transform+="translate(-100%,-100%)";break;case"middleCenter":ye.transform+="translate(-50%,-50%)";break;case"middleLeft":ye.transform+="translate(0,-50%)";break;case"middleRight":ye.transform+="translate(-100%,-50%)";break;case"topCenter":ye.transform+="translate(-50%,0)";break;case"topRight":ye.transform+="translate(-100%,0)";break}},dimensions(ve,ye){const Ce=ve[R.$getSubformParent]();let pe=ve.w;const _e=ve.h;if(Ce.layout&&Ce.layout.includes("row")){const Ge=Ce[R.$extra],Ae=ve.colSpan;let Ne;Ae===-1?(Ne=Ge.columnWidths.slice(Ge.currentColumn).reduce((Ze,ze)=>Ze+ze,0),Ge.currentColumn=0):(Ne=Ge.columnWidths.slice(Ge.currentColumn,Ge.currentColumn+Ae).reduce((Ze,ze)=>Ze+ze,0),Ge.currentColumn=(Ge.currentColumn+ve.colSpan)%Ge.columnWidths.length),isNaN(Ne)||(pe=ve.w=Ne)}pe!==""?ye.width=ae(pe):ye.width="auto",_e!==""?ye.height=ae(_e):ye.height="auto"},position(ve,ye){const Ce=ve[R.$getSubformParent]();Ce&&Ce.layout&&Ce.layout!=="position"||(ye.position="absolute",ye.left=ae(ve.x),ye.top=ae(ve.y))},rotate(ve,ye){ve.rotate&&("transform"in ye||(ye.transform=""),ye.transform+=`rotate(-${ve.rotate}deg)`,ye.transformOrigin="top left")},presence(ve,ye){switch(ve.presence){case"invisible":ye.visibility="hidden";break;case"hidden":case"inactive":ye.display="none";break}},hAlign(ve,ye){if(ve[R.$nodeName]==="para")switch(ve.hAlign){case"justifyAll":ye.textAlign="justify-all";break;case"radix":ye.textAlign="left";break;default:ye.textAlign=ve.hAlign}else switch(ve.hAlign){case"left":ye.alignSelf="start";break;case"center":ye.alignSelf="center";break;case"right":ye.alignSelf="end";break}},margin(ve,ye){ve.margin&&(ye.margin=ve.margin[R.$toStyle]().margin)}};function he(ve,ye){ve[R.$getSubformParent]().layout==="position"&&(ve.minW>0&&(ye.minWidth=ae(ve.minW)),ve.maxW>0&&(ye.maxWidth=ae(ve.maxW)),ve.minH>0&&(ye.minHeight=ae(ve.minH)),ve.maxH>0&&(ye.maxHeight=ae(ve.maxH)))}function J(ve,ye,Ce,pe,_e,Ge){const Ae=new e.TextMeasure(ye,Ce,pe,_e);return typeof ve=="string"?Ae.addString(ve):ve[R.$pushGlyphs](Ae),Ae.compute(Ge)}function W(ve,ye){let Ce=null,pe=null,_e=!1;if((!ve.w||!ve.h)&&ve.value){let Ge=0,Ae=0;ve.margin&&(Ge=ve.margin.leftInset+ve.margin.rightInset,Ae=ve.margin.topInset+ve.margin.bottomInset);let Ne=null,Ze=null;ve.para&&(Ze=Object.create(null),Ne=ve.para.lineHeight===""?null:ve.para.lineHeight,Ze.top=ve.para.spaceAbove===""?0:ve.para.spaceAbove,Ze.bottom=ve.para.spaceBelow===""?0:ve.para.spaceBelow,Ze.left=ve.para.marginLeft===""?0:ve.para.marginLeft,Ze.right=ve.para.marginRight===""?0:ve.para.marginRight);let ze=ve.font;if(!ze){const Pe=ve[R.$getTemplateRoot]();let we=ve[R.$getParent]();for(;we&&we!==Pe;){if(we.font){ze=we.font;break}we=we[R.$getParent]()}}const Te=(ve.w||ye.width)-Ge,Fe=ve[R.$globalData].fontFinder;if(ve.value.exData&&ve.value.exData[R.$content]&&ve.value.exData.contentType==="text/html"){const Pe=J(ve.value.exData[R.$content],ze,Ze,Ne,Fe,Te);pe=Pe.width,Ce=Pe.height,_e=Pe.isBroken}else{const Pe=ve.value[R.$text]();if(Pe){const we=J(Pe,ze,Ze,Ne,Fe,Te);pe=we.width,Ce=we.height,_e=we.isBroken}}pe!==null&&!ve.w&&(pe+=Ge),Ce!==null&&!ve.h&&(Ce+=Ae)}return{w:pe,h:Ce,isBroken:_e}}function X(ve,ye,Ce){let pe;if(ve.w!==""&&ve.h!=="")pe=[ve.x,ve.y,ve.w,ve.h];else{if(!Ce)return null;let _e=ve.w;if(_e===""){if(ve.maxW===0){const Ae=ve[R.$getSubformParent]();Ae.layout==="position"&&Ae.w!==""?_e=0:_e=ve.minW}else _e=Math.min(ve.maxW,Ce.width);ye.attributes.style.width=ae(_e)}let Ge=ve.h;if(Ge===""){if(ve.maxH===0){const Ae=ve[R.$getSubformParent]();Ae.layout==="position"&&Ae.h!==""?Ge=0:Ge=ve.minH}else Ge=Math.min(ve.maxH,Ce.height);ye.attributes.style.height=ae(Ge)}pe=[ve.x,ve.y,_e,Ge]}return pe}function L(ve){const ye=ve[R.$getSubformParent]();if(ye.layout&&ye.layout.includes("row")){const Ce=ye[R.$extra],pe=ve.colSpan;let _e;pe===-1?_e=Ce.columnWidths.slice(Ce.currentColumn).reduce((Ge,Ae)=>Ge+Ae,0):_e=Ce.columnWidths.slice(Ce.currentColumn,Ce.currentColumn+pe).reduce((Ge,Ae)=>Ge+Ae,0),isNaN(_e)||(ve.w=_e)}ye.layout&&ye.layout!=="position"&&(ve.x=ve.y=0),ve.layout==="table"&&ve.w===""&&Array.isArray(ve.columnWidths)&&(ve.w=ve.columnWidths.reduce((Ce,pe)=>Ce+pe,0))}function Q(ve){switch(ve.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function ce(ve){const ye=Object.create(null);for(var Ce=arguments.length,pe=new Array(Ce>1?Ce-1:0),_e=1;_e<Ce;_e++)pe[_e-1]=arguments[_e];for(const Ge of pe){const Ae=ve[Ge];if(Ae!==null){if(ie.hasOwnProperty(Ge)){ie[Ge](ve,ye);continue}if(Ae instanceof R.XFAObject){const Ne=Ae[R.$toStyle]();Ne?Object.assign(ye,Ne):(0,U.warn)(`(DEBUG) - XFA - style for ${Ge} not implemented yet`)}}}return ye}function de(ve,ye){const{attributes:Ce}=ye,{style:pe}=Ce,_e={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(Ce.class.push("xfaWrapped"),ve.border){const{widths:Ge,insets:Ae}=ve.border[R.$extra];let Ne,Ze,ze=Ae[0],Te=Ae[3];const Fe=Ae[0]+Ae[2],Pe=Ae[1]+Ae[3];switch(ve.border.hand){case"even":ze-=Ge[0]/2,Te-=Ge[3]/2,Ne=`calc(100% + ${(Ge[1]+Ge[3])/2-Pe}px)`,Ze=`calc(100% + ${(Ge[0]+Ge[2])/2-Fe}px)`;break;case"left":ze-=Ge[0],Te-=Ge[3],Ne=`calc(100% + ${Ge[1]+Ge[3]-Pe}px)`,Ze=`calc(100% + ${Ge[0]+Ge[2]-Fe}px)`;break;case"right":Ne=Pe?`calc(100% - ${Pe}px)`:"100%",Ze=Fe?`calc(100% - ${Fe}px)`:"100%";break}const we=["xfaBorder"];me(ve.border)&&we.push("xfaPrintOnly");const Ie={name:"div",attributes:{class:we,style:{top:`${ze}px`,left:`${Te}px`,width:Ne,height:Ze}},children:[]};for(const Be of["border","borderWidth","borderColor","borderRadius","borderStyle"])pe[Be]!==void 0&&(Ie.attributes.style[Be]=pe[Be],delete pe[Be]);_e.children.push(Ie,ye)}else _e.children.push(ye);for(const Ge of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])pe[Ge]!==void 0&&(_e.attributes.style[Ge]=pe[Ge],delete pe[Ge]);return pe.position==="absolute"?_e.attributes.style.position="absolute":_e.attributes.style.position="relative",delete pe.position,pe.alignSelf&&(_e.attributes.style.alignSelf=pe.alignSelf,delete pe.alignSelf),_e}function se(ve){const ye=(0,K.getMeasurement)(ve.textIndent,"0px");if(ye>=0)return;const pe="padding"+((ve.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),_e=(0,K.getMeasurement)(ve[pe],"0px");ve[pe]=`${_e-ye}px`}function oe(ve,ye){switch(ve.access){case"nonInteractive":ye.push("xfaNonInteractive");break;case"readOnly":ye.push("xfaReadOnly");break;case"protected":ye.push("xfaDisabled");break}}function me(ve){return ve.relevant.length>0&&!ve.relevant[0].excluded&&ve.relevant[0].viewname==="print"}function Ee(ve){const ye=ve[R.$getTemplateRoot]()[R.$extra].paraStack;return ye.length?ye.at(-1):null}function ke(ve,ye,Ce){if(Ce.attributes.class&&Ce.attributes.class.includes("xfaRich")){ye&&(ve.h===""&&(ye.height="auto"),ve.w===""&&(ye.width="auto"));const pe=Ee(ve);if(pe){const _e=Ce.attributes.style;switch(_e.display="flex",_e.flexDirection="column",pe.vAlign){case"top":_e.justifyContent="start";break;case"bottom":_e.justifyContent="end";break;case"middle":_e.justifyContent="center";break}const Ge=pe[R.$toStyle]();for(const[Ae,Ne]of Object.entries(Ge))Ae in _e||(_e[Ae]=Ne)}}}function xe(ve,ye,Ce,pe){if(!Ce){delete pe.fontFamily;return}const _e=(0,K.stripQuotes)(ve.typeface);pe.fontFamily=`"${_e}"`;const Ge=Ce.find(_e);if(Ge){const{fontFamily:Ae}=Ge.regular.cssFontInfo;Ae!==_e&&(pe.fontFamily=`"${Ae}"`);const Ne=Ee(ye);if(Ne&&Ne.lineHeight!==""||pe.lineHeight)return;const Ze=(0,z.selectFont)(ve,Ge);Ze&&(pe.lineHeight=Math.max(1.2,Ze.lineHeight))}}function fe(ve){const ye=(0,U.createValidAbsoluteUrl)(ve,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return ye?ye.href:null}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.FontFinder=void 0,D.getMetrics=ae,D.selectFont=e;var R=B(202),U=B(203),K=B(2);class z{constructor(he){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(he)}add(he){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(const X of he)this.addPdfFont(X);for(const X of this.fonts.values())X.regular||(X.regular=X.italic||X.bold||X.bolditalic);if(!J||J.size===0)return;const W=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const X of J)this.fonts.set(X,W)}addPdfFont(he){const J=he.cssFontInfo,W=J.fontFamily;let X=this.fonts.get(W);X||(X=Object.create(null),this.fonts.set(W,X),this.defaultFont||(this.defaultFont=X));let L="";const Q=parseFloat(J.fontWeight);parseFloat(J.italicAngle)!==0?L=Q>=700?"bolditalic":"italic":Q>=700&&(L="bold"),L||((he.name.includes("Bold")||he.psName&&he.psName.includes("Bold"))&&(L="bold"),(he.name.includes("Italic")||he.name.endsWith("It")||he.psName&&(he.psName.includes("Italic")||he.psName.endsWith("It")))&&(L+="italic")),L||(L="regular"),X[L]=he}getDefault(){return this.defaultFont}find(he){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=this.fonts.get(he)||this.cache.get(he);if(W)return W;const X=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let L=he.replace(X,"");if(W=this.fonts.get(L),W)return this.cache.set(he,W),W;L=L.toLowerCase();const Q=[];for(const[ce,de]of this.fonts.entries())ce.replace(X,"").toLowerCase().startsWith(L)&&Q.push(de);if(Q.length===0)for(const[,ce]of this.fonts.entries())ce.regular.name&&ce.regular.name.replace(X,"").toLowerCase().startsWith(L)&&Q.push(ce);if(Q.length===0){L=L.replace(/psmt|mt/gi,"");for(const[ce,de]of this.fonts.entries())ce.replace(X,"").toLowerCase().startsWith(L)&&Q.push(de)}if(Q.length===0)for(const ce of this.fonts.values())ce.regular.name&&ce.regular.name.replace(X,"").toLowerCase().startsWith(L)&&Q.push(ce);return Q.length>=1?(Q.length!==1&&J&&(0,K.warn)(`XFA - Too many choices to guess the correct font: ${he}`),this.cache.set(he,Q[0]),Q[0]):(J&&!this.warned.has(he)&&(this.warned.add(he),(0,K.warn)(`XFA - Cannot find the font: ${he}`)),null)}}D.FontFinder=z;function e(ie,he){return ie.posture==="italic"?ie.weight==="bold"?he.bolditalic:he.italic:ie.weight==="bold"?he.bold:he.regular}function ae(ie){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=null;if(ie){const Q=(0,U.stripQuotes)(ie.typeface),ce=ie[R.$globalData].fontFinder.find(Q);J=e(ie,ce)}if(!J)return{lineHeight:12,lineGap:2,lineNoGap:10};const W=ie.size||10,X=J.lineHeight?Math.max(he?0:1.2,J.lineHeight):1.2,L=J.lineGap===void 0?.2:J.lineGap;return{lineHeight:X*W,lineGap:L*W,lineNoGap:Math.max(1,X-L)*W}}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.TextMeasure=void 0;var R=B(210);const U=1.02;class K{constructor(ie,he,J,W){if(this.lineHeight=J,this.paraMargin=he||{top:0,bottom:0,left:0,right:0},!ie){[this.pdfFont,this.xfaFont]=this.defaultFont(W);return}this.xfaFont={typeface:ie.typeface,posture:ie.posture,weight:ie.weight,size:ie.size,letterSpacing:ie.letterSpacing};const X=W.find(ie.typeface);if(!X){[this.pdfFont,this.xfaFont]=this.defaultFont(W);return}this.pdfFont=(0,R.selectFont)(ie,X),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(W))}defaultFont(ie){const he=ie.find("Helvetica",!1)||ie.find("Myriad Pro",!1)||ie.find("Arial",!1)||ie.getDefault();if(he&&he.regular){const W=he.regular,L={typeface:W.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[W,L]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class z{constructor(ie,he,J,W){this.fontFinder=W,this.stack=[new K(ie,he,J,W)]}pushData(ie,he,J){const W=this.stack.at(-1);for(const L of["typeface","posture","weight","size","letterSpacing"])ie[L]||(ie[L]=W.xfaFont[L]);for(const L of["top","bottom","left","right"])isNaN(he[L])&&(he[L]=W.paraMargin[L]);const X=new K(ie,he,J||W.lineHeight,this.fontFinder);X.pdfFont||(X.pdfFont=W.pdfFont),this.stack.push(X)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class e{constructor(ie,he,J,W){this.glyphs=[],this.fontSelector=new z(ie,he,J,W),this.extraHeight=0}pushData(ie,he,J){this.fontSelector.pushData(ie,he,J)}popFont(ie){return this.fontSelector.popFont()}addPara(){const ie=this.fontSelector.topFont();this.extraHeight+=ie.paraMargin.top+ie.paraMargin.bottom}addString(ie){if(!ie)return;const he=this.fontSelector.topFont(),J=he.xfaFont.size;if(he.pdfFont){const W=he.xfaFont.letterSpacing,X=he.pdfFont,L=X.lineHeight||1.2,Q=he.lineHeight||Math.max(1.2,L)*J,ce=X.lineGap===void 0?.2:X.lineGap,de=L-ce,se=Math.max(1,de)*J,oe=J/1e3,me=X.defaultWidth||X.charsToGlyphs(" ")[0].width;for(const Ee of ie.split(/[\u2029\n]/)){const ke=X.encodeString(Ee).join(""),xe=X.charsToGlyphs(ke);for(const fe of xe){const ve=fe.width||me;this.glyphs.push([ve*oe+W,Q,se,fe.unicode,!1])}this.glyphs.push([0,0,0,`
`,!0])}this.glyphs.pop();return}for(const W of ie.split(/[\u2029\n]/)){for(const X of W.split(""))this.glyphs.push([J,1.2*J,J,X,!1]);this.glyphs.push([0,0,0,`
`,!0])}this.glyphs.pop()}compute(ie){let he=-1,J=0,W=0,X=0,L=0,Q=0,ce=!1,de=!0;for(let se=0,oe=this.glyphs.length;se<oe;se++){const[me,Ee,ke,xe,fe]=this.glyphs[se],ve=xe===" ",ye=de?ke:Ee;if(fe){W=Math.max(W,L),L=0,X+=Q,Q=ye,he=-1,J=0,de=!1;continue}if(ve){L+me>ie?(W=Math.max(W,L),L=0,X+=Q,Q=ye,he=-1,J=0,ce=!0,de=!1):(Q=Math.max(ye,Q),J=L,L+=me,he=se);continue}if(L+me>ie){X+=Q,Q=ye,he!==-1?(se=he,W=Math.max(W,J),L=0,he=-1,J=0):(W=Math.max(W,L),L=me),ce=!0,de=!1;continue}L+=me,Q=Math.max(ye,Q)}return W=Math.max(W,L),X+=Q+this.extraHeight,{width:U*W,height:X,isBroken:ce}}}D.TextMeasure=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DataHandler=void 0;var R=B(202);class U{constructor(z,e){this.data=e,this.dataset=z.datasets||null}serialize(z){const e=[[-1,this.data[R.$getChildren]()]];for(;e.length>0;){const ie=e.at(-1),[he,J]=ie;if(he+1===J.length){e.pop();continue}const W=J[++ie[0]],X=z.get(W[R.$uid]);if(X)W[R.$setValue](X);else{const Q=W[R.$getAttributes]();for(const ce of Q.values()){const de=z.get(ce[R.$uid]);if(de){ce[R.$setValue](de);break}}}const L=W[R.$getChildren]();L.length>0&&e.push([-1,L])}const ae=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const ie of this.dataset[R.$getChildren]())ie[R.$nodeName]!=="data"&&ie[R.$toString](ae);return this.data[R.$toString](ae),ae.push("</xfa:datasets>"),ae.join("")}}D.DataHandler=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XFAParser=void 0;var R=B(202),U=B(191),K=B(214),z=B(2);class e extends U.XMLParserBase{constructor(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super(),this._builder=new K.Builder(ie),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=U.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=he}parse(ie){if(this.parseXml(ie),this._errorCode===U.XMLParserErrorCode.NoError)return this._current[R.$finalize](),this._current.element}onText(ie){if(ie=ie.replace(this._nbsps,he=>he.slice(1)+" "),this._richText||this._current[R.$acceptWhitespace]()){this._current[R.$onText](ie,this._richText);return}this._whiteRegex.test(ie)||this._current[R.$onText](ie.trim())}onCdata(ie){this._current[R.$onText](ie)}_mkAttributes(ie,he){let J=null,W=null;const X=Object.create({});for(const{name:L,value:Q}of ie)if(L==="xmlns")J?(0,z.warn)(`XFA - multiple namespace definition in <${he}>`):J=Q;else if(L.startsWith("xmlns:")){const ce=L.substring(6);W||(W=[]),W.push({prefix:ce,value:Q})}else{const ce=L.indexOf(":");if(ce===-1)X[L]=Q;else{let de=X[R.$nsAttributes];de||(de=X[R.$nsAttributes]=Object.create(null));const[se,oe]=[L.slice(0,ce),L.slice(ce+1)];let me=de[se];me||(me=de[se]=Object.create(null)),me[oe]=Q}}return[J,W,X]}_getNameAndPrefix(ie,he){const J=ie.indexOf(":");return J===-1?[ie,null]:[ie.substring(J+1),he?"":ie.substring(0,J)]}onBeginElement(ie,he,J){const[W,X,L]=this._mkAttributes(he,ie),[Q,ce]=this._getNameAndPrefix(ie,this._builder.isNsAgnostic()),de=this._builder.build({nsPrefix:ce,name:Q,attributes:L,namespace:W,prefixes:X});if(de[R.$globalData]=this._globalData,J){de[R.$finalize](),this._current[R.$onChild](de)&&de[R.$setId](this._ids),de[R.$clean](this._builder);return}this._stack.push(this._current),this._current=de}onEndElement(ie){const he=this._current;if(he[R.$isCDATAXml]()&&typeof he[R.$content]=="string"){const J=new e;J._globalData=this._globalData;const W=J.parse(he[R.$content]);he[R.$content]=null,he[R.$onChild](W)}he[R.$finalize](),this._current=this._stack.pop(),this._current[R.$onChild](he)&&he[R.$setId](this._ids),he[R.$clean](this._builder)}onError(ie){this._errorCode=ie}}D.XFAParser=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.Builder=void 0;var R=B(204),U=B(202),K=B(215),z=B(207),e=B(224),ae=B(2);class ie extends U.XFAObject{constructor(X){super(-1,"root",Object.create(null)),this.element=null,this[U.$ids]=X}[U.$onChild](X){return this.element=X,!0}[U.$finalize](){super[U.$finalize](),this.element.template instanceof z.Template&&(this[U.$ids].set(U.$root,this.element),this.element.template[U.$resolvePrototypes](this[U.$ids]),this.element.template[U.$ids]=this[U.$ids])}}class he extends U.XFAObject{constructor(){super(-1,"",Object.create(null))}[U.$onChild](X){return!1}}class J{constructor(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(R.NamespaceIds).map(L=>{let{id:Q}=L;return Q})),this._currentNamespace=X||new e.UnknownNamespace(++this._nextNsId)}buildRoot(X){return new ie(X)}build(X){let{nsPrefix:L,name:Q,attributes:ce,namespace:de,prefixes:se}=X;const oe=de!==null;if(oe&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(de)),se&&this._addNamespacePrefix(se),ce.hasOwnProperty(U.$nsAttributes)){const ke=K.NamespaceSetUp.datasets,xe=ce[U.$nsAttributes];let fe=null;for(const[ve,ye]of Object.entries(xe))if(this._getNamespaceToUse(ve)===ke){fe={xfa:ye};break}fe?ce[U.$nsAttributes]=fe:delete ce[U.$nsAttributes]}const me=this._getNamespaceToUse(L),Ee=me&&me[R.$buildXFAObject](Q,ce)||new he;return Ee[U.$isNsAgnostic]()&&this._nsAgnosticLevel++,(oe||se||Ee[U.$isNsAgnostic]())&&(Ee[U.$cleanup]={hasNamespace:oe,prefixes:se,nsAgnostic:Ee[U.$isNsAgnostic]()}),Ee}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(X){let L=this._namespaces.get(X);if(L)return L;for(const[Q,{check:ce}]of Object.entries(R.NamespaceIds))if(ce(X)){if(L=K.NamespaceSetUp[Q],L)return this._namespaces.set(X,L),L;break}return L=new e.UnknownNamespace(++this._nextNsId),this._namespaces.set(X,L),L}_addNamespacePrefix(X){for(const{prefix:L,value:Q}of X){const ce=this._searchNamespace(Q);let de=this._namespacePrefixes.get(L);de||(de=[],this._namespacePrefixes.set(L,de)),de.push(ce)}}_getNamespaceToUse(X){if(!X)return this._currentNamespace;const L=this._namespacePrefixes.get(X);return L&&L.length>0?L.at(-1):((0,ae.warn)(`Unknown namespace prefix: ${X}.`),null)}clean(X){const{hasNamespace:L,prefixes:Q,nsAgnostic:ce}=X;L&&(this._currentNamespace=this._namespaceStack.pop()),Q&&Q.forEach(de=>{let{prefix:se}=de;this._namespacePrefixes.get(se).pop()}),ce&&this._nsAgnosticLevel--}}D.Builder=J},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.NamespaceSetUp=void 0;var R=B(216),U=B(217),K=B(218),z=B(219),e=B(220),ae=B(221),ie=B(207),he=B(222),J=B(223);const W={config:R.ConfigNamespace,connection:U.ConnectionSetNamespace,datasets:K.DatasetsNamespace,localeSet:z.LocaleSetNamespace,signature:e.SignatureNamespace,stylesheet:ae.StylesheetNamespace,template:ie.TemplateNamespace,xdp:he.XdpNamespace,xhtml:J.XhtmlNamespace};D.NamespaceSetUp=W},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ConfigNamespace=void 0;var R=B(204),U=B(202),K=B(203),z=B(2);const e=R.NamespaceIds.config.id;class ae extends U.XFAObject{constructor(ft){super(e,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new U.XFAObjectArray}}class ie extends U.XFAObject{constructor(ft){super(e,"acrobat7",!0),this.dynamicRender=null}}class he extends U.OptionObject{constructor(ft){super(e,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class J extends U.OptionObject{constructor(ft){super(e,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class W extends U.Option01{constructor(ft){super(e,"addSilentPrint")}}class X extends U.Option01{constructor(ft){super(e,"addViewerPreferences")}}class L extends U.Option10{constructor(ft){super(e,"adjustData")}}class Q extends U.IntegerObject{constructor(ft){super(e,"adobeExtensionLevel",0,yr=>yr>=1&&yr<=8)}}class ce extends U.XFAObject{constructor(ft){super(e,"agent",!0),this.name=ft.name?ft.name.trim():"",this.common=new U.XFAObjectArray}}class de extends U.ContentObject{constructor(ft){super(e,"alwaysEmbed")}}class se extends U.StringObject{constructor(ft){super(e,"amd")}}class oe extends U.XFAObject{constructor(ft){super(e,"area"),this.level=(0,K.getInteger)({data:ft.level,defaultValue:0,validate:yr=>yr>=1&&yr<=3}),this.name=(0,K.getStringOption)(ft.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class me extends U.OptionObject{constructor(ft){super(e,"attributes",["preserve","delegate","ignore"])}}class Ee extends U.OptionObject{constructor(ft){super(e,"autoSave",["disabled","enabled"])}}class ke extends U.StringObject{constructor(ft){super(e,"base")}}class xe extends U.XFAObject{constructor(ft){super(e,"batchOutput"),this.format=(0,K.getStringOption)(ft.format,["none","concat","zip","zipCompress"])}}class fe extends U.ContentObject{constructor(ft){super(e,"behaviorOverride")}[U.$finalize](){this[U.$content]=new Map(this[U.$content].trim().split(/\s+/).filter(ft=>ft.includes(":")).map(ft=>ft.split(":",2)))}}class ve extends U.XFAObject{constructor(ft){super(e,"cache",!0),this.templateCache=null}}class ye extends U.Option01{constructor(ft){super(e,"change")}}class Ce extends U.XFAObject{constructor(ft){super(e,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new U.XFAObjectArray}}class pe extends U.XFAObject{constructor(ft){super(e,"compress"),this.scope=(0,K.getStringOption)(ft.scope,["imageOnly","document"])}}class _e extends U.Option01{constructor(ft){super(e,"compressLogicalStructure")}}class Ge extends U.Option10{constructor(ft){super(e,"compressObjectStream")}}class Ae extends U.XFAObject{constructor(ft){super(e,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class Ne extends U.XFAObject{constructor(ft){super(e,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new U.XFAObjectArray}}class Ze extends U.OptionObject{constructor(ft){super(e,"conformance",["A","B"])}}class ze extends U.Option01{constructor(ft){super(e,"contentCopy")}}class Te extends U.IntegerObject{constructor(ft){super(e,"copies",1,yr=>yr>=1)}}class Fe extends U.StringObject{constructor(ft){super(e,"creator")}}class Pe extends U.IntegerObject{constructor(ft){super(e,"currentPage",0,yr=>yr>=0)}}class we extends U.XFAObject{constructor(ft){super(e,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new U.XFAObjectArray,this.transform=new U.XFAObjectArray}}class Ie extends U.XFAObject{constructor(ft){super(e,"debug",!0),this.uri=null}}class Be extends U.ContentObject{constructor(ft){super(e,"defaultTypeface"),this.writingScript=(0,K.getStringOption)(ft.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class Ke extends U.OptionObject{constructor(ft){super(e,"destination",["pdf","pcl","ps","webClient","zpl"])}}class Ve extends U.Option01{constructor(ft){super(e,"documentAssembly")}}class je extends U.XFAObject{constructor(ft){super(e,"driver",!0),this.name=ft.name?ft.name.trim():"",this.fontInfo=null,this.xdc=null}}class Le extends U.OptionObject{constructor(ft){super(e,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class et extends U.OptionObject{constructor(ft){super(e,"dynamicRender",["forbidden","required"])}}class Qe extends U.Option01{constructor(ft){super(e,"embed")}}class Ue extends U.Option01{constructor(ft){super(e,"encrypt")}}class $e extends U.XFAObject{constructor(ft){super(e,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class Ye extends U.OptionObject{constructor(ft){super(e,"encryptionLevel",["40bit","128bit"])}}class tt extends U.StringObject{constructor(ft){super(e,"enforce")}}class ot extends U.XFAObject{constructor(ft){super(e,"equate"),this.force=(0,K.getInteger)({data:ft.force,defaultValue:1,validate:yr=>yr===0}),this.from=ft.from||"",this.to=ft.to||""}}class st extends U.XFAObject{constructor(ft){super(e,"equateRange"),this.from=ft.from||"",this.to=ft.to||"",this._unicodeRange=ft.unicodeRange||""}get unicodeRange(){const ft=[],yr=/U\+([0-9a-fA-F]+)/,lr=this._unicodeRange;for(let qr of lr.split(",").map(sn=>sn.trim()).filter(sn=>!!sn))qr=qr.split("-",2).map(sn=>{const Kr=sn.match(yr);return Kr?parseInt(Kr[1],16):0}),qr.length===1&&qr.push(qr[0]),ft.push(qr);return(0,z.shadow)(this,"unicodeRange",ft)}}class dt extends U.ContentObject{constructor(ft){super(e,"exclude")}[U.$finalize](){this[U.$content]=this[U.$content].trim().split(/\s+/).filter(ft=>ft&&["calculate","close","enter","exit","initialize","ready","validate"].includes(ft))}}class ct extends U.StringObject{constructor(ft){super(e,"excludeNS")}}class mt extends U.OptionObject{constructor(ft){super(e,"flipLabel",["usePrinterSetting","on","off"])}}class ut extends U.XFAObject{constructor(ft){super(e,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new U.XFAObjectArray,this.defaultTypeface=new U.XFAObjectArray,this.neverEmbed=new U.XFAObjectArray}}class rt extends U.Option01{constructor(ft){super(e,"formFieldFilling")}}class He extends U.StringObject{constructor(ft){super(e,"groupParent")}}class Je extends U.OptionObject{constructor(ft){super(e,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class St extends U.StringObject{constructor(ft){super(e,"includeXDPContent")}}class bt extends U.OptionObject{constructor(ft){super(e,"incrementalLoad",["none","forwardOnly"])}}class pt extends U.Option01{constructor(ft){super(e,"incrementalMerge")}}class wt extends U.Option01{constructor(ft){super(e,"interactive")}}class Pt extends U.OptionObject{constructor(ft){super(e,"jog",["usePrinterSetting","none","pageSet"])}}class Nt extends U.XFAObject{constructor(ft){super(e,"labelPrinter",!0),this.name=(0,K.getStringOption)(ft.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Vt extends U.OptionObject{constructor(ft){super(e,"layout",["paginate","panel"])}}class Wt extends U.IntegerObject{constructor(ft){super(e,"level",0,yr=>yr>0)}}class Mt extends U.Option01{constructor(ft){super(e,"linearized")}}class $t extends U.StringObject{constructor(ft){super(e,"locale")}}class Yt extends U.StringObject{constructor(ft){super(e,"localeSet")}}class Ft extends U.XFAObject{constructor(ft){super(e,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class Jt extends U.XFAObject{constructor(ft){super(e,"map",!0),this.equate=new U.XFAObjectArray,this.equateRange=new U.XFAObjectArray}}class er extends U.XFAObject{constructor(ft){super(e,"mediumInfo",!0),this.map=null}}class Bt extends U.XFAObject{constructor(ft){super(e,"message",!0),this.msgId=null,this.severity=null}}class It extends U.XFAObject{constructor(ft){super(e,"messaging",!0),this.message=new U.XFAObjectArray}}class Dt extends U.OptionObject{constructor(ft){super(e,"mode",["append","overwrite"])}}class Zt extends U.Option01{constructor(ft){super(e,"modifyAnnots")}}class gr extends U.IntegerObject{constructor(ft){super(e,"msgId",1,yr=>yr>=1)}}class fr extends U.StringObject{constructor(ft){super(e,"nameAttr")}}class Dr extends U.ContentObject{constructor(ft){super(e,"neverEmbed")}}class kr extends U.IntegerObject{constructor(ft){super(e,"numberOfCopies",null,yr=>yr>=2&&yr<=5)}}class cr extends U.XFAObject{constructor(ft){super(e,"openAction",!0),this.destination=null}}class Ar extends U.XFAObject{constructor(ft){super(e,"output",!0),this.to=null,this.type=null,this.uri=null}}class yt extends U.StringObject{constructor(ft){super(e,"outputBin")}}class vt extends U.XFAObject{constructor(ft){super(e,"outputXSL",!0),this.uri=null}}class Xt extends U.OptionObject{constructor(ft){super(e,"overprint",["none","both","draw","field"])}}class At extends U.StringObject{constructor(ft){super(e,"packets")}[U.$finalize](){this[U.$content]!=="*"&&(this[U.$content]=this[U.$content].trim().split(/\s+/).filter(ft=>["config","datasets","template","xfdf","xslt"].includes(ft)))}}class zt extends U.XFAObject{constructor(ft){super(e,"pageOffset"),this.x=(0,K.getInteger)({data:ft.x,defaultValue:"useXDCSetting",validate:yr=>!0}),this.y=(0,K.getInteger)({data:ft.y,defaultValue:"useXDCSetting",validate:yr=>!0})}}class Br extends U.StringObject{constructor(ft){super(e,"pageRange")}[U.$finalize](){const ft=this[U.$content].trim().split(/\s+/).map(lr=>parseInt(lr,10)),yr=[];for(let lr=0,qr=ft.length;lr<qr;lr+=2)yr.push(ft.slice(lr,lr+2));this[U.$content]=yr}}class br extends U.OptionObject{constructor(ft){super(e,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class Ur extends U.OptionObject{constructor(ft){super(e,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class un extends U.IntegerObject{constructor(ft){super(e,"part",1,yr=>!1)}}class sr extends U.XFAObject{constructor(ft){super(e,"pcl",!0),this.name=ft.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class ur extends U.XFAObject{constructor(ft){super(e,"pdf",!0),this.name=ft.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class Cr extends U.XFAObject{constructor(ft){super(e,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Tr extends U.XFAObject{constructor(ft){super(e,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class jt extends U.Option01{constructor(ft){super(e,"pickTrayByPDFSize")}}class Wr extends U.StringObject{constructor(ft){super(e,"picture")}}class ir extends U.Option01{constructor(ft){super(e,"plaintextMetadata")}}class Gr extends U.OptionObject{constructor(ft){super(e,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Jr extends U.XFAObject{constructor(ft){super(e,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new U.XFAObjectArray,this.labelPrinter=new U.XFAObjectArray,this.pcl=new U.XFAObjectArray,this.pdf=new U.XFAObjectArray,this.ps=new U.XFAObjectArray,this.submitUrl=new U.XFAObjectArray,this.webClient=new U.XFAObjectArray,this.zpl=new U.XFAObjectArray}}class Xr extends U.Option01{constructor(ft){super(e,"print")}}class fn extends U.Option01{constructor(ft){super(e,"printHighQuality")}}class cn extends U.OptionObject{constructor(ft){super(e,"printScaling",["appdefault","noScaling"])}}class nn extends U.StringObject{constructor(ft){super(e,"printerName")}}class ar extends U.StringObject{constructor(ft){super(e,"producer")}}class xr extends U.XFAObject{constructor(ft){super(e,"ps",!0),this.name=ft.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class Lr extends U.ContentObject{constructor(ft){super(e,"range")}[U.$finalize](){this[U.$content]=this[U.$content].trim().split(/\s*,\s*/,2).map(ft=>ft.split("-").map(yr=>parseInt(yr.trim(),10))).filter(ft=>ft.every(yr=>!isNaN(yr))).map(ft=>(ft.length===1&&ft.push(ft[0]),ft))}}class Rr extends U.ContentObject{constructor(ft){super(e,"record")}[U.$finalize](){this[U.$content]=this[U.$content].trim();const ft=parseInt(this[U.$content],10);!isNaN(ft)&&ft>=0&&(this[U.$content]=ft)}}class Mr extends U.ContentObject{constructor(ft){super(e,"relevant")}[U.$finalize](){this[U.$content]=this[U.$content].trim().split(/\s+/)}}class an extends U.ContentObject{constructor(ft){super(e,"rename")}[U.$finalize](){this[U.$content]=this[U.$content].trim(),(this[U.$content].toLowerCase().startsWith("xml")||this[U.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,z.warn)("XFA - Rename: invalid XFA name")}}class gn extends U.OptionObject{constructor(ft){super(e,"renderPolicy",["server","client"])}}class dn extends U.OptionObject{constructor(ft){super(e,"runScripts",["both","client","none","server"])}}class pn extends U.XFAObject{constructor(ft){super(e,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class Mn extends U.OptionObject{constructor(ft){super(e,"scriptModel",["XFA","none"])}}class Yn extends U.OptionObject{constructor(ft){super(e,"severity",["ignore","error","information","trace","warning"])}}class hi extends U.XFAObject{constructor(ft){super(e,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class Ci extends U.XFAObject{constructor(ft){super(e,"staple"),this.mode=(0,K.getStringOption)(ft.mode,["usePrinterSetting","on","off"])}}class da extends U.StringObject{constructor(ft){super(e,"startNode")}}class ra extends U.IntegerObject{constructor(ft){super(e,"startPage",0,yr=>!0)}}class Ri extends U.OptionObject{constructor(ft){super(e,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class oi extends U.StringObject{constructor(ft){super(e,"submitUrl")}}class mi extends U.IntegerObject{constructor(ft){super(e,"subsetBelow",100,yr=>yr>=0&&yr<=100)}}class Ia extends U.Option01{constructor(ft){super(e,"suppressBanner")}}class ha extends U.Option01{constructor(ft){super(e,"tagged")}}class ka extends U.XFAObject{constructor(ft){super(e,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class na extends U.OptionObject{constructor(ft){super(e,"threshold",["trace","error","information","warning"])}}class Fi extends U.OptionObject{constructor(ft){super(e,"to",["null","memory","stderr","stdout","system","uri"])}}class Zn extends U.XFAObject{constructor(ft){super(e,"templateCache"),this.maxEntries=(0,K.getInteger)({data:ft.maxEntries,defaultValue:5,validate:yr=>yr>=0})}}class ia extends U.XFAObject{constructor(ft){super(e,"trace",!0),this.area=new U.XFAObjectArray}}class Oa extends U.XFAObject{constructor(ft){super(e,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class aa extends U.OptionObject{constructor(ft){super(e,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ii extends U.StringObject{constructor(ft){super(e,"uri")}}class fa extends U.OptionObject{constructor(ft){super(e,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Na extends U.ContentObject{constructor(ft){super(e,"validateApprovalSignatures")}[U.$finalize](){this[U.$content]=this[U.$content].trim().split(/\s+/).filter(ft=>["docReady","postSign"].includes(ft))}}class pa extends U.OptionObject{constructor(ft){super(e,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Vi extends U.OptionObject{constructor(ft){super(e,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class ki extends U.XFAObject{constructor(ft){super(e,"VersionControl"),this.outputBelow=(0,K.getStringOption)(ft.outputBelow,["warn","error","update"]),this.sourceAbove=(0,K.getStringOption)(ft.sourceAbove,["warn","error"]),this.sourceBelow=(0,K.getStringOption)(ft.sourceBelow,["update","maintain"])}}class ma extends U.XFAObject{constructor(ft){super(e,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class sa extends U.XFAObject{constructor(ft){super(e,"webClient",!0),this.name=ft.name?ft.name.trim():"",this.fontInfo=null,this.xdc=null}}class oa extends U.OptionObject{constructor(ft){super(e,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Ir extends U.ContentObject{constructor(ft){super(e,"window")}[U.$finalize](){const ft=this[U.$content].trim().split(/\s*,\s*/,2).map(yr=>parseInt(yr,10));if(ft.some(yr=>isNaN(yr))){this[U.$content]=[0,0];return}ft.length===1&&ft.push(ft[0]),this[U.$content]=ft}}class $n extends U.XFAObject{constructor(ft){super(e,"xdc",!0),this.uri=new U.XFAObjectArray,this.xsl=new U.XFAObjectArray}}class Ai extends U.XFAObject{constructor(ft){super(e,"xdp",!0),this.packets=null}}class Oi extends U.XFAObject{constructor(ft){super(e,"xsl",!0),this.debug=null,this.uri=null}}class ga extends U.XFAObject{constructor(ft){super(e,"zpl",!0),this.name=ft.name?ft.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Er{static[R.$buildXFAObject](ft,yr){if(Er.hasOwnProperty(ft))return Er[ft](yr)}static acrobat(ft){return new ae(ft)}static acrobat7(ft){return new ie(ft)}static ADBE_JSConsole(ft){return new he(ft)}static ADBE_JSDebugger(ft){return new J(ft)}static addSilentPrint(ft){return new W(ft)}static addViewerPreferences(ft){return new X(ft)}static adjustData(ft){return new L(ft)}static adobeExtensionLevel(ft){return new Q(ft)}static agent(ft){return new ce(ft)}static alwaysEmbed(ft){return new de(ft)}static amd(ft){return new se(ft)}static area(ft){return new oe(ft)}static attributes(ft){return new me(ft)}static autoSave(ft){return new Ee(ft)}static base(ft){return new ke(ft)}static batchOutput(ft){return new xe(ft)}static behaviorOverride(ft){return new fe(ft)}static cache(ft){return new ve(ft)}static change(ft){return new ye(ft)}static common(ft){return new Ce(ft)}static compress(ft){return new pe(ft)}static compressLogicalStructure(ft){return new _e(ft)}static compressObjectStream(ft){return new Ge(ft)}static compression(ft){return new Ae(ft)}static config(ft){return new Ne(ft)}static conformance(ft){return new Ze(ft)}static contentCopy(ft){return new ze(ft)}static copies(ft){return new Te(ft)}static creator(ft){return new Fe(ft)}static currentPage(ft){return new Pe(ft)}static data(ft){return new we(ft)}static debug(ft){return new Ie(ft)}static defaultTypeface(ft){return new Be(ft)}static destination(ft){return new Ke(ft)}static documentAssembly(ft){return new Ve(ft)}static driver(ft){return new je(ft)}static duplexOption(ft){return new Le(ft)}static dynamicRender(ft){return new et(ft)}static embed(ft){return new Qe(ft)}static encrypt(ft){return new Ue(ft)}static encryption(ft){return new $e(ft)}static encryptionLevel(ft){return new Ye(ft)}static enforce(ft){return new tt(ft)}static equate(ft){return new ot(ft)}static equateRange(ft){return new st(ft)}static exclude(ft){return new dt(ft)}static excludeNS(ft){return new ct(ft)}static flipLabel(ft){return new mt(ft)}static fontInfo(ft){return new ut(ft)}static formFieldFilling(ft){return new rt(ft)}static groupParent(ft){return new He(ft)}static ifEmpty(ft){return new Je(ft)}static includeXDPContent(ft){return new St(ft)}static incrementalLoad(ft){return new bt(ft)}static incrementalMerge(ft){return new pt(ft)}static interactive(ft){return new wt(ft)}static jog(ft){return new Pt(ft)}static labelPrinter(ft){return new Nt(ft)}static layout(ft){return new Vt(ft)}static level(ft){return new Wt(ft)}static linearized(ft){return new Mt(ft)}static locale(ft){return new $t(ft)}static localeSet(ft){return new Yt(ft)}static log(ft){return new Ft(ft)}static map(ft){return new Jt(ft)}static mediumInfo(ft){return new er(ft)}static message(ft){return new Bt(ft)}static messaging(ft){return new It(ft)}static mode(ft){return new Dt(ft)}static modifyAnnots(ft){return new Zt(ft)}static msgId(ft){return new gr(ft)}static nameAttr(ft){return new fr(ft)}static neverEmbed(ft){return new Dr(ft)}static numberOfCopies(ft){return new kr(ft)}static openAction(ft){return new cr(ft)}static output(ft){return new Ar(ft)}static outputBin(ft){return new yt(ft)}static outputXSL(ft){return new vt(ft)}static overprint(ft){return new Xt(ft)}static packets(ft){return new At(ft)}static pageOffset(ft){return new zt(ft)}static pageRange(ft){return new Br(ft)}static pagination(ft){return new br(ft)}static paginationOverride(ft){return new Ur(ft)}static part(ft){return new un(ft)}static pcl(ft){return new sr(ft)}static pdf(ft){return new ur(ft)}static pdfa(ft){return new Cr(ft)}static permissions(ft){return new Tr(ft)}static pickTrayByPDFSize(ft){return new jt(ft)}static picture(ft){return new Wr(ft)}static plaintextMetadata(ft){return new ir(ft)}static presence(ft){return new Gr(ft)}static present(ft){return new Jr(ft)}static print(ft){return new Xr(ft)}static printHighQuality(ft){return new fn(ft)}static printScaling(ft){return new cn(ft)}static printerName(ft){return new nn(ft)}static producer(ft){return new ar(ft)}static ps(ft){return new xr(ft)}static range(ft){return new Lr(ft)}static record(ft){return new Rr(ft)}static relevant(ft){return new Mr(ft)}static rename(ft){return new an(ft)}static renderPolicy(ft){return new gn(ft)}static runScripts(ft){return new dn(ft)}static script(ft){return new pn(ft)}static scriptModel(ft){return new Mn(ft)}static severity(ft){return new Yn(ft)}static silentPrint(ft){return new hi(ft)}static staple(ft){return new Ci(ft)}static startNode(ft){return new da(ft)}static startPage(ft){return new ra(ft)}static submitFormat(ft){return new Ri(ft)}static submitUrl(ft){return new oi(ft)}static subsetBelow(ft){return new mi(ft)}static suppressBanner(ft){return new Ia(ft)}static tagged(ft){return new ha(ft)}static template(ft){return new ka(ft)}static templateCache(ft){return new Zn(ft)}static threshold(ft){return new na(ft)}static to(ft){return new Fi(ft)}static trace(ft){return new ia(ft)}static transform(ft){return new Oa(ft)}static type(ft){return new aa(ft)}static uri(ft){return new Ii(ft)}static validate(ft){return new fa(ft)}static validateApprovalSignatures(ft){return new Na(ft)}static validationMessaging(ft){return new pa(ft)}static version(ft){return new Vi(ft)}static versionControl(ft){return new ki(ft)}static viewerPreferences(ft){return new ma(ft)}static webClient(ft){return new sa(ft)}static whitespace(ft){return new oa(ft)}static window(ft){return new Ir(ft)}static xdc(ft){return new $n(ft)}static xdp(ft){return new Ai(ft)}static xsl(ft){return new Oi(ft)}static zpl(ft){return new ga(ft)}}D.ConfigNamespace=Er},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectionSetNamespace=void 0;var R=B(204),U=B(202);const K=R.NamespaceIds.connectionSet.id;class z extends U.XFAObject{constructor(me){super(K,"connectionSet",!0),this.wsdlConnection=new U.XFAObjectArray,this.xmlConnection=new U.XFAObjectArray,this.xsdConnection=new U.XFAObjectArray}}class e extends U.XFAObject{constructor(me){super(K,"effectiveInputPolicy"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class ae extends U.XFAObject{constructor(me){super(K,"effectiveOutputPolicy"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class ie extends U.StringObject{constructor(me){super(K,"operation"),this.id=me.id||"",this.input=me.input||"",this.name=me.name||"",this.output=me.output||"",this.use=me.use||"",this.usehref=me.usehref||""}}class he extends U.StringObject{constructor(me){super(K,"rootElement"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class J extends U.StringObject{constructor(me){super(K,"soapAction"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class W extends U.StringObject{constructor(me){super(K,"soapAddress"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class X extends U.StringObject{constructor(me){super(K,"uri"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class L extends U.StringObject{constructor(me){super(K,"wsdlAddress"),this.id=me.id||"",this.name=me.name||"",this.use=me.use||"",this.usehref=me.usehref||""}}class Q extends U.XFAObject{constructor(me){super(K,"wsdlConnection",!0),this.dataDescription=me.dataDescription||"",this.name=me.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class ce extends U.XFAObject{constructor(me){super(K,"xmlConnection",!0),this.dataDescription=me.dataDescription||"",this.name=me.name||"",this.uri=null}}class de extends U.XFAObject{constructor(me){super(K,"xsdConnection",!0),this.dataDescription=me.dataDescription||"",this.name=me.name||"",this.rootElement=null,this.uri=null}}class se{static[R.$buildXFAObject](me,Ee){if(se.hasOwnProperty(me))return se[me](Ee)}static connectionSet(me){return new z(me)}static effectiveInputPolicy(me){return new e(me)}static effectiveOutputPolicy(me){return new ae(me)}static operation(me){return new ie(me)}static rootElement(me){return new he(me)}static soapAction(me){return new J(me)}static soapAddress(me){return new W(me)}static uri(me){return new X(me)}static wsdlAddress(me){return new L(me)}static wsdlConnection(me){return new Q(me)}static xmlConnection(me){return new ce(me)}static xsdConnection(me){return new de(me)}}D.ConnectionSetNamespace=se},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DatasetsNamespace=void 0;var R=B(202),U=B(204);const K=U.NamespaceIds.datasets.id;class z extends R.XmlObject{constructor(he){super(K,"data",he)}[R.$isNsAgnostic](){return!0}}class e extends R.XFAObject{constructor(he){super(K,"datasets",!0),this.data=null,this.Signature=null}[R.$onChild](he){const J=he[R.$nodeName];(J==="data"&&he[R.$namespaceId]===K||J==="Signature"&&he[R.$namespaceId]===U.NamespaceIds.signature.id)&&(this[J]=he),this[R.$appendChild](he)}}class ae{static[U.$buildXFAObject](he,J){if(ae.hasOwnProperty(he))return ae[he](J)}static datasets(he){return new e(he)}static data(he){return new z(he)}}D.DatasetsNamespace=ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.LocaleSetNamespace=void 0;var R=B(204),U=B(202),K=B(203);const z=R.NamespaceIds.localeSet.id;class e extends U.XFAObject{constructor(Ze){super(z,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new U.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new U.XFAObjectArray(2)}}class ae extends U.StringObject{constructor(Ze){super(z,"currencySymbol"),this.name=(0,K.getStringOption)(Ze.name,["symbol","isoname","decimal"])}}class ie extends U.XFAObject{constructor(Ze){super(z,"currencySymbols",!0),this.currencySymbol=new U.XFAObjectArray(3)}}class he extends U.StringObject{constructor(Ze){super(z,"datePattern"),this.name=(0,K.getStringOption)(Ze.name,["full","long","med","short"])}}class J extends U.XFAObject{constructor(Ze){super(z,"datePatterns",!0),this.datePattern=new U.XFAObjectArray(4)}}class W extends U.ContentObject{constructor(Ze){super(z,"dateTimeSymbols")}}class X extends U.StringObject{constructor(Ze){super(z,"day")}}class L extends U.XFAObject{constructor(Ze){super(z,"dayNames",!0),this.abbr=(0,K.getInteger)({data:Ze.abbr,defaultValue:0,validate:ze=>ze===1}),this.day=new U.XFAObjectArray(7)}}class Q extends U.StringObject{constructor(Ze){super(z,"era")}}class ce extends U.XFAObject{constructor(Ze){super(z,"eraNames",!0),this.era=new U.XFAObjectArray(2)}}class de extends U.XFAObject{constructor(Ze){super(z,"locale",!0),this.desc=Ze.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class se extends U.XFAObject{constructor(Ze){super(z,"localeSet",!0),this.locale=new U.XFAObjectArray}}class oe extends U.StringObject{constructor(Ze){super(z,"meridiem")}}class me extends U.XFAObject{constructor(Ze){super(z,"meridiemNames",!0),this.meridiem=new U.XFAObjectArray(2)}}class Ee extends U.StringObject{constructor(Ze){super(z,"month")}}class ke extends U.XFAObject{constructor(Ze){super(z,"monthNames",!0),this.abbr=(0,K.getInteger)({data:Ze.abbr,defaultValue:0,validate:ze=>ze===1}),this.month=new U.XFAObjectArray(12)}}class xe extends U.StringObject{constructor(Ze){super(z,"numberPattern"),this.name=(0,K.getStringOption)(Ze.name,["full","long","med","short"])}}class fe extends U.XFAObject{constructor(Ze){super(z,"numberPatterns",!0),this.numberPattern=new U.XFAObjectArray(4)}}class ve extends U.StringObject{constructor(Ze){super(z,"numberSymbol"),this.name=(0,K.getStringOption)(Ze.name,["decimal","grouping","percent","minus","zero"])}}class ye extends U.XFAObject{constructor(Ze){super(z,"numberSymbols",!0),this.numberSymbol=new U.XFAObjectArray(5)}}class Ce extends U.StringObject{constructor(Ze){super(z,"timePattern"),this.name=(0,K.getStringOption)(Ze.name,["full","long","med","short"])}}class pe extends U.XFAObject{constructor(Ze){super(z,"timePatterns",!0),this.timePattern=new U.XFAObjectArray(4)}}class _e extends U.XFAObject{constructor(Ze){super(z,"typeFace",!0),this.name=Ze.name|""}}class Ge extends U.XFAObject{constructor(Ze){super(z,"typeFaces",!0),this.typeFace=new U.XFAObjectArray}}class Ae{static[R.$buildXFAObject](Ze,ze){if(Ae.hasOwnProperty(Ze))return Ae[Ze](ze)}static calendarSymbols(Ze){return new e(Ze)}static currencySymbol(Ze){return new ae(Ze)}static currencySymbols(Ze){return new ie(Ze)}static datePattern(Ze){return new he(Ze)}static datePatterns(Ze){return new J(Ze)}static dateTimeSymbols(Ze){return new W(Ze)}static day(Ze){return new X(Ze)}static dayNames(Ze){return new L(Ze)}static era(Ze){return new Q(Ze)}static eraNames(Ze){return new ce(Ze)}static locale(Ze){return new de(Ze)}static localeSet(Ze){return new se(Ze)}static meridiem(Ze){return new oe(Ze)}static meridiemNames(Ze){return new me(Ze)}static month(Ze){return new Ee(Ze)}static monthNames(Ze){return new ke(Ze)}static numberPattern(Ze){return new xe(Ze)}static numberPatterns(Ze){return new fe(Ze)}static numberSymbol(Ze){return new ve(Ze)}static numberSymbols(Ze){return new ye(Ze)}static timePattern(Ze){return new Ce(Ze)}static timePatterns(Ze){return new pe(Ze)}static typeFace(Ze){return new _e(Ze)}static typeFaces(Ze){return new Ge(Ze)}}D.LocaleSetNamespace=Ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.SignatureNamespace=void 0;var R=B(204),U=B(202);const K=R.NamespaceIds.signature.id;class z extends U.XFAObject{constructor(ie){super(K,"signature",!0)}}class e{static[R.$buildXFAObject](ie,he){if(e.hasOwnProperty(ie))return e[ie](he)}static signature(ie){return new z(ie)}}D.SignatureNamespace=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.StylesheetNamespace=void 0;var R=B(204),U=B(202);const K=R.NamespaceIds.stylesheet.id;class z extends U.XFAObject{constructor(ie){super(K,"stylesheet",!0)}}class e{static[R.$buildXFAObject](ie,he){if(e.hasOwnProperty(ie))return e[ie](he)}static stylesheet(ie){return new z(ie)}}D.StylesheetNamespace=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XdpNamespace=void 0;var R=B(204),U=B(202);const K=R.NamespaceIds.xdp.id;class z extends U.XFAObject{constructor(ie){super(K,"xdp",!0),this.uuid=ie.uuid||"",this.timeStamp=ie.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new U.XFAObjectArray,this.template=null}[U.$onChildCheck](ie){const he=R.NamespaceIds[ie[U.$nodeName]];return he&&ie[U.$namespaceId]===he.id}}class e{static[R.$buildXFAObject](ie,he){if(e.hasOwnProperty(ie))return e[ie](he)}static xdp(ie){return new z(ie)}}D.XdpNamespace=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XhtmlNamespace=void 0;var R=B(202),U=B(204),K=B(209),z=B(203);const e=U.NamespaceIds.xhtml.id,ae=Symbol(),ie=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),he=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",Ne=>Ne==="none"?"none":"normal"],["xfa-font-horizontal-scale",Ne=>`scaleX(${Math.max(0,Math.min(parseInt(Ne)/100)).toFixed(2)})`],["xfa-font-vertical-scale",Ne=>`scaleY(${Math.max(0,Math.min(parseInt(Ne)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(Ne,Ze)=>(Ne=Ze.fontSize=(0,z.getMeasurement)(Ne),(0,K.measureToString)(.99*Ne))],["letter-spacing",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["line-height",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["margin",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["margin-bottom",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["margin-left",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["margin-right",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["margin-top",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["text-indent",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))],["font-family",Ne=>Ne],["vertical-align",Ne=>(0,K.measureToString)((0,z.getMeasurement)(Ne))]]),J=/\s+/g,W=/[\r\n]+/g,X=/\r\n?/g;function L(Ne,Ze,ze){const Te=Object.create(null);if(!Ne)return Te;const Fe=Object.create(null);for(const[Pe,we]of Ne.split(";").map(Ie=>Ie.split(":",2))){const Ie=he.get(Pe);if(Ie==="")continue;let Be=we;Ie&&(typeof Ie=="string"?Be=Ie:Be=Ie(we,Fe)),Pe.endsWith("scale")?Te.transform?Te.transform=`${Te[Pe]} ${Be}`:Te.transform=Be:Te[Pe.replaceAll(/-([a-zA-Z])/g,(Ke,Ve)=>Ve.toUpperCase())]=Be}if(Te.fontFamily&&(0,K.setFontFamily)({typeface:Te.fontFamily,weight:Te.fontWeight||"normal",posture:Te.fontStyle||"normal",size:Fe.fontSize||0},Ze,Ze[R.$globalData].fontFinder,Te),ze&&Te.verticalAlign&&Te.verticalAlign!=="0px"&&Te.fontSize){const Ie=(0,z.getMeasurement)(Te.fontSize);Te.fontSize=(0,K.measureToString)(Ie*.583),Te.verticalAlign=(0,K.measureToString)(Math.sign((0,z.getMeasurement)(Te.verticalAlign))*Ie*.333)}return ze&&Te.fontSize&&(Te.fontSize=`calc(${Te.fontSize} * var(--scale-factor))`),(0,K.fixTextIndent)(Te),Te}function Q(Ne){return Ne.style?Ne.style.trim().split(/\s*;\s*/).filter(Ze=>!!Ze).map(Ze=>Ze.split(/\s*:\s*/,2)).filter(Ze=>{let[ze,Te]=Ze;return ze==="font-family"&&Ne[R.$globalData].usedTypefaces.add(Te),ie.has(ze)}).map(Ze=>Ze.join(":")).join(";"):""}const ce=new Set(["body","html"]);class de extends R.XmlObject{constructor(Ze,ze){super(e,ze),this[ae]=!1,this.style=Ze.style||""}[R.$clean](Ze){super[R.$clean](Ze),this.style=Q(this)}[R.$acceptWhitespace](){return!ce.has(this[R.$nodeName])}[R.$onText](Ze){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?this[ae]=!0:(Ze=Ze.replace(W,""),this.style.includes("xfa-spacerun:yes")||(Ze=Ze.replace(J," "))),Ze&&(this[R.$content]+=Ze)}[R.$pushGlyphs](Ze){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const Te=Object.create(null),Fe={top:NaN,bottom:NaN,left:NaN,right:NaN};let Pe=null;for(const[we,Ie]of this.style.split(";").map(Be=>Be.split(":",2)))switch(we){case"font-family":Te.typeface=(0,z.stripQuotes)(Ie);break;case"font-size":Te.size=(0,z.getMeasurement)(Ie);break;case"font-weight":Te.weight=Ie;break;case"font-style":Te.posture=Ie;break;case"letter-spacing":Te.letterSpacing=(0,z.getMeasurement)(Ie);break;case"margin":const Be=Ie.split(/ \t/).map(Ke=>(0,z.getMeasurement)(Ke));switch(Be.length){case 1:Fe.top=Fe.bottom=Fe.left=Fe.right=Be[0];break;case 2:Fe.top=Fe.bottom=Be[0],Fe.left=Fe.right=Be[1];break;case 3:Fe.top=Be[0],Fe.bottom=Be[2],Fe.left=Fe.right=Be[1];break;case 4:Fe.top=Be[0],Fe.left=Be[1],Fe.bottom=Be[2],Fe.right=Be[3];break}break;case"margin-top":Fe.top=(0,z.getMeasurement)(Ie);break;case"margin-bottom":Fe.bottom=(0,z.getMeasurement)(Ie);break;case"margin-left":Fe.left=(0,z.getMeasurement)(Ie);break;case"margin-right":Fe.right=(0,z.getMeasurement)(Ie);break;case"line-height":Pe=(0,z.getMeasurement)(Ie);break}if(Ze.pushData(Te,Fe,Pe),this[R.$content])Ze.addString(this[R.$content]);else for(const we of this[R.$getChildren]()){if(we[R.$nodeName]==="#text"){Ze.addString(we[R.$content]);continue}we[R.$pushGlyphs](Ze)}ze&&Ze.popFont()}[R.$toHTML](Ze){const ze=[];if(this[R.$extra]={children:ze},this[R.$childrenToHTML]({}),ze.length===0&&!this[R.$content])return z.HTMLResult.EMPTY;let Te;return this[ae]?Te=this[R.$content]?this[R.$content].replace(X,`
`):void 0:Te=this[R.$content]||void 0,z.HTMLResult.success({name:this[R.$nodeName],attributes:{href:this.href,style:L(this.style,this,this[ae])},children:ze,value:Te})}}class se extends de{constructor(Ze){super(Ze,"a"),this.href=(0,K.fixURL)(Ze.href)||""}}class oe extends de{constructor(Ze){super(Ze,"b")}[R.$pushGlyphs](Ze){Ze.pushFont({weight:"bold"}),super[R.$pushGlyphs](Ze),Ze.popFont()}}class me extends de{constructor(Ze){super(Ze,"body")}[R.$toHTML](Ze){const ze=super[R.$toHTML](Ze),{html:Te}=ze;return Te?(Te.name="div",Te.attributes.class=["xfaRich"],ze):z.HTMLResult.EMPTY}}class Ee extends de{constructor(Ze){super(Ze,"br")}[R.$text](){return`
`}[R.$pushGlyphs](Ze){Ze.addString(`
`)}[R.$toHTML](Ze){return z.HTMLResult.success({name:"br"})}}class ke extends de{constructor(Ze){super(Ze,"html")}[R.$toHTML](Ze){const ze=[];if(this[R.$extra]={children:ze},this[R.$childrenToHTML]({}),ze.length===0)return z.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[R.$content]||""});if(ze.length===1){const Te=ze[0];if(Te.attributes&&Te.attributes.class.includes("xfaRich"))return z.HTMLResult.success(Te)}return z.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:ze})}}class xe extends de{constructor(Ze){super(Ze,"i")}[R.$pushGlyphs](Ze){Ze.pushFont({posture:"italic"}),super[R.$pushGlyphs](Ze),Ze.popFont()}}class fe extends de{constructor(Ze){super(Ze,"li")}}class ve extends de{constructor(Ze){super(Ze,"ol")}}class ye extends de{constructor(Ze){super(Ze,"p")}[R.$pushGlyphs](Ze){super[R.$pushGlyphs](Ze,!1),Ze.addString(`
`),Ze.addPara(),Ze.popFont()}[R.$text](){return this[R.$getParent]()[R.$getChildren]().at(-1)===this?super[R.$text]():super[R.$text]()+`
`}}class Ce extends de{constructor(Ze){super(Ze,"span")}}class pe extends de{constructor(Ze){super(Ze,"sub")}}class _e extends de{constructor(Ze){super(Ze,"sup")}}class Ge extends de{constructor(Ze){super(Ze,"ul")}}class Ae{static[U.$buildXFAObject](Ze,ze){if(Ae.hasOwnProperty(Ze))return Ae[Ze](ze)}static a(Ze){return new se(Ze)}static b(Ze){return new oe(Ze)}static body(Ze){return new me(Ze)}static br(Ze){return new Ee(Ze)}static html(Ze){return new ke(Ze)}static i(Ze){return new xe(Ze)}static li(Ze){return new fe(Ze)}static ol(Ze){return new ve(Ze)}static p(Ze){return new ye(Ze)}static span(Ze){return new Ce(Ze)}static sub(Ze){return new pe(Ze)}static sup(Ze){return new _e(Ze)}static ul(Ze){return new Ge(Ze)}}D.XhtmlNamespace=Ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.UnknownNamespace=void 0;var R=B(204),U=B(202);class K{constructor(e){this.namespaceId=e}[R.$buildXFAObject](e,ae){return new U.XmlObject(this.namespaceId,e,ae)}}D.UnknownNamespace=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DatasetReader=void 0;var R=B(2),U=B(131),K=B(191);function z(ie){try{return(0,R.stringToUTF8String)(ie)}catch(he){return(0,R.warn)(`UTF-8 decoding failed: "${he}".`),ie}}class e extends K.SimpleXMLParser{constructor(he){super(he),this.node=null}onEndElement(he){const J=super.onEndElement(he);if(J&&he==="xfa:datasets")throw this.node=J,new Error("Aborting DatasetXMLParser.")}}class ae{constructor(he){if(he.datasets)this.node=new K.SimpleXMLParser({hasAttributes:!0}).parseFromString(he.datasets).documentElement;else{const J=new e({hasAttributes:!0});try{J.parseFromString(he["xdp:xdp"])}catch{}this.node=J.node}}getValue(he){if(!this.node||!he)return"";const J=this.node.searchNode((0,U.parseXFAPath)(he),0);if(!J)return"";const W=J.firstChild;return W&&W.nodeName==="value"?J.children.map(X=>z(X.textContent)):z(J.textContent)}}D.DatasetReader=ae},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XRef=void 0;var R=B(2),U=B(130),K=B(131),z=B(142),e=B(132),ae=B(192);class ie{constructor(J,W){this.stream=J,this.pdfManager=W,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new U.RefSet,this.stats=new K.DocStats(W.msgHandler),this._newRefNum=null}getNewRef(){return this._newRefNum===null&&(this._newRefNum=this.entries.length||1),U.Ref.get(this._newRefNum++,0)}resetNewRef(){this._newRefNum=null}setStartXRef(J){this.startXRefQueue=[J]}parse(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W;J?((0,R.warn)("Indexing all PDF objects"),W=this.indexObjects()):W=this.readXRef(),W.assignXref(this),this.trailer=W;let X;try{X=W.get("Encrypt")}catch(Q){if(Q instanceof K.MissingDataException)throw Q;(0,R.warn)(`XRef.parse - Invalid "Encrypt" reference: "${Q}".`)}if(X instanceof U.Dict){const Q=W.get("ID"),ce=Q&&Q.length?Q[0]:"";X.suppressEncryption=!0,this.encrypt=new ae.CipherTransformFactory(X,ce,this.pdfManager.password)}let L;try{L=W.get("Root")}catch(Q){if(Q instanceof K.MissingDataException)throw Q;(0,R.warn)(`XRef.parse - Invalid "Root" reference: "${Q}".`)}if(L instanceof U.Dict)try{if(L.get("Pages")instanceof U.Dict){this.root=L;return}}catch(Q){if(Q instanceof K.MissingDataException)throw Q;(0,R.warn)(`XRef.parse - Invalid "Pages" reference: "${Q}".`)}throw J?new R.InvalidPDFException("Invalid Root reference."):new K.XRefParseException}processXRefTable(J){"tableState"in this||(this.tableState={entryNum:0,streamPos:J.lexer.stream.pos,parserBuf1:J.buf1,parserBuf2:J.buf2});const W=this.readXRefTable(J);if(!(0,U.isCmd)(W,"trailer"))throw new R.FormatError("Invalid XRef table: could not find trailer dictionary");let X=J.getObj();if(!(X instanceof U.Dict)&&X.dict&&(X=X.dict),!(X instanceof U.Dict))throw new R.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,X}readXRefTable(J){const W=J.lexer.stream,X=this.tableState;W.pos=X.streamPos,J.buf1=X.parserBuf1,J.buf2=X.parserBuf2;let L;for(;;){if(!("firstEntryNum"in X)||!("entryCount"in X)){if((0,U.isCmd)(L=J.getObj(),"trailer"))break;X.firstEntryNum=L,X.entryCount=J.getObj()}let Q=X.firstEntryNum;const ce=X.entryCount;if(!Number.isInteger(Q)||!Number.isInteger(ce))throw new R.FormatError("Invalid XRef table: wrong types in subsection header");for(let de=X.entryNum;de<ce;de++){X.streamPos=W.pos,X.entryNum=de,X.parserBuf1=J.buf1,X.parserBuf2=J.buf2;const se={};se.offset=J.getObj(),se.gen=J.getObj();const oe=J.getObj();if(oe instanceof U.Cmd)switch(oe.cmd){case"f":se.free=!0;break;case"n":se.uncompressed=!0;break}if(!Number.isInteger(se.offset)||!Number.isInteger(se.gen)||!(se.free||se.uncompressed))throw new R.FormatError(`Invalid entry in XRef subsection: ${Q}, ${ce}`);de===0&&se.free&&Q===1&&(Q=0),this.entries[de+Q]||(this.entries[de+Q]=se)}X.entryNum=0,X.streamPos=W.pos,X.parserBuf1=J.buf1,X.parserBuf2=J.buf2,delete X.firstEntryNum,delete X.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new R.FormatError("Invalid XRef table: unexpected first object");return L}processXRefStream(J){if(!("streamState"in this)){const W=J.dict,X=W.get("W");let L=W.get("Index");L||(L=[0,W.get("Size")]),this.streamState={entryRanges:L,byteWidths:X,entryNum:0,streamPos:J.pos}}return this.readXRefStream(J),delete this.streamState,J.dict}readXRefStream(J){const W=this.streamState;J.pos=W.streamPos;const[X,L,Q]=W.byteWidths,ce=W.entryRanges;for(;ce.length>0;){const[de,se]=ce;if(!Number.isInteger(de)||!Number.isInteger(se))throw new R.FormatError(`Invalid XRef range fields: ${de}, ${se}`);if(!Number.isInteger(X)||!Number.isInteger(L)||!Number.isInteger(Q))throw new R.FormatError(`Invalid XRef entry fields length: ${de}, ${se}`);for(let oe=W.entryNum;oe<se;++oe){W.entryNum=oe,W.streamPos=J.pos;let me=0,Ee=0,ke=0;for(let fe=0;fe<X;++fe){const ve=J.getByte();if(ve===-1)throw new R.FormatError("Invalid XRef byteWidths 'type'.");me=me<<8|ve}X===0&&(me=1);for(let fe=0;fe<L;++fe){const ve=J.getByte();if(ve===-1)throw new R.FormatError("Invalid XRef byteWidths 'offset'.");Ee=Ee<<8|ve}for(let fe=0;fe<Q;++fe){const ve=J.getByte();if(ve===-1)throw new R.FormatError("Invalid XRef byteWidths 'generation'.");ke=ke<<8|ve}const xe={};switch(xe.offset=Ee,xe.gen=ke,me){case 0:xe.free=!0;break;case 1:xe.uncompressed=!0;break;case 2:break;default:throw new R.FormatError(`Invalid XRef entry type: ${me}`)}this.entries[de+oe]||(this.entries[de+oe]=xe)}W.entryNum=0,W.streamPos=J.pos,ce.splice(0,2)}}indexObjects(){function de(ze,Te){let Fe="",Pe=ze[Te];for(;Pe!==10&&Pe!==13&&Pe!==60&&!(++Te>=ze.length);)Fe+=String.fromCharCode(Pe),Pe=ze[Te];return Fe}function se(ze,Te,Fe){const Pe=Fe.length,we=ze.length;let Ie=0;for(;Te<we;){let Be=0;for(;Be<Pe&&ze[Te+Be]===Fe[Be];)++Be;if(Be>=Pe)break;Te++,Ie++}return Ie}const oe=/^(\d+)\s+(\d+)\s+obj\b/,me=/\bendobj[\b\s]$/,Ee=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,ke=25,xe=new Uint8Array([116,114,97,105,108,101,114]),fe=new Uint8Array([115,116,97,114,116,120,114,101,102]),ve=new Uint8Array([111,98,106]),ye=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const Ce=this.stream;Ce.pos=0;const pe=Ce.getBytes(),_e=pe.length;let Ge=Ce.start;const Ae=[],Ne=[];for(;Ge<_e;){let ze=pe[Ge];if(ze===9||ze===10||ze===13||ze===32){++Ge;continue}if(ze===37){do{if(++Ge,Ge>=_e)break;ze=pe[Ge]}while(ze!==10&&ze!==13);continue}const Te=de(pe,Ge);let Fe;if(Te.startsWith("xref")&&(Te.length===4||/\s/.test(Te[4])))Ge+=se(pe,Ge,xe),Ae.push(Ge),Ge+=se(pe,Ge,fe);else if(Fe=oe.exec(Te)){const Pe=Fe[1]|0,we=Fe[2]|0;let Ie,Be=Ge+Te.length,Ke=!1;if(!this.entries[Pe])Ke=!0;else if(this.entries[Pe].gen===we)try{new z.Parser({lexer:new z.Lexer(Ce.makeSubStream(Be))}).getObj(),Ke=!0}catch(Le){Le instanceof K.ParserEOFException?(0,R.warn)(`indexObjects -- checking object (${Te}): "${Le}".`):Ke=!0}for(Ke&&(this.entries[Pe]={offset:Ge-Ce.start,gen:we,uncompressed:!0});Be<pe.length;){const Le=Be+se(pe,Be,ve)+4;Ie=Le-Ge;const et=Math.max(Le-ke,Be),Qe=(0,R.bytesToString)(pe.subarray(et,Le));if(me.test(Qe))break;{const Ue=Ee.exec(Qe);if(Ue&&Ue[1]){(0,R.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),Ie-=Ue[1].length;break}}Be=Le}const Ve=pe.subarray(Ge,Ge+Ie),je=se(Ve,0,ye);je<Ie&&Ve[je+5]<64&&(Ne.push(Ge-Ce.start),this.xrefstms[Ge-Ce.start]=1),Ge+=Ie}else Te.startsWith("trailer")&&(Te.length===7||/\s/.test(Te[7]))?(Ae.push(Ge),Ge+=se(pe,Ge,fe)):Ge+=Te.length+1}for(let ze=0,Te=Ne.length;ze<Te;++ze)this.startXRefQueue.push(Ne[ze]),this.readXRef(!0);let Ze;for(let ze=0,Te=Ae.length;ze<Te;++ze){Ce.pos=Ae[ze];const Fe=new z.Parser({lexer:new z.Lexer(Ce),xref:this,allowStreams:!0,recoveryMode:!0}),Pe=Fe.getObj();if(!(0,U.isCmd)(Pe,"trailer"))continue;const we=Fe.getObj();if(we instanceof U.Dict){try{const Ie=we.get("Root");if(!(Ie instanceof U.Dict))continue;const Be=Ie.get("Pages");if(!(Be instanceof U.Dict))continue;const Ke=Be.get("Count");if(!Number.isInteger(Ke))continue}catch{continue}if(we.has("ID"))return we;Ze=we}}if(Ze)return Ze;if(this.topDict)return this.topDict;throw new R.InvalidPDFException("Invalid PDF structure.")}readXRef(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=this.stream,X=new Set;try{for(;this.startXRefQueue.length;){const L=this.startXRefQueue[0];if(X.has(L)){(0,R.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}X.add(L),W.pos=L+W.start;const Q=new z.Parser({lexer:new z.Lexer(W),xref:this,allowStreams:!0});let ce=Q.getObj(),de;if((0,U.isCmd)(ce,"xref")){if(de=this.processXRefTable(Q),this.topDict||(this.topDict=de),ce=de.get("XRefStm"),Number.isInteger(ce)){const se=ce;se in this.xrefstms||(this.xrefstms[se]=1,this.startXRefQueue.push(se))}}else if(Number.isInteger(ce)){if(!Number.isInteger(Q.getObj())||!(0,U.isCmd)(Q.getObj(),"obj")||!((ce=Q.getObj())instanceof e.BaseStream))throw new R.FormatError("Invalid XRef stream");if(de=this.processXRefStream(ce),this.topDict||(this.topDict=de),!de)throw new R.FormatError("Failed to read XRef stream")}else throw new R.FormatError("Invalid XRef stream header");ce=de.get("Prev"),Number.isInteger(ce)?this.startXRefQueue.push(ce):ce instanceof U.Ref&&this.startXRefQueue.push(ce.num),this.startXRefQueue.shift()}return this.topDict}catch(L){if(L instanceof K.MissingDataException)throw L;(0,R.info)("(while reading XRef): "+L),this.startXRefQueue.shift()}if(!J)throw new K.XRefParseException}getEntry(J){const W=this.entries[J];return W&&!W.free&&W.offset?W:null}fetchIfRef(J){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return J instanceof U.Ref?this.fetch(J,W):J}fetch(J){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(J instanceof U.Ref))throw new Error("ref object is not a reference");const X=J.num,L=this._cacheMap.get(X);if(L!==void 0)return L instanceof U.Dict&&!L.objId&&(L.objId=J.toString()),L;let Q=this.getEntry(X);if(Q===null)return this._cacheMap.set(X,Q),Q;if(this._pendingRefs.has(J))return this._pendingRefs.remove(J),(0,R.warn)(`Ignoring circular reference: ${J}.`),U.CIRCULAR_REF;this._pendingRefs.put(J);try{Q.uncompressed?Q=this.fetchUncompressed(J,Q,W):Q=this.fetchCompressed(J,Q,W),this._pendingRefs.remove(J)}catch(ce){throw this._pendingRefs.remove(J),ce}return Q instanceof U.Dict?Q.objId=J.toString():Q instanceof e.BaseStream&&(Q.dict.objId=J.toString()),Q}fetchUncompressed(J,W){let X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const L=J.gen;let Q=J.num;if(W.gen!==L)throw new K.XRefEntryException(`Inconsistent generation in XRef: ${J}`);const ce=this.stream.makeSubStream(W.offset+this.stream.start),de=new z.Parser({lexer:new z.Lexer(ce),xref:this,allowStreams:!0}),se=de.getObj(),oe=de.getObj(),me=de.getObj();if(se!==Q||oe!==L||!(me instanceof U.Cmd))throw new K.XRefEntryException(`Bad (uncompressed) XRef entry: ${J}`);if(me.cmd!=="obj"){if(me.cmd.startsWith("obj")&&(Q=parseInt(me.cmd.substring(3),10),!Number.isNaN(Q)))return Q;throw new K.XRefEntryException(`Bad (uncompressed) XRef entry: ${J}`)}return this.encrypt&&!X?W=de.getObj(this.encrypt.createCipherTransform(Q,L)):W=de.getObj(),W instanceof e.BaseStream||this._cacheMap.set(Q,W),W}fetchCompressed(J,W){const X=W.offset,L=this.fetch(U.Ref.get(X,0));if(!(L instanceof e.BaseStream))throw new R.FormatError("bad ObjStm stream");const Q=L.dict.get("First"),ce=L.dict.get("N");if(!Number.isInteger(Q)||!Number.isInteger(ce))throw new R.FormatError("invalid first and n parameters for ObjStm stream");let de=new z.Parser({lexer:new z.Lexer(L),xref:this,allowStreams:!0});const se=new Array(ce),oe=new Array(ce);for(let ke=0;ke<ce;++ke){const xe=de.getObj();if(!Number.isInteger(xe))throw new R.FormatError(`invalid object number in the ObjStm stream: ${xe}`);const fe=de.getObj();if(!Number.isInteger(fe))throw new R.FormatError(`invalid object offset in the ObjStm stream: ${fe}`);se[ke]=xe,oe[ke]=fe}const me=(L.start||0)+Q,Ee=new Array(ce);for(let ke=0;ke<ce;++ke){const xe=ke<ce-1?oe[ke+1]-oe[ke]:void 0;if(xe<0)throw new R.FormatError("Invalid offset in the ObjStm stream.");de=new z.Parser({lexer:new z.Lexer(L.makeSubStream(me+oe[ke],xe,L.dict)),xref:this,allowStreams:!0});const fe=de.getObj();if(Ee[ke]=fe,fe instanceof e.BaseStream)continue;const ve=se[ke],ye=this.entries[ve];ye&&ye.offset===X&&ye.gen===ke&&this._cacheMap.set(ve,fe)}if(W=Ee[W.gen],W===void 0)throw new K.XRefEntryException(`Bad (compressed) XRef entry: ${J}`);return W}async fetchIfRefAsync(J,W){return J instanceof U.Ref?this.fetchAsync(J,W):J}async fetchAsync(J,W){try{return this.fetch(J,W)}catch(X){if(!(X instanceof K.MissingDataException))throw X;return await this.pdfManager.requestRange(X.begin,X.end),this.fetchAsync(J,W)}}getCatalogObj(){return this.root}}D.XRef=ie},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.MessageHandler=void 0;var R=B(2);const U={UNKNOWN:0,DATA:1,ERROR:2},K={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function z(ae){switch(ae instanceof Error||typeof ae=="object"&&ae!==null||(0,R.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),ae.name){case"AbortException":return new R.AbortException(ae.message);case"MissingPDFException":return new R.MissingPDFException(ae.message);case"PasswordException":return new R.PasswordException(ae.message,ae.code);case"UnexpectedResponseException":return new R.UnexpectedResponseException(ae.message,ae.status);case"UnknownErrorException":return new R.UnknownErrorException(ae.message,ae.details);default:return new R.UnknownErrorException(ae.message,ae.toString())}}class e{constructor(ie,he,J){this.sourceName=ie,this.targetName=he,this.comObj=J,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=W=>{const X=W.data;if(X.targetName!==this.sourceName)return;if(X.stream){this._processStreamMessage(X);return}if(X.callback){const Q=X.callbackId,ce=this.callbackCapabilities[Q];if(!ce)throw new Error(`Cannot resolve callback ${Q}`);if(delete this.callbackCapabilities[Q],X.callback===U.DATA)ce.resolve(X.data);else if(X.callback===U.ERROR)ce.reject(z(X.reason));else throw new Error("Unexpected callback case");return}const L=this.actionHandler[X.action];if(!L)throw new Error(`Unknown action from worker: ${X.action}`);if(X.callbackId){const Q=this.sourceName,ce=X.sourceName;new Promise(function(de){de(L(X.data))}).then(function(de){J.postMessage({sourceName:Q,targetName:ce,callback:U.DATA,callbackId:X.callbackId,data:de})},function(de){J.postMessage({sourceName:Q,targetName:ce,callback:U.ERROR,callbackId:X.callbackId,reason:z(de)})});return}if(X.streamId){this._createStreamSink(X);return}L(X.data)},J.addEventListener("message",this._onComObjOnMessage)}on(ie,he){const J=this.actionHandler;if(J[ie])throw new Error(`There is already an actionName called "${ie}"`);J[ie]=he}send(ie,he,J){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ie,data:he},J)}sendWithPromise(ie,he,J){const W=this.callbackId++,X=(0,R.createPromiseCapability)();this.callbackCapabilities[W]=X;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ie,callbackId:W,data:he},J)}catch(L){X.reject(L)}return X.promise}sendWithStream(ie,he,J,W){const X=this.streamId++,L=this.sourceName,Q=this.targetName,ce=this.comObj;return new ReadableStream({start:de=>{const se=(0,R.createPromiseCapability)();return this.streamControllers[X]={controller:de,startCall:se,pullCall:null,cancelCall:null,isClosed:!1},ce.postMessage({sourceName:L,targetName:Q,action:ie,streamId:X,data:he,desiredSize:de.desiredSize},W),se.promise},pull:de=>{const se=(0,R.createPromiseCapability)();return this.streamControllers[X].pullCall=se,ce.postMessage({sourceName:L,targetName:Q,stream:K.PULL,streamId:X,desiredSize:de.desiredSize}),se.promise},cancel:de=>{(0,R.assert)(de instanceof Error,"cancel must have a valid reason");const se=(0,R.createPromiseCapability)();return this.streamControllers[X].cancelCall=se,this.streamControllers[X].isClosed=!0,ce.postMessage({sourceName:L,targetName:Q,stream:K.CANCEL,streamId:X,reason:z(de)}),se.promise}},J)}_createStreamSink(ie){const he=ie.streamId,J=this.sourceName,W=ie.sourceName,X=this.comObj,L=this,Q=this.actionHandler[ie.action],ce={enqueue(de){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const me=this.desiredSize;this.desiredSize-=se,me>0&&this.desiredSize<=0&&(this.sinkCapability=(0,R.createPromiseCapability)(),this.ready=this.sinkCapability.promise),X.postMessage({sourceName:J,targetName:W,stream:K.ENQUEUE,streamId:he,chunk:de},oe)},close(){this.isCancelled||(this.isCancelled=!0,X.postMessage({sourceName:J,targetName:W,stream:K.CLOSE,streamId:he}),delete L.streamSinks[he])},error(de){(0,R.assert)(de instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,X.postMessage({sourceName:J,targetName:W,stream:K.ERROR,streamId:he,reason:z(de)}))},sinkCapability:(0,R.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:ie.desiredSize,ready:null};ce.sinkCapability.resolve(),ce.ready=ce.sinkCapability.promise,this.streamSinks[he]=ce,new Promise(function(de){de(Q(ie.data,ce))}).then(function(){X.postMessage({sourceName:J,targetName:W,stream:K.START_COMPLETE,streamId:he,success:!0})},function(de){X.postMessage({sourceName:J,targetName:W,stream:K.START_COMPLETE,streamId:he,reason:z(de)})})}_processStreamMessage(ie){const he=ie.streamId,J=this.sourceName,W=ie.sourceName,X=this.comObj,L=this.streamControllers[he],Q=this.streamSinks[he];switch(ie.stream){case K.START_COMPLETE:ie.success?L.startCall.resolve():L.startCall.reject(z(ie.reason));break;case K.PULL_COMPLETE:ie.success?L.pullCall.resolve():L.pullCall.reject(z(ie.reason));break;case K.PULL:if(!Q){X.postMessage({sourceName:J,targetName:W,stream:K.PULL_COMPLETE,streamId:he,success:!0});break}Q.desiredSize<=0&&ie.desiredSize>0&&Q.sinkCapability.resolve(),Q.desiredSize=ie.desiredSize,new Promise(function(ce){ce(Q.onPull&&Q.onPull())}).then(function(){X.postMessage({sourceName:J,targetName:W,stream:K.PULL_COMPLETE,streamId:he,success:!0})},function(ce){X.postMessage({sourceName:J,targetName:W,stream:K.PULL_COMPLETE,streamId:he,reason:z(ce)})});break;case K.ENQUEUE:if((0,R.assert)(L,"enqueue should have stream controller"),L.isClosed)break;L.controller.enqueue(ie.chunk);break;case K.CLOSE:if((0,R.assert)(L,"close should have stream controller"),L.isClosed)break;L.isClosed=!0,L.controller.close(),this._deleteStreamController(L,he);break;case K.ERROR:(0,R.assert)(L,"error should have stream controller"),L.controller.error(z(ie.reason)),this._deleteStreamController(L,he);break;case K.CANCEL_COMPLETE:ie.success?L.cancelCall.resolve():L.cancelCall.reject(z(ie.reason)),this._deleteStreamController(L,he);break;case K.CANCEL:if(!Q)break;new Promise(function(ce){ce(Q.onCancel&&Q.onCancel(z(ie.reason)))}).then(function(){X.postMessage({sourceName:J,targetName:W,stream:K.CANCEL_COMPLETE,streamId:he,success:!0})},function(ce){X.postMessage({sourceName:J,targetName:W,stream:K.CANCEL_COMPLETE,streamId:he,reason:z(ce)})}),Q.sinkCapability.reject(z(ie.reason)),Q.isCancelled=!0,delete this.streamSinks[he];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(ie,he){await Promise.allSettled([ie.startCall&&ie.startCall.promise,ie.pullCall&&ie.pullCall.promise,ie.cancelCall&&ie.cancelCall.promise]),delete this.streamControllers[he]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}D.MessageHandler=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFWorkerStream=void 0;var R=B(2);class U{constructor(ae){this._msgHandler=ae,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,R.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new K(this._msgHandler),this._fullRequestReader}getRangeReader(ae,ie){const he=new z(ae,ie,this._msgHandler);return this._rangeRequestReaders.push(he),he}cancelAllRequests(ae){this._fullRequestReader&&this._fullRequestReader.cancel(ae);for(const ie of this._rangeRequestReaders.slice(0))ie.cancel(ae)}}D.PDFWorkerStream=U;class K{constructor(ae){this._msgHandler=ae,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const ie=this._msgHandler.sendWithStream("GetReader");this._reader=ie.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(he=>{this._isStreamingSupported=he.isStreamingSupported,this._isRangeSupported=he.isRangeSupported,this._contentLength=he.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:ae,done:ie}=await this._reader.read();return ie?{value:void 0,done:!0}:{value:ae.buffer,done:!1}}cancel(ae){this._reader.cancel(ae)}}class z{constructor(ae,ie,he){this._msgHandler=he,this.onProgress=null;const J=this._msgHandler.sendWithStream("GetRangeReader",{begin:ae,end:ie});this._reader=J.getReader()}get isStreamingSupported(){return!1}async read(){const{value:ae,done:ie}=await this._reader.read();return ie?{value:void 0,done:!0}:{value:ae.buffer,done:!1}}cancel(ae){this._reader.cancel(ae)}}}],G={};function V($){var D=G[$];if(D!==void 0)return D.exports;var B=G[$]={exports:{}};return M[$](B,B.exports,V),B.exports}V.d=($,D)=>{for(var B in D)V.o(D,B)&&!V.o($,B)&&Object.defineProperty($,B,{enumerable:!0,get:D[B]})},V.o=($,D)=>Object.prototype.hasOwnProperty.call($,D),V.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})};var q={};return(()=>{var $=q;Object.defineProperty($,"__esModule",{value:!0}),Object.defineProperty($,"WorkerMessageHandler",{enumerable:!0,get:function(){return D.WorkerMessageHandler}});var D=V(1)})(),q})())})(pdf_worker);var pdf_workerExports=pdf_worker.exports;(typeof window<"u"?window:{}).pdfjsWorker=pdf_workerExports;var pdf_viewer$1={exports:{}};(function(k,m){(function(G,V){k.exports=V()})(globalThis,()=>(()=>{var M=[,($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DefaultXfaLayerFactory=D.DefaultTextLayerFactory=D.DefaultStructTreeLayerFactory=D.DefaultAnnotationLayerFactory=D.DefaultAnnotationEditorLayerFactory=void 0;var R=B(2),U=B(5),K=B(4),z=B(6),e=B(8),ae=B(9),ie=B(10);class he{createAnnotationLayerBuilder(ce){let{pageDiv:de,pdfPage:se,annotationStorage:oe=null,imageResourcesPath:me="",renderForms:Ee=!0,l10n:ke=K.NullL10n,enableScripting:xe=!1,hasJSActionsPromise:fe=null,mouseState:ve=null,fieldObjectsPromise:ye=null,annotationCanvasMap:Ce=null,accessibilityManager:pe=null}=ce;return new U.AnnotationLayerBuilder({pageDiv:de,pdfPage:se,imageResourcesPath:me,renderForms:Ee,linkService:new z.SimpleLinkService,l10n:ke,annotationStorage:oe,enableScripting:xe,hasJSActionsPromise:fe,fieldObjectsPromise:ye,mouseState:ve,annotationCanvasMap:Ce,accessibilityManager:pe})}}D.DefaultAnnotationLayerFactory=he;class J{createAnnotationEditorLayerBuilder(ce){let{uiManager:de=null,pageDiv:se,pdfPage:oe,accessibilityManager:me=null,l10n:Ee,annotationStorage:ke=null}=ce;return new R.AnnotationEditorLayerBuilder({uiManager:de,pageDiv:se,pdfPage:oe,accessibilityManager:me,l10n:Ee,annotationStorage:ke})}}D.DefaultAnnotationEditorLayerFactory=J;class W{createStructTreeLayerBuilder(ce){let{pdfPage:de}=ce;return new e.StructTreeLayerBuilder({pdfPage:de})}}D.DefaultStructTreeLayerFactory=W;class X{createTextLayerBuilder(ce){let{textLayerDiv:de,pageIndex:se,viewport:oe,enhanceTextSelection:me=!1,eventBus:Ee,highlighter:ke,accessibilityManager:xe=null}=ce;return new ae.TextLayerBuilder({textLayerDiv:de,pageIndex:se,viewport:oe,enhanceTextSelection:me,eventBus:Ee,highlighter:ke,accessibilityManager:xe})}}D.DefaultTextLayerFactory=X;class L{createXfaLayerBuilder(ce){let{pageDiv:de,pdfPage:se,annotationStorage:oe=null}=ce;return new ie.XfaLayerBuilder({pageDiv:de,pdfPage:se,annotationStorage:oe,linkService:new z.SimpleLinkService})}}D.DefaultXfaLayerFactory=L},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.AnnotationEditorLayerBuilder=void 0;var R=B(3),U=B(4);function K(L,Q,ce){z(L,Q),Q.set(L,ce)}function z(L,Q){if(Q.has(L))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(L,Q){var ce=he(L,Q,"get");return ae(L,ce)}function ae(L,Q){return Q.get?Q.get.call(L):Q.value}function ie(L,Q,ce){var de=he(L,Q,"set");return J(L,de,ce),ce}function he(L,Q,ce){if(!Q.has(L))throw new TypeError("attempted to "+ce+" private field on non-instance");return Q.get(L)}function J(L,Q,ce){if(Q.set)Q.set.call(L,ce);else{if(!Q.writable)throw new TypeError("attempted to set read only private field");Q.value=ce}}var W=new WeakMap;class X{constructor(Q){K(this,W,{writable:!0,value:void 0}),this.pageDiv=Q.pageDiv,this.pdfPage=Q.pdfPage,this.annotationStorage=Q.annotationStorage||null,this.accessibilityManager=Q.accessibilityManager,this.l10n=Q.l10n||U.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,ie(this,W,Q.uiManager)}async render(Q){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(ce!=="display"||this._cancelled)return;const de=Q.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:de}),this.show();return}this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new R.AnnotationEditorLayer({uiManager:e(this,W),div:this.div,annotationStorage:this.annotationStorage,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:de});const se={viewport:de,div:this.div,annotations:null,intent:ce};this.annotationEditorLayer.render(se)}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}D.AnnotationEditorLayerBuilder=X},$=>{let D;typeof window<"u"&&window["pdfjs-dist/build/pdf"]?D=window["pdfjs-dist/build/pdf"]:D=requirePdf(),$.exports=D},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.NullL10n=void 0,D.fixupLangCode=K,D.getL10nFallback=R;const B={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text_default_content:"Enter text…",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function R(ae,ie){switch(ae){case"find_match_count":ae=`find_match_count[${ie.total===1?"one":"other"}]`;break;case"find_match_count_limit":ae=`find_match_count_limit[${ie.limit===1?"one":"other"}]`;break}return B[ae]||""}const U={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};function K(ae){return U[ae==null?void 0:ae.toLowerCase()]||ae}function z(ae,ie){return ie?ae.replace(/\{\{\s*(\w+)\s*\}\}/g,(he,J)=>J in ie?ie[J]:"{{"+J+"}}"):ae}const e={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(ae){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R(ae,ie);return z(he,ie)},async translate(ae){}};D.NullL10n=e},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.AnnotationLayerBuilder=void 0;var R=B(3),U=B(4);class K{constructor(e){let{pageDiv:ae,pdfPage:ie,linkService:he,downloadManager:J,annotationStorage:W=null,imageResourcesPath:X="",renderForms:L=!0,l10n:Q=U.NullL10n,enableScripting:ce=!1,hasJSActionsPromise:de=null,fieldObjectsPromise:se=null,mouseState:oe=null,annotationCanvasMap:me=null,accessibilityManager:Ee=null}=e;this.pageDiv=ae,this.pdfPage=ie,this.linkService=he,this.downloadManager=J,this.imageResourcesPath=X,this.renderForms=L,this.l10n=Q,this.annotationStorage=W,this.enableScripting=ce,this._hasJSActionsPromise=de,this._fieldObjectsPromise=se,this._mouseState=oe,this._annotationCanvasMap=me,this._accessibilityManager=Ee,this.div=null,this._cancelled=!1}async render(e){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";const[ie,he=!1,J=null]=await Promise.all([this.pdfPage.getAnnotations({intent:ae}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled||ie.length===0)return;const W={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:ie,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:he,fieldObjects:J,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager};this.div?R.AnnotationLayer.update(W):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),W.div=this.div,R.AnnotationLayer.render(W),this.l10n.translate(this.div))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}D.AnnotationLayerBuilder=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.SimpleLinkService=D.PDFLinkService=D.LinkTarget=void 0;var R=B(7);function U(ke,xe){z(ke,xe),xe.add(ke)}function K(ke,xe,fe){z(ke,xe),xe.set(ke,fe)}function z(ke,xe){if(xe.has(ke))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(ke,xe,fe){return ae(ke,xe),fe}function ae(ke,xe){if(ke!==xe)throw new TypeError("Private static access of wrong provenance")}function ie(ke,xe,fe){if(!xe.has(ke))throw new TypeError("attempted to get private field on non-instance");return fe}function he(ke,xe){var fe=J(ke,xe,"get");return W(ke,fe)}function J(ke,xe,fe){if(!xe.has(ke))throw new TypeError("attempted to "+fe+" private field on non-instance");return xe.get(ke)}function W(ke,xe){return xe.get?xe.get.call(ke):xe.value}const X="noopener noreferrer nofollow",L={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};D.LinkTarget=L;function Q(ke){let{url:xe,target:fe,rel:ve,enabled:ye=!0}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xe||typeof xe!="string")throw new Error('A valid "url" parameter must provided.');const Ce=(0,R.removeNullCharacters)(xe);ye?ke.href=ke.title=Ce:(ke.href="",ke.title=`Disabled: ${Ce}`,ke.onclick=()=>!1);let pe="";switch(fe){case L.NONE:break;case L.SELF:pe="_self";break;case L.BLANK:pe="_blank";break;case L.PARENT:pe="_parent";break;case L.TOP:pe="_top";break}ke.target=pe,ke.rel=typeof ve=="string"?ve:X}var ce=new WeakMap,de=new WeakSet;class se{constructor(){let{eventBus:xe,externalLinkTarget:fe=null,externalLinkRel:ve=null,ignoreDestinationZoom:ye=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};U(this,de),K(this,ce,{writable:!0,value:new Map}),this.eventBus=xe,this.externalLinkTarget=fe,this.externalLinkRel=ve,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=ye,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(xe){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.baseUrl=fe,this.pdfDocument=xe,he(this,ce).clear()}setViewer(xe){this.pdfViewer=xe}setHistory(xe){this.pdfHistory=xe}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(xe){this.pdfViewer.currentPageNumber=xe}get rotation(){return this.pdfViewer.pagesRotation}set rotation(xe){this.pdfViewer.pagesRotation=xe}async goToDestination(xe){if(!this.pdfDocument)return;let fe,ve;if(typeof xe=="string"?(fe=xe,ve=await this.pdfDocument.getDestination(xe)):(fe=null,ve=await xe),!Array.isArray(ve)){console.error(`PDFLinkService.goToDestination: "${ve}" is not a valid destination array, for dest="${xe}".`);return}ie(this,de,oe).call(this,xe,fe,ve)}goToPage(xe){if(!this.pdfDocument)return;const fe=typeof xe=="string"&&this.pdfViewer.pageLabelToPageNumber(xe)||xe|0;if(!(Number.isInteger(fe)&&fe>0&&fe<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${xe}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(fe)),this.pdfViewer.scrollPageIntoView({pageNumber:fe})}addLinkAttributes(xe,fe){let ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Q(xe,{url:fe,target:ve?L.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(xe){if(typeof xe=="string"){if(xe.length>0)return this.getAnchorUrl("#"+escape(xe))}else if(Array.isArray(xe)){const fe=JSON.stringify(xe);if(fe.length>0)return this.getAnchorUrl("#"+escape(fe))}return this.getAnchorUrl("")}getAnchorUrl(xe){return(this.baseUrl||"")+xe}setHash(xe){if(!this.pdfDocument)return;let fe,ve;if(xe.includes("=")){const ye=(0,R.parseQueryString)(xe);if(ye.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:ye.get("search").replace(/"/g,""),phraseSearch:ye.get("phrase")==="true"}),ye.has("page")&&(fe=ye.get("page")|0||1),ye.has("zoom")){const Ce=ye.get("zoom").split(","),pe=Ce[0],_e=parseFloat(pe);pe.includes("Fit")?pe==="Fit"||pe==="FitB"?ve=[null,{name:pe}]:pe==="FitH"||pe==="FitBH"||pe==="FitV"||pe==="FitBV"?ve=[null,{name:pe},Ce.length>1?Ce[1]|0:null]:pe==="FitR"?Ce.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):ve=[null,{name:pe},Ce[1]|0,Ce[2]|0,Ce[3]|0,Ce[4]|0]:console.error(`PDFLinkService.setHash: "${pe}" is not a valid zoom value.`):ve=[null,{name:"XYZ"},Ce.length>1?Ce[1]|0:null,Ce.length>2?Ce[2]|0:null,_e?_e/100:pe]}ve?this.pdfViewer.scrollPageIntoView({pageNumber:fe||this.page,destArray:ve,allowNegativeOffset:!0}):fe&&(this.page=fe),ye.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:ye.get("pagemode")}),ye.has("nameddest")&&this.goToDestination(ye.get("nameddest"))}else{ve=unescape(xe);try{ve=JSON.parse(ve),Array.isArray(ve)||(ve=ve.toString())}catch{}if(typeof ve=="string"||e(se,se,me).call(se,ve)){this.goToDestination(ve);return}console.error(`PDFLinkService.setHash: "${unescape(xe)}" is not a valid destination.`)}}executeNamedAction(xe){var fe,ve;switch(xe){case"GoBack":(fe=this.pdfHistory)===null||fe===void 0||fe.back();break;case"GoForward":(ve=this.pdfHistory)===null||ve===void 0||ve.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:xe})}cachePageRef(xe,fe){if(!fe)return;const ve=fe.gen===0?`${fe.num}R`:`${fe.num}R${fe.gen}`;he(this,ce).set(ve,xe)}_cachedPageNumber(xe){if(!xe)return null;const fe=xe.gen===0?`${xe.num}R`:`${xe.num}R${xe.gen}`;return he(this,ce).get(fe)||null}isPageVisible(xe){return this.pdfViewer.isPageVisible(xe)}isPageCached(xe){return this.pdfViewer.isPageCached(xe)}}D.PDFLinkService=se;function oe(ke){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,fe=arguments.length>2?arguments[2]:void 0;const ve=fe[0];let ye;if(typeof ve=="object"&&ve!==null){if(ye=this._cachedPageNumber(ve),!ye){this.pdfDocument.getPageIndex(ve).then(Ce=>{this.cachePageRef(Ce+1,ve),ie(this,de,oe).call(this,ke,xe,fe)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${ve}" is not a valid page reference, for dest="${ke}".`)});return}}else if(Number.isInteger(ve))ye=ve+1;else{console.error(`PDFLinkService.#goToDestinationHelper: "${ve}" is not a valid destination reference, for dest="${ke}".`);return}if(!ye||ye<1||ye>this.pagesCount){console.error(`PDFLinkService.#goToDestinationHelper: "${ye}" is not a valid page number, for dest="${ke}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:xe,explicitDest:fe,pageNumber:ye})),this.pdfViewer.scrollPageIntoView({pageNumber:ye,destArray:fe,ignoreDestinationZoom:this._ignoreDestinationZoom})}function me(ke){if(!Array.isArray(ke))return!1;const xe=ke.length;if(xe<2)return!1;const fe=ke[0];if(!(typeof fe=="object"&&Number.isInteger(fe.num)&&Number.isInteger(fe.gen))&&!(Number.isInteger(fe)&&fe>=0))return!1;const ve=ke[1];if(!(typeof ve=="object"&&typeof ve.name=="string"))return!1;let ye=!0;switch(ve.name){case"XYZ":if(xe!==5)return!1;break;case"Fit":case"FitB":return xe===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(xe!==3)return!1;break;case"FitR":if(xe!==6)return!1;ye=!1;break;default:return!1}for(let Ce=2;Ce<xe;Ce++){const pe=ke[Ce];if(!(typeof pe=="number"||ye&&pe===null))return!1}return!0}class Ee{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(xe){}get rotation(){return 0}set rotation(xe){}async goToDestination(xe){}goToPage(xe){}addLinkAttributes(xe,fe){Q(xe,{url:fe,enabled:this.externalLinkEnabled})}getDestinationHash(xe){return"#"}getAnchorUrl(xe){return"#"}setHash(xe){}executeNamedAction(xe){}cachePageRef(xe,fe){}isPageVisible(xe){return!0}isPageCached(xe){return!0}}D.SimpleLinkService=Ee},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.animationStarted=D.VERTICAL_PADDING=D.UNKNOWN_SCALE=D.TextLayerMode=D.SpreadMode=D.SidebarView=D.ScrollMode=D.SCROLLBAR_PADDING=D.RenderingStates=D.RendererType=D.ProgressBar=D.PresentationModeState=D.OutputScale=D.MIN_SCALE=D.MAX_SCALE=D.MAX_AUTO_SCALE=D.DEFAULT_SCALE_VALUE=D.DEFAULT_SCALE_DELTA=D.DEFAULT_SCALE=D.AutoPrintRegExp=void 0,D.apiPageLayoutToViewerModes=ct,D.apiPageModeToSidebarView=mt,D.approximateFraction=ze,D.backtrackBeforeAllVisibleElements=Pe,D.binarySearchFirstItem=Ze,D.docStyle=void 0,D.getActiveOrFocusedElement=dt,D.getPageSizeInches=Fe,D.getVisibleElements=we,D.isPortraitOrientation=et,D.isValidRotation=Ve,D.isValidScrollMode=je,D.isValidSpreadMode=Le,D.noContextMenuHandler=Ie,D.normalizeWheelEventDelta=Ke,D.normalizeWheelEventDirection=Be,D.parseQueryString=_e,D.removeNullCharacters=Ne,D.roundToDivide=Te,D.scrollIntoView=Ce,D.watchScroll=pe;function B(ut,rt,He){R(ut,rt),rt.set(ut,He)}function R(ut,rt){if(rt.has(ut))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(ut,rt){var He=e(ut,rt,"get");return K(ut,He)}function K(ut,rt){return rt.get?rt.get.call(ut):rt.value}function z(ut,rt,He){var Je=e(ut,rt,"set");return ae(ut,Je,He),He}function e(ut,rt,He){if(!rt.has(ut))throw new TypeError("attempted to "+He+" private field on non-instance");return rt.get(ut)}function ae(ut,rt,He){if(rt.set)rt.set.call(ut,He);else{if(!rt.writable)throw new TypeError("attempted to set read only private field");rt.value=He}}const ie="auto";D.DEFAULT_SCALE_VALUE=ie;const he=1;D.DEFAULT_SCALE=he;const J=1.1;D.DEFAULT_SCALE_DELTA=J;const W=.1;D.MIN_SCALE=W;const X=10;D.MAX_SCALE=X;const L=0;D.UNKNOWN_SCALE=L;const Q=1.25;D.MAX_AUTO_SCALE=Q;const ce=40;D.SCROLLBAR_PADDING=ce;const de=5;D.VERTICAL_PADDING=de;const se={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};D.RenderingStates=se;const oe={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};D.PresentationModeState=oe;const me={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};D.SidebarView=me;const Ee={CANVAS:"canvas",SVG:"svg"};D.RendererType=Ee;const ke={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};D.TextLayerMode=ke;const xe={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};D.ScrollMode=xe;const fe={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};D.SpreadMode=fe;const ve=/\bprint\s*\(/;D.AutoPrintRegExp=ve;class ye{constructor(){const rt=window.devicePixelRatio||1;this.sx=rt,this.sy=rt}get scaled(){return this.sx!==1||this.sy!==1}}D.OutputScale=ye;function Ce(ut,rt){let He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Je=ut.offsetParent;if(!Je){console.error("offsetParent is not set -- cannot scroll");return}let St=ut.offsetTop+ut.clientTop,bt=ut.offsetLeft+ut.clientLeft;for(;Je.clientHeight===Je.scrollHeight&&Je.clientWidth===Je.scrollWidth||He&&(Je.classList.contains("markedContent")||getComputedStyle(Je).overflow==="hidden");)if(St+=Je.offsetTop,bt+=Je.offsetLeft,Je=Je.offsetParent,!Je)return;rt&&(rt.top!==void 0&&(St+=rt.top),rt.left!==void 0&&(bt+=rt.left,Je.scrollLeft=bt)),Je.scrollTop=St}function pe(ut,rt){const He=function(bt){St||(St=window.requestAnimationFrame(function(){St=null;const wt=ut.scrollLeft,Pt=Je.lastX;wt!==Pt&&(Je.right=wt>Pt),Je.lastX=wt;const Nt=ut.scrollTop,Vt=Je.lastY;Nt!==Vt&&(Je.down=Nt>Vt),Je.lastY=Nt,rt(Je)}))},Je={right:!0,down:!0,lastX:ut.scrollLeft,lastY:ut.scrollTop,_eventHandler:He};let St=null;return ut.addEventListener("scroll",He,!0),Je}function _e(ut){const rt=new Map;for(const[He,Je]of new URLSearchParams(ut))rt.set(He.toLowerCase(),Je);return rt}const Ge=/\x00/g,Ae=/[\x01-\x1F]/g;function Ne(ut){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof ut!="string"?(console.error("The argument must be a string."),ut):(rt&&(ut=ut.replace(Ae," ")),ut.replace(Ge,""))}function Ze(ut,rt){let Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,St=ut.length-1;if(St<0||!rt(ut[St]))return ut.length;if(rt(ut[Je]))return Je;for(;Je<St;){const bt=Je+St>>1,pt=ut[bt];rt(pt)?St=bt:Je=bt+1}return Je}function ze(ut){if(Math.floor(ut)===ut)return[ut,1];const rt=1/ut,He=8;if(rt>He)return[1,He];if(Math.floor(rt)===rt)return[1,rt];const Je=ut>1?rt:ut;let St=0,bt=1,pt=1,wt=1;for(;;){const Nt=St+pt,Vt=bt+wt;if(Vt>He)break;Je<=Nt/Vt?(pt=Nt,wt=Vt):(St=Nt,bt=Vt)}let Pt;return Je-St/bt<pt/wt-Je?Pt=Je===ut?[St,bt]:[bt,St]:Pt=Je===ut?[pt,wt]:[wt,pt],Pt}function Te(ut,rt){const He=ut%rt;return He===0?ut:Math.round(ut-He+rt)}function Fe(ut){let{view:rt,userUnit:He,rotate:Je}=ut;const[St,bt,pt,wt]=rt,Pt=Je%180!==0,Nt=(pt-St)/72*He,Vt=(wt-bt)/72*He;return{width:Pt?Vt:Nt,height:Pt?Nt:Vt}}function Pe(ut,rt,He){if(ut<2)return ut;let Je=rt[ut].div,St=Je.offsetTop+Je.clientTop;St>=He&&(Je=rt[ut-1].div,St=Je.offsetTop+Je.clientTop);for(let bt=ut-2;bt>=0&&(Je=rt[bt].div,!(Je.offsetTop+Je.clientTop+Je.clientHeight<=St));--bt)ut=bt;return ut}function we(ut){let{scrollEl:rt,views:He,sortByVisibility:Je=!1,horizontal:St=!1,rtl:bt=!1}=ut;const pt=rt.scrollTop,wt=pt+rt.clientHeight,Pt=rt.scrollLeft,Nt=Pt+rt.clientWidth;function Vt(It){const Dt=It.div;return Dt.offsetTop+Dt.clientTop+Dt.clientHeight>pt}function Wt(It){const Dt=It.div,Zt=Dt.offsetLeft+Dt.clientLeft,gr=Zt+Dt.clientWidth;return bt?Zt<Nt:gr>Pt}const Mt=[],$t=new Set,Yt=He.length;let Ft=Ze(He,St?Wt:Vt);Ft>0&&Ft<Yt&&!St&&(Ft=Pe(Ft,He,pt));let Jt=St?Nt:-1;for(let It=Ft;It<Yt;It++){const Dt=He[It],Zt=Dt.div,gr=Zt.offsetLeft+Zt.clientLeft,fr=Zt.offsetTop+Zt.clientTop,Dr=Zt.clientWidth,kr=Zt.clientHeight,cr=gr+Dr,Ar=fr+kr;if(Jt===-1)Ar>=wt&&(Jt=Ar);else if((St?gr:fr)>Jt)break;if(Ar<=pt||fr>=wt||cr<=Pt||gr>=Nt)continue;const yt=Math.max(0,pt-fr)+Math.max(0,Ar-wt),vt=Math.max(0,Pt-gr)+Math.max(0,cr-Nt),Xt=(kr-yt)/kr,At=(Dr-vt)/Dr,zt=Xt*At*100|0;Mt.push({id:Dt.id,x:gr,y:fr,view:Dt,percent:zt,widthPercent:At*100|0}),$t.add(Dt.id)}const er=Mt[0],Bt=Mt.at(-1);return Je&&Mt.sort(function(It,Dt){const Zt=It.percent-Dt.percent;return Math.abs(Zt)>.001?-Zt:It.id-Dt.id}),{first:er,last:Bt,views:Mt,ids:$t}}function Ie(ut){ut.preventDefault()}function Be(ut){let rt=Math.hypot(ut.deltaX,ut.deltaY);const He=Math.atan2(ut.deltaY,ut.deltaX);return-.25*Math.PI<He&&He<.75*Math.PI&&(rt=-rt),rt}function Ke(ut){let rt=Be(ut);const He=0,Je=1,St=30,bt=30;return ut.deltaMode===He?rt/=St*bt:ut.deltaMode===Je&&(rt/=bt),rt}function Ve(ut){return Number.isInteger(ut)&&ut%90===0}function je(ut){return Number.isInteger(ut)&&Object.values(xe).includes(ut)&&ut!==xe.UNKNOWN}function Le(ut){return Number.isInteger(ut)&&Object.values(fe).includes(ut)&&ut!==fe.UNKNOWN}function et(ut){return ut.width<=ut.height}const Qe=new Promise(function(ut){window.requestAnimationFrame(ut)});D.animationStarted=Qe;const Ue=document.documentElement.style;D.docStyle=Ue;function $e(ut,rt,He){return Math.min(Math.max(ut,rt),He)}var Ye=new WeakMap,tt=new WeakMap,ot=new WeakMap;class st{constructor(rt){if(B(this,Ye,{writable:!0,value:null}),B(this,tt,{writable:!0,value:0}),B(this,ot,{writable:!0,value:!0}),arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");const He=document.getElementById(rt);z(this,Ye,He.classList)}get percent(){return U(this,tt)}set percent(rt){if(z(this,tt,$e(rt,0,100)),isNaN(rt)){U(this,Ye).add("indeterminate");return}U(this,Ye).remove("indeterminate"),Ue.setProperty("--progressBar-percent",`${U(this,tt)}%`)}setWidth(rt){if(!rt)return;const Je=rt.parentNode.offsetWidth-rt.offsetWidth;Je>0&&Ue.setProperty("--progressBar-end-offset",`${Je}px`)}hide(){U(this,ot)&&(z(this,ot,!1),U(this,Ye).add("hidden"))}show(){U(this,ot)||(z(this,ot,!0),U(this,Ye).remove("hidden"))}}D.ProgressBar=st;function dt(){let ut=document,rt=ut.activeElement||ut.querySelector(":focus");for(;(He=rt)!==null&&He!==void 0&&He.shadowRoot;){var He;ut=rt.shadowRoot,rt=ut.activeElement||ut.querySelector(":focus")}return rt}function ct(ut){let rt=xe.VERTICAL,He=fe.NONE;switch(ut){case"SinglePage":rt=xe.PAGE;break;case"OneColumn":break;case"TwoPageLeft":rt=xe.PAGE;case"TwoColumnLeft":He=fe.ODD;break;case"TwoPageRight":rt=xe.PAGE;case"TwoColumnRight":He=fe.EVEN;break}return{scrollMode:rt,spreadMode:He}}function mt(ut){switch(ut){case"UseNone":return me.NONE;case"UseThumbs":return me.THUMBS;case"UseOutlines":return me.OUTLINE;case"UseAttachments":return me.ATTACHMENTS;case"UseOC":return me.LAYERS}return me.NONE}},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.StructTreeLayerBuilder=void 0;const B={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},R=/^H(\d+)$/;class U{constructor(z){let{pdfPage:e}=z;this.pdfPage=e}render(z){return this._walk(z)}_setAttributes(z,e){z.alt!==void 0&&e.setAttribute("aria-label",z.alt),z.id!==void 0&&e.setAttribute("aria-owns",z.id),z.lang!==void 0&&e.setAttribute("lang",z.lang)}_walk(z){if(!z)return null;const e=document.createElement("span");if("role"in z){const{role:ae}=z,ie=ae.match(R);ie?(e.setAttribute("role","heading"),e.setAttribute("aria-level",ie[1])):B[ae]&&e.setAttribute("role",B[ae])}if(this._setAttributes(z,e),z.children)if(z.children.length===1&&"id"in z.children[0])this._setAttributes(z.children[0],e);else for(const ae of z.children)e.append(this._walk(ae));return e}}D.StructTreeLayerBuilder=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.TextLayerBuilder=void 0;var R=B(3);const U=300;class K{constructor(e){let{textLayerDiv:ae,eventBus:ie,pageIndex:he,viewport:J,highlighter:W=null,enhanceTextSelection:X=!1,accessibilityManager:L=null}=e;this.textLayerDiv=ae,this.eventBus=ie,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=he+1,this.viewport=J,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=W,this.enhanceTextSelection=X,this.accessibilityManager=L,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(){var e,ae;let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if(!(this.textContent||this.textContentStream)||this.renderingDone)return;this.cancel(),this.textDivs.length=0,(e=this.highlighter)===null||e===void 0||e.setTextMapping(this.textDivs,this.textContentItemsStr),(ae=this.accessibilityManager)===null||ae===void 0||ae.setTextMapping(this.textDivs);const he=document.createDocumentFragment();this.textLayerRenderTask=(0,R.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:he,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:ie,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var J,W;this.textLayerDiv.append(he),this._finishRendering(),(J=this.highlighter)===null||J===void 0||J.enable(),(W=this.accessibilityManager)===null||W===void 0||W.enable()},function(J){})}cancel(){var e,ae;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),(e=this.highlighter)===null||e===void 0||e.disable(),(ae=this.accessibilityManager)===null||ae===void 0||ae.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const e=this.textLayerDiv;let ae=null;e.addEventListener("mousedown",ie=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){this.textLayerRenderTask.expandTextDivs(!0),ae&&(clearTimeout(ae),ae=null);return}const he=e.querySelector(".endOfContent");if(!he)return;let J=ie.target!==e;if(J=J&&window.getComputedStyle(he).getPropertyValue("-moz-user-select")!=="none",J){const W=e.getBoundingClientRect(),X=Math.max(0,(ie.pageY-W.top)/W.height);he.style.top=(X*100).toFixed(2)+"%"}he.classList.add("active")}),e.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){ae=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),ae=null},U);return}const ie=e.querySelector(".endOfContent");ie&&(ie.style.top="",ie.classList.remove("active"))})}}D.TextLayerBuilder=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.XfaLayerBuilder=void 0;var R=B(3);class U{constructor(z){let{pageDiv:e,pdfPage:ae,annotationStorage:ie=null,linkService:he,xfaHtml:J=null}=z;this.pageDiv=e,this.pdfPage=ae,this.annotationStorage=ie,this.linkService=he,this.xfaHtml=J,this.div=null,this._cancelled=!1}render(z){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(e==="print"){const ae={viewport:z.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:e},ie=document.createElement("div");this.pageDiv.append(ie),ae.div=ie;const he=R.XfaLayer.render(ae);return Promise.resolve(he)}return this.pdfPage.getXfa().then(ae=>{if(this._cancelled||!ae)return{textDivs:[]};const ie={viewport:z.clone({dontFlip:!0}),div:this.div,xfaHtml:ae,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:e};return this.div?R.XfaLayer.update(ie):(this.div=document.createElement("div"),this.pageDiv.append(this.div),ie.div=this.div,R.XfaLayer.render(ie))}).catch(ae=>{console.error(ae)})}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}D.XfaLayerBuilder=U},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFViewer=D.PDFSinglePageViewer=void 0;var R=B(7),U=B(12);class K extends U.BaseViewer{}D.PDFViewer=K;class z extends U.BaseViewer{_resetView(){super._resetView(),this._scrollMode=R.ScrollMode.PAGE,this._spreadMode=R.SpreadMode.NONE}set scrollMode(ae){}_updateScrollMode(){}set spreadMode(ae){}_updateSpreadMode(){}}D.PDFSinglePageViewer=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PagesCountLimit=D.PDFPageViewBuffer=D.BaseViewer=void 0;var R=B(3),U=B(7),K=B(2),z=B(5),e=B(4),ae=B(13),ie=B(16),he=B(6),J=B(8),W=B(17),X=B(9),L=B(10);let Q;function ce(bt,pt){se(bt,pt),pt.add(bt)}function de(bt,pt,wt){se(bt,pt),pt.set(bt,wt)}function se(bt,pt){if(pt.has(bt))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oe(bt,pt,wt){if(!pt.has(bt))throw new TypeError("attempted to get private field on non-instance");return wt}function me(bt,pt){var wt=xe(bt,pt,"get");return Ee(bt,wt)}function Ee(bt,pt){return pt.get?pt.get.call(bt):pt.value}function ke(bt,pt,wt){var Pt=xe(bt,pt,"set");return fe(bt,Pt,wt),wt}function xe(bt,pt,wt){if(!pt.has(bt))throw new TypeError("attempted to "+wt+" private field on non-instance");return pt.get(bt)}function fe(bt,pt,wt){if(pt.set)pt.set.call(bt,wt);else{if(!pt.writable)throw new TypeError("attempted to set read only private field");pt.value=wt}}const ve=10,ye="enablePermissions",Ce={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};D.PagesCountLimit=Ce;function pe(bt){return Object.values(R.AnnotationEditorType).includes(bt)&&bt!==R.AnnotationEditorType.DISABLE}var _e=new WeakMap,Ge=new WeakMap,Ae=new WeakSet;Q=Symbol.iterator;class Ne{constructor(pt){ce(this,Ae),de(this,_e,{writable:!0,value:new Set}),de(this,Ge,{writable:!0,value:0}),ke(this,Ge,pt)}push(pt){const wt=me(this,_e);wt.has(pt)&&wt.delete(pt),wt.add(pt),wt.size>me(this,Ge)&&oe(this,Ae,Ze).call(this)}resize(pt){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ke(this,Ge,pt);const Pt=me(this,_e);if(wt){const Nt=Pt.size;let Vt=1;for(const Wt of Pt)if(wt.has(Wt.id)&&(Pt.delete(Wt),Pt.add(Wt)),++Vt>Nt)break}for(;Pt.size>me(this,Ge);)oe(this,Ae,Ze).call(this)}has(pt){return me(this,_e).has(pt)}[Q](){return me(this,_e).keys()}}D.PDFPageViewBuffer=Ne;function Ze(){const bt=me(this,_e).keys().next().value;bt==null||bt.destroy(),me(this,_e).delete(bt)}var ze=new WeakMap,Te=new WeakMap,Fe=new WeakMap,Pe=new WeakMap,we=new WeakMap,Ie=new WeakMap,Be=new WeakMap,Ke=new WeakMap,Ve=new WeakSet,je=new WeakSet,Le=new WeakSet,et=new WeakSet,Qe=new WeakSet,Ue=new WeakSet,$e=new WeakSet,Ye=new WeakSet,tt=new WeakSet;class ot{constructor(pt){var wt,Pt,Nt,Vt,Wt;if(ce(this,tt),ce(this,Ye),ce(this,$e),ce(this,Ue),ce(this,Qe),ce(this,et),ce(this,Le),ce(this,je),ce(this,Ve),de(this,ze,{writable:!0,value:null}),de(this,Te,{writable:!0,value:R.AnnotationEditorType.DISABLE}),de(this,Fe,{writable:!0,value:null}),de(this,Pe,{writable:!0,value:R.AnnotationMode.ENABLE_FORMS}),de(this,we,{writable:!0,value:!1}),de(this,Ie,{writable:!0,value:0}),de(this,Be,{writable:!0,value:null}),de(this,Ke,{writable:!0,value:null}),this.constructor===ot)throw new Error("Cannot initialize BaseViewer.");const Mt="2.16.105";if(R.version!==Mt)throw new Error(`The API version "${R.version}" does not match the Viewer version "${Mt}".`);if(this.container=pt.container,this.viewer=pt.viewer||pt.container.firstElementChild,!(((wt=this.container)===null||wt===void 0?void 0:wt.tagName.toUpperCase())==="DIV"&&((Pt=this.viewer)===null||Pt===void 0?void 0:Pt.tagName.toUpperCase())==="DIV"))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.eventBus=pt.eventBus,this.linkService=pt.linkService||new he.SimpleLinkService,this.downloadManager=pt.downloadManager||null,this.findController=pt.findController||null,this._scriptingManager=pt.scriptingManager||null,this.removePageBorders=pt.removePageBorders||!1,this.textLayerMode=(Nt=pt.textLayerMode)!==null&&Nt!==void 0?Nt:U.TextLayerMode.ENABLE,ke(this,Pe,(Vt=pt.annotationMode)!==null&&Vt!==void 0?Vt:R.AnnotationMode.ENABLE_FORMS),ke(this,Te,(Wt=pt.annotationEditorMode)!==null&&Wt!==void 0?Wt:R.AnnotationEditorType.DISABLE),this.imageResourcesPath=pt.imageResourcesPath||"",this.enablePrintAutoRotate=pt.enablePrintAutoRotate||!1,this.renderer=pt.renderer||U.RendererType.CANVAS,this.useOnlyCssZoom=pt.useOnlyCssZoom||!1,this.maxCanvasPixels=pt.maxCanvasPixels,this.l10n=pt.l10n||e.NullL10n,ke(this,we,pt.enablePermissions||!1),this.pageColors=pt.pageColors||null,this.pageColors&&!(CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground))&&((this.pageColors.background||this.pageColors.foreground)&&console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!pt.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new ie.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=pt.renderingQueue,this.scroll=(0,U.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=U.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(pt){return this._pages[pt]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(pt){return pt==null?void 0:pt.pdfPage}):!1}get renderForms(){return me(this,Pe)===R.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(pt){if(!Number.isInteger(pt))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(pt,!0)||console.error(`currentPageNumber: "${pt}" is not a valid page.`))}_setCurrentPageNumber(pt){var wt,Pt;let Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this._currentPageNumber===pt)return Nt&&oe(this,Ue,rt).call(this),!0;if(!(0<pt&&pt<=this.pagesCount))return!1;const Vt=this._currentPageNumber;return this._currentPageNumber=pt,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:pt,pageLabel:(wt=(Pt=this._pageLabels)===null||Pt===void 0?void 0:Pt[pt-1])!==null&&wt!==void 0?wt:null,previous:Vt}),Nt&&oe(this,Ue,rt).call(this),!0}get currentPageLabel(){var pt,wt;return(pt=(wt=this._pageLabels)===null||wt===void 0?void 0:wt[this._currentPageNumber-1])!==null&&pt!==void 0?pt:null}set currentPageLabel(pt){if(!this.pdfDocument)return;let wt=pt|0;if(this._pageLabels){const Pt=this._pageLabels.indexOf(pt);Pt>=0&&(wt=Pt+1)}this._setCurrentPageNumber(wt,!0)||console.error(`currentPageLabel: "${pt}" is not a valid page.`)}get currentScale(){return this._currentScale!==U.UNKNOWN_SCALE?this._currentScale:U.DEFAULT_SCALE}set currentScale(pt){if(isNaN(pt))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(pt,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(pt){this.pdfDocument&&this._setScale(pt,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(pt){if(!(0,U.isValidRotation)(pt))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(pt%=360,pt<0&&(pt+=360),this._pagesRotation===pt))return;this._pagesRotation=pt;const wt=this._currentPageNumber,Pt={rotation:pt};for(const Nt of this._pages)Nt.update(Pt);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:pt,pageNumber:wt}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(pt){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),me(this,Fe)&&(me(this,Fe).destroy(),ke(this,Fe,null))),this.pdfDocument=pt,!pt)return;const wt=pt.isPureXfa,Pt=pt.numPages,Nt=pt.getPage(1),Vt=pt.getOptionalContentConfig(),Wt=me(this,we)?pt.getPermissions():Promise.resolve();if(Pt>Ce.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const Mt=this._scrollMode=U.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:Mt})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Pt})},()=>{}),this._onBeforeDraw=Mt=>{const $t=this._pages[Mt.pageNumber-1];$t&&me(this,ze).push($t)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=Mt=>{Mt.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:Mt.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,me(this,Ke)&&(document.removeEventListener("visibilitychange",me(this,Ke)),ke(this,Ke,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([Nt,Wt]).then(Mt=>{let[$t,Yt]=Mt;if(pt!==this.pdfDocument)return;this._firstPageCapability.resolve($t),this._optionalContentConfigPromise=Vt;const{annotationEditorMode:Ft,annotationMode:Jt,textLayerMode:er}=oe(this,Ve,st).call(this,Yt);if(Ft!==R.AnnotationEditorType.DISABLE){const cr=Ft;wt?console.warn("Warning: XFA-editing is not implemented."):pe(cr)?(ke(this,Fe,new R.AnnotationEditorUIManager(this.container,this.eventBus)),cr!==R.AnnotationEditorType.NONE&&me(this,Fe).updateMode(cr)):console.error(`Invalid AnnotationEditor mode: ${cr}`)}const Bt=this._scrollMode===U.ScrollMode.PAGE?null:this.viewer,It=this.currentScale,Dt=$t.getViewport({scale:It*R.PixelsPerInch.PDF_TO_CSS_UNITS}),Zt=er!==U.TextLayerMode.DISABLE&&!wt?this:null,gr=Jt!==R.AnnotationMode.DISABLE?this:null,fr=wt?this:null,Dr=me(this,Fe)?this:null;for(let cr=1;cr<=Pt;++cr){const Ar=new ae.PDFPageView({container:Bt,eventBus:this.eventBus,id:cr,scale:It,defaultViewport:Dt.clone(),optionalContentConfigPromise:Vt,renderingQueue:this.renderingQueue,textLayerFactory:Zt,textLayerMode:er,annotationLayerFactory:gr,annotationMode:Jt,xfaLayerFactory:fr,annotationEditorLayerFactory:Dr,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(Ar)}const kr=this._pages[0];kr&&(kr.setPdfPage($t),this.linkService.cachePageRef(1,$t.ref)),this._scrollMode===U.ScrollMode.PAGE?oe(this,Le,ct).call(this):this._spreadMode!==U.SpreadMode.NONE&&this._updateSpreadMode(),oe(this,je,dt).call(this).then(async()=>{if(this.findController&&this.findController.setDocument(pt),this._scriptingManager&&this._scriptingManager.setDocument(pt),me(this,Fe)&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:me(this,Te)}),pt.loadingParams.disableAutoFetch||Pt>Ce.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let cr=Pt-1;if(cr<=0){this._pagesCapability.resolve();return}for(let Ar=2;Ar<=Pt;++Ar){const yt=pt.getPage(Ar).then(vt=>{const Xt=this._pages[Ar-1];Xt.pdfPage||Xt.setPdfPage(vt),this.linkService.cachePageRef(Ar,vt.ref),--cr===0&&this._pagesCapability.resolve()},vt=>{console.error(`Unable to get page ${Ar} to initialize viewer`,vt),--cr===0&&this._pagesCapability.resolve()});Ar%Ce.PAUSE_EAGER_PAGE_INIT===0&&await yt}}),this.eventBus.dispatch("pagesinit",{source:this}),pt.getMetadata().then(cr=>{let{info:Ar}=cr;pt===this.pdfDocument&&Ar.Language&&(this.viewer.lang=Ar.Language)}),this.defaultRenderingQueue&&this.update()}).catch(Mt=>{console.error("Unable to initialize viewer",Mt),this._pagesCapability.reject(Mt)})}setPageLabels(pt){if(this.pdfDocument){pt?Array.isArray(pt)&&this.pdfDocument.numPages===pt.length?this._pageLabels=pt:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let Nt=0,Vt=this._pages.length;Nt<Vt;Nt++){var wt,Pt;this._pages[Nt].setPageLabel((wt=(Pt=this._pageLabels)===null||Pt===void 0?void 0:Pt[Nt])!==null&&wt!==void 0?wt:null)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=U.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,ke(this,ze,new Ne(ve)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,R.createPromiseCapability)(),this._onePageRenderedCapability=(0,R.createPromiseCapability)(),this._pagesCapability=(0,R.createPromiseCapability)(),this._scrollMode=U.ScrollMode.VERTICAL,this._previousScrollMode=U.ScrollMode.UNKNOWN,this._spreadMode=U.SpreadMode.NONE,ke(this,Be,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),me(this,Ke)&&(document.removeEventListener("visibilitychange",me(this,Ke)),ke(this,Ke,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(ye)}_scrollUpdate(){this.pagesCount!==0&&this.update()}_setScaleUpdatePages(pt,wt){let Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(this._currentScaleValue=wt.toString(),oe(this,Qe,ut).call(this,pt)){Nt&&this.eventBus.dispatch("scalechanging",{source:this,scale:pt,presetValue:wt});return}U.docStyle.setProperty("--scale-factor",pt*R.PixelsPerInch.PDF_TO_CSS_UNITS);const Vt={scale:pt};for(const Wt of this._pages)Wt.update(Vt);if(this._currentScale=pt,!Pt){let Wt=this._currentPageNumber,Mt;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(Wt=this._location.pageNumber,Mt=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:Wt,destArray:Mt,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:pt,presetValue:Nt?wt:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==U.SpreadMode.NONE&&this._scrollMode!==U.ScrollMode.HORIZONTAL?2:1}_setScale(pt){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=parseFloat(pt);if(Pt>0)this._setScaleUpdatePages(Pt,pt,wt,!1);else{const Nt=this._pages[this._currentPageNumber-1];if(!Nt)return;let Vt=U.SCROLLBAR_PADDING,Wt=U.VERTICAL_PADDING;this.isInPresentationMode?Vt=Wt=4:this.removePageBorders?Vt=Wt=0:this._scrollMode===U.ScrollMode.HORIZONTAL&&([Vt,Wt]=[Wt,Vt]);const Mt=(this.container.clientWidth-Vt)/Nt.width*Nt.scale/this._pageWidthScaleFactor,$t=(this.container.clientHeight-Wt)/Nt.height*Nt.scale;switch(pt){case"page-actual":Pt=1;break;case"page-width":Pt=Mt;break;case"page-height":Pt=$t;break;case"page-fit":Pt=Math.min(Mt,$t);break;case"auto":const Yt=(0,U.isPortraitOrientation)(Nt)?Mt:Math.min($t,Mt);Pt=Math.min(U.MAX_AUTO_SCALE,Yt);break;default:console.error(`_setScale: "${pt}" is an unknown zoom value.`);return}this._setScaleUpdatePages(Pt,pt,wt,!0)}}pageLabelToPageNumber(pt){if(!this._pageLabels)return null;const wt=this._pageLabels.indexOf(pt);return wt<0?null:wt+1}scrollPageIntoView(pt){let{pageNumber:wt,destArray:Pt=null,allowNegativeOffset:Nt=!1,ignoreDestinationZoom:Vt=!1}=pt;if(!this.pdfDocument)return;const Wt=Number.isInteger(wt)&&this._pages[wt-1];if(!Wt){console.error(`scrollPageIntoView: "${wt}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!Pt){this._setCurrentPageNumber(wt,!0);return}let Mt=0,$t=0,Yt=0,Ft=0,Jt,er;const Bt=Wt.rotation%180!==0,It=(Bt?Wt.height:Wt.width)/Wt.scale/R.PixelsPerInch.PDF_TO_CSS_UNITS,Dt=(Bt?Wt.width:Wt.height)/Wt.scale/R.PixelsPerInch.PDF_TO_CSS_UNITS;let Zt=0;switch(Pt[1].name){case"XYZ":Mt=Pt[2],$t=Pt[3],Zt=Pt[4],Mt=Mt!==null?Mt:0,$t=$t!==null?$t:Dt;break;case"Fit":case"FitB":Zt="page-fit";break;case"FitH":case"FitBH":$t=Pt[2],Zt="page-width",$t===null&&this._location?(Mt=this._location.left,$t=this._location.top):(typeof $t!="number"||$t<0)&&($t=Dt);break;case"FitV":case"FitBV":Mt=Pt[2],Yt=It,Ft=Dt,Zt="page-height";break;case"FitR":Mt=Pt[2],$t=Pt[3],Yt=Pt[4]-Mt,Ft=Pt[5]-$t;const kr=this.removePageBorders?0:U.SCROLLBAR_PADDING,cr=this.removePageBorders?0:U.VERTICAL_PADDING;Jt=(this.container.clientWidth-kr)/Yt/R.PixelsPerInch.PDF_TO_CSS_UNITS,er=(this.container.clientHeight-cr)/Ft/R.PixelsPerInch.PDF_TO_CSS_UNITS,Zt=Math.min(Math.abs(Jt),Math.abs(er));break;default:console.error(`scrollPageIntoView: "${Pt[1].name}" is not a valid destination type.`);return}if(Vt||(Zt&&Zt!==this._currentScale?this.currentScaleValue=Zt:this._currentScale===U.UNKNOWN_SCALE&&(this.currentScaleValue=U.DEFAULT_SCALE_VALUE)),Zt==="page-fit"&&!Pt[4]){oe(this,et,mt).call(this,Wt);return}const gr=[Wt.viewport.convertToViewportPoint(Mt,$t),Wt.viewport.convertToViewportPoint(Mt+Yt,$t+Ft)];let fr=Math.min(gr[0][0],gr[1][0]),Dr=Math.min(gr[0][1],gr[1][1]);Nt||(fr=Math.max(fr,0),Dr=Math.max(Dr,0)),oe(this,et,mt).call(this,Wt,{left:fr,top:Dr})}_updateLocation(pt){const wt=this._currentScale,Pt=this._currentScaleValue,Nt=parseFloat(Pt)===wt?Math.round(wt*1e4)/100:Pt,Vt=pt.id,Wt=this._pages[Vt-1],Mt=this.container,$t=Wt.getPagePoint(Mt.scrollLeft-pt.x,Mt.scrollTop-pt.y),Yt=Math.round($t[0]),Ft=Math.round($t[1]);let Jt=`#page=${Vt}`;this.isInPresentationMode||(Jt+=`&zoom=${Nt},${Yt},${Ft}`),this._location={pageNumber:Vt,scale:Nt,top:Ft,left:Yt,rotation:this._pagesRotation,pdfOpenParams:Jt}}update(){const pt=this._getVisiblePages(),wt=pt.views,Pt=wt.length;if(Pt===0)return;const Nt=Math.max(ve,2*Pt+1);me(this,ze).resize(Nt,pt.ids),this.renderingQueue.renderHighestPriority(pt);const Vt=this._spreadMode===U.SpreadMode.NONE&&(this._scrollMode===U.ScrollMode.PAGE||this._scrollMode===U.ScrollMode.VERTICAL),Wt=this._currentPageNumber;let Mt=!1;for(const $t of wt){if($t.percent<100)break;if($t.id===Wt&&Vt){Mt=!0;break}}this._setCurrentPageNumber(Mt?Wt:wt[0].id),this._updateLocation(pt.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(pt){return this.container.contains(pt)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===U.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===U.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const pt=this._scrollMode===U.ScrollMode.PAGE?me(this,Be).pages:this._pages,wt=this._scrollMode===U.ScrollMode.HORIZONTAL,Pt=wt&&this._isContainerRtl;return(0,U.getVisibleElements)({scrollEl:this.container,views:pt,sortByVisibility:!0,horizontal:wt,rtl:Pt})}isPageVisible(pt){return this.pdfDocument?Number.isInteger(pt)&&pt>0&&pt<=this.pagesCount?this._getVisiblePages().ids.has(pt):(console.error(`isPageVisible: "${pt}" is not a valid page.`),!1):!1}isPageCached(pt){if(!this.pdfDocument)return!1;if(!(Number.isInteger(pt)&&pt>0&&pt<=this.pagesCount))return console.error(`isPageCached: "${pt}" is not a valid page.`),!1;const wt=this._pages[pt-1];return me(this,ze).has(wt)}cleanup(){for(const pt of this._pages)pt.renderingState!==U.RenderingStates.FINISHED&&pt.reset()}_cancelRendering(){for(const pt of this._pages)pt.cancelRendering()}forceRendering(pt){const wt=pt||this._getVisiblePages(),Pt=oe(this,Ye,Je).call(this,wt),Nt=this._spreadMode!==U.SpreadMode.NONE&&this._scrollMode!==U.ScrollMode.HORIZONTAL,Vt=this.renderingQueue.getHighestPriority(wt,this._pages,Pt,Nt);return oe(this,tt,St).call(this,wt.ids),Vt?(oe(this,$e,He).call(this,Vt).then(()=>{this.renderingQueue.renderView(Vt)}),!0):!1}createTextLayerBuilder(pt){let{textLayerDiv:wt,pageIndex:Pt,viewport:Nt,enhanceTextSelection:Vt=!1,eventBus:Wt,highlighter:Mt,accessibilityManager:$t=null}=pt;return new X.TextLayerBuilder({textLayerDiv:wt,eventBus:Wt,pageIndex:Pt,viewport:Nt,enhanceTextSelection:this.isInPresentationMode?!1:Vt,highlighter:Mt,accessibilityManager:$t})}createTextHighlighter(pt){let{pageIndex:wt,eventBus:Pt}=pt;return new W.TextHighlighter({eventBus:Pt,pageIndex:wt,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(pt){var wt,Pt,Nt,Vt;let{pageDiv:Wt,pdfPage:Mt,annotationStorage:$t=(wt=this.pdfDocument)===null||wt===void 0?void 0:wt.annotationStorage,imageResourcesPath:Yt="",renderForms:Ft=!0,l10n:Jt=e.NullL10n,enableScripting:er=this.enableScripting,hasJSActionsPromise:Bt=(Pt=this.pdfDocument)===null||Pt===void 0?void 0:Pt.hasJSActions(),mouseState:It=(Nt=this._scriptingManager)===null||Nt===void 0?void 0:Nt.mouseState,fieldObjectsPromise:Dt=(Vt=this.pdfDocument)===null||Vt===void 0?void 0:Vt.getFieldObjects(),annotationCanvasMap:Zt=null,accessibilityManager:gr=null}=pt;return new z.AnnotationLayerBuilder({pageDiv:Wt,pdfPage:Mt,annotationStorage:$t,imageResourcesPath:Yt,renderForms:Ft,linkService:this.linkService,downloadManager:this.downloadManager,l10n:Jt,enableScripting:er,hasJSActionsPromise:Bt,mouseState:It,fieldObjectsPromise:Dt,annotationCanvasMap:Zt,accessibilityManager:gr})}createAnnotationEditorLayerBuilder(pt){var wt;let{uiManager:Pt=me(this,Fe),pageDiv:Nt,pdfPage:Vt,accessibilityManager:Wt=null,l10n:Mt,annotationStorage:$t=(wt=this.pdfDocument)===null||wt===void 0?void 0:wt.annotationStorage}=pt;return new K.AnnotationEditorLayerBuilder({uiManager:Pt,pageDiv:Nt,pdfPage:Vt,annotationStorage:$t,accessibilityManager:Wt,l10n:Mt})}createXfaLayerBuilder(pt){var wt;let{pageDiv:Pt,pdfPage:Nt,annotationStorage:Vt=(wt=this.pdfDocument)===null||wt===void 0?void 0:wt.annotationStorage}=pt;return new L.XfaLayerBuilder({pageDiv:Pt,pdfPage:Nt,annotationStorage:Vt,linkService:this.linkService})}createStructTreeLayerBuilder(pt){let{pdfPage:wt}=pt;return new J.StructTreeLayerBuilder({pdfPage:wt})}get hasEqualPageSizes(){const pt=this._pages[0];for(let wt=1,Pt=this._pages.length;wt<Pt;++wt){const Nt=this._pages[wt];if(Nt.width!==pt.width||Nt.height!==pt.height)return!1}return!0}getPagesOverview(){return this._pages.map(pt=>{const wt=pt.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,U.isPortraitOrientation)(wt)?{width:wt.width,height:wt.height,rotation:wt.rotation}:{width:wt.height,height:wt.width,rotation:(wt.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(pt){if(!(pt instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${pt}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=pt;const wt={optionalContentConfigPromise:pt};for(const Pt of this._pages)Pt.update(wt);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:pt})}get scrollMode(){return this._scrollMode}set scrollMode(pt){if(this._scrollMode!==pt){if(!(0,U.isValidScrollMode)(pt))throw new Error(`Invalid scroll mode: ${pt}`);this.pagesCount>Ce.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=pt,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:pt}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const wt=this._scrollMode,Pt=this.viewer;Pt.classList.toggle("scrollHorizontal",wt===U.ScrollMode.HORIZONTAL),Pt.classList.toggle("scrollWrapped",wt===U.ScrollMode.WRAPPED),!(!this.pdfDocument||!pt)&&(wt===U.ScrollMode.PAGE?oe(this,Le,ct).call(this):this._previousScrollMode===U.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(pt,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(pt){if(this._spreadMode!==pt){if(!(0,U.isValidSpreadMode)(pt))throw new Error(`Invalid spread mode: ${pt}`);this._spreadMode=pt,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:pt}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!this.pdfDocument)return;const wt=this.viewer,Pt=this._pages;if(this._scrollMode===U.ScrollMode.PAGE)oe(this,Le,ct).call(this);else if(wt.textContent="",this._spreadMode===U.SpreadMode.NONE)for(const Nt of this._pages)wt.append(Nt.div);else{const Nt=this._spreadMode-1;let Vt=null;for(let Wt=0,Mt=Pt.length;Wt<Mt;++Wt)Vt===null?(Vt=document.createElement("div"),Vt.className="spread",wt.append(Vt)):Wt%2===Nt&&(Vt=Vt.cloneNode(!1),wt.append(Vt)),Vt.append(Pt[Wt].div)}pt&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(pt,!0),this.update())}_getPageAdvance(pt){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;switch(this._scrollMode){case U.ScrollMode.WRAPPED:{const{views:Pt}=this._getVisiblePages(),Nt=new Map;for(const{id:Vt,y:Wt,percent:Mt,widthPercent:$t}of Pt){if(Mt===0||$t<100)continue;let Yt=Nt.get(Wt);Yt||Nt.set(Wt,Yt||(Yt=[])),Yt.push(Vt)}for(const Vt of Nt.values()){const Wt=Vt.indexOf(pt);if(Wt===-1)continue;const Mt=Vt.length;if(Mt===1)break;if(wt)for(let $t=Wt-1,Yt=0;$t>=Yt;$t--){const Ft=Vt[$t],Jt=Vt[$t+1]-1;if(Ft<Jt)return pt-Jt}else for(let $t=Wt+1,Yt=Mt;$t<Yt;$t++){const Ft=Vt[$t],Jt=Vt[$t-1]+1;if(Ft>Jt)return Jt-pt}if(wt){const $t=Vt[0];if($t<pt)return pt-$t+1}else{const $t=Vt[Mt-1];if($t>pt)return $t-pt+1}break}break}case U.ScrollMode.HORIZONTAL:break;case U.ScrollMode.PAGE:case U.ScrollMode.VERTICAL:{if(this._spreadMode===U.SpreadMode.NONE)break;const Pt=this._spreadMode-1;if(wt&&pt%2!==Pt)break;if(!wt&&pt%2===Pt)break;const{views:Nt}=this._getVisiblePages(),Vt=wt?pt-1:pt+1;for(const{id:Wt,percent:Mt,widthPercent:$t}of Nt)if(Wt===Vt){if(Mt>0&&$t===100)return 2;break}break}}return 1}nextPage(){const pt=this._currentPageNumber,wt=this.pagesCount;if(pt>=wt)return!1;const Pt=this._getPageAdvance(pt,!1)||1;return this.currentPageNumber=Math.min(pt+Pt,wt),!0}previousPage(){const pt=this._currentPageNumber;if(pt<=1)return!1;const wt=this._getPageAdvance(pt,!0)||1;return this.currentPageNumber=Math.max(pt-wt,1),!0}increaseScale(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,wt=this._currentScale;do wt=(wt*U.DEFAULT_SCALE_DELTA).toFixed(2),wt=Math.ceil(wt*10)/10,wt=Math.min(U.MAX_SCALE,wt);while(--pt>0&&wt<U.MAX_SCALE);this.currentScaleValue=wt}decreaseScale(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,wt=this._currentScale;do wt=(wt/U.DEFAULT_SCALE_DELTA).toFixed(2),wt=Math.floor(wt*10)/10,wt=Math.max(U.MIN_SCALE,wt);while(--pt>0&&wt>U.MIN_SCALE);this.currentScaleValue=wt}updateContainerHeightCss(){const pt=this.container.clientHeight;pt!==me(this,Ie)&&(ke(this,Ie,pt),U.docStyle.setProperty("--viewer-container-height",`${pt}px`))}get annotationEditorMode(){return me(this,Fe)?me(this,Te):R.AnnotationEditorType.DISABLE}set annotationEditorMode(pt){if(!me(this,Fe))throw new Error("The AnnotationEditor is not enabled.");if(me(this,Te)!==pt){if(!pe(pt))throw new Error(`Invalid AnnotationEditor mode: ${pt}`);this.pdfDocument&&(ke(this,Te,pt),this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:pt}),me(this,Fe).updateMode(pt))}}set annotationEditorParams(pt){let{type:wt,value:Pt}=pt;if(!me(this,Fe))throw new Error("The AnnotationEditor is not enabled.");me(this,Fe).updateParams(wt,Pt)}refresh(){if(!this.pdfDocument)return;const pt={};for(const wt of this._pages)wt.update(pt);this.update()}}D.BaseViewer=ot;function st(bt){const pt={annotationEditorMode:me(this,Te),annotationMode:me(this,Pe),textLayerMode:this.textLayerMode};return bt&&(bt.includes(R.PermissionFlag.COPY)||this.viewer.classList.add(ye),bt.includes(R.PermissionFlag.MODIFY_CONTENTS)||(pt.annotationEditorMode=R.AnnotationEditorType.DISABLE),!bt.includes(R.PermissionFlag.MODIFY_ANNOTATIONS)&&!bt.includes(R.PermissionFlag.FILL_INTERACTIVE_FORMS)&&me(this,Pe)===R.AnnotationMode.ENABLE_FORMS&&(pt.annotationMode=R.AnnotationMode.ENABLE)),pt}function dt(){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return Promise.resolve();const bt=new Promise(pt=>{ke(this,Ke,()=>{document.visibilityState==="hidden"&&(pt(),document.removeEventListener("visibilitychange",me(this,Ke)),ke(this,Ke,null))}),document.addEventListener("visibilitychange",me(this,Ke))});return Promise.race([this._onePageRenderedCapability.promise,bt])}function ct(){if(this._scrollMode!==U.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const bt=this._currentPageNumber,pt=me(this,Be),wt=this.viewer;if(wt.textContent="",pt.pages.length=0,this._spreadMode===U.SpreadMode.NONE&&!this.isInPresentationMode){const Pt=this._pages[bt-1];wt.append(Pt.div),pt.pages.push(Pt)}else{const Pt=new Set,Nt=this._spreadMode-1;Nt===-1?Pt.add(bt-1):bt%2!==Nt?(Pt.add(bt-1),Pt.add(bt)):(Pt.add(bt-2),Pt.add(bt-1));const Vt=document.createElement("div");if(Vt.className="spread",this.isInPresentationMode){const Wt=document.createElement("div");Wt.className="dummyPage",Vt.append(Wt)}for(const Wt of Pt){const Mt=this._pages[Wt];Mt&&(Vt.append(Mt.div),pt.pages.push(Mt))}wt.append(Vt)}pt.scrollDown=bt>=pt.previousPageNumber,pt.previousPageNumber=bt}function mt(bt){let pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const{div:wt,id:Pt}=bt;if(this._scrollMode===U.ScrollMode.PAGE&&(this._setCurrentPageNumber(Pt),oe(this,Le,ct).call(this),this.update()),!pt&&!this.isInPresentationMode){const Nt=wt.offsetLeft+wt.clientLeft,Vt=Nt+wt.clientWidth,{scrollLeft:Wt,clientWidth:Mt}=this.container;(this._scrollMode===U.ScrollMode.HORIZONTAL||Nt<Wt||Vt>Wt+Mt)&&(pt={left:0,top:0})}(0,U.scrollIntoView)(wt,pt)}function ut(bt){return bt===this._currentScale||Math.abs(bt-this._currentScale)<1e-15}function rt(){const bt=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),oe(this,et,mt).call(this,bt)}async function He(bt){if(bt.pdfPage)return bt.pdfPage;try{var pt,wt;const Pt=await this.pdfDocument.getPage(bt.id);return bt.pdfPage||bt.setPdfPage(Pt),(pt=(wt=this.linkService)._cachedPageNumber)!==null&&pt!==void 0&&pt.call(wt,Pt.ref)||this.linkService.cachePageRef(bt.id,Pt.ref),Pt}catch(Pt){return console.error("Unable to get page for page view",Pt),null}}function Je(bt){var pt,wt;if(((pt=bt.first)===null||pt===void 0?void 0:pt.id)===1)return!0;if(((wt=bt.last)===null||wt===void 0?void 0:wt.id)===this.pagesCount)return!1;switch(this._scrollMode){case U.ScrollMode.PAGE:return me(this,Be).scrollDown;case U.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}function St(bt){for(const pt of bt){const wt=this._pages[pt-1];wt==null||wt.toggleLoadingIconSpinner(!0)}for(const pt of me(this,ze))bt.has(pt.id)||pt.toggleLoadingIconSpinner(!1)}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFPageView=void 0;var R=B(3),U=B(7),K=B(14),z=B(4),e=B(15);function ae(oe,me,Ee){ie(oe,me),me.set(oe,Ee)}function ie(oe,me){if(me.has(oe))throw new TypeError("Cannot initialize the same private elements twice on an object")}function he(oe,me){var Ee=X(oe,me,"get");return J(oe,Ee)}function J(oe,me){return me.get?me.get.call(oe):me.value}function W(oe,me,Ee){var ke=X(oe,me,"set");return L(oe,ke,Ee),Ee}function X(oe,me,Ee){if(!me.has(oe))throw new TypeError("attempted to "+Ee+" private field on non-instance");return me.get(oe)}function L(oe,me,Ee){if(me.set)me.set.call(oe,Ee);else{if(!me.writable)throw new TypeError("attempted to set read only private field");me.value=Ee}}const Q=K.compatibilityParams.maxCanvasPixels||16777216;var ce=new WeakMap,de=new WeakMap;class se{constructor(me){var Ee,ke,xe,fe;ae(this,ce,{writable:!0,value:R.AnnotationMode.ENABLE_FORMS}),ae(this,de,{writable:!0,value:{initialOptionalContent:!0,regularAnnotations:!0}});const ve=me.container,ye=me.defaultViewport;this.id=me.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=me.scale||U.DEFAULT_SCALE,this.viewport=ye,this.pdfPageRotate=ye.rotation,this._optionalContentConfigPromise=me.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=(Ee=me.textLayerMode)!==null&&Ee!==void 0?Ee:U.TextLayerMode.ENABLE,W(this,ce,(ke=me.annotationMode)!==null&&ke!==void 0?ke:R.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=me.imageResourcesPath||"",this.useOnlyCssZoom=me.useOnlyCssZoom||!1,this.maxCanvasPixels=me.maxCanvasPixels||Q,this.pageColors=me.pageColors||null,this.eventBus=me.eventBus,this.renderingQueue=me.renderingQueue,this.textLayerFactory=me.textLayerFactory,this.annotationLayerFactory=me.annotationLayerFactory,this.annotationEditorLayerFactory=me.annotationEditorLayerFactory,this.xfaLayerFactory=me.xfaLayerFactory,this.textHighlighter=(xe=me.textHighlighterFactory)===null||xe===void 0?void 0:xe.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=me.structTreeLayerFactory,this.renderer=me.renderer||U.RendererType.CANVAS,this.l10n=me.l10n||z.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=U.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!((fe=this.renderingQueue)!==null&&fe!==void 0&&fe.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const Ce=document.createElement("div");if(Ce.className="page",Ce.style.width=Math.floor(this.viewport.width)+"px",Ce.style.height=Math.floor(this.viewport.height)+"px",Ce.setAttribute("data-page-number",this.id),Ce.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(pe=>{Ce.setAttribute("aria-label",pe)}),this.div=Ce,ve==null||ve.append(Ce),this._isStandalone){const{optionalContentConfigPromise:pe}=me;pe&&pe.then(_e=>{pe===this._optionalContentConfigPromise&&(he(this,de).initialOptionalContent=_e.hasInitialVisibility)})}}setPdfPage(me){this.pdfPage=me,this.pdfPageRotate=me.rotate;const Ee=(this.rotation+this.pdfPageRotate)%360;this.viewport=me.getViewport({scale:this.scale*R.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:Ee}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let me=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(Ee){console.error(`_renderAnnotationLayer: "${Ee}".`),me=Ee}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:me})}}async _renderAnnotationEditorLayer(){let me=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(Ee){console.error(`_renderAnnotationEditorLayer: "${Ee}".`),me=Ee}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:me})}}async _renderXfaLayer(){let me=null;try{const Ee=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(Ee.textDivs)}catch(Ee){console.error(`_renderXfaLayer: "${Ee}".`),me=Ee}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:me})}}async _buildXfaTextContentItems(me){const Ee=await this.pdfPage.getTextContent(),ke=[];for(const xe of Ee.items)ke.push(xe.str);this.textHighlighter.setTextMapping(me,ke),this.textHighlighter.enable()}_resetZoomLayer(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.zoomLayer)return;const Ee=this.zoomLayer.firstChild;this.paintedViewportMap.delete(Ee),Ee.width=0,Ee.height=0,me&&this.zoomLayer.remove(),this.zoomLayer=null}reset(){var me,Ee,ke;let{keepZoomLayer:xe=!1,keepAnnotationLayer:fe=!1,keepAnnotationEditorLayer:ve=!1,keepXfaLayer:ye=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.cancelRendering({keepAnnotationLayer:fe,keepAnnotationEditorLayer:ve,keepXfaLayer:ye}),this.renderingState=U.RenderingStates.INITIAL;const Ce=this.div;Ce.style.width=Math.floor(this.viewport.width)+"px",Ce.style.height=Math.floor(this.viewport.height)+"px";const pe=Ce.childNodes,_e=xe&&this.zoomLayer||null,Ge=fe&&((me=this.annotationLayer)===null||me===void 0?void 0:me.div)||null,Ae=ve&&((Ee=this.annotationEditorLayer)===null||Ee===void 0?void 0:Ee.div)||null,Ne=ye&&((ke=this.xfaLayer)===null||ke===void 0?void 0:ke.div)||null;for(let ze=pe.length-1;ze>=0;ze--){const Te=pe[ze];switch(Te){case _e:case Ge:case Ae:case Ne:continue}Te.remove()}if(Ce.removeAttribute("data-loaded"),Ge&&this.annotationLayer.hide(),Ae)this.annotationEditorLayer.hide();else{var Ze;(Ze=this.annotationEditorLayer)===null||Ze===void 0||Ze.destroy()}Ne&&this.xfaLayer.hide(),_e||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(ze=>{var Te;(Te=this.loadingIconDiv)===null||Te===void 0||Te.setAttribute("aria-label",ze)}),Ce.append(this.loadingIconDiv)}update(me){let{scale:Ee=0,rotation:ke=null,optionalContentConfigPromise:xe=null}=me;this.scale=Ee||this.scale,typeof ke=="number"&&(this.rotation=ke),xe instanceof Promise&&(this._optionalContentConfigPromise=xe,xe.then(ye=>{xe===this._optionalContentConfigPromise&&(he(this,de).initialOptionalContent=ye.hasInitialVisibility)}));const fe=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*R.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:fe}),this._isStandalone&&U.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg){this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}let ve=!1;if(this.canvas&&this.maxCanvasPixels>0){const ye=this.outputScale;(Math.floor(this.viewport.width)*ye.sx|0)*(Math.floor(this.viewport.height)*ye.sy|0)>this.maxCanvasPixels&&(ve=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&ve){this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering(){let{keepAnnotationLayer:me=!1,keepAnnotationEditorLayer:Ee=!1,keepXfaLayer:ke=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!me||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.annotationEditorLayer&&(!Ee||!this.annotationEditorLayer.div)&&(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!ke||!this.xfaLayer.div)){var xe;this.xfaLayer.cancel(),this.xfaLayer=null,(xe=this.textHighlighter)===null||xe===void 0||xe.disable()}this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform(me){let{target:Ee,redrawAnnotationLayer:ke=!1,redrawAnnotationEditorLayer:xe=!1,redrawXfaLayer:fe=!1}=me;const ve=this.viewport.width,ye=this.viewport.height,Ce=this.div;Ee.style.width=Ee.parentNode.style.width=Ce.style.width=Math.floor(ve)+"px",Ee.style.height=Ee.parentNode.style.height=Ce.style.height=Math.floor(ye)+"px";const pe=this.viewport.rotation-this.paintedViewportMap.get(Ee).rotation,_e=Math.abs(pe);let Ge=1,Ae=1;if((_e===90||_e===270)&&(Ge=ye/ve,Ae=ve/ye),Ee.style.transform=`rotate(${pe}deg) scale(${Ge}, ${Ae})`,this.textLayer){const Ne=this.textLayer.viewport,Ze=this.viewport.rotation-Ne.rotation,ze=Math.abs(Ze);let Te=ve/Ne.width;(ze===90||ze===270)&&(Te=ve/Ne.height);const Fe=this.textLayer.textLayerDiv;let Pe,we;switch(ze){case 0:Pe=we=0;break;case 90:Pe=0,we="-"+Fe.style.height;break;case 180:Pe="-"+Fe.style.width,we="-"+Fe.style.height;break;case 270:Pe="-"+Fe.style.width,we=0;break;default:console.error("Bad rotation value.");break}Fe.style.transform=`rotate(${ze}deg) scale(${Te}) translate(${Pe}, ${we})`,Fe.style.transformOrigin="0% 0%"}ke&&this.annotationLayer&&this._renderAnnotationLayer(),xe&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),fe&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(me,Ee){return this.viewport.convertToPdfPoint(me,Ee)}toggleLoadingIconSpinner(){var me;let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;(me=this.loadingIconDiv)===null||me===void 0||me.classList.toggle("notVisible",!Ee)}draw(){var me,Ee,ke,xe=this;this.renderingState!==U.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:fe,pdfPage:ve}=this;if(!ve)return this.renderingState=U.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=U.RenderingStates.RUNNING;const ye=document.createElement("div");ye.style.width=fe.style.width,ye.style.height=fe.style.height,ye.classList.add("canvasWrapper");const Ce=((me=this.annotationLayer)===null||me===void 0?void 0:me.div)||((Ee=this.annotationEditorLayer)===null||Ee===void 0?void 0:Ee.div);Ce?Ce.before(ye):fe.append(ye);let pe=null;if(this.textLayerMode!==U.TextLayerMode.DISABLE&&this.textLayerFactory){this._accessibilityManager||(this._accessibilityManager=new e.TextAccessibilityManager);const Ze=document.createElement("div");Ze.className="textLayer",Ze.style.width=ye.style.width,Ze.style.height=ye.style.height,Ce?Ce.before(Ze):fe.append(Ze),pe=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:Ze,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===U.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter,accessibilityManager:this._accessibilityManager})}this.textLayer=pe,he(this,ce)!==R.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:fe,pdfPage:ve,imageResourcesPath:this.imageResourcesPath,renderForms:he(this,ce)===R.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager}))),(ke=this.xfaLayer)!==null&&ke!==void 0&&ke.div&&fe.append(this.xfaLayer.div);let _e=null;this.renderingQueue&&(_e=Ze=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=U.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=U.RenderingStates.RUNNING,Ze()};return}Ze()});const Ge=async function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(Ae===xe.paintTask&&(xe.paintTask=null),Ze instanceof R.RenderingCancelledException){xe._renderError=null;return}if(xe._renderError=Ze,xe.renderingState=U.RenderingStates.FINISHED,xe.loadingIconDiv&&(xe.loadingIconDiv.remove(),delete xe.loadingIconDiv),xe._resetZoomLayer(!0),he(xe,de).regularAnnotations=!Ae.separateAnnots,xe.eventBus.dispatch("pagerendered",{source:xe,pageNumber:xe.id,cssTransform:!1,timestamp:performance.now(),error:xe._renderError}),Ze)throw Ze},Ae=this.renderer===U.RendererType.SVG?this.paintOnSvg(ye):this.paintOnCanvas(ye);Ae.onRenderContinue=_e,this.paintTask=Ae;const Ne=Ae.promise.then(()=>Ge(null).then(()=>{if(pe){const Ze=ve.streamTextContent({includeMarkedContent:!0});pe.setTextContentStream(Ze),pe.render()}this.annotationLayer&&this._renderAnnotationLayer().then(()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||(this.annotationEditorLayer=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:fe,pdfPage:ve,l10n:this.l10n,accessibilityManager:this._accessibilityManager})),this._renderAnnotationEditorLayer())})}),function(Ze){return Ge(Ze)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:fe,pdfPage:ve})),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=Ze=>{Ze.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(ze=>{if(!ze||!this.canvas)return;const Te=this.structTreeLayer.render(ze);Te.classList.add("structTree"),this.canvas.append(Te)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:ve})),fe.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),Ne}paintOnCanvas(me){const Ee=(0,R.createPromiseCapability)(),ke={promise:Ee.promise,onRenderContinue(ze){ze()},cancel(){Ze.cancel()},get separateAnnots(){return Ze.separateAnnots}},xe=this.viewport,fe=document.createElement("canvas");fe.setAttribute("role","presentation"),fe.hidden=!0;let ve=!0;const ye=function(){ve&&(fe.hidden=!1,ve=!1)};me.append(fe),this.canvas=fe;const Ce=fe.getContext("2d",{alpha:!1}),pe=this.outputScale=new U.OutputScale;if(this.useOnlyCssZoom){const ze=xe.clone({scale:R.PixelsPerInch.PDF_TO_CSS_UNITS});pe.sx*=ze.width/xe.width,pe.sy*=ze.height/xe.height}if(this.maxCanvasPixels>0){const ze=xe.width*xe.height,Te=Math.sqrt(this.maxCanvasPixels/ze);pe.sx>Te||pe.sy>Te?(pe.sx=Te,pe.sy=Te,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const _e=(0,U.approximateFraction)(pe.sx),Ge=(0,U.approximateFraction)(pe.sy);fe.width=(0,U.roundToDivide)(xe.width*pe.sx,_e[0]),fe.height=(0,U.roundToDivide)(xe.height*pe.sy,Ge[0]),fe.style.width=(0,U.roundToDivide)(xe.width,_e[1])+"px",fe.style.height=(0,U.roundToDivide)(xe.height,Ge[1])+"px",this.paintedViewportMap.set(fe,xe);const Ae=pe.scaled?[pe.sx,0,0,pe.sy,0,0]:null,Ne={canvasContext:Ce,transform:Ae,viewport:this.viewport,annotationMode:he(this,ce),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},Ze=this.pdfPage.render(Ne);return Ze.onContinue=function(ze){ye(),ke.onRenderContinue?ke.onRenderContinue(ze):ze()},Ze.promise.then(function(){ye(),Ee.resolve()},function(ze){ye(),Ee.reject(ze)}),ke}paintOnSvg(me){let Ee=!1;const ke=()=>{if(Ee)throw new R.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},xe=this.pdfPage,fe=this.viewport.clone({scale:R.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:xe.getOperatorList({annotationMode:he(this,ce)}).then(ye=>(ke(),new R.SVGGraphics(xe.commonObjs,xe.objs).getSVG(ye,fe).then(pe=>{ke(),this.svg=pe,this.paintedViewportMap.set(pe,fe),pe.style.width=me.style.width,pe.style.height=me.style.height,this.renderingState=U.RenderingStates.FINISHED,me.append(pe)}))),onRenderContinue(ye){ye()},cancel(){Ee=!0},get separateAnnots(){return!1}}}setPageLabel(me){this.pageLabel=typeof me=="string"?me:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:me,regularAnnotations:Ee}=he(this,de);return me&&Ee?this.canvas:null}}D.PDFPageView=se},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.compatibilityParams=D.OptionKind=D.AppOptions=void 0;const B=Object.create(null);D.compatibilityParams=B;{const e=navigator.userAgent||"",ae=navigator.platform||"",ie=navigator.maxTouchPoints||1,he=/Android/.test(e),J=/\b(iPad|iPhone|iPod)(?=;)/.test(e)||ae==="MacIntel"&&ie>1;(function(){(J||he)&&(B.maxCanvasPixels=5242880)})()}const R={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};D.OptionKind=R;const U={annotationEditorMode:{value:-1,kind:R.VIEWER+R.PREFERENCE},annotationMode:{value:2,kind:R.VIEWER+R.PREFERENCE},cursorToolOnLoad:{value:0,kind:R.VIEWER+R.PREFERENCE},defaultZoomValue:{value:"",kind:R.VIEWER+R.PREFERENCE},disableHistory:{value:!1,kind:R.VIEWER},disablePageLabels:{value:!1,kind:R.VIEWER+R.PREFERENCE},enablePermissions:{value:!1,kind:R.VIEWER+R.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:R.VIEWER+R.PREFERENCE},enableScripting:{value:!0,kind:R.VIEWER+R.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:R.VIEWER},externalLinkTarget:{value:0,kind:R.VIEWER+R.PREFERENCE},historyUpdateUrl:{value:!1,kind:R.VIEWER+R.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:R.VIEWER+R.PREFERENCE},imageResourcesPath:{value:"./images/",kind:R.VIEWER},maxCanvasPixels:{value:16777216,kind:R.VIEWER},forcePageColors:{value:!1,kind:R.VIEWER+R.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:R.VIEWER+R.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:R.VIEWER+R.PREFERENCE},pdfBugEnabled:{value:!1,kind:R.VIEWER+R.PREFERENCE},printResolution:{value:150,kind:R.VIEWER},sidebarViewOnLoad:{value:-1,kind:R.VIEWER+R.PREFERENCE},scrollModeOnLoad:{value:-1,kind:R.VIEWER+R.PREFERENCE},spreadModeOnLoad:{value:-1,kind:R.VIEWER+R.PREFERENCE},textLayerMode:{value:1,kind:R.VIEWER+R.PREFERENCE},useOnlyCssZoom:{value:!1,kind:R.VIEWER+R.PREFERENCE},viewerCssTheme:{value:0,kind:R.VIEWER+R.PREFERENCE},viewOnLoad:{value:0,kind:R.VIEWER+R.PREFERENCE},cMapPacked:{value:!0,kind:R.API},cMapUrl:{value:"../web/cmaps/",kind:R.API},disableAutoFetch:{value:!1,kind:R.API+R.PREFERENCE},disableFontFace:{value:!1,kind:R.API+R.PREFERENCE},disableRange:{value:!1,kind:R.API+R.PREFERENCE},disableStream:{value:!1,kind:R.API+R.PREFERENCE},docBaseUrl:{value:"",kind:R.API},enableXfa:{value:!0,kind:R.API+R.PREFERENCE},fontExtraProperties:{value:!1,kind:R.API},isEvalSupported:{value:!0,kind:R.API},maxImageSize:{value:-1,kind:R.API},pdfBug:{value:!1,kind:R.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:R.API},verbosity:{value:1,kind:R.API},workerPort:{value:null,kind:R.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:R.WORKER}};U.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:R.VIEWER},U.disablePreferences={value:!1,kind:R.VIEWER},U.locale={value:navigator.language||"en-US",kind:R.VIEWER},U.renderer={value:"canvas",kind:R.VIEWER+R.PREFERENCE},U.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:R.VIEWER};const K=Object.create(null);class z{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(ae){const ie=K[ae];if(ie!==void 0)return ie;const he=U[ae];if(he!==void 0){var J;return(J=B[ae])!==null&&J!==void 0?J:he.value}}static getAll(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const ie=Object.create(null);for(const J in U){var he;const W=U[J];if(ae){if(!(ae&W.kind))continue;if(ae===R.PREFERENCE){const L=W.value,Q=typeof L;if(Q==="boolean"||Q==="string"||Q==="number"&&Number.isInteger(L)){ie[J]=L;continue}throw new Error(`Invalid type for preference: ${J}`)}}const X=K[J];ie[J]=X!==void 0?X:(he=B[J])!==null&&he!==void 0?he:W.value}return ie}static set(ae,ie){K[ae]=ie}static setAll(ae){for(const ie in ae)K[ie]=ae[ie]}static remove(ae){delete K[ae]}static _hasUserOptions(){return Object.keys(K).length>0}}D.AppOptions=z},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.TextAccessibilityManager=void 0;var R=B(7);function U(xe,fe){z(xe,fe),fe.add(xe)}function K(xe,fe,ve){z(xe,fe),fe.set(xe,ve)}function z(xe,fe){if(fe.has(xe))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(xe,fe,ve){if(!fe.has(xe))throw new TypeError("attempted to get private field on non-instance");return ve}function ae(xe,fe,ve){return ie(xe,fe),ve}function ie(xe,fe){if(xe!==fe)throw new TypeError("Private static access of wrong provenance")}function he(xe,fe){var ve=X(xe,fe,"get");return J(xe,ve)}function J(xe,fe){return fe.get?fe.get.call(xe):fe.value}function W(xe,fe,ve){var ye=X(xe,fe,"set");return L(xe,ye,ve),ve}function X(xe,fe,ve){if(!fe.has(xe))throw new TypeError("attempted to "+ve+" private field on non-instance");return fe.get(xe)}function L(xe,fe,ve){if(fe.set)fe.set.call(xe,ve);else{if(!fe.writable)throw new TypeError("attempted to set read only private field");fe.value=ve}}var Q=new WeakMap,ce=new WeakMap,de=new WeakMap,se=new WeakMap,oe=new WeakSet;class me{constructor(){U(this,oe),K(this,Q,{writable:!0,value:!1}),K(this,ce,{writable:!0,value:null}),K(this,de,{writable:!0,value:new Map}),K(this,se,{writable:!0,value:new Map})}setTextMapping(fe){W(this,ce,fe)}enable(){if(he(this,Q))throw new Error("TextAccessibilityManager is already enabled.");if(!he(this,ce))throw new Error("Text divs and strings have not been set.");if(W(this,Q,!0),W(this,ce,he(this,ce).slice()),he(this,ce).sort(ae(me,me,Ee)),he(this,de).size>0){const fe=he(this,ce);for(const[ve,ye]of he(this,de)){if(!document.getElementById(ve)){he(this,de).delete(ve);continue}e(this,oe,ke).call(this,ve,fe[ye])}}for(const[fe,ve]of he(this,se))this.addPointerInTextLayer(fe,ve);he(this,se).clear()}disable(){he(this,Q)&&(he(this,se).clear(),W(this,ce,null),W(this,Q,!1))}removePointerInTextLayer(fe){var ve;if(!he(this,Q)){he(this,se).delete(fe);return}const ye=he(this,ce);if(!ye||ye.length===0)return;const{id:Ce}=fe,pe=he(this,de).get(Ce);if(pe===void 0)return;const _e=ye[pe];he(this,de).delete(Ce);let Ge=_e.getAttribute("aria-owns");(ve=Ge)!==null&&ve!==void 0&&ve.includes(Ce)&&(Ge=Ge.split(" ").filter(Ae=>Ae!==Ce).join(" "),Ge?_e.setAttribute("aria-owns",Ge):(_e.removeAttribute("aria-owns"),_e.setAttribute("role","presentation")))}addPointerInTextLayer(fe,ve){const{id:ye}=fe;if(!ye)return;if(!he(this,Q)){he(this,se).set(fe,ve);return}ve&&this.removePointerInTextLayer(fe);const Ce=he(this,ce);if(!Ce||Ce.length===0)return;const pe=(0,R.binarySearchFirstItem)(Ce,Ge=>ae(me,me,Ee).call(me,fe,Ge)<0),_e=Math.max(0,pe-1);e(this,oe,ke).call(this,ye,Ce[_e]),he(this,de).set(ye,_e)}moveElementInDOM(fe,ve,ye,Ce){if(this.addPointerInTextLayer(ye,Ce),!fe.hasChildNodes()){fe.append(ve);return}const pe=Array.from(fe.childNodes).filter(Ae=>Ae!==ve);if(pe.length===0)return;const _e=ye||ve,Ge=(0,R.binarySearchFirstItem)(pe,Ae=>ae(me,me,Ee).call(me,_e,Ae)<0);Ge===0?pe[0].before(ve):pe[Ge-1].after(ve)}}D.TextAccessibilityManager=me;function Ee(xe,fe){const ve=xe.getBoundingClientRect(),ye=fe.getBoundingClientRect();if(ve.width===0&&ve.height===0)return 1;if(ye.width===0&&ye.height===0)return-1;const Ce=ve.y,pe=ve.y+ve.height,_e=ve.y+ve.height/2,Ge=ye.y,Ae=ye.y+ye.height,Ne=ye.y+ye.height/2;if(_e<=Ge&&Ne>=pe)return-1;if(Ne<=Ce&&_e>=Ae)return 1;const Ze=ve.x+ve.width/2,ze=ye.x+ye.width/2;return Ze-ze}function ke(xe,fe){const ve=fe.getAttribute("aria-owns");ve!=null&&ve.includes(xe)||fe.setAttribute("aria-owns",ve?`${ve} ${xe}`:xe),fe.removeAttribute("role")}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFRenderingQueue=void 0;var R=B(3),U=B(7);const K=3e4;class z{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(ae){this.pdfViewer=ae}setThumbnailViewer(ae){this.pdfThumbnailViewer=ae}isHighestPriority(ae){return this.highestPriorityPage===ae.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(ae){var ie;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(ae)&&(this.isThumbnailViewEnabled&&(ie=this.pdfThumbnailViewer)!==null&&ie!==void 0&&ie.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),K)))}getHighestPriority(ae,ie,he){let J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const W=ae.views,X=W.length;if(X===0)return null;for(let se=0;se<X;se++){const oe=W[se].view;if(!this.isViewFinished(oe))return oe}const L=ae.first.id,Q=ae.last.id;if(Q-L+1>X){const se=ae.ids;for(let oe=1,me=Q-L;oe<me;oe++){const Ee=he?L+oe:Q-oe;if(se.has(Ee))continue;const ke=ie[Ee-1];if(!this.isViewFinished(ke))return ke}}let ce=he?Q:L-2,de=ie[ce];return de&&!this.isViewFinished(de)||J&&(ce+=he?1:-1,de=ie[ce],de&&!this.isViewFinished(de))?de:null}isViewFinished(ae){return ae.renderingState===U.RenderingStates.FINISHED}renderView(ae){switch(ae.renderingState){case U.RenderingStates.FINISHED:return!1;case U.RenderingStates.PAUSED:this.highestPriorityPage=ae.renderingId,ae.resume();break;case U.RenderingStates.RUNNING:this.highestPriorityPage=ae.renderingId;break;case U.RenderingStates.INITIAL:this.highestPriorityPage=ae.renderingId,ae.draw().finally(()=>{this.renderHighestPriority()}).catch(ie=>{ie instanceof R.RenderingCancelledException||console.error(`renderView: "${ie}"`)});break}return!0}}D.PDFRenderingQueue=z},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.TextHighlighter=void 0;class B{constructor(U){let{findController:K,eventBus:z,pageIndex:e}=U;this.findController=K,this.matches=[],this.eventBus=z,this.pageIdx=e,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(U,K){this.textDivs=U,this.textContentItemsStr=K}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=U=>{(U.pageIndex===this.pageIdx||U.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(U,K){if(!U)return[];const{textContentItemsStr:z}=this;let e=0,ae=0;const ie=z.length-1,he=[];for(let J=0,W=U.length;J<W;J++){let X=U[J];for(;e!==ie&&X>=ae+z[e].length;)ae+=z[e].length,e++;e===z.length&&console.error("Could not find a matching mapping");const L={begin:{divIdx:e,offset:X-ae}};for(X+=K[J];e!==ie&&X>ae+z[e].length;)ae+=z[e].length,e++;L.end={divIdx:e,offset:X-ae},he.push(L)}return he}_renderMatches(U){if(U.length===0)return;const{findController:K,pageIdx:z}=this,{textContentItemsStr:e,textDivs:ae}=this,ie=z===K.selected.pageIdx,he=K.selected.matchIdx,J=K.state.highlightAll;let W=null;const X={divIdx:-1,offset:void 0};function L(se,oe){const me=se.divIdx;return ae[me].textContent="",Q(me,0,se.offset,oe)}function Q(se,oe,me,Ee){let ke=ae[se];if(ke.nodeType===Node.TEXT_NODE){const ve=document.createElement("span");ke.before(ve),ve.append(ke),ae[se]=ve,ke=ve}const xe=e[se].substring(oe,me),fe=document.createTextNode(xe);if(Ee){const ve=document.createElement("span");return ve.className=`${Ee} appended`,ve.append(fe),ke.append(ve),Ee.includes("selected")?ve.offsetLeft:0}return ke.append(fe),0}let ce=he,de=ce+1;if(J)ce=0,de=U.length;else if(!ie)return;for(let se=ce;se<de;se++){const oe=U[se],me=oe.begin,Ee=oe.end,ke=ie&&se===he,xe=ke?" selected":"";let fe=0;if(!W||me.divIdx!==W.divIdx?(W!==null&&Q(W.divIdx,W.offset,X.offset),L(me)):Q(W.divIdx,W.offset,me.offset),me.divIdx===Ee.divIdx)fe=Q(me.divIdx,me.offset,Ee.offset,"highlight"+xe);else{fe=Q(me.divIdx,me.offset,X.offset,"highlight begin"+xe);for(let ve=me.divIdx+1,ye=Ee.divIdx;ve<ye;ve++)ae[ve].className="highlight middle"+xe;L(Ee,"highlight end"+xe)}W=Ee,ke&&K.scrollMatchIntoView({element:ae[me.divIdx],selectedLeft:fe,pageIndex:z,matchIndex:he})}W&&Q(W.divIdx,W.offset,X.offset)}_updateMatches(){if(!this.enabled)return;const{findController:U,matches:K,pageIdx:z}=this,{textContentItemsStr:e,textDivs:ae}=this;let ie=-1;for(let W=0,X=K.length;W<X;W++){const L=K[W],Q=Math.max(ie,L.begin.divIdx);for(let ce=Q,de=L.end.divIdx;ce<=de;ce++){const se=ae[ce];se.textContent=e[ce],se.className=""}ie=L.end.divIdx+1}if(!(U!=null&&U.highlightMatches))return;const he=U.pageMatches[z]||null,J=U.pageMatchesLength[z]||null;this.matches=this._convertMatches(he,J),this._renderMatches(this.matches)}}D.TextHighlighter=B},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.DownloadManager=void 0;var R=B(3);function U(z,e){const ae=document.createElement("a");if(!ae.click)throw new Error('DownloadManager: "a.click()" is not supported.');ae.href=z,ae.target="_parent","download"in ae&&(ae.download=e),(document.body||document.documentElement).append(ae),ae.click(),ae.remove()}class K{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,ae){if(!(0,R.createValidAbsoluteUrl)(e,"http://example.com")){console.error(`downloadUrl - not a valid URL: ${e}`);return}U(e+"#pdfjs.action=download",ae)}downloadData(e,ae,ie){const he=URL.createObjectURL(new Blob([e],{type:ie}));U(he,ae)}openOrDownloadData(e,ae,ie){const he=(0,R.isPdfFile)(ie),J=he?"application/pdf":"";if(he){let W=this._openBlobUrls.get(e);W||(W=URL.createObjectURL(new Blob([ae],{type:J})),this._openBlobUrls.set(e,W));let X;X="?file="+encodeURIComponent(W+"#"+ie);try{return window.open(X),!0}catch(L){console.error(`openOrDownloadData: ${L}`),URL.revokeObjectURL(W),this._openBlobUrls.delete(e)}}return this.downloadData(ae,ie,J),!1}download(e,ae,ie){const he=URL.createObjectURL(e);U(he,ie)}}D.DownloadManager=K},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.WaitOnType=D.EventBus=D.AutomationEventBus=void 0,D.waitOnEventOrTimeout=R;const B={EVENT:"event",TIMEOUT:"timeout"};D.WaitOnType=B;function R(z){let{target:e,name:ae,delay:ie=0}=z;return new Promise(function(he,J){if(typeof e!="object"||!(ae&&typeof ae=="string")||!(Number.isInteger(ie)&&ie>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function W(ce){e instanceof U?e._off(ae,X):e.removeEventListener(ae,X),Q&&clearTimeout(Q),he(ce)}const X=W.bind(null,B.EVENT);e instanceof U?e._on(ae,X):e.addEventListener(ae,X);const L=W.bind(null,B.TIMEOUT),Q=setTimeout(L,ie)})}class U{constructor(){this._listeners=Object.create(null)}on(e,ae){let ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._on(e,ae,{external:!0,once:ie==null?void 0:ie.once})}off(e,ae){let ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._off(e,ae,{external:!0,once:ie==null?void 0:ie.once})}dispatch(e,ae){const ie=this._listeners[e];if(!ie||ie.length===0)return;let he;for(const{listener:J,external:W,once:X}of ie.slice(0)){if(X&&this._off(e,J),W){(he||(he=[])).push(J);continue}J(ae)}if(he){for(const J of he)J(ae);he=null}}_on(e,ae){var ie;let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;((ie=this._listeners)[e]||(ie[e]=[])).push({listener:ae,external:(he==null?void 0:he.external)===!0,once:(he==null?void 0:he.once)===!0})}_off(e,ae){const ie=this._listeners[e];if(ie){for(let he=0,J=ie.length;he<J;he++)if(ie[he].listener===ae){ie.splice(he,1);return}}}}D.EventBus=U;class K extends U{dispatch(e,ae){throw new Error("Not implemented: AutomationEventBus.dispatch")}}D.AutomationEventBus=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.GenericL10n=void 0,B(21);var R=B(4);const U=document.webL10n;class K{constructor(e){this._lang=e,this._ready=new Promise((ae,ie)=>{U.setLanguage((0,R.fixupLangCode)(e),()=>{ae(U)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,R.getL10nFallback)(e,ae);return(await this._ready).get(e,ae,ie)}async translate(e){return(await this._ready).translate(e)}}D.GenericL10n=K},()=>{document.webL10n=function($,D,B){var R={},U="",K="textContent",z="",e={},ae="loading",ie=!0;function he(){return D.querySelectorAll('link[type="application/l10n"]')}function J(){var ve=D.querySelector('script[type="application/l10n"]');return ve?JSON.parse(ve.innerHTML):null}function W(ve){return ve?ve.querySelectorAll("*[data-l10n-id]"):[]}function X(ve){if(!ve)return{};var ye=ve.getAttribute("data-l10n-id"),Ce=ve.getAttribute("data-l10n-args"),pe={};if(Ce)try{pe=JSON.parse(Ce)}catch{console.warn("could not parse arguments for #"+ye)}return{id:ye,args:pe}}function L(ve,ye,Ce){ye=ye||function(Ge){},Ce=Ce||function(){};var pe=new XMLHttpRequest;pe.open("GET",ve,ie),pe.overrideMimeType&&pe.overrideMimeType("text/plain; charset=utf-8"),pe.onreadystatechange=function(){pe.readyState==4&&(pe.status==200||pe.status===0?ye(pe.responseText):Ce())},pe.onerror=Ce,pe.ontimeout=Ce;try{pe.send(null)}catch{Ce()}}function Q(ve,ye,Ce,pe){var _e=ve.replace(/[^\/]*$/,"")||"./";function Ge(Ne){return Ne.lastIndexOf("\\")<0?Ne:Ne.replace(/\\\\/g,"\\").replace(/\\n/g,`
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function Ae(Ne,Ze){var ze={},Te=/^\s*|\s*$/,Fe=/^\s*#|^\s*$/,Pe=/^\s*\[(.*)\]\s*$/,we=/^\s*@import\s+url\((.*)\)\s*$/i,Ie=/^([^=\s]*)\s*=\s*(.+)$/;function Be(Ve,je,Le){var et=Ve.replace(Te,"").split(/[\r\n]+/),Qe="*",Ue=ye.split("-",1)[0],$e=!1,Ye="";function tt(){for(;;){if(!et.length){Le();return}var ot=et.shift();if(!Fe.test(ot)){if(je){if(Ye=Pe.exec(ot),Ye){Qe=Ye[1].toLowerCase(),$e=Qe!=="*"&&Qe!==ye&&Qe!==Ue;continue}else if($e)continue;if(Ye=we.exec(ot),Ye){Ke(_e+Ye[1],tt);return}}var st=ot.match(Ie);st&&st.length==3&&(ze[st[1]]=Ge(st[2]))}}}tt()}function Ke(Ve,je){L(Ve,function(Le){Be(Le,!1,je)},function(){console.warn(Ve+" not found."),je()})}Be(Ne,!0,function(){Ze(ze)})}L(ve,function(Ne){U+=Ne,Ae(Ne,function(Ze){for(var ze in Ze){var Te,Fe,Pe=ze.lastIndexOf(".");Pe>0?(Te=ze.substring(0,Pe),Fe=ze.substring(Pe+1)):(Te=ze,Fe=K),R[Te]||(R[Te]={}),R[Te][Fe]=Ze[ze]}Ce&&Ce()})},pe)}function ce(ve,ye){ve&&(ve=ve.toLowerCase()),ye=ye||function(){},de(),z=ve;var Ce=he(),pe=Ce.length;if(pe===0){var _e=J();if(_e&&_e.locales&&_e.default_locale){if(console.log("using the embedded JSON directory, early way out"),R=_e.locales[ve],!R){var Ge=_e.default_locale.toLowerCase();for(var Ae in _e.locales)if(Ae=Ae.toLowerCase(),Ae===ve){R=_e.locales[ve];break}else Ae===Ge&&(R=_e.locales[Ge])}ye()}else console.log("no resource to load, early way out");ae="complete";return}var Ne=null,Ze=0;Ne=function(){Ze++,Ze>=pe&&(ye(),ae="complete")};function ze(Pe){var we=Pe.href;this.load=function(Ie,Be){Q(we,Ie,Be,function(){console.warn(we+" not found."),console.warn('"'+Ie+'" resource not found'),z="",Be()})}}for(var Te=0;Te<pe;Te++){var Fe=new ze(Ce[Te]);Fe.load(ve,Ne)}}function de(){R={},U="",z=""}function se(ve){var ye={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function Ce(Ae,Ne){return Ne.indexOf(Ae)!==-1}function pe(Ae,Ne,Ze){return Ne<=Ae&&Ae<=Ze}var _e={0:function(Ae){return"other"},1:function(Ae){return pe(Ae%100,3,10)?"few":Ae===0?"zero":pe(Ae%100,11,99)?"many":Ae==2?"two":Ae==1?"one":"other"},2:function(Ae){return Ae!==0&&Ae%10===0?"many":Ae==2?"two":Ae==1?"one":"other"},3:function(Ae){return Ae==1?"one":"other"},4:function(Ae){return pe(Ae,0,1)?"one":"other"},5:function(Ae){return pe(Ae,0,2)&&Ae!=2?"one":"other"},6:function(Ae){return Ae===0?"zero":Ae%10==1&&Ae%100!=11?"one":"other"},7:function(Ae){return Ae==2?"two":Ae==1?"one":"other"},8:function(Ae){return pe(Ae,3,6)?"few":pe(Ae,7,10)?"many":Ae==2?"two":Ae==1?"one":"other"},9:function(Ae){return Ae===0||Ae!=1&&pe(Ae%100,1,19)?"few":Ae==1?"one":"other"},10:function(Ae){return pe(Ae%10,2,9)&&!pe(Ae%100,11,19)?"few":Ae%10==1&&!pe(Ae%100,11,19)?"one":"other"},11:function(Ae){return pe(Ae%10,2,4)&&!pe(Ae%100,12,14)?"few":Ae%10===0||pe(Ae%10,5,9)||pe(Ae%100,11,14)?"many":Ae%10==1&&Ae%100!=11?"one":"other"},12:function(Ae){return pe(Ae,2,4)?"few":Ae==1?"one":"other"},13:function(Ae){return pe(Ae%10,2,4)&&!pe(Ae%100,12,14)?"few":Ae!=1&&pe(Ae%10,0,1)||pe(Ae%10,5,9)||pe(Ae%100,12,14)?"many":Ae==1?"one":"other"},14:function(Ae){return pe(Ae%100,3,4)?"few":Ae%100==2?"two":Ae%100==1?"one":"other"},15:function(Ae){return Ae===0||pe(Ae%100,2,10)?"few":pe(Ae%100,11,19)?"many":Ae==1?"one":"other"},16:function(Ae){return Ae%10==1&&Ae!=11?"one":"other"},17:function(Ae){return Ae==3?"few":Ae===0?"zero":Ae==6?"many":Ae==2?"two":Ae==1?"one":"other"},18:function(Ae){return Ae===0?"zero":pe(Ae,0,2)&&Ae!==0&&Ae!=2?"one":"other"},19:function(Ae){return pe(Ae,2,10)?"few":pe(Ae,0,1)?"one":"other"},20:function(Ae){return(pe(Ae%10,3,4)||Ae%10==9)&&!(pe(Ae%100,10,19)||pe(Ae%100,70,79)||pe(Ae%100,90,99))?"few":Ae%1e6===0&&Ae!==0?"many":Ae%10==2&&!Ce(Ae%100,[12,72,92])?"two":Ae%10==1&&!Ce(Ae%100,[11,71,91])?"one":"other"},21:function(Ae){return Ae===0?"zero":Ae==1?"one":"other"},22:function(Ae){return pe(Ae,0,1)||pe(Ae,11,99)?"one":"other"},23:function(Ae){return pe(Ae%10,1,2)||Ae%20===0?"one":"other"},24:function(Ae){return pe(Ae,3,10)||pe(Ae,13,19)?"few":Ce(Ae,[2,12])?"two":Ce(Ae,[1,11])?"one":"other"}},Ge=ye[ve.replace(/-.*$/,"")];return Ge in _e?_e[Ge]:(console.warn("plural form unknown for ["+ve+"]"),function(){return"other"})}e.plural=function(ve,ye,Ce,pe){var _e=parseFloat(ye);if(isNaN(_e)||pe!=K)return ve;e._pluralRules||(e._pluralRules=se(z));var Ge="["+e._pluralRules(_e)+"]";return _e===0&&Ce+"[zero]"in R?ve=R[Ce+"[zero]"][pe]:_e==1&&Ce+"[one]"in R?ve=R[Ce+"[one]"][pe]:_e==2&&Ce+"[two]"in R?ve=R[Ce+"[two]"][pe]:Ce+Ge in R?ve=R[Ce+Ge][pe]:Ce+"[other]"in R&&(ve=R[Ce+"[other]"][pe]),ve};function oe(ve,ye,Ce){var pe=R[ve];if(!pe){if(console.warn("#"+ve+" is undefined."),!Ce)return null;pe=Ce}var _e={};for(var Ge in pe){var Ae=pe[Ge];Ae=me(Ae,ye,ve,Ge),Ae=Ee(Ae,ye,ve),_e[Ge]=Ae}return _e}function me(ve,ye,Ce,pe){var _e=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,Ge=_e.exec(ve);if(!Ge||!Ge.length)return ve;var Ae=Ge[1],Ne=Ge[2],Ze;if(ye&&Ne in ye?Ze=ye[Ne]:Ne in R&&(Ze=R[Ne]),Ae in e){var ze=e[Ae];ve=ze(ve,Ze,Ce,pe)}return ve}function Ee(ve,ye,Ce){var pe=/\{\{\s*(.+?)\s*\}\}/g;return ve.replace(pe,function(_e,Ge){return ye&&Ge in ye?ye[Ge]:Ge in R?R[Ge]:(console.log("argument {{"+Ge+"}} for #"+Ce+" is undefined."),_e)})}function ke(ve){var ye=X(ve);if(ye.id){var Ce=oe(ye.id,ye.args);if(!Ce){console.warn("#"+ye.id+" is undefined.");return}if(Ce[K]){if(xe(ve)===0)ve[K]=Ce[K];else{for(var pe=ve.childNodes,_e=!1,Ge=0,Ae=pe.length;Ge<Ae;Ge++)pe[Ge].nodeType===3&&/\S/.test(pe[Ge].nodeValue)&&(_e?pe[Ge].nodeValue="":(pe[Ge].nodeValue=Ce[K],_e=!0));if(!_e){var Ne=D.createTextNode(Ce[K]);ve.prepend(Ne)}}delete Ce[K]}for(var Ze in Ce)ve[Ze]=Ce[Ze]}}function xe(ve){if(ve.children)return ve.children.length;if(typeof ve.childElementCount<"u")return ve.childElementCount;for(var ye=0,Ce=0;Ce<ve.childNodes.length;Ce++)ye+=ve.nodeType===1?1:0;return ye}function fe(ve){ve=ve||D.documentElement;for(var ye=W(ve),Ce=ye.length,pe=0;pe<Ce;pe++)ke(ye[pe]);ke(ve)}return{get:function(ve,ye,Ce){var pe=ve.lastIndexOf("."),_e=K;pe>0&&(_e=ve.substring(pe+1),ve=ve.substring(0,pe));var Ge;Ce&&(Ge={},Ge[_e]=Ce);var Ae=oe(ve,ye,Ge);return Ae&&_e in Ae?Ae[_e]:"{{"+ve+"}}"},getData:function(){return R},getText:function(){return U},getLanguage:function(){return z},setLanguage:function(ve,ye){ce(ve,function(){ye&&ye()})},getDirection:function(){var ve=["ar","he","fa","ps","ur"],ye=z.split("-",1)[0];return ve.indexOf(ye)>=0?"rtl":"ltr"},translate:fe,getReadyState:function(){return ae},ready:function(ve){if(ve)ae=="complete"||ae=="interactive"?$.setTimeout(function(){ve()}):D.addEventListener&&D.addEventListener("localized",function ye(){D.removeEventListener("localized",ye),ve()});else return}}}(window,document)},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFFindController=D.FindState=void 0;var R=B(7),U=B(3),K=B(23);function z(Jt,er,Bt){ae(Jt,er),er.set(Jt,Bt)}function e(Jt,er){ae(Jt,er),er.add(Jt)}function ae(Jt,er){if(er.has(Jt))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ie(Jt,er){var Bt=he(Jt,er,"get");return J(Jt,Bt)}function he(Jt,er,Bt){if(!er.has(Jt))throw new TypeError("attempted to "+Bt+" private field on non-instance");return er.get(Jt)}function J(Jt,er){return er.get?er.get.call(Jt):er.value}function W(Jt,er,Bt){if(!er.has(Jt))throw new TypeError("attempted to get private field on non-instance");return Bt}const X={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};D.FindState=X;const L=250,Q=-50,ce=-400,de={"":"-","":"'","":"'","":"'","":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},se=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),oe=[...se.values()].map(Jt=>String.fromCharCode(Jt)).join(""),me=/\p{M}+/gu,Ee=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,ke=/([^\p{M}])\p{M}*$/u,xe=/^\p{M}*([^\p{M}])/u,fe=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,ve=new Map,ye="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]";let Ce=null,pe=null;function _e(Jt){const er=[];let Bt;for(;(Bt=fe.exec(Jt))!==null;){let{index:vt}=Bt;for(const Xt of Bt[0]){let At=ve.get(Xt);At||(At=Xt.normalize("NFD").length,ve.set(Xt,At)),er.push([At,vt++])}}let It;if(er.length===0&&Ce)It=Ce;else if(er.length>0&&pe)It=pe;else{const Xt=`([${Object.keys(de).join("")}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`;er.length===0?It=Ce=new RegExp(Xt+"|(\\u0000)","gum"):It=pe=new RegExp(Xt+`|(${ye})`,"gum")}const Dt=[];for(;(Bt=me.exec(Jt))!==null;)Dt.push([Bt[0].length,Bt.index]);let Zt=Jt.normalize("NFD");const gr=[[0,0]];let fr=0,Dr=0,kr=0,cr=0,Ar=0,yt=!1;return Zt=Zt.replace(It,(vt,Xt,At,zt,Br,br,Ur)=>{var un;if(Ur-=cr,Xt){const ur=de[vt],Cr=ur.length;for(let Tr=1;Tr<Cr;Tr++)gr.push([Ur-kr+Tr,kr-Tr]);return kr-=Cr-1,ur}if(At){var sr;const ur=At.endsWith(`
`),Cr=ur?At.length-2:At.length;yt=!0;let Tr=Cr;Ur+Ar===((sr=Dt[fr])===null||sr===void 0?void 0:sr[1])&&(Tr-=Dt[fr][0],++fr);for(let jt=1;jt<=Tr;jt++)gr.push([Ur-1-kr+jt,kr-jt]);return kr-=Tr,cr+=Tr,ur?(Ur+=Cr-1,gr.push([Ur-kr+1,1+kr]),kr+=1,cr+=1,Ar+=1,At.slice(0,Cr)):At}if(zt)return gr.push([Ur-kr+1,1+kr]),kr+=1,cr+=1,Ar+=1,zt.charAt(0);if(Br)return gr.push([Ur-kr+1,kr-1]),kr-=1,cr+=1,Ar+=1," ";if(Ur+Ar===((un=er[Dr])===null||un===void 0?void 0:un[1])){const ur=er[Dr][0]-1;++Dr;for(let Cr=1;Cr<=ur;Cr++)gr.push([Ur-(kr-Cr),kr-Cr]);kr-=ur,cr+=ur}return br}),gr.push([Zt.length,kr]),[Zt,gr,yt]}function Ge(Jt,er,Bt){if(!Jt)return[er,Bt];const It=er,Dt=er+Bt;let Zt=(0,R.binarySearchFirstItem)(Jt,fr=>fr[0]>=It);Jt[Zt][0]>It&&--Zt;let gr=(0,R.binarySearchFirstItem)(Jt,fr=>fr[0]>=Dt,Zt);return Jt[gr][0]>Dt&&--gr,[It+Jt[Zt][1],Bt+Jt[gr][1]-Jt[Zt][1]]}var Ae=new WeakSet,Ne=new WeakSet,Ze=new WeakMap,ze=new WeakSet,Te=new WeakSet,Fe=new WeakSet,Pe=new WeakSet,we=new WeakSet,Ie=new WeakSet,Be=new WeakSet,Ke=new WeakSet,Ve=new WeakSet,je=new WeakSet,Le=new WeakSet,et=new WeakSet,Qe=new WeakSet,Ue=new WeakSet,$e=new WeakSet,Ye=new WeakSet,tt=new WeakSet;class ot{constructor(er){let{linkService:Bt,eventBus:It}=er;e(this,tt),e(this,Ye),e(this,$e),e(this,Ue),e(this,Qe),e(this,et),e(this,Le),e(this,je),e(this,Ve),e(this,Ke),e(this,Be),e(this,Ie),e(this,we),e(this,Pe),e(this,Fe),e(this,Te),e(this,ze),z(this,Ze,{get:ct,set:void 0}),e(this,Ne),e(this,Ae),this._linkService=Bt,this._eventBus=It,W(this,Ne,dt).call(this),It._on("find",W(this,Ae,st).bind(this)),It._on("findbarclose",W(this,Ue,Mt).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(er){this._pdfDocument&&W(this,Ne,dt).call(this),er&&(this._pdfDocument=er,this._firstPageCapability.resolve())}scrollMatchIntoView(er){let{element:Bt=null,selectedLeft:It=0,pageIndex:Dt=-1,matchIndex:Zt=-1}=er;if(!this._scrollMatches||!Bt)return;if(Zt===-1||Zt!==this._selected.matchIdx)return;if(Dt===-1||Dt!==this._selected.pageIdx)return;this._scrollMatches=!1;const gr={top:Q,left:It+ce};(0,R.scrollIntoView)(Bt,gr,!0)}}D.PDFFindController=ot;function st(Jt){if(!Jt)return;const er=this._pdfDocument,{type:Bt}=Jt;(this._state===null||W(this,ze,mt).call(this,Jt))&&(this._dirtyMatch=!0),this._state=Jt,Bt!=="highlightallchange"&&W(this,tt,Ft).call(this,X.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||er&&this._pdfDocument!==er)return;W(this,Ie,St).call(this);const It=!this._highlightMatches,Dt=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),Bt?this._dirtyMatch?W(this,Ve,wt).call(this):Bt==="again"?(W(this,Ve,wt).call(this),It&&this._state.highlightAll&&W(this,Ke,pt).call(this)):Bt==="highlightallchange"?(Dt?W(this,Ve,wt).call(this):this._highlightMatches=!0,W(this,Ke,pt).call(this)):W(this,Ve,wt).call(this):this._findTimeout=setTimeout(()=>{W(this,Ve,wt).call(this),this._findTimeout=null},L)})}function dt(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,U.createPromiseCapability)()}function ct(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=_e(this._state.query)),this._normalizedQuery}function mt(Jt){if(Jt.query!==this._state.query)return!0;switch(Jt.type){case"again":const er=this._selected.pageIdx+1,Bt=this._linkService;return er>=1&&er<=Bt.pagesCount&&er!==Bt.page&&!Bt.isPageVisible(er);case"highlightallchange":return!1}return!0}function ut(Jt,er,Bt){let It=Jt.slice(0,er).match(ke);if(It){const Dt=Jt.charCodeAt(er),Zt=It[1].charCodeAt(0);if((0,K.getCharacterType)(Dt)===(0,K.getCharacterType)(Zt))return!1}if(It=Jt.slice(er+Bt).match(xe),It){const Dt=Jt.charCodeAt(er+Bt-1),Zt=It[1].charCodeAt(0);if((0,K.getCharacterType)(Dt)===(0,K.getCharacterType)(Zt))return!1}return!0}function rt(Jt,er,Bt,It){const Dt=[],Zt=[],gr=this._pageDiffs[Bt];let fr;for(;(fr=Jt.exec(It))!==null;){if(er&&!W(this,Te,ut).call(this,It,fr.index,fr[0].length))continue;const[Dr,kr]=Ge(gr,fr.index,fr[0].length);kr&&(Dt.push(Dr),Zt.push(kr))}this._pageMatches[Bt]=Dt,this._pageMatchesLength[Bt]=Zt}function He(Jt,er){const{matchDiacritics:Bt}=this._state;let It=!1;Jt=Jt.replace(Ee,(Zt,gr,fr,Dr,kr,cr)=>gr?`[ ]*\\${gr}[ ]*`:fr?`[ ]*${fr}[ ]*`:Dr?"[ ]+":Bt?kr||cr:kr?se.has(kr.charCodeAt(0))?kr:"":er?(It=!0,`${cr}\\p{M}*`):cr);const Dt="[ ]*";return Jt.endsWith(Dt)&&(Jt=Jt.slice(0,Jt.length-Dt.length)),Bt&&er&&(It=!0,Jt=`${Jt}(?=[${oe}]|[^\\p{M}]|$)`),[It,Jt]}function Je(Jt){let er=ie(this,Ze);if(er.length===0)return;const{caseSensitive:Bt,entireWord:It,phraseSearch:Dt}=this._state,Zt=this._pageContents[Jt],gr=this._hasDiacritics[Jt];let fr=!1;if(Dt)[fr,er]=W(this,Pe,He).call(this,er,gr);else{const cr=er.match(/\S+/g);cr&&(er=cr.sort().reverse().map(Ar=>{const[yt,vt]=W(this,Pe,He).call(this,Ar,gr);return fr||(fr=yt),`(${vt})`}).join("|"))}const Dr=`g${fr?"u":""}${Bt?"":"i"}`;er=new RegExp(er,Dr),W(this,Fe,rt).call(this,er,It,Jt,Zt),this._state.highlightAll&&W(this,Be,bt).call(this,Jt),this._resumePageIdx===Jt&&(this._resumePageIdx=null,W(this,Le,Nt).call(this));const kr=this._pageMatches[Jt].length;kr>0&&(this._matchesCountTotal+=kr,W(this,Ye,Yt).call(this))}function St(){if(this._extractTextPromises.length>0)return;let Jt=Promise.resolve();for(let er=0,Bt=this._linkService.pagesCount;er<Bt;er++){const It=(0,U.createPromiseCapability)();this._extractTextPromises[er]=It.promise,Jt=Jt.then(()=>this._pdfDocument.getPage(er+1).then(Dt=>Dt.getTextContent()).then(Dt=>{const Zt=[];for(const gr of Dt.items)Zt.push(gr.str),gr.hasEOL&&Zt.push(`
`);[this._pageContents[er],this._pageDiffs[er],this._hasDiacritics[er]]=_e(Zt.join("")),It.resolve()},Dt=>{console.error(`Unable to get text content for page ${er+1}`,Dt),this._pageContents[er]="",this._pageDiffs[er]=null,this._hasDiacritics[er]=!1,It.resolve()}))}}function bt(Jt){this._scrollMatches&&this._selected.pageIdx===Jt&&(this._linkService.page=Jt+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:Jt})}function pt(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}function wt(){const Jt=this._state.findPrevious,er=this._linkService.page-1,Bt=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=er,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,W(this,Ke,pt).call(this);for(let Dt=0;Dt<Bt;Dt++)this._pendingFindMatches.has(Dt)||(this._pendingFindMatches.add(Dt),this._extractTextPromises[Dt].then(()=>{this._pendingFindMatches.delete(Dt),W(this,we,Je).call(this,Dt)}))}if(ie(this,Ze)===""){W(this,tt,Ft).call(this,X.FOUND);return}if(this._resumePageIdx)return;const It=this._offset;if(this._pagesToSearch=Bt,It.matchIdx!==null){const Dt=this._pageMatches[It.pageIdx].length;if(!Jt&&It.matchIdx+1<Dt||Jt&&It.matchIdx>0){It.matchIdx=Jt?It.matchIdx-1:It.matchIdx+1,W(this,Qe,Wt).call(this,!0);return}W(this,et,Vt).call(this,Jt)}W(this,Le,Nt).call(this)}function Pt(Jt){const er=this._offset,Bt=Jt.length,It=this._state.findPrevious;return Bt?(er.matchIdx=It?Bt-1:0,W(this,Qe,Wt).call(this,!0),!0):(W(this,et,Vt).call(this,It),er.wrapped&&(er.matchIdx=null,this._pagesToSearch<0)?(W(this,Qe,Wt).call(this,!1),!0):!1)}function Nt(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let Jt=null;do{const er=this._offset.pageIdx;if(Jt=this._pageMatches[er],!Jt){this._resumePageIdx=er;break}}while(!W(this,je,Pt).call(this,Jt))}function Vt(Jt){const er=this._offset,Bt=this._linkService.pagesCount;er.pageIdx=Jt?er.pageIdx-1:er.pageIdx+1,er.matchIdx=null,this._pagesToSearch--,(er.pageIdx>=Bt||er.pageIdx<0)&&(er.pageIdx=Jt?Bt-1:0,er.wrapped=!0)}function Wt(){let Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,er=X.NOT_FOUND;const Bt=this._offset.wrapped;if(this._offset.wrapped=!1,Jt){const It=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,er=Bt?X.WRAPPED:X.FOUND,It!==-1&&It!==this._selected.pageIdx&&W(this,Be,bt).call(this,It)}W(this,tt,Ft).call(this,er,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,W(this,Be,bt).call(this,this._selected.pageIdx))}function Mt(Jt){const er=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||er&&this._pdfDocument!==er||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),W(this,tt,Ft).call(this,X.FOUND),this._highlightMatches=!1,W(this,Ke,pt).call(this))})}function $t(){const{pageIdx:Jt,matchIdx:er}=this._selected;let Bt=0,It=this._matchesCountTotal;if(er!==-1){for(let Zt=0;Zt<Jt;Zt++){var Dt;Bt+=((Dt=this._pageMatches[Zt])===null||Dt===void 0?void 0:Dt.length)||0}Bt+=er+1}return(Bt<1||Bt>It)&&(Bt=It=0),{current:Bt,total:It}}function Yt(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:W(this,$e,$t).call(this)})}function Ft(Jt){var er,Bt;let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:Jt,previous:It,matchesCount:W(this,$e,$t).call(this),rawQuery:(er=(Bt=this._state)===null||Bt===void 0?void 0:Bt.query)!==null&&er!==void 0?er:null})}},($,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.CharacterType=void 0,D.getCharacterType=X;const B={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};D.CharacterType=B;function R(L){return L<11904}function U(L){return(L&65408)===0}function K(L){return L>=97&&L<=122||L>=65&&L<=90}function z(L){return L>=48&&L<=57}function e(L){return L===32||L===9||L===13||L===10}function ae(L){return L>=13312&&L<=40959||L>=63744&&L<=64255}function ie(L){return L>=12448&&L<=12543}function he(L){return L>=12352&&L<=12447}function J(L){return L>=65376&&L<=65439}function W(L){return(L&65408)===3584}function X(L){return R(L)?U(L)?e(L)?B.SPACE:K(L)||z(L)||L===95?B.ALPHA_LETTER:B.PUNCT:W(L)?B.THAI_LETTER:L===160?B.SPACE:B.ALPHA_LETTER:ae(L)?B.HAN_LETTER:ie(L)?B.KATAKANA_LETTER:he(L)?B.HIRAGANA_LETTER:J(L)?B.HALFWIDTH_KATAKANA_LETTER:B.ALPHA_LETTER}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFHistory=void 0,D.isDestArraysEqual=J,D.isDestHashesEqual=he;var R=B(7),U=B(19);const K=1e3,z=50,e=1e3;function ae(){return document.location.hash}class ie{constructor(X){let{linkService:L,eventBus:Q}=X;this.linkService=L,this.eventBus=Q,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",ce=>{this._isPagesLoaded=!!ce.pagesCount},{once:!0})})}initialize(X){let{fingerprint:L,resetHistory:Q=!1,updateUrl:ce=!1}=X;if(!L||typeof L!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const de=this._fingerprint!==""&&this._fingerprint!==L;this._fingerprint=L,this._updateUrl=ce===!0,this._initialized=!0,this._bindEvents();const se=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=ae(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(se,!0)||Q){const{hash:me,page:Ee,rotation:ke}=this._parseCurrentHash(!0);if(!me||de||Q){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:me,page:Ee,rotation:ke},!0);return}const oe=se.destination;this._updateInternalState(oe,se.uid,!0),oe.rotation!==void 0&&(this._initialRotation=oe.rotation),oe.dest?(this._initialBookmark=JSON.stringify(oe.dest),this._destination.page=null):oe.hash?this._initialBookmark=oe.hash:oe.page&&(this._initialBookmark=`page=${oe.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push(X){let{namedDest:L=null,explicitDest:Q,pageNumber:ce}=X;if(!this._initialized)return;if(L&&typeof L!="string"){console.error(`PDFHistory.push: "${L}" is not a valid namedDest parameter.`);return}else if(Array.isArray(Q)){if(!this._isValidPage(ce)&&(ce!==null||this._destination)){console.error(`PDFHistory.push: "${ce}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${Q}" is not a valid explicitDest parameter.`);return}const de=L||JSON.stringify(Q);if(!de)return;let se=!1;if(this._destination&&(he(this._destination.hash,de)||J(this._destination.dest,Q))){if(this._destination.page)return;se=!0}this._popStateInProgress&&!se||(this._pushOrReplaceState({dest:Q,hash:de,page:ce,rotation:this.linkService.rotation},se),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(X){var L;if(this._initialized){if(!this._isValidPage(X)){console.error(`PDFHistory.pushPage: "${X}" is not a valid page number.`);return}((L=this._destination)===null||L===void 0?void 0:L.page)!==X&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${X}`,page:X,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const X=window.history.state;this._isValidState(X)&&X.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const X=window.history.state;this._isValidState(X)&&X.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(X){const Q=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)||!this._destination,ce={fingerprint:this._fingerprint,uid:Q?this._uid:this._uid+1,destination:X};this._updateInternalState(X,ce.uid);let de;if(this._updateUrl&&X!==null&&X!==void 0&&X.hash){const se=document.location.href.split("#")[0];se.startsWith("file://")||(de=`${se}#${X.hash}`)}Q?window.history.replaceState(ce,"",de):window.history.pushState(ce,"",de)}_tryPushCurrentPosition(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._position)return;let L=this._position;if(X&&(L=Object.assign(Object.create(null),this._position),L.temporary=!0),!this._destination){this._pushOrReplaceState(L);return}if(this._destination.temporary){this._pushOrReplaceState(L,!0);return}if(this._destination.hash===L.hash||!this._destination.page&&this._numPositionUpdates<=z)return;let Q=!1;if(this._destination.page>=L.first&&this._destination.page<=L.page){if(this._destination.dest!==void 0||!this._destination.first)return;Q=!0}this._pushOrReplaceState(L,Q)}_isValidPage(X){return Number.isInteger(X)&&X>0&&X<=this.linkService.pagesCount}_isValidState(X){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!X)return!1;if(X.fingerprint!==this._fingerprint)if(L){if(typeof X.fingerprint!="string"||X.fingerprint.length!==this._fingerprint.length)return!1;const[Q]=performance.getEntriesByType("navigation");if((Q==null?void 0:Q.type)!=="reload")return!1}else return!1;return!(!Number.isInteger(X.uid)||X.uid<0||X.destination===null||typeof X.destination!="object")}_updateInternalState(X,L){let Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),Q&&X!==null&&X!==void 0&&X.temporary&&delete X.temporary,this._destination=X,this._uid=L,this._maxUid=Math.max(this._maxUid,L),this._numPositionUpdates=0}_parseCurrentHash(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=unescape(ae()).substring(1),Q=(0,R.parseQueryString)(L),ce=Q.get("nameddest")||"";let de=Q.get("page")|0;return(!this._isValidPage(de)||X&&ce.length>0)&&(de=null),{hash:L,page:de,rotation:this.linkService.rotation}}_updateViewarea(X){let{location:L}=X;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:L.pdfOpenParams.substring(1),page:this.linkService.page,first:L.pageNumber,rotation:L.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},e))}_popState(X){let{state:L}=X;const Q=ae(),ce=this._currentHash!==Q;if(this._currentHash=Q,!L){this._uid++;const{hash:se,page:oe,rotation:me}=this._parseCurrentHash();this._pushOrReplaceState({hash:se,page:oe,rotation:me},!0);return}if(!this._isValidState(L))return;this._popStateInProgress=!0,ce&&(this._blockHashChange++,(0,U.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:K}).then(()=>{this._blockHashChange--}));const de=L.destination;this._updateInternalState(de,L.uid,!0),(0,R.isValidRotation)(de.rotation)&&(this.linkService.rotation=de.rotation),de.dest?this.linkService.goToDestination(de.dest):de.hash?this.linkService.setHash(de.hash):de.page&&(this.linkService.page=de.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}D.PDFHistory=ie;function he(W,X){return typeof W!="string"||typeof X!="string"?!1:W===X||(0,R.parseQueryString)(W).get("nameddest")===X}function J(W,X){function L(Q,ce){if(typeof Q!=typeof ce||Array.isArray(Q)||Array.isArray(ce))return!1;if(Q!==null&&typeof Q=="object"&&ce!==null){if(Object.keys(Q).length!==Object.keys(ce).length)return!1;for(const de in Q)if(!L(Q[de],ce[de]))return!1;return!0}return Q===ce||Number.isNaN(Q)&&Number.isNaN(ce)}if(!(Array.isArray(W)&&Array.isArray(X))||W.length!==X.length)return!1;for(let Q=0,ce=W.length;Q<ce;Q++)if(!L(W[Q],X[Q]))return!1;return!0}},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.PDFScriptingManager=void 0;var R=B(7),U=B(3);class K{constructor(e){let{eventBus:ae,sandboxBundleSrc:ie=null,scriptingFactory:he=null,docPropertiesLookup:J=null}=e;this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=ae,this._sandboxBundleSrc=ie,this._scriptingFactory=he,this._docPropertiesLookup=J,this._scriptingFactory||window.addEventListener("updatefromsandbox",W=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:W.detail})})}setViewer(e){this._pdfViewer=e}async setDocument(e){var ae;if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e,!e)return;const[ie,he,J]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(!ie&&!J){await this._destroyScripting();return}if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(W){console.error(`PDFScriptingManager.setDocument: "${W==null?void 0:W.message}".`),await this._destroyScripting();return}this._internalEvents.set("updatefromsandbox",W=>{(W==null?void 0:W.source)===window&&this._updateFromSandbox(W.detail)}),this._internalEvents.set("dispatcheventinsandbox",W=>{var X;(X=this._scripting)===null||X===void 0||X.dispatchEventInSandbox(W.detail)}),this._internalEvents.set("pagechanging",W=>{let{pageNumber:X,previous:L}=W;X!==L&&(this._dispatchPageClose(L),this._dispatchPageOpen(X))}),this._internalEvents.set("pagerendered",W=>{let{pageNumber:X}=W;this._pageOpenPending.has(X)&&X===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(X)}),this._internalEvents.set("pagesdestroy",async W=>{var X,L;await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await((X=this._scripting)===null||X===void 0?void 0:X.dispatchEventInSandbox({id:"doc",name:"WillClose"})),(L=this._closeCapability)===null||L===void 0||L.resolve()}),this._domEvents.set("mousedown",W=>{this._mouseState.isDown=!0}),this._domEvents.set("mouseup",W=>{this._mouseState.isDown=!1});for(const[W,X]of this._internalEvents)this._eventBus._on(W,X);for(const[W,X]of this._domEvents)window.addEventListener(W,X,!0);try{const W=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:ie,calculationOrder:he,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...W,actions:J}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(W){console.error(`PDFScriptingManager.setDocument: "${W==null?void 0:W.message}".`),await this._destroyScripting();return}await((ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{e===this._pdfDocument&&(this._ready=!0)})}}async dispatchWillSave(e){var ae;return(ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){var ae;return(ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){var ae;return(ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){var ae;return(ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){var e;return((e=this._destroyCapability)===null||e===void 0?void 0:e.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,U.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,U.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,U.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,U.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){const ae=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:ie,siblings:he,command:J,value:W}=e;if(!ie){switch(J){case"clear":console.clear();break;case"error":console.error(W);break;case"layout":if(ae)return;const Q=(0,R.apiPageLayoutToViewerModes)(W);this._pdfViewer.spreadMode=Q.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=W+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(W);break;case"zoom":if(ae)return;this._pdfViewer.currentScaleValue=W;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(ae)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(ae)return;this._pdfViewer.decreaseScale();break}return}if(ae&&e.focus)return;delete e.id,delete e.siblings;const X=he?[ie,...he]:[ie];for(const Q of X){const ce=document.querySelector(`[data-element-id="${Q}"]`);if(ce)ce.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e}));else{var L;(L=this._pdfDocument)===null||L===void 0||L.annotationStorage.setValue(Q,e)}}}async _dispatchPageOpen(e){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const ie=this._pdfDocument,he=this._visitedPages;if(ae&&(this._closeCapability=(0,U.createPromiseCapability)()),!this._closeCapability)return;const J=this._pdfViewer.getPageView(e-1);if((J==null?void 0:J.renderingState)!==R.RenderingStates.FINISHED){this._pageOpenPending.add(e);return}this._pageOpenPending.delete(e);const W=(async()=>{var X,L;const Q=await(he.has(e)?null:(X=J.pdfPage)===null||X===void 0?void 0:X.getJSActions());ie===this._pdfDocument&&await((L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:Q}))})();he.set(e,W)}async _dispatchPageClose(e){var ae;const ie=this._pdfDocument,he=this._visitedPages;if(!this._closeCapability||this._pageOpenPending.has(e))return;const J=he.get(e);J&&(he.set(e,null),await J,ie===this._pdfDocument&&await((ae=this._scripting)===null||ae===void 0?void 0:ae.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:e}=B(26);return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,U.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:e}=B(26);return new e(this._sandboxBundleSrc)}async _destroyScripting(){var e;if(!this._scripting){var ae;this._pdfDocument=null,(ae=this._destroyCapability)===null||ae===void 0||ae.resolve();return}this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(ie=>{setTimeout(ie,1e3)})]).catch(ie=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch{}for(const[ie,he]of this._internalEvents)this._eventBus._off(ie,he);this._internalEvents.clear();for(const[ie,he]of this._domEvents)window.removeEventListener(ie,he,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,(e=this._destroyCapability)===null||e===void 0||e.resolve()}}D.PDFScriptingManager=K},($,D,B)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.GenericScripting=void 0,D.docPropertiesLookup=U;var R=B(3);async function U(z){const e="",ae=e.split("#")[0];let{info:ie,metadata:he,contentDispositionFilename:J,contentLength:W}=await z.getMetadata();if(!W){const{length:X}=await z.getDownloadInfo();W=X}return{...ie,baseURL:ae,filesize:W,filename:J||(0,R.getPdfFilenameFromUrl)(e),metadata:he==null?void 0:he.getRaw(),authors:he==null?void 0:he.get("dc:creator"),numPages:z.numPages,URL:e}}class K{constructor(e){this._ready=(0,R.loadScript)(e,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const ae=await this._ready;setTimeout(()=>ae.dispatchEvent(e),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}D.GenericScripting=K}],G={};function V($){var D=G[$];if(D!==void 0)return D.exports;var B=G[$]={exports:{}};return M[$](B,B.exports,V),B.exports}var q={};return(()=>{var $=q;Object.defineProperty($,"__esModule",{value:!0}),Object.defineProperty($,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return K.AnnotationLayerBuilder}}),Object.defineProperty($,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return D.DefaultAnnotationLayerFactory}}),Object.defineProperty($,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return D.DefaultStructTreeLayerFactory}}),Object.defineProperty($,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return D.DefaultTextLayerFactory}}),Object.defineProperty($,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return D.DefaultXfaLayerFactory}}),Object.defineProperty($,"DownloadManager",{enumerable:!0,get:function(){return z.DownloadManager}}),Object.defineProperty($,"EventBus",{enumerable:!0,get:function(){return e.EventBus}}),Object.defineProperty($,"GenericL10n",{enumerable:!0,get:function(){return ae.GenericL10n}}),Object.defineProperty($,"LinkTarget",{enumerable:!0,get:function(){return B.LinkTarget}}),Object.defineProperty($,"NullL10n",{enumerable:!0,get:function(){return ie.NullL10n}}),Object.defineProperty($,"PDFFindController",{enumerable:!0,get:function(){return he.PDFFindController}}),Object.defineProperty($,"PDFHistory",{enumerable:!0,get:function(){return J.PDFHistory}}),Object.defineProperty($,"PDFLinkService",{enumerable:!0,get:function(){return B.PDFLinkService}}),Object.defineProperty($,"PDFPageView",{enumerable:!0,get:function(){return W.PDFPageView}}),Object.defineProperty($,"PDFScriptingManager",{enumerable:!0,get:function(){return X.PDFScriptingManager}}),Object.defineProperty($,"PDFSinglePageViewer",{enumerable:!0,get:function(){return U.PDFSinglePageViewer}}),Object.defineProperty($,"PDFViewer",{enumerable:!0,get:function(){return U.PDFViewer}}),Object.defineProperty($,"ProgressBar",{enumerable:!0,get:function(){return R.ProgressBar}}),Object.defineProperty($,"RenderingStates",{enumerable:!0,get:function(){return R.RenderingStates}}),Object.defineProperty($,"ScrollMode",{enumerable:!0,get:function(){return R.ScrollMode}}),Object.defineProperty($,"SimpleLinkService",{enumerable:!0,get:function(){return B.SimpleLinkService}}),Object.defineProperty($,"SpreadMode",{enumerable:!0,get:function(){return R.SpreadMode}}),Object.defineProperty($,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return L.StructTreeLayerBuilder}}),Object.defineProperty($,"TextLayerBuilder",{enumerable:!0,get:function(){return Q.TextLayerBuilder}}),Object.defineProperty($,"XfaLayerBuilder",{enumerable:!0,get:function(){return ce.XfaLayerBuilder}}),Object.defineProperty($,"parseQueryString",{enumerable:!0,get:function(){return R.parseQueryString}});var D=V(1),B=V(6),R=V(7),U=V(11),K=V(5),z=V(18),e=V(19),ae=V(20),ie=V(4),he=V(22),J=V(24),W=V(13),X=V(25),L=V(8),Q=V(9),ce=V(10)})(),q})())})(pdf_viewer$1);var pdf_viewerExports=pdf_viewer$1.exports;const pdf_viewer="";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function createCommonjsModule(k,m,M){return M={path:m,exports:{},require:function(G,V){return commonjsRequire(G,V??M.path)}},k(M,M.exports),M.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var check=function(k){return k&&k.Math==Math&&k},global_1=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails=function(k){try{return!!k()}catch{return!0}},descriptors=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),f$4=NASHORN_BUG?function k(m){var M=getOwnPropertyDescriptor$2(this,m);return!!M&&M.enumerable}:$propertyIsEnumerable,objectPropertyIsEnumerable={f:f$4},createPropertyDescriptor=function(k,m){return{enumerable:!(k&1),configurable:!(k&2),writable:!(k&4),value:m}},toString={}.toString,classofRaw=function(k){return toString.call(k).slice(8,-1)},split="".split,indexedObject=fails(function(){return!Object("z").propertyIsEnumerable(0)})?function(k){return classofRaw(k)=="String"?split.call(k,""):Object(k)}:Object,requireObjectCoercible=function(k){if(k==null)throw TypeError("Can't call method on "+k);return k},toIndexedObject=function(k){return indexedObject(requireObjectCoercible(k))},isObject=function(k){return typeof k=="object"?k!==null:typeof k=="function"},aFunction$1=function(k){return typeof k=="function"?k:void 0},getBuiltIn=function(k,m){return arguments.length<2?aFunction$1(global_1[k]):global_1[k]&&global_1[k][m]},engineUserAgent=getBuiltIn("navigator","userAgent")||"",process$1=global_1.process,Deno$1=global_1.Deno,versions=process$1&&process$1.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8?(match=v8.split("."),version=match[0]<4?1:match[0]+match[1]):engineUserAgent&&(match=engineUserAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=engineUserAgent.match(/Chrome\/(\d+)/),match&&(version=match[1])));var engineV8Version=version&&+version,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails(function(){var k=Symbol();return!String(k)||!(Object(k)instanceof Symbol)||!Symbol.sham&&engineV8Version&&engineV8Version<41}),useSymbolAsUid=nativeSymbol&&!Symbol.sham&&typeof Symbol.iterator=="symbol",isSymbol=useSymbolAsUid?function(k){return typeof k=="symbol"}:function(k){var m=getBuiltIn("Symbol");return typeof m=="function"&&Object(k)instanceof m},ordinaryToPrimitive=function(k,m){var M,G;if(m==="string"&&typeof(M=k.toString)=="function"&&!isObject(G=M.call(k))||typeof(M=k.valueOf)=="function"&&!isObject(G=M.call(k))||m!=="string"&&typeof(M=k.toString)=="function"&&!isObject(G=M.call(k)))return G;throw TypeError("Can't convert object to primitive value")},setGlobal=function(k,m){try{Object.defineProperty(global_1,k,{value:m,configurable:!0,writable:!0})}catch{global_1[k]=m}return m},SHARED="__core-js_shared__",store$1=global_1[SHARED]||setGlobal(SHARED,{}),sharedStore=store$1,shared=createCommonjsModule(function(k){(k.exports=function(m,M){return sharedStore[m]||(sharedStore[m]=M!==void 0?M:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),toObject=function(k){return Object(requireObjectCoercible(k))},hasOwnProperty={}.hasOwnProperty,has$1=Object.hasOwn||function k(m,M){return hasOwnProperty.call(toObject(m),M)},id=0,postfix=Math.random(),uid=function(k){return"Symbol("+String(k===void 0?"":k)+")_"+(++id+postfix).toString(36)},WellKnownSymbolsStore=shared("wks"),Symbol$1=global_1.Symbol,createWellKnownSymbol=useSymbolAsUid?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid,wellKnownSymbol=function(k){return(!has$1(WellKnownSymbolsStore,k)||!(nativeSymbol||typeof WellKnownSymbolsStore[k]=="string"))&&(nativeSymbol&&has$1(Symbol$1,k)?WellKnownSymbolsStore[k]=Symbol$1[k]:WellKnownSymbolsStore[k]=createWellKnownSymbol("Symbol."+k)),WellKnownSymbolsStore[k]},TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),toPrimitive=function(k,m){if(!isObject(k)||isSymbol(k))return k;var M=k[TO_PRIMITIVE],G;if(M!==void 0){if(m===void 0&&(m="default"),G=M.call(k,m),!isObject(G)||isSymbol(G))return G;throw TypeError("Can't convert object to primitive value")}return m===void 0&&(m="number"),ordinaryToPrimitive(k,m)},toPropertyKey=function(k){var m=toPrimitive(k,"string");return isSymbol(m)?m:String(m)},document$1=global_1.document,EXISTS=isObject(document$1)&&isObject(document$1.createElement),documentCreateElement=function(k){return EXISTS?document$1.createElement(k):{}},ie8DomDefine=!descriptors&&!fails(function(){return Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a!=7}),$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,f$3=descriptors?$getOwnPropertyDescriptor:function k(m,M){if(m=toIndexedObject(m),M=toPropertyKey(M),ie8DomDefine)try{return $getOwnPropertyDescriptor(m,M)}catch{}if(has$1(m,M))return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(m,M),m[M])},objectGetOwnPropertyDescriptor={f:f$3},anObject=function(k){if(!isObject(k))throw TypeError(String(k)+" is not an object");return k},$defineProperty=Object.defineProperty,f$2=descriptors?$defineProperty:function k(m,M,G){if(anObject(m),M=toPropertyKey(M),anObject(G),ie8DomDefine)try{return $defineProperty(m,M,G)}catch{}if("get"in G||"set"in G)throw TypeError("Accessors not supported");return"value"in G&&(m[M]=G.value),m},objectDefineProperty={f:f$2},createNonEnumerableProperty=descriptors?function(k,m,M){return objectDefineProperty.f(k,m,createPropertyDescriptor(1,M))}:function(k,m,M){return k[m]=M,k},functionToString=Function.toString;typeof sharedStore.inspectSource!="function"&&(sharedStore.inspectSource=function(k){return functionToString.call(k)});var inspectSource=sharedStore.inspectSource,WeakMap$1=global_1.WeakMap,nativeWeakMap=typeof WeakMap$1=="function"&&/native code/.test(inspectSource(WeakMap$1)),keys$1=shared("keys"),sharedKey=function(k){return keys$1[k]||(keys$1[k]=uid(k))},hiddenKeys$1={},OBJECT_ALREADY_INITIALIZED="Object already initialized",WeakMap$2=global_1.WeakMap,set,get,has,enforce=function(k){return has(k)?get(k):set(k,{})},getterFor=function(k){return function(m){var M;if(!isObject(m)||(M=get(m)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return M}};if(nativeWeakMap||sharedStore.state){var store=sharedStore.state||(sharedStore.state=new WeakMap$2),wmget=store.get,wmhas=store.has,wmset=store.set;set=function(k,m){if(wmhas.call(store,k))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return m.facade=k,wmset.call(store,k,m),m},get=function(k){return wmget.call(store,k)||{}},has=function(k){return wmhas.call(store,k)}}else{var STATE=sharedKey("state");hiddenKeys$1[STATE]=!0,set=function(k,m){if(has$1(k,STATE))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return m.facade=k,createNonEnumerableProperty(k,STATE,m),m},get=function(k){return has$1(k,STATE)?k[STATE]:{}},has=function(k){return has$1(k,STATE)}}var internalState={set,get,has,enforce,getterFor},redefine=createCommonjsModule(function(k){var m=internalState.get,M=internalState.enforce,G=String(String).split("String");(k.exports=function(V,q,$,D){var B=D?!!D.unsafe:!1,R=D?!!D.enumerable:!1,U=D?!!D.noTargetGet:!1,K;if(typeof $=="function"&&(typeof q=="string"&&!has$1($,"name")&&createNonEnumerableProperty($,"name",q),K=M($),K.source||(K.source=G.join(typeof q=="string"?q:""))),V===global_1){R?V[q]=$:setGlobal(q,$);return}else B?!U&&V[q]&&(R=!0):delete V[q];R?V[q]=$:createNonEnumerableProperty(V,q,$)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||inspectSource(this)})}),ceil=Math.ceil,floor=Math.floor,toInteger=function(k){return isNaN(k=+k)?0:(k>0?floor:ceil)(k)},min$1=Math.min,toLength=function(k){return k>0?min$1(toInteger(k),9007199254740991):0},max=Math.max,min=Math.min,toAbsoluteIndex=function(k,m){var M=toInteger(k);return M<0?max(M+m,0):min(M,m)},createMethod$3=function(k){return function(m,M,G){var V=toIndexedObject(m),q=toLength(V.length),$=toAbsoluteIndex(G,q),D;if(k&&M!=M){for(;q>$;)if(D=V[$++],D!=D)return!0}else for(;q>$;$++)if((k||$ in V)&&V[$]===M)return k||$||0;return!k&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},indexOf=arrayIncludes.indexOf,objectKeysInternal=function(k,m){var M=toIndexedObject(k),G=0,V=[],q;for(q in M)!has$1(hiddenKeys$1,q)&&has$1(M,q)&&V.push(q);for(;m.length>G;)has$1(M,q=m[G++])&&(~indexOf(V,q)||V.push(q));return V},enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hiddenKeys=enumBugKeys.concat("length","prototype"),f$1=Object.getOwnPropertyNames||function k(m){return objectKeysInternal(m,hiddenKeys)},objectGetOwnPropertyNames={f:f$1},f=Object.getOwnPropertySymbols,objectGetOwnPropertySymbols={f},ownKeys=getBuiltIn("Reflect","ownKeys")||function k(m){var M=objectGetOwnPropertyNames.f(anObject(m)),G=objectGetOwnPropertySymbols.f;return G?M.concat(G(m)):M},copyConstructorProperties=function(k,m){for(var M=ownKeys(m),G=objectDefineProperty.f,V=objectGetOwnPropertyDescriptor.f,q=0;q<M.length;q++){var $=M[q];has$1(k,$)||G(k,$,V(m,$))}},replacement=/#|\.prototype\./,isForced=function(k,m){var M=data[normalize(k)];return M==POLYFILL?!0:M==NATIVE?!1:typeof m=="function"?fails(m):!!m},normalize=isForced.normalize=function(k){return String(k).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P",isForced_1=isForced,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,_export=function(k,m){var M=k.target,G=k.global,V=k.stat,q,$,D,B,R,U;if(G?$=global_1:V?$=global_1[M]||setGlobal(M,{}):$=(global_1[M]||{}).prototype,$)for(D in m){if(R=m[D],k.noTargetGet?(U=getOwnPropertyDescriptor$1($,D),B=U&&U.value):B=$[D],q=isForced_1(G?D:M+(V?".":"#")+D,k.forced),!q&&B!==void 0){if(typeof R==typeof B)continue;copyConstructorProperties(R,B)}(k.sham||B&&B.sham)&&createNonEnumerableProperty(R,"sham",!0),redefine($,D,R,k)}},aFunction=function(k){if(typeof k!="function")throw TypeError(String(k)+" is not a function");return k},functionBindContext=function(k,m,M){if(aFunction(k),m===void 0)return k;switch(M){case 0:return function(){return k.call(m)};case 1:return function(G){return k.call(m,G)};case 2:return function(G,V){return k.call(m,G,V)};case 3:return function(G,V,q){return k.call(m,G,V,q)}}return function(){return k.apply(m,arguments)}},isArray=Array.isArray||function k(m){return classofRaw(m)=="Array"},SPECIES=wellKnownSymbol("species"),arraySpeciesConstructor=function(k){var m;return isArray(k)&&(m=k.constructor,typeof m=="function"&&(m===Array||isArray(m.prototype))?m=void 0:isObject(m)&&(m=m[SPECIES],m===null&&(m=void 0))),m===void 0?Array:m},arraySpeciesCreate=function(k,m){return new(arraySpeciesConstructor(k))(m===0?0:m)},push=[].push,createMethod$2=function(k){var m=k==1,M=k==2,G=k==3,V=k==4,q=k==6,$=k==7,D=k==5||q;return function(B,R,U,K){for(var z=toObject(B),e=indexedObject(z),ae=functionBindContext(R,U,3),ie=toLength(e.length),he=0,J=K||arraySpeciesCreate,W=m?J(B,ie):M||$?J(B,0):void 0,X,L;ie>he;he++)if((D||he in e)&&(X=e[he],L=ae(X,he,z),k))if(m)W[he]=L;else if(L)switch(k){case 3:return!0;case 5:return X;case 6:return he;case 2:push.call(W,X)}else switch(k){case 4:return!1;case 7:push.call(W,X)}return q?-1:G||V?V:W}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},arrayMethodIsStrict=function(k,m){var M=[][k];return!!M&&fails(function(){M.call(null,m||function(){throw 1},1)})},$forEach=arrayIteration.forEach,STRICT_METHOD=arrayMethodIsStrict("forEach"),arrayForEach=STRICT_METHOD?[].forEach:function k(m){return $forEach(this,m,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var domIterables={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},classList=documentCreateElement("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype,handlePrototype=function(k){if(k&&k.forEach!==arrayForEach)try{createNonEnumerableProperty(k,"forEach",arrayForEach)}catch{k.forEach=arrayForEach}};for(var COLLECTION_NAME in domIterables)handlePrototype(global_1[COLLECTION_NAME]&&global_1[COLLECTION_NAME].prototype);handlePrototype(domTokenListPrototype);var objectKeys=Object.keys||function k(m){return objectKeysInternal(m,enumBugKeys)},propertyIsEnumerable=objectPropertyIsEnumerable.f,createMethod$1=function(k){return function(m){for(var M=toIndexedObject(m),G=objectKeys(M),V=G.length,q=0,$=[],D;V>q;)D=G[q++],(!descriptors||propertyIsEnumerable.call(M,D))&&$.push(k?[D,M[D]]:M[D]);return $}},objectToArray={entries:createMethod$1(!0),values:createMethod$1(!1)},$entries=objectToArray.entries;_export({target:"Object",stat:!0},{entries:function k(m){return $entries(m)}});var aPossiblePrototype=function(k){if(!isObject(k)&&k!==null)throw TypeError("Can't set "+String(k)+" as a prototype");return k},objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var k=!1,m={},M;try{M=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,M.call(m,[]),k=m instanceof Array}catch{}return function(V,q){return anObject(V),aPossiblePrototype(q),k?M.call(V,q):V.__proto__=q,V}}():void 0),inheritIfRequired=function(k,m,M){var G,V;return objectSetPrototypeOf&&typeof(G=m.constructor)=="function"&&G!==M&&isObject(V=G.prototype)&&V!==M.prototype&&objectSetPrototypeOf(k,V),k},objectDefineProperties=descriptors?Object.defineProperties:function k(m,M){anObject(m);for(var G=objectKeys(M),V=G.length,q=0,$;V>q;)objectDefineProperty.f(m,$=G[q++],M[$]);return m},html=getBuiltIn("document","documentElement"),GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(k){return LT+SCRIPT+GT+k+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(k){k.write(scriptTag("")),k.close();var m=k.parentWindow.Object;return k=null,m},NullProtoObjectViaIFrame=function(){var k=documentCreateElement("iframe"),m="java"+SCRIPT+":",M;return k.style.display="none",html.appendChild(k),k.src=String(m),M=k.contentWindow.document,M.open(),M.write(scriptTag("document.F=Object")),M.close(),M.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var k=enumBugKeys.length;k--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[k]];return NullProtoObject()};hiddenKeys$1[IE_PROTO]=!0;var objectCreate=Object.create||function k(m,M){var G;return m!==null?(EmptyConstructor[PROTOTYPE]=anObject(m),G=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,G[IE_PROTO]=m):G=NullProtoObject(),M===void 0?G:objectDefineProperties(G,M)},toString_1=function(k){if(isSymbol(k))throw TypeError("Cannot convert a Symbol value to a string");return String(k)},whitespaces=`
\v\f\r    \u2028\u2029\uFEFF`,whitespace="["+whitespaces+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(k){return function(m){var M=toString_1(requireObjectCoercible(m));return k&1&&(M=M.replace(ltrim,"")),k&2&&(M=M.replace(rtrim,"")),M}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},getOwnPropertyNames=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,defineProperty=objectDefineProperty.f,trim$1=stringTrim.trim,NUMBER="Number",NativeNumber=global_1[NUMBER],NumberPrototype=NativeNumber.prototype,BROKEN_CLASSOF=classofRaw(objectCreate(NumberPrototype))==NUMBER,toNumber=function(k){if(isSymbol(k))throw TypeError("Cannot convert a Symbol value to a number");var m=toPrimitive(k,"number"),M,G,V,q,$,D,B,R;if(typeof m=="string"&&m.length>2){if(m=trim$1(m),M=m.charCodeAt(0),M===43||M===45){if(G=m.charCodeAt(2),G===88||G===120)return NaN}else if(M===48){switch(m.charCodeAt(1)){case 66:case 98:V=2,q=49;break;case 79:case 111:V=8,q=55;break;default:return+m}for($=m.slice(2),D=$.length,B=0;B<D;B++)if(R=$.charCodeAt(B),R<48||R>q)return NaN;return parseInt($,V)}}return+m};if(isForced_1(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var NumberWrapper=function(m){var M=arguments.length<1?0:m,G=this;return G instanceof NumberWrapper&&(BROKEN_CLASSOF?fails(function(){NumberPrototype.valueOf.call(G)}):classofRaw(G)!=NUMBER)?inheritIfRequired(new NativeNumber(toNumber(M)),G,NumberWrapper):toNumber(M)},keys=descriptors?getOwnPropertyNames(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),j=0,key;keys.length>j;j++)has$1(NativeNumber,key=keys[j])&&!has$1(NumberWrapper,key)&&defineProperty(NumberWrapper,key,getOwnPropertyDescriptor(NativeNumber,key));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,redefine(global_1,NUMBER,NumberWrapper)}var trim=stringTrim.trim,$parseFloat=global_1.parseFloat,FORCED=1/$parseFloat(whitespaces+"-0")!==-1/0,numberParseFloat=FORCED?function k(m){var M=trim(toString_1(m)),G=$parseFloat(M);return G===0&&M.charAt(0)=="-"?-0:G}:$parseFloat;_export({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var slice=[].slice,MSIE=/MSIE .\./.test(engineUserAgent),wrap=function(k){return function(m,M){var G=arguments.length>2,V=G?slice.call(arguments,2):void 0;return k(G?function(){(typeof m=="function"?m:Function(m)).apply(this,V)}:m,M)}};_export({global:!0,bind:!0,forced:MSIE},{setTimeout:wrap(global_1.setTimeout),setInterval:wrap(global_1.setInterval)});function __awaiter(k,m,M,G){function V(q){return q instanceof M?q:new M(function($){$(q)})}return new(M||(M=Promise))(function(q,$){function D(U){try{R(G.next(U))}catch(K){$(K)}}function B(U){try{R(G.throw(U))}catch(K){$(K)}}function R(U){U.done?q(U.value):V(U.value).then(D,B)}R((G=G.apply(k,m||[])).next())})}function __generator(k,m){var M={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},G,V,q,$;return $={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function D(R){return function(U){return B([R,U])}}function B(R){if(G)throw new TypeError("Generator is already executing.");for(;M;)try{if(G=1,V&&(q=R[0]&2?V.return:R[0]?V.throw||((q=V.return)&&q.call(V),0):V.next)&&!(q=q.call(V,R[1])).done)return q;switch(V=0,q&&(R=[R[0]&2,q.value]),R[0]){case 0:case 1:q=R;break;case 4:return M.label++,{value:R[1],done:!1};case 5:M.label++,V=R[1],R=[0];continue;case 7:R=M.ops.pop(),M.trys.pop();continue;default:if(q=M.trys,!(q=q.length>0&&q[q.length-1])&&(R[0]===6||R[0]===2)){M=0;continue}if(R[0]===3&&(!q||R[1]>q[0]&&R[1]<q[3])){M.label=R[1];break}if(R[0]===6&&M.label<q[1]){M.label=q[1],q=R;break}if(q&&M.label<q[2]){M.label=q[2],M.ops.push(R);break}q[2]&&M.ops.pop(),M.trys.pop();continue}R=m.call(k,M)}catch(U){R=[6,U],V=0}finally{G=q=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}}var createLoadingTask=function k(m){pdfExports.GlobalWorkerOptions.workerSrc=pdf_worker_entry;var M=pdfExports.getDocument(m);return M},script=defineComponent({name:"vue-pdf",props:{src:{type:[String,Object],required:!0},page:{type:Number,default:1},scale:{type:Number,default:null},enableTextSelection:{type:Boolean,default:!0},enableAnnotations:{type:Boolean,default:!0}},setup:function k(m,M){var G=this,V=ref(!1),q=ref(null),$=ref(null),D=ref(null),B=ref(0),R=ref(null),U=computed(function(){return m.page||1}),K=function(){V.value=!0,pdfExports.GlobalWorkerOptions.workerSrc=pdf_worker_entry;var he=createLoadingTask(m.src);he.promise.then(function(J){M.emit("pdfLoaded",J),D.value=J,B.value=J.numPages,M.emit("totalPages",B.value),U.value<=B.value&&J.getPage(U.value).then(function(W){return z(W)})})},z=function(he){return __awaiter(G,void 0,void 0,function(){var J,W,X,L,Q,ce,de,se,oe,me=this;return __generator(this,function(Ee){switch(Ee.label){case 0:return V.value=!0,J=q.value,W=$.value,X=document.createElement("div"),X.classList.add("vue-pdf__wrapper"),X.id="vue-pdf-page-"+m.page,L=document.createElement("canvas"),X.appendChild(L),Q=document.createElement("div"),m.enableAnnotations&&(Q.classList.add("vue-pdf__wrapper-annotation-layer"),X.appendChild(Q)),ce=document.createElement("div"),m.enableTextSelection&&(ce.classList.add("textLayer","vue-pdf__wrapper-text-layer"),X.appendChild(ce)),J==null||J.appendChild(X),de=he.getViewport({scale:1}),se=L.getContext("2d"),[4,e(J,de,he,L,se,ce,Q)];case 1:return Ee.sent(),m.scale?(W.style.display="inline-block",J.style.display="inline-block"):(oe=ae(function(){return __awaiter(me,void 0,void 0,function(){return __generator(this,function(ke){switch(ke.label){case 0:return[4,e(J,de,he,L,se,ce,Q)];case 1:return[2,ke.sent()]}})})}),window.addEventListener("resize",oe)),[2]}})})},e=function(he,J,W,X,L,Q,ce){return __awaiter(G,void 0,void 0,function(){var de,se,oe,me,Ee,ke,xe;return __generator(this,function(fe){switch(fe.label){case 0:return Q.innerHTML="",ce.innerHTML="",de=window.getComputedStyle(he),se=parseFloat(de.width),oe=m.scale?m.scale:se/J.width,me=W.getViewport({scale:oe}),Ee=window.devicePixelRatio||1,ke=L.webkitBackingStorePixelRatio||L.mozBackingStorePixelRatio||L.msBackingStorePixelRatio||L.oBackingStorePixelRatio||L.backingStorePixelRatio||1,xe=Ee/ke,Ee!==ke?(X.width=m.scale?me.width*xe:se*xe,X.height=me.height*xe,X.style.width=m.scale?"":"100%",X.style.height=me.height+"px"):(X.width=m.scale?me.width:se,X.height=me.height,X.style.width="",X.style.height=""),[4,L.scale(xe,xe)];case 1:return fe.sent(),L&&W.render({canvasContext:L,viewport:me}).promise.then(function(){m.enableTextSelection&&W.getTextContent().then(function(ve){R.value||(R.value=new pdf_viewerExports.EventBus);var ye=new pdf_viewerExports.TextLayerBuilder({textLayerDiv:Q,pageIndex:W._pageIndex,eventBus:R.value,viewport:me,enhanceTextSelection:!0});ye.setTextContent(ve),M.emit("textContent",ve),ye.render()}),m.enableAnnotations&&W.getAnnotations().then(function(ve){ce.style.cssText="left: 0; top: 0; height: "+me.height+"px; width: "+(m.scale?me.width:se)+"px;",pdfExports.AnnotationLayer.render({viewport:me.clone({dontFlip:!0}),div:ce,annotations:ve,page:W,linkService:"",downloadManager:"",renderInteractiveForms:!1})}),V.value=!1}),[2]}})})},ae=function(he,J){J===void 0&&(J=300);var W;return function(){for(var X=[],L=0;L<arguments.length;L++)X[L]=arguments[L];clearTimeout(W),W=setTimeout(function(){he.apply(G,X)},J)}};return onMounted(function(){K()}),{props:m,pdfWrapperRef:q,parentWrapperRef:$}}}),_hoisted_1$8={class:"vue-pdf-main",ref:"parentWrapperRef"},_hoisted_2$7={class:"vue-pdf",ref:"pdfWrapperRef"};function render$2(k,m,M,G,V,q){return openBlock(),createElementBlock("div",_hoisted_1$8,[createBaseVNode("div",_hoisted_2$7,null,512)],512)}function styleInject(k,m){m===void 0&&(m={});var M=m.insertAt;if(!(!k||typeof document>"u")){var G=document.head||document.getElementsByTagName("head")[0],V=document.createElement("style");V.type="text/css",M==="top"&&G.firstChild?G.insertBefore(V,G.firstChild):G.appendChild(V),V.styleSheet?V.styleSheet.cssText=k:V.appendChild(document.createTextNode(k))}}var css_248z=".vue-pdf__wrapper{position:relative}.vue-pdf__wrapper-text-layer br{display:none}.vue-pdf__wrapper-annotation-layer{position:absolute}.vue-pdf__wrapper-annotation-layer .linkAnnotation{position:absolute;z-index:1}.vue-pdf__wrapper-annotation-layer .linkAnnotation a{width:100%;height:100%;display:inline-block}";styleInject(css_248z);script.render=render$2;const _hoisted_1$7={class:"flex justify-between items-end w-full bg-transparent"},_hoisted_2$6={key:0,class:"flex flex-nowrap overflow-x-auto scrollbar-hide ml-2"},_hoisted_3$6=["onClick"],_hoisted_4$5=createBaseVNode("div",{class:"flex-1 bg-transparent"},null,-1),_hoisted_5$5={class:"menu-container bg-transparent",style:{display:"flex","justify-content":"flex-end"}},_hoisted_6$5={class:"py-1"},_hoisted_7$5=["onClick"],_hoisted_8$4={href:"#",class:"flex w-full items-center px-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_9$4={class:"py-1"},_hoisted_10$3=["onClick"],_hoisted_11$3={href:"#",class:"flex w-full items-center px-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_12$2={class:"menu-container bg-transparent",style:{display:"flex","justify-content":"flex-end"}},_hoisted_13$2={class:"py-1"},_hoisted_14$2=["onClick"],_hoisted_15$2={href:"#",class:"flex w-full items-center pl-0 pr-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_16$2={class:"flex flex-1 justify-center"},_hoisted_17$2={class:"w-28"},_hoisted_18$2={class:"py-1"},_hoisted_19$1=["onClick"],_hoisted_20$1={href:"#",class:"flex w-full items-center pl-0 pr-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_21={class:"flex flex-1 justify-center"},_hoisted_22={class:"w-28"},_hoisted_23={key:0,class:"flex items-center py-2 px-2 rounded-lg w-full cursor-pointer transition duration-150 ease-in-out"},_hoisted_24=createBaseVNode("p",{class:"text-sm text-gray-500 dark:text-gray-400 flex-grow truncate"}," 使用 @ 搜索应用程序 ",-1),_hoisted_25=[_hoisted_24],_hoisted_26=["onClick"],_hoisted_27={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_28=["src"],_hoisted_29={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_30={class:"text-md font-bold text-gray-600 dark:text-primary-500 mr-3 flex-shrink-0"},_hoisted_31={class:"text-sm text-gray-400 dark:text-gray-400 flex-grow truncate"},_hoisted_32={key:0,class:"self-start w-full bg-opacity dark:bg-gray-700 rounded-lg"},_hoisted_33=["src"],_hoisted_34=["onClick"],_hoisted_35={key:1,class:"relative group w-full"},_hoisted_36={class:"px-3 flex items-center justify-start bg-opacity rounded-t-lg h-12 text-gray-700 dark:text-gray-400"},_hoisted_37={class:"text-gray-500"},_hoisted_38={class:"px-2 flex items-center justify-start rounded-t-lg h-12 text-gray-700 bg-opacity dark:bg-gray-700 dark:text-gray-400 w-full"},_hoisted_39={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_40=["src"],_hoisted_41={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_42={class:"text-md font-bold text-gray-700 dark:text-gray-400 mr-3 flex-shrink-0 flex justify-start"},_hoisted_43={class:"text-sm text-gray-400 dark:text-gray-400 truncate pr-10"},_hoisted_44={class:"px-2 flex items-center justify-start bg-opacity rounded-t-lg h-12 text-gray-700 dark:text-gray-400 w-full dark:bg-gray-700"},_hoisted_45={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_46=["src"],_hoisted_47={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_48={class:"text-md font-bold text-gray-600 dark:text-gray-400 mr-3 flex-shrink-0 flex justify-start"},_hoisted_49={class:"text-sm text-gray-400 dark:text-gray-400 truncate pr-10"},_hoisted_50={class:"flex justify-between flex-grow w-full py-2 px-2"},_hoisted_51={class:"flex justify-start items-end"},_hoisted_52={class:"flex flex-grow items-center justify-center"},_hoisted_53=["placeholder"],_hoisted_54={class:"flex justify-end items-end"},_hoisted_55=["disabled"],_hoisted_56={key:0,class:"w-full flex justify-center items-center text-sm text-gray-500"},_hoisted_57={class:"transition-all text-gray-500 hover:text-gray-600 dark:hover:text-gray-400 ml-2",href:"https://beian.miit.gov.cn",target:"_blank"},_sfc_main$7=defineComponent({__name:"index",emits:["pause-request"],setup(k,{emit:m}){const M=inject("onConversation"),G=useRoute(),V=useGlobalStoreWithOut(),q=useAuthStore(),$=useChatStore(),D=m,B=ref([{id:"square",title:t$3("chat.square1"),values:"1:1",aspectRatio:"1 / 1"},{id:"illustration",title:t$3("chat.illustration"),values:"4:3",aspectRatio:"4 / 3"},{id:"wallpaper",title:t$3("chat.wallpaper"),values:"16:9",aspectRatio:"16 / 9"},{id:"media",title:t$3("chat.media"),values:"3:4",aspectRatio:"3 / 4"},{id:"poster",title:t$3("chat.poster"),values:"9:16",aspectRatio:"9 / 16"}]),R=ref([{title:"6.1",values:"--v 6.1"},{title:"5.2",values:"--v 5.2"},{title:"卡通",values:"--niji 6"}]),U=ref([{title:t$3("chat.imageToImage"),values:"imageToImage"},{title:t$3("chat.faceConsistency"),values:"faceConsistency"},{title:t$3("chat.styleConsistency"),values:"styleConsistency"},{title:"以图生文",values:"imageToText"}]),K=ref([{id:"default",title:t$3("chat.square"),values:"1024x1024",aspectRatio:"1024 / 1024"},{id:"landscape",title:t$3("chat.landscape"),values:"1792x1024",aspectRatio:"1792 / 1024"},{id:"portrait",title:t$3("chat.portrait"),values:"1024x1792",aspectRatio:"1024 / 1792"}]),z=ref(!1),e=ref(!0),ae=ref(),ie=ref(!1),he=ref([]),J=computed(()=>G.path==="/pdf"),W=ref(null),X=ref({size:"",style:""}),L=ref(),Q=ref("--v 6.1"),ce=ref([]),de=ref(K.value[0]),se=ref(U.value[0]),oe=ref(R.value[0]),me=ref(""),Ee=ref(""),ke=ref(""),xe=ref(!1),fe=ref(),ve=ref(!1);let ye=null;const Ce=computed({get:()=>$.prompt,set:Xt=>{$.setPrompt(Xt)}}),pe=computed(()=>q.globalConfig),_e=computed(()=>{var Xt,At;return((Xt=pe.value)==null?void 0:Xt.companyName)&&((At=pe.value)==null?void 0:At.filingNumber)}),{isMobile:Ge}=useBasicLayout(),Ae=computed(()=>$.currentPlugin),Ne=computed(()=>$.isStreamIn!==void 0?$.isStreamIn:!1),Ze=computed(()=>$.chatList),ze=ref("/api/upload/file"),Te=computed(()=>String(Ie==null?void 0:Ie.value.modelInfo.modelName)),Fe=computed(()=>Number(Ie==null?void 0:Ie.value.modelInfo.keyType)),Pe=computed(()=>$.active),we=computed(()=>$.getChatByGroupInfo()),Ie=computed(()=>{var At;const Xt=(At=we.value)==null?void 0:At.config;if(!Xt)return{};try{return JSON.parse(Xt)}catch{return{}}}),Be=computed(()=>{var Xt,At;return String(((At=(Xt=Ie==null?void 0:Ie.value)==null?void 0:Xt.fileInfo)==null?void 0:At.fileParsing)||"")}),Ke=computed(()=>{var Xt,At;return String(((At=(Xt=Ie==null?void 0:Ie.value)==null?void 0:Xt.fileInfo)==null?void 0:At.fileName)||"")}),Ve=computed(()=>{var Xt,At;return String(((At=(Xt=Ie==null?void 0:Ie.value)==null?void 0:Xt.modelInfo)==null?void 0:At.model)??"")}),je=computed(()=>{var Xt,At;return Number((At=(Xt=Ie==null?void 0:Ie.value)==null?void 0:Xt.modelInfo)==null?void 0:At.isFileUpload)}),Le=computed(()=>[1,2,3].includes(je.value)),et=computed(()=>{var Xt;return Ve.value==="dall-e-3"||((Xt=Ae.value)==null?void 0:Xt.parameters)==="dall-e-3"}),Qe=computed(()=>{var Xt;return Ve.value.includes("flux")||((Xt=Ae.value)==null?void 0:Xt.parameters.includes("flux"))}),Ue=computed(()=>{var Xt;return Ve.value==="midjourney"||((Xt=Ae.value)==null?void 0:Xt.parameters)==="midjourney"}),$e=computed(()=>{var Xt;return Ve.value==="ai-ppt"||((Xt=Ae.value)==null?void 0:Xt.parameters)==="ai-ppt"}),Ye=computed(()=>{var Xt;return Ve.value==="luma-video"||((Xt=Ae.value)==null?void 0:Xt.parameters)==="luma-video"}),tt=computed(()=>{var Xt;return Ve.value==="cog-video"||((Xt=Ae.value)==null?void 0:Xt.parameters)==="cog-video"}),ot=computed(()=>V.clipboardText),st=computed(()=>Ge.value?t$3("chat.placeholderMobile"):t$3("chat.placeholder")),dt=computed(()=>Ne.value||(!Ce.value||Ce.value.trim()==="")&&!(Ft.value.length>0)),ct=(Xt,At=16)=>{const[zt,Br]=Xt.split(" / ").map(Number),br=zt/Br;return Br>zt?{width:`${At*br}px`,height:`${At}px`}:{width:`${At}px`,height:`${At/br}px`}},mt=Xt=>{if(Xt.id==="custom"){const At=`${me.value}:${Ee.value}`;de.value={...Xt,values:At,aspectRatio:`${me.value} / ${Ee.value}`},X.value.size=At}else de.value=Xt,X.value.size=Xt.values},ut=Xt=>{oe.value=Xt,Q.value=Xt.values},rt=Xt=>{Ft.value.length>0||$t(),se.value=Xt,L.value=Xt.values},He=()=>{if(W.value){const Xt=W.value,At=8,zt="1.5rem";Xt.style.height=zt;const Br=Ce.value.split(`
`).reduce((sr,ur)=>{const Cr=Math.floor(Xt.clientWidth/8);return sr+Math.ceil(ur.length/Cr)},0),br=parseFloat(window.getComputedStyle(Xt).lineHeight)||20,Ur=br*At,un=br*Br;Xt.style.height=Math.min(un,Ur)+"px"}};watch(Ce,()=>{nextTick(()=>{He()})},{immediate:!0});const Je=async Xt=>{const zt=Xt.target.value;if(xe.value=zt.startsWith("@"),ye&&clearTimeout(ye),xe.value&&!ve.value){const Br=zt.slice(1);ye=setTimeout(async()=>{if(Br.length>0)try{const br=await fetchSearchAppsAPI({keyword:Br});he.value=br.data.rows}catch(br){console.error("Error fetching search results:",br),he.value=[]}else he.value=[]},1e3)}else he.value=[]},St=computed(()=>{var Xt,At;return String(((Xt=Ae==null?void 0:Ae.value)==null?void 0:Xt.pluginImg)||((At=Ie==null?void 0:Ie.value.modelInfo)==null?void 0:At.modelAvatar)||"")}),bt=()=>{var Br;const At=((Br=pe.value)==null?void 0:Br.drawingStyles.split(",")).sort(()=>.5-Math.random()),zt=Ge.value?3:5;ce.value=At.slice(0,zt)};async function pt(Xt){Ce.value&&/,\s*$/.test(Ce.value)?await $.setPrompt(`${Ce.value} ${Xt}`):Ce.value?await $.setPrompt(`${Ce.value}, ${Xt}`):await $.setPrompt(`${Xt}`),W.value.focus(),W.value.scrollTop=W.value.scrollHeight}const wt=inject("createNewChatGroup",()=>Promise.resolve()),Pt=async Xt=>{var Cr,Tr,jt,Wr,ir,Gr,Jr,Xr,fn,cn,nn,ar,xr,Lr;if(Ne.value)return;$.groupList.length===0&&await wt(),$.setStreamIn(!0);let At="";((Cr=Ae.value)==null?void 0:Cr.parameters)==="suno-music"?At="LYRICS":((Tr=Ae.value)==null?void 0:Tr.parameters)==="midjourney"&&(L.value==="imageToText"?At="DESCRIBE":At="IMAGINE");let zt=((jt=fe==null?void 0:fe.value)==null?void 0:jt.model)||($==null?void 0:$.activeModel),Br=((Wr=Ae==null?void 0:Ae.value)==null?void 0:Wr.pluginName)||((ir=fe==null?void 0:fe.value)==null?void 0:ir.name)||Te.value;const br=Fe.value;(Gr=Ae.value)!=null&&Gr.deductType&&((Jr=Ae.value)==null?void 0:Jr.deductType)!==0&&(zt=(Xr=Ae.value)==null?void 0:Xr.parameters);let Ur=((fn=fe==null?void 0:fe.value)==null?void 0:fn.coverImg)||St.value,un;fe!=null&&fe.value?un=(cn=fe==null?void 0:fe.value)==null?void 0:cn.id:un=(nn=we==null?void 0:we.value)==null?void 0:nn.appId;let sr="";console.log(Ce);let ur=Ce.value||"";if($e.value&&sr.length===0&&(ur=`使用 ${Ke} 生成 PPT`),(je.value===1||je.value===2||je.value===3&&((ar=Yt.value[0])!=null&&ar.type.startsWith("image/"))||Ue.value||Ye.value||$e.value||tt.value)&&Ft.value.length>0&&(console.log("满足文件上传条件,开始上传文件"),sr=await Nt(),console.log("文件上传成功,文件 URL:",sr),ie.value=!1,Ft.value=[],Yt.value=[]),zt==="midjourney"&&At==="IMAGINE"){if(sr)switch(L.value){case"faceConsistency":ur=`${ur} --cref ${sr} --cw 100`;break;case"styleConsistency":ur=`${ur} --sref ${sr}`;break;default:ur=`${sr} ${ur}`}if(X.value.size&&!ur.includes("--ar")){let Rr=X.value.size;switch(Rr){case"1024x1024":Rr="1:1";break;case"1792x1024":Rr="16:9";break;case"1024x1792":Rr="9:16";break}ur=`${ur} --ar ${Rr}`}Q.value&&!ur.includes("--v")&&!ur.includes("--niji")&&(ur=`${ur} ${Q.value}`)}if(At==="DESCRIBE"&&sr&&(ur="以图生文"),un)try{Ur=(await fetchQueryOneCatAPI({id:un})).data.modelAvatar}catch{}await $.setPrompt(""),Ft.value=[],Yt.value=[],W.value.style.height="1.5rem",console.log("开始对话",{prompt:Ce,action:At,useModel:zt,useModelName:Br,useModelType:br,modelAvatar:Ur,appId:un,extraParam:X.value,fileUrl:sr,pluginParam:(xr=Ae.value)==null?void 0:xr.parameters}),await M({msg:ur,action:At,model:zt,modelName:Br,modelType:br,modelAvatar:Ur,appId:un,extraParam:X.value,fileUrl:sr,pluginParam:(Lr=Ae.value)==null?void 0:Lr.parameters}),$.setStreamIn(!1),ie.value=!1},Nt=async()=>{ie.value=!0;const Xt=[];try{const At=new Date,zt=At.getFullYear(),Br=String(At.getMonth()+1).padStart(2,"0"),br=String(At.getDate()).padStart(2,"0"),un=`userFiles/${`${zt}${Br}/${br}`}`,sr=Array.from(Yt.value).map(async ur=>{var Tr;const Cr=new FormData;Cr.append("file",ur);try{const jt=await axios.post(`${ze.value}?dir=${encodeURIComponent(un)}`,Cr,{headers:{"Content-Type":"multipart/form-data"}});return(Tr=jt==null?void 0:jt.data)==null?void 0:Tr.data}catch(jt){return console.error(`上传文件 ${ur.name} 失败:`,jt),`上传文件 ${ur.name} 失败`}});Xt.push(...await Promise.all(sr))}catch(At){console.error("上传文件过程中发生错误:",At)}finally{ie.value=!1}return Xt.join(", ")},Vt=async Xt=>{const zt=(Xt.clipboardData||window.clipboardData).items;for(const Br of zt)if(Br.kind==="file"){const br=Br.getAsFile();br&&await Wt(br)}},Wt=async Xt=>{let At=Xt.name;const zt=25,Br=At.split(".").pop()||"";if(At.length>zt&&(At=At.substring(0,zt-Br.length-1)+"…."+Br),Xt.type.startsWith("image/"))e.value=!1,await Mt(),Jt(Xt);else if(e.value=!0,Ft.value=[],Yt.value=[],Jt(Xt),je.value===3&&!$e.value&&!tt.value&&!Ye.value&&!Ue.value){const br=await Dt();br&&await cr({fileName:At,fileParsing:br})}else await cr({fileName:At});$e.value&&await $.setPrompt(`使用 ${At} 生成 PPT`)};async function Mt(){await cr({fileParsing:"",fileName:""});const Xt=Yt.value.filter(zt=>zt.type.startsWith("image/")),At=Ft.value.filter((zt,Br)=>Yt.value[Br]&&Yt.value[Br].type.startsWith("image/"));Yt.value=Xt,Ft.value=At,Yt.value.length>=4&&(Yt.value.shift(),Ft.value.shift())}const $t=()=>{var Xt;(Xt=ae==null?void 0:ae.value)==null||Xt.click()},Yt=ref([]),Ft=ref([]),Jt=async Xt=>{Yt.value.push(Xt);const At=new FileReader;At.onload=zt=>{var br;const Br=(br=zt.target)==null?void 0:br.result;Ft.value.push(Br),console.log(`文件 ${Xt.name} 的 Base64 数据已添加`)},At.readAsDataURL(Xt),ae.value=null},er=async Xt=>{Ft.value.splice(Xt,1),Yt.value.splice(Xt,1),await cr({fileParsing:"",fileName:""})},Bt=async Xt=>{var Br;console.log("文件选择事件触发");const At=Xt.target,zt=(Br=At==null?void 0:At.files)==null?void 0:Br[0];zt&&(await Wt(zt),At.value="")},It=async()=>{he.value=[],xe.value=!1,ve.value=!1,fe.value=null,$.setUsingPlugin(null)},Dt=async()=>{ie.value=!0;try{if(!Yt.value.length)throw new Error("No file selected");const Xt=Yt.value[0],At=Xt.type;let zt="";if(At.startsWith("text/"))zt=await kr(Xt);else switch(At){case"application/pdf":zt=await Zt(Xt);break;case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":zt=await gr(Xt,"word/document.xml","word");break;case"application/vnd.openxmlformats-officedocument.presentationml.presentation":zt=await gr(Xt,"ppt/slides/slide1.xml","ppt");break;case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":zt=await gr(Xt,"xl/worksheets/sheet1.xml","excel");break;case"application/xml":case"application/javascript":case"application/xslt+xml":case"application/json":case"application/sql":zt=await kr(Xt);break;default:console.warn("Unsupported file type:",At),alert("Unsupported file type")}return zt.length>5e4&&(console.warn("Text exceeds 50000 characters, truncating..."),zt=zt.slice(0,5e4)),zt}catch(Xt){return console.error(Xt),null}finally{ie.value=!1,Ft.value=[],Yt.value=[]}},Zt=async Xt=>{try{const At=await Xt.arrayBuffer(),zt=new Uint8Array(At),br=await createLoadingTask(zt).promise;let Ur="";for(let un=1;un<=br.numPages;un++){const Cr=(await(await br.getPage(un)).getTextContent()).items.map(Tr=>"str"in Tr?Tr.str:"").join(" ");Ur+=`{${Cr}}
`}return Ur}catch(At){return console.error("Error reading PDF file:",At),""}},gr=async(Xt,At,zt)=>{try{const Br=await Xt.arrayBuffer(),Ur=(await JSZip.loadAsync(Br)).file(At);if(!Ur)throw new Error(`File path ${At} not found in the ZIP archive`);const un=await Ur.async("text"),sr=await parseStringPromise(un);return fr(sr,zt)}catch(Br){return console.error(`Error reading ${At} file:`,Br),""}},fr=(Xt,At)=>{let zt="";if(At==="word"){const Br=Xt["w:document"]["w:body"][0]["w:p"];zt=Dr(Br)}else if(At==="ppt"){const Br=Xt["p:sld"]["p:cSld"][0]["p:spTree"][0]["p:sp"];Br&&Br.forEach(br=>{if(br["p:txBody"]){const Ur=br["p:txBody"][0]["a:p"].map(un=>un["a:r"]?un["a:r"].map(sr=>sr["a:t"]).filter(Boolean).join(" "):"");zt+=Ur.join(" ")+`
`}})}else if(At==="excel"){const Br=Xt.worksheet.sheetData[0].row;Br&&Br.forEach(br=>{const Ur=br.c?br.c.map(un=>un.v).join(" "):"";zt+=Ur+`
`})}return zt},Dr=Xt=>{let At="";return Xt&&Xt.forEach(zt=>{const Br=zt["w:r"]?zt["w:r"].map(br=>br["w:t"]).filter(Boolean).join(" "):"";At+=Br+`
`}),At},kr=async Xt=>await Xt.text(),cr=async Xt=>{const{modelInfo:At,fileInfo:zt}=$.activeConfig,Br={modelInfo:{...At},fileInfo:{fileParsing:Xt.fileParsing!==void 0?Xt.fileParsing:zt==null?void 0:zt.fileParsing,fileName:Xt.fileName!==void 0?Xt.fileName:zt==null?void 0:zt.fileName}},br={groupId:Pe.value,config:JSON.stringify(Br)};await fetchUpdateGroupAPI(br),await $.queryMyGroup()},Ar=Xt=>{Ge.value?Xt.key==="Enter"&&Xt.ctrlKey&&(Xt.preventDefault(),Pt()):Xt.key==="Enter"&&!Xt.shiftKey&&(Xt.preventDefault(),Pt())},yt=async Xt=>{var At;fe.value=Xt,ve.value=!0,await $.setPrompt(""),(At=W.value)==null||At.focus()},vt=()=>{D("pause-request"),$.setStreamIn(!1)};return watch([me,Ee],([Xt,At],[zt,Br])=>{Xt&&At&&(Xt!==zt||At!==Br)&&(mt({id:"custom",title:`${Xt}:${At}`,values:`${Xt}:${At}`,aspectRatio:`${Xt} / ${At}`}),ke.value=`${me.value} / ${Ee.value}`)}),watch(ot,async Xt=>{var At;await $.setPrompt(Xt),(At=W.value)==null||At.focus(),W.value.scrollTop=W.value.scrollHeight}),watch(Ze,Xt=>{Xt.length},{immediate:!0}),onMounted(()=>{bt(),$.setPrompt(""),nextTick(()=>{W.value&&!Ge.value&&W.value.focus()})}),(Xt,At)=>{var zt,Br;return openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("footer",{class:normalizeClass(["flex flex-col items-center justify-center w-full",[unref(Ge)?"px-2 mb-3":"px-10"]])},[J.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex pb-2 justify-center w-full flex-col m-auto rounded-lg px-0 border-0 bg-transparent sm:text-sm sm:leading-6 resize-none",[unref(Ge)?" mx-2":" pt-1 mx-10 "]]),style:{maxWidth:"64rem"}},[createBaseVNode("div",_hoisted_1$7,[(et.value||Ue.value||Qe.value)&&!unref(Ge)?(openBlock(),createElementBlock("div",_hoisted_2$6,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(ce.value,(br,Ur)=>(openBlock(),createElementBlock("button",{key:Ur,onClick:un=>pt(br),class:"mx-1 shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 px-2 py-1 my-1 hover:bg-opacity dark:hover:bg-gray-750 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 whitespace-nowrap"},toDisplayString(br),9,_hoisted_3$6))),128)),createBaseVNode("button",{onClick:bt,class:"mx-1 shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 px-2 py-1 my-1 hover:bg-opacity dark:hover:bg-gray-750 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 whitespace-nowrap"},[createVNode(unref(ShuffleOne),{theme:"outline",size:"16",class:"my-4"})])])):createCommentVNode("",!0),_hoisted_4$5,createBaseVNode("div",_hoisted_5$5,[Ue.value?(openBlock(),createBlock(unref(ge),{key:0,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(se.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-28 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$5,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(U.value,(br,Ur)=>(openBlock(),createBlock(unref(be),{key:Ur},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:un=>rt(br)},[createBaseVNode("a",_hoisted_8$4,toDisplayString(br.title),1)],8,_hoisted_7$5)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),Ue.value?(openBlock(),createBlock(unref(ge),{key:1,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(" 版本:"+toDisplayString(oe.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-28 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$4,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(R.value,(br,Ur)=>(openBlock(),createBlock(unref(be),{key:Ur},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:un=>ut(br)},[createBaseVNode("a",_hoisted_11$3,toDisplayString(br.title),1)],8,_hoisted_10$3)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_12$2,[et.value||Qe.value?(openBlock(),createBlock(unref(ge),{key:0,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t$3)("chat.size")+de.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-40 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_13$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(K.value,(br,Ur)=>(openBlock(),createBlock(unref(be),{key:Ur},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:un=>mt(br)},[createBaseVNode("a",_hoisted_15$2,[createBaseVNode("div",_hoisted_16$2,[createBaseVNode("div",{style:normalizeStyle(ct(br.aspectRatio)),class:"flex border border-gray-500 dark:border-gray-300 rounded-sm"},null,4)]),createBaseVNode("div",_hoisted_17$2,toDisplayString(br.title),1)])],8,_hoisted_14$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),Ye.value||tt.value?(openBlock(),createBlock(unref(ge),{key:1,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap",onClick:$t},{default:withCtx(()=>[createTextVNode(" 图生视频 ")]),_:1})]),_:1})):createCommentVNode("",!0),Ue.value||Ye.value?(openBlock(),createBlock(unref(ge),{key:2,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t$3)("chat.size")+de.value.title),1)]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-40 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_18$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(B.value,(br,Ur)=>(openBlock(),createBlock(unref(be),{key:Ur},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:un=>mt(br)},[createBaseVNode("a",_hoisted_20$1,[createBaseVNode("div",_hoisted_21,[createBaseVNode("div",{style:normalizeStyle(ct(br.aspectRatio)),class:"flex border border-gray-500 dark:border-gray-300 rounded-sm"},null,4)]),createBaseVNode("div",_hoisted_22,toDisplayString(br.title),1)])],8,_hoisted_19$1)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)])])],2)),xe.value&&!ve.value&&!Ae.value&&!J.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex mb-2 w-full px-2 py-1 justify-center items-center flex-col m-auto rounded-lg shadow-sm ring-1 ring-gray-300 resize-none dark:ring-gray-750 dark:bg-gray-800",[unref(Ge)?"mx-2":"mx-10"]]),style:{maxWidth:"64rem",minHeight:"1.5rem"}},[he.value.length===0?(openBlock(),createElementBlock("div",_hoisted_23,_hoisted_25)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment$1,null,renderList(he.value,br=>(openBlock(),createElementBlock("div",{key:br.id,onClick:Ur=>yt(br),class:"flex items-center bg-white dark:bg-gray-800 hover:bg-gray-100 py-2 px-2 dark:hover:bg-gray-700 rounded-lg w-full cursor-pointer transition duration-150 ease-in-out"},[createBaseVNode("div",_hoisted_27,[br.coverImg?(openBlock(),createElementBlock("img",{key:0,src:br.coverImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_28)):(openBlock(),createElementBlock("span",_hoisted_29,toDisplayString(br.name.charAt(0)),1))]),createBaseVNode("h3",_hoisted_30,toDisplayString(br.name),1),createBaseVNode("p",_hoisted_31,toDisplayString(br.des),1)],8,_hoisted_26))),128))],2)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex mb-2 mt-1 w-full justify-center items-center flex-col m-auto rounded-lg shadow-sm ring-1 ring-gray-300 focus-within:ring-2 focus-within:ring-primary-500 text-gray-900 placeholder:text-gray-400 border-0 bg-transparent sm:text-sm sm:leading-6 resize-none dark:focus:ring-gray-750 dark:ring-gray-750 dark:bg-gray-750",[unref(Ge)?" mx-2":" mx-10 "]]),style:{maxWidth:"64rem",minHeight:"1.5rem"}},[Ft.value.length>0||Be.value||ve.value||Ae.value?(openBlock(),createElementBlock("div",_hoisted_32,[Ft.value.length>0&&!e.value?(openBlock(!0),createElementBlock(Fragment$1,{key:0},renderList(Ft.value,(br,Ur)=>(openBlock(),createElementBlock("div",{class:"relative inline-block ml-2 mt-2 group",key:Ur},[createBaseVNode("img",{src:br,class:"max-h-16 border border-gray-300 rounded-lg",alt:"预览图片"},null,8,_hoisted_33),createBaseVNode("div",{class:"absolute top-2 right-0 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:un=>er(Ur)},[createVNode(unref(Close),{class:"rounded-full"})],8,_hoisted_34)]))),128)):createCommentVNode("",!0),e.value&&(Ft.value.length>0||Be.value)&&!J.value?(openBlock(),createElementBlock("div",_hoisted_35,[createBaseVNode("div",_hoisted_36,[createBaseVNode("span",_hoisted_37,toDisplayString(Ke.value),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:At[0]||(At[0]=br=>er(0))},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])])):createCommentVNode("",!0),J.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:2,class:"relative group w-full",onMouseover:At[3]||(At[3]=br=>z.value=!0),onMouseleave:At[4]||(At[4]=br=>z.value=!1)},[Ae.value?(openBlock(),createElementBlock(Fragment$1,{key:0},[createBaseVNode("div",_hoisted_38,[createBaseVNode("div",_hoisted_39,[Ae.value.pluginImg?(openBlock(),createElementBlock("img",{key:0,src:Ae.value.pluginImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_40)):(openBlock(),createElementBlock("span",_hoisted_41,toDisplayString(Ae.value.pluginName.charAt(0)),1))]),createBaseVNode("h3",_hoisted_42,toDisplayString(Ae.value.pluginName),1),createBaseVNode("p",_hoisted_43,toDisplayString(Ae.value.description),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:At[1]||(At[1]=br=>It())},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])],64)):createCommentVNode("",!0),ve.value&&!Ae.value?(openBlock(),createElementBlock(Fragment$1,{key:1},[createBaseVNode("div",_hoisted_44,[createBaseVNode("div",_hoisted_45,[fe.value.coverImg?(openBlock(),createElementBlock("img",{key:0,src:fe.value.coverImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_46)):(openBlock(),createElementBlock("span",_hoisted_47,toDisplayString(fe.value.name.charAt(0)),1))]),createBaseVNode("h3",_hoisted_48,toDisplayString(fe.value.name),1),createBaseVNode("p",_hoisted_49,toDisplayString(fe.value.des),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:At[2]||(At[2]=br=>It())},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])],64)):createCommentVNode("",!0)],32))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_50,[createBaseVNode("div",_hoisted_51,[(Le.value&&!Ae.value||Ue.value||Ye.value||$e.value||tt.value)&&!ie.value&&!J.value?(openBlock(),createBlock(unref(Link),{key:0,size:"24",class:"p-1 text-gray-400 dark:text-gray-600 dark:hover:text-gray-500",onClick:$t})):createCommentVNode("",!0),ie.value?(openBlock(),createBlock(unref(LoadingFour),{key:1,size:"24",class:"p-1 rotate-icon text-gray-400 dark:text-gray-600 hover:text-gray-500"})):createCommentVNode("",!0),createBaseVNode("input",{ref_key:"fileInput",ref:ae,type:"file",class:"hidden",onChange:Bt,accept:"image/*, .pdf, .txt, .docx, .pptx, .xlsx, .xml, .js, .xslt, .json, .sql"},null,544)]),createBaseVNode("div",_hoisted_52,[withDirectives(createBaseVNode("textarea",{ref_key:"inputRef",ref:W,"onUpdate:modelValue":At[5]||(At[5]=br=>Ce.value=br),placeholder:st.value,class:"w-full border-0 text-gray-800 placeholder:text-gray-400 dark:placeholder:text-gray-500 bg-transparent text-md leading-6 resize-none dark:text-gray-400 px-2 my-1",onInput:He,onKeypress:Ar,onKeyup:Je,onPaste:Vt,style:{maxHeight:"30vh",minHeight:"1.5rem"}},null,40,_hoisted_53),[[vModelText,Ce.value]])]),createBaseVNode("div",_hoisted_54,[Ne.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["rounded-md text-sm font-semibold text-white dark:hover:text-gray-200 p-2 shadow-sm dark:text-gray-400",{"bg-primary-600 dark:bg-primary-700":!dt.value,"bg-primary-300 dark:bg-gray-700":dt.value}]),disabled:dt.value,onClick:At[6]||(At[6]=br=>Pt())},[createVNode(unref(SendOne),{size:"16"})],10,_hoisted_55)),Ne.value?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"rounded-md bg-primary-600 text-sm font-semibold text-white dark:hover:text-gray-200 p-2 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:bg-primary-900 dark:text-gray-400",onClick:At[7]||(At[7]=br=>vt())},[createVNode(unref(Square$1),{size:"16"})])):createCommentVNode("",!0)])])],2)],2),_e.value&&!unref(Ge)?(openBlock(),createElementBlock("div",_hoisted_56,[createTextVNode(toDisplayString(unref(t$3)("chat.generatedContentDisclaimer"))+" "+toDisplayString((zt=pe.value)==null?void 0:zt.companyName)+" ",1),createBaseVNode("a",_hoisted_57,toDisplayString((Br=pe.value)==null?void 0:Br.filingNumber),1)])):createCommentVNode("",!0)],64)}}}),index_vue_vue_type_style_index_0_lang="",_hoisted_1$6={class:"sticky top-0 left-0 right-0 z-30 dark:border-neutral-800 h-14 select-none"},_hoisted_2$5={class:"relative flex items-center justify-center min-w-0 h-full"},_hoisted_3$5={class:"flex w-full h-full items-center px-4"},_hoisted_4$4={class:"flex items-center pr-2"},_hoisted_5$4={key:0},_hoisted_6$4={class:"flex justify-between items-center h-full w-full"},_hoisted_7$4={class:"py-1"},_hoisted_8$3={class:"py-1"},_hoisted_9$3={class:"py-1"},_hoisted_10$2=["onClick"],_hoisted_11$2={class:"w-7 h-7 rounded-full bg-gray-200 flex items-center justify-center overflow-hidden select-none"},_hoisted_12$1=["src"],_hoisted_13$1={key:1,class:"text-sm font-medium select-none"},_hoisted_14$1={class:"flex flex-col flex-1 select-none"},_hoisted_15$1={href:"#",class:"text-sm select-none"},_hoisted_16$1={key:0,class:"text-xs text-gray-400 line-clamp-1 max-w-60 mr-2 select-none"},_hoisted_17$1={class:"ml-auto"},_hoisted_18$1={key:1,class:"w-4 h-4"},_hoisted_19=["disabled"],_hoisted_20=createBaseVNode("div",{class:"mr-2"},"新对话",-1),_sfc_main$6=defineComponent({__name:"index",emits:["export","toggleUsingContext","clear","scrollBtn"],setup(k,{emit:m}){const M=useAppStore(),G=useChatStore(),V=ref([]),q=ref(null),$=computed(()=>G.groupList),D=computed(()=>M.siderCollapsed),B=computed(()=>G.active),R=computed(()=>G.currentPlugin),{isMobile:U}=useBasicLayout(),K=ref(!1),z=computed(()=>G.getChatByGroupInfo()),e=computed(()=>G.chatList),ae=computed(()=>{var me;const oe=(me=z.value)==null?void 0:me.config;if(!oe)return{};try{return JSON.parse(oe)}catch{return{}}}),ie=computed(()=>{var oe,me;return String(((me=(oe=ae==null?void 0:ae.value)==null?void 0:oe.modelInfo)==null?void 0:me.model)??"")}),he=computed(()=>{var oe;return((oe=z==null?void 0:z.value)==null?void 0:oe.appId)||0});let J=ref({}),W=ref([]);watch(he,oe=>{oe?X(oe):q.value=null},{immediate:!0});async function X(oe){const me=await fetchQueryOneCatAPI({id:oe});q.value=me.data}const L=computed(()=>{var oe,me,Ee,ke;return((oe=z==null?void 0:z.value)==null?void 0:oe.appId)&&(((me=ae.value.modelInfo)==null?void 0:me.isFixedModel)===1||((Ee=ae.value.modelInfo)==null?void 0:Ee.isGPTs)===1)||R.value&&((ke=R==null?void 0:R.value)==null?void 0:ke.deductType)!==0}),Q=inject("createNewChatGroup",()=>Promise.resolve());function ce(){M.setSiderCollapsed(!D.value)}async function de(oe){var Ce;const{modelInfo:me,fileInfo:Ee}=G.activeConfig,{isGPTs:ke,isFixedModel:xe,modelName:fe}=me,ve={modelInfo:{keyType:oe.keyType,modelName:((Ce=z==null?void 0:z.value)!=null&&Ce.appId?fe:oe.label)||"",model:oe.value,deductType:oe.deductType,deduct:oe.deduct,isFileUpload:oe.isFileUpload,modelAvatar:oe.modelAvatar||"",isGPTs:ke,isFixedModel:xe},fileInfo:Ee||{}},ye={groupId:B.value,config:JSON.stringify(ve)};await fetchUpdateGroupAPI(ye),await G.queryMyGroup()}async function se(){try{const oe=await fetchQueryModelsListAPI();if(!oe.success)return;const{modelMaps:me,modelTypeList:Ee}=oe.data;J.value=me,W.value=Ee;const xe=Object.values(me).flat().filter(fe=>fe.keyType===1);V.value=xe.map(fe=>({label:fe.modelName,value:fe.model,deductType:fe.deductType,keyType:fe.keyType,deduct:fe.deduct,isFileUpload:fe.isFileUpload,modelAvatar:fe.modelAvatar,modelDescription:fe.modelDescription}))}catch{}}return onMounted(()=>{se()}),(oe,me)=>(openBlock(),createElementBlock("header",_hoisted_1$6,[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("div",_hoisted_3$5,[createBaseVNode("div",_hoisted_4$4,[createBaseVNode("button",{class:"flex items-center justify-center w-5 h-full dark:text-gray-400 text-gray-500",onClick:ce},[unref(U)?(openBlock(),createBlock(unref(HamburgerButton),{key:1,size:"24"})):(openBlock(),createElementBlock("div",_hoisted_5$4,[D.value?(openBlock(),createBlock(unref(Right),{key:0,theme:"outline",size:"24"})):(openBlock(),createBlock(unref(Left),{key:1,theme:"outline",size:"24"}))]))])]),createBaseVNode("div",_hoisted_6$4,[L.value?(openBlock(),createBlock(unref(ge),{key:0,as:"div",class:"relative flex-1 flex ele-drag items-center justify-between h-full"},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_7$4,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold hover:bg-gray-50 dark:hover:bg-gray-800 dark:text-gray-400 text-gray-700"},{default:withCtx(()=>{var Ee,ke;return[createTextVNode(toDisplayString(((Ee=R.value)==null?void 0:Ee.pluginName)||((ke=z.value)==null?void 0:ke.title)||"新对话"),1)]}),_:1})])])]),_:1})):(openBlock(),createBlock(unref(ge),{key:1,as:"div",class:"relative flex-1 flex ele-drag items-center h-full justify-between"},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_8$3,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold hover:bg-gray-50 dark:hover:bg-gray-750 dark:text-gray-400 text-gray-500",onMouseover:me[0]||(me[0]=Ee=>K.value=!0),onMouseleave:me[1]||(me[1]=Ee=>K.value=!1)},{default:withCtx(()=>{var Ee,ke;return[createTextVNode(toDisplayString(((ke=(Ee=ae.value)==null?void 0:Ee.modelInfo)==null?void 0:ke.modelName)||"新对话")+" ",1),K.value||unref(U)?(openBlock(),createBlock(unref(Right),{key:0,size:"20",class:normalizeClass(["justify-center items-center",{"text-base font-bold":unref(U),"text-sm":!unref(U)}])},null,8,["class"])):createCommentVNode("",!0)]}),_:1})])]),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute top-full z-10 origin-top-left divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900 overflow-y-auto",style:{maxHeight:"60vh"}},{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$3,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(V.value,(Ee,ke)=>(openBlock(),createBlock(unref(be),{key:ke},{default:withCtx(()=>[createBaseVNode("div",{class:"flex items-center space-x-4 mx-2 hover:bg-gray-100 dark:hover:bg-gray-700 p-2 rounded-md select-none",onClick:xe=>de(Ee)},[createBaseVNode("div",_hoisted_11$2,[Ee.modelAvatar?(openBlock(),createElementBlock("img",{key:0,src:Ee.modelAvatar,alt:"app cover",class:"w-full h-full object-cover"},null,8,_hoisted_12$1)):(openBlock(),createElementBlock("span",_hoisted_13$1,toDisplayString(Ee.label.charAt(0)),1))]),createBaseVNode("div",_hoisted_14$1,[createBaseVNode("a",_hoisted_15$1,toDisplayString(Ee.label),1),Ee.modelDescription?(openBlock(),createElementBlock("div",_hoisted_16$1,toDisplayString(Ee.modelDescription),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_17$1,[ie.value===Ee.value?(openBlock(),createBlock(unref(CheckOne),{key:0,theme:"filled",size:"16",class:"dark:text-gray-500"})):(openBlock(),createElementBlock("div",_hoisted_18$1))])],8,_hoisted_10$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})),createBaseVNode("button",{type:"button",class:"rounded-md py-2 px-3 text-sm focus-visible:outline-none text-gray-500 hover:text-gray-700 dark:hover:text-gray-400 hover:bg-gray-50 flex items-center dark:hover:bg-gray-750 font-semibold",onClick:me[2]||(me[2]=Ee=>unref(Q)()),disabled:e.value.length===0&&!he.value&&$.value.length!==0},[_hoisted_20,createVNode(unref(EditTwo),{size:"20"})],8,_hoisted_19)])])])]))}});function useChat(){const k=useChatStore();return{addGroupChat:V=>{k.addGroupChat(V)},updateGroupChat:(V,q)=>{k.updateGroupChat(V,q)},updateGroupChatSome:(V,q)=>{k.updateGroupChatSome(V,q)}}}function useCopyCode(){function k(){document.querySelectorAll(".code-block-wrapper").forEach(M=>{const G=M.querySelector(".code-block-header__copy"),V=M.querySelector(".code-block-body");G&&V&&G.addEventListener("click",()=>{var q;(q=navigator.clipboard)!=null&&q.writeText?navigator.clipboard.writeText(V.textContent??""):copyText({text:V.textContent??"",origin:!0})})})}onMounted(()=>k()),onUpdated(()=>k())}let isInteracting=!1,interactionTimeoutId;function useScroll(){const k=ref(null);let m=0;const M=async()=>{await nextTick(),k.value&&(k.value.scrollTop=k.value.scrollHeight)},G=async()=>{await nextTick(),k.value&&(k.value.scrollTop=0)};async function V(){if(await nextTick(),k.value){const B=k.value.scrollHeight-k.value.scrollTop-k.value.clientHeight;!isInteracting&&B<=200&&(k.value.scrollTop=k.value.scrollHeight)}}const q=()=>{interactionTimeoutId!==void 0&&clearTimeout(interactionTimeoutId),isInteracting=!0,interactionTimeoutId=window.setTimeout(()=>{isInteracting=!1},2e3)},$=()=>{if(k.value){const D=k.value.scrollTop;D<m&&(isInteracting=!0,q()),m=D<=0?0:D}};return onMounted(()=>{k.value&&k.value.addEventListener("scroll",$,!0)}),onUnmounted(()=>{k.value&&k.value.removeEventListener("scroll",$,!0)}),{scrollRef:k,scrollToBottom:M,scrollToTop:G,scrollToBottomIfAtBottom:V}}const _hoisted_1$5={class:"h-full flex flex-col pb-2 bg-white dark:bg-gray-800"},_hoisted_2$4={class:"flex-1 overflow-hidden"},_hoisted_3$4={class:"sticky bottom-0 left-0 flex justify-center mb-1 p-1"},_sfc_main$5=defineComponent({__name:"chatBase",setup(k){const m=useRoute(),M=useDialog(),G=useMessage(),{isMobile:V}=useBasicLayout(),{scrollRef:q,scrollToBottom:$,scrollToBottomIfAtBottom:D}=useScroll();useCopyCode();const B=useGlobalStoreWithOut(),R=useAuthStore(),U=useChatStore(),K=ref(),z=ref(!0),e=ref(!1),ae=ref(new AbortController),ie=computed(()=>U.groupList),he=computed(()=>m.query.trade_status),J=computed(()=>m.query.token),W=computed(()=>R.isLogin),X=computed(()=>U.currentPlugin),L=computed(()=>U.chatList),Q=computed(()=>U.active),ce=computed(()=>U.getChatByGroupInfo()),de=computed(()=>m.path==="/pdf"),se=computed(()=>{var Ie;const we=(Ie=ce.value)==null?void 0:Ie.config;if(!we)return{};try{return JSON.parse(we)}catch{return{}}}),oe=computed(()=>{var we,Ie;return String(((Ie=(we=se==null?void 0:se.value)==null?void 0:we.fileInfo)==null?void 0:Ie.fileParsing)||"")}),me=computed(()=>{var we,Ie;return String(((Ie=(we=se==null?void 0:se.value)==null?void 0:we.modelInfo)==null?void 0:Ie.model)||"")}),Ee=computed(()=>{var we;return String(((we=X==null?void 0:X.value)==null?void 0:we.pluginName)||(se==null?void 0:se.value.modelInfo.modelName)||"AI")}),ke=computed(()=>Number((se==null?void 0:se.value.modelInfo.keyType)||1)),xe=computed(()=>{var we,Ie;return String(((we=X==null?void 0:X.value)==null?void 0:we.pluginImg)||((Ie=se==null?void 0:se.value.modelInfo)==null?void 0:Ie.modelAvatar)||"")}),fe=computed(()=>{var we;return((we=ce==null?void 0:ce.value)==null?void 0:we.appId)||0}),{addGroupChat:ve,updateGroupChat:ye,updateGroupChatSome:Ce}=useChat(),pe=()=>{const we=q.value;if(!we)return;if(!(we.scrollHeight>we.clientHeight)){e.value=!0;return}const Be=K.value.getBoundingClientRect();e.value=Be.top<window.innerHeight},_e=()=>{K.value.scrollIntoView({behavior:"smooth"})},Ge=inject("createNewChatGroup",()=>Promise.resolve()),Ae=async({msg:we,action:Ie,drawId:Be,customId:Ke,model:Ve,modelName:je,modelType:Le,modelAvatar:et,appId:Qe,extraParam:Ue,fileUrl:$e,chatId:Ye})=>{var Pt,Nt,Vt,Wt;ie.value.length===0&&await Ge(),console.log(Ie),Ye&&(await U.deleteChatsAfterId(Ye),Te.value+=1),U.setStreamIn(!0);const tt=je||Ee.value,ot=Le||ke.value||1,st=et||xe.value,dt=Qe||fe.value;let ct=we||"提问",mt=Ve||me.value;ae.value=new AbortController,(Pt=X.value)!=null&&Pt.deductType&&((Nt=X.value)==null?void 0:Nt.deductType)!==0&&(mt=(Vt=X.value)==null?void 0:Vt.parameters),ve({text:ct,model:mt,modelName:je,modelType:Le,inversion:!0,fileInfo:$e});let ut={groupId:+Q.value,fileParsing:oe.value};ve({text:"",model:mt,modelName:je,modelType:Le,loading:!0,inversion:!1,error:!1,modelAvatar:st,status:2,pluginParam:(Wt=X.value)==null?void 0:Wt.parameters}),await $();const rt=null;let He=null;U.setStreamIn(!0),B.updateIsChatIn(!0);const Je=async()=>{mt==="dall-e-3"||mt==="midjourney"||mt==="suno-music"||mt==="stable-diffusion"||mt==="luma-video"||mt==="cog-video"||mt.includes("flux")||mt==="ai-ppt"?await St():await bt()},St=async()=>{var Mt;try{const $t=await fetchChatAPIProcess({prompt:ct,fileInfo:$e||"",model:mt,modelName:tt,modelAvatar:st,modelType:2,action:Ie,drawId:Be||"",customId:Ke,options:ut,usingPluginId:((Mt=X.value)==null?void 0:Mt.pluginId)||0,extraParam:Ue||{},signal:ae.value.signal});pt($t)}catch{}},bt=async()=>{var Yt;let Mt="",$t=0;try{await fetchChatAPIProcess({model:mt,modelName:tt,modelType:ot,prompt:we,usingPluginId:((Yt=X.value)==null?void 0:Yt.pluginId)||0,fileInfo:$e,appId:dt||0,modelAvatar:st,options:ut,signal:ae.value.signal,onDownloadProgress:({event:Ft})=>{const er=Ft.target.responseText,Bt=er.substring($t);$t=er.length,Bt.trim().split(`
`).forEach(Dt=>{try{const Zt=JSON.parse(Dt);Zt.userBalance&&R.updateUserBalance(Zt.userBalance),Zt.text&&(Mt+=Zt.text)}catch{}}),ye(L.value.length-1,{chatId:He==null?void 0:He.chatId,text:Mt,modelType:1,modelName:tt,error:!1,loading:!0,fileInfo:He==null?void 0:He.fileInfo}),D()}})}catch(Ft){wt(Ft)}finally{B.updateIsChatIn(!1),await U.queryMyGroup(),Ce(L.value.length-1,{loading:!1})}},pt=Mt=>{if(!Mt)return;const{modelName:$t,model:Yt,drawId:Ft,customId:Jt,text:er,status:Bt,fileInfo:It,userBalance:Dt,pluginParam:Zt}=Mt,gr=L.value.length-1;ye(gr,{text:er,model:Yt,modelType:2,modelName:$t,inversion:!1,drawId:Ft,customId:Jt,error:!1,loading:!1,fileInfo:It,status:Bt,pluginParam:Zt}),$(),Object.keys(Dt).length&&R.updateUserBalance(Dt)},wt=Mt=>{if(console.error("fetchChatAPIProcess error:",Mt),B.updateIsChatIn(!1),clearInterval(rt),U.setStreamIn(!1),(Mt.code===402||Mt!=null&&Mt.message.includes("余额不足")||Mt!=null&&Mt.message.includes("体验额度使用完毕"))&&(W.value?B.updateGoodsDialog(!0):R.setLoginDialog(!0)),Mt.message.includes("手机号绑定")&&(W.value?B.updatePhoneDialog(!0):R.setLoginDialog(!0)),Mt.message.includes("实名认证")&&(W.value?B.updateIdentityDialog(!0):R.setLoginDialog(!0)),Mt.message.includes("违规")&&B.UpdateBadWordsDialog(!0),Mt!=null&&Mt.message.includes("canceled")){Ce(L.value.length-1,{loading:!1}),D(),setTimeout(()=>{R.getUserBalance()},200);return}const $t=L.value[L.value.length-1];ye(L.value.length-1,{chatId:He==null?void 0:He.chatId,ttsUrl:He==null?void 0:He.ttsUrl,taskData:He==null?void 0:He.taskData,videoUrl:He==null?void 0:He.videoUrl,audioUrl:He==null?void 0:He.audioUrl,status:He==null?void 0:He.status,action:He==null?void 0:He.action,text:$t.text===""?"":$t.text,inversion:!1,loading:!1,fileInfo:He==null?void 0:He.fileInfo,conversationOptions:null,pluginParam:He==null?void 0:He.pluginParam}),D()};await Je(),U.setStreamIn(!1),await new Promise(Mt=>setTimeout(Mt,3e3)),await U.queryActiveChatLogList(),await new Promise(Mt=>setTimeout(Mt,200)),await $()},Ne=()=>{ae.value.abort(),U.setStreamIn(!1),setTimeout($,1e3)},Ze=async we=>{try{R.setToken(we),await router.replace({name:"Chat",query:{}}),G.success("账户登录成功、开始体验吧!"),await R.getUserInfo()}catch(Ie){console.error("登录过程中发生错误:",Ie)}},ze=async()=>{he.value.toLowerCase().includes("success")?(G.success("感谢你的购买、祝您使用愉快~",{duration:5e3}),await R.getUserInfo(),router.replace({name:"Chat",query:{}})):G.error("您还没有购买成功哦~")},Te=ref(0),Fe=async({chatId:we})=>{M.warning({title:t$3("chat.deleteMessage"),content:t$3("chat.deleteMessageConfirm"),positiveText:t$3("common.yes"),negativeText:t$3("common.no"),onPositiveClick:async()=>{await U.deleteChatById(we),Te.value+=1,G.success(t$3("chat.deleteSuccess"))}})},Pe=async(we,Ie)=>{if(console.log("index",we),U.groupList.length===0||we===0)return;let Be="";if(we&&typeof we=="number"){const{text:Ke,inversion:Ve}=L.value[we-1];if(Ke&&(Be=Ke),!Ve)return}Ae({msg:Be,chatId:Ie-1}),$()};return watch(L,we=>{we.length!==0&&z.value&&(z.value=!1,$())},{immediate:!0}),watch(q,()=>{pe()},{flush:"post"}),onMounted(async()=>{J.value&&Ze(J.value),he.value&&ze(),await nextTick(async()=>{await U.queryActiveChatLogList()})}),onMounted(()=>{const we=q.value;we&&we.addEventListener("scroll",pe)}),provide("onConversation",Ae),provide("handleRegenerate",Pe),(we,Ie)=>(openBlock(),createElementBlock("div",_hoisted_1$5,[de.value?createCommentVNode("",!0):(openBlock(),createBlock(_sfc_main$6,{key:0})),createBaseVNode("main",_hoisted_2$4,[createBaseVNode("div",{id:"scrollRef",ref_key:"scrollRef",ref:q,class:"relative h-full overflow-hidden overflow-y-auto scroll-smooth"},[createBaseVNode("div",{id:"image-wrapper",class:normalizeClass(["w-full m-auto h-full mx-auto",[unref(V)?"p-3":"p-3 w-full"]]),style:{maxWidth:"64rem"}},[!L.value.length&&!fe.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex justify-center items-center text-center",[unref(V)?"h-full":"h-4/5 "]])},[createVNode(_sfc_main$9)],2)):createCommentVNode("",!0),!L.value.length&&fe.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex justify-center items-center",[unref(V)?"h-full":"h-4/5 "]])},[createVNode(_sfc_main$8,{appId:fe.value},null,8,["appId"])],2)):createCommentVNode("",!0),L.value.length?(openBlock(),createElementBlock("div",{key:Te.value},[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(L.value,(Be,Ke)=>(openBlock(),createBlock(unref(_sfc_main$a),{index:Ke,chatId:Be.chatId,text:Be.text,model:Be.model,modelType:Be.modelType,modelName:Be.modelName,modelAvatar:Be.modelAvatar,status:Be.status,fileInfo:Be.fileInfo,ttsUrl:Be.ttsUrl,taskData:Be.taskData,videoUrl:Be.videoUrl,audioUrl:Be.audioUrl,action:Be.action,inversion:Be.inversion,loading:Be.loading,drawId:Be.drawId,customId:Be.customId,pluginParam:Be.pluginParam,promptReference:Be.promptReference,isLast:Ke===L.value.length-1,onDelete:Ve=>Fe(Be)},null,8,["index","chatId","text","model","modelType","modelName","modelAvatar","status","fileInfo","ttsUrl","taskData","videoUrl","audioUrl","action","inversion","loading","drawId","customId","pluginParam","promptReference","isLast","onDelete"]))),256)),createBaseVNode("div",_hoisted_3$4,[e.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(DownSmall),{key:0,size:"24",class:"bg-white p-1 shadow-sm rounded-full border text-gray-700 border-gray-400 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-500",onClick:_e,theme:"outline",strokeWidth:2}))])])):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"bottomContainer",ref:K,class:"bottom"},null,512)],2)],512)]),createVNode(_sfc_main$7,{onPauseRequest:Ne})]))}}),chatBase_vue_vue_type_style_index_0_lang="",logo=""+new URL("logo-89dd0dfe.png",import.meta.url).href;function debounce(k,m){let M;return(...G)=>{const V=()=>{clearTimeout(M),k(...G)};clearTimeout(M),M=setTimeout(V,m)}}function render$1(k,m){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[createBaseVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function render(k,m){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[createBaseVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"})])}const _hoisted_1$4={class:"mt-3 mb-1 text-xs font-bold"},_hoisted_2$3={class:"ml-1"},_hoisted_3$3=["onClick"],_hoisted_4$3={class:"flex items-center"},_hoisted_5$3=["onUpdate:modelValue","onKeypress"],_hoisted_6$3={key:1,class:"flex-1 truncate max-w-48"},_hoisted_7$3={key:0,class:"absolute z-10 right-2"},_hoisted_8$2={class:"py-1"},_hoisted_9$2=["onClick"],_hoisted_10$1=["onClick"],_hoisted_11$1=["onClick"],_sfc_main$4=defineComponent({__name:"ListItem",props:{dataSources:{},title:{}},emits:["update","delete","sticky","select"],setup(k,{emit:m}){const M=k,G=m,V=M.dataSources,q=useChatStore();async function $(ae){G("select",ae)}function D(ae,ie,he){he==null||he.stopPropagation(),ae.isEdit=ie}async function B(ae,ie){ie==null||ie.stopPropagation(),await q.updateGroupInfo({isSticky:!ae.isSticky,groupId:ae.uuid})}async function R(ae,ie){ie==null||ie.stopPropagation(),G("delete",ae)}const U=debounce(R,600);async function K(ae){const{uuid:ie,title:he}=ae;ae.isEdit=!1,await q.updateGroupInfo({groupId:ie,title:he})}async function z(ae,ie){ie==null||ie.stopPropagation(),ie.key==="Enter"&&K(ae)}function e(ae){return q.active===ae}return(ae,ie)=>{var J;const he=resolveDirective("focus");return openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("p",_hoisted_1$4,[createTextVNode(toDisplayString(M.title)+" ",1),createBaseVNode("span",_hoisted_2$3,"("+toDisplayString((J=unref(V))==null?void 0:J.length)+")",1)]),(openBlock(!0),createElementBlock(Fragment$1,null,renderList(unref(V),W=>(openBlock(),createElementBlock("div",{key:`${W.uuid}`},[createBaseVNode("div",{class:normalizeClass(["relative flex items-center gap-3 px-3 py-2 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm",e(W.uuid)?["bg-white","text-primary-600","dark:bg-gray-800","dark:text-white"]:["text-gray-700","dark:bg-gray-900","dark:text-gray-400"]]),onClick:X=>$(W)},[createBaseVNode("div",_hoisted_4$3,[W.isEdit?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":X=>W.title=X,type:"text",class:"bg-transparent border border-gray-200 dark:border-gray-400 px-1 shadow-none flex-1 truncate",onKeypress:X=>z(W,X)},null,40,_hoisted_5$3)),[[vModelText,W.title],[he]]):(openBlock(),createElementBlock("span",_hoisted_6$3,toDisplayString(W.title),1)),W.isEdit?(openBlock(),createBlock(unref(render$1),{key:2,class:"h-5 w-5 ml-2","aria-hidden":"true",onClick:X=>K(W)},null,8,["onClick"])):createCommentVNode("",!0)]),e(W.uuid)?(openBlock(),createElementBlock("div",_hoisted_7$3,[W.isEdit?createCommentVNode("",!0):(openBlock(),createBlock(unref(ge),{key:0,as:"div",class:"relative inline-block text-left"},{default:withCtx(()=>[createVNode(unref(Se),{class:"p-1"},{default:withCtx(()=>[createVNode(unref(render),{class:"h-5 w-5","aria-hidden":"true"})]),_:1}),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 z-10 mt-2 w-32 text-gray-700 dark:text-gray-400 origin-top-right text-b rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none bg-primary-100 dark:bg-gray-800"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_8$2,[createVNode(unref(be),{as:"template"},{default:withCtx(({active:X})=>[createBaseVNode("button",{class:normalizeClass([X?"flex items-center bg-gray-100 dark:bg-gray-700 ":"flex items-center ","block w-full px-4 py-2 text-left text-sm"]),onClick:L=>D(W,!0,L)},toDisplayString(unref(t$3)("chat.rename")),11,_hoisted_9$2)]),_:2},1024),createVNode(unref(be),{as:"template"},{default:withCtx(({active:X})=>[createBaseVNode("button",{class:normalizeClass([X?"flex items-end mr-3 bg-gray-100 dark:bg-gray-700":"flex items-end ","block w-full px-4 py-2 text-left text-sm"]),onClick:L=>B(W,L)},toDisplayString(W.isSticky?unref(t$3)("chat.unfavorite"):unref(t$3)("chat.favoriteConversations")),11,_hoisted_10$1)]),_:2},1024),createVNode(unref(be),{as:"template"},{default:withCtx(({active:X})=>[createBaseVNode("button",{class:normalizeClass([X?"flex items-center bg-gray-100 dark:bg-gray-700":"flex items-center ","block w-full px-4 py-2 text-left text-sm"]),onClick:L=>unref(U)(W,L)},toDisplayString(unref(t$3)("chat.deleteConversation")),11,_hoisted_11$1)]),_:2},1024)])]),_:2},1024)]),_:2},1024)]),_:2},1024))])):createCommentVNode("",!0)],10,_hoisted_3$3)]))),128))],64)}}}),_hoisted_1$3={class:"flex flex-col gap-3 text-sm"},_hoisted_2$2={key:0,class:"flex flex-col items-center mt-4 text-center text-neutral-300"},_hoisted_3$2={class:"mt-3 mb-1 text-xs font-bold"},_hoisted_4$2=["onClick"],_hoisted_5$2={class:"w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center overflow-hidden"},_hoisted_6$2=["src"],_hoisted_7$2={key:1,class:"text-sm font-medium"},_sfc_main$3=defineComponent({__name:"List",setup(k){const{isMobile:m}=useBasicLayout(),M=useRouter(),G=useRoute(),V=useAppStore(),q=useChatStore(),$=useAuthStore(),D=useMessage(),B=ref(100),R=useAppCatStore(),U=ref(!1),K=ref(!1),z=computed(()=>q.groupList),e=computed(()=>q.groupKeyWord);watch(z,()=>B.value=B.value+1),watch(e,()=>B.value=B.value+1);const ae=computed(()=>q.isStreamIn!==void 0?q.isStreamIn:!1);computed(()=>$.isLogin);const ie=inject("createNewChatGroup",async ke=>{}),he=computed(()=>R.mineApps);function J(ke){const fe=new Date(ke).getTime()+8*60*60*1e3;return new Date(fe).getTime()}const W=new Date().setHours(0,0,0,0),X=computed(()=>z.value.filter(ke=>e.value?ke.title.includes(e.value)&&ke.isSticky&&!ke.params:ke.isSticky&&!ke.params)),L=computed(()=>z.value.filter(ke=>e.value?ke.title.includes(e.value)&&!ke.isSticky&&J(ke.updatedAt)>=W&&!ke.params:!ke.isSticky&&J(ke.updatedAt)>=W&&!ke.params)),Q=computed(()=>z.value.filter(ke=>e.value?ke.title.includes(e.value)&&!ke.isSticky&&J(ke.updatedAt)<W&&!ke.params:!ke.isSticky&&J(ke.updatedAt)<W&&!ke.params));async function ce(ke){if(ae.value){D.info("AI回复中请稍后再试");return}const{uuid:xe}=ke;me(xe)||(await q.setActiveGroup(xe),G.name!=="Chat"&&M.replace("/chat"),m.value&&V.setSiderCollapsed(!0))}async function de(ke){R.queryMineApps(),ie(ke)}async function se(ke){event==null||event.stopPropagation(),await q.deleteGroup(ke),await q.queryMyGroup(),m.value&&V.setSiderCollapsed(!0)}const oe=useGlobalStoreWithOut();function me(ke){return q.active===ke}function Ee(){oe.updateAppDialog(!0)}return watch(()=>$.isLogin,(ke,xe)=>{ke===!0&&(R.queryMineApps(),q.queryMyGroup())},{immediate:!0}),(ke,xe)=>(openBlock(),createBlock(unref(NScrollbar),{class:"px-4"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$3,[z.value.length?(openBlock(),createElementBlock(Fragment$1,{key:1},[createBaseVNode("p",_hoisted_3$2,toDisplayString(unref(t$3)("chat.myApps")),1),(openBlock(!0),createElementBlock(Fragment$1,null,renderList(K.value?he.value:he.value.slice(0,4),fe=>(openBlock(),createElementBlock("div",{key:fe.appId,onClick:ve=>de(fe.appId),class:"relative flex items-center gap-3 px-3 py-1 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm 'text-gray-700', 'dark:bg-gray-900', 'dark:text-gray-400'"},[createBaseVNode("div",_hoisted_5$2,[fe.coverImg?(openBlock(),createElementBlock("img",{key:0,src:fe.coverImg,alt:"app cover",class:"w-full h-full object-cover"},null,8,_hoisted_6$2)):(openBlock(),createElementBlock("span",_hoisted_7$2,toDisplayString(fe.appName.charAt(0)),1))]),createBaseVNode("button",null,toDisplayString(fe.appName),1)],8,_hoisted_4$2))),128)),he.value.length>4?(openBlock(),createElementBlock("button",{key:0,class:"relative flex items-center gap-3 px-3 break-all rounded-md cursor-pointer text-gray-900 dark:text-gray-400 text-xs font-bold",onClick:xe[0]||(xe[0]=fe=>K.value=!K.value)},[createTextVNode(toDisplayString(K.value?unref(t$3)("chat.collapse"):unref(t$3)("chat.more"))+" ",1),K.value?(openBlock(),createBlock(unref(Up),{key:1,theme:"outline",size:"20"})):(openBlock(),createBlock(unref(Down),{key:0,theme:"outline",size:"20"}))])):createCommentVNode("",!0),createBaseVNode("div",{class:"relative flex items-center gap-3 px-3 py-1 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm 'text-gray-700', 'dark:bg-gray-900', 'dark:text-gray-400'",onClick:Ee},[createVNode(unref(ApplicationTwo),{theme:"outline",size:"25",class:"ml-1 mr-1 text-sm my-1 text-gray-600"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.appSquare")),1)]),X.value.length?(openBlock(),createBlock(_sfc_main$4,{key:`stickyList-${U.value}-${X.value}`,title:unref(t$3)("chat.favorites"),"data-sources":U.value?X.value:X.value.slice(0,5),onSelect:ce,onDelete:se},null,8,["title","data-sources"])):createCommentVNode("",!0),X.value.length>5?(openBlock(),createElementBlock("button",{key:2,class:"relative flex items-center gap-3 px-3 break-all rounded-md cursor-pointer text-gray-900 dark:text-gray-400 text-xs font-bold",onClick:xe[1]||(xe[1]=fe=>U.value=!U.value)},[createTextVNode(toDisplayString(U.value?unref(t$3)("chat.collapse"):unref(t$3)("chat.more"))+" ",1),U.value?(openBlock(),createBlock(unref(Up),{key:1,theme:"outline",size:"20"})):(openBlock(),createBlock(unref(Down),{key:0,theme:"outline",size:"20"}))])):createCommentVNode("",!0),L.value.length?(openBlock(),createBlock(_sfc_main$4,{key:3e3+B.value,title:unref(t$3)("chat.todayConversations"),"data-sources":L.value,onSelect:ce,onDelete:se},null,8,["title","data-sources"])):createCommentVNode("",!0),Q.value.length?(openBlock(),createBlock(_sfc_main$4,{key:4e3+B.value,title:unref(t$3)("chat.historyConversations"),"data-sources":Q.value,onSelect:ce,onDelete:se},null,8,["title","data-sources"])):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock("div",_hoisted_2$2,[createVNode(unref(_sfc_main$k),{icon:"ri:inbox-line",class:"mb-2 text-3xl"}),createBaseVNode("span",null,toDisplayString(ke.$t("common.noData")),1)]))])]),_:1}))}}),_hoisted_1$2={class:"flex flex-col gap-3 px-4 py-1 overflow-y-auto max-h-full noScrollbar",style:{"-ms-overflow-style":"none","scrollbar-width":"none"}},_hoisted_2$1={class:"flex items-center justify-between w-full my-1"},_hoisted_3$1={class:"flex items-center space-x-2"},_hoisted_4$1={class:"w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-500 flex items-center justify-center overflow-hidden shadow-sm border border-gray-300"},_hoisted_5$1=["src"],_hoisted_6$1={key:1,class:"text-sm font-medium"},_hoisted_7$1={class:"line-clamp-1 overflow-hidden text-ellipsis w-32 block whitespace-nowrap font-medium text-base text-gray-700 dark:text-gray-100"},_hoisted_8$1=createBaseVNode("span",{"aria-hidden":"true",class:"pointer-events-none absolute h-full w-full rounded-full bg-white dark:bg-transparent"},null,-1),_hoisted_9$1={class:"min-h-[2rem] text-xs line-clamp-2 text-gray-600 dark:text-gray-400 mb-2"},_sfc_main$2=defineComponent({__name:"Plugin",setup(k){const m=useChatStore(),M=ref(100),G=computed(()=>m.groupList),V=computed(()=>m.groupKeyWord),q=[],$=computed(()=>{var R;return(R=m.pluginList)!=null&&R.length?m.pluginList:q});watch(G,()=>M.value=M.value+1),watch(V,()=>M.value=M.value+1);const D=computed(()=>m.currentPlugin);G.value.filter(R=>V.value?R.title.includes(V.value)&&R.isSticky:R.isSticky);function B(R){var U;((U=D.value)==null?void 0:U.parameters)===R.parameters?m.setUsingPlugin(null):m.setUsingPlugin(R)}return onMounted(()=>{m.queryPlugins(),m.queryMyGroup()}),(R,U)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList($.value,K=>(openBlock(),createElementBlock("div",{key:K.parameters,class:"select-none relative h-26 bg-white shadow flex flex-col items-start gap-3 px-3 py-1 break-all rounded-lg cursor-pointer group font-medium dark:bg-gray-800"},[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4$1,[K.pluginImg?(openBlock(),createElementBlock("img",{key:0,src:K.pluginImg,alt:"App cover",class:"w-full h-full object-cover"},null,8,_hoisted_5$1)):(openBlock(),createElementBlock("span",_hoisted_6$1,toDisplayString(K.pluginName.charAt(0)),1))]),createBaseVNode("span",_hoisted_7$1,toDisplayString(K.pluginName),1)]),createVNode(unref(ue),{class:normalizeClass(["group relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none"]),onClick:withModifiers(z=>B(K),["prevent"])},{default:withCtx(()=>{var z,e;return[_hoisted_8$1,createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass([((z=D.value)==null?void 0:z.parameters)===K.parameters?"bg-indigo-600":"bg-gray-200 dark:bg-gray-700","pointer-events-none absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out"])},null,2),createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass([((e=D.value)==null?void 0:e.parameters)===K.parameters?"translate-x-5":"translate-x-0","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-full border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-500 shadow ring-0 transition-transform duration-200 ease-in-out"])},null,2)]}),_:2},1032,["onClick"])]),createBaseVNode("div",null,[createBaseVNode("span",_hoisted_9$1,toDisplayString(K.description),1)])]))),128))]))}}),_hoisted_1$1={class:"flex flex-col h-full flex-1"},_hoisted_2={key:0,class:"flex bg-opacity w-full justify-between items-center px-4 dark:bg-gray-900 h-14"},_hoisted_3={class:"w-full flex justify-center space-x-2 font-medium rounded-full bg-gray-100 dark:bg-gray-800 shadow-sm"},_hoisted_4={key:1,class:"flex bg-opacity w-full justify-between items-center px-4 dark:bg-gray-900 h-14"},_hoisted_5={class:"w-full py-1 text-primary-600 dark:text-gray-100 text-lg font-bold flex justify-between"},_hoisted_6=["src"],_hoisted_7={class:"mx-auto"},_hoisted_8=createBaseVNode("span",{class:"h-7 w-7"},null,-1),_hoisted_9={class:"flex-1 min-h-0 overflow-hidden"},_hoisted_10={class:"p-4 pb-1 pt-1 border-t-gray-100 dark:border-t-gray-800 flex items-center justify-between text-left w-full"},_hoisted_11={class:"w-8 h-8 mb-2 rounded-full bg-primary-600 flex items-center justify-center overflow-hidden shadow-sm border border-gray-300"},_hoisted_12=["src"],_hoisted_13={class:"py-1"},_hoisted_14=createBaseVNode("button",{type:"button",class:"inline-flex mb-2 justify-center items-center rounded-md bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-500 shadow-sm ring-1 ring-inset ring-gray-200 dark:ring-gray-800 hover:bg-opacity dark:hover:bg-gray-800 w-full"},[createBaseVNode("span",null,"登录 / 注册")],-1),_hoisted_15=[_hoisted_14],_hoisted_16={type:"button",class:"inline-flex mb-2 justify-center items-center rounded-md bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-500 shadow-sm ring-1 ring-inset ring-gray-200 dark:ring-gray-800 hover:bg-opacity dark:hover:bg-gray-800 w-full"},_hoisted_17={key:2,class:"w-full flex justify-center items-center pb-3 text-xs text-gray-500"},_hoisted_18={class:"ml-2 transition-all text-gray-500 hover:text-gray-600 dark:hover:text-gray-400",href:"https://beian.miit.gov.cn",target:"_blank"},_sfc_main$1=defineComponent({__name:"index",setup(k){var Ve;const m=useGlobalStoreWithOut(),M=useRouter(),G=useAppStore(),V=useChatStore(),q=useAuthStore(),$=ref(null),D=ref(null),B=ref(null),R=computed(()=>{var je;return Number((je=q.globalConfig)==null?void 0:je.signInStatus)===1}),U=computed(()=>G.theme==="dark"),K=computed(()=>q.userBalance),z=computed(()=>V.currentPlugin),e=useDialog(),ae=ref(0),ie=ref(0),he=ref(0),J=ref(0),W=ref(0),X=ref(0),{isMobile:L}=useBasicLayout(),Q=computed(()=>q.isLogin),ce=computed(()=>q.globalConfig.clientLogoPath||logo);computed(()=>q.globalConfig.clientHomePath||"/");const de=((Ve=q.globalConfig)==null?void 0:Ve.siteName)||"AIWeb",se=computed(()=>q.globalConfig.model3Name||t$3("chat.ordinaryPoints")),oe=computed(()=>q.globalConfig.model4Name)||t$3("chat.advancedPoints"),me=computed(()=>q.globalConfig.drawMjName)||t$3("chat.drawingPoints"),Ee=computed(()=>Number(q.globalConfig.pluginFirst)===1),ke=computed(()=>Number(q.globalConfig.isHidePlugin)===1),xe=computed(()=>q.userInfo.avatar),fe=computed(()=>G.siderCollapsed),ve=ref(!Ee.value||ke.value?"chat":"plugin"),ye=computed(()=>q.globalConfig),Ce=computed(()=>{var je,Le;return((je=ye.value)==null?void 0:je.companyName)&&((Le=ye.value)==null?void 0:Le.filingNumber)}),pe=computed(()=>V.groupList.find(Le=>Le.uuid===V.active)),_e=computed(()=>{var je;try{return JSON.parse(((je=pe.value)==null?void 0:je.config)||"{}")}catch{return{}}}),Ge=computed(()=>V==null?void 0:V.activeModelDeductType),Ae=computed(()=>{var Qe;const je=((Qe=z==null?void 0:z.value)==null?void 0:Qe.deductType)||_e.value.deductType||Ge.value;let Le,et;switch(je){case 1:Le=K.value.sumModel3Count||0,et=se.value;break;case 2:Le=K.value.sumModel4Count||0,et=oe.value;break;case 3:Le=K.value.sumDrawMjCount||0,et=me.value;break;default:Le=0,et=t$3("chat.points")}return Le>99999&&(Le="不限",et="次数"),{remainingPoints:Le,buttonText:et}});async function Ne(){await Ze(),M.replace({path:"user-center"})}async function Ze(){return new Promise(je=>{setTimeout(()=>{q.isLogin||M.replace({path:"login"}),je()},100)})}function ze(){const je=U.value?"light":"dark";G.setTheme(je)}async function Te(){e.warning({title:t$3("chat.clearConversation"),content:t$3("chat.clearAllNonFavoriteConversations"),positiveText:t$3("common.confirm"),negativeText:t$3("common.cancel"),onPositiveClick:async()=>{await V.delAllGroup(),await V.addNewChatGroup()}})}function Fe(){G.setSiderCollapsed(!fe.value)}function Pe(){Q.value?q.logOut():q.setLoginDialog(!0)}function we(){if(!Q.value){q.setLoginDialog(!0);return}m.updateSignInDialog(!0)}function Ie(){q.logOut(),M.replace("/")}const Be=computed(()=>L.value?{position:"fixed",zIndex:50}:{}),Ke=computed(()=>L.value?{paddingBottom:"env(safe-area-inset-bottom)"}:{});return watch(L,je=>{G.setSiderCollapsed(je)},{immediate:!0,flush:"post"}),watch(()=>q.userBalance.useModel3Token,(je,Le)=>{var et;ae.value=Le||0,ie.value=je||0,(et=$.value)==null||et.play()},{immediate:!0,flush:"post"}),watch(()=>q.userBalance.useModel4Token,(je,Le)=>{var et;he.value=Le||0,J.value=je||0,(et=D.value)==null||et.play()},{immediate:!0,flush:"post"}),watch(()=>q.userBalance.useDrawMjToken,(je,Le)=>{var et;W.value=Le||0,X.value=je||0,(et=B.value)==null||et.play()},{immediate:!0,flush:"post"}),(je,Le)=>(openBlock(),createElementBlock("div",null,[createVNode(unref(NLayoutSider),{collapsed:fe.value,"collapsed-width":0,width:260,"collapse-mode":"transform",position:"absolute",bordered:"",style:normalizeStyle(Be.value),onUpdateCollapsed:Fe},{default:withCtx(()=>{var et,Qe;return[createBaseVNode("div",{class:"flex flex-col h-full bg-opacity dark:bg-gray-900 select-none",style:normalizeStyle(Ke.value)},[createBaseVNode("main",_hoisted_1$1,[ke.value?(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("button",_hoisted_5,[createBaseVNode("img",{src:ce.value,alt:"Logo",class:"h-7 w-7"},null,8,_hoisted_6),createBaseVNode("span",_hoisted_7,toDisplayString(unref(de)),1),_hoisted_8])])):(openBlock(),createElementBlock("div",_hoisted_2,[createBaseVNode("div",_hoisted_3,[Ee.value?(openBlock(),createElementBlock("button",{key:0,onClick:Le[0]||(Le[0]=Ue=>ve.value="plugin"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":ve.value==="plugin","dark:text-gray-400":ve.value!=="plugin"},"block w-full rounded-full focus:outline-none py-1"])}," 插件 ",2)):createCommentVNode("",!0),createBaseVNode("button",{onClick:Le[1]||(Le[1]=Ue=>ve.value="chat"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":ve.value==="chat","dark:text-gray-400":ve.value!=="chat"},"block w-full rounded-full focus:outline-none py-1"])}," 对话 ",2),Ee.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,onClick:Le[2]||(Le[2]=Ue=>ve.value="plugin"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":ve.value==="plugin","dark:text-gray-400":ve.value!=="plugin"},"block w-full rounded-full focus:outline-none py-1"])}," 插件 ",2))])])),createBaseVNode("div",_hoisted_9,[ve.value==="chat"?(openBlock(),createBlock(_sfc_main$3,{key:0})):createCommentVNode("",!0),ve.value==="plugin"?(openBlock(),createBlock(_sfc_main$2,{key:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_10,[Q.value?(openBlock(),createBlock(unref(ge),{key:0,as:"div",class:"relative inline-block text-left"},{default:withCtx(()=>[createBaseVNode("div",null,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md pr-3 py-2 text-sm font-semibold dark:text-gray-400 text-gray-700"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_11,[xe.value?(openBlock(),createElementBlock("img",{key:0,src:xe.value,class:"w-full h-full object-cover"},null,8,_hoisted_12)):createCommentVNode("",!0),xe.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(User),{key:1,theme:"outline",size:"20",class:"text-white"}))])]),_:1})]),createVNode(Transition$1,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute w-[228px] left-0 bottom-full mb-2 origin-bottom-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800 dark:text-gray-400 text-gray-900 z-50"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_13,[createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([[Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"],"border-b border-b-gray-100 dark:border-b-gray-800"]),onClick:Te},[createVNode(unref(DeleteThemes),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.clear")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Le[3]||(Le[3]=$e=>unref(m).updateNoticeDialog(!0))},[createVNode(unref(Announcement),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.announcement")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Le[4]||(Le[4]=$e=>unref(m).updateGoodsDialog(!0))},[createVNode(unref(Commodity),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.pointsMall")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:ze},[createVNode(unref(SunOne),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.toggleTheme")),1)],2)]),_:1}),R.value?(openBlock(),createBlock(unref(be),{key:0},{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:we},[createVNode(unref(Calendar),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t$3)("chat.signInReward")),1)],2)]),_:1})):createCommentVNode("",!0),createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Le[5]||(Le[5]=$e=>Ne())},[createVNode(unref(User),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" 个人中心 ")],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:Ue})=>[createBaseVNode("a",{href:"#",class:normalizeClass([Ue?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Le[6]||(Le[6]=$e=>Ie())},[createVNode(unref(Logout),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" 退出登录 ")],2)]),_:1})])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),Q.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,onClick:Pe,class:"flex flex-1 items-center justify-center cursor-pointer"},_hoisted_15)),Q.value?(openBlock(),createElementBlock("div",{key:2,onClick:Le[7]||(Le[7]=Ue=>unref(m).updateGoodsDialog(!0)),class:"flex flex-1 items-center justify-center cursor-pointer"},[createBaseVNode("button",_hoisted_16,[createBaseVNode("span",null,toDisplayString(unref(t$3)("chat.remaining")+`${Ae.value.remainingPoints}${Ae.value.buttonText}`),1)])])):createCommentVNode("",!0)]),Ce.value&&unref(L)?(openBlock(),createElementBlock("div",_hoisted_17,[createTextVNode(" 版权所有 © "+toDisplayString((et=ye.value)==null?void 0:et.companyName)+" ",1),createBaseVNode("a",_hoisted_18,toDisplayString((Qe=ye.value)==null?void 0:Qe.filingNumber),1)])):createCommentVNode("",!0)])],4)]}),_:1},8,["collapsed","style"]),unref(L)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"fixed inset-0 z-40 bg-black/40",onClick:Fe},null,512)),[[vShow,!fe.value]]):createCommentVNode("",!0)]))}}),_hoisted_1={class:"h-full transition-all"},_sfc_main=defineComponent({__name:"chat",setup(k){const m=useMessage(),M=useRoute(),G=useRouter(),V=useAppStore(),q=useChatStore(),$=useAuthStore(),{isMobile:D}=useBasicLayout(),B=computed(()=>$.isLogin),R=computed(()=>V.siderCollapsed),U=computed(()=>M.query.appId),K=ref(0),z=ref(0),e=computed(()=>{var ce;return Number((ce=$.globalConfig)==null?void 0:ce.showWatermark)===1}),ae=ref($.userInfo.id??""),ie=computed(()=>{var ce;return Number((ce=$.globalConfig)==null?void 0:ce.isModelInherited)===1}),he=computed(()=>q.isStreamIn!==void 0?q.isStreamIn:!1);watch(B,async(ce,de)=>{ce&&!de&&(await q.queryMyGroup(),window.location.href="/chat")});const J=computed(()=>D.value?["rounded-none","shadow-none"]:["rounded-none","shadow-md","dark:border-gray-900"]),W=computed(()=>["h-full",{"pl-[260px]":!D.value&&!R.value}]);async function X(ce){if(he.value){m.info("AI回复中请稍后再试");return}q.setStreamIn(!1);try{if(ce&&ce>0)await q.addNewChatGroup(ce);else{const{modelInfo:de}=q.activeConfig;if(de&&ie.value&&q.activeGroupAppId===0){const se={modelInfo:de};await q.addNewChatGroup(0,se)}else await q.addNewChatGroup()}q.setUsingPlugin(null),D.value&&V.setSiderCollapsed(!0)}catch{}}function L(ce){K.value=ce.touches[0].clientX}function Q(ce){z.value=ce.changedTouches[0].clientX,z.value-K.value>100&&D.value&&V.setSiderCollapsed(!1)}return onMounted(()=>{window.addEventListener("touchstart",L),window.addEventListener("touchend",Q)}),onUnmounted(()=>{window.removeEventListener("touchstart",L),window.removeEventListener("touchend",Q)}),provide("createNewChatGroup",X),watch(U,async(ce,de)=>{if(ce){const se=+ce;G.replace("/chat"),await nextTick(),X(se)}},{immediate:!0}),(ce,de)=>(openBlock(),createElementBlock(Fragment$1,null,[e.value&&B.value?(openBlock(),createBlock(unref(NWatermark),{key:0,content:"#"+ae.value,cross:"",fullscreen:"","font-size":16,"line-height":16,width:384,height:384,"x-offset":12,"y-offset":60,rotate:-15},null,8,["content"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1,[createBaseVNode("div",{class:normalizeClass(["h-full overflow-hidden",J.value])},[createVNode(unref(NLayout),{class:normalizeClass(["z-40 transition",W.value]),"has-sider":""},{default:withCtx(()=>[createVNode(_sfc_main$1,{class:"h-full"}),createVNode(_sfc_main$5,{class:"w-full flex-1"})]),_:1},8,["class"])],2)])],64))}});export{_sfc_main as default};