/*! For license information please see main.61448935.js.LICENSE.txt */ (()=>{var __webpack_modules__={456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CacheProvider:()=>T,ClassNames:()=>U,Global:()=>R,ThemeContext:()=>P,css:()=>_,jsx:()=>F,keyframes:()=>L,withEmotionCache:()=>E});var r=n(5540),a=n(9950);var i=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;tf)&&(L=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var y=/[A-Z]|^ms/g,b=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!==typeof e},x=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return v(e)?e:e.replace(y,"-$&").toLowerCase()})),S=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(b,(function(e,t,n){return A={name:t,styles:n,next:A},t}))}return 1===g[e]||v(e)||"number"!==typeof t||0===t?t:t+"px"};function k(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return A={name:n.name,styles:n.styles,next:A},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)A={name:a.name,styles:a.styles,next:A},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a{"use strict";var r=n(7917);t.e$=p,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var a=r(n(9234)),i=r(n(3383));function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,a.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,a.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return h(e)>.5?p(e,t):m(e,t)}},3383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8099:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nr})},9234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8099)},7590:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(9950)),i=p(n(9561)),o=p(n(9558)),s=p(n(1426)),l=p(n(8059)),c=p(n(8233)),u=p(n(3331)),d=n(3453),h=["calendarClassName","className","onChange","value"],f=["onChange"];function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function g(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function y(){return y=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:e.props.closeCalendar,r=e.props.onChange;n&&e.closeCalendar(),r&&r(t)})),_(C(e),"onChangeFrom",(function(t,n){var r=e.props.value,a=w([].concat(r),2)[1];e.onChange([t,a],n)})),_(C(e),"onChangeTo",(function(t,n){var r=e.props.value,a=w([].concat(r),1)[0];e.onChange([a,t],n)})),_(C(e),"onFocus",(function(t){var n=e.props,r=n.disabled,a=n.onFocus,i=n.openCalendarOnFocus;if(a&&a(t),!r&&i){if("true"===t.target.getAttribute("data-select"))return;e.openCalendar()}})),_(C(e),"onKeyDown",(function(t){"Escape"===t.key&&e.closeCalendar()})),_(C(e),"openCalendar",(function(){e.setState({isOpen:!0})})),_(C(e),"closeCalendar",(function(){e.setState((function(e){return e.isOpen?{isOpen:!1}:null}))})),_(C(e),"toggleCalendar",(function(){e.setState((function(e){return{isOpen:!e.isOpen}}))})),_(C(e),"stopPropagation",(function(e){return e.stopPropagation()})),_(C(e),"clear",(function(){return e.onChange(null)})),e}return t=d,r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen!==t.isOpenProps?{isOpen:e.isOpen,isOpenProps:e.isOpen}:null}}],(n=[{key:"componentDidMount",value:function(){this.handleOutsideActionListeners()}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,r=this.props,a=r.onCalendarClose,i=r.onCalendarOpen;if(n!==t.isOpen){this.handleOutsideActionListeners();var o=n?i:a;o&&o()}}},{key:"componentWillUnmount",value:function(){this.handleOutsideActionListeners(!1)}},{key:"eventProps",get:function(){return(0,o.default)(this.props)}},{key:"handleOutsideActionListeners",value:function(e){var t=this,n=this.state.isOpen,r=("undefined"!==typeof e?e:n)?"addEventListener":"removeEventListener";P.forEach((function(e){return document[r](e,t.onOutsideAction)})),document[r]("keydown",this.onKeyDown)}},{key:"renderInputs",value:function(){var e=this.props,t=e.autoFocus,n=e.calendarAriaLabel,r=e.calendarIcon,i=e.clearAriaLabel,o=e.clearIcon,s=e.dayAriaLabel,l=e.dayPlaceholder,c=e.disableCalendar,d=e.disabled,h=e.format,f=e.locale,p=e.maxDate,m=e.maxDetail,g=e.minDate,b=e.monthAriaLabel,x=e.monthPlaceholder,S=e.name,k=e.nativeInputAriaLabel,A=e.rangeDivider,C=e.required,O=e.showLeadingZeros,_=e.value,P=e.yearAriaLabel,T=e.yearPlaceholder,E=this.state.isOpen,M=w([].concat(_),2),N=M[0],I=M[1],D={dayPlaceholder:l,monthPlaceholder:x,yearPlaceholder:T},F=v(v(v({},{dayAriaLabel:s,monthAriaLabel:b,nativeInputAriaLabel:k,yearAriaLabel:P}),D),{},{className:"".concat(j,"__inputGroup"),disabled:d,format:h,isCalendarOpen:E,locale:f,maxDate:p,maxDetail:m,minDate:g,required:C,showLeadingZeros:O});return a.default.createElement("div",{className:"".concat(j,"__wrapper")},a.default.createElement(u.default,y({},F,{autoFocus:t,name:"".concat(S,"_from"),onChange:this.onChangeFrom,returnValue:"start",value:N})),a.default.createElement("span",{className:"".concat(j,"__range-divider")},A),a.default.createElement(u.default,y({},F,{name:"".concat(S,"_to"),onChange:this.onChangeTo,returnValue:"end",value:I})),null!==o&&a.default.createElement("button",{"aria-label":i,className:"".concat(j,"__clear-button ").concat(j,"__button"),disabled:d,onClick:this.clear,onFocus:this.stopPropagation,type:"button"},o),null!==r&&!c&&a.default.createElement("button",{"aria-label":n,className:"".concat(j,"__calendar-button ").concat(j,"__button"),disabled:d,onBlur:this.resetValue,onClick:this.toggleCalendar,onFocus:this.stopPropagation,type:"button"},r))}},{key:"renderCalendar",value:function(){var e=this.props.disableCalendar,t=this.state.isOpen;if(null===t||e)return null;var n=this.props,r=n.calendarClassName,i=(n.className,n.onChange,n.value),o=g(n,h),u="".concat(j,"__calendar");return a.default.createElement(c.default,null,a.default.createElement("div",{ref:function(e){e&&!t&&e.removeAttribute("style")},className:(0,s.default)(u,"".concat(u,"--").concat(t?"open":"closed"))},a.default.createElement(l.default,y({className:r,onChange:this.onChange,selectRange:!0,value:i||null},o))))}},{key:"render",value:function(){var e=this,t=this.eventProps,n=this.props,r=n.className,i=n.disabled,o=this.state.isOpen,l=(t.onChange,g(t,f));return a.default.createElement("div",y({className:(0,s.default)(j,"".concat(j,"--").concat(o?"open":"closed"),"".concat(j,"--").concat(i?"disabled":"enabled"),r)},l,{onFocus:this.onFocus,ref:function(t){t&&(e.wrapper=t)}}),this.renderInputs(),this.renderCalendar())}}])&&S(t.prototype,n),r&&S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.PureComponent);t.default=T;var E={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},M=a.default.createElement("svg",y({},E,{className:"".concat(j,"__calendar-button__icon ").concat(j,"__button__icon")}),a.default.createElement("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),a.default.createElement("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),a.default.createElement("line",{x1:"13",x2:"13",y1:"0",y2:"4"})),N=a.default.createElement("svg",y({},E,{className:"".concat(j,"__clear-button__icon ").concat(j,"__button__icon")}),a.default.createElement("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),a.default.createElement("line",{x1:"15",x2:"4",y1:"4",y2:"15"}));T.defaultProps={calendarIcon:M,clearIcon:N,closeCalendar:!0,isOpen:null,name:"daterange",openCalendarOnFocus:!0,rangeDivider:"\u2013"};var I=i.default.oneOfType([i.default.string,i.default.instanceOf(Date)]);T.propTypes={autoFocus:i.default.bool,calendarAriaLabel:i.default.string,calendarClassName:i.default.oneOfType([i.default.string,i.default.arrayOf(i.default.string)]),calendarIcon:i.default.node,className:i.default.oneOfType([i.default.string,i.default.arrayOf(i.default.string)]),clearAriaLabel:i.default.string,clearIcon:i.default.node,closeCalendar:i.default.bool,dayAriaLabel:i.default.string,dayPlaceholder:i.default.string,disableCalendar:i.default.bool,disabled:i.default.bool,format:i.default.string,isOpen:i.default.bool,locale:i.default.string,maxDate:d.isMaxDate,maxDetail:i.default.oneOf(["century","decade","year","month"]),minDate:d.isMinDate,monthAriaLabel:i.default.string,monthPlaceholder:i.default.string,name:i.default.string,nativeInputAriaLabel:i.default.string,onCalendarClose:i.default.func,onCalendarOpen:i.default.func,onChange:i.default.func,onFocus:i.default.func,openCalendarOnFocus:i.default.bool,rangeDivider:i.default.node,required:i.default.bool,returnValue:i.default.oneOf(["start","end","range"]),showLeadingZeros:i.default.bool,value:i.default.oneOfType([I,i.default.arrayOf(I)]),yearAriaLabel:i.default.string,yearPlaceholder:i.default.string}},7337:(e,t,n)=>{"use strict";t.A=void 0,n(7530);var r,a=(r=n(7590))&&r.__esModule?r:{default:r};n(6484);var i=a.default;t.A=i},3453:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isMinDate=t.isMaxDate=void 0;t.isMinDate=function(e,t,r){var a=e[t];if(!a)return null;if(!(a instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(n(a),"` supplied to `").concat(r,"`, expected instance of `Date`."));var i=e.maxDate;return i&&a>i?new Error("Invalid prop `".concat(t,"` of type `").concat(n(a),"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,r){var a=e[t];if(!a)return null;if(!(a instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(n(a),"` supplied to `").concat(r,"`, expected instance of `Date`."));var i=e.minDate;return i&&a{"use strict";function r(e){i.length||(a(),!0),i[i.length]=e}e.exports=r;var a,i=[],o=0,s=1024;function l(){for(;os){for(var t=0,n=i.length-o;t{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=(e.type||"").toLowerCase(),i=a.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):a===t}))}return!0}},6011:(e,t,n)=>{e.exports=n(8810)},8394:(e,t,n)=>{"use strict";var r=n(4950),a=n(3244),i=n(8090),o=n(5704),s=n(8801),l=n(5850),c=n(5216),u=n(9645);e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers,f=e.responseType;r.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var y=s(e.baseURL,e.url);function b(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};a(t,n,i),p=null}}if(p.open(e.method.toUpperCase(),o(y,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(b)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||c(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(h[e.xsrfHeaderName]=v)}"setRequestHeader"in p&&r.forEach(h,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},8810:(e,t,n)=>{"use strict";var r=n(4950),a=n(2498),i=n(3213),o=n(7549);function s(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(n(2869));l.Axios=i,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(2938),l.CancelToken=n(3209),l.isCancel=n(4638),l.all=function(e){return Promise.all(e)},l.spread=n(650),l.isAxiosError=n(5509),e.exports=l,e.exports.default=l},2938:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3209:(e,t,n)=>{"use strict";var r=n(2938);function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},4638:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3213:(e,t,n)=>{"use strict";var r=n(4950),a=n(5704),i=n(7805),o=n(4012),s=n(7549),l=n(3807),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[o,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),a=Promise.resolve(e);u.length;)a=a.then(u.shift(),u.shift());return a}for(var d=e;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(p){f(p);break}}try{a=o(d)}catch(p){return Promise.reject(p)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},u.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},7805:(e,t,n)=>{"use strict";var r=n(4950);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},8801:(e,t,n)=>{"use strict";var r=n(1831),a=n(8066);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},9645:(e,t,n)=>{"use strict";var r=n(9531);e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},4012:(e,t,n)=>{"use strict";var r=n(4950),a=n(2115),i=n(4638),o=n(2869);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9531:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7549:(e,t,n)=>{"use strict";var r=n(4950);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=l(void 0,e[a])):n[a]=l(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(i,c),r.forEach(o,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=l(void 0,e[a])):n[a]=l(void 0,t[a])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=a.concat(i).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},3244:(e,t,n)=>{"use strict";var r=n(9645);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2115:(e,t,n)=>{"use strict";var r=n(4950),a=n(2869);e.exports=function(e,t,n){var i=this||a;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},2869:(e,t,n)=>{"use strict";var r=n(4950),a=n(5180),i=n(9531),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8394)),e}(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},2498:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4950);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},8066:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},8090:(e,t,n)=>{"use strict";var r=n(4950);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1831:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5509:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},5216:(e,t,n)=>{"use strict";var r=n(4950);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},5180:(e,t,n)=>{"use strict";var r=n(4950);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},5850:(e,t,n)=>{"use strict";var r=n(4950),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},650:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},3807:(e,t,n)=>{"use strict";var r=n(4198),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var i=r[a],o=t[i];if(o){var s=e[i],l=void 0===s||o(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},4950:(e,t,n)=>{"use strict";var r=n(2498),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{var r=n(1942),a=n(6356),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(a(e)+" is not a function")}},9423:(e,t,n)=>{var r=n(9441),a=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(a(e)+" is not an object")}},9184:(e,t,n)=>{var r=n(8818),a=n(8613),i=n(3963),o=function(e){return function(t,n,o){var s,l=r(t),c=i(l),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},2991:(e,t,n)=>{var r=n(4519);e.exports=r([].slice)},8635:(e,t,n)=>{var r=n(4519),a=r({}.toString),i=r("".slice);e.exports=function(e){return i(a(e),8,-1)}},2407:(e,t,n)=>{var r=n(4312),a=n(7142),i=n(7554),o=n(7440);e.exports=function(e,t,n){for(var s=a(t),l=o.f,c=i.f,u=0;u{var r=n(7787),a=n(7440),i=n(8149);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},8149:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1887:(e,t,n)=>{var r=n(2300),a=n(7440);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),a.f(e,t,n)}},6163:(e,t,n)=>{var r=n(1942),a=n(7440),i=n(2300),o=n(7616);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},7616:(e,t,n)=>{var r=n(9662),a=Object.defineProperty;e.exports=function(e,t){try{a(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},7787:(e,t,n)=>{var r=n(9680);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5174:e=>{var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},1820:(e,t,n)=>{var r=n(9662),a=n(9441),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},5120:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},2784:(e,t,n)=>{var r=n(8591);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},2777:(e,t,n)=>{var r=n(8635);e.exports="undefined"!=typeof process&&"process"==r(process)},8591:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6103:(e,t,n)=>{var r,a,i=n(9662),o=n(8591),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(a=+r[1]),e.exports=a},1748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2983:(e,t,n)=>{var r=n(9662),a=n(7554).f,i=n(4734),o=n(6163),s=n(7616),l=n(2407),c=n(9811);e.exports=function(e,t){var n,u,d,h,f,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(f=a(n,u))&&f.value:n[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),o(n,u,h,e)}}},9680:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},2404:(e,t,n)=>{var r=n(2813),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},6752:(e,t,n)=>{var r=n(7637),a=n(19),i=n(2813),o=r(r.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2813:(e,t,n)=>{var r=n(9680);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1126:(e,t,n)=>{var r=n(2813),a=Function.prototype.call;e.exports=r?a.bind(a):function(){return a.apply(a,arguments)}},1205:(e,t,n)=>{var r=n(7787),a=n(4312),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=a(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},7637:(e,t,n)=>{var r=n(8635),a=n(4519);e.exports=function(e){if("Function"===r(e))return a(e)}},4519:(e,t,n)=>{var r=n(2813),a=Function.prototype,i=a.call,o=r&&a.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},3922:(e,t,n)=>{var r=n(9662),a=n(1942),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},6747:(e,t,n)=>{var r=n(19),a=n(5404);e.exports=function(e,t){var n=e[t];return a(n)?void 0:r(n)}},9662:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},4312:(e,t,n)=>{var r=n(4519),a=n(6262),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},3766:e=>{e.exports={}},5604:(e,t,n)=>{var r=n(3922);e.exports=r("document","documentElement")},980:(e,t,n)=>{var r=n(7787),a=n(9680),i=n(1820);e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4150:(e,t,n)=>{var r=n(4519),a=n(9680),i=n(8635),o=Object,s=r("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):o(e)}:o},971:(e,t,n)=>{var r=n(4519),a=n(1942),i=n(1804),o=r(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},8040:(e,t,n)=>{var r,a,i,o=n(7515),s=n(9662),l=n(9441),c=n(4734),u=n(4312),d=n(1804),h=n(7910),f=n(3766),p="Object already initialized",m=s.TypeError,g=s.WeakMap;if(o||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw m(p);return t.facade=e,y.set(e,t),t},a=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var b=h("state");f[b]=!0,r=function(e,t){if(u(e,b))throw m(p);return t.facade=e,c(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:r,get:a,has:i,enforce:function(e){return i(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},1942:(e,t,n)=>{var r=n(5174),a=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},9811:(e,t,n)=>{var r=n(9680),a=n(1942),i=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==u||n!=c&&(a(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},5404:e=>{e.exports=function(e){return null===e||void 0===e}},9441:(e,t,n)=>{var r=n(1942),a=n(5174),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},7372:e=>{e.exports=!1},3598:(e,t,n)=>{var r=n(3922),a=n(1942),i=n(4236),o=n(7579),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return a(t)&&i(t.prototype,s(e))}},3963:(e,t,n)=>{var r=n(3109);e.exports=function(e){return r(e.length)}},2300:(e,t,n)=>{var r=n(4519),a=n(9680),i=n(1942),o=n(4312),s=n(7787),l=n(1205).CONFIGURABLE,c=n(971),u=n(8040),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),b=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=d(e);return o(r,"source")||(r.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||c(this)}),"toString")},6820:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},7440:(e,t,n)=>{var r=n(7787),a=n(980),i=n(6009),o=n(9423),s=n(8474),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?i?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),a)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7554:(e,t,n)=>{var r=n(7787),a=n(1126),i=n(2194),o=n(8149),s=n(8818),l=n(8474),c=n(4312),u=n(980),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},2903:(e,t,n)=>{var r=n(2169),a=n(1748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},4798:(e,t)=>{t.f=Object.getOwnPropertySymbols},4236:(e,t,n)=>{var r=n(4519);e.exports=r({}.isPrototypeOf)},2169:(e,t,n)=>{var r=n(4519),a=n(4312),i=n(8818),o=n(9184).indexOf,s=n(3766),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!a(s,n)&&a(r,n)&&l(u,n);for(;t.length>c;)a(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},2194:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7329:(e,t,n)=>{var r=n(1126),a=n(1942),i=n(9441),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&a(n=e.toString)&&!i(s=r(n,e)))return s;if(a(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&a(n=e.toString)&&!i(s=r(n,e)))return s;throw o("Can't convert object to primitive value")}},7142:(e,t,n)=>{var r=n(3922),a=n(4519),i=n(2903),o=n(4798),s=n(9423),l=a([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=o.f;return n?l(t,n(e)):t}},2322:(e,t,n)=>{var r=n(9662);e.exports=r},1978:(e,t,n)=>{"use strict";var r=n(9423);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3563:(e,t,n)=>{var r=n(5404),a=TypeError;e.exports=function(e){if(r(e))throw a("Can't call method on "+e);return e}},4521:(e,t,n)=>{"use strict";var r=n(9662),a=n(2404),i=n(1942),o=n(5120),s=n(8591),l=n(2991),c=n(6983),u=r.Function,d=/MSIE .\./.test(s)||o&&function(){var e=r.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,o){var s=c(arguments.length,1)>n,d=i(r)?r:u(r),h=s?l(arguments,n):[],f=s?function(){a(d,this,h)}:d;return t?e(f,o):e(f)}:e}},7910:(e,t,n)=>{var r=n(8212),a=n(8743),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},1804:(e,t,n)=>{var r=n(9662),a=n(7616),i="__core-js_shared__",o=r[i]||a(i,{});e.exports=o},8212:(e,t,n)=>{var r=n(7372),a=n(1804);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4066:(e,t,n)=>{var r=n(6103),a=n(9680);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},3748:(e,t,n)=>{var r,a,i,o,s=n(9662),l=n(2404),c=n(6752),u=n(1942),d=n(4312),h=n(9680),f=n(5604),p=n(2991),m=n(1820),g=n(6983),y=n(2784),b=n(2777),v=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,k=s.Function,A=s.MessageChannel,C=s.String,O=0,_={},j="onreadystatechange";h((function(){r=s.location}));var P=function(e){if(d(_,e)){var t=_[e];delete _[e],t()}},T=function(e){return function(){P(e)}},E=function(e){P(e.data)},M=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};v&&w||(v=function(e){g(arguments.length,1);var t=u(e)?e:k(e),n=p(arguments,1);return _[++O]=function(){l(t,void 0,n)},a(O),O},w=function(e){delete _[e]},b?a=function(e){x.nextTick(T(e))}:S&&S.now?a=function(e){S.now(T(e))}:A&&!y?(o=(i=new A).port2,i.port1.onmessage=E,a=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(M)?(a=M,s.addEventListener("message",E,!1)):a=j in m("script")?function(e){f.appendChild(m("script"))[j]=function(){f.removeChild(this),P(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:v,clear:w}},8613:(e,t,n)=>{var r=n(78),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},8818:(e,t,n)=>{var r=n(4150),a=n(3563);e.exports=function(e){return r(a(e))}},78:(e,t,n)=>{var r=n(6820);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},3109:(e,t,n)=>{var r=n(78),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},6262:(e,t,n)=>{var r=n(3563),a=Object;e.exports=function(e){return a(r(e))}},5264:(e,t,n)=>{var r=n(1126),a=n(9441),i=n(3598),o=n(6747),s=n(7329),l=n(1956),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!a(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8474:(e,t,n)=>{var r=n(5264),a=n(3598);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},6356:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},8743:(e,t,n)=>{var r=n(4519),a=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},7579:(e,t,n)=>{var r=n(4066);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6009:(e,t,n)=>{var r=n(7787),a=n(9680);e.exports=r&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6983:e=>{var t=TypeError;e.exports=function(e,n){if(e{var r=n(9662),a=n(1942),i=r.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},5970:(e,t,n)=>{var r=n(2322),a=n(4312),i=n(9324),o=n(7440).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},9324:(e,t,n)=>{var r=n(1956);t.f=r},1956:(e,t,n)=>{var r=n(9662),a=n(8212),i=n(4312),o=n(8743),s=n(4066),l=n(7579),c=r.Symbol,u=a("wks"),d=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},1072:(e,t,n)=>{var r=n(9662),a=n(7787),i=n(1887),o=n(1978),s=n(9680),l=r.RegExp,c=l.prototype;a&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)a(o,i[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:o})},9932:(e,t,n)=>{n(5970)("dispose")},3388:(e,t,n)=>{n(5970)("observable")},9075:(e,t,n)=>{n(5970)("patternMatch")},9115:(e,t,n)=>{var r=n(2983),a=n(9662),i=n(3748).clear;r({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==i},{clearImmediate:i})},4371:(e,t,n)=>{n(9115),n(954)},954:(e,t,n)=>{var r=n(2983),a=n(9662),i=n(3748).set,o=n(4521),s=a.setImmediate?o(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},4441:function(e,t,n){var r;!function(a){"use strict";var i,o=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",h=Math.floor,f=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,g=7,y=9007199254740991,b=h(y/g),v={};function w(e,t){var n,r,a,i,o,s,c,u,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?T(t,h):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),i=o-a){for(i<0?(r=c,i=-i,s=u.length):(r=u,a=o,s=c.length),i>(s=(o=Math.ceil(h/g))>s?o+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/m|0,c[i]%=m;for(n&&(c.unshift(n),++a),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=a,l?T(t,h):t}function x(e,t,n){if(e!==~~e||en)throw Error(u+e)}function S(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(a=e.d.length)?r:a;te.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*g;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return k(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return T(k(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return C(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(l=!1,t=k(j(n,o),j(e,o),o),l=!0,T(t,a))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?E(t,e):w(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=k(n,e,0,1).times(e),l=!0,n.minus(t)):T(new r(n),a)},v.naturalExponential=v.exp=function(){return A(this)},v.naturalLogarithm=v.ln=function(){return j(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?w(t,e):E(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,a=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=C(a)+1,n=(r=a.d.length-1)*g+1,r=a.d[r]){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,a,i,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=C(s),l=!1,0==(a=Math.sqrt(+s))||a==1/0?(((t=S(s.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=h((e+1)/2)-(e<0||e%2),r=new u(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(a.toString()),a=o=(n=u.precision)+3;;)if(r=(i=r).plus(k(s,i,o+2)).times(.5),S(i.d).slice(0,o)===(t=S(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&"4999"==t){if(T(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;o+=4}return l=!0,T(r,n)},v.times=v.mul=function(e){var t,n,r,a,i,o,s,c,u,d=this,h=d.constructor,f=d.d,p=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,(c=f.length)<(u=p.length)&&(i=f,f=p,p=i,o=c,c=u,u=o),i=[],r=o=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)s=i[a]+p[r]*f[a-r-1]+t,i[a--]=s%m|0,t=s/m|0;i[a]=(i[a]+t)%m|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?T(e,h.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,o),void 0===t?t=r.rounding:x(t,0,8),T(n,e+C(n)+1,t))},v.toExponential=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=M(r,!0):(x(e,0,o),void 0===t?t=a.rounding:x(t,0,8),n=M(r=T(new a(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?M(a):(x(e,0,o),void 0===t?t=i.rounding:x(t,0,8),n=M((r=T(new i(a),e+C(a)+1,t)).abs(),!1,e+C(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return T(new t(e),C(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,a,o,s,u=this,d=u.constructor,f=+(e=new d(e));if(!e.s)return new d(i);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(r=d.precision,e.eq(i))return T(u,r);if(s=(t=e.e)>=(n=e.d.length-1),o=u.s,s){if((n=f<0?-f:f)<=y){for(a=new d(i),t=Math.ceil(r/g+4),l=!1;n%2&&N((a=a.times(u)).d,t),0!==(n=h(n/2));)N((u=u.times(u)).d,t);return l=!0,e.s<0?new d(i).div(a):T(a,r)}}else if(o<0)throw Error(c+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,a=e.times(j(u,r+12)),l=!0,(a=A(a)).s=o,a},v.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?r=M(a,(n=C(a))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,o),void 0===t?t=i.rounding:x(t,0,8),r=M(a=T(new i(a),e,t),e<=(n=C(a))||n<=i.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,o),void 0===t?t=n.rounding:x(t,0,8)),T(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=C(e),n=e.constructor;return M(e,t<=n.toExpNeg||t>=n.toExpPos)};var k=function(){function e(e,t){var n,r=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+r,e[a]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,a,i,o){var s,l,u,d,h,f,p,y,b,v,w,x,S,k,A,O,_,j,P=r.constructor,E=r.s==a.s?1:-1,M=r.d,N=a.d;if(!r.s)return new P(r);if(!a.s)throw Error(c+"Division by zero");for(l=r.e-a.e,_=N.length,A=M.length,y=(p=new P(E)).d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,(x=null==i?i=P.precision:o?i+(C(r)-C(a))+1:i)<0)return new P(0);if(x=x/g+2|0,u=0,1==_)for(d=0,N=N[0],x++;(u1&&(N=e(N,d),M=e(M,d),_=N.length,A=M.length),k=_,v=(b=M.slice(0,_)).length;v<_;)b[v++]=0;(j=N.slice()).unshift(0),O=N[0],N[1]>=m/2&&++O;do{d=0,(s=t(N,b,_,v))<0?(w=b[0],_!=v&&(w=w*m+(b[1]||0)),(d=w/O|0)>1?(d>=m&&(d=m-1),1==(s=t(h=e(N,d),b,f=h.length,v=b.length))&&(d--,n(h,_16)throw Error(d+C(e));if(!e.s)return new h(i);for(null==t?(l=!1,s=p):s=t,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(s+=Math.log(f(2,u))/Math.LN10*2+5|0,n=r=a=new h(i),h.precision=s;;){if(r=T(r.times(e),s),n=n.times(++c),S((o=a.plus(k(r,n,s))).d).slice(0,s)===S(a.d).slice(0,s)){for(;u--;)a=T(a.times(a),s);return h.precision=p,null==t?(l=!0,T(a,p)):a}a=o}}function C(e){for(var t=e.e*g,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return T(new e(e.LN10),t)}function _(e){for(var t="";e--;)t+="0";return t}function j(e,t){var n,r,a,o,s,u,d,h,f,p=1,m=e,g=m.d,y=m.constructor,b=y.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new y(0);if(null==t?(l=!1,h=b):h=t,m.eq(10))return null==t&&(l=!0),O(y,h);if(h+=10,y.precision=h,r=(n=S(g)).charAt(0),o=C(m),!(Math.abs(o)<15e14))return d=O(y,h+2,b).times(o+""),m=j(new y(r+"."+n.slice(1)),h-10).plus(d),y.precision=b,null==t?(l=!0,T(m,b)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=S((m=m.times(e)).d)).charAt(0),p++;for(o=C(m),r>1?(m=new y("0."+n),o++):m=new y(r+"."+n.slice(1)),u=s=m=k(m.minus(i),m.plus(i),h),f=T(m.times(m),h),a=3;;){if(s=T(s.times(f),h),S((d=u.plus(k(s,new y(a),h))).d).slice(0,h)===S(u.d).slice(0,h))return u=u.times(2),0!==o&&(u=u.plus(O(y,h+2,b).times(o+""))),u=k(u,new y(p),h),y.precision=b,null==t?(l=!0,T(u,b)):u;u=d,a+=2}}function P(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(a=t.length;48===t.charCodeAt(a-1);)--a;if(t=t.slice(r,a)){if(a-=r,n=n-r-1,e.e=h(n/g),e.d=[],r=(n+1)%g,n<0&&(r+=g),rb||e.e<-b))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,t,n){var r,a,i,o,s,c,u,p,y=e.d;for(o=1,i=y[0];i>=10;i/=10)o++;if((r=t-o)<0)r+=g,a=t,u=y[p=0];else{if((p=Math.ceil((r+1)/g))>=(i=y.length))return e;for(u=i=y[p],o=1;i>=10;i/=10)o++;a=(r%=g)-g+o}if(void 0!==n&&(s=u/(i=f(10,o-a-1))%10|0,c=t<0||void 0!==y[p+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?a>0?u/f(10,o-a):0:y[p-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return c?(i=C(e),y.length=1,t=t-i-1,y[0]=f(10,(g-t%g)%g),e.e=h(-t/g)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=p,i=1,p--):(y.length=p+1,i=f(10,g-r),y[p]=a>0?(u/f(10,o-a)%f(10,a)|0)*i:0),c)for(;;){if(0==p){(y[0]+=i)==m&&(y[0]=1,++e.e);break}if(y[p]+=i,y[p]!=m)break;y[p--]=0,i=1}for(r=y.length;0===y[--r];)y.pop();if(l&&(e.e>b||e.e<-b))throw Error(d+C(e));return e}function E(e,t){var n,r,a,i,o,s,c,u,d,h,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?T(t,p):t;if(c=e.d,h=t.d,r=t.e,u=e.e,c=c.slice(),o=u-r){for((d=o<0)?(n=c,o=-o,s=h.length):(n=h,r=u,s=c.length),o>(a=Math.max(Math.ceil(p/g),s)+2)&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for((d=(a=c.length)<(s=h.length))&&(s=a),a=0;a0;--a)c[s++]=0;for(a=h.length;a>o;){if(c[--a]0?i=i.charAt(0)+"."+i.slice(1)+_(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+_(-a-1)+i,n&&(r=n-o)>0&&(i+=_(r))):a>=o?(i+=_(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+_(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=_(r))),e.s<0?"-"+i:i}function N(e,t){if(e.length>t)return e.length=t,!0}function I(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,a=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=a[t+1]&&r<=a[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}s=function e(t){var n,r,a;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):P(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(u+e);P(t,e)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=I,void 0===t&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a{"use strict";n.r(t),n.d(t,{default:()=>l,getUserLocale:()=>s,getUserLocales:()=>o});var r=n(1712),a=n.n(r);function i(e){return JSON.stringify(e)}var o=a()((function(e){var t,n=void 0===e?{}:e,r=n.useFallbackLocale,a=void 0===r||r,i=n.fallbackLocale,o=void 0===i?"en-US":i,s=[];if("undefined"!==typeof window){var l=window.navigator;s=s.concat(l.languages,l.language,l.userLanguage,l.browserLanguage,l.systemLanguage)}return a&&s.push(o),function(e){return e.map((function(e){if(!e||-1===e.indexOf("-")||e.toLowerCase()!==e)return e;var t=e.split("-");return t[0]+"-"+t[1].toUpperCase()}))}((t=s).filter((function(e,n){return e&&t.indexOf(e)===n})))}),i);var s=a()((function(e){return o(e)[0]||null}),i);const l=s},3876:(e,t,n)=>{"use strict";var r=n(6429),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var a=f(n);a&&a!==p&&e(t,a,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},1712:(e,t,n)=>{var r="Expected a function",a="__lodash_hash_undefined__",i="[object Function]",o="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();var d=Array.prototype,h=Function.prototype,f=Object.prototype,p=u["__core-js_shared__"],m=function(){var e=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g=h.toString,y=f.hasOwnProperty,b=f.toString,v=RegExp("^"+g.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.splice,x=P(u,"Map"),S=P(Object,"create");function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},A.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new k,map:new(x||A),string:new k}},C.prototype.delete=function(e){return j(this,e).delete(e)},C.prototype.get=function(e){return j(this,e).get(e)},C.prototype.has=function(e){return j(this,e).has(e)},C.prototype.set=function(e,t){return j(this,e).set(e,t),this},T.Cache=C,e.exports=T},53:(e,t,n)=>{var r=n(220)(n(4759),"DataView");e.exports=r},1111:(e,t,n)=>{var r=n(6958),a=n(1176),i=n(1787),o=n(231),s=n(7455);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(5088),a=n(150),i=n(7889),o=n(4349),s=n(3077);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(220)(n(4759),"Map");e.exports=r},4467:(e,t,n)=>{var r=n(738),a=n(708),i=n(6823),o=n(475),s=n(7859);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(220)(n(4759),"Promise");e.exports=r},7887:(e,t,n)=>{var r=n(220)(n(4759),"Set");e.exports=r},6669:(e,t,n)=>{var r=n(4467),a=n(2274),i=n(2138);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(5661),a=n(4710),i=n(8384),o=n(7379),s=n(799),l=n(2791);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},4635:(e,t,n)=>{var r=n(4759).Symbol;e.exports=r},8246:(e,t,n)=>{var r=n(4759).Uint8Array;e.exports=r},4801:(e,t,n)=>{var r=n(220)(n(4759),"WeakMap");e.exports=r},5507:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},6675:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n{var r=n(1049);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},3259:e=>{e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r{var r=n(4102),a=n(4578),i=n(4660),o=n(6794),s=n(7059),l=n(1641),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}},1570:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},5099:(e,t,n)=>{var r=n(4206);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},366:(e,t,n)=>{var r=n(8925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},927:(e,t,n)=>{var r=n(423),a=n(3267)(r);e.exports=a},2817:(e,t,n)=>{var r=n(927);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,a){return n=!!t(e,r,a)})),n}},2057:(e,t,n)=>{var r=n(184);e.exports=function(e,t,n){for(var a=-1,i=e.length;++a{e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i{var r=n(7518),a=n(7989);e.exports=function e(t,n,i,o,s){var l=-1,c=t.length;for(i||(i=a),s||(s=[]);++l0&&i(u)?n>1?e(u,n-1,i,o,s):r(s,u):o||(s[s.length]=u)}return s}},3031:(e,t,n)=>{var r=n(5211)();e.exports=r},423:(e,t,n)=>{var r=n(3031),a=n(5724);e.exports=function(e,t){return e&&r(e,t,a)}},52:(e,t,n)=>{var r=n(6463),a=n(2535);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n{var r=n(7518),a=n(4660);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},2022:(e,t,n)=>{var r=n(4635),a=n(1581),i=n(5336),o="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:o:l&&l in Object(e)?a(e):i(e)}},2033:e=>{e.exports=function(e,t){return e>t}},4591:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1049:(e,t,n)=>{var r=n(6993),a=n(5381),i=n(7825);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,a,n)}},3012:(e,t,n)=>{var r=n(2022),a=n(9248),i="[object Arguments]";e.exports=function(e){return a(e)&&r(e)==i}},1404:(e,t,n)=>{var r=n(2130),a=n(9248);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!==t&&n!==n:r(t,n,i,o,e,s))}},2130:(e,t,n)=>{var r=n(5535),a=n(9757),i=n(1416),o=n(6195),s=n(5531),l=n(4660),c=n(6794),u=n(1641),d=1,h="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,b){var v=l(e),w=l(t),x=v?f:s(e),S=w?f:s(t),k=(x=x==h?p:x)==p,A=(S=S==h?p:S)==p,C=x==S;if(C&&c(e)){if(!c(t))return!1;v=!0,k=!1}if(C&&!k)return b||(b=new r),v||u(e)?a(e,t,n,g,y,b):i(e,t,x,n,g,y,b);if(!(n&d)){var O=k&&m.call(e,"__wrapped__"),_=A&&m.call(t,"__wrapped__");if(O||_){var j=O?e.value():e,P=_?t.value():t;return b||(b=new r),y(j,P,n,g,b)}}return!!C&&(b||(b=new r),o(e,t,n,g,y,b))}},4489:(e,t,n)=>{var r=n(5535),a=n(1404),i=1,o=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++l{e.exports=function(e){return e!==e}},7949:(e,t,n)=>{var r=n(3008),a=n(3306),i=n(4567),o=n(9131),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?h:s).test(o(e))}},8183:(e,t,n)=>{var r=n(2022),a=n(5776),i=n(9248),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},5127:(e,t,n)=>{var r=n(9769),a=n(4104),i=n(9002),o=n(4660),s=n(8857);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):r(e):s(e)}},7462:(e,t,n)=>{var r=n(2161),a=n(5112),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7646:e=>{e.exports=function(e,t){return e{var r=n(927),a=n(7840);e.exports=function(e,t){var n=-1,i=a(e)?Array(e.length):[];return r(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}},9769:(e,t,n)=>{var r=n(4489),a=n(3334),i=n(4243);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4104:(e,t,n)=>{var r=n(1404),a=n(7946),i=n(5321),o=n(5916),s=n(9794),l=n(4243),c=n(2535),u=1,d=2;e.exports=function(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=a(n,e);return void 0===o&&o===t?i(n,e):r(t,o,u|d)}}},8245:(e,t,n)=>{var r=n(1570),a=n(52),i=n(5127),o=n(6602),s=n(7311),l=n(5639),c=n(8152),u=n(9002),d=n(4660);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return a(t,1===e.length?e[0]:e)}:e})):[u];var h=-1;t=r(t,l(i));var f=o(e,(function(e,n,a){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return s(f,(function(e,t){return c(e,t,n)}))}},9343:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4753:(e,t,n)=>{var r=n(52);e.exports=function(e){return function(t){return r(t,e)}}},4181:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,a,i){for(var o=-1,s=n(t((r-e)/(a||1)),0),l=Array(s);s--;)l[i?s:++o]=e,e+=a;return l}},516:(e,t,n)=>{var r=n(9002),a=n(4295),i=n(1043);e.exports=function(e,t){return i(a(e,t,r),e+"")}},5148:(e,t,n)=>{var r=n(6800),a=n(8925),i=n(9002),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},4978:e=>{e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r{var r=n(927);e.exports=function(e,t){var n;return r(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}},7311:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},4102:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(4635),a=n(1570),i=n(4660),o=n(184),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},6914:(e,t,n)=>{var r=n(8798),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},5639:e=>{e.exports=function(e){return function(t){return e(t)}}},564:(e,t,n)=>{var r=n(6669),a=n(3107),i=n(3259),o=n(3445),s=n(3739),l=n(6557),c=200;e.exports=function(e,t,n){var u=-1,d=a,h=e.length,f=!0,p=[],m=p;if(n)f=!1,d=i;else if(h>=c){var g=t?null:s(e);if(g)return l(g);f=!1,d=o,m=new r}else m=t?[]:p;e:for(;++u{e.exports=function(e,t){return e.has(t)}},6463:(e,t,n)=>{var r=n(4660),a=n(5916),i=n(7044),o=n(4008);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(o(e))}},6212:(e,t,n)=>{var r=n(4978);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}},656:(e,t,n)=>{var r=n(184);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e===e,o=r(e),s=void 0!==t,l=null===t,c=t===t,u=r(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||a&&s&&c||!n&&c||!i)return 1;if(!a&&!o&&!u&&e{var r=n(656);e.exports=function(e,t,n){for(var a=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++a=l?c:c*("desc"==n[a]?-1:1)}return e.index-t.index}},4123:(e,t,n)=>{var r=n(4759)["__core-js_shared__"];e.exports=r},3267:(e,t,n)=>{var r=n(7840);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o{e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}},6689:(e,t,n)=>{var r=n(6212),a=n(1536),i=n(7697),o=n(4008);e.exports=function(e){return function(t){t=o(t);var n=a(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},4991:(e,t,n)=>{var r=n(5127),a=n(7840),i=n(5724);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!a(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}},9954:(e,t,n)=>{var r=n(4181),a=n(9042),i=n(314);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&a(t,n,o)&&(n=o=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),o=void 0===o?t{var r=n(7887),a=n(9208),i=n(6557),o=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:a;e.exports=o},8925:(e,t,n)=>{var r=n(220),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},9757:(e,t,n)=>{var r=n(6669),a=n(6010),i=n(3445),o=1,s=2;e.exports=function(e,t,n,l,c,u){var d=n&o,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=u.get(e),m=u.get(t);if(p&&m)return p==t&&m==e;var g=-1,y=!0,b=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++g{var r=n(4635),a=n(8246),i=n(4206),o=n(9757),s=n(943),l=n(6557),c=1,u=2,d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",w="[object ArrayBuffer]",x="[object DataView]",S=r?r.prototype:void 0,k=S?S.valueOf:void 0;e.exports=function(e,t,n,r,S,A,C){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!A(new a(e),new a(t)));case d:case h:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case p:var O=s;case y:var _=r&c;if(O||(O=l),e.size!=t.size&&!_)return!1;var j=C.get(e);if(j)return j==t;r|=u,C.set(e,t);var P=o(O(e),O(t),r,S,A,C);return C.delete(e),P;case v:if(k)return k.call(e)==k.call(t)}return!1}},6195:(e,t,n)=>{var r=n(3660),a=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,l){var c=n&a,u=r(e),d=u.length;if(d!=r(t).length&&!c)return!1;for(var h=d;h--;){var f=u[h];if(!(c?f in t:i.call(t,f)))return!1}var p=l.get(e),m=l.get(t);if(p&&m)return p==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var y=c;++h{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3660:(e,t,n)=>{var r=n(4761),a=n(8194),i=n(5724);e.exports=function(e){return r(e,i,a)}},7101:(e,t,n)=>{var r=n(4672);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},3334:(e,t,n)=>{var r=n(9794),a=n(5724);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,r(o)]}return t}},220:(e,t,n)=>{var r=n(7949),a=n(8166);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},2253:(e,t,n)=>{var r=n(2621)(Object.getPrototypeOf,Object);e.exports=r},1581:(e,t,n)=>{var r=n(4635),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},8194:(e,t,n)=>{var r=n(6860),a=n(1515),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},5531:(e,t,n)=>{var r=n(53),a=n(1465),i=n(202),o=n(7887),s=n(4801),l=n(2022),c=n(9131),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(r),g=c(a),y=c(i),b=c(o),v=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||a&&w(new a)!=u||i&&w(i.resolve())!=d||o&&w(new o)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return p;case g:return u;case y:return d;case b:return h;case v:return f}return t}),e.exports=w},8166:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},964:(e,t,n)=>{var r=n(6463),a=n(4578),i=n(4660),o=n(7059),s=n(5776),l=n(2535);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},6958:(e,t,n)=>{var r=n(3616);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},1176:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787:(e,t,n)=>{var r=n(3616),a="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return i.call(t,e)?t[e]:void 0}},231:(e,t,n)=>{var r=n(3616),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},7455:(e,t,n)=>{var r=n(3616),a="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?a:t,this}},7989:(e,t,n)=>{var r=n(4635),a=n(4578),i=n(4660),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},7059:e=>{var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var a=typeof e;return!!(r=null==r?t:r)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&e{var r=n(4206),a=n(7840),i=n(7059),o=n(4567);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5916:(e,t,n)=>{var r=n(4660),a=n(184),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}},4672:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3306:(e,t,n)=>{var r=n(4123),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},2161:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9794:(e,t,n)=>{var r=n(4567);e.exports=function(e){return e===e&&!r(e)}},5088:e=>{e.exports=function(){this.__data__=[],this.size=0}},150:(e,t,n)=>{var r=n(5099),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},7889:(e,t,n)=>{var r=n(5099);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4349:(e,t,n)=>{var r=n(5099);e.exports=function(e){return r(this.__data__,e)>-1}},3077:(e,t,n)=>{var r=n(5099);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},738:(e,t,n)=>{var r=n(1111),a=n(5661),i=n(1465);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},708:(e,t,n)=>{var r=n(7101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6823:(e,t,n)=>{var r=n(7101);e.exports=function(e){return r(this,e).get(e)}},475:(e,t,n)=>{var r=n(7101);e.exports=function(e){return r(this,e).has(e)}},7859:(e,t,n)=>{var r=n(7101);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},943:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4243:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},3734:(e,t,n)=>{var r=n(2434),a=500;e.exports=function(e){var t=r(e,(function(e){return n.size===a&&n.clear(),e})),n=t.cache;return t}},3616:(e,t,n)=>{var r=n(220)(Object,"create");e.exports=r},5112:(e,t,n)=>{var r=n(2621)(Object.keys,Object);e.exports=r},2479:(e,t,n)=>{e=n.nmd(e);var r=n(6658),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},5336:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2621:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4295:(e,t,n)=>{var r=n(5507),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o{var r=n(6658),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},2274:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},2138:e=>{e.exports=function(e){return this.__data__.has(e)}},6557:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1043:(e,t,n)=>{var r=n(5148),a=n(2929)(r);e.exports=a},2929:e=>{var t=800,n=16,r=Date.now;e.exports=function(e){var a=0,i=0;return function(){var o=r(),s=n-(o-i);if(i=o,s>0){if(++a>=t)return arguments[0]}else a=0;return e.apply(void 0,arguments)}}},4710:(e,t,n)=>{var r=n(5661);e.exports=function(){this.__data__=new r,this.size=0}},8384:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7379:e=>{e.exports=function(e){return this.__data__.get(e)}},799:e=>{e.exports=function(e){return this.__data__.has(e)}},2791:(e,t,n)=>{var r=n(5661),a=n(1465),i=n(4467),o=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length{e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r{var r=n(9508),a=n(1536),i=n(9892);e.exports=function(e){return a(e)?i(e):r(e)}},7044:(e,t,n)=>{var r=n(3734),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=o},2535:(e,t,n)=>{var r=n(184),a=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},9131:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},8798:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},9892:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+a+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,o,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,o,s,n].join("|")+")",h=RegExp(a+"(?="+a+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},6800:e=>{e.exports=function(e){return function(){return e}}},5491:(e,t,n)=>{var r=n(4567),a=n(4378),i=n(2588),o="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,d,h,f,p,m=0,g=!1,y=!1,b=!0;if("function"!=typeof e)throw new TypeError(o);function v(t){var n=c,r=u;return c=u=void 0,m=t,h=e.apply(r,n)}function w(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-m>=d}function x(){var e=a();if(w(e))return S(e);f=setTimeout(x,function(e){var n=t-(e-p);return y?l(n,d-(e-m)):n}(e))}function S(e){return f=void 0,b&&c?v(e):(c=u=void 0,h)}function k(){var e=a(),n=w(e);if(c=arguments,u=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(x,t),g?v(e):h}(p);if(y)return clearTimeout(f),f=setTimeout(x,t),v(p)}return void 0===f&&(f=setTimeout(x,t)),h}return t=i(t)||0,r(n)&&(g=!!n.leading,d=(y="maxWait"in n)?s(i(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),k.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=p=u=f=void 0},k.flush=function(){return void 0===f?h:S(a())},k}},4206:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},8829:(e,t,n)=>{var r=n(6675),a=n(2817),i=n(5127),o=n(4660),s=n(9042);e.exports=function(e,t,n){var l=o(e)?r:a;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},5915:(e,t,n)=>{var r=n(4991)(n(5695));e.exports=r},5695:(e,t,n)=>{var r=n(6993),a=n(5127),i=n(5171),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=o(s+l,0)),r(e,a(t,3),l)}},9113:(e,t,n)=>{var r=n(6810),a=n(5876);e.exports=function(e,t){return r(a(e,t),1)}},7946:(e,t,n)=>{var r=n(52);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},5321:(e,t,n)=>{var r=n(4591),a=n(964);e.exports=function(e,t){return null!=e&&a(e,t,r)}},9002:e=>{e.exports=function(e){return e}},4578:(e,t,n)=>{var r=n(3012),a=n(9248),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},4660:e=>{var t=Array.isArray;e.exports=t},7840:(e,t,n)=>{var r=n(3008),a=n(5776);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},5410:(e,t,n)=>{var r=n(2022),a=n(9248),i="[object Boolean]";e.exports=function(e){return!0===e||!1===e||a(e)&&r(e)==i}},6794:(e,t,n)=>{e=n.nmd(e);var r=n(4759),a=n(3721),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},9418:(e,t,n)=>{var r=n(1404);e.exports=function(e,t){return r(e,t)}},3008:(e,t,n)=>{var r=n(2022),a=n(4567),i="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!a(e))return!1;var t=r(e);return t==o||t==s||t==i||t==l}},5776:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},1099:(e,t,n)=>{var r=n(9853);e.exports=function(e){return r(e)&&e!=+e}},821:e=>{e.exports=function(e){return null==e}},9853:(e,t,n)=>{var r=n(2022),a=n(9248),i="[object Number]";e.exports=function(e){return"number"==typeof e||a(e)&&r(e)==i}},4567:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9248:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5461:(e,t,n)=>{var r=n(2022),a=n(2253),i=n(9248),o="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||r(e)!=o)return!1;var t=a(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},6801:(e,t,n)=>{var r=n(2022),a=n(4660),i=n(9248),o="[object String]";e.exports=function(e){return"string"==typeof e||!a(e)&&i(e)&&r(e)==o}},184:(e,t,n)=>{var r=n(2022),a=n(9248),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&r(e)==i}},1641:(e,t,n)=>{var r=n(8183),a=n(5639),i=n(2479),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},5724:(e,t,n)=>{var r=n(7405),a=n(7462),i=n(7840);e.exports=function(e){return i(e)?r(e):a(e)}},7988:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},1397:function(e,t,n){var r;e=n.nmd(e),function(){var a,i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,f=2,p=4,m=1,g=2,y=1,b=2,v=4,w=8,x=16,S=32,k=64,A=128,C=256,O=512,_=30,j="...",P=800,T=16,E=1,M=2,N=1/0,I=9007199254740991,D=17976931348623157e292,F=NaN,R=4294967295,$=R-1,L=R>>>1,B=[["ary",A],["bind",y],["bindKey",b],["curry",w],["curryRight",x],["flip",O],["partial",S],["partialRight",k],["rearg",C]],U="[object Arguments]",z="[object Array]",H="[object AsyncFunction]",q="[object Boolean]",W="[object Date]",G="[object DOMException]",V="[object Error]",X="[object Function]",K="[object GeneratorFunction]",Y="[object Map]",Z="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ae="[object String]",ie="[object Symbol]",oe="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",ve="[object Uint32Array]",we=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Ce=RegExp(ke.source),Oe=RegExp(Ae.source),_e=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),De=/^\s+/,Fe=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$e=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Qe="\\ud800-\\udfff",et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",at="\\ufe0e\\ufe0f",it="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ot="['\u2019]",st="["+Qe+"]",lt="["+it+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",ht="["+nt+"]",ft="[^"+Qe+it+ut+tt+nt+rt+"]",pt="\\ud83c[\\udffb-\\udfff]",mt="[^"+Qe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",bt="["+rt+"]",vt="\\u200d",wt="(?:"+ht+"|"+ft+")",xt="(?:"+bt+"|"+ft+")",St="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",kt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",At="(?:"+ct+"|"+pt+")"+"?",Ct="["+at+"]?",Ot=Ct+At+("(?:"+vt+"(?:"+[mt,gt,yt].join("|")+")"+Ct+At+")*"),_t="(?:"+[dt,gt,yt].join("|")+")"+Ot,jt="(?:"+[mt+ct+"?",ct,gt,yt,st].join("|")+")",Pt=RegExp(ot,"g"),Tt=RegExp(ct,"g"),Et=RegExp(pt+"(?="+pt+")|"+jt+Ot,"g"),Mt=RegExp([bt+"?"+ht+"+"+St+"(?="+[lt,bt,"$"].join("|")+")",xt+"+"+kt+"(?="+[lt,bt+wt,"$"].join("|")+")",bt+"?"+wt+"+"+St,bt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,_t].join("|"),"g"),Nt=RegExp("["+vt+Qe+et+at+"]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ft=-1,Rt={};Rt[de]=Rt[he]=Rt[fe]=Rt[pe]=Rt[me]=Rt[ge]=Rt[ye]=Rt[be]=Rt[ve]=!0,Rt[U]=Rt[z]=Rt[ce]=Rt[q]=Rt[ue]=Rt[W]=Rt[V]=Rt[X]=Rt[Y]=Rt[Z]=Rt[Q]=Rt[ne]=Rt[re]=Rt[ae]=Rt[se]=!1;var $t={};$t[U]=$t[z]=$t[ce]=$t[ue]=$t[q]=$t[W]=$t[de]=$t[he]=$t[fe]=$t[pe]=$t[me]=$t[Y]=$t[Z]=$t[Q]=$t[ne]=$t[re]=$t[ae]=$t[ie]=$t[ge]=$t[ye]=$t[be]=$t[ve]=!0,$t[V]=$t[X]=$t[se]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Ut=parseInt,zt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Ht="object"==typeof self&&self&&self.Object===Object&&self,qt=zt||Ht||Function("return this")(),Wt=t&&!t.nodeType&&t,Gt=Wt&&e&&!e.nodeType&&e,Vt=Gt&&Gt.exports===Wt,Xt=Vt&&zt.process,Kt=function(){try{var e=Gt&&Gt.require&&Gt.require("util").types;return e||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Yt=Kt&&Kt.isArrayBuffer,Zt=Kt&&Kt.isDate,Jt=Kt&&Kt.isMap,Qt=Kt&&Kt.isRegExp,en=Kt&&Kt.isSet,tn=Kt&&Kt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function un(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function Nn(e,t){for(var n=e.length;n--&&vn(t,e[n],0)>-1;);return n}var In=An({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dn=An({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fn(e){return"\\"+Lt[e]}function Rn(e){return Nt.test(e)}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ln(e,t){return function(n){return e(t(n))}}function Bn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"});var Vn=function e(t){var n=(t=null==t?qt:Vn.defaults(qt.Object(),t,Vn.pick(qt,Dt))).Array,r=t.Date,Fe=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,at=t.TypeError,it=n.prototype,ot=Qe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ct=ot.toString,ut=st.hasOwnProperty,dt=0,ht=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=st.toString,pt=ct.call(tt),mt=qt._,gt=nt("^"+ct.call(ut).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Vt?t.Buffer:a,bt=t.Symbol,vt=t.Uint8Array,wt=yt?yt.allocUnsafe:a,xt=Ln(tt.getPrototypeOf,tt),St=tt.create,kt=st.propertyIsEnumerable,At=it.splice,Ct=bt?bt.isConcatSpreadable:a,Ot=bt?bt.iterator:a,_t=bt?bt.toStringTag:a,jt=function(){try{var e=Bi(tt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Et=t.clearTimeout!==qt.clearTimeout&&t.clearTimeout,Nt=r&&r.now!==qt.Date.now&&r.now,Lt=t.setTimeout!==qt.setTimeout&&t.setTimeout,zt=et.ceil,Ht=et.floor,Wt=tt.getOwnPropertySymbols,Gt=yt?yt.isBuffer:a,Xt=t.isFinite,Kt=it.join,gn=Ln(tt.keys,tt),An=et.max,Xn=et.min,Kn=r.now,Yn=t.parseInt,Zn=et.random,Jn=it.reverse,Qn=Bi(t,"DataView"),er=Bi(t,"Map"),tr=Bi(t,"Promise"),nr=Bi(t,"Set"),rr=Bi(t,"WeakMap"),ar=Bi(tt,"create"),ir=rr&&new rr,or={},sr=fo(Qn),lr=fo(er),cr=fo(tr),ur=fo(nr),dr=fo(rr),hr=bt?bt.prototype:a,fr=hr?hr.valueOf:a,pr=hr?hr.toString:a;function mr(e){if(Ts(e)&&!vs(e)&&!(e instanceof vr)){if(e instanceof br)return e;if(ut.call(e,"__wrapped__"))return po(e)}return new br(e)}var gr=function(){function e(){}return function(t){if(!Ps(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function yr(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Rr(e,t,n,r,i,o){var s,l=t&h,c=t&f,u=t&p;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!Ps(e))return e;var d=vs(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ai(e,s)}else{var m=Hi(e),g=m==X||m==K;if(ks(e))return Ja(e,l);if(m==Q||m==U||g&&!i){if(s=c||g?{}:Wi(e),!l)return c?function(e,t){return ii(e,zi(e),t)}(e,function(e,t){return e&&ii(t,sl(t),e)}(s,e)):function(e,t){return ii(e,Ui(e),t)}(e,Nr(s,e))}else{if(!$t[m])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ce:return Qa(e);case q:case W:return new r(+e);case ue:return function(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case fe:case pe:case me:case ge:case ye:case be:case ve:return ei(e,n);case Y:return new r;case Z:case ae:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case ie:return a=e,fr?tt(fr.call(a)):{}}var a}(e,m,l)}}o||(o=new Ar);var y=o.get(e);if(y)return y;o.set(e,s),Ds(e)?e.forEach((function(r){s.add(Rr(r,t,n,r,e,o))})):Es(e)&&e.forEach((function(r,a){s.set(a,Rr(r,t,n,a,e,o))}));var b=d?a:(u?c?Ni:Mi:c?sl:ol)(e);return an(b||e,(function(r,a){b&&(r=e[a=r]),Tr(s,a,Rr(r,t,n,a,e,o))})),s}function $r(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function Lr(e,t,n){if("function"!=typeof e)throw new at(s);return io((function(){e.apply(a,n)}),t)}function Br(e,t,n,r){var a=-1,o=cn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,Pn(n))),r?(o=un,s=!1):t.length>=i&&(o=En,s=!1,t=new kr(t));e:for(;++a-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Sr.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(er||xr),string:new wr}},Sr.prototype.delete=function(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t},Sr.prototype.get=function(e){return $i(this,e).get(e)},Sr.prototype.has=function(e){return $i(this,e).has(e)},Sr.prototype.set=function(e,t){var n=$i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},kr.prototype.add=kr.prototype.push=function(e){return this.__data__.set(e,c),this},kr.prototype.has=function(e){return this.__data__.has(e)},Ar.prototype.clear=function(){this.__data__=new xr,this.size=0},Ar.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ar.prototype.get=function(e){return this.__data__.get(e)},Ar.prototype.has=function(e){return this.__data__.has(e)},Ar.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!er||r.length0&&n(s)?t>1?Gr(s,t-1,n,r,a):hn(a,s):r||(a[a.length]=s)}return a}var Vr=ci(),Xr=ci(!0);function Kr(e,t){return e&&Vr(e,t,ol)}function Yr(e,t){return e&&Xr(e,t,ol)}function Zr(e,t){return ln(t,(function(t){return Os(e[t])}))}function Jr(e,t){for(var n=0,r=(t=Xa(t,e)).length;null!=e&&nt}function na(e,t){return null!=e&&ut.call(e,t)}function ra(e,t){return null!=e&&t in tt(e)}function aa(e,t,r){for(var i=r?un:cn,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=dn(h,Pn(t))),u=Xn(h.length,u),c[l]=!r&&(t||o>=120&&h.length>=120)?new kr(l&&h):a}h=e[0];var f=-1,p=c[0];e:for(;++f=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function wa(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&At.call(s,l,1),At.call(e,l,1);return e}function Sa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;Vi(a)?At.call(e,a,1):Ba(e,a)}}return e}function ka(e,t){return e+Ht(Zn()*(t-e+1))}function Aa(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=Ht(t/2))&&(e+=e)}while(t);return n}function Ca(e,t){return oo(to(e,t,Ml),e+"")}function Oa(e){return Or(ml(e))}function _a(e,t){var n=ml(e);return co(n,Fr(t,0,n.length))}function ja(e,t,n,r){if(!Ps(e))return e;for(var i=-1,o=(t=Xa(t,e)).length,s=o-1,l=e;null!=l&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a>>1,o=e[i];null!==o&&!Rs(o)&&(n?o<=t:o=i){var u=t?null:Ai(e);if(u)return Un(u);s=!1,a=En,c=new kr}else c=t?[]:l;e:for(;++r=r?e:Ma(e,t,n)}var Za=Et||function(e){return qt.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Qa(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function ei(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ti(e,t){if(e!==t){var n=e!==a,r=null===e,i=e===e,o=Rs(e),s=t!==a,l=null===t,c=t===t,u=Rs(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&Xi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=tt(t);++r-1?i[o?t[s]:s]:a}}function pi(e){return Ei((function(t){var n=t.length,r=n,i=br.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new at(s);if(i&&!l&&"wrapper"==Di(o))var l=new br([],!0)}for(r=l?r:n;++r1&&w.reverse(),h&&ul))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=n&g?new kr:a;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return an(B,(function(n){var r="_."+n[0];t&n[1]&&!cn(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($e);return t?t[1].split(Le):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=Kn(),i=T-(r-n);if(n=r,i>0){if(++t>=P)return arguments[0]}else t=0;return e.apply(a,arguments)}}function co(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,Io(e,n)}));function Uo(e){var t=mr(e);return t.__chain__=!0,t}function zo(e,t){return t(e)}var Ho=Ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof vr&&Vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:zo,args:[i],thisArg:a}),new br(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var qo=oi((function(e,t,n){ut.call(e,n)?++e[n]:Ir(e,n,1)}));var Wo=fi(bo),Go=fi(vo);function Vo(e,t){return(vs(e)?an:Ur)(e,Ri(t,3))}function Xo(e,t){return(vs(e)?on:zr)(e,Ri(t,3))}var Ko=oi((function(e,t,n){ut.call(e,n)?e[n].push(t):Ir(e,n,[t])}));var Yo=Ca((function(e,t,r){var a=-1,i="function"==typeof t,o=xs(e)?n(e.length):[];return Ur(e,(function(e){o[++a]=i?nn(t,e,r):ia(e,t,r)})),o})),Zo=oi((function(e,t,n){Ir(e,n,t)}));function Jo(e,t){return(vs(e)?dn:pa)(e,Ri(t,3))}var Qo=oi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var es=Ca((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xi(e,t[0],t[1])?t=[]:n>2&&Xi(t[0],t[1],t[2])&&(t=[t[0]]),va(e,Gr(t,1),[])})),ts=Nt||function(){return qt.Date.now()};function ns(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Oi(e,A,a,a,a,a,t)}function rs(e,t){var n;if("function"!=typeof t)throw new at(s);return e=Hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var as=Ca((function(e,t,n){var r=y;if(n.length){var a=Bn(n,Fi(as));r|=S}return Oi(e,r,t,n,a)})),is=Ca((function(e,t,n){var r=y|b;if(n.length){var a=Bn(n,Fi(is));r|=S}return Oi(t,r,e,n,a)}));function os(e,t,n){var r,i,o,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new at(s);function m(t){var n=r,o=i;return r=i=a,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===a||n>=t||n<0||f&&e-d>=o}function y(){var e=ts();if(g(e))return b(e);c=io(y,function(e){var n=t-(e-u);return f?Xn(n,o-(e-d)):n}(e))}function b(e){return c=a,p&&r?m(e):(r=i=a,l)}function v(){var e=ts(),n=g(e);if(r=arguments,i=this,u=e,n){if(c===a)return function(e){return d=e,c=io(y,t),h?m(e):l}(u);if(f)return Za(c),c=io(y,t),m(u)}return c===a&&(c=io(y,t)),l}return t=Ws(t)||0,Ps(n)&&(h=!!n.leading,o=(f="maxWait"in n)?An(Ws(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){c!==a&&Za(c),d=0,r=u=i=c=a},v.flush=function(){return c===a?l:b(ts())},v}var ss=Ca((function(e,t){return Lr(e,1,t)})),ls=Ca((function(e,t,n){return Lr(e,Ws(t)||0,n)}));function cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(cs.Cache||Sr),n}function us(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}cs.Cache=Sr;var ds=Ka((function(e,t){var n=(t=1==t.length&&vs(t[0])?dn(t[0],Pn(Ri())):dn(Gr(t,1),Pn(Ri()))).length;return Ca((function(r){for(var a=-1,i=Xn(r.length,n);++a=t})),bs=oa(function(){return arguments}())?oa:function(e){return Ts(e)&&ut.call(e,"callee")&&!kt.call(e,"callee")},vs=n.isArray,ws=Yt?Pn(Yt):function(e){return Ts(e)&&ea(e)==ce};function xs(e){return null!=e&&js(e.length)&&!Os(e)}function Ss(e){return Ts(e)&&xs(e)}var ks=Gt||Wl,As=Zt?Pn(Zt):function(e){return Ts(e)&&ea(e)==W};function Cs(e){if(!Ts(e))return!1;var t=ea(e);return t==V||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Ns(e)}function Os(e){if(!Ps(e))return!1;var t=ea(e);return t==X||t==K||t==H||t==te}function _s(e){return"number"==typeof e&&e==Hs(e)}function js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Ps(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var Es=Jt?Pn(Jt):function(e){return Ts(e)&&Hi(e)==Y};function Ms(e){return"number"==typeof e||Ts(e)&&ea(e)==Z}function Ns(e){if(!Ts(e)||ea(e)!=Q)return!1;var t=xt(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==pt}var Is=Qt?Pn(Qt):function(e){return Ts(e)&&ea(e)==ne};var Ds=en?Pn(en):function(e){return Ts(e)&&Hi(e)==re};function Fs(e){return"string"==typeof e||!vs(e)&&Ts(e)&&ea(e)==ae}function Rs(e){return"symbol"==typeof e||Ts(e)&&ea(e)==ie}var $s=tn?Pn(tn):function(e){return Ts(e)&&js(e.length)&&!!Rt[ea(e)]};var Ls=xi(fa),Bs=xi((function(e,t){return e<=t}));function Us(e){if(!e)return[];if(xs(e))return Fs(e)?qn(e):ai(e);if(Ot&&e[Ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ot]());var t=Hi(e);return(t==Y?$n:t==re?Un:ml)(e)}function zs(e){return e?(e=Ws(e))===N||e===-N?(e<0?-1:1)*D:e===e?e:0:0===e?e:0}function Hs(e){var t=zs(e),n=t%1;return t===t?n?t-n:t:0}function qs(e){return e?Fr(Hs(e),0,R):0}function Ws(e){if("number"==typeof e)return e;if(Rs(e))return F;if(Ps(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ps(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=jn(e);var n=Ge.test(e);return n||Xe.test(e)?Ut(e.slice(2),n?2:8):We.test(e)?F:+e}function Gs(e){return ii(e,sl(e))}function Vs(e){return null==e?"":$a(e)}var Xs=si((function(e,t){if(Ji(t)||xs(t))ii(t,ol(t),e);else for(var n in t)ut.call(t,n)&&Tr(e,n,t[n])})),Ks=si((function(e,t){ii(t,sl(t),e)})),Ys=si((function(e,t,n,r){ii(t,sl(t),e,r)})),Zs=si((function(e,t,n,r){ii(t,ol(t),e,r)})),Js=Ei(Dr);var Qs=Ca((function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&Xi(t[0],t[1],i)&&(r=1);++n1),t})),ii(e,Ni(e),n),r&&(n=Rr(n,h|f|p,Pi));for(var a=t.length;a--;)Ba(n,t[a]);return n}));var dl=Ei((function(e,t){return null==e?{}:function(e,t){return wa(e,t,(function(t,n){return nl(e,n)}))}(e,t)}));function hl(e,t){if(null==e)return{};var n=dn(Ni(e),(function(e){return[e]}));return t=Ri(t),wa(e,n,(function(e,n){return t(e,n[0])}))}var fl=Ci(ol),pl=Ci(sl);function ml(e){return null==e?[]:Tn(e,ol(e))}var gl=di((function(e,t,n){return t=t.toLowerCase(),e+(n?yl(t):t)}));function yl(e){return Cl(Vs(e).toLowerCase())}function bl(e){return(e=Vs(e))&&e.replace(Ye,In).replace(Tt,"")}var vl=di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),wl=di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),xl=ui("toLowerCase");var Sl=di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var kl=di((function(e,t,n){return e+(n?" ":"")+Cl(t)}));var Al=di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Cl=ui("toUpperCase");function Ol(e,t,n){return e=Vs(e),(t=n?a:t)===a?function(e){return It.test(e)}(e)?function(e){return e.match(Mt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var _l=Ca((function(e,t){try{return nn(e,a,t)}catch(n){return Cs(n)?n:new Fe(n)}})),jl=Ei((function(e,t){return an(t,(function(t){t=ho(t),Ir(e,t,as(e[t],e))})),e}));function Pl(e){return function(){return e}}var Tl=pi(),El=pi(!0);function Ml(e){return e}function Nl(e){return ua("function"==typeof e?e:Rr(e,h))}var Il=Ca((function(e,t){return function(n){return ia(n,e,t)}})),Dl=Ca((function(e,t){return function(n){return ia(e,n,t)}}));function Fl(e,t,n){var r=ol(t),a=Zr(t,r);null!=n||Ps(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Zr(t,ol(t)));var i=!(Ps(n)&&"chain"in n)||!!n.chain,o=Os(e);return an(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ai(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,hn([this.value()],arguments))})})),e}function Rl(){}var $l=bi(dn),Ll=bi(sn),Bl=bi(mn);function Ul(e){return Ki(e)?kn(ho(e)):function(e){return function(t){return Jr(t,e)}}(e)}var zl=wi(),Hl=wi(!0);function ql(){return[]}function Wl(){return!1}var Gl=yi((function(e,t){return e+t}),0),Vl=ki("ceil"),Xl=yi((function(e,t){return e/t}),1),Kl=ki("floor");var Yl=yi((function(e,t){return e*t}),1),Zl=ki("round"),Jl=yi((function(e,t){return e-t}),0);return mr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},mr.ary=ns,mr.assign=Xs,mr.assignIn=Ks,mr.assignInWith=Ys,mr.assignWith=Zs,mr.at=Js,mr.before=rs,mr.bind=as,mr.bindAll=jl,mr.bindKey=is,mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vs(e)?e:[e]},mr.chain=Uo,mr.chunk=function(e,t,r){t=(r?Xi(e,t,r):t===a)?1:An(Hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=n(zt(i/t));oi?0:i+n),(r=r===a||r>i?i:Hs(r))<0&&(r+=i),r=n>r?0:qs(r);n>>0)?(e=Vs(e))&&("string"==typeof t||null!=t&&!Is(t))&&!(t=$a(t))&&Rn(e)?Ya(qn(e),0,n):e.split(t,n):[]},mr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:An(Hs(t),0),Ca((function(n){var r=n[t],a=Ya(n,0,t);return r&&hn(a,r),nn(e,this,a)}))},mr.tail=function(e){var t=null==e?0:e.length;return t?Ma(e,1,t):[]},mr.take=function(e,t,n){return e&&e.length?Ma(e,0,(t=n||t===a?1:Hs(t))<0?0:t):[]},mr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ma(e,(t=r-(t=n||t===a?1:Hs(t)))<0?0:t,r):[]},mr.takeRightWhile=function(e,t){return e&&e.length?za(e,Ri(t,3),!1,!0):[]},mr.takeWhile=function(e,t){return e&&e.length?za(e,Ri(t,3)):[]},mr.tap=function(e,t){return t(e),e},mr.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new at(s);return Ps(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),os(e,t,{leading:r,maxWait:t,trailing:a})},mr.thru=zo,mr.toArray=Us,mr.toPairs=fl,mr.toPairsIn=pl,mr.toPath=function(e){return vs(e)?dn(e,ho):Rs(e)?[e]:ai(uo(Vs(e)))},mr.toPlainObject=Gs,mr.transform=function(e,t,n){var r=vs(e),a=r||ks(e)||$s(e);if(t=Ri(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:Ps(e)&&Os(i)?gr(xt(e)):{}}return(a?an:Kr)(e,(function(e,r,a){return t(n,e,r,a)})),n},mr.unary=function(e){return ns(e,1)},mr.union=To,mr.unionBy=Eo,mr.unionWith=Mo,mr.uniq=function(e){return e&&e.length?La(e):[]},mr.uniqBy=function(e,t){return e&&e.length?La(e,Ri(t,2)):[]},mr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?La(e,a,t):[]},mr.unset=function(e,t){return null==e||Ba(e,t)},mr.unzip=No,mr.unzipWith=Io,mr.update=function(e,t,n){return null==e?e:Ua(e,t,Va(n))},mr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Ua(e,t,Va(n),r)},mr.values=ml,mr.valuesIn=function(e){return null==e?[]:Tn(e,sl(e))},mr.without=Do,mr.words=Ol,mr.wrap=function(e,t){return hs(Va(t),e)},mr.xor=Fo,mr.xorBy=Ro,mr.xorWith=$o,mr.zip=Lo,mr.zipObject=function(e,t){return Wa(e||[],t||[],Tr)},mr.zipObjectDeep=function(e,t){return Wa(e||[],t||[],ja)},mr.zipWith=Bo,mr.entries=fl,mr.entriesIn=pl,mr.extend=Ks,mr.extendWith=Ys,Fl(mr,mr),mr.add=Gl,mr.attempt=_l,mr.camelCase=gl,mr.capitalize=yl,mr.ceil=Vl,mr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Ws(n))===n?n:0),t!==a&&(t=(t=Ws(t))===t?t:0),Fr(Ws(e),t,n)},mr.clone=function(e){return Rr(e,p)},mr.cloneDeep=function(e){return Rr(e,h|p)},mr.cloneDeepWith=function(e,t){return Rr(e,h|p,t="function"==typeof t?t:a)},mr.cloneWith=function(e,t){return Rr(e,p,t="function"==typeof t?t:a)},mr.conformsTo=function(e,t){return null==t||$r(e,t,ol(t))},mr.deburr=bl,mr.defaultTo=function(e,t){return null==e||e!==e?t:e},mr.divide=Xl,mr.endsWith=function(e,t,n){e=Vs(e),t=$a(t);var r=e.length,i=n=n===a?r:Fr(Hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},mr.eq=ms,mr.escape=function(e){return(e=Vs(e))&&Oe.test(e)?e.replace(Ae,Dn):e},mr.escapeRegExp=function(e){return(e=Vs(e))&&Ie.test(e)?e.replace(Ne,"\\$&"):e},mr.every=function(e,t,n){var r=vs(e)?sn:Hr;return n&&Xi(e,t,n)&&(t=a),r(e,Ri(t,3))},mr.find=Wo,mr.findIndex=bo,mr.findKey=function(e,t){return yn(e,Ri(t,3),Kr)},mr.findLast=Go,mr.findLastIndex=vo,mr.findLastKey=function(e,t){return yn(e,Ri(t,3),Yr)},mr.floor=Kl,mr.forEach=Vo,mr.forEachRight=Xo,mr.forIn=function(e,t){return null==e?e:Vr(e,Ri(t,3),sl)},mr.forInRight=function(e,t){return null==e?e:Xr(e,Ri(t,3),sl)},mr.forOwn=function(e,t){return e&&Kr(e,Ri(t,3))},mr.forOwnRight=function(e,t){return e&&Yr(e,Ri(t,3))},mr.get=tl,mr.gt=gs,mr.gte=ys,mr.has=function(e,t){return null!=e&&qi(e,t,na)},mr.hasIn=nl,mr.head=xo,mr.identity=Ml,mr.includes=function(e,t,n,r){e=xs(e)?e:ml(e),n=n&&!r?Hs(n):0;var a=e.length;return n<0&&(n=An(a+n,0)),Fs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&vn(e,t,n)>-1},mr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:Hs(n);return a<0&&(a=An(r+a,0)),vn(e,t,a)},mr.inRange=function(e,t,n){return t=zs(t),n===a?(n=t,t=0):n=zs(n),function(e,t,n){return e>=Xn(t,n)&&e=-I&&e<=I},mr.isSet=Ds,mr.isString=Fs,mr.isSymbol=Rs,mr.isTypedArray=$s,mr.isUndefined=function(e){return e===a},mr.isWeakMap=function(e){return Ts(e)&&Hi(e)==se},mr.isWeakSet=function(e){return Ts(e)&&ea(e)==le},mr.join=function(e,t){return null==e?"":Kt.call(e,t)},mr.kebabCase=vl,mr.last=Co,mr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=Hs(n))<0?An(r+i,0):Xn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):bn(e,xn,i,!0)},mr.lowerCase=wl,mr.lowerFirst=xl,mr.lt=Ls,mr.lte=Bs,mr.max=function(e){return e&&e.length?qr(e,Ml,ta):a},mr.maxBy=function(e,t){return e&&e.length?qr(e,Ri(t,2),ta):a},mr.mean=function(e){return Sn(e,Ml)},mr.meanBy=function(e,t){return Sn(e,Ri(t,2))},mr.min=function(e){return e&&e.length?qr(e,Ml,fa):a},mr.minBy=function(e,t){return e&&e.length?qr(e,Ri(t,2),fa):a},mr.stubArray=ql,mr.stubFalse=Wl,mr.stubObject=function(){return{}},mr.stubString=function(){return""},mr.stubTrue=function(){return!0},mr.multiply=Yl,mr.nth=function(e,t){return e&&e.length?ba(e,Hs(t)):a},mr.noConflict=function(){return qt._===this&&(qt._=mt),this},mr.noop=Rl,mr.now=ts,mr.pad=function(e,t,n){e=Vs(e);var r=(t=Hs(t))?Hn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return vi(Ht(a),n)+e+vi(zt(a),n)},mr.padEnd=function(e,t,n){e=Vs(e);var r=(t=Hs(t))?Hn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Zn();return Xn(e+i*(t-e+Bt("1e-"+((i+"").length-1))),t)}return ka(e,t)},mr.reduce=function(e,t,n){var r=vs(e)?fn:Cn,a=arguments.length<3;return r(e,Ri(t,4),n,a,Ur)},mr.reduceRight=function(e,t,n){var r=vs(e)?pn:Cn,a=arguments.length<3;return r(e,Ri(t,4),n,a,zr)},mr.repeat=function(e,t,n){return t=(n?Xi(e,t,n):t===a)?1:Hs(t),Aa(Vs(e),t)},mr.replace=function(){var e=arguments,t=Vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},mr.result=function(e,t,n){var r=-1,i=(t=Xa(t,e)).length;for(i||(i=1,e=a);++rI)return[];var n=R,r=Xn(e,R);t=Ri(t),e-=R;for(var a=_n(r,t);++n=o)return e;var l=n-Hn(r);if(l<1)return r;var c=s?Ya(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),Is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=nt(i.source,Vs(qe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var h=u.index;c=c.slice(0,h===a?l:h)}}else if(e.indexOf($a(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},mr.unescape=function(e){return(e=Vs(e))&&Ce.test(e)?e.replace(ke,Gn):e},mr.uniqueId=function(e){var t=++dt;return Vs(e)+t},mr.upperCase=Al,mr.upperFirst=Cl,mr.each=Vo,mr.eachRight=Xo,mr.first=xo,Fl(mr,function(){var e={};return Kr(mr,(function(t,n){ut.call(mr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),mr.VERSION="4.17.21",an(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){mr[e].placeholder=mr})),an(["drop","take"],(function(e,t){vr.prototype[e]=function(n){n=n===a?1:An(Hs(n),0);var r=this.__filtered__&&!t?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=Xn(n,r.__takeCount__):r.__views__.push({size:Xn(n,R),type:e+(r.__dir__<0?"Right":"")}),r},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),an(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==E||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ri(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),an(["head","last"],(function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}})),an(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}})),vr.prototype.compact=function(){return this.filter(Ml)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=Ca((function(e,t){return"function"==typeof e?new vr(this):this.map((function(n){return ia(n,e,t)}))})),vr.prototype.reject=function(e){return this.filter(us(Ri(e)))},vr.prototype.slice=function(e,t){e=Hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new vr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(R)},Kr(vr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=mr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(mr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof vr,c=s[0],u=l||vs(t),d=function(e){var t=i.apply(mr,hn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=l&&!f;if(!o&&u){t=m?t:new vr(this);var g=e.apply(t,s);return g.__actions__.push({func:zo,args:[d],thisArg:a}),new br(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),an(["pop","push","shift","sort","splice","unshift"],(function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);mr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(vs(a)?a:[],e)}return this[n]((function(n){return t.apply(vs(n)?n:[],e)}))}})),Kr(vr.prototype,(function(e,t){var n=mr[t];if(n){var r=n.name+"";ut.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}})),or[mi(a,b).name]=[{name:"wrapper",func:a}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ai(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vs(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},mr.prototype.plant=function(e){for(var t,n=this;n instanceof yr;){var r=po(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:zo,args:[Po],thisArg:a}),new br(t,this.__chain__)}return this.thru(Po)},mr.prototype.toJSON=mr.prototype.valueOf=mr.prototype.value=function(){return Ha(this.__wrapped__,this.__actions__)},mr.prototype.first=mr.prototype.head,Ot&&(mr.prototype[Ot]=function(){return this}),mr}();qt._=Vn,(r=function(){return Vn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},5876:(e,t,n)=>{var r=n(1570),a=n(5127),i=n(6602),o=n(4660);e.exports=function(e,t){return(o(e)?r:i)(e,a(t,3))}},6638:(e,t,n)=>{var r=n(366),a=n(423),i=n(5127);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,a,t(e,a,i))})),n}},2780:(e,t,n)=>{var r=n(2057),a=n(2033),i=n(9002);e.exports=function(e){return e&&e.length?r(e,i,a):void 0}},1885:(e,t,n)=>{var r=n(2057),a=n(2033),i=n(5127);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),a):void 0}},2434:(e,t,n)=>{var r=n(4467),a="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},7282:(e,t,n)=>{var r=n(2057),a=n(7646),i=n(9002);e.exports=function(e){return e&&e.length?r(e,i,a):void 0}},8583:(e,t,n)=>{var r=n(2057),a=n(5127),i=n(7646);e.exports=function(e,t){return e&&e.length?r(e,a(t,2),i):void 0}},9208:e=>{e.exports=function(){}},4378:(e,t,n)=>{var r=n(4759);e.exports=function(){return r.Date.now()}},8857:(e,t,n)=>{var r=n(9343),a=n(4753),i=n(5916),o=n(2535);e.exports=function(e){return i(e)?r(o(e)):a(e)}},9939:(e,t,n)=>{var r=n(9954)();e.exports=r},1032:(e,t,n)=>{var r=n(6010),a=n(5127),i=n(8258),o=n(4660),s=n(9042);e.exports=function(e,t,n){var l=o(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,a(t,3))}},1261:(e,t,n)=>{var r=n(6810),a=n(8245),i=n(516),o=n(9042),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=s},1515:e=>{e.exports=function(){return[]}},3721:e=>{e.exports=function(){return!1}},492:(e,t,n)=>{var r=n(5491),a=n(4567),i="Expected a function";e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return a(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},314:(e,t,n)=>{var r=n(2588),a=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===a||e===-a?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}},5171:(e,t,n)=>{var r=n(314);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},2588:(e,t,n)=>{var r=n(6914),a=n(4567),i=n(184),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}},4008:(e,t,n)=>{var r=n(1582);e.exports=function(e){return null==e?"":r(e)}},5420:(e,t,n)=>{var r=n(5127),a=n(564);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},3414:(e,t,n)=>{var r=n(6689)("toUpperCase");e.exports=r},1426:(e,t,n)=>{"use strict";function r(){return Array.prototype.slice.call(arguments).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return"string"===typeof e})).join(" ")}n.r(t),n.d(t,{default:()=>r})},6470:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,a){for(var i,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{var r=n(5457);e.exports=f,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,o=0,s="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],h=n[1],f=n.index;if(s+=e.slice(o,f),o=f+d.length,h)s+=h[1];else{var p=e[o],m=n[2],g=n[3],y=n[4],b=n[5],v=n[6],w=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=p&&p!==m,S="+"===v||"*"===v,k="?"===v||"*"===v,A=n[2]||u,C=y||b;r.push({name:g||i++,prefix:m||"",delimiter:A,optional:k,repeat:S,partial:x,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+l(A)+"]+?"})}}return o{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3114:(module,__unused_webpack_exports,__webpack_require__)=>{var factory;globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let i=0;it}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=p(e)}catch(r){}}const a=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(r){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=c(e);return n.decode(r)}catch(n){i(`stringToPDFString: "${n}".`)}}const t=[];for(let r=0,a=e.length;r>8&255),String.fromCharCode(255&r))}return t.join("")},t.stringToUTF8String=p,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=i,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={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},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={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"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={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},t.UNSUPPORTED_FEATURES={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"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let a=r.WARNINGS;function i(e){a>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!==typeof e&&o("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0")));class h{static makeHexColor(e,t,n){return`#${d[e]}${d[t]}${d[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=h.applyTransform(e,t),r=h.applyTransform(e.slice(2,4),t),a=h.applyTransform([e[0],e[3]],t),i=h.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],a[0],i[0]),Math.min(n[1],r[1],a[1],i[1]),Math.max(n[0],r[0],a[0],i[0]),Math.max(n[1],r[1],a[1],i[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(n+i)/2,s=Math.sqrt((n+i)**2-4*(n*i-a*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>i?null:[n,a,r,i]}static bezierBoundingBox(e,t,n,r,a,i,o,s){const l=[],c=[[],[]];let u,d,h,f,p,m,g,y;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*o,h=3*n-3*e):(d=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*s,h=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;f=-h/d,0{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(__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__(5),_display_utils=__w_pdfjs_require__(8),_font_loader=__w_pdfjs_require__(11),_canvas=__w_pdfjs_require__(12),_worker_options=__w_pdfjs_require__(15),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(16),_metadata=__w_pdfjs_require__(17),_optional_content_config=__w_pdfjs_require__(18),_transport_stream=__w_pdfjs_require__(19),_xfa_text=__w_pdfjs_require__(20);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,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(21);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"===typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!==typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let a=null,i=null;for(const l in n){const e=n[l];switch(l){case"url":if("undefined"!==typeof window)try{r[l]=new URL(e,window.location).href;continue}catch(s){(0,_util.warn)(`Cannot create valid URL: "${s}".`)}else if("string"===typeof e||e instanceof URL){r[l]=e.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":a=e;continue;case"worker":i=e;continue;case"data":if(_is_node.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)r[l]=new Uint8Array(e);else{if(e instanceof Uint8Array)break;if("string"===typeof e)r[l]=(0,_util.stringToBytes)(e);else if("object"!==typeof e||null===e||isNaN(e.length)){if(!(0,_util.isArrayBuffer)(e))throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");r[l]=new Uint8Array(e)}else r[l]=new Uint8Array(e)}continue}r[l]=e}if(r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.StandardFontDataFactory=r.StandardFontDataFactory||DefaultStandardFontDataFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,r.enableXfa=!0===r.enableXfa,(!Number.isInteger(r.rangeChunkSize)||r.rangeChunkSize<1)&&(r.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!==typeof r.docBaseUrl||(0,_display_utils.isDataScheme)(r.docBaseUrl))&&(r.docBaseUrl=null),(!Number.isInteger(r.maxImageSize)||r.maxImageSize<-1)&&(r.maxImageSize=-1),"string"!==typeof r.cMapUrl&&(r.cMapUrl=null),"string"!==typeof r.standardFontDataUrl&&(r.standardFontDataUrl=null),"boolean"!==typeof r.useWorkerFetch&&(r.useWorkerFetch=r.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&r.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!==typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!==typeof r.disableFontFace&&(r.disableFontFace=_is_node.isNodeJS),"boolean"!==typeof r.useSystemFonts&&(r.useSystemFonts=!_is_node.isNodeJS&&!r.disableFontFace),"object"===typeof r.ownerDocument&&null!==r.ownerDocument||(r.ownerDocument=globalThis.document),"boolean"!==typeof r.disableRange&&(r.disableRange=!1),"boolean"!==typeof r.disableStream&&(r.disableStream=!1),"boolean"!==typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!i){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=i}const o=t.docId;return i.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(i,r,a,o),n=new Promise((function(e){let t;a?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,contentDispositionFilename:r.contentDispositionFilename,disableRange:r.disableRange,disableStream:r.disableStream},a):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,n]).then((function(e){let[n,a]=e;if(t.destroyed)throw new Error("Loading aborted");const s=new _message_handler.MessageHandler(o,n,i.port),l=new WorkerTransport(s,t,a,r);t._transport=l,s.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,r){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const a=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.16.105",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(t.data&&(t.data=null),e.destroyed)throw new Error("Worker was destroyed");return a}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await(this._transport?.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,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(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}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 e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||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(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._pageIndex=e,this._pageInfo=t,this._ownerDocument=r,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.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:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:a})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render(e){let{canvasContext:t,viewport:n,intent:r="display",annotationMode:a=_util.AnnotationMode.ENABLE,transform:i=null,imageLayer:o=null,canvasFactory:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:h=null}=e;void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&a===_util.AnnotationMode.ENABLE&&(a=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&a===_util.AnnotationMode.ENABLE&&(a=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const f=this._transport.getRenderingIntent(r,a,h);this.pendingCleanup=!1,c||(c=this._transport.getOptionalContentConfig());let p=this._intentStates.get(f.cacheKey);p||(p=Object.create(null),this._intentStates.set(f.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const m=s||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),g=!!(f.renderingIntent&_util.RenderingIntentFlag.PRINT);p.displayReadyCapability||(p.displayReadyCapability=(0,_util.createPromiseCapability)(),p.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(f));const y=e=>{p.renderTasks.delete(b),(this.cleanupAfterRender||g)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(b.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):b.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},b=new InternalRenderTask({callback:y,params:{canvasContext:t,viewport:n,transform:i,imageLayer:o,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:m,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:d});(p.renderTasks||=new Set).add(b);const v=b.task;return Promise.all([p.displayReadyCapability.promise,c]).then((e=>{let[t,n]=e;this.pendingCleanup?y():(this._stats&&this._stats.time("Rendering"),b.initializeGraphics({transparency:t,optionalContentConfig:n}),b.operatorListChanged())})).catch(y),v}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,!0);let a,i=this._intentStates.get(r.cacheKey);return i||(i=Object.create(null),this._intentStates.set(r.cacheKey,i)),i.opListReadCapability||(a=Object.create(null),a.operatorListChanged=function(){i.operatorList.lastChunk&&(i.opListReadCapability.resolve(i.operatorList),i.renderTasks.delete(a))},i.opListReadCapability=(0,_util.createPromiseCapability)(),(i.renderTasks||=new Set).add(a),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(r)),i.opListReadCapability.promise}streamTextContent(){let{disableCombineTextItems:e=!1,includeMarkedContent:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),a={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){let{value:r,done:i}=n;i?e(a):(Object.assign(a.styles,r.styles),a.items.push(...r.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n{a.read().then((e=>{let{value:t,done:n}=e;n?i.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,i),o())}),(e=>{if(i.streamReader=null,!this._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(const e of i.renderTasks)e.operatorListChanged();this._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}}))};o()}_abortOperatorList(e){let{intentState:t,reason:n,force:r=!1}=e;if(t.streamReader){if(!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException)return void(t.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:t,reason:n,force:!0}),t.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(a){return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#t=(()=>new WeakMap)();constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t&&PDFWorker.#t.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return PDFWorker.#t.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:t}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t),n=new _message_handler.MessageHandler("main","worker",e),r=()=>{e.removeEventListener("error",a),n.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},a=()=>{this._webWorker||r()};e.addEventListener("error",a),n.on("test",(t=>{e.removeEventListener("error",a),this.destroyed?r():t?(this._messageHandler=n,this._port=e,this._webWorker=e,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),e.terminate())})),n.on("ready",(t=>{if(e.removeEventListener("error",a),this.destroyed)r();else try{i()}catch(n){this._setupFakeWorker()}}));const i=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void i()}catch(e){(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((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const a=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=a,this._readyCapability.resolve(),a.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#t.has(e.port)?this.#t.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)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{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(e){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){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,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#n=null;#r=(()=>new Map)();#a=(()=>new Map)();#i=null;constructor(e,t,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,r.useWorkerFetch||(this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.StandardFontDataFactory=new r.StandardFontDataFactory({baseUrl:r.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,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 this.#n}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=_util.RenderingIntentFlag.DISPLAY,i=null;switch(e){case"any":a=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":a=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:a+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:a+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:a+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,i=(a&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return r&&(a+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:a,cacheKey:`${a}_${_annotation_storage.AnnotationStorage.getHash(i)}`,annotationStorageMap:i}}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 e=[];for(const n of this.#r.values())e.push(n._destroy());this.#r.clear(),this.#a.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#i=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:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(n),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then((()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),r.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(n),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(n){this._passwordCapability.reject(n)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#r.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{let[n,r,a]=t;if(!this.destroyed&&!this.commonObjs.has(n))switch(r){case"Font":const t=this._params;if("error"in a){const e=a.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(n,e);break}let i=null;t.pdfBug&&globalThis.FontInspector?.enabled&&(i={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const o=new _font_loader.FontFaceObject(a,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:i});this.fontLoader.bind(o).catch((t=>e.sendWithPromise("FontFallback",{id:n}))).finally((()=>{!t.fontExtraProperties&&o.data&&(o.data=null),this.commonObjs.resolve(n,o)}));break;case"FontPath":case"Image":this.commonObjs.resolve(n,a);break;default:throw new Error(`Got unknown common object type ${r}`)}})),e.on("obj",(e=>{let[t,n,r,a]=e;if(this.destroyed)return;const i=this.#r.get(n);if(!i.objs.has(t))switch(r){case"Image":i.objs.resolve(t,a);const e=8e6;if(a){let t;if(a.bitmap){const{bitmap:e,width:n,height:r}=a;t=n*r*4,i._bitmaps.add(e)}else t=a.data?.length||0;t>e&&(i.cleanupAfterRender=!0)}break;case"Pattern":i.objs.resolve(t,a);break;default:throw new Error(`Got unknown object type ${r}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||(this.#n=Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature(e){let{featureId:t}=e;this.destroyed||this.loadingTask.onUnsupportedFeature?.(t)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#a.get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return this.#r.set(t,n),n}));return this.#a.set(t,r),r}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}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(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#i||=this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of this.#r.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#i=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}class PDFObjects{#o=(()=>Object.create(null))();#s(e){const t=this.#o[e];return t||(this.#o[e]={capability:(0,_util.createPromiseCapability)(),data:null})}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=this.#s(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#o[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){return this.#o[e]?.capability.settled||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this.#s(e);n.data=t,n.capability.resolve()}clear(){this.#o=Object.create(null)}}class RenderTask{#l=null;constructor(e){this.#l=e,this.onContinue=null}get promise(){return this.#l.capability.promise}cancel(){this.#l.cancel()}get separateAnnots(){const{separateAnnots:e}=this.#l.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#l;return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#c=(()=>new WeakSet)();constructor(e){let{callback:t,params:n,objs:r,commonObjs:a,annotationCanvasMap:i,operatorList:o,pageIndex:s,canvasFactory:l,useRequestAnimationFrame:c=!1,pdfBug:u=!1,pageColors:d=null}=e;this.callback=t,this.params=n,this.objs=r,this.commonObjs=a,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this._pdfBug=u,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!==typeof window,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=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){let{transparency:t=!1,optionalContentConfig:n}=e;if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#c.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.");InternalRenderTask.#c.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:a,transform:i,imageLayer:o,background:s}=this.params;this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,o,n,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#c.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_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&&InternalRenderTask.#c.delete(this._canvas),this.callback())))}}const version="2.16.105";exports.version=version;const build="172ccdbe5";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),a=n(6),i=n(10);class o{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}remove(e){if(this._storage.delete(e),0===this._storage.size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of this._storage.values())if(e instanceof a.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this._storage.get(e);let r=!1;if(void 0!==n)for(const[a,i]of Object.entries(t))n[a]!==i&&(r=!0,n[a]=i);else r=!0,this._storage.set(e,t);r&&this.#u(),t instanceof a.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this._storage.has(e)}getAll(){return this._storage.size>0?(0,r.objectFromMap)(this._storage):null}get size(){return this._storage.size}#u(){this._modified||(this._modified=!0,"function"===typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new s(this)}get serializable(){if(0===this._storage.size)return null;const e=new Map;for(const[t,n]of this._storage){const r=n instanceof a.AnnotationEditor?n.serialize():n;r&&e.set(t,r)}return e}static getHash(e){if(!e)return"";const t=new i.MurmurHash3_64;for(const[n,r]of e)t.update(`${n}:${JSON.stringify(r)}`);return t.hexdigest()}}t.AnnotationStorage=o;class s extends o{#d=null;constructor(e){super(),this.#d=structuredClone(e.serializable)}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#d}}t.PrintAnnotationStorage=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(7),a=n(1);class i{#h=this.focusin.bind(this);#f=this.focusout.bind(this);#p=!1;#m=!1;#g=!1;#y=(()=>i._zIndex++)();static _colorManager=(()=>new r.ColorManager)();static _zIndex=1;constructor(e){this.constructor===i&&(0,a.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null;const[t,n]=this.parent.viewportBaseDimensions;this.x=e.x/t,this.y=e.y/n,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,a.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#y}focusin(e){this.#p?this.#p=!1:this.parent.setSelected(this)}focusout(e){this.isAttachedToDOM&&(e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove()))}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(e){const t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}setAt(e,t,n,r){const[a,i]=this.parent.viewportBaseDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/a,this.y=(t+r)/i,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}translate(e,t){const[n,r]=this.parent.viewportBaseDimensions;[e,t]=this.screenToPageTranslation(e,t),this.x+=e/n,this.y+=t/r,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}screenToPageTranslation(e,t){const{rotation:n}=this.parent.viewport;switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}setDims(e,t){const[n,r]=this.parent.viewportBaseDimensions;this.div.style.width=100*e/n+"%",this.div.style.height=100*t/r+"%"}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",this.#h),this.div.addEventListener("focusout",this.#f);const[e,t]=this.getInitialTranslation();return this.translate(e,t),(0,r.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),this.#p=!0)}getRect(e,t){const[n,r]=this.parent.viewportBaseDimensions,[a,i]=this.parent.pageDimensions,o=a*e/n,s=i*t/r,l=this.x*a,c=this.y*i,u=this.width*a,d=this.height*i;switch(this.rotation){case 0:return[l+o,i-c-s-d,l+o+u,i-c-s];case 90:return[l+s,i-c+o,l+s+d,i-c+o+u];case 180:return[l-o-u,i-c+s,l-o,i-c+s+d];case 270:return[l-s-d,i-c-o-u,l-s,i-c-o];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,a,i]=e,o=a-n,s=i-r;switch(this.rotation){case 0:return[n,t-i,o,s];case 90:return[n,t-r,s,o];case 180:return[a,t-r,o,s];case 270:return[a,t-i,s,o];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#h)}serialize(){(0,a.unreachable)("An editor must be serializable")}static deserialize(e,t){const n=new this.prototype.constructor({parent:t,id:t.getNextId()});n.rotation=e.rotation;const[r,a]=t.pageDimensions,[i,o,s,l]=n.getRectInCurrentCoords(e.rect,a);return n.x=i/r,n.y=o/a,n.width=s/r,n.height=l/a,n}remove(){this.div.removeEventListener("focusin",this.#h),this.div.removeEventListener("focusout",this.#f),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(e,t){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(e){this.#m=e,e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}t.AnnotationEditor=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var r=n(1),a=n(8);class i{#b=0;getId(){return`${r.AnnotationEditorPrefix}${this.#b++}`}}class o{#v=[];#w=!1;#x;#S=-1;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;this.#x=e}add(e){let{cmd:t,undo:n,mustExec:r,type:a=NaN,overwriteIfSameType:i=!1,keepUndo:o=!1}=e;if(r&&t(),this.#w)return;const s={cmd:t,undo:n,type:a};if(-1===this.#S)return this.#v.length>0&&(this.#v.length=0),this.#S=0,void this.#v.push(s);if(i&&this.#v[this.#S].type===a)return o&&(s.undo=this.#v[this.#S].undo),void(this.#v[this.#S]=s);const l=this.#S+1;l===this.#x?this.#v.splice(0,1):(this.#S=l,le.serialize())):this.#A=[e.serialize()],this.#A=this.#A.filter((e=>!!e)),0===this.#A.length&&(this.#A=null))}paste(){return this.#A}isEmpty(){return null===this.#A}destroy(){this.#A=null}}class c{static _colorsMapping=(()=>new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]))();get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,a.getColorValues)(e),(0,r.shadow)(this,"_colors",e)}convert(e){const t=(0,a.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,r]of this._colors)if(r.every(((e,n)=>e===t[n])))return c._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?r.Util.makeHexColor(...t):e}}t.ColorManager=c;class u{#C=null;#O=(()=>new Map)();#_=(()=>new Map)();#j=(()=>new l)();#P=(()=>new o)();#T=0;#E=null;#M=null;#N=(()=>new i)();#I=!1;#D=(()=>r.AnnotationEditorType.NONE)();#F=(()=>new Set)();#R=this.keydown.bind(this);#$=this.onEditingAction.bind(this);#L=this.onPageChanging.bind(this);#B={isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#U=null;static _keyboardManager=(()=>new s([[["ctrl+a","mac+meta+a"],u.prototype.selectAll],[["ctrl+c","mac+meta+c"],u.prototype.copy],[["ctrl+v","mac+meta+v"],u.prototype.paste],[["ctrl+x","mac+meta+x"],u.prototype.cut],[["ctrl+z","mac+meta+z"],u.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],u.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],u.prototype.delete],[["Escape","mac+Escape"],u.prototype.unselectAll]]))();constructor(e,t){this.#U=e,this.#M=t,this.#M._on("editingaction",this.#$),this.#M._on("pagechanging",this.#L)}destroy(){this.#z(),this.#M._off("editingaction",this.#$),this.#M._off("pagechanging",this.#L);for(const e of this.#_.values())e.destroy();this.#_.clear(),this.#O.clear(),this.#C=null,this.#F.clear(),this.#j.destroy(),this.#P.destroy()}onPageChanging(e){let{pageNumber:t}=e;this.#T=t-1}focusMainContainer(){this.#U.focus()}#H(){this.#U.addEventListener("keydown",this.#R)}#z(){this.#U.removeEventListener("keydown",this.#R)}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||u._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","cut","copy","paste","delete","selectAll"].includes(e.name)&&this[e.name]()}#q(e){Object.entries(e).some((e=>{let[t,n]=e;return this.#B[t]!==n}))&&this.#M.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#B,e)})}#W(e){this.#M.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#H(),this.#q({isEditing:this.#D!==r.AnnotationEditorType.NONE,isEmpty:this.#G(),hasSomethingToUndo:this.#P.hasSomethingToUndo(),hasSomethingToRedo:this.#P.hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:this.#j.isEmpty()})):(this.#z(),this.#q({isEditing:!1}))}registerEditorTypes(e){this.#E=e;for(const t of this.#E)this.#W(t.defaultPropertiesToUpdate)}getId(){return this.#N.getId()}addLayer(e){this.#_.set(e.pageIndex,e),this.#I?e.enable():e.disable()}removeLayer(e){this.#_.delete(e.pageIndex)}updateMode(e){if(this.#D=e,e===r.AnnotationEditorType.NONE)this.setEditingState(!1),this.#V();else{this.setEditingState(!0),this.#X();for(const t of this.#_.values())t.updateMode(e)}}updateToolbar(e){e!==this.#D&&this.#M.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){for(const n of this.#F)n.updateParams(e,t);for(const n of this.#E)n.updateDefaultParams(e,t)}#X(){if(!this.#I){this.#I=!0;for(const e of this.#_.values())e.enable()}}#V(){if(this.unselectAll(),this.#I){this.#I=!1;for(const e of this.#_.values())e.disable()}}getEditors(e){const t=[];for(const n of this.#O.values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return this.#O.get(e)}addEditor(e){this.#O.set(e.id,e)}removeEditor(e){this.#O.delete(e.id),this.unselect(e)}#K(e){const t=this.#_.get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#C!==e&&(this.#C=e,e&&this.#W(e.propertiesToUpdate))}toggleSelected(e){if(this.#F.has(e))return this.#F.delete(e),e.unselect(),void this.#q({hasSelectedEditor:this.hasSelection});this.#F.add(e),e.select(),this.#W(e.propertiesToUpdate),this.#q({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#F)t!==e&&t.unselect();this.#F.clear(),this.#F.add(e),e.select(),this.#W(e.propertiesToUpdate),this.#q({hasSelectedEditor:!0})}isSelected(e){return this.#F.has(e)}unselect(e){e.unselect(),this.#F.delete(e),this.#q({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#F.size}undo(){this.#P.undo(),this.#q({hasSomethingToUndo:this.#P.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#G()})}redo(){this.#P.redo(),this.#q({hasSomethingToUndo:!0,hasSomethingToRedo:this.#P.hasSomethingToRedo(),isEmpty:this.#G()})}addCommands(e){this.#P.add(e),this.#q({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#G()})}#G(){if(0===this.#O.size)return!0;if(1===this.#O.size)for(const e of this.#O.values())return e.isEmpty();return!1}delete(){if(this.#C&&this.#C.commitOrRemove(),!this.hasSelection)return;const e=[...this.#F];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#K(t)},mustExec:!0})}copy(){if(this.#C&&this.#C.commitOrRemove(),this.hasSelection){const e=[];for(const t of this.#F)t.isEmpty()||e.push(t);if(0===e.length)return;this.#j.copy(e),this.#q({hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(this.#j.isEmpty())return;this.unselectAll();const e=this.#_.get(this.#T),t=this.#j.paste().map((t=>e.deserialize(t)));this.addCommands({cmd:()=>{for(const e of t)this.#K(e);this.#Y(t)},undo:()=>{for(const e of t)e.remove()},mustExec:!0})}#Y(e){this.#F.clear();for(const t of e)t.isEmpty()||(this.#F.add(t),t.select());this.#q({hasSelectedEditor:!0})}selectAll(){for(const e of this.#F)e.commit();this.#Y(this.#O.values())}unselectAll(){if(this.#C)this.#C.commitOrRemove();else if(0!==this.#Y.size){for(const e of this.#F)e.unselect();this.#F.clear(),this.#q({hasSelectedEditor:!1})}}isActive(e){return this.#C===e}getActive(){return this.#C}getMode(){return this.#D}}t.AnnotationEditorUIManager=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,g(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:a,e:i,f:o}=e.getTransform();return[t,n,r,a,i,o]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:a,e:i,f:o}=e.getTransform().invertSelf();return[t,n,r,a,i,o]},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(f(e))return(0,a.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let i=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch(o){}return i||t},t.getRGB=g,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:r=0}=t;const{width:a,height:i}=e.attributes.style,o=[0,0,parseInt(a),parseInt(i)];return new d({viewBox:o,scale:n,rotation:r})},t.isDataScheme=f,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=p,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,r)=>{const a=document.createElement("script");a.src=e,a.onload=function(e){t&&a.remove(),n(e)},a.onerror=function(){r(new Error(`Cannot load script at: ${a.src}`))},(document.head||document.documentElement).append(a)}))};var r=n(9),a=n(1);t.AnnotationPrefix="pdfjs_internal_id_";class i{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=(()=>this.CSS/this.PDF)()}t.PixelsPerInch=i;class o extends r.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(p(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,a.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;if(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,a.stringToBytes)(i.responseText)),e)return void n(e)}r(new Error(i.statusText))}},i.send(null)}))}t.DOMCanvasFactory=o;class l extends r.BaseCMapReaderFactory{_fetchData(e,t){return s(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=l;class c extends r.BaseStandardFontDataFactory{_fetchData(e){return s(e,!0)}}t.DOMStandardFontDataFactory=c;class u extends r.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=u;class d{constructor(e){let{viewBox:t,scale:n,rotation:r,offsetX:a=0,offsetY:i=0,dontFlip:o=!1}=e;this.viewBox=t,this.scale=n,this.rotation=r,this.offsetX=a,this.offsetY=i;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,h,f,p,m,g;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,u=0,d=0,h=1;break;case 90:c=0,u=1,d=1,h=0;break;case 270:c=0,u=-1,d=-1,h=0;break;case 0:c=1,u=0,d=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(d=-d,h=-h),0===c?(f=Math.abs(l-t[1])*n+a,p=Math.abs(s-t[0])*n+i,m=Math.abs(t[3]-t[1])*n,g=Math.abs(t[2]-t[0])*n):(f=Math.abs(s-t[0])*n+a,p=Math.abs(l-t[1])*n+i,m=Math.abs(t[2]-t[0])*n,g=Math.abs(t[3]-t[1])*n),this.transform=[c*n,u*n,d*n,h*n,f-c*n*s-d*n*l,p-u*n*s-h*n*l],this.width=m,this.height=g}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new d({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:a})}convertToViewportPoint(e,t){return a.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=a.Util.applyTransform([e[0],e[1]],this.transform),n=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=d;class h extends a.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function f(e){const t=e.length;let n=0;for(;n>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,a.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.RenderingCancelledException=h,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,a.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,a.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const n of this.times){const e=n.name;e.length>t&&(t=e.length)}for(const n of this.times){const r=n.end-n.start;e.push(`${n.name.padEnd(t)} ${r}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=m.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(i+=c,o+=u):"+"===l&&(i-=c,o-=u),new Date(Date.UTC(n,r,a,i,o,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=a;class i{constructor(e){let{baseUrl:t=null,isCompressed:n=!1}=e;this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),a=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(n,a).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=i;class o{constructor(e){let{baseUrl:t=null}=e;this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetchData(n).catch((e=>{throw new Error(`Unable to load font data at: ${n}`)}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=o;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width",`${e}px`),r.setAttribute("height",`${t}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${t}`),r}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const a=3285377520,i=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:a,this.h2=e?4294967295&e:a}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,a=e.length;r>>8,t[n++]=255&a)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const a=n>>2,s=n-4*a,l=new Uint32Array(t.buffer,0,a);let c=0,u=0,d=this.h1,h=this.h2;const f=3432918353,p=461845907,m=11601,g=13715;for(let r=0;r>>17,c=c*p&i|c*g&o,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*f&i|u*m&o,u=u<<15|u>>>17,u=u*p&i|u*g&o,h^=u,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,s){case 3:c^=t[4*a+2]<<16;case 2:c^=t[4*a+1]<<8;case 1:c^=t[4*a],c=c*f&i|c*m&o,c=c<<15|c>>>17,c=c*p&i|c*g&o,1&a?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1);class a{constructor(e){let{docId:t,onUnsupportedFeature:n,ownerDocument:i=globalThis.document,styleElement:o=null}=e;this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=t,this._onUnsupportedFeature=n,this._document=i,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)}))}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let i;t.FontLoader=i,t.FontLoader=i=class extends a{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;return("undefined"===typeof navigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function a(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,s;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=i(h,976,d.length,d);const f=1482184792;let p=a(h,16);for(o=0,s=d.length-3;o30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{y.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:r=!1,ignoreErrors:a=!1,onUnsupportedFeature:i,fontRegistry:o=null}=t;this.compiledGlyphs=Object.create(null);for(const s in e)this[s]=e[s];this.isEvalSupported=!1!==n,this.disableFontFace=!0===r,this.ignoreErrors=!0===a,this._onUnsupportedFeature=i,this.fontRegistry=o}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(a){if(!this.ignoreErrors)throw a;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${a}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(8),a=n(1),i=n(13),o=n(14),s=n(3);const l=4096,c=s.isNodeJS&&"undefined"===typeof Path2D?-1:1e3,u=16;class d{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function h(e,t,n,a,i,o,s,l,c,u){const[d,h,f,p,m,g]=(0,r.getCurrentTransform)(e);if(0===h&&0===f){const r=s*d+m,y=Math.round(r),b=l*p+g,v=Math.round(b),w=(s+c)*d+m,x=Math.abs(Math.round(w)-y)||1,S=(l+u)*p+g,k=Math.abs(Math.round(S)-v)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(p),y,v),e.drawImage(t,n,a,i,o,0,0,x,k),e.setTransform(d,h,f,p,m,g),[x,k]}if(0===d&&0===p){const r=l*f+m,y=Math.round(r),b=s*h+g,v=Math.round(b),w=(l+u)*f+m,x=Math.abs(Math.round(w)-y)||1,S=(s+c)*h+g,k=Math.abs(Math.round(S)-v)||1;return e.setTransform(0,Math.sign(h),Math.sign(f),0,y,v),e.drawImage(t,n,a,i,o,0,0,k,x),e.setTransform(d,h,f,p,m,g),[k,x]}return e.drawImage(t,n,a,i,o,s,l,c,u),[Math.hypot(d,h)*c,Math.hypot(f,p)*u]}class f{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=a.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=a.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=a.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,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=a.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=a.Util.applyTransform(t,e),r=a.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],r[0]),this.minY=Math.min(this.minY,n[1],r[1]),this.maxX=Math.max(this.maxX,n[0],r[0]),this.maxY=Math.max(this.maxY,n[1],r[1])}updateScalingPathMinMax(e,t){a.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,r,i,o,s,l,c,u){const d=a.Util.bezierBoundingBox(t,n,r,i,o,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===i.PathType.STROKE){t||(0,a.unreachable)("Stroke bounding box must include transform.");const e=a.Util.singularValueDecompose2dScale(t),r=e[0]*this.lineWidth/2,i=e[1]*this.lineWidth/2;n[0]-=r,n[1]-=i,n[2]+=r,n[3]+=i}return n}updateClipFromPath(){const e=a.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const r=t.height,i=t.width,o=r%u,s=(r-o)/u,l=0===o?s:s+1,c=e.createImageData(i,u);let d,h=0;const f=t.data,p=c.data;let m,g,y,b,v,w,x,S;if(n)switch(n.length){case 1:v=n[0],w=n[0],x=n[0],S=n[0];break;case 4:v=n[0],w=n[1],x=n[2],S=n[3]}if(t.kind===a.ImageKind.GRAYSCALE_1BPP){const t=f.byteLength,n=new Uint32Array(p.buffer,0,p.byteLength>>2),r=n.length,b=i+7>>3;let v=4294967295,w=a.FeatureTest.isLittleEndian?4278190080:255;for(S&&255===S[0]&&0===S[255]&&([v,w]=[w,v]),m=0;mb?i:8*e-7,o=-8&a;let s=0,l=0;for(;r>=1}for(;d=s&&(y=o,b=i*y),d=0,g=b;g--;)p[d++]=f[h++],p[d++]=f[h++],p[d++]=f[h++],p[d++]=255;if(t)for(let e=0;e>8,e[i-2]=e[i-2]*a+n*o>>8,e[i-1]=e[i-1]*a+r*o>>8}}}function v(e,t,n){const r=e.length;for(let a=3;a>8]>>8:t[a]*r>>16}}function x(e,t,n,r){const a=r[0],i=r[1],o=r[2]-a,s=r[3]-i;0!==o&&0!==s&&(function(e,t,n,r,a,i,o,s,l,c,u){const d=!!i,h=d?i[0]:0,f=d?i[1]:0,p=d?i[2]:0;let m;m="Luminosity"===a?w:v;const g=Math.min(r,Math.ceil(1048576/n));for(let y=0;y1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:a=!1,background:i=null}=e;const o=this.ctx.canvas.width,s=this.ctx.canvas.height,l=i||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,a=l;if(this.ctx.fillStyle=l,a=this.ctx.fillStyle,n="string"===typeof a&&/^#[0-9A-Fa-f]{6}$/.test(a),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const[n,i,o]=(0,r.getRGB)(a),s=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*s(n)+.7152*s(i)+.0722*s(o));this.selectColor=(n,r,a)=>{const i=.2126*s(n)+.7152*s(r)+.0722*s(a);return Math.round(i)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||l,this.ctx.fillRect(0,0,o,s),this.ctx.restore(),a){const e=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,r.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),y(this.ctx,this.foregroundColor),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,r.getCurrentTransform)(this.ctx),this.imageLayer&&((0,r.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(e,t,n,r){const i=e.argsArray,o=e.fnArray;let s=t||0;const l=i.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const h=this.commonObjs,f=this.objs;let p;for(;;){if(void 0!==r&&s===r.nextBreakPoint)return r.breakIt(s,n),s;if(p=o[s],p!==a.OPS.dependency)this[p].apply(this,i[s]);else for(const e of i[s]){const t=e.startsWith("g_")?h:f;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}#Z(){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)}endDrawing(){this.#Z(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,r=e.height;let a,i,o=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;o>2&&l>1||s>2&&c>1;){let t=l,n=c;o>2&&l>1&&(t=Math.ceil(l/2),o/=l/t),s>2&&c>1&&(n=Math.ceil(c/2),s/=c/n),a=this.cachedCanvases.getCanvas(u,t,n),i=a.context,i.clearRect(0,0,t,n),i.drawImage(e,0,0,l,c,0,0,t,n),e=a.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:o}=e,s=this.current.fillColor,l=this.current.patternFill,c=(0,r.getCurrentTransform)(t);let u,d,f,p;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=c.slice(0,4);d=JSON.stringify(l?n:[n,s]),u=this._cachedBitmapsMap.get(t),u||(u=new Map,this._cachedBitmapsMap.set(t,u));const r=u.get(d);if(r&&!l)return{canvas:r,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};f=r}f||(p=this.cachedCanvases.getCanvas("maskCanvas",n,o),m(p.context,e));let g=a.Util.transform(c,[1/n,0,0,-1/o,0,0]);g=a.Util.transform(g,[1,0,0,1,0,-o]);const y=a.Util.applyTransform([0,0],g),b=a.Util.applyTransform([n,o],g),v=a.Util.normalizeRect([y[0],y[1],b[0],b[1]]),w=Math.round(v[2]-v[0])||1,x=Math.round(v[3]-v[1])||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,x),A=k.context,C=Math.min(y[0],b[0]),O=Math.min(y[1],b[1]);A.translate(-C,-O),A.transform(...g),f||(f=this._scaleImage(p.canvas,(0,r.getCurrentTransformInverse)(A)),f=f.img,u&&l&&u.set(d,f)),A.imageSmoothingEnabled=S((0,r.getCurrentTransform)(A),e.interpolate),h(A,f,0,0,f.width,f.height,0,0,n,o),A.globalCompositeOperation="source-in";const _=a.Util.transform((0,r.getCurrentTransformInverse)(A),[1,0,0,1,-C,-O]);return A.fillStyle=l?s.getPattern(t,this,_,i.PathType.FILL):s,A.fillRect(0,0,n,o),u&&!l&&(this.cachedCanvases.delete("fillCanvas"),u.set(d,k.canvas)),{canvas:k.canvas,offsetX:Math.round(C),offsetY:Math.round(O)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=k[e]}setLineJoin(e){this.ctx.lineJoin=A[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,a,i,o){t.transform(e,n,r,a,i,o),this.__originalTransform(e,n,r,a,i,o)},e.setTransform=function(e,n,r,a,i,o){t.setTransform(e,n,r,a,i,o),this.__originalSetTransform(e,n,r,a,i,o)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,a,i,o){t.bezierCurveTo(e,n,r,a,i,o),this.__originalBezierCurveTo(e,n,r,a,i,o)},e.rect=function(e,n,r,a){t.rect(e,n,r,a),this.__originalRect(e,n,r,a)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(i,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(),g(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;x(this.suspendedCtx,t,this.ctx,e),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?(g(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),g(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,a,i){this.ctx.transform(e,t,n,r,a,i),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const i=this.ctx,o=this.current;let s,l,c=o.x,u=o.y;const d=(0,r.getCurrentTransform)(i),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],f=h?n.slice(0):null;for(let r=0,p=0,m=e.length;r100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${s} ${o} ${c}px ${l}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,a,i){this.current.textMatrix=[e,t,n,r,a,i],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,i){const o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&a.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&a.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&!l.missingFile;let p;(l.disableFontFace||h||f)&&(p=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,n),o.beginPath(),p(o,u),i&&o.setTransform(...i),d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fill(),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,r.getCurrentTransform)(o),x:t,y:n,fontSize:u,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let r=3;r0&&t[r]<255){n=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const o=t.fontSize;if(0===o)return;const s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,f=e.length,p=n.vertical,m=p?1:-1,g=n.defaultVMetrics,y=o*t.fontMatrix[0],b=t.textRenderingMode===a.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let v;if(s.save(),s.transform(...t.textMatrix),s.translate(t.x,t.y+t.textRise),d>0?s.scale(h,-1):s.scale(h,1),t.patternFill){s.save();const e=t.fillColor.getPattern(s,this,(0,r.getCurrentTransformInverse)(s),i.PathType.FILL);v=(0,r.getCurrentTransform)(s),s.restore(),s.fillStyle=e}let w=t.lineWidth;const x=t.textMatrixScale;if(0===x||0===w){const e=t.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;e!==a.TextRenderingMode.STROKE&&e!==a.TextRenderingMode.FILL_STROKE||(w=this.getSinglePixelWidth())}else w/=x;1!==l&&(s.scale(l,l),w/=l),s.lineWidth=w;let S,k=0;for(S=0;S0){const e=1e3*s.measureText(i).width/o*l;if(Anew _(e,this.commonObjs,this.objs,this.canvasFactory)};t=new i.TilingPattern(e,n,this.ctx,o,a)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||a.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r}setFillRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||a.Util.makeHexColor(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,i.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),i.PathType.SHADING);const o=(0,r.getCurrentTransformInverse)(t);if(o){const e=t.canvas,n=e.width,r=e.height,i=a.Util.applyTransform([0,0],o),s=a.Util.applyTransform([0,r],o),l=a.Util.applyTransform([n,0],o),c=a.Util.applyTransform([n,r],o),u=Math.min(i[0],s[0],l[0],c[0]),d=Math.min(i[1],s[1],l[1],c[1]),h=Math.max(i[0],s[0],l[0],c[0]),f=Math.max(i[1],s[1],l[1],c[1]);this.ctx.fillRect(u,d,h-u,f-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,a.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,a.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,r.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,r.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,a.info)("TODO: Support non-isolated groups."),e.knockout&&(0,a.warn)("Knockout groups not supported.");const n=(0,r.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let i=a.Util.getAxialAlignedBoundingBox(e.bbox,(0,r.getCurrentTransform)(t));const o=[0,0,t.canvas.width,t.canvas.height];i=a.Util.intersect(i,o)||[0,0,0,0];const s=Math.floor(i[0]),c=Math.floor(i[1]);let u=Math.max(Math.ceil(i[2])-s,1),d=Math.max(Math.ceil(i[3])-c,1),h=1,f=1;u>l&&(h=u/l,u=l),d>l&&(f=d/l,d=l),this.current.startNewPathAndClipBox([0,0,u,d]);let p="groupAt"+this.groupLevel;e.smask&&(p+="_smask_"+this.smaskCounter++%2);const m=this.cachedCanvases.getCanvas(p,u,d),y=m.context;y.scale(1/h,1/f),y.translate(-s,-c),y.transform(...n),e.smask?this.smaskStack.push({canvas:m.canvas,context:y,offsetX:s,offsetY:c,scaleX:h,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,c),t.scale(h,f),t.save()),g(t,y),this.ctx=y,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,r.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=a.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,i,o){if(this.#Z(),y(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const i=t[2]-t[0],s=t[3]-t[1];if(o&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=i,t[3]=s;const[o,l]=a.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(i*this.outputScaleX*c),d=Math.ceil(s*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:h,context:f}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=f,this.ctx.setTransform(o,0,0,-l,0,s*l),y(this.ctx,this.foregroundColor)}else y(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],i,s),this.ctx.clip(),this.endPath()}this.current=new f(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>c||n>c)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),a=t+1;let i,o,s,l=new Uint8Array(a*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),h=0;for(const c of e.data){let e=128;for(;e>0;)d[h++]=c&e?0:255,e>>=1}let f=0;for(h=0,0!==d[h]&&(l[0]=1,++f),o=1;o>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0),r[e]&&(l[s+o]=r[e],++f),h++;if(d[h-u]!==d[h]&&(l[s+o]=d[h]?2:4,++f),f>1e3)return null}for(h=u*(n-1),s=i*a,0!==d[h]&&(l[s]=8,++f),o=1;o1e3)return null;const p=new Int32Array([0,a,-1,0,-a,0,0,0,1]),m=new Path2D;for(i=0;f&&i<=n;i++){let e=i*a;const n=e+t;for(;e>4,l[e]&=o>>2|o<<2),m.lineTo(e%a,e/a|0),l[e]||--f}while(r!==e);--i}return d=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(m),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const a=this._createMaskCanvas(e),i=a.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(i,a.offsetX,a.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,r.getCurrentTransform)(l);l.transform(t,n,i,o,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,0,0);for(let r=0,d=s.length;rt?o/t:1,a=i>t?i/t:1}}this._cachedScaleForStroking=[n,a]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[a,i]=this.getScaleForStroking();if(t.lineWidth=n||1,1===a&&1===i)return void t.stroke();let o,s,l;e&&(o=(0,r.getCurrentTransform)(t),s=t.getLineDash().slice(),l=t.lineDashOffset),t.scale(a,i);const c=Math.max(a,i);t.setLineDash(t.getLineDash().map((e=>e/c))),t.lineDashOffset/=c,t.stroke(),e&&(t.setTransform(...o),t.setLineDash(s),t.lineDashOffset=l)}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=_;for(const j in a.OPS)void 0!==_.prototype[j]&&(_.prototype[a.OPS[j]]=_.prototype[j])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new c(e);case"Mesh":return new h(e);case"Dummy":return new f}throw new Error(`Unknown IR type: ${e[0]}`)};var r=n(1),a=n(8),i=n(3);const o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(!t||i.isNodeJS)return;const n=t[2]-t[0],r=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,r),e.clip(a)}t.PathType=o;class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class c extends l{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,i){let l;if(i===o.STROKE||i===o.FILL){const o=t.current.getClippedPathBoundingBox(i,(0,a.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(o[2]-o[0])||1,d=Math.ceil(o[3]-o[1])||1,h=t.cachedCanvases.getCanvas("pattern",u,d,!0),f=h.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-o[0],-o[1]),n=r.Util.transform(n,[1,0,0,1,o[0],o[1]]),f.transform(...t.baseTransform),this.matrix&&f.transform(...this.matrix),s(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),l=e.createPattern(h.canvas,"no-repeat");const p=new DOMMatrix(n);try{l.setTransform(p)}catch(c){(0,r.warn)(`RadialAxialShadingPattern.getPattern: "${c?.message}".`)}}else s(e,this._bbox),l=this._createGradient(e);return l}}function u(e,t,n,r,a,i,o,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let h;l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=i,i=o,o=h),l[r+1]>l[a+1]&&(h=r,r=a,a=h,h=o,o=s,s=h),l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=i,i=o,o=h);const f=(l[n]+t.offsetX)*t.scaleX,p=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,y=(l[a]+t.offsetX)*t.scaleX,b=(l[a+1]+t.offsetY)*t.scaleY;if(p>=b)return;const v=c[i],w=c[i+1],x=c[i+2],S=c[o],k=c[o+1],A=c[o+2],C=c[s],O=c[s+1],_=c[s+2],j=Math.round(p),P=Math.round(b);let T,E,M,N,I,D,F,R;for(let $=j;$<=P;$++){if($b?1:g===b?0:(g-$)/(g-b),T=m-(m-y)*e,E=S-(S-C)*e,M=k-(k-O)*e,N=A-(A-_)*e}let e;e=$b?1:(p-$)/(p-b),I=f-(f-y)*e,D=v-(v-C)*e,F=w-(w-O)*e,R=x-(x-_)*e;const t=Math.round(Math.min(T,I)),n=Math.round(Math.max(T,I));let r=d*$+4*t;for(let a=t;a<=n;a++)e=(T-a)/(T-I),e<0?e=0:e>1&&(e=1),u[r++]=E-(E-D)*e|0,u[r++]=M-(M-F)*e|0,u[r++]=N-(N-R)*e|0,u[r++]=255}}function d(e,t,n){const r=t.coords,a=t.colors;let i,o;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,c=s-1;for(i=0;i=r?a=r:n=a/e,{scale:n,size:a}}clipBbox(e,t,n,r,i){const o=r-t,s=i-n;e.ctx.rect(t,n,o,s),e.current.updateRectMinMax((0,a.getCurrentTransform)(e.ctx),[t,n,r,i]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const a=e.ctx,i=e.current;switch(t){case p:const e=this.ctx;a.fillStyle=e.fillStyle,a.strokeStyle=e.strokeStyle,i.fillColor=e.fillStyle,i.strokeColor=e.strokeStyle;break;case m:const o=r.Util.makeHexColor(n[0],n[1],n[2]);a.fillStyle=o,a.strokeStyle=o,i.fillColor=o,i.strokeColor=o;break;default:throw new r.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,a){let i=n;a!==o.SHADING&&(i=r.Util.transform(i,t.baseTransform),this.matrix&&(i=r.Util.transform(i,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(i);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");try{c.setTransform(l)}catch(u){(0,r.warn)(`TilingPattern.getPattern: "${u?.message}".`)}return c}}t.TilingPattern=g},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:n=0,dest:a,destPos:i=0,width:o,height:s,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[0,c]:[c,0],h=o>>3,f=7&o,p=t.length;a=new Uint32Array(a.buffer);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const a=1,i=2,o=1,s=2,l=3,c=4,u=5,d=6,h=7,f=8;function p(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===a)n.resolve(t.data);else{if(t.callback!==i)throw new Error("Unexpected callback case");n.reject(p(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,o=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:o,callback:a,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:o,callback:i,callbackId:t.callbackId,reason:p(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const a=this.callbackId++,i=(0,r.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},n)}catch(o){i.reject(o)}return i.promise}sendWithStream(e,t,n,a){const i=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const o=(0,r.createPromiseCapability)();return this.streamControllers[i]={controller:n,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:n.desiredSize},a),o.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:o,streamId:i,reason:p(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,o=this,s=this.actionHandler[e.action],d={enqueue(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t}),delete o.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:u,streamId:t,reason:p(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,reason:p(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case f:e.success?m.startCall.resolve():m.startCall.reject(p(e.reason));break;case h:e.success?m.pullCall.resolve():m.pullCall.reject(p(e.reason));break;case d:if(!g){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull&&g.onPull())})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this._deleteStreamController(m,t);break;case u:(0,r.assert)(m,"error should have stream controller"),m.controller.error(p(e.reason)),this._deleteStreamController(m,t);break;case s:e.success?m.cancelCall.resolve():m.cancelCall.reject(p(e.reason)),this._deleteStreamController(m,t);break;case o:if(!g)break;new Promise((function(t){t(g.onCancel&&g.onCancel(p(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,reason:p(e)})})),g.sinkCapability.reject(p(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1);t.Metadata=class{#J;#Q;constructor(e){let{parsedData:t,rawData:n}=e;this.#J=t,this.#Q=n}getRaw(){return this.#Q}get(e){return this.#J.get(e)??null}getAll(){return(0,r.objectFromMap)(this.#J)}has(e){return this.#J.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1);const a=Symbol("INTERNAL");class i{#ee=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#ee}_setVisible(e,t){e!==a&&(0,r.unreachable)("Internal method `_setVisible` called."),this.#ee=t}}t.OptionalContentConfig=class{#te=!0;#ne=(()=>new Map)();#re=null;#ae=null;constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#ae=e.order;for(const t of e.groups)this.#ne.set(t.id,new i(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#ne.values())e._setVisible(a,!1);for(const t of e.on)this.#ne.get(t)._setVisible(a,!0);for(const t of e.off)this.#ne.get(t)._setVisible(a,!1);this.#re=new Map;for(const[e,t]of this.#ne)this.#re.set(e,t.visible)}}#ie(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let a=1;a1&&void 0!==arguments[1])||arguments[1];this.#ne.has(e)?(this.#ne.get(e)._setVisible(a,!!t),this.#te=null):(0,r.warn)(`Optional content group not found: ${e}`)}get hasInitialVisibility(){if(null!==this.#te)return this.#te;for(const[e,t]of this.#ne){const n=this.#re.get(e);if(t.visible!==n)return this.#te=!1}return this.#te=!0}getOrder(){return this.#ne.size?this.#ae?this.#ae.slice():[...this.#ne.keys()]:null}getGroups(){return this.#ne.size>0?(0,r.objectFromMap)(this.#ne):null}getGroup(e){return this.#ne.get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),a=n(8);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if(n?.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new i(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new o(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,a.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const a of this._queuedChunks)this._loaded+=a.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.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 e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class o{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.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 e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){if(!r)return;let a=null;const i=r.name;if("#text"===i)a=r.value;else{if(!n.shouldBuildText(i))return;r?.attributes?.textContent?a=r.attributes.textContent:r.value&&(a=r.value)}if(null!==a&&t.push({str:a}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(9);const a=function(e){return new Promise(((t,n)=>{__webpack_require__(3237).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class i extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(7640).createCanvas(e,t)}}t.NodeCanvasFactory=i;class o extends r.BaseCMapReaderFactory{_fetchData(e,t){return a(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=o;class s extends r.BaseStandardFontDataFactory{_fetchData(e){return a(e)}}t.NodeStandardFontDataFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(7),a=n(1),i=n(23),o=n(24);class s{#oe;#se=!1;#le=this.pointerup.bind(this);#ce=this.pointerdown.bind(this);#ue=(()=>new Map)();#de=!1;#he=!1;#fe;static _initialized=!1;constructor(e){s._initialized||(s._initialized=!0,i.FreeTextEditor.initialize(e.l10n),o.InkEditor.initialize(e.l10n),e.uiManager.registerEditorTypes([i.FreeTextEditor,o.InkEditor])),this.#fe=e.uiManager,this.annotationStorage=e.annotationStorage,this.pageIndex=e.pageIndex,this.div=e.div,this.#oe=e.accessibilityManager,this.#fe.addLayer(this)}updateToolbar(e){this.#fe.updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.#fe.getMode();this.#pe(),e===a.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),this.#fe.unselectAll()}addInkEditorIfNeeded(e){if(e||this.#fe.getMode()===a.AnnotationEditorType.INK){if(!e)for(const e of this.#ue.values())if(e.isEmpty())return void e.setInBackground();this.#me({offsetX:0,offsetY:0}).setInBackground()}}setEditingState(e){this.#fe.setEditingState(e)}addCommands(e){this.#fe.addCommands(e)}enable(){this.div.style.pointerEvents="auto";for(const e of this.#ue.values())e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const e of this.#ue.values())e.disableEditing()}setActiveEditor(e){this.#fe.getActive()!==e&&this.#fe.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#ce),this.div.addEventListener("pointerup",this.#le)}disableClick(){this.div.removeEventListener("pointerdown",this.#ce),this.div.removeEventListener("pointerup",this.#le)}attach(e){this.#ue.set(e.id,e)}detach(e){this.#ue.delete(e.id),this.#oe?.removePointerInTextLayer(e.contentDiv)}remove(e){this.#fe.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&&this.#fe.focusMainContainer()}),0),this.#he||this.addInkEditorIfNeeded(!1)}#ge(e){e.parent!==this&&(this.attach(e),e.pageIndex=this.pageIndex,e.parent?.detach(e),e.parent=this,e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.#ge(e),this.#fe.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveEditorInDOM(e),e.onceAdded(),this.addToAnnotationStorage(e)}moveEditorInDOM(e){this.#oe?.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){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!0})}addUndoableEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#fe.getId()}#ye(e){switch(this.#fe.getMode()){case a.AnnotationEditorType.FREETEXT:return new i.FreeTextEditor(e);case a.AnnotationEditorType.INK:return new o.InkEditor(e)}return null}deserialize(e){switch(e.annotationType){case a.AnnotationEditorType.FREETEXT:return i.FreeTextEditor.deserialize(e,this);case a.AnnotationEditorType.INK:return o.InkEditor.deserialize(e,this)}return null}#me(e){const t=this.getNextId(),n=this.#ye({parent:this,id:t,x:e.offsetX,y:e.offsetY});return n&&this.add(n),n}setSelected(e){this.#fe.setSelected(e)}toggleSelected(e){this.#fe.toggleSelected(e)}isSelected(e){return this.#fe.isSelected(e)}unselect(e){this.#fe.unselect(e)}pointerup(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&this.#de&&(this.#de=!1,this.#se?this.#me(e):this.#se=!0)}pointerdown(e){const t=r.KeyboardManager.platform.isMac;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;this.#de=!0;const n=this.#fe.getActive();this.#se=!n||n.isEmpty()}drop(e){const t=e.dataTransfer.getData("text/plain"),n=this.#fe.getEditor(t);if(!n)return;e.preventDefault(),e.dataTransfer.dropEffect="move",this.#ge(n);const r=this.div.getBoundingClientRect(),a=e.clientX-r.x,i=e.clientY-r.y;n.translate(a-n.startX,i-n.startY),this.moveEditorInDOM(n),n.div.focus()}dragover(e){e.preventDefault()}destroy(){this.#fe.getActive()?.parent===this&&this.#fe.setActiveEditor(null);for(const e of this.#ue.values())this.#oe?.removePointerInTextLayer(e.contentDiv),e.isAttachedToDOM=!1,e.div.remove(),e.parent=null;this.div=null,this.#ue.clear(),this.#fe.removeLayer(this)}#pe(){this.#he=!0;for(const e of this.#ue.values())e.isEmpty()&&e.remove();this.#he=!1}render(e){this.viewport=e.viewport,(0,r.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const t of this.#fe.getEditors(this.pageIndex))this.add(t);this.updateMode()}update(e){this.viewport=e.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[e,t,n,r]=this.viewport.viewBox;return[n-e,r-t]}get viewportBaseDimensions(){const{width:e,height:t,rotation:n}=this.viewport;return n%180===0?[e,t]:[t,e]}setDimensions(){const{width:e,height:t,rotation:n}=this.viewport,r=n%180!==0,a=Math.floor(e)+"px",i=Math.floor(t)+"px";this.div.style.width=r?i:a,this.div.style.height=r?a:i,this.div.setAttribute("data-main-rotation",n)}}t.AnnotationEditorLayer=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var r=n(1),a=n(7),i=n(6);class o extends i.AnnotationEditor{#be=this.editorDivBlur.bind(this);#ve=this.editorDivFocus.bind(this);#we=this.editorDivKeydown.bind(this);#xe;#Se="";#ke=!1;#Ae;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=(()=>new a.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],o.prototype.commitOrRemove]]))();static _type="freetext";constructor(e){super({...e,name:"freeTextEditor"}),this.#xe=e.color||o._defaultColor||i.AnnotationEditor._defaultLineColor,this.#Ae=e.fontSize||o._defaultFontSize}static initialize(e){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map((t=>[t,e.get(t)])));const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:o._defaultFontSize=t;break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:o._defaultColor=t}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Ce(t);break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Oe(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,o._defaultFontSize],[r.AnnotationEditorParamsType.FREETEXT_COLOR,o._defaultColor||i.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,this.#Ae],[r.AnnotationEditorParamsType.FREETEXT_COLOR,this.#xe]]}#Ce(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#Ae)*this.parent.scaleFactor),this.#Ae=e,this.#_e()},n=this.#Ae;this.parent.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Oe(e){const t=this.#xe;this.parent.addCommands({cmd:()=>{this.#xe=e,this.editorDiv.style.color=e},undo:()=>{this.#xe=t,this.editorDiv.style.color=t},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){return[-o._internalPadding*this.parent.scaleFactor,-(o._internalPadding+this.#Ae)*this.parent.scaleFactor]}rebuild(){super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(r.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",this.#we),this.editorDiv.addEventListener("focus",this.#ve),this.editorDiv.addEventListener("blur",this.#be))}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",this.#we),this.editorDiv.removeEventListener("focus",this.#ve),this.editorDiv.removeEventListener("blur",this.#be),this.div.focus(),this.isEditing=!1)}focusin(e){super.focusin(e),e.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()}#je(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(let n=0,r=e.length;nthis.editorDiv?.setAttribute("aria-label",e))),o._l10nPromise.get("free_text_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#Ae}px * var(--scale-factor))`,n.color=this.#xe,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,a.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r);for(const e of this.#Se.split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}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(e,t){const n=super.deserialize(e,t);return n.#Ae=e.fontSize,n.#xe=r.Util.makeHexColor(...e.color),n.#Se=e.value,n}serialize(){if(this.isEmpty())return null;const e=o._internalPadding*this.parent.scaleFactor,t=this.getRect(e,e),n=i.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:r.AnnotationEditorType.FREETEXT,color:n,fontSize:this.#Ae,value:this.#Se,pageIndex:this.parent.pageIndex,rect:t,rotation:this.rotation}}}t.FreeTextEditor=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return i.fitCurve}});var r=n(1),a=n(6),i=n(25),o=n(7);const s=16;class l extends a.AnnotationEditor{#Pe=0;#Te=0;#Ee=0;#Me=this.canvasPointermove.bind(this);#Ne=this.canvasPointerleave.bind(this);#Ie=this.canvasPointerup.bind(this);#De=this.canvasPointerdown.bind(this);#Fe=!1;#Re=!1;#$e=null;#Le=null;#Be=0;#Ue=0;#ze=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;static _type="ink";constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map((t=>[t,e.get(t)])))}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:l._defaultThickness=t;break;case r.AnnotationEditorParamsType.INK_COLOR:l._defaultColor=t;break;case r.AnnotationEditorParamsType.INK_OPACITY:l._defaultOpacity=t/100}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:this.#He(t);break;case r.AnnotationEditorParamsType.INK_COLOR:this.#Oe(t);break;case r.AnnotationEditorParamsType.INK_OPACITY:this.#qe(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,l._defaultColor||a.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*l._defaultOpacity)]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,this.color||l._defaultColor||a.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??l._defaultOpacity))]]}#He(e){const t=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=e,this.#We()},undo:()=>{this.thickness=t,this.#We()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Oe(e){const t=this.color;this.parent.addCommands({cmd:()=>{this.color=e,this.#Ge()},undo:()=>{this.color=t,this.#Ge()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#qe(e){e/=100;const t=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=e,this.#Ge()},undo:()=>{this.opacity=t,this.#Ge()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild(),null!==this.div&&(this.canvas||(this.#Ve(),this.#Xe()),this.isAttachedToDOM||(this.parent.add(this),this.#Ke()),this.#We())}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#Le.disconnect(),this.#Le=null,super.remove())}enableEditMode(){this.#Fe||null===this.canvas||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",this.#De),this.canvas.addEventListener("pointerup",this.#Ie))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#De),this.canvas.removeEventListener("pointerup",this.#Ie))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Ye(){const{width:e,height:t,rotation:n}=this.parent.viewport;switch(n){case 90:return[0,e,e,t];case 180:return[e,t,e,t];case 270:return[t,0,e,t];default:return[0,0,e,t]}}#Ze(){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,o.opacityToHex)(this.opacity)}`}#Je(e,t){this.isEditing=!0,this.#Re||(this.#Re=!0,this.#Ke(),this.thickness||=l._defaultThickness,this.color||=l._defaultColor||a.AnnotationEditor._defaultLineColor,this.opacity??=l._defaultOpacity),this.currentPath.push([e,t]),this.#$e=null,this.#Ze(),this.ctx.beginPath(),this.ctx.moveTo(e,t),this.#ze=()=>{this.#ze&&(this.#$e&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):this.#Ge(),this.ctx.lineTo(...this.#$e),this.#$e=null,this.ctx.stroke()),window.requestAnimationFrame(this.#ze))},window.requestAnimationFrame(this.#ze)}#Qe(e,t){const[n,r]=this.currentPath.at(-1);e===n&&t===r||(this.currentPath.push([e,t]),this.#$e=[e,t])}#et(e,t){this.ctx.closePath(),this.#ze=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);const[n,r]=this.currentPath.at(-1);let a;if(e===n&&t===r||this.currentPath.push([e,t]),1!==this.currentPath.length)a=(0,i.fitCurve)(this.currentPath,30,null);else{const n=[e,t];a=[[n,n.slice(),n.slice(),n]]}const o=l.#tt(a);this.currentPath.length=0,this.parent.addCommands({cmd:()=>{this.paths.push(a),this.bezierPath2D.push(o),this.rebuild()},undo:()=>{this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Ve(),this.#Xe()),this.#We())},mustExec:!0})}#Ge(){if(this.isEmpty())return void this.#nt();this.#Ze();const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),this.#nt();for(const n of this.bezierPath2D)t.stroke(n)}commit(){this.#Fe||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#Fe=!0,this.div.classList.add("disabled"),this.#We(!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(e){super.focusin(e),this.enableEditMode()}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!this.#Fe&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",this.#Ne),this.canvas.addEventListener("pointermove",this.#Me),this.#Je(e.offsetX,e.offsetY))}canvasPointermove(e){e.stopPropagation(),this.#Qe(e.offsetX,e.offsetY)}canvasPointerup(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),this.#rt(e),this.setInBackground())}canvasPointerleave(e){this.#rt(e),this.setInBackground()}#rt(e){this.#et(e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",this.#Ne),this.canvas.removeEventListener("pointermove",this.#Me),this.parent.addToAnnotationStorage(this)}#Ve(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",l._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Xe(){this.#Le=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#Le.observe(this.div)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),l._l10nPromise.get("editor_ink_aria_label").then((e=>this.div?.setAttribute("aria-label",e)));const[n,r,a,i]=this.#Ye();if(this.setAt(n,r,0,0),this.setDims(a,i),this.#Ve(),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),this.#Re=!0,this.#Ke(),this.setDims(this.width*n,this.height*r),this.#Ge(),this.#at(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#Xe(),this.div}#Ke(){if(!this.#Re)return;const[e,t]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#nt()}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(this.#Be===n&&this.#Ue===r)return;this.#Be=n,this.#Ue=r,this.canvas.style.visibility="hidden",this.#Pe&&Math.abs(this.#Pe-e/t)>.01&&(t=Math.ceil(e/this.#Pe),this.setDims(e,t));const[a,i]=this.parent.viewportBaseDimensions;this.width=e/a,this.height=t/i,this.#Fe&&this.#it(e,t),this.#Ke(),this.#Ge(),this.canvas.style.visibility="visible"}#it(e,t){const n=this.#ot(),r=(e-n)/this.#Ee,a=(t-n)/this.#Te;this.scaleFactor=Math.min(r,a)}#nt(){const e=this.#ot()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#tt(e){const t=new Path2D;for(let n=0,r=e.length;n0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!this.#Fe)return void this.#Ge();const t=this.#ut(),n=this.#ot();this.#Ee=Math.max(s,t[2]-t[0]),this.#Te=Math.max(s,t[3]-t[1]);const r=Math.ceil(n+this.#Ee*this.scaleFactor),a=Math.ceil(n+this.#Te*this.scaleFactor),[i,o]=this.parent.viewportBaseDimensions;this.width=r/i,this.height=a/o,this.#Pe=r/a,this.#at();const l=this.translationX,c=this.translationY;this.translationX=-t[0],this.translationY=-t[1],this.#Ke(),this.#Ge(),this.#Be=r,this.#Ue=a,this.setDims(r,a);const u=e?n/this.scaleFactor/2:0;this.translate(l-this.translationX-u,c-this.translationY-u)}#at(){const{style:e}=this.div;this.#Pe>=1?(e.minHeight="16px",e.minWidth=`${Math.round(this.#Pe*s)}px`):(e.minWidth="16px",e.minHeight=`${Math.round(s/this.#Pe)}px`)}static deserialize(e,t){const n=super.deserialize(e,t);n.thickness=e.thickness,n.color=r.Util.makeHexColor(...e.color),n.opacity=e.opacity;const[a,i]=t.pageDimensions,o=n.width*a,l=n.height*i,c=t.scaleFactor,u=e.thickness/2;n.#Pe=o/l,n.#Fe=!0,n.#Be=Math.round(o),n.#Ue=Math.round(l);for(const{bezier:r}of e.paths){const e=[];n.paths.push(e);let t=c*(r[0]-u),a=c*(l-r[1]-u);for(let n=2,o=r.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const r=n(26);t.fitCurve=r},e=>{function t(e,a,i,o,s){var c,u,d,h,f,p,m,g,y,b,v,w,x;if(2===e.length)return w=l.vectorLen(l.subtract(e[0],e[1]))/3,[c=[e[0],l.addArrays(e[0],l.mulItems(a,w)),l.addArrays(e[1],l.mulItems(i,w)),e[1]]];if(u=function(e){var t,n,r,a=[];return e.forEach(((e,i)=>{t=i?n+l.vectorLen(l.subtract(e,r)):0,a.push(t),n=t,r=e})),a=a.map((e=>e/n))}(e),[c,h,p]=n(e,u,u,a,i,s),0===h||h.9999&&e<1.0001)break}f=h,m=p}return v=[],(g=l.subtract(e[p-1],e[p+1])).every((e=>0===e))&&(g=l.subtract(e[p-1],e[p]),[g[0],g[1]]=[-g[1],g[0]]),y=l.normalize(g),b=l.mulItems(y,-1),v=(v=v.concat(t(e.slice(0,p+1),a,y,o,s))).concat(t(e.slice(p),b,i,o,s))}function n(e,t,n,r,a,s){var u,d,h;return u=function(e,t,n,r){var a,i,o,s,u,d,h,f,p,m,g,y,b,v,w,x,S,k=e[0],A=e[e.length-1];for(a=[k,null,null,A],i=l.zeros_Xx2x2(t.length),b=0,v=t.length;ba&&(a=r,s=d);return[a,s]}(e,u,t),s&&s({bez:u,points:e,params:t,maxErr:d,maxPoint:h}),[u,d,h]}function r(e,t,n){return n.map(((n,r)=>a(e,t[r],n)))}function a(e,t,n){var r=l.subtract(c.q(e,n),t),a=c.qprime(e,n),i=l.mulMatrix(r,a),o=l.sum(l.squareItems(a))+2*l.mulMatrix(r,c.qprimeprime(e,n));return 0===o?n:n-i/o}var i=function(e,t){for(var n,r=[0],a=e[0],i=0,o=1;o<=t;o++)n=c.q(e,o/t),i+=l.vectorLen(l.subtract(n,a)),r.push(i),a=n;return r=r.map((e=>e/i))};function o(e,t,n,r){if(t<0)return 0;if(t>1)return 1;for(var a,i,o,s,l=1;l<=r;l++)if(t<=n[l]){o=(l-1)/r,i=l/r,s=(t-(a=n[l-1]))/(n[l]-a)*(i-o)+o;break}return s}function s(e,t){return l.normalize(l.subtract(e,t))}class l{static zeros_Xx2x2(e){for(var t=[];e--;)t.push([0,0]);return t}static mulItems(e,t){return e.map((e=>e*t))}static mulMatrix(e,t){return e.reduce(((e,n,r)=>e+n*t[r]),0)}static subtract(e,t){return e.map(((e,n)=>e-t[n]))}static addArrays(e,t){return e.map(((e,n)=>e+t[n]))}static addItems(e,t){return e.map((e=>e+t))}static sum(e){return e.reduce(((e,t)=>e+t))}static dot(e,t){return l.mulMatrix(e,t)}static vectorLen(e){return Math.hypot(...e)}static divItems(e,t){return e.map((e=>e/t))}static squareItems(e){return e.map((e=>e*e))}static normalize(e){return this.divItems(e,this.vectorLen(e))}}class c{static q(e,t){var n=1-t,r=l.mulItems(e[0],n*n*n),a=l.mulItems(e[1],3*n*n*t),i=l.mulItems(e[2],3*n*t*t),o=l.mulItems(e[3],t*t*t);return l.addArrays(l.addArrays(r,a),l.addArrays(i,o))}static qprime(e,t){var n=1-t,r=l.mulItems(l.subtract(e[1],e[0]),3*n*n),a=l.mulItems(l.subtract(e[2],e[1]),6*n*t),i=l.mulItems(l.subtract(e[3],e[2]),3*t*t);return l.addArrays(l.addArrays(r,a),i)}static qprimeprime(e,t){return l.addArrays(l.mulItems(l.addArrays(l.subtract(e[2],l.mulItems(e[1],2)),e[0]),6*(1-t)),l.mulItems(l.addArrays(l.subtract(e[3],l.mulItems(e[2],2)),e[1]),6*t))}}e.exports=function(e,n,r){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((t=>{if(!Array.isArray(t)||t.some((e=>"number"!==typeof e))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),(e=e.filter(((t,n)=>0===n||!t.every(((t,r)=>t===e[n-1][r]))))).length<2)return[];const a=e.length,i=s(e[1],e[0]),o=s(e[a-2],e[a-1]);return t(e,i,o,n,r)},e.exports.fitCubic=t,e.exports.createTangent=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),a=n(8),i=n(5),o=n(28),s=n(29);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new f(e);case r.AnnotationType.TEXT:return new p(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new g(e);case"Btn":return e.data.radioButton?new b(e):e.data.checkBox?new y(e):new v(e);case"Ch":return new w(e)}return new m(e);case r.AnnotationType.POPUP:return new x(e);case r.AnnotationType.FREETEXT:return new k(e);case r.AnnotationType.LINE:return new A(e);case r.AnnotationType.SQUARE:return new C(e);case r.AnnotationType.CIRCLE:return new O(e);case r.AnnotationType.POLYLINE:return new _(e);case r.AnnotationType.CARET:return new P(e);case r.AnnotationType.INK:return new T(e);case r.AnnotationType.POLYGON:return new j(e);case r.AnnotationType.HIGHLIGHT:return new E(e);case r.AnnotationType.UNDERLINE:return new M(e);case r.AnnotationType.SQUIGGLY:return new N(e);case r.AnnotationType.STRIKEOUT:return new I(e);case r.AnnotationType.STAMP:return new D(e);case r.AnnotationType.FILEATTACHMENT:return new F(e);default:return new h(e)}}}class h{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),r&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.data,n=this.page,a=this.viewport,i=document.createElement("section"),{width:o,height:s}=u(t.rect),[l,c,d,h]=a.viewBox,f=d-l,p=h-c;i.setAttribute("data-annotation-id",t.id);const m=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){i.style.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${n}px * var(--scale-factor))`;i.style.borderRadius=t}else if(this instanceof b){const e=`calc(${o}px * var(--scale-factor)) / calc(${s}px * var(--scale-factor))`;i.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}const a=t.borderColor||null;a?i.style.borderColor=r.Util.makeHexColor(0|a[0],0|a[1],0|a[2]):i.style.borderWidth=0}i.style.left=100*(m[0]-l)/f+"%",i.style.top=100*(m[1]-c)/p+"%";const{rotation:g}=t;return t.hasOwnCanvas||0===g?(i.style.width=100*o/f+"%",i.style.height=100*s/p+"%"):this.setRotation(g,i),i}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;const[n,r,a,i]=this.viewport.viewBox,o=a-n,s=i-r,{width:l,height:c}=u(this.data.rect);let d,h;e%180===0?(d=100*l/o,h=100*c/s):(d=100*c/o,h=100*l/s),t.style.width=`${d}%`,t.style.height=`${h}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e];n.target.style[t]=o.ColorConverters[`${r[0]}_HTML`](r.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2===1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{this.container.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const a=e[r]||n[r];a&&a(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,a]of Object.entries(t)){const i=n[r];i&&(i({detail:{[r]:a},target:e}),delete t[r])}}_createQuadrilaterals(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const r of this.data.quadPoints)this.data.rect=[r[2].x,r[2].y,r[1].x,r[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).className="popupTriggerArea",n.append(e));const r=new S({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();r.style.left="100%",n.append(r)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const a=this._fieldObjects[e];if(a)for(const{page:e,id:i,exportValues:o}of a){if(-1===e)continue;if(i===t)continue;const a="string"===typeof o?o:null,s=document.querySelector(`[data-element-id="${i}"]`);!s||c.has(s)?n.push({id:i,exportValue:a,domElement:s}):(0,r.warn)(`_getElementsByName - element not allowed: ${i}`)}return n}for(const r of document.getElementsByName(e)){const{id:e,exportValue:a}=r;e!==t&&c.has(r)&&n.push({id:e,exportValue:a,domElement:r})}return n}static get platform(){const e="undefined"!==typeof navigator?navigator.platform:"";return(0,r.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class f extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const r=0===t?n:n.cloneNode();return e.append(r),e})):(this.container.className="linkAnnotation",r&&this.container.append(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const a=n.get(r);a&&(e[a]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:a,include:i}=t,o=[];if(0!==e.length||0!==a.length){const t=new Set(a);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===i&&o.push(n)}else for(const t of Object.values(this._fieldObjects))o.push(...t);const s=this.annotationStorage,l=[];for(const t of o){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;s.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${e}"]`);n&&(c.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)(`_bindResetFormAction - element not allowed: ${e}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}}class p extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class m extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=h.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})}))}_setEventListeners(e,t,n){for(const[r,a]of t)("Action"===a||this.data.actions?.[a])&&this._setEventListener(e,r,a,n)}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||9,i=e.style;let o;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]),t=e/(Math.round(e/(r.LINE_FACTOR*a))||1);o=Math.min(a,Math.round(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]);o=Math.min(a,Math.round(e/r.LINE_FACTOR))}i.fontSize=`calc(${o}px * var(--scale-factor))`,i.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(i.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class g extends m{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const a=this.annotationStorage;for(const i of this._getElementsByName(e.name,e.id))i.domElement&&(i.domElement[t]=n),a.setValue(i.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const r=e.getValue(t,{value:this.data.fieldValue});let a=r.formattedValue||r.value||"";const i=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;i&&a.length>i&&(a=a.slice(0,i));const o={userValue:a,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=a,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",a),this.data.doNotScroll&&(n.style.overflowX="hidden")),c.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,this._setRequired(n,this.data.required),i&&(n.maxLength=i),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value")})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=o.userValue=t,o.formattedValue=null}));let s=e=>{const{formattedValue:t}=o;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{o.userValue&&(e.target.value=o.userValue),o.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const r={value(n){o.userValue=n.detail.value??"",e.setValue(t,{value:o.userValue.toString()}),n.target.value=o.userValue},formattedValue(n){const{formattedValue:r}=n.detail;o.formattedValue=r,null!==r&&void 0!==r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{const{charLimit:r}=n.detail,{target:a}=n;if(0===r)return void a.removeAttribute("maxLength");a.setAttribute("maxLength",r);let i=o.userValue;!i||i.length<=r||(i=i.slice(0,r),a.value=o.userValue=i,e.setValue(t,{value:i}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:1,selStart:a.selectionStart,selEnd:a.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{let n=-1;if("Escape"===e.key?n=0:"Enter"===e.key?n=2:"Tab"===e.key&&(n=3),-1===n)return;const{value:r}=e.target;o.valueOnFocus!==r&&(o.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const r=s;s=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;o.userValue=n,this._mouseState.isDown&&o.valueOnFocus!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{const{data:n,target:r}=e,{value:a,selectionStart:i,selectionEnd:o}=r;let s=i,l=o;switch(e.inputType){case"deleteWordBackward":{const e=a.substring(0,i).match(/\w*[^\w]*$/);e&&(s-=e[0].length);break}case"deleteWordForward":{const e=a.substring(i).match(/^[^\w]*\w*/);e&&(l+=e[0].length);break}case"deleteContentBackward":i===o&&(s-=1);break;case"deleteContentForward":i===o&&(l+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,change:n||"",willCommit:!1,selStart:s,selEnd:l}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(s&&n.addEventListener("blur",s),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/i;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class y extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.className="buttonWidgetAnnotation checkBox";const a=document.createElement("input");return c.add(a),a.setAttribute("data-element-id",n),a.disabled=t.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=t.fieldName,r&&a.setAttribute("checked",!0),a.setAttribute("exportValue",t.exportValue),a.tabIndex=l,a.addEventListener("change",(r=>{const{name:a,checked:i}=r.target;for(const o of this._getElementsByName(a,n)){const n=i&&o.exportValue===t.exportValue;o.domElement&&(o.domElement.checked=n),e.setValue(o.id,{value:n})}e.setValue(n,{value:i})})),a.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(a,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class b extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const a=document.createElement("input");if(c.add(a),a.setAttribute("data-element-id",n),a.disabled=t.readOnly,this._setRequired(a,this.data.required),a.type="radio",a.name=t.fieldName,r&&a.setAttribute("checked",!0),a.tabIndex=l,a.addEventListener("change",(t=>{const{name:r,checked:a}=t.target;for(const i of this._getElementsByName(r,n))e.setValue(i.id,{value:!1});e.setValue(n,{value:a})})),a.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;a.addEventListener("updatefromsandbox",(t=>{const a={value:t=>{const a=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=a&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(a,t)})),this._setEventListeners(a,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class v extends f{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class w extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");c.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=l;let a=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of r.options)n.selected=n.value===t}));for(const l of this.data.options){const e=document.createElement("option");e.textContent=l.displayValue,e.value=l.exportValue,n.value.includes(l.exportValue)&&(e.setAttribute("selected",!0),a=!1),r.append(e)}let i=null;if(a){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),i=()=>{e.remove(),r.removeEventListener("input",i),i=null},r.addEventListener("input",i)}const o=(e,t)=>{const n=t?"value":"textContent",r=e.target.options;return e.target.multiple?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[n])):-1===r.selectedIndex?null:r[r.selectedIndex][n]},s=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const a={value(n){i?.();const a=n.detail.value,s=new Set(Array.isArray(a)?a:[a]);for(const e of r.options)e.selected=s.has(e.value);e.setValue(t,{value:o(n,!0)})},multipleSelection(e){r.multiple=!0},remove(n){const a=r.options,i=n.detail.remove;a[i].selected=!1,r.remove(i),a.length>0&&-1===Array.prototype.findIndex.call(a,(e=>e.selected))&&(a[0].selected=!0),e.setValue(t,{value:o(n,!0),items:s(n)})},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:a,displayValue:i,exportValue:l}=n.detail.insert,c=r.children[a],u=document.createElement("option");u.textContent=i,u.value=l,c?c.before(u):r.append(u),e.setValue(t,{value:o(n,!0),items:s(n)})},items(n){const{items:a}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of a){const{displayValue:t,exportValue:n}=e,a=document.createElement("option");a.textContent=t,a.value=n,r.append(a)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:o(n,!0),items:s(n)})},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:o(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(a,n)})),r.addEventListener("input",(n=>{const r=o(n,!0),a=o(n,!1);e.setValue(t,{value:r}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,changeEx:r,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(n){e.setValue(t,{value:o(n,!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class x extends h{constructor(e){super(e,{isRenderable:!!(e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new S({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),a=this.page,i=r.Util.normalizeRect([this.data.parentRect[0],a.view[3]-this.data.parentRect[1]+a.view[1],this.data.parentRect[2],a.view[3]-this.data.parentRect[3]+a.view[1]]),o=i[0]+this.data.parentRect[2]-this.data.parentRect[0],s=i[1],[l,c,u,d]=this.viewport.viewBox,h=u-l,f=d-c;return this.container.style.left=100*(o-l)/h+"%",this.container.style.top=100*(s-c)/f+"%",this.container.append(n.render()),this.container}}class S{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],a=.7*(255-n[1])+n[1],i=.7*(255-n[2])+n[2];t.style.backgroundColor=r.Util.makeHexColor(0|e,0|a,0|i)}const i=document.createElement("h1");i.dir=this.titleObj.dir,i.textContent=this.titleObj.str,t.append(i);const o=a.PDFDateString.toDateObject(this.modificationDate);if(o){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:o.toLocaleDateString(),time:o.toLocaleTimeString()}),t.append(e)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);t.append(e)}else s.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:t}),t.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const r of this.trigger)r.addEventListener("click",this._toggle.bind(this)),r.addEventListener("mouseover",this._show.bind(this,!1)),r.addEventListener("mouseout",this._hide.bind(this,!1));return t.addEventListener("click",this._hide.bind(this,!0)),e.append(t),e}_formatContents(e){let{str:t,dir:n}=e;const r=document.createElement("p");r.className="popupContent",r.dir=n;const a=t.split(/(?:\r\n?|\n)/);for(let i=0,o=a.length;i0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class k extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.textContent=e.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class A extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),r.append(a),this.container.append(r),this._createPopup(a,e),this.container}}class C extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",n-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class O extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",n/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",n/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class _ extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);let a=[];for(const o of e.vertices){const t=o.x-e.rect[0],n=e.rect[3]-o.y;a.push(t+","+n)}a=a.join(" ");const i=this.svgFactory.createElement(this.svgElementName);return i.setAttribute("points",a),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class j extends _{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class P extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class T extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);for(const a of e.inkLists){let t=[];for(const r of a){const n=r.x-e.rect[0],a=e.rect[3]-r.y;t.push(`${n},${a}`)}t=t.join(" ");const n=this.svgFactory.createElement(this.svgElementName);n.setAttribute("points",t),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),this._createPopup(n,e),r.append(n)}return this.container.append(r),this.container}}class E extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),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 M extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),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 N extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),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 I extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),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 D extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class F extends h{constructor(e){super(e,{isRenderable:!0});const{filename:t,content:n}=this.data.file;this.filename=(0,a.getFilenameFromUrl)(t),this.content=n,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:t,content:n})}render(){this.container.className="fileAttachmentAnnotation";const e=document.createElement("div");return e.className="popupTriggerArea",e.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(e,this.data),this.container.append(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}class R{static#dt(e,t,n,r){const i=e.firstChild||e;i.id=`${a.AnnotationPrefix}${t}`,n.append(e),r?.moveElementInDOM(n,e,i,!1)}static render(e){const{annotations:t,div:n,viewport:o,accessibilityManager:s}=e;this.#ht(n,o);let l=0;for(const c of t){if(c.annotationType!==r.AnnotationType.POPUP){const{width:e,height:t}=u(c.rect);if(e<=0||t<=0)continue}const t=d.create({data:c,layer:n,page:e.page,viewport:o,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new a.DOMSVGFactory,annotationStorage:e.annotationStorage||new i.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,mouseState:e.mouseState||{isDown:!1}});if(t.isRenderable){const e=t.render();if(c.hidden&&(e.style.visibility="hidden"),Array.isArray(e))for(const t of e)t.style.zIndex=l++,R.#dt(t,c.id,n,s);else e.style.zIndex=l++,t instanceof x?n.prepend(e):R.#dt(e,c.id,n,s)}}this.#ft(n,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:t,div:n,viewport:r}=e;this.#ht(n,r),this.#ft(n,t),n.hidden=!1}static#ht(e,t){let{width:n,height:r,rotation:a}=t;const{style:i}=e,o=a%180!==0,s=Math.floor(n)+"px",l=Math.floor(r)+"px";i.width=o?l:s,i.height=o?s:l,e.setAttribute("data-main-rotation",a)}static#ft(e,t){if(t){for(const[n,r]of t){const t=e.querySelector(`[data-annotation-id="${n}"]`);if(!t)continue;const{firstChild:a}=t;a?"CANVAS"===a.nodeName?a.replaceWith(r):a.before(r):t.append(r)}t.clear()}}}t.AnnotationLayer=R},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,r,a]=e;return["G",1-Math.min(1,.3*t+.59*r+.11*n+a)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_HTML(e){let[t]=e;const r=n(t);return`#${r}${r}${r}`}static RGB_G(e){let[t,n,r]=e;return["G",.3*t+.59*n+.11*r]}static RGB_HTML(e){let[t,r,a]=e;return`#${n(t)}${n(r)}${n(a)}`}static T_HTML(){return"#00000000"}static CMYK_RGB(e){let[t,n,r,a]=e;return["RGB",1-Math.min(1,t+a),1-Math.min(1,r+a),1-Math.min(1,n+a)]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,r]=e;const a=1-t,i=1-n,o=1-r;return["CMYK",a,i,o,Math.min(a,i,o)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(20);t.XfaLayer=class{static setupStorage(e,t,n,r,a){const i=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===a)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(i.value===n.attributes.xfaOn?e.setAttribute("checked",!0):i.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===a)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===a)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==i.value)for(const e of n.children)e.attributes.value===i.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,a=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:a})}))}}static setAttributes(e){let{html:t,element:n,storage:r=null,intent:a,linkService:i}=e;const{attributes:o}=n,s=t instanceof HTMLAnchorElement;"radio"===o.type&&(o.name=`${o.name}-${a}`);for(const[l,c]of Object.entries(o))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&i.addLinkAttributes(t,o.href,o.newWindow),r&&o.dataId&&this.setupStorage(t,o.dataId,n,r)}static render(e){const t=e.annotationStorage,n=e.linkService,a=e.xfaHtml,i=e.intent||"display",o=document.createElement(a.name);a.attributes&&this.setAttributes({html:o,element:a,intent:i,linkService:n});const s=[[a,-1,o]],l=e.div;if(l.append(o),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==i&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){const[e,a,o]=s.at(-1);if(a+1===e.children.length){s.pop();continue}const l=e.children[++s.at(-1)[1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),o.append(e);continue}let d;if(d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u),o.append(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:i,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,d]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(u)&&c.push(e),d.append(e)}}for(const r of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))r.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){const t=new m({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var r=n(1),a=n(8);const i=1e5,o=30,s=.8,l=new Map,c=/^\s+$/g;function u(e,t,n,a){const i=document.createElement("span"),u=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);const d=r.Util.transform(e._viewport.transform,t.transform);let h=Math.atan2(d[1],d[0]);const f=n[t.fontName];f.vertical&&(h+=Math.PI/2);const p=Math.hypot(d[2],d[3]),m=p*function(e,t){const n=l.get(e);if(n)return n;t.save(),t.font=`${o}px ${e}`;const r=t.measureText("");let a=r.fontBoundingBoxAscent,i=Math.abs(r.fontBoundingBoxDescent);if(a){t.restore();const n=a/(a+i);return l.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,o,o),t.strokeText("g",0,0);let c=t.getImageData(0,0,o,o).data;i=0;for(let s=c.length-1-3;s>=0;s-=4)if(c[s]>0){i=Math.ceil(s/4/o);break}t.clearRect(0,0,o,o),t.strokeText("A",0,o),c=t.getImageData(0,0,o,o).data,a=0;for(let s=0,l=c.length;s0){a=o-Math.floor(s/4/o);break}if(t.restore(),a){const t=a/(a+i);return l.set(e,t),t}return l.set(e,s),s}(f.fontFamily,a);let g,y;0===h?(g=d[4],y=d[5]-m):(g=d[4]+m*Math.sin(h),y=d[5]-m*Math.cos(h)),i.style.left=`${g}px`,i.style.top=`${y}px`,i.style.fontSize=`${p}px`,i.style.fontFamily=f.fontFamily,u.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==h&&(u.angle=h*(180/Math.PI));let b=!1;if(t.str.length>1||e._enhanceTextSelection&&c.test(t.str))b=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(b=!0)}if(b&&(f.vertical?u.canvasWidth=t.height*e._viewport.scale:u.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,u),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection&&u.hasText){let n=1,a=0;0!==h&&(n=Math.cos(h),a=Math.sin(h));const o=(f.vertical?t.height:t.width)*e._viewport.scale,s=p;let l,c;0!==h?(l=[n,a,-a,n,g,y],c=r.Util.getAxialAlignedBoundingBox([0,0,o,s],l)):c=[g,y,g+o,y+s],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:i,size:[o,s],m:l})}}function d(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,r=t.length;if(r>i)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let a=0;a0&&(r=r?Math.min(n,r):n)}return r}function f(e){const t=e._bounds,n=e._viewport,a=function(e,t,n){const r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));p(e,r);const a=new Array(n.length);for(const i of r){const e=i.index;a[e]={left:i.x1New,top:0,right:i.x2New,bottom:0}}n.map((function(t,n){const i=a[n],o=r[n];o.x1=t.top,o.y1=e-i.right,o.x2=t.bottom,o.y2=e-i.left,o.index=n,o.x1New=void 0,o.x2New=void 0})),p(t,r);for(const i of r){const e=i.index;a[e].top=i.x1New,a[e].bottom=i.x2New}return a}(n.width,n.height,t);for(let i=0;i=0&&n[i].start>=r.y2;)i--;let o,s,l=-1/0;for(o=e;o<=i;o++){let e;t=n[o],a=t.boundary,e=a.x2>r.x1?a.index>r.index?a.x1New:r.x1:void 0===a.x2New?(a.x2+r.x1)/2:a.x2New,e>l&&(l=e)}for(r.x1New=l,o=e;o<=i;o++)t=n[o],a=t.boundary,void 0===a.x2New?a.x2>r.x1?a.index>r.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));const c=[];let u=null;for(o=e;o<=i;o++){t=n[o],a=t.boundary;const e=a.x2>r.x2?a:r;u===e?c.at(-1).end=t.end:(c.push({start:t.start,end:t.end,boundary:e}),u=e)}for(n[e].start=0&&n[s].start>=a.y1;s--)r=n[s].boundary===a;for(s=i+1;!r&&s{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 r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,r=e.length;n0){const e=this._devicePixelRatio*t.canvasWidth/i;this._enhanceTextSelection&&(t.scale=e),n=`scaleX(${e})`}}if(0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=(0,r.createPromiseCapability)();let n=Object.create(null);const a=this._document.createElement("canvas");if(a.height=a.width=o,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((r=>{let{value:a,done:i}=r;i?t.resolve():(Object.assign(n,a.styles),this._processItems(a.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{d(this),this._renderTimer=null}),e):d(this)}),this._capability.reject)}expandTextDivs(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(f(this),this._bounds=null);const t=[],n=[];for(let r=0,a=this._textDivs.length;r0?(n.push(`${i.paddingTop}px`),t.push(`translateY(${-i.paddingTop}px)`)):n.push(0),i.paddingRight>0?n.push(i.paddingRight/i.scale+"px"):n.push(0),i.paddingBottom>0?n.push(`${i.paddingBottom}px`):n.push(0),i.paddingLeft>0?(n.push(i.paddingLeft/i.scale+"px"),t.push(`translateX(${-i.paddingLeft/i.scale}px)`)):n.push(0),a.style.padding=n.join(" "),t.length&&(a.style.transform=t.join(" "))):(a.style.padding=null,a.style.transform=i.originalTransform))}}}t.TextLayerRenderTask=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(8),a=n(1),i=n(3);let o=class{constructor(){(0,a.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=o;{const s={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let a=`data:${t};base64,`;for(let i=0,o=e.length;i>2]+r[(3&t)<<4|n>>4]+r[i+1>6:64]+r[i+2>1&2147483647:e>>1&2147483647;n[a]=e}function r(e,t,r,a){let i=a;const o=t.length;r[i]=o>>24&255,r[i+1]=o>>16&255,r[i+2]=o>>8&255,r[i+3]=255&o,i+=4,r[i]=255&e.charCodeAt(0),r[i+1]=255&e.charCodeAt(1),r[i+2]=255&e.charCodeAt(2),r[i+3]=255&e.charCodeAt(3),i+=4,r.set(t,i),i+=t.length;const s=function(e,t,r){let a=-1;for(let i=t;i>>8^n[t]}return-1^a}(r,a+4,i);r[i]=s>>24&255,r[i+1]=s>>16&255,r[i+2]=s>>8&255,r[i+3]=255&s}function o(e){let t=e.length;const n=65535,r=Math.ceil(t/n),a=new Uint8Array(2+t+5*r+4);let i=0;a[i++]=120,a[i++]=156;let o=0;for(;t>n;)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+n),i),i+=n,o+=n,t-=n;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;const s=function(e,t,n){let r=1,a=0;for(let i=t;i>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function s(n,s,l,c){const u=n.width,d=n.height;let f,p,m;const g=n.data;switch(s){case a.ImageKind.GRAYSCALE_1BPP:p=0,f=1,m=u+7>>3;break;case a.ImageKind.RGB_24BPP:p=2,f=8,m=3*u;break;case a.ImageKind.RGBA_32BPP:p=6,f=8,m=4*u;break;default:throw new Error("invalid format")}const y=new Uint8Array((1+m)*d);let b=0,v=0;for(let e=0;e>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,f,p,0,0,0]),x=function(e){if(!i.isNodeJS)return o(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(2787).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,a.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return o(e)}(y),S=e.length+3*t+w.length+x.length,k=new Uint8Array(S);let A=0;return k.set(e,A),A+=e.length,r("IHDR",w,k,A),A+=t+w.length,r("IDATA",x,k,A),A+=t+x.length,r("IEND",new Uint8Array(0),k,A),h(k,"image/png",l)}return function(e,t,n){return s(e,void 0===e.kind?a.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=s.fontWeight,this.fontSize=0,this.textMatrix=a.IDENTITY_MATRIX,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=a.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=s.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(e,t){this.x=e,this.y=t}}function m(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function y(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`;return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let b=0,v=0,w=0;t.SVGGraphics=o=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new p,this.transformMatrix=a.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const r in a.OPS)this._operatorIdMapping[a.OPS[r]]=r}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let r=0,i=t.length;r{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,i,o){const s=[e,t,n,r,i,o];this.transformMatrix=a.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=a.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,a=[];for(let i=0,o=r.length;i0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=a.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=a.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,r=a.Util.inverseTransform(this.transformMatrix),i=a.Util.applyTransform([0,0],r),o=a.Util.applyTransform([0,n],r),s=a.Util.applyTransform([t,0],r),l=a.Util.applyTransform([t,n],r),c=Math.min(i[0],o[0],s[0],l[0]),u=Math.min(i[1],o[1],s[1],l[1]),d=Math.max(i[0],o[0],s[0],l[0]),h=Math.max(i[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",d-c),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(f)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||a.IDENTITY_MATRIX,[i,o,s,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading"+w++,[f,p,m,g]=a.Util.normalizeRect([...a.Util.applyTransform([i,o],r),...a.Util.applyTransform([s,l],r)]),[y,b]=a.Util.singularValueDecompose2dScale(r),v=c*y,x=u*b,S=this.svgFactory.createElement("svg:pattern");S.setAttributeNS(null,"id",h),S.setAttributeNS(null,"patternUnits","userSpaceOnUse"),S.setAttributeNS(null,"width",v),S.setAttributeNS(null,"height",x),S.setAttributeNS(null,"x",`${f}`),S.setAttributeNS(null,"y",`${p}`);const k=this.svg,A=this.transformMatrix,C=this.current.fillColor,O=this.current.strokeColor,_=this.svgFactory.create(m-f,g-p);if(this.svg=_,this.transformMatrix=r,2===d){const e=a.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=k,this.transformMatrix=A,this.current.fillColor=C,this.current.strokeColor=O,S.append(_.childNodes[0]),this.defs.append(S),`url(#${h})`}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+w++,n=e[3];let r;switch(e[1]){case"axial":const n=e[4],a=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",a[0]),r.setAttributeNS(null,"y2",a[1]);break;case"radial":const i=e[4],o=e[5],s=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",o[0]),r.setAttributeNS(null,"cy",o[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",i[0]),r.setAttributeNS(null,"fy",i[1]),r.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),`url(#${t})`;case"Mesh":return(0,a.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,i=n.y,o=[],s=0;for(const l of e)switch(0|l){case a.OPS.rectangle:r=t[s++],i=t[s++];const e=r+t[s++],n=i+t[s++];o.push("M",g(r),g(i),"L",g(e),g(i),"L",g(e),g(n),"L",g(r),g(n),"Z");break;case a.OPS.moveTo:r=t[s++],i=t[s++],o.push("M",g(r),g(i));break;case a.OPS.lineTo:r=t[s++],i=t[s++],o.push("L",g(r),g(i));break;case a.OPS.curveTo:r=t[s+4],i=t[s+5],o.push("C",g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3]),g(r),g(i)),s+=6;break;case a.OPS.curveTo2:o.push("C",g(r),g(i),g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3])),r=t[s+2],i=t[s+3],s+=4;break;case a.OPS.curveTo3:r=t[s+2],i=t[s+3],o.push("C",g(t[s]),g(t[s+1]),g(r),g(i),g(r),g(i)),s+=4;break;case a.OPS.closePath:o.push("Z")}o=o.join(" "),n.path&&e.length>0&&e[0]!==a.OPS.rectangle&&e[0]!==a.OPS.moveTo?o=n.path.getAttributeNS(null,"d")+o:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",o),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,i)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+b++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",y(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,a.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*n.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 e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,a.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,a=f(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",g(n)),i.setAttributeNS(null,"height",g(r)),this.current.element=i,this.clip("nonzero");const o=this.svgFactory.createElement("svg:image");o.setAttributeNS(c,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",g(-r)),o.setAttributeNS(null,"width",g(n)+"px"),o.setAttributeNS(null,"height",g(r)+"px"),o.setAttributeNS(null,"transform",`scale(${g(1/n)} ${g(-1/r)})`),t?t.append(o):this._ensureTransformGroup().append(o)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,a=t.fillColor;t.maskId="mask"+v++;const i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);const o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",g(n)),o.setAttributeNS(null,"height",g(r)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.append(i),this._ensureTransformGroup().append(o),this.paintInlineImageXObject(e,i)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",g(e)),r.setAttributeNS(null,"height",g(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",y(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),a=n(33);const i=__webpack_require__(3237),o=__webpack_require__(7492),s=__webpack_require__(1815),l=__webpack_require__(6671),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new p(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.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 e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.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 e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class f extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:i,suggestedLength:o}=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=o.request(h(this._url,e.httpHeaders),t):this._request=s.request(h(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class p extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const r in e.httpHeaders){const t=e.httpHeaders[r];"undefined"!==typeof t&&(this._httpHeaders[r]=t)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const a=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=o.request(h(this._url,this._httpHeaders),a):this._request=s.request(h(this._url,this._httpHeaders),a),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class m extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),i.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(i.createReadStream(t)),this._headersCapability.resolve()}))}}class g extends d{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(i.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,a.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(n){}if((0,i.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:r,disableRange:a}=e;const i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(t("Content-Length"),10);return Number.isInteger(o)?(i.suggestedLength=o,o<=2*r||a||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),a=n(34),i=n(8)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=a("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),o(e)}if(n=function(e){const t=[];let n;const r=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,a]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,a]}const i=[];for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),a=n(33);class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const a in n)r[a]=n[a];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const a in this.httpHeaders){const e=this.httpHeaders[a];"undefined"!==typeof e&&t.setRequestHeader(a,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const a=n.xhr;if(a.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==a.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===a.status&&this.isHttp)return void n.onError?.(a.status);const i=a.status||200;if((200!==i||206!==n.expectedStatus)&&i!==n.expectedStatus)return void n.onError?.(a.status);const o=function(e){const t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(a);if(206===i){const e=a.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:o})}else o?n.onDone({begin:0,chunk:o}):n.onError?.(a.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new i(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new o(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class o{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:i}=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),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 e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,a.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({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,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,a.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),a=n(33);function i(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){const t=new Headers;for(const n in e){const r=e[n];"undefined"!==typeof r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=o(this._stream.httpHeaders);const n=t.url;fetch(n,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:i,suggestedLength:o}=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.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:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=o(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return a.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return i.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return s.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return d.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),r=__w_pdfjs_require__(8),a=__w_pdfjs_require__(22),i=__w_pdfjs_require__(7),o=__w_pdfjs_require__(27),s=__w_pdfjs_require__(15),l=__w_pdfjs_require__(3),c=__w_pdfjs_require__(30),u=__w_pdfjs_require__(31),d=__w_pdfjs_require__(29);if(l.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(32);(0,n.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(35),{PDFFetchStream:t}=__w_pdfjs_require__(36);(0,n.setPDFNetworkStreamFactory)((n=>(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n)))}})(),__nested_webpack_exports__})(),module.exports=factory()},7030:(e,t,n)=>{("undefined"!==typeof window?window:{}).pdfjsWorker=n(3460)},3460:e=>{var t;globalThis,t=()=>(()=>{"use strict";var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var r,a=n(2),i=n(5),o=n(6),s=n(8),l=n(71),c=n(65),u=n(4),d=n(102),h=n(103);class f{constructor(e){this.name=e,this.terminated=!1,this._capability=(0,a.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")}}t.WorkerTask=f;class p{static setup(e,t){let n=!1;e.on("test",(function(t){n||(n=!0,e.send("test",t instanceof Uint8Array))})),e.on("configure",(function(e){(0,a.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return p.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let n,r=!1,p=null;const m=[],g=(0,a.getVerbosityLevel)(),y=e.apiVersion,b="2.16.105";if(y!==b)throw new Error(`The API version "${y}" does not match the Worker version "${b}".`);const v=[];for(const a in[])v.push(a);if(v.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+v.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"===typeof ReadableStream){const e="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(u.isNodeJS)throw new Error(e+"please use a `legacy`-build instead.");throw new Error(e+"please update to a supported browser.")}const w=e.docId,x=e.docBaseUrl,S=e.docId+"_worker";let k=new d.MessageHandler(S,w,t);function A(){if(r)throw new Error("Worker was terminated")}function C(e){m.push(e)}function O(e){e.finish();const t=m.indexOf(e);m.splice(t,1)}async function _(e){await n.ensureDoc("checkHeader"),await n.ensureDoc("parseStartXRef"),await n.ensureDoc("parse",[e]),await n.ensureDoc("checkFirstPage",[e]),await n.ensureDoc("checkLastPage",[e]);const t=await n.ensureDoc("isPureXfa");if(t){const e=new f("loadXfaFonts");C(e),await Promise.all([n.loadXfaFonts(k,e).catch((e=>{})).then((()=>O(e))),n.loadXfaImages()])}const[r,a]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:a,htmlForXfa:t?await n.ensureDoc("htmlForXfa"):null}}function j(e,t,n){const r=(0,a.createPromiseCapability)();let i;const o=e.source;if(o.data){try{i=new s.LocalPdfManager(w,o.data,o.password,k,t,n,x),r.resolve(i)}catch(f){r.reject(f)}return r.promise}let l,c=[];try{l=new h.PDFWorkerStream(k)}catch(f){return r.reject(f),r.promise}const u=l.getFullReader();u.headersReady.then((function(){if(!u.isRangeSupported)return;const e=o.disableAutoFetch||u.isStreamingSupported;i=new s.NetworkPdfManager(w,l,{msgHandler:k,password:o.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,n,x);for(const t of c)i.sendProgressiveData(t);c=[],r.resolve(i),p=null})).catch((function(e){r.reject(e),p=null}));let d=0;return new Promise((function(e,l){const h=function(e){let{value:m,done:g}=e;try{if(A(),g)return i||function(){const e=(0,a.arraysToBytes)(c);o.length&&e.length!==o.length&&(0,a.warn)("reported HTTP length is different from actual");try{i=new s.LocalPdfManager(w,e,o.password,k,t,n,x),r.resolve(i)}catch(f){r.reject(f)}c=[]}(),void(p=null);d+=(0,a.arrayByteLength)(m),u.isStreamingSupported||k.send("DocProgress",{loaded:d,total:Math.max(d,u.contentLength||0)}),i?i.sendProgressiveData(m):c.push(m),u.read().then(h,l)}catch(y){l(y)}};u.read().then(h,l)})).catch((function(e){r.reject(e),p=null})),p=function(e){l.cancelAllRequests(e)},r.promise}return k.on("GetPage",(function(e){return n.getPage(e.pageIndex).then((function(e){return Promise.all([n.ensure(e,"rotate"),n.ensure(e,"ref"),n.ensure(e,"userUnit"),n.ensure(e,"view")]).then((function(e){let[t,n,r,a]=e;return{rotate:t,ref:n,userUnit:r,view:a}}))}))})),k.on("GetPageIndex",(function(e){const t=i.Ref.get(e.num,e.gen);return n.ensureCatalog("getPageIndex",[t])})),k.on("GetDestinations",(function(e){return n.ensureCatalog("destinations")})),k.on("GetDestination",(function(e){return n.ensureCatalog("getDestination",[e.id])})),k.on("GetPageLabels",(function(e){return n.ensureCatalog("pageLabels")})),k.on("GetPageLayout",(function(e){return n.ensureCatalog("pageLayout")})),k.on("GetPageMode",(function(e){return n.ensureCatalog("pageMode")})),k.on("GetViewerPreferences",(function(e){return n.ensureCatalog("viewerPreferences")})),k.on("GetOpenAction",(function(e){return n.ensureCatalog("openAction")})),k.on("GetAttachments",(function(e){return n.ensureCatalog("attachments")})),k.on("GetJavaScript",(function(e){return n.ensureCatalog("javaScript")})),k.on("GetDocJSActions",(function(e){return n.ensureCatalog("jsActions")})),k.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return n.getPage(t).then((function(e){return n.ensure(e,"jsActions")}))})),k.on("GetOutline",(function(e){return n.ensureCatalog("documentOutline")})),k.on("GetOptionalContentConfig",(function(e){return n.ensureCatalog("optionalContentConfig")})),k.on("GetPermissions",(function(e){return n.ensureCatalog("permissions")})),k.on("GetMetadata",(function(e){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata")])})),k.on("GetMarkInfo",(function(e){return n.ensureCatalog("markInfo")})),k.on("GetData",(function(e){return n.requestLoadedStream(),n.onLoadedStream().then((function(e){return e.bytes}))})),k.on("GetAnnotations",(function(e){let{pageIndex:t,intent:r}=e;return n.getPage(t).then((function(e){const n=new f(`GetAnnotations: page ${t}`);return C(n),e.getAnnotationsData(k,n,r).then((e=>(O(n),e)),(e=>{O(n)}))}))})),k.on("GetFieldObjects",(function(e){return n.ensureDoc("fieldObjects")})),k.on("HasJSActions",(function(e){return n.ensureDoc("hasJSActions")})),k.on("GetCalculationOrderIds",(function(e){return n.ensureDoc("calculationOrderIds")})),k.on("SaveDocument",(function(e){let{isPureXfa:t,numPages:r,annotationStorage:s,filename:l}=e;n.requestLoadedStream();const u=t?null:(0,o.getNewAnnotationsMap)(s),d=[n.onLoadedStream(),n.ensureCatalog("acroForm"),n.ensureCatalog("acroFormRef"),n.ensureDoc("xref"),n.ensureDoc("startXRef")];if(u)for(const[a,i]of u)d.push(n.getPage(a).then((e=>{const t=new f(`Save (editor): page ${a}`);return e.saveNewAnnotations(k,t,i).finally((function(){O(t)}))})));if(t)d.push(n.serializeXfaData(s));else for(let a=0;a{"string"===typeof n&&(e[t]=(0,a.stringToPDFString)(n))})),y={rootRef:s.trailer.getRaw("Root")||null,encryptRef:s.trailer.getRaw("Encrypt")||null,newRef:s.getNewRef(),infoRef:s.trailer.getRaw("Info")||null,info:e,fileIds:s.trailer.get("ID")||null,startXRef:u,filename:l}}return s.resetNewRef(),(0,c.incrementalUpdate)({originalData:n.bytes,xrefInfo:y,newRefs:h,xref:s,hasXfa:!!p,xfaDatasetsRef:m,hasXfaDatasetsEntry:g,acroFormRef:o,acroForm:r,xfaData:f})}))})),k.on("GetOperatorList",(function(e,t){const r=e.pageIndex;n.getPage(r).then((function(n){const i=new f(`GetOperatorList: page ${r}`);C(i);const o=g>=a.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:k,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){O(i),o&&(0,a.info)(`page=${r+1} - getOperatorList: time=${Date.now()-o}ms, len=${e.length}`),t.close()}),(function(e){O(i),i.terminated||(k.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))})),k.on("GetTextContent",(function(e,t){const r=e.pageIndex;n.getPage(r).then((function(n){const i=new f("GetTextContent: page "+r);C(i);const o=g>=a.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:k,task:i,sink:t,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){O(i),o&&(0,a.info)(`page=${r+1} - getTextContent: time=`+(Date.now()-o)+"ms"),t.close()}),(function(e){O(i),i.terminated||t.error(e)}))}))})),k.on("GetStructTree",(function(e){return n.getPage(e.pageIndex).then((function(e){return n.ensure(e,"getStructTree")}))})),k.on("FontFallback",(function(e){return n.fontFallback(e.id,k)})),k.on("Cleanup",(function(e){return n.cleanup(!0)})),k.on("Terminate",(function(e){r=!0;const t=[];if(n){n.terminate(new a.AbortException("Worker was terminated."));const e=n.cleanup();t.push(e),n=null}else(0,l.clearGlobalCaches)();p&&p(new a.AbortException("Worker was terminated."));for(const n of m)t.push(n.finished),n.terminate();return Promise.all(t).then((function(){k.destroy(),k=null}))})),k.on("Ready",(function(t){!function(e){function t(e){A(),k.send("GetDoc",{pdfInfo:e})}function i(e){if(A(),e instanceof a.PasswordException){const t=new f(`PasswordException: response ${e.code}`);C(t),k.sendWithPromise("PasswordRequest",e).then((function(e){let{password:r}=e;O(t),n.updatePassword(r),s()})).catch((function(){O(t),k.send("DocException",e)}))}else e instanceof a.InvalidPDFException||e instanceof a.MissingPDFException||e instanceof a.UnexpectedResponseException||e instanceof a.UnknownErrorException?k.send("DocException",e):k.send("DocException",new a.UnknownErrorException(e.message,e.toString()))}function s(){A(),_(!1).then(t,(function(e){A(),e instanceof o.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then((function(){A(),_(!0).then(t,i)}))):i(e)}))}A(),j(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl},e.enableXfa).then((function(e){if(r)throw e.terminate(new a.AbortException("Worker was terminated.")),new Error("Worker was terminated");n=e,n.onLoadedStream().then((function(e){k.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(s,i)}(e),e=null})),S}static initializeFromPort(e){const t=new d.MessageHandler("worker","main",e);p.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=p,"undefined"===typeof window&&!u.isNodeJS&&"undefined"!==typeof self&&"function"===typeof(r=self).postMessage&&"onmessage"in r&&p.initializeFromPort(self)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let i=0;it}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=p(e)}catch(r){}}const a=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(r){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=c(e);return n.decode(r)}catch(n){i(`stringToPDFString: "${n}".`)}}const t=[];for(let r=0,a=e.length;r>8&255),String.fromCharCode(255&r))}return t.join("")},t.stringToUTF8String=p,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=i,n(3),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={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},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={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"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={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},t.UNSUPPORTED_FEATURES={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"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let a=r.WARNINGS;function i(e){a>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!==typeof e&&o("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0")));class h{static makeHexColor(e,t,n){return`#${d[e]}${d[t]}${d[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=h.applyTransform(e,t),r=h.applyTransform(e.slice(2,4),t),a=h.applyTransform([e[0],e[3]],t),i=h.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],a[0],i[0]),Math.min(n[1],r[1],a[1],i[1]),Math.max(n[0],r[0],a[0],i[0]),Math.max(n[1],r[1],a[1],i[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(n+i)/2,s=Math.sqrt((n+i)**2-4*(n*i-a*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>i?null:[n,a,r,i]}static bezierBoundingBox(e,t,n,r,a,i,o,s){const l=[],c=[[],[]];let u,d,h,f,p,m,g,y;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*o,h=3*n-3*e):(d=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*s,h=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;f=-h/d,0{n(4)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){s._clearCache(),o._clearCache(),u._clearCache()},t.isCmd=function(e,t){return e instanceof s&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof c&&(void 0===t||f(e.get("Type"),t))},t.isName=f,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen};var r=n(2);const a=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=a;const i=Symbol("EOF");t.EOF=i;const o=function(){let e=Object.create(null);class t{constructor(e){this.name=e}static get(n){return e[n]||(e[n]=new t(n))}static _clearCache(){e=Object.create(null)}}return t}();t.Name=o;const s=function(){let e=Object.create(null);class t{constructor(e){this.cmd=e}static get(n){return e[n]||(e[n]=new t(n))}static _clearCache(){e=Object.create(null)}}return t}();t.Cmd=s;const l=function(){return l};class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=l}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,n){let r=this._map[e];if(void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e{(0,r.unreachable)("Should not call `set` on the empty dictionary.")},(0,r.shadow)(this,"empty",e)}static merge(e){let{xref:t,dictArray:n,mergeSubDicts:r=!1}=e;const a=new c(t),i=new Map;for(const o of n)if(o instanceof c)for(const[e,t]of Object.entries(o._map)){let n=i.get(e);if(void 0===n)n=[],i.set(e,n);else if(!r||!(t instanceof c))continue;n.push(t)}for(const[o,s]of i){if(1===s.length||!(s[0]instanceof c)){a._map[o]=s[0];continue}const e=new c(t);for(const t of s)for(const[n,r]of Object.entries(t._map))void 0===e._map[n]&&(e._map[n]=r);e.size>0&&(a._map[o]=e)}return i.clear(),a.size>0?a:c.empty}}t.Dict=c;const u=function(){let e=Object.create(null);class t{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static get(n,r){const a=0===r?`${n}R`:`${n}R${r}`;return e[a]||(e[a]=new t(n,r))}static _clearCache(){e=Object.create(null)}}return t}();t.Ref=u;class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(e&&e._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=d;class h{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function f(e,t){return e instanceof o&&(void 0===t||e.name===t)}t.RefSetCache=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.MissingDataException=t.DocStats=void 0,t.collectActions=function(e,t,n){const i=Object.create(null),o=u({dict:t,key:"AA",stopWhenFound:!1});if(o)for(let r=o.length-1;r>=0;r--){const t=o[r];if(t instanceof a.Dict)for(const r of t.getKeys()){const o=n[r];if(!o)continue;const s=[];h(t.getRaw(r),e,s,new a.RefSet),s.length>0&&(i[o]=s)}}if(t.has("A")){const n=[];h(t.get("A"),e,n,new a.RefSet),n.length>0&&(i.Action=n)}return(0,r.objectSize)(i)>0?i:null},t.encodeToXmlString=function(e){const t=[];let n=0;for(let r=0,a=e.length;r55295&&(a<57344||a>65533)&&r++,n=r+1}return 0===t.length?e:(n126||35===a||40===a||41===a||60===a||62===a||91===a||93===a||123===a||125===a||47===a||37===a)&&(n0?t:null},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);return t%100===0?(t/100).toString():t%10===0?e.toFixed(1):e.toFixed(2)},t.parseXFAPath=function(e){const t=/(.+)\[(\d+)\]$/;return e.split(".").map((e=>{const n=e.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(t&&t[2]){const e=t[2];let n=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(n=!0),{url:e,newWindow:n}}return null},t.toRomanNumerals=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const n=[];let a;for(;e>=1e3;)e-=1e3,n.push("M");a=e/100|0,e%=100,n.push(d[a]),a=e/10|0,e%=10,n.push(d[10+a]),n.push(d[20+e]);const i=n.join("");return t?i.toLowerCase():i},t.validateCSSFont=function(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:n,fontWeight:a,italicAngle:i}=e;if(/^".*"$/.test(n)){if(/[^\\]"/.test(n.slice(1,n.length-1)))return(0,r.warn)(`XFA - FontFamily contains some unescaped ": ${n}.`),!1}else if(/^'.*'$/.test(n)){if(/[^\\]'/.test(n.slice(1,n.length-1)))return(0,r.warn)(`XFA - FontFamily contains some unescaped ': ${n}.`),!1}else for(const l of n.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(l)||!/^[\w-\\]+$/.test(l))return(0,r.warn)(`XFA - FontFamily contains some invalid : ${n}.`),!1;const o=a?a.toString():"";e.fontWeight=t.has(o)?o:"400";const s=parseFloat(i);return e.italicAngle=isNaN(s)||s<-90||s>90?"14":i.toString(),!0};var r=n(2),a=n(5),i=n(7);class o extends r.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=o;class s extends r.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=s;class l extends r.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=l;class c extends r.BaseException{constructor(e){super(e,"XRefParseException")}}function u(e){let t,{dict:n,key:r,getArray:i=!1,stopWhenFound:o=!0}=e;const s=new a.RefSet;for(;n instanceof a.Dict&&(!n.objId||!s.has(n.objId));){n.objId&&s.put(n.objId);const e=i?n.getArray(r):n.get(r);if(void 0!==e){if(o)return e;t||(t=[]),t.push(e)}n=n.get("Parent")}return t}t.XRefParseException=c,t.DocStats=class{constructor(e){this._handler=e,this._streamTypes=new Set,this._fontTypes=new Set}_send(){const e=Object.create(null),t=Object.create(null);for(const n of this._streamTypes)e[n]=!0;for(const n of this._fontTypes)t[n]=!0;this._handler.send("DocStats",{streamTypes:e,fontTypes:t})}addStreamType(e){this._streamTypes.has(e)||(this._streamTypes.add(e),this._send())}addFontType(e){this._fontTypes.has(e)||(this._fontTypes.add(e),this._send())}};const d=["","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 h(e,t,n,o){if(!e)return;let s=null;if(e instanceof a.Ref){if(o.has(e))return;s=e,o.put(s),e=t.fetch(e)}if(Array.isArray(e))for(const r of e)h(r,t,n,o);else if(e instanceof a.Dict){if((0,a.isName)(e.get("S"),"JavaScript")){const t=e.get("JS");let a;t instanceof i.BaseStream?a=t.getString():"string"===typeof t&&(a=t),a=a&&(0,r.stringToPDFString)(a).replace(/\u0000/g,""),a&&n.push(a)}h(e.getRaw("Next"),t,n,o)}s&&o.remove(s)}const f={60:"<",62:">",38:"&",34:""",39:"'"}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var r=n(2);class a{constructor(){this.constructor===a&&(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(e){(0,r.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e){const t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,r.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,r.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,r.unreachable)("Abstract method `reset` called")}moveStart(){(0,r.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t){(0,r.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}t.BaseStream=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=n(2),a=n(9),i=n(6),o=n(11),s=n(10);function l(e){if(e){const t=(0,r.createValidAbsoluteUrl)(e);if(t)return t.href;(0,r.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}class c{constructor(){this.constructor===c&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const e=this.pdfDocument.catalog;return(0,r.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}onLoadedStream(){(0,r.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends c{constructor(e,t,n,r,a,i,c){super(),this._docId=e,this._password=n,this._docBaseUrl=l(c),this.msgHandler=r,this.evaluatorOptions=a,this.enableXfa=i;const u=new s.Stream(t);this.pdfDocument=new o.PDFDocument(this,u),this._loadedStreamPromise=Promise.resolve(u)}async ensure(e,t,n){const r=e[t];return"function"===typeof r?r.apply(e,n):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(e){}},t.NetworkPdfManager=class extends c{constructor(e,t,n,r,i,s){super(),this._docId=e,this._password=n.password,this._docBaseUrl=l(s),this.msgHandler=n.msgHandler,this.evaluatorOptions=r,this.enableXfa=i,this.streamManager=new a.ChunkedStreamManager(t,{msgHandler:n.msgHandler,length:n.length,disableAutoFetch:n.disableAutoFetch,rangeChunkSize:n.rangeChunkSize}),this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,n){try{const r=e[t];return"function"===typeof r?r.apply(e,n):r}catch(r){if(!(r instanceof i.MissingDataException))throw r;return await this.requestRange(r.begin,r.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(e){this.streamManager.abort(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=n(2),a=n(6),i=n(10);class o extends i.Stream{constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,n=this.numChunks;t=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let a=n;athis.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new a.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;const r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=n;i=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){const t=this.bytes,n=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(n,r),t.subarray(n,r);let a=n+e;return a>r&&(a=r),a>this.progressiveDataLength&&this.ensureRange(n,a),this.pos=a,t.subarray(n,a)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let a=t;a{const o=s=>{try{if(!s.done){const e=s.value;return a.push(e),i+=(0,r.arrayByteLength)(e),n.isStreamingSupported&&this.onProgress({loaded:i}),void n.read().then(o,t)}const l=(0,r.arraysToBytes)(a);a=null,e(l)}catch(l){t(l)}};n.read().then(o,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(){const e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(const r of e)this.stream.hasChunk(r)||n.add(r);if(0===n.size)return Promise.resolve();const a=(0,r.createPromiseCapability)();this._promisesByRequest.set(t,a);const i=[];for(const r of n){let e=this._requestsByChunk.get(r);e||(e=[],this._requestsByChunk.set(r,e),i.push(r)),e.push(t)}if(i.length>0){const e=this.groupChunks(i);for(const t of e){const e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(a.reject)}}return a.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const n=this.getBeginChunk(e),r=this.getEndChunk(t),a=[];for(let i=n;i0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e){const e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n=0&&r+1!==i&&(t.push({beginChunk:n,endChunk:r+1}),n=i),a+1===e.length&&t.push({beginChunk:n,endChunk:i+1}),r=i}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,n=void 0===e.begin,r=n?this.progressiveDataLength:e.begin,a=r+t.byteLength,i=Math.floor(r/this.chunkSize),o=a0||s.push(t)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(o);Number.isInteger(e)&&this._requestChunks([e])}for(const l of s){const e=this._promisesByRequest.get(l);this._promisesByRequest.delete(l),e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var r=n(7),a=n(2);class i extends r.BaseStream{constructor(e,t,n,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,n=this.pos,r=this.end;if(!e)return t.subarray(n,r);let a=n+e;return a>r&&(a=r),this.pos=a,t.subarray(n,a)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new i(this.bytes.buffer,e,t,n)}}t.Stream=i,t.StringStream=class extends i{constructor(e){super((0,a.stringToBytes)(e))}},t.NullStream=class extends i{constructor(){super(new Uint8Array(0))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var r=n(12),a=n(2),i=n(6),o=n(5),s=n(51),l=n(7),c=n(67),u=n(69),d=n(71),h=n(100),f=n(17),p=n(10),m=n(75),g=n(62),y=n(15),b=n(19),v=n(74),w=n(65),x=n(76),S=n(101);const k=[0,0,612,792];class A{constructor(e){let{pdfManager:t,xref:n,pageIndex:r,pageDict:a,ref:i,globalIdFactory:o,fontCache:s,builtInCMapCache:l,standardFontDataCache:c,globalImageCache:u,nonBlendModesSet:d,xfaFactory:h}=e;this.pdfManager=t,this.pageIndex=r,this.pageDict=a,this.xref=n,this.ref=i,this.fontCache=s,this.builtInCMapCache=l,this.standardFontDataCache=c,this.globalImageCache=u,this.nonBlendModesSet=d,this.evaluatorOptions=t.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=h;const f={obj:0};this._localIdFactory=class extends o{static createObjId(){return`p${r}_${++f.obj}`}static getPageObjId(){return`page${i.toString()}`}}}_getInheritableProperty(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,i.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&n[0]instanceof o.Dict?o.Dict.merge({xref:this.xref,dictArray:n}):n[0]:n}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this._getInheritableProperty("Resources");return(0,a.shadow)(this,"resources",e instanceof o.Dict?e:o.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;const t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,a.warn)(`Empty /${e} entry.`)}return null}get mediaBox(){return(0,a.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||k)}get cropBox(){return(0,a.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return("number"!==typeof e||e<=0)&&(e=1),(0,a.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;let n;if(e===t||(0,a.isArrayEqual)(e,t))n=t;else{const r=a.Util.intersect(e,t);r&&r[2]-r[0]!==0&&r[3]-r[1]!==0?n=r:(0,a.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,a.shadow)(this,"view",n||t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!==0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,a.shadow)(this,"rotate",e)}_onSubStreamError(e,t,n){if(this.evaluatorOptions.ignoreErrors)return e.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorContentSubStream}),void(0,a.warn)(`getContentStream - ignoring sub-stream (${n}): "${t}".`);throw t}getContentStream(e){return this.pdfManager.ensure(this,"content").then((t=>t instanceof l.BaseStream?t:Array.isArray(t)?new b.StreamsSequenceStream(t,this._onSubStreamError.bind(this,e)):new p.NullStream))}get xfaData(){return(0,a.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,n){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const a=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),i=this.pageDict,o=this.annotations.slice(),s=await r.AnnotationFactory.saveNewAnnotations(a,t,n);for(const{ref:r}of s.annotations)o.push(r);const l=i.get("Annots");i.set("Annots",o);const c=[];let u=null;this.xref.encrypt&&(u=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,w.writeObject)(this.ref,i,c,u),l&&i.set("Annots",l);const d=s.dependencies;return d.push({ref:this.ref,data:c.join("")},...s.annotations),d}save(e,t,n){const r=new y.PartialEvaluator({xref:this.xref,handler:e,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(e){const i=[];for(const o of e)o.mustBePrinted(n)&&i.push(o.save(r,t,n).catch((function(e){return(0,a.warn)(`save - ignoring annotation data during "${t.name}" task: "${e}".`),null})));return Promise.all(i).then((function(e){return e.filter((e=>!!e))}))}))}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((()=>new m.ObjectLoader(this.resources,e,this.xref).load()))}getOperatorList(e){let{handler:t,sink:n,task:o,intent:s,cacheKey:l,annotationStorage:c=null}=e;const u=this.getContentStream(t),d=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),f=this.xfaFactory?null:(0,i.getNewAnnotationsMap)(c);let p=Promise.resolve(null);if(f){const e=f.get(this.pageIndex);e&&(p=r.AnnotationFactory.printNewAnnotations(h,o,e))}const m=Promise.all([u,d]).then((e=>{let[r]=e;const a=new g.OperatorList(s,n);return t.send("StartRenderPage",{transparency:h.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:l}),h.getOperatorList({stream:r,task:o,resources:this.resources,operatorList:a}).then((function(){return a}))}));return Promise.all([m,this._parsedAnnotations,p]).then((function(e){let[t,n,r]=e;if(r&&(n=n.concat(r)),0===n.length||s&a.RenderingIntentFlag.ANNOTATIONS_DISABLE)return t.flush(!0),{length:t.totalLength};const i=!!(s&a.RenderingIntentFlag.ANNOTATIONS_FORMS),l=!!(s&a.RenderingIntentFlag.ANY),u=!!(s&a.RenderingIntentFlag.DISPLAY),d=!!(s&a.RenderingIntentFlag.PRINT),f=[];for(const p of n)(l||u&&p.mustBeViewed(c)||d&&p.mustBePrinted(c))&&f.push(p.getOperatorList(h,o,s,i,c).catch((function(e){return(0,a.warn)(`getOperatorList - ignoring annotation data during "${o.name}" task: "${e}".`),null})));return Promise.all(f).then((function(e){let n=!1,r=!1;for(const{opList:a,separateForm:i,separateCanvas:o}of e)t.addOpList(a),i&&(n=i),o&&(r=o);return t.flush(!0,{form:n,canvas:r}),{length:t.totalLength}}))}))}extractTextContent(e){let{handler:t,task:n,includeMarkedContent:r,sink:a,combineTextItems:i}=e;const o=this.getContentStream(t),s=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([o,s]).then((e=>{let[o]=e;return new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:o,task:n,resources:this.resources,includeMarkedContent:r,combineTextItems:i,sink:a,viewBox:this.view})}))}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");return e?(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable:null}_parseStructTree(e){const t=new v.StructTreePage(e,this.pageDict);return t.parse(),t}async getAnnotationsData(e,t,n){const r=await this._parsedAnnotations;if(0===r.length)return[];const i=[],o=[];let s;const l=!!(n&a.RenderingIntentFlag.ANY),c=!!(n&a.RenderingIntentFlag.DISPLAY),u=!!(n&a.RenderingIntentFlag.PRINT);for(const d of r){const n=l||c&&d.viewable;(n||u&&d.printable)&&o.push(d.data),d.hasTextContent&&n&&(s||(s=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})),i.push(d.extractTextContent(s,t,this.view).catch((function(e){(0,a.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)}))))}return await Promise.all(i),o}get annotations(){const e=this._getInheritableProperty("Annots");return(0,a.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then((()=>{const e=[];for(const t of this.annotations)e.push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!1).catch((function(e){return(0,a.warn)(`_parsedAnnotations: "${e}".`),null})));return Promise.all(e).then((function(e){if(0===e.length)return e;const t=[];let n;for(const a of e)a&&(a instanceof r.PopupAnnotation?(n||(n=[]),n.push(a)):t.push(a));return n&&t.push(...n),t}))}));return(0,a.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,i.collectActions)(this.xref,this.pageDict,a.PageActionEventType);return(0,a.shadow)(this,"jsActions",e)}}t.Page=A;const C=new Uint8Array([37,80,68,70,45]),O=new Uint8Array([115,116,97,114,116,120,114,101,102]),_=new Uint8Array([101,110,100,111,98,106]),j="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",P=/^[1-9]\.\d$/;function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=t.length,i=e.peekBytes(n),o=i.length-a;if(o<=0)return!1;if(r){const n=a-1;let r=i.length-1;for(;r>=n;){let o=0;for(;o=a)return e.pos+=r-n,!0;r--}}else{let n=0;for(;n<=o;){let r=0;for(;r=a)return e.pos+=n,!0;n++}}return!1}t.PDFDocument=class{constructor(e,t){if(t.length<=0)throw new a.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=t,this.xref=new S.XRef(t,e),this._pagePromises=new Map,this._version=null;const n={font:0};this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return"f"+ ++n.font}static createObjId(){(0,a.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,a.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new u.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}get linearization(){let e=null;try{e=f.Linearization.create(this.stream)}catch(t){if(t instanceof i.MissingDataException)throw t;(0,a.info)(t)}return(0,a.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization)e.reset(),T(e,_)&&(t=e.pos+6-e.start);else{const n=1024,r=O.length;let a=!1,o=e.end;for(;!a&&o>0;)o-=n-r,o<0&&(o=0),e.pos=o,a=T(e,O,n,!0);if(a){let n;e.skip(9);do{n=e.getByte()}while((0,i.isWhiteSpace)(n));let r="";for(;n>=32&&n<=57;)r+=String.fromCharCode(n),n=e.getByte();t=parseInt(r,10),isNaN(t)&&(t=0)}}return(0,a.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;if(e.reset(),!T(e,C))return;e.moveStart();let t,n="";for(;(t=e.getByte())>32&&!(n.length>=12);)n+=String.fromCharCode(t);this._version||(this._version=n.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,a.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof o.Dict))return!1;if(e.has("Kids"))return++t>10?((0,a.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),t);const n=(0,o.isName)(e.get("FT"),"Sig"),r=e.get("Rect"),i=Array.isArray(r)&&r.every((e=>0===e));return n&&i}))}get _xfaStreams(){const e=this.catalog.acroForm;if(!e)return null;const t=e.get("XFA"),n={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof l.BaseStream&&!t.isEmpty)return n["xdp:xdp"]=t,n;if(!Array.isArray(t)||0===t.length)return null;for(let r=0,a=t.length;r{b.set(e,t)}));const v=[];for(const[s,m]of b){const e=m.get("FontDescriptor");if(!(e instanceof o.Dict))continue;let n=e.get("FontFamily");n=n.replace(/[ ]+(\d)/g,"$1");const l={fontFamily:n,fontWeight:e.get("FontWeight"),italicAngle:-e.get("ItalicAngle")};(0,i.validateCSSFont)(l)&&v.push(d.handleSetFont(r,[o.Name.get(s),1],null,h,t,p,null,l).catch((function(e){return(0,a.warn)(`loadXfaFonts: "${e}".`),null})))}await Promise.all(v);const w=this.xfaFactory.setFonts(f);if(!w)return;u.ignoreErrors=!0,v.length=0,f.length=0;const x=new Set;for(const a of w)(0,s.getXfaFontName)(`${a}-Regular`)||x.add(a);x.size&&w.push("PdfJS-Fallback");for(const i of w)if(!x.has(i))for(const e 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 n=`${i}-${e.name}`,l=(0,s.getXfaFontDict)(n);v.push(d.handleSetFont(r,[o.Name.get(n),1],null,h,t,p,l,{fontFamily:i,fontWeight:e.fontWeight,italicAngle:e.italicAngle}).catch((function(e){return(0,a.warn)(`loadXfaFonts: "${e}".`),null})))}await Promise.all(v),this.xfaFactory.appendFonts(f,x)}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,a.shadow)(this,"formInfo",e);try{const n=t.get("Fields"),r=Array.isArray(n)&&n.length>0;e.hasFields=r;const a=t.get("XFA");e.hasXfa=Array.isArray(a)&&a.length>0||a instanceof l.BaseStream&&!a.isEmpty;const i=!!(1&t.get("SigFlags")),o=i&&this._hasOnlyDocumentSignatures(n);e.hasAcroForm=r&&!o,e.hasSignatures=i}catch(n){if(n instanceof i.MissingDataException)throw n;(0,a.warn)(`Cannot fetch form information: "${n}".`)}return(0,a.shadow)(this,"formInfo",e)}get documentInfo(){let e=this._version;"string"===typeof e&&P.test(e)||((0,a.warn)(`Invalid PDF header version number: ${e}`),e=null);const t={PDFFormatVersion:e,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 n;try{n=this.xref.trailer.get("Info")}catch(r){if(r instanceof i.MissingDataException)throw r;(0,a.info)("The document information dictionary is invalid.")}if(!(n instanceof o.Dict))return(0,a.shadow)(this,"documentInfo",t);for(const i of n.getKeys()){const e=n.get(i);switch(i){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"===typeof e){t[i]=(0,a.stringToPDFString)(e);continue}break;case"Trapped":if(e instanceof o.Name){t[i]=e;continue}break;default:let n;switch(typeof e){case"string":n=(0,a.stringToPDFString)(e);break;case"number":case"boolean":n=e;break;default:e instanceof o.Name&&(n=e)}if(void 0===n){(0,a.warn)(`Bad value, for custom key "${i}", in Info: ${e}.`);continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[i]=n;continue}(0,a.warn)(`Bad value, for key "${i}", in Info: ${e}.`)}return(0,a.shadow)(this,"documentInfo",t)}get fingerprints(){function e(e){return"string"===typeof e&&e.length>0&&e!==j}function t(e){const t=[];for(let n=0,r=e.length;n{let[r,i]=t;return new A({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:r,ref:i,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:a})})),this._pagePromises.set(e,i),i}async checkFirstPage(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))try{await this.getPage(0)}catch(e){if(e instanceof i.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new i.XRefParseException}}async checkLastPage(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{catalog:t,pdfManager:n}=this;let r;t.setActualNumPages();try{if(await Promise.all([n.ensureDoc("xfaFactory"),n.ensureDoc("linearization"),n.ensureCatalog("numPages")]),this.xfaFactory)return;if(r=this.linearization?this.linearization.numPages:t.numPages,!Number.isInteger(r))throw new a.FormatError("Page count is not an integer.");if(r<=1)return;await this.getPage(r-1)}catch(o){if(this._pagePromises.delete(r-1),await this.cleanup(),o instanceof i.XRefEntryException&&!e)throw new i.XRefParseException;let l;(0,a.warn)(`checkLastPage - invalid /Pages tree /Count: ${r}.`);try{l=await t.getAllPageDicts(e)}catch(s){if(s instanceof i.XRefEntryException&&!e)throw new i.XRefParseException;return void t.setActualNumPages(1)}for(const[e,[r,a]]of l){let i;r instanceof Error?(i=Promise.reject(r),i.catch((()=>{}))):i=Promise.resolve(new A({pdfManager:n,xref:this.xref,pageIndex:e,pageDict:r,ref:a,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(e,i)}t.setActualNumPages(l.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.catalog?this.catalog.cleanup(e):(0,d.clearGlobalCaches)()}_collectFieldObjects(e,t,n){const i=this.xref.fetchIfRef(t);if(i.has("T")){const t=(0,a.stringToPDFString)(i.get("T"));e=""===e?t:`${e}.${t}`}if(n.has(e)||n.set(e,[]),n.get(e).push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((e=>e&&e.getFieldObject())).catch((function(e){return(0,a.warn)(`_collectFieldObjects: "${e}".`),null}))),i.has("Kids")){const t=i.get("Kids");for(const r of t)this._collectFieldObjects(e,r,n)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,a.shadow)(this,"fieldObjects",Promise.resolve(null));const e=Object.create(null),t=new Map;for(const r of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",r,t);const n=[];for(const[r,a]of t)n.push(Promise.all(a).then((t=>{(t=t.filter((e=>!!e))).length>0&&(e[r]=t)})));return(0,a.shadow)(this,"fieldObjects",Promise.all(n).then((()=>e)))}get hasJSActions(){const e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,a.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,a.shadow)(this,"calculationOrderIds",null);const t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,a.shadow)(this,"calculationOrderIds",null);const n=[];for(const r of t)r instanceof o.Ref&&n.push(r.toString());return 0===n.length?(0,a.shadow)(this,"calculationOrderIds",null):(0,a.shadow)(this,"calculationOrderIds",n)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=b;var r=n(2),a=n(6),i=n(13),o=n(5),s=n(65),l=n(7),c=n(60),u=n(69),d=n(14),h=n(72),f=n(75),p=n(62),m=n(10),g=n(76);function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;const n=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return d.ColorSpace.singletons.gray.getRgbItem(e,0,n,0),n;case 3:return d.ColorSpace.singletons.rgb.getRgbItem(e,0,n,0),n;case 4:return d.ColorSpace.singletons.cmyk.getRgbItem(e,0,n,0),n;default:return t}}function b(e,t){if(!e.has("QuadPoints"))return null;const n=e.getArray("QuadPoints");if(!Array.isArray(n)||0===n.length||n.length%8>0)return null;const r=[];for(let a=0,i=n.length/8;at[2]||ot[3]))return null;r[a].push({x:i,y:o})}}return r.map((e=>{const[t,n,r,a]=e.reduce(((e,t)=>{let[n,r,a,i]=e;return[Math.min(n,t.x),Math.max(r,t.x),Math.min(a,t.y),Math.max(i,t.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]);return[{x:t,y:a},{x:n,y:a},{x:t,y:r},{x:n,y:r}]}))}function v(e,t,n){const[a,i,o,s]=r.Util.getAxialAlignedBoundingBox(t,n);if(a===o||i===s)return[1,0,0,1,e[0],e[1]];const l=(e[2]-e[0])/(o-a),c=(e[3]-e[1])/(s-i);return[l,0,0,c,e[0]-a*l,e[1]-i*c]}t.AnnotationFactory=class{static create(e,t,n,r,a){return Promise.all([n.ensureCatalog("acroForm"),n.ensureCatalog("baseUrl"),n.ensureDoc("xfaDatasets"),a?this._getPageIndex(e,t,n):-1]).then((i=>{let[o,s,l,c]=i;return n.ensure(this,"_create",[e,t,n,r,o,l,a,c])}))}static _create(e,t,n,i,s,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:-1;const d=e.fetchIfRef(t);if(!(d instanceof o.Dict))return;const h=t instanceof o.Ref?t.toString():`annot_${i.createObjId()}`;let f=d.get("Subtype");f=f instanceof o.Name?f.name:null;const p={xref:e,ref:t,dict:d,subtype:f,id:h,pdfManager:n,acroForm:s instanceof o.Dict?s:o.Dict.empty,xfaDatasets:l,collectFields:c,pageIndex:u};switch(f){case"Link":return new P(p);case"Text":return new j(p);case"Widget":let e=(0,a.getInheritableProperty)({dict:d,key:"FT"});switch(e=e instanceof o.Name?e.name:null,e){case"Tx":return new A(p);case"Btn":return new C(p);case"Ch":return new O(p);case"Sig":return new _(p)}return(0,r.warn)(`Unimplemented widget field type "${e}", falling back to base field type.`),new k(p);case"Popup":return new T(p);case"FreeText":return new E(p);case"Line":return new M(p);case"Square":return new N(p);case"Circle":return new I(p);case"PolyLine":return new D(p);case"Polygon":return new F(p);case"Caret":return new R(p);case"Ink":return new $(p);case"Highlight":return new L(p);case"Underline":return new B(p);case"Squiggly":return new U(p);case"StrikeOut":return new z(p);case"Stamp":return new H(p);case"FileAttachment":return new q(p);default:return c||(f?(0,r.warn)(`Unimplemented annotation type "${f}", falling back to base annotation.`):(0,r.warn)("Annotation is missing the required /Subtype.")),new w(p)}}static async _getPageIndex(e,t,n){try{const r=await e.fetchIfRefAsync(t);if(!(r instanceof o.Dict))return-1;const a=r.getRaw("P");return a instanceof o.Ref?await n.ensureCatalog("getPageIndex",[a]):-1}catch(a){return(0,r.warn)(`_getPageIndex: "${a}".`),-1}}static async saveNewAnnotations(e,t,n){const a=e.xref;let i;const l=[],c=[];for(const u of n)switch(u.annotationType){case r.AnnotationEditorType.FREETEXT:if(!i){const e=new o.Dict(a);e.set("BaseFont",o.Name.get("Helvetica")),e.set("Type",o.Name.get("Font")),e.set("Subtype",o.Name.get("Type1")),e.set("Encoding",o.Name.get("WinAnsiEncoding"));const t=[];i=a.getNewRef(),(0,s.writeObject)(i,e,t,null),l.push({ref:i,data:t.join("")})}c.push(E.createNewAnnotation(a,u,l,{evaluator:e,task:t,baseFontRef:i}));break;case r.AnnotationEditorType.INK:c.push($.createNewAnnotation(a,u,l))}return{annotations:await Promise.all(c),dependencies:l}}static async printNewAnnotations(e,t,n){if(!n)return null;const a=e.xref,i=[];for(const o of n)switch(o.annotationType){case r.AnnotationEditorType.FREETEXT:i.push(E.createNewPrintAnnotation(a,o,{evaluator:e,task:t}));break;case r.AnnotationEditorType.INK:i.push($.createNewPrintAnnotation(a,o))}return Promise.all(i)}};class w{constructor(e){const t=e.dict;this.setTitle(t.get("T")),this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.setOptionalContent(t);const n=t.get("MK");if(this.setBorderAndBackgroundColors(n),this.setRotation(n),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:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1},e.collectFields){const n=t.get("Kids");if(Array.isArray(n)){const e=[];for(const t of n)t instanceof o.Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,a.collectActions)(e.xref,t,r.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._fallbackFontDict=null}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)}mustBeViewed(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,r.AnnotationFlag.HIDDEN)}mustBePrinted(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(e){const t="string"===typeof e?(0,r.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,c.bidi)(t).dir?"rtl":"ltr"}}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"===typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){this.color=y(e)}setLineEndings(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const n=e[t];if(n instanceof o.Name)switch(n.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=n.name;continue}(0,r.warn)(`Ignoring invalid lineEnding: ${n}`)}}setRotation(e){if(this.rotation=0,e instanceof o.Dict){let t=e.get("R")||0;Number.isInteger(t)&&0!==t&&(t%=360,t<0&&(t+=360),t%90===0&&(this.rotation=t))}}setBorderAndBackgroundColors(e){e instanceof o.Dict?(this.borderColor=y(e.getArray("BC"),null),this.backgroundColor=y(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){if(this.borderStyle=new x,e instanceof o.Dict)if(e.has("BS")){const t=e.get("BS"),n=t.get("Type");n&&!(0,o.isName)(n,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){const t=e.getArray("Border");Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(t instanceof o.Dict))return;const n=t.get("N");if(n instanceof l.BaseStream)return void(this.appearance=n);if(!(n instanceof o.Dict))return;const r=e.get("AS");r instanceof o.Name&&n.has(r.name)&&(this.appearance=n.get(r.name))}setOptionalContent(e){this.oc=null;const t=e.get("OC");t instanceof o.Name?(0,r.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof o.Dict&&(this.oc=t)}loadResources(e,t){return t.dict.getAsync("Resources").then((t=>{if(t)return new f.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}async getOperatorList(e,t,n,a,i){const s=this.data;let l=this.appearance;const c=!!(this.data.hasOwnCanvas&&n&r.RenderingIntentFlag.DISPLAY);if(!l){if(!c)return{opList:new p.OperatorList,separateForm:!1,separateCanvas:!1};l=new m.StringStream(""),l.dict=new o.Dict}const u=l.dict,d=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],l),h=u.getArray("BBox")||[0,0,1,1],f=u.getArray("Matrix")||[1,0,0,1,0,0],g=v(s.rect,h,f),y=new p.OperatorList;let b;return this.oc&&(b=await e.parseMarkedContentProps(this.oc,null)),void 0!==b&&y.addOp(r.OPS.beginMarkedContentProps,["OC",b]),y.addOp(r.OPS.beginAnnotation,[s.id,s.rect,g,f,c]),await e.getOperatorList({stream:l,task:t,resources:d,operatorList:y,fallbackFontDict:this._fallbackFontDict}),y.addOp(r.OPS.endAnnotation,[]),void 0!==b&&y.addOp(r.OPS.endMarkedContent,[]),this.reset(),{opList:y,separateForm:!1,separateCanvas:c}}async save(e,t,n){return null}get hasTextContent(){return!1}async extractTextContent(e,t,n){if(!this.appearance)return;const r=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),a=[],i=[],o={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const n of e.items)i.push(n.str),n.hasEOL&&(a.push(i.join("")),i.length=0)}};await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,combineTextItems:!0,sink:o,viewBox:n}),this.reset(),i.length&&a.push(i.join("")),a.length>0&&(this.data.textContent=a)}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 e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));let n=e;const a=new o.RefSet;for(e.objId&&a.put(e.objId);n.has("Parent")&&(n=n.get("Parent"),n instanceof o.Dict&&(!n.objId||!a.has(n.objId)));)n.objId&&a.put(n.objId),n.has("T")&&t.unshift((0,r.stringToPDFString)(n.get("T")));return t.join(".")}}t.Annotation=w;class x{constructor(){this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof o.Name)this.width=0;else if("number"===typeof e){if(e>0){const n=(t[2]-t[0])/2,a=(t[3]-t[1])/2;n>0&&a>0&&(e>n||e>a)&&((0,r.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`),e=1)}this.width=e}}setStyle(e){if(e instanceof o.Name)switch(e.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}}setDashArray(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){let n=!0,r=!0;for(const t of e){if(!(+t>=0)){n=!1;break}t>0&&(r=!1)}n&&!r?(this.dashArray=e,t&&this.setStyle(o.Name.get("D"))):this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=x;class S extends w{constructor(e){super(e);const t=e.dict;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof o.Ref?e.toString():null;const n=t.get("RT");this.data.replyType=n instanceof o.Name?n.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const e=t.get("IRT");this.setTitle(e.get("T")),this.data.titleObj=this._title,this.setContents(e.get("Contents")),this.data.contentsObj=this._contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=e.has("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=t.has("Popup"),t.has("C")||(this.data.color=null);t.has("RC")&&(this.data.richText=g.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"===typeof e?e:null}_setDefaultAppearance(e){let{xref:t,extra:n,strokeColor:r,fillColor:a,blendMode:i,strokeAlpha:s,fillAlpha:l,pointsCallback:c}=e,u=Number.MAX_VALUE,d=Number.MAX_VALUE,h=Number.MIN_VALUE,f=Number.MIN_VALUE;const p=["q"];n&&p.push(n),r&&p.push(`${r[0]} ${r[1]} ${r[2]} RG`),a&&p.push(`${a[0]} ${a[1]} ${a[2]} rg`);let g=this.data.quadPoints;g||(g=[[{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 o of g){const[e,t,n,r]=c(p,o);u=Math.min(u,e),h=Math.max(h,t),d=Math.min(d,n),f=Math.max(f,r)}p.push("Q");const y=new o.Dict(t),b=new o.Dict(t);b.set("Subtype",o.Name.get("Form"));const v=new m.StringStream(p.join(" "));v.dict=b,y.set("Fm0",v);const w=new o.Dict(t);i&&w.set("BM",o.Name.get(i)),"number"===typeof s&&w.set("CA",s),"number"===typeof l&&w.set("ca",l);const x=new o.Dict(t);x.set("GS0",w);const S=new o.Dict(t);S.set("ExtGState",x),S.set("XObject",y);const k=new o.Dict(t);k.set("Resources",S);const A=this.data.rect=[u,d,h,f];k.set("BBox",A),this.appearance=new m.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=k,this._streams.push(this.appearance,v)}static async createNewAnnotation(e,t,n,r){const a=e.getNewRef(),i=e.getNewRef(),o=this.createNewDict(t,e,{apRef:i}),l=await this.createNewAppearanceStream(t,e,r),c=[];let u=e.encrypt?e.encrypt.createCipherTransform(i.num,i.gen):null;return(0,s.writeObject)(i,l,c,u),n.push({ref:i,data:c.join("")}),c.length=0,u=e.encrypt?e.encrypt.createCipherTransform(a.num,a.gen):null,(0,s.writeObject)(a,o,c,u),{ref:a,data:c.join("")}}static async createNewPrintAnnotation(e,t,n){const r=await this.createNewAppearanceStream(t,e,n),a=this.createNewDict(t,e,{ap:r});return new this.prototype.constructor({dict:a,xref:e})}}t.MarkupAnnotation=S;class k extends w{constructor(e){super(e);const t=e.dict,n=this.data;this.ref=e.ref,n.annotationType=r.AnnotationType.WIDGET,void 0===n.fieldName&&(n.fieldName=this._constructFieldName(t)),void 0===n.actions&&(n.actions=(0,a.collectActions)(e.xref,t,r.AnnotationActionEventType));let s=(0,a.getInheritableProperty)({dict:t,key:"V",getArray:!0});n.fieldValue=this._decodeFormValue(s);const l=(0,a.getInheritableProperty)({dict:t,key:"DV",getArray:!0});if(n.defaultFieldValue=this._decodeFormValue(l),void 0===s&&e.xfaDatasets){const t=this._title.str;t&&(this._hasValueFromXFA=!0,n.fieldValue=s=e.xfaDatasets.getValue(t))}void 0===s&&null!==n.defaultFieldValue&&(n.fieldValue=n.defaultFieldValue),n.alternativeText=(0,r.stringToPDFString)(t.get("TU")||"");const c=(0,a.getInheritableProperty)({dict:t,key:"DA"})||e.acroForm.get("DA");this._defaultAppearance="string"===typeof c?c:"",n.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance);const u=(0,a.getInheritableProperty)({dict:t,key:"FT"});n.fieldType=u instanceof o.Name?u.name:null;const d=(0,a.getInheritableProperty)({dict:t,key:"DR"}),h=e.acroForm.get("DR"),f=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:d,acroFormResources:h,appearanceResources:f,mergedResources:o.Dict.merge({xref:e.xref,dictArray:[d,f,h],mergeSubDicts:!0})},n.fieldFlags=(0,a.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY),n.required=this.hasFieldFlag(r.AnnotationFieldFlag.REQUIRED),n.hidden=this._hasFlag(n.annotationFlags,r.AnnotationFlag.HIDDEN)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"===typeof e)).map((e=>(0,r.stringToPDFString)(e))):e instanceof o.Name?(0,r.stringToPDFString)(e.name):"string"===typeof e?(0,r.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}static _getRotationMatrix(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw new Error("Invalid rotation")}}getRotationMatrix(e){const t=e?e.get(this.data.id):void 0;let n=t&&t.rotation;if(void 0===n&&(n=this.rotation),0===n)return r.IDENTITY_MATRIX;const a=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1];return k._getRotationMatrix(n,a,i)}getBorderAndBackgroundAppearances(e){const t=e?e.get(this.data.id):void 0;let n=t&&t.rotation;if(void 0===n&&(n=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const r=this.data.rect[2]-this.data.rect[0],a=this.data.rect[3]-this.data.rect[1],o=0===n||180===n?`0 0 ${r} ${a} re`:`0 0 ${a} ${r} re`;let s="";return this.backgroundColor&&(s=`${(0,i.getPdfColor)(this.backgroundColor,!0)} ${o} f `),this.borderColor&&(s+=`${this.borderStyle.width||1} w ${(0,i.getPdfColor)(this.borderColor,!1)} ${o} S `),s}async getOperatorList(e,t,n,a,i){if(a&&!(this instanceof _))return{opList:new p.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,n,a,i);const o=await this._getAppearance(e,t,i);if(this.appearance&&null===o)return super.getOperatorList(e,t,n,a,i);const s=new p.OperatorList;if(!this._defaultAppearance||null===o)return{opList:s,separateForm:!1,separateCanvas:!1};const l=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],c=v(this.data.rect,l,[1,0,0,1,0,0]);let u;this.oc&&(u=await e.parseMarkedContentProps(this.oc,null)),void 0!==u&&s.addOp(r.OPS.beginMarkedContentProps,["OC",u]),s.addOp(r.OPS.beginAnnotation,[this.data.id,this.data.rect,c,this.getRotationMatrix(i),!1]);const d=new m.StringStream(o);return await e.getOperatorList({stream:d,task:t,resources:this._fieldResources.mergedResources,operatorList:s}),s.addOp(r.OPS.endAnnotation,[]),void 0!==u&&s.addOp(r.OPS.endMarkedContent,[]),{opList:s,separateForm:!1,separateCanvas:!1}}_getMKDict(e){const t=new o.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",Array.from(this.borderColor).map((e=>e/255))),this.backgroundColor&&t.set("BG",Array.from(this.backgroundColor).map((e=>e/255))),t.size>0?t:null}async save(e,t,n){const a=n?n.get(this.data.id):void 0;let i=a&&a.value,l=a&&a.rotation;if(i===this.data.fieldValue||void 0===i){if(!this._hasValueFromXFA&&void 0===l)return null;i=i||this.data.fieldValue}if(void 0===l&&!this._hasValueFromXFA&&Array.isArray(i)&&Array.isArray(this.data.fieldValue)&&i.length===this.data.fieldValue.length&&i.every(((e,t)=>e===this.data.fieldValue[t])))return null;void 0===l&&(l=this.rotation);let c=await this._getAppearance(e,t,n);if(null===c)return null;const{xref:u}=e,d=u.fetchIfRef(this.ref);if(!(d instanceof o.Dict))return null;const h=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],f={path:(0,r.stringToPDFString)(d.get("T")||""),value:i},p=u.getNewRef(),m=new o.Dict(u);m.set("N",p);const g=u.encrypt;let y=null,b=null;g&&(y=g.createCipherTransform(this.ref.num,this.ref.gen),b=g.createCipherTransform(p.num,p.gen),c=b.encryptString(c));const v=e=>(0,r.isAscii)(e)?e:(0,r.stringToUTF16BEString)(e);d.set("V",Array.isArray(i)?i.map(v):v(i)),d.set("AP",m),d.set("M",`D:${(0,r.getModificationDate)()}`);const w=this._getMKDict(l);w&&d.set("MK",w);const x=new o.Dict(u);x.set("Length",c.length),x.set("Subtype",o.Name.get("Form")),x.set("Resources",this._getSaveFieldResources(u)),x.set("BBox",h);const S=this.getRotationMatrix(n);S!==r.IDENTITY_MATRIX&&x.set("Matrix",S);const k=[`${this.ref.num} ${this.ref.gen} obj\n`];(0,s.writeDict)(d,k,y),k.push("\nendobj\n");const A=[`${p.num} ${p.gen} obj\n`];return(0,s.writeDict)(x,A,b),A.push(" stream\n",c,"\nendstream\nendobj\n"),[{ref:this.ref,data:k.join(""),xfa:f},{ref:p,data:A.join(""),xfa:null}]}async _getAppearance(e,t,n){if(this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD))return null;const a=n?n.get(this.data.id):void 0;let o,s;if(a&&(o=a.formattedValue||a.value,s=a.rotation),void 0===s&&void 0===o&&(!this._hasValueFromXFA||this.appearance))return null;if(void 0===o&&(o=this.data.fieldValue,!o))return"";if(Array.isArray(o)&&1===o.length&&(o=o[0]),(0,r.assert)("string"===typeof o,"Expected `value` to be a string."),o=o.trim(),""===o)return"";void 0===s&&(s=this.rotation);let l=-1;this.data.multiLine&&(l=o.split(/\r\n|\r|\n/).length);let c=this.data.rect[3]-this.data.rect[1],u=this.data.rect[2]-this.data.rect[0];90!==s&&270!==s||([u,c]=[c,u]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const d=await k._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources),[h,f]=this._computeFontSize(c-2,u-4,o,d,l);let p=d.descent;isNaN(p)&&(p=0);const m=Math.min(Math.floor((c-f)/2),2)+Math.abs(p)*f,g=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(h,o,d,f,u,c,g,2,m,n);const y=d.encodeString(o).join("");if(this.data.comb)return this._getCombAppearance(h,d,y,u,2,m,n);const b=this.getBorderAndBackgroundAppearances(n);return 0===g||g>2?`/Tx BMC q ${b}BT `+h+` 1 0 0 1 2 ${m} Tm (${(0,r.escapeString)(y)}) Tj ET Q EMC`:`/Tx BMC q ${b}BT `+h+` 1 0 0 1 0 0 Tm ${this._renderText(y,d,f,u,g,2,m)} ET Q EMC`}static async _getFontData(e,t,n,r){const a=new p.OperatorList,i={font:null,clone(){return this}},{fontName:s,fontSize:l}=n;return await e.handleSetFont(r,[s&&o.Name.get(s),l],null,a,t,i,null),i.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce(((e,t)=>e+t.width),0)/1e3}_computeFontSize(e,t,n,a,o){let{fontSize:s}=this.data.defaultAppearanceData;if(!s){const l=e=>Math.floor(100*e)/100;if(-1===o){const i=this._getTextWidth(n,a);s=l(Math.min(e/r.LINE_FACTOR,t/i))}else{const i=n.split(/\r\n?|\n/),c=[];for(const e of i){const t=a.encodeString(e).join(""),n=a.charsToGlyphs(t),r=a.getCharPositions(t);c.push({line:t,glyphs:n,positions:r})}const u=n=>{let r=0;for(const i of c)if(r+=this._splitLine(null,a,n,t,i).length*n,r>e)return!0;return!1};s=12;let d=s*r.LINE_FACTOR,h=Math.round(e/d);for(h=Math.max(h,o);d=e/h,s=l(d/r.LINE_FACTOR),u(s);)h++}const{fontName:c,fontColor:u}=this.data.defaultAppearanceData;this._defaultAppearance=(0,i.createDefaultAppearance)({fontSize:s,fontName:c,fontColor:u})}return[this._defaultAppearance,s]}_renderText(e,t,n,i,o,s,l){let c;return c=1===o?(i-this._getTextWidth(e,t)*n)/2:2===o?i-this._getTextWidth(e,t)*n-s:s,c=(0,a.numberToString)(c),`${c} ${l=(0,a.numberToString)(l)} Td (${(0,r.escapeString)(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:n,acroFormResources:r}=this._fieldResources,a=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!a)return t||o.Dict.empty;for(const i of[t,n])if(i instanceof o.Dict){const e=i.get("Font");if(e instanceof o.Dict&&e.has(a))return i}if(r instanceof o.Dict){const n=r.get("Font");if(n instanceof o.Dict&&n.has(a)){const r=new o.Dict(e);r.set(a,n.getRaw(a));const i=new o.Dict(e);return i.set("Font",r),o.Dict.merge({xref:e,dictArray:[i,t],mergeSubDicts:!0})}}return t||o.Dict.empty}getFieldObject(){return null}}class A extends k{constructor(e){super(e),this._hasText=!0;const t=e.dict;"string"!==typeof this.data.fieldValue&&(this.data.fieldValue="");let n=(0,a.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let i=(0,a.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=0),this.data.maxLen=i,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)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(r.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(e,t,n,i,o,s,l){const c=(0,a.numberToString)(i/this.data.maxLen),u=[],d=t.getCharPositions(n);for(const[a,h]of d)u.push(`(${(0,r.escapeString)(n.substring(a,h))}) Tj`);return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(l)}BT `+e+` 1 0 0 1 ${o} ${s} Tm ${u.join(` ${c} 0 Td `)} ET Q EMC`}_getMultilineAppearance(e,t,n,r,a,i,o,s,l,c){const u=t.split(/\r\n?|\n/),d=[],h=a-2*s;for(const p of u){const e=this._splitLine(p,n,r,h);for(const t of e){const e=0===d.length?s:0;d.push(this._renderText(t,n,r,a,o,e,-r))}}const f=d.join("\n");return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(c)}BT `+e+` 1 0 0 1 0 ${i} Tm ${f} ET Q EMC`}_splitLine(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=a.line||t.encodeString(e).join("");const i=a.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];const o=a.positions||t.getCharPositions(e),s=n/1e3,l=[];let c=-1,u=-1,d=-1,h=0,f=0;for(let p=0,m=i.length;pr?(l.push(e.substring(h,t)),h=t,f=m,c=-1,d=-1):(f+=m,c=t,u=n,d=p):f+m>r?-1!==c?(l.push(e.substring(h,u)),h=u,p=d+1,c=-1,f=0):(l.push(e.substring(h,t)),h=t,f=m):f+=m}return h"Off"!==e));i.length=0,i.push("Off",e)}i.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=i[1],this.checkedAppearance=n.get(this.data.exportValue)||null,this.uncheckedAppearance=n.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof o.Dict){this.parent=e.dict.getRaw("Parent");const n=t.get("V");n instanceof o.Name&&(this.data.fieldValue=this._decodeFormValue(n))}const n=e.dict.get("AP");if(!(n instanceof o.Dict))return;const r=n.get("N");if(r instanceof o.Dict){for(const e of r.getKeys())if("Off"!==e){this.data.buttonValue=this._decodeFormValue(e);break}this.checkedAppearance=r.get(this.data.buttonValue)||null,this.uncheckedAppearance=r.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}_processPushButton(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),u.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})):(0,r.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="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:t}}get fallbackFontDict(){const e=new o.Dict;return e.set("BaseFont",o.Name.get("ZapfDingbats")),e.set("Type",o.Name.get("FallbackType")),e.set("Subtype",o.Name.get("FallbackType")),e.set("Encoding",o.Name.get("ZapfDingbatsEncoding")),(0,r.shadow)(this,"fallbackFontDict",e)}}class O extends k{constructor(e){super(e),this.data.options=[];const t=(0,a.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(t)){const n=e.xref;for(let e=0,r=t.length;e0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,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:e}}async _getAppearance(e,t,n){if(this.data.combo)return super._getAppearance(e,t,n);if(!n)return null;const a=n.get(this.data.id);if(!a)return null;const o=a.rotation;let s=a.value;if(void 0===o&&void 0===s)return null;void 0===s?s=this.data.fieldValue:Array.isArray(s)||(s=[s]);let l=this.data.rect[3]-this.data.rect[1],c=this.data.rect[2]-this.data.rect[0];90!==o&&270!==o||([c,l]=[l,c]);const u=this.data.options.length,d=[];for(let r=0;rn&&(n=e,t=r)}[f,p]=this._computeFontSize(e,c-4,t,h,-1)}const m=p*r.LINE_FACTOR,g=(m-p)/2,y=Math.floor(l/m);let b;if(1===d.length){const e=d[0];b=e-e%y}else b=d.length?d[0]:0;const v=Math.min(b+y+1,u),w=["/Tx BMC q",`1 1 ${c} ${l} re W n`];if(d.length){w.push("0.600006 0.756866 0.854904 rg");for(const e of d)b<=e&&eA&&(T=A/j);let E=1;const M=r.LINE_FACTOR*d,N=r.LINE_DESCENT_FACTOR*d,I=M*O.length;I>C&&(E=C/I);const D=d*Math.min(T,E),F=["q",`0 0 ${(0,a.numberToString)(A)} ${(0,a.numberToString)(C)} re W n`,"BT",`1 0 0 1 0 ${(0,a.numberToString)(C+N)} Tm 0 Tc ${(0,i.getPdfColor)(u,!0)}`,`/Helv ${(0,a.numberToString)(D)} Tf`],R=(0,a.numberToString)(M);for(const a of P)F.push(`0 -${R} Td (${(0,r.escapeString)(a)}) Tj`);F.push("ET","Q");const $=F.join("\n"),L=new o.Dict(t);if(L.set("FormType",1),L.set("Subtype",o.Name.get("Form")),L.set("Type",o.Name.get("XObject")),L.set("BBox",[0,0,A,C]),L.set("Length",$.length),L.set("Resources",g),f){const e=k._getRotationMatrix(f,A,C);L.set("Matrix",e)}const B=new m.StringStream($);return B.dict=L,B}}class M extends S{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=r.AnnotationType.LINE;const n=t.getArray("L");if(this.data.lineCoordinates=r.Util.normalizeRect(n),this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const a=this.color?Array.from(this.color).map((e=>e/255)):[0,0,0],i=t.get("CA");let o=null,s=t.getArray("IC");s&&(s=y(s,null),o=s?Array.from(s).map((e=>e/255)):null);const l=o?i:null,c=this.borderStyle.width||1,u=2*c,d=[this.data.lineCoordinates[0]-u,this.data.lineCoordinates[1]-u,this.data.lineCoordinates[2]+u,this.data.lineCoordinates[3]+u];r.Util.intersect(this.rectangle,d)||(this.rectangle=d),this._setDefaultAppearance({xref:e.xref,extra:`${c} w`,strokeColor:a,fillColor:o,strokeAlpha:i,fillAlpha:l,pointsCallback:(e,t)=>(e.push(`${n[0]} ${n[1]} m`,`${n[2]} ${n[3]} l`,"S"),[t[0].x-c,t[1].x+c,t[3].y-c,t[1].y+c])})}}}class N extends S{constructor(e){if(super(e),this.data.annotationType=r.AnnotationType.SQUARE,!this.appearance){const t=this.color?Array.from(this.color).map((e=>e/255)):[0,0,0],n=e.dict.get("CA");let r=null,a=e.dict.getArray("IC");a&&(a=y(a,null),r=a?Array.from(a).map((e=>e/255)):null);const i=r?n:null;if(0===this.borderStyle.width&&!r)return;this._setDefaultAppearance({xref:e.xref,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:r,strokeAlpha:n,fillAlpha:i,pointsCallback:(e,t)=>{const n=t[2].x+this.borderStyle.width/2,a=t[2].y+this.borderStyle.width/2,i=t[3].x-t[2].x-this.borderStyle.width,o=t[1].y-t[3].y-this.borderStyle.width;return e.push(`${n} ${a} ${i} ${o} re`),r?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class I extends S{constructor(e){if(super(e),this.data.annotationType=r.AnnotationType.CIRCLE,!this.appearance){const t=this.color?Array.from(this.color).map((e=>e/255)):[0,0,0],n=e.dict.get("CA");let r=null,a=e.dict.getArray("IC");a&&(a=y(a,null),r=a?Array.from(a).map((e=>e/255)):null);const i=r?n:null;if(0===this.borderStyle.width&&!r)return;const o=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:e.xref,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:r,strokeAlpha:n,fillAlpha:i,pointsCallback:(e,t)=>{const n=t[0].x+this.borderStyle.width/2,a=t[0].y-this.borderStyle.width/2,i=t[3].x-this.borderStyle.width/2,s=t[3].y+this.borderStyle.width/2,l=n+(i-n)/2,c=a+(s-a)/2,u=(i-n)/2*o,d=(s-a)/2*o;return e.push(`${l} ${s} m`,`${l+u} ${s} ${i} ${c+d} ${i} ${c} c`,`${i} ${c-d} ${l+u} ${a} ${l} ${a} c`,`${l-u} ${a} ${n} ${c-d} ${n} ${c} c`,`${n} ${c+d} ${l-u} ${s} ${l} ${s} c`,"h"),r?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class D extends S{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=r.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof F||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings);const n=t.getArray("Vertices");if(Array.isArray(n)){for(let e=0,t=n.length;ee/255)):[0,0,0],a=t.get("CA"),i=this.borderStyle.width||1,o=2*i,s=[1/0,1/0,-1/0,-1/0];for(const e of this.data.vertices)s[0]=Math.min(s[0],e.x-o),s[1]=Math.min(s[1],e.y-o),s[2]=Math.max(s[2],e.x+o),s[3]=Math.max(s[3],e.y+o);r.Util.intersect(this.rectangle,s)||(this.rectangle=s),this._setDefaultAppearance({xref:e.xref,extra:`${i} w`,strokeColor:n,strokeAlpha:a,pointsCallback:(e,t)=>{const n=this.data.vertices;for(let r=0,a=n.length;re/255)):[0,0,0],n=e.dict.get("CA"),a=this.borderStyle.width||1,i=2*a,o=[1/0,1/0,-1/0,-1/0];for(const e of this.data.inkLists)for(const t of e)o[0]=Math.min(o[0],t.x-i),o[1]=Math.min(o[1],t.y-i),o[2]=Math.max(o[2],t.x+i),o[3]=Math.max(o[3],t.y+i);r.Util.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:e.xref,extra:`${a} w`,strokeColor:t,strokeAlpha:n,pointsCallback:(e,t)=>{for(const n of this.data.inkLists){for(let t=0,r=n.length;te.points))),u.set("F",4),u.set("Border",[0,0,0]),u.set("Rotate",c);const d=new o.Dict(t);return u.set("AP",d),a?d.set("N",a):d.set("N",i),u}static async createNewAppearanceStream(e,t,n){const{color:r,rect:s,rotation:l,paths:c,thickness:u,opacity:d}=e,[h,f,p,g]=s;let y=p-h,b=g-f;l%180!==0&&([y,b]=[b,y]);const v=[`${u} w 1 J 1 j`,`${(0,i.getPdfColor)(r,!1)}`];1!==d&&v.push("/R0 gs");const w=[];for(const{bezier:i}of c){w.length=0,w.push(`${(0,a.numberToString)(i[0])} ${(0,a.numberToString)(i[1])} m`);for(let e=2,t=i.length;ee/255)):[1,1,0],n=e.dict.get("CA");this._setDefaultAppearance({xref:e.xref,fillColor:t,blendMode:"Multiply",fillAlpha:n,pointsCallback:(e,t)=>(e.push(`${t[0].x} ${t[0].y} m`,`${t[1].x} ${t[1].y} l`,`${t[3].x} ${t[3].y} l`,`${t[2].x} ${t[2].y} l`,"f"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class B extends S{constructor(e){if(super(e),this.data.annotationType=r.AnnotationType.UNDERLINE,this.data.quadPoints=b(e.dict,null)){if(!this.appearance){const t=this.color?Array.from(this.color).map((e=>e/255)):[0,0,0],n=e.dict.get("CA");this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:n,pointsCallback:(e,t)=>(e.push(`${t[2].x} ${t[2].y} m`,`${t[3].x} ${t[3].y} l`,"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class U extends S{constructor(e){if(super(e),this.data.annotationType=r.AnnotationType.SQUIGGLY,this.data.quadPoints=b(e.dict,null)){if(!this.appearance){const t=this.color?Array.from(this.color).map((e=>e/255)):[0,0,0],n=e.dict.get("CA");this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:n,pointsCallback:(e,t)=>{const n=(t[0].y-t[2].y)/6;let r=n,a=t[2].x;const i=t[2].y,o=t[3].x;e.push(`${a} ${i+r} m`);do{a+=2,r=0===r?n:0,e.push(`${a} ${i+r} l`)}while(ae/255)):[0,0,0],n=e.dict.get("CA");this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:n,pointsCallback:(e,t)=>(e.push((t[0].x+t[2].x)/2+" "+(t[0].y+t[2].y)/2+" m",(t[1].x+t[3].x)/2+" "+(t[1].y+t[3].y)/2+" l","S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class H extends S{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STAMP}}class q extends S{constructor(e){super(e);const t=new h.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=r.AnnotationType.FILEATTACHMENT,this.data.file=t.serializable}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultAppearance=function(e){let{fontSize:t,fontName:n,fontColor:a}=e;return`/${(0,r.escapePDFName)(n)} ${t} Tf ${u(a,!0)}`},t.getPdfColor=u,t.parseDefaultAppearance=function(e){return new c(e).parse()};var r=n(6),a=n(2),i=n(14),o=n(15),s=n(5),l=n(10);class c extends o.EvaluatorPreprocessor{constructor(e){super(new l.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);){if(0!==this.savedStatesDepth)continue;const{fn:n,args:r}=e;switch(0|n){case a.OPS.setFont:const[e,n]=r;e instanceof s.Name&&(t.fontName=e.name),"number"===typeof n&&n>0&&(t.fontSize=n);break;case a.OPS.setFillRGBColor:i.ColorSpace.singletons.rgb.getRgbItem(r,0,t.fontColor,0);break;case a.OPS.setFillGray:i.ColorSpace.singletons.gray.getRgbItem(r,0,t.fontColor,0);break;case a.OPS.setFillColorSpace:i.ColorSpace.singletons.cmyk.getRgbItem(r,0,t.fontColor,0)}}}catch(n){(0,a.warn)(`parseDefaultAppearance - ignoring errors: "${n}".`)}return t}}function u(e,t){if(e[0]===e[1]&&e[1]===e[2]){const n=e[0]/255;return`${(0,r.numberToString)(n)} ${t?"g":"G"}`}return Array.from(e).map((e=>(0,r.numberToString)(e/255))).join(" ")+" "+(t?"rg":"RG")}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=n(2),a=n(5),i=n(7),o=n(6);class s{constructor(e,t){this.constructor===s&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}getRgbItem(e,t,n,a){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,n,a,i,o,s){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return s.isDefaultDecode(e,this.numComps)}fillRgb(e,t,n,r,a,i,o,s,l){const c=t*n;let u=null;const d=1<d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=o<=8?new Uint8Array(d):new Uint16Array(d);for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof a.Name)switch(e.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 c(null);default:if(n instanceof a.Dict){const r=n.get("ColorSpace");if(r instanceof a.Dict){const o=r.get(e.name);if(o){if(o instanceof a.Name)return this._parse(o,t,n,i);e=o;break}}}throw new r.FormatError(`Unrecognized ColorSpace: ${e.name}`)}if(Array.isArray(e)){const a=t.fetchIfRef(e[0]).name;let o,s,d,h,f,y;switch(a){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 o=t.fetchIfRef(e[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint"),y=o.get("Gamma"),new p(h,f,y);case"CalRGB":o=t.fetchIfRef(e[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint"),y=o.getArray("Gamma");const b=o.getArray("Matrix");return new m(h,f,y,b);case"ICCBased":const v=t.fetchIfRef(e[1]).dict;s=v.get("N");const w=v.get("Alternate");if(w){const e=this._parse(w,t,n,i);if(e.numComps===s)return e;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===s)return this.singletons.gray;if(3===s)return this.singletons.rgb;if(4===s)return this.singletons.cmyk;break;case"Pattern":return d=e[1]||null,d&&(d=this._parse(d,t,n,i)),new c(d);case"I":case"Indexed":d=this._parse(e[1],t,n,i);const x=t.fetchIfRef(e[2])+1,S=t.fetchIfRef(e[3]);return new u(d,x,S);case"Separation":case"DeviceN":const k=t.fetchIfRef(e[1]);s=Array.isArray(k)?k.length:1,d=this._parse(e[2],t,n,i);const A=i.create(e[3]);return new l(s,d,A);case"Lab":o=t.fetchIfRef(e[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint");const C=o.getArray("Range");return new g(h,f,C);default:throw new r.FormatError(`Unimplemented ColorSpace object: ${a}`)}}throw new r.FormatError(`Unrecognized ColorSpace object: ${e}`)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(let n=0,r=e.length;n=.99554525?1:h(0,1,1.055*e**(1/2.4)-.055)}function h(e,t,n){return Math.max(e,Math.min(t,n))}function f(e){return e<0?-f(-e):e>8?((e+16)/116)**3:e*c}function p(r,s,c,p,m,g){const y=h(0,1,s[c]*g),b=h(0,1,s[c+1]*g),v=h(0,1,s[c+2]*g),w=1===y?1:y**r.GR,x=1===b?1:b**r.GG,S=1===v?1:v**r.GB,k=r.MXA*w+r.MXB*x+r.MXC*S,A=r.MYA*w+r.MYB*x+r.MYC*S,C=r.MZA*w+r.MZB*x+r.MZC*S,O=o;O[0]=k,O[1]=A,O[2]=C;const _=l;!function(n,r,a){if(1===n[0]&&1===n[2])return a[0]=r[0],a[1]=r[1],void(a[2]=r[2]);const o=a;u(e,r,o);const s=i;!function(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}(n,o,s),u(t,s,a)}(r.whitePoint,O,_);const j=o;!function(e,t,n){if(0===e[0]&&0===e[1]&&0===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);const r=f(0),a=(1-r)/(1-f(e[0])),i=1-a,o=(1-r)/(1-f(e[1])),s=1-o,l=(1-r)/(1-f(e[2])),c=1-l;n[0]=t[0]*a+i,n[1]=t[1]*o+s,n[2]=t[2]*l+c}(r.blackPoint,_,j);const P=l;!function(n,r,a){const o=a;u(e,r,o);const s=i;!function(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}(n,o,s),u(t,s,a)}(a,j,P);const T=o;u(n,P,T),p[m]=255*d(T[0]),p[m+1]=255*d(T[1]),p[m+2]=255*d(T[2])}return class extends s{constructor(e,t,n,a){if(super("CalRGB",3),!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3),n=n||new Float32Array([1,1,1]),a=a||new Float32Array([1,0,0,0,1,0,0,0,1]);const i=e[0],o=e[1],s=e[2];this.whitePoint=e;const l=t[0],c=t[1],u=t[2];if(this.blackPoint=t,this.GR=n[0],this.GG=n[1],this.GB=n[2],this.MXA=a[0],this.MYA=a[1],this.MZA=a[2],this.MXB=a[3],this.MYB=a[4],this.MZB=a[5],this.MXC=a[6],this.MYC=a[7],this.MZC=a[8],i<0||s<0||1!==o)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(l<0||c<0||u<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${u}], 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(e,t,n,r){p(this,e,t,n,r,1)}getRgbBuffer(e,t,n,r,a,i,o){const s=1/((1<=6/29?e**3:108/841*(e-4/29),t}function t(e,t,n,r){return n+e*(r-n)/t}function n(n,r,a,i,o,s){let l=r[a],c=r[a+1],u=r[a+2];!1!==i&&(l=t(l,i,0,100),c=t(c,i,n.amin,n.amax),u=t(u,i,n.bmin,n.bmax)),c>n.amax?c=n.amax:cn.bmax?u=n.bmax:uthis.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(e,t,r,a){n(this,e,t,!1,r,a)}getRgbBuffer(e,t,r,a,i,o,s){const l=(1<{Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var r=n(2),a=n(16),i=n(5),o=n(34),s=n(38),l=n(37),c=n(41),u=n(40),d=n(50),h=n(51),f=n(42),p=n(57),m=n(17),g=n(59),y=n(10),b=n(7),v=n(60),w=n(14),x=n(19),S=n(39),k=n(6),A=n(45),C=n(61),O=n(62),_=n(63);const j=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),P=1,T=2,E=10,M=Promise.resolve();function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(let t=0,n=e.length;t0&&e.args[0].count++}class D{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.checked0&&void 0!==arguments[0]?arguments[0]:null;const t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof i.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;const n=new i.RefSet(t);e.objId&&n.put(e.objId);const a=[e],o=this.xref;for(;a.length;){const e=a.shift(),t=e.get("ExtGState");if(t instanceof i.Dict)for(let a of t.getRawValues()){if(a instanceof i.Ref){if(n.has(a))continue;try{a=o.fetch(a)}catch(s){n.put(a),(0,r.info)(`hasBlendModes - ignoring ExtGState: "${s}".`);continue}}if(!(a instanceof i.Dict))continue;a.objId&&n.put(a.objId);const e=a.get("BM");if(e instanceof i.Name){if("Normal"!==e.name)return!0}else if(void 0!==e&&Array.isArray(e))for(const t of e)if(t instanceof i.Name&&"Normal"!==t.name)return!0}const l=e.get("XObject");if(l instanceof i.Dict)for(let c of l.getRawValues()){if(c instanceof i.Ref){if(n.has(c))continue;try{c=o.fetch(c)}catch(s){n.put(c),(0,r.info)(`hasBlendModes - ignoring XObject: "${s}".`);continue}}if(!(c instanceof b.BaseStream))continue;c.dict.objId&&n.put(c.dict.objId);const e=c.dict.get("Resources");e instanceof i.Dict&&(e.objId&&n.has(e.objId)||(a.push(e),e.objId&&n.put(e.objId)))}}for(const r of n)t.put(r);return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e);if(t)return t;let n;if(null!==this.options.cMapUrl){const t=`${this.options.cMapUrl}${e}.bcmap`,a=await fetch(t);if(!a.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${t}" with "${a.statusText}".`);n={cMapData:new Uint8Array(await a.arrayBuffer()),compressionType:r.CMapCompressionType.BINARY}}else n=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e});return n.compressionType!==r.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,n),n}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e);if(t)return new y.Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;const n=(0,c.getFontNameToFileMap)()[e];let a;if(null!==this.options.standardFontDataUrl){const e=`${this.options.standardFontDataUrl}${n}`,t=await fetch(e);t.ok?a=await t.arrayBuffer():(0,r.warn)(`fetchStandardFontData: failed to fetch file "${e}" with "${t.statusText}".`)}else try{a=await this.handler.sendWithPromise("FetchStandardFontData",{filename:n})}catch(i){(0,r.warn)(`fetchStandardFontData: failed to fetch file "${n}" with "${i}".`)}return a?(this.standardFontDataCache.set(e,a),new y.Stream(a)):null}async buildFormXObject(e,t,n,a,o,s,l){const c=t.dict,u=c.getArray("Matrix");let d,h,f=c.getArray("BBox");f=Array.isArray(f)&&4===f.length?r.Util.normalizeRect(f):null,c.has("OC")&&(d=await this.parseMarkedContentProps(c.get("OC"),e)),void 0!==d&&a.addOp(r.OPS.beginMarkedContentProps,["OC",d]);const p=c.get("Group");if(p){h={matrix:u,bbox:f,smask:n,isolated:!1,knockout:!1};const t=p.get("S");let o=null;if((0,i.isName)(t,"Transparency")&&(h.isolated=p.get("I")||!1,h.knockout=p.get("K")||!1,p.has("CS"))){const t=p.getRaw("CS"),n=w.ColorSpace.getCached(t,this.xref,l);o=n||await this.parseColorSpace({cs:t,resources:e,localColorSpaceCache:l})}n&&n.backdrop&&(o=o||w.ColorSpace.singletons.rgb,n.backdrop=o.getRgb(n.backdrop,0)),a.addOp(r.OPS.beginGroup,[h])}const m=p?[u,null]:[u,f];return a.addOp(r.OPS.paintFormXObjectBegin,m),this.getOperatorList({stream:t,task:o,resources:c.get("Resources")||e,operatorList:a,initialState:s}).then((function(){a.addOp(r.OPS.paintFormXObjectEnd,[]),p&&a.addOp(r.OPS.endGroup,[h]),void 0!==d&&a.addOp(r.OPS.endMarkedContent,[])}))}_sendImgData(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||n?this.handler.send("commonobj",[e,"Image",t],r):this.handler.send("obj",[e,this.pageIndex,"Image",t],r)}async buildPaintImageXObject(e){let{resources:t,image:n,isInline:a=!1,operatorList:i,cacheKey:o,localImageCache:s,localColorSpaceCache:l}=e;const c=n.dict,u=c.objId,d=c.get("W","Width"),h=c.get("H","Height");if(!d||"number"!==typeof d||!h||"number"!==typeof h)return void(0,r.warn)("Image dimensions are missing, or not numbers.");const f=this.options.maxImageSize;if(-1!==f&&d*h>f){const e="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors)return void(0,r.warn)(e);throw new Error(e)}let p,m,g;if(c.has("OC")&&(p=await this.parseMarkedContentProps(c.get("OC"),t)),c.get("IM","ImageMask")){const e=c.get("I","Interpolate"),t=d+7>>3,a=n.getBytes(t*h),l=c.getArray("D","Decode");if(this.parsingType3Font)return m=_.PDFImage.createRawMask({imgArray:a,width:d,height:h,imageIsFromDecodeStream:n instanceof x.DecodeStream,inverseDecode:!!l&&l[0]>0,interpolate:e}),m.cached=!!o,g=[m],i.addImageOps(r.OPS.paintImageMaskXObject,g,p),void(o&&s.set(o,u,{fn:r.OPS.paintImageMaskXObject,args:g,optionalContent:p}));if(m=_.PDFImage.createMask({imgArray:a,width:d,height:h,imageIsFromDecodeStream:n instanceof x.DecodeStream,inverseDecode:!!l&&l[0]>0,interpolate:e}),m.isSingleOpaquePixel)return i.addImageOps(r.OPS.paintSolidColorImageMask,[],p),void(o&&s.set(o,u,{fn:r.OPS.paintSolidColorImageMask,args:[],optionalContent:p}));const f=`mask_${this.idFactory.createObjId()}`;return i.addDependency(f),this._sendImgData(f,m),g=[{data:f,width:m.width,height:m.height,interpolate:m.interpolate,count:1}],i.addImageOps(r.OPS.paintImageMaskXObject,g,p),void(o&&s.set(o,u,{fn:r.OPS.paintImageMaskXObject,args:g,optionalContent:p}))}const y=c.get("SM","SMask")||!1,b=c.get("Mask")||!1;if(a&&!y&&!b&&d+h<200){const e=new _.PDFImage({xref:this.xref,res:t,image:n,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l});return m=e.createImageData(!0),void i.addImageOps(r.OPS.paintInlineImageXObject,[m],p)}let v=`img_${this.idFactory.createObjId()}`,w=!1;this.parsingType3Font?v=`${this.idFactory.getDocId()}_type3_${v}`:u&&(w=this.globalImageCache.shouldCache(u,this.pageIndex),w&&(v=`${this.idFactory.getDocId()}_${v}`)),i.addDependency(v),g=[v,d,h],_.PDFImage.buildImage({xref:this.xref,res:t,image:n,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).then((e=>(m=e.createImageData(!1),o&&u&&w&&this.globalImageCache.addByteSize(u,m.data.length),this._sendImgData(v,m,w)))).catch((e=>((0,r.warn)(`Unable to decode image "${v}": "${e}".`),this._sendImgData(v,null,w)))),i.addImageOps(r.OPS.paintImageXObject,g,p),o&&(s.set(o,u,{fn:r.OPS.paintImageXObject,args:g,optionalContent:p}),u&&((0,r.assert)(!a,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(u,this.pageIndex),w&&this.globalImageCache.setData(u,{objId:v,fn:r.OPS.paintImageXObject,args:g,optionalContent:p,byteSize:0})))}handleSMask(e,t,n,r,a,i){const o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR");if((0,p.isPDFFunction)(l)){const e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),n=new Float32Array(1);for(let r=0;r<256;r++)n[0]=r/255,e(n,0,n,0),t[r]=255*n[0]|0;s.transferMap=t}return this.buildFormXObject(t,o,s,n,r,a.state.clone(),i)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,p.isPDFFunction)(e))return null;t=[e]}const n=[];let r=0,a=0;for(const o of t){const e=this.xref.fetchIfRef(o);if(r++,(0,i.isName)(e,"Identity")){n.push(null);continue}if(!(0,p.isPDFFunction)(e))return null;const t=this._pdfFunctionFactory.create(e),s=new Uint8Array(256),l=new Float32Array(1);for(let n=0;n<256;n++)l[0]=n/255,t(l,0,l,0),s[n]=255*l[0]|0;n.push(s),a++}return 1!==r&&4!==r||0===a?null:n}handleTilingType(e,t,n,a,o,s,l,c){const u=new O.OperatorList,h=i.Dict.merge({xref:this.xref,dictArray:[o.get("Resources"),n]});return this.getOperatorList({stream:a,task:l,resources:h,operatorList:u}).then((function(){const n=u.getIR(),r=(0,d.getTilingPatternIR)(n,o,t);s.addDependencies(u.dependencies),s.addOp(e,r),o.objId&&c.set(null,o.objId,{operatorListIR:n,dict:o})})).catch((e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,r.warn)(`handleTilingType - ignoring pattern: "${e}".`);throw e}}))}handleSetFont(e,t,n,a,s,l){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;const d=t&&t[0]instanceof i.Name?t[0].name:null;return this.loadFont(d,n,e,c,u).then((t=>t.font.isType3Font?t.loadType3Data(this,e,s).then((function(){return a.addDependencies(t.type3Dependencies),t})).catch((e=>(this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontLoadType3}),new R({loadedName:"g_font_error",font:new o.ErrorFont(`Type3 font load error: ${e}`),dict:t.font,evaluatorOptions:this.options})))):t)).then((e=>(l.font=e.font,e.send(this.handler),e.loadedName)))}handleText(e,t){const n=t.font,a=n.charsToGlyphs(e);return n.data&&(t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===t.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&F.buildFontPaths(n,a,this.handler,this.options),a}ensureStateFont(e){if(e.font)return;const t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontState}),void(0,r.warn)(`ensureStateFont: "${t}".`);throw t}async setGState(e){let{resources:t,gState:n,operatorList:a,cacheKey:o,task:s,stateManager:l,localGStateCache:c,localColorSpaceCache:u}=e;const d=n.objId;let h=!0;const f=[],p=n.getKeys();let m=Promise.resolve();for(let g=0,y=p.length;gthis.handleSetFont(t,null,o[0],a,s,l.state).then((function(t){a.addDependency(t),f.push([e,[t,o[1]]])}))));break;case"BM":f.push([e,N(o)]);break;case"SMask":if((0,i.isName)(o,"None")){f.push([e,!1]);break}o instanceof i.Dict?(h=!1,m=m.then((()=>this.handleSMask(o,t,a,s,l,u))),f.push([e,!0])):(0,r.warn)("Unsupported SMask type");break;case"TR":const n=this.handleTransferFunction(o);f.push([e,n]);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 "+e);break;default:(0,r.info)("Unknown graphic state operator "+e)}}return m.then((function(){f.length>0&&a.addOp(r.OPS.setGState,[f]),h&&c.set(o,d,f)}))}loadFont(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const c=async()=>new R({loadedName:"g_font_error",font:new o.ErrorFont(`Font "${e}" is not available.`),dict:t,evaluatorOptions:this.options}),u=this.xref;let d;if(t)t instanceof i.Ref&&(d=t);else{const t=n.get("Font");t&&(d=t.getRaw(e))}if(!d){const n=`Font "${e||t&&t.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)(`${n}.`),c();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontMissing}),(0,r.warn)(`${n} -- attempting to fallback to a default font.`),d=a||F.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(d))return c();if(this.fontCache.has(d))return this.fontCache.get(d);if(!((t=u.fetchIfRef(d))instanceof i.Dict))return c();if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const h=(0,r.createPromiseCapability)();let f;try{f=this.preEvaluateFont(t),f.cssFontInfo=l}catch(b){return(0,r.warn)(`loadFont - preEvaluateFont failed: "${b}".`),c()}const{descriptor:p,hash:m}=f,g=d instanceof i.Ref;let y;if(g&&(y=`f${d.toString()}`),m&&p instanceof i.Dict){p.fontAliases||(p.fontAliases=Object.create(null));const e=p.fontAliases;if(e[m]){const t=e[m].aliasRef;if(g&&t&&this.fontCache.has(t))return this.fontCache.putAlias(d,t),this.fontCache.get(d)}else e[m]={fontID:this.idFactory.createFontId()};g&&(e[m].aliasRef=d),y=e[m].fontID}return g?this.fontCache.put(d,h.promise):(y||(y=this.idFactory.createFontId()),t.cacheKey=`cacheKey_${y}`,this.fontCache.put(t.cacheKey,h.promise)),(0,r.assert)(y&&y.startsWith("f"),'The "fontID" must be (correctly) defined.'),t.loadedName=`${this.idFactory.getDocId()}_${y}`,this.translateFont(f).then((e=>{void 0!==e.fontType&&u.stats.addFontType(e.fontType),h.resolve(new R({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))})).catch((e=>{this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,r.warn)(`loadFont - translateFont failed: "${e}".`);try{const e=p&&p.get("FontFile3"),t=e&&e.get("Subtype"),n=(0,s.getFontType)(f.type,t&&t.name);void 0!==n&&u.stats.addFontType(n)}catch(n){}h.resolve(new R({loadedName:t.loadedName,font:new o.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))})),h.promise}buildPath(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.length-1;let o;if(n||(n=[]),i<0||e.fnArray[i]!==r.OPS.constructPath)a&&((0,r.warn)(`Encountered path operator "${t}" inside of a text object.`),e.addOp(r.OPS.save,null)),o=[1/0,-1/0,1/0,-1/0],e.addOp(r.OPS.constructPath,[[t],n,o]),a&&e.addOp(r.OPS.restore,null);else{const r=e.argsArray[i];r[0].push(t),Array.prototype.push.apply(r[1],n),o=r[2]}switch(t){case r.OPS.rectangle:o[0]=Math.min(o[0],n[0],n[0]+n[2]),o[1]=Math.max(o[1],n[0],n[0]+n[2]),o[2]=Math.min(o[2],n[1],n[1]+n[3]),o[3]=Math.max(o[3],n[1],n[1]+n[3]);break;case r.OPS.moveTo:case r.OPS.lineTo:o[0]=Math.min(o[0],n[0]),o[1]=Math.max(o[1],n[0]),o[2]=Math.min(o[2],n[1]),o[3]=Math.max(o[3],n[1])}}parseColorSpace(e){let{cs:t,resources:n,localColorSpaceCache:a}=e;return w.ColorSpace.parseAsync({cs:t,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch((e=>{if(e 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: "${e}".`),null;throw e}))}parseShading(e){let{shading:t,resources:n,localColorSpaceCache:r,localShadingPatternCache:a}=e,i=a.get(t);if(!i){const e=d.Pattern.parseShading(t,this.xref,n,this.handler,this._pdfFunctionFactory,r).getIR();i=`pattern_${this.idFactory.createObjId()}`,a.set(t,i),this.handler.send("obj",[i,this.pageIndex,"Pattern",e])}return i}handleColorN(e,t,n,a,o,s,l,c,u,h){const f=n.pop();if(f instanceof i.Name){const m=o.getRaw(f.name),g=m instanceof i.Ref&&u.getByRef(m);if(g)try{const r=a.base?a.base.getRgb(n,0):null,i=(0,d.getTilingPatternIR)(g.operatorListIR,g.dict,r);return void e.addOp(t,i)}catch(p){}const y=this.xref.fetchIfRef(m);if(y){const i=y instanceof b.BaseStream?y.dict:y,o=i.get("PatternType");if(o===P){const r=a.base?a.base.getRgb(n,0):null;return this.handleTilingType(t,r,s,y,i,e,l,u)}if(o===T){const n=i.get("Shading"),r=i.getArray("Matrix"),a=this.parseShading({shading:n,resources:s,localColorSpaceCache:c,localShadingPatternCache:h});return void e.addOp(t,["Shading",a,r])}throw new r.FormatError(`Unknown PatternType: ${o}`)}}throw new r.FormatError(`Unknown PatternName: ${f}`)}_parseVisibilityExpression(e,t,n){if(++t>10)return void(0,r.warn)("Visibility expression is too deeply nested");const a=e.length,o=this.xref.fetchIfRef(e[0]);if(!(a<2)&&o instanceof i.Name){switch(o.name){case"And":case"Or":case"Not":n.push(o.name);break;default:return void(0,r.warn)(`Invalid operator ${o.name} in visibility expression`)}for(let r=1;r0)return{type:"OCMD",expression:t}}const t=n.get("OCGs");if(Array.isArray(t)||t instanceof i.Dict){const e=[];if(Array.isArray(t))for(const n of t)e.push(n.toString());else e.push(t.objId);return{type:a,ids:e,policy:n.get("P")instanceof i.Name?n.get("P").name:null,expression:null}}if(t instanceof i.Ref)return{type:a,id:t.toString()}}return null}getOperatorList(e){let{stream:t,task:n,resources:a,operatorList:o,initialState:s=null,fallbackFontDict:l=null}=e;if(a=a||i.Dict.empty,s=s||new B,!o)throw new Error('getOperatorList: missing "operatorList" parameter');const c=this,u=this.xref;let d=!1;const h=new g.LocalImageCache,f=new g.LocalColorSpaceCache,p=new g.LocalGStateCache,m=new g.LocalTilingPatternCache,y=new Map,v=a.get("XObject")||i.Dict.empty,x=a.get("Pattern")||i.Dict.empty,S=new $(s),k=new U(t,u,S),A=new D;function C(e){for(let t=0,n=k.savedStatesDepth;t0&&o.addOp(r.OPS.setGState,[t]),e=null;continue}}return void g(new Promise((function(e,t){if(!N)throw new r.FormatError("GState must be referred to by name.");const s=a.get("ExtGState");if(!(s instanceof i.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const l=s.get(E);if(!(l instanceof i.Dict))throw new r.FormatError("GState should be a dictionary.");c.setGState({resources:a,gState:l,operatorList:o,cacheKey:E,task:n,stateManager:S,localGStateCache:p,localColorSpaceCache:f}).then(e,t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorExtGState}),void(0,r.warn)(`getOperatorList - ignoring ExtGState: "${e}".`);throw e}})));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:c.buildPath(o,t,e,d);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginCompat:case r.OPS.endCompat:continue;case r.OPS.beginMarkedContentProps:if(!(e[0]instanceof i.Name)){(0,r.warn)(`Expected name for beginMarkedContentProps arg0=${e[0]}`);continue}if("OC"===e[0].name)return void g(c.parseMarkedContentProps(e[1],a).then((e=>{o.addOp(r.OPS.beginMarkedContentProps,["OC",e])})).catch((e=>{if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorMarkedContent}),void(0,r.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`);throw e}})));e=[e[0].name,e[1]instanceof i.Dict?e[1].get("MCID"):null];break;case r.OPS.beginMarkedContent:case r.OPS.endMarkedContent:default:if(null!==e){for(j=0,P=e.length;j{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),(0,r.warn)(`getOperatorList - ignoring errors during "${n.name}" task: "${e}".`),void C();throw e}}))}getTextContent(e){let{stream:t,task:n,resources:a,stateManager:o=null,combineTextItems:s=!1,includeMarkedContent:l=!1,sink:c,seenStyles:d=new Set,viewBox:h}=e;a=a||i.Dict.empty,o=o||new $(new L);const f=(0,u.getNormalizedUnicodes)(),p={items:[],styles:Object.create(null)},m={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},y=[" "," "];let w=0;function x(e){const t=(w+1)%2,n=" "!==y[w]&&" "===y[t];return y[w]=e,w=t,n}function S(){y[0]=y[1]=" ",w=0}const k=.1,A=.03,C=-.2,O=.1,_=.6,j=this,P=this.xref,T=[];let N=null;const I=new g.LocalImageCache,F=new g.LocalGStateCache,R=new U(t,P,o);let B;function z(){const e=B.font,t=[B.fontSize*B.textHScale,0,0,B.fontSize,0,B.textRise];if(e.isType3Font&&(B.fontSize<=1||e.isCharBBox)&&!(0,r.isArrayEqual)(B.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*B.fontMatrix[3])}return r.Util.transform(B.ctm,r.Util.transform(B.textMatrix,t))}function H(){if(m.initialized)return m;const e=B.font,t=e.loadedName;d.has(t)||(d.add(t),p.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),m.fontName=t;const n=m.transform=z();e.vertical?(m.width=m.totalWidth=Math.hypot(n[0],n[1]),m.height=m.totalHeight=0,m.vertical=!0):(m.width=m.totalWidth=0,m.height=m.totalHeight=Math.hypot(n[2],n[3]),m.vertical=!1);const r=Math.hypot(B.textLineMatrix[0],B.textLineMatrix[1]),a=Math.hypot(B.ctm[0],B.ctm[1]);return m.textAdvanceScale=a*r,m.trackingSpaceMin=B.fontSize*k,m.notASpace=B.fontSize*A,m.negativeSpaceMax=B.fontSize*C,m.spaceInFlowMin=B.fontSize*O,m.spaceInFlowMax=B.fontSize*_,m.hasEOL=!1,m.initialized=!0,m}function q(){if(!m.initialized)return;const e=Math.hypot(B.textLineMatrix[0],B.textLineMatrix[1]),t=Math.hypot(B.ctm[0],B.ctm[1])*e;t!==m.textAdvanceScale&&(m.vertical?(m.totalHeight+=m.height*m.textAdvanceScale,m.height=0):(m.totalWidth+=m.width*m.textAdvanceScale,m.width=0),m.textAdvanceScale=t)}function W(e,t){return j.loadFont(e,t,a).then((function(e){return e.font.isType3Font?e.loadType3Data(j,a,n).catch((function(){})).then((function(){return e})):e})).then((function(e){B.font=e.font,B.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX}))}function G(e,t,n){const r=Math.hypot(n[0],n[1]);return[(n[0]*e+n[1]*t)/r,(n[2]*e+n[3]*t)/r]}function V(){const e=z();let t=e[4],n=e[5];const r=t-h[0],a=n-h[1];if(r<0||r>h[2]||a<0||a>h[3])return!1;if(!s||!B.font||!m.prevTransform)return!0;let i=m.prevTransform[4],o=m.prevTransform[5];if(i===t&&o===n)return!0;let l=-1;switch(e[0]&&0===e[1]&&0===e[2]?l=e[0]>0?0:180:e[1]&&0===e[0]&&0===e[3]&&(l=e[1]>0?90:270),l){case 0:break;case 90:[t,n]=[n,t],[i,o]=[o,i];break;case 180:[t,n,i,o]=[-t,-n,-i,-o];break;case 270:[t,n]=[-n,-t],[i,o]=[-o,-i];break;default:[t,n]=G(t,n,e),[i,o]=G(i,o,m.prevTransform)}if(B.font.vertical){const e=(o-n)/m.textAdvanceScale,r=t-i,a=Math.sign(m.height);return e.5*m.width?(K(),!0):(S(),Z(),!0):Math.abs(r)>m.width?(K(),!0):(e<=a*m.notASpace&&S(),e<=a*m.trackingSpaceMin?m.height+=e:Y(e,m.prevTransform,a)||(0===m.str.length?(S(),p.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(e),transform:m.prevTransform,fontName:m.fontName,hasEOL:!1})):m.height+=e),!0)}const c=(t-i)/m.textAdvanceScale,u=n-o,d=Math.sign(m.width);return c.5*m.height?(K(),!0):(S(),Z(),!0):Math.abs(u)>m.height?(K(),!0):(c<=d*m.notASpace&&S(),c<=d*m.trackingSpaceMin?m.width+=c:Y(c,m.prevTransform,d)||(0===m.str.length?(S(),p.items.push({str:" ",dir:"ltr",width:Math.abs(c),height:0,transform:m.prevTransform,fontName:m.fontName,hasEOL:!1})):m.width+=c),!0)}function X(e){let{chars:t,extraSpacing:n}=e;const r=B.font;if(!t){const e=B.charSpacing+n;return void(e&&(r.vertical?B.translateTextMatrix(0,-e):B.translateTextMatrix(e*B.textHScale,0)))}const a=r.charsToGlyphs(t),i=B.fontMatrix[0]*B.fontSize;for(let o=0,s=a.length;o0&&void 0!==arguments[0]&&arguments[0];const t=p.items.length;0!==t&&(e&&t0){const e=T.join("");T.length=0,X({chars:e,extraSpacing:0})}break;case r.OPS.showText:if(!o.state.font){j.ensureStateFont(o.state);continue}X({chars:y[0],extraSpacing:0});break;case r.OPS.nextLineShowText:if(!o.state.font){j.ensureStateFont(o.state);continue}B.carriageReturn(),X({chars:y[0],extraSpacing:0});break;case r.OPS.nextLineSetSpacingShowText:if(!o.state.font){j.ensureStateFont(o.state);continue}B.wordSpacing=y[0],B.charSpacing=y[1],B.carriageReturn(),X({chars:y[2],extraSpacing:0});break;case r.OPS.paintXObject:Z(),N||(N=a.get("XObject")||i.Dict.empty);var x=y[0]instanceof i.Name,S=y[0].name;if(x&&I.getByName(S))break;return void f(new Promise((function(e,t){if(!x)throw new r.FormatError("XObject must be referred to by name.");let u=N.getRaw(S);if(u instanceof i.Ref){if(I.getByRef(u))return void e();if(j.globalImageCache.getData(u,j.pageIndex))return void e();u=P.fetch(u)}if(!(u instanceof b.BaseStream))throw new r.FormatError("XObject should be a stream");const f=u.dict.get("Subtype");if(!(f instanceof i.Name))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==f.name)return I.set(S,u.dict.objId,!0),void e();const p=o.state.clone(),m=new $(p),g=u.dict.getArray("Matrix");Array.isArray(g)&&6===g.length&&m.transform(g),J();const y={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,c.enqueue(e,t)},get desiredSize(){return c.desiredSize},get ready(){return c.ready}};j.getTextContent({stream:u,task:n,resources:u.dict.get("Resources")||a,stateManager:m,combineTextItems:s,includeMarkedContent:l,sink:y,seenStyles:d,viewBox:h}).then((function(){y.enqueueInvoked||I.set(S,u.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!j.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring XObject: "${e}".`)}})));case r.OPS.setGState:if(x=y[0]instanceof i.Name,S=y[0].name,x&&F.getByName(S))break;return void f(new Promise((function(e,t){if(!x)throw new r.FormatError("GState must be referred to by name.");const n=a.get("ExtGState");if(!(n instanceof i.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const o=n.get(S);if(!(o instanceof i.Dict))throw new r.FormatError("GState should be a dictionary.");const s=o.get("Font");if(!s)return F.set(S,o.objId,!0),void e();Z(),B.fontName=null,B.fontSize=s[1],W(null,s[0]).then(e,t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!j.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}})));case r.OPS.beginMarkedContent:Z(),l&&p.items.push({type:"beginMarkedContent",tag:y[0]instanceof i.Name?y[0].name:null});break;case r.OPS.beginMarkedContentProps:if(Z(),l){let e=null;y[1]instanceof i.Dict&&(e=y[1].get("MCID")),p.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?`${j.idFactory.getPageObjId()}_mcid${e}`:null,tag:y[0]instanceof i.Name?y[0].name:null})}break;case r.OPS.endMarkedContent:Z(),l&&p.items.push({type:"endMarkedContent"})}if(p.items.length>=c.desiredSize){g=!0;break}}g?f(M):(Z(),J(),t())})).catch((e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return(0,r.warn)(`getTextContent - ignoring errors during "${n.name}" task: "${e}".`),Z(),void J();throw e}}))}extractDataStructures(e,t,n){const a=this.xref;let o;const c=this.readToUnicode(n.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(n.composite){const t=e.get("CIDSystemInfo");t instanceof i.Dict&&(n.cidSystemInfo={registry:(0,r.stringToPDFString)(t.get("Registry")),ordering:(0,r.stringToPDFString)(t.get("Ordering")),supplement:t.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof b.BaseStream&&(o=t.getBytes())}catch(f){if(!this.options.ignoreErrors)throw f;(0,r.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${f}".`)}}const u=[];let d,h=null;if(e.has("Encoding")){if(d=e.get("Encoding"),d instanceof i.Dict){if(h=d.get("BaseEncoding"),h=h instanceof i.Name?h.name:null,d.has("Differences")){const e=d.get("Differences");let t=0;for(let n=0,o=e.length;n0,n.dict=e,c.then((e=>(n.toUnicode=e,this.buildToUnicode(n)))).then((e=>(n.toUnicode=e,o&&(n.cidToGidMap=this.readCidToGidMap(o,e)),n)))}_simpleFontToUnicode(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(!e.composite,"Must be a simple font.");const n=[],a=e.defaultEncoding.slice(),i=e.baseEncodingName,o=e.differences;for(const r in o){const e=o[r];".notdef"!==e&&(a[r]=e)}const s=(0,S.getGlyphsUnicode)();for(const r in a){let o=a[r];if(""!==o)if(void 0!==s[o])n[r]=String.fromCharCode(s[o]);else{let a=0;switch(o[0]){case"G":3===o.length&&(a=parseInt(o.substring(1),16));break;case"g":5===o.length&&(a=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const n=o.substring(1);if(t){a=parseInt(n,16);break}if(a=+n,Number.isNaN(a)&&Number.isInteger(parseInt(n,16)))return this._simpleFontToUnicode(e,!0)}break;default:const n=(0,u.getUnicodeForGlyph)(o,s);-1!==n&&(a=n)}if(a>0&&a<=1114111&&Number.isInteger(a)){if(i&&a===+r){const e=(0,l.getEncoding)(i);if(e&&(o=e[r])){n[r]=String.fromCharCode(s[o]);continue}}n[r]=String.fromCodePoint(a)}}}return n}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new f.ToUnicodeMap(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof a.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:n}=e.cidSystemInfo,o=i.Name.get(`${t}-${n}-UCS2`),s=await a.CMapFactory.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),l=[];return e.cMap.forEach((function(e,t){if(t>65535)throw new r.FormatError("Max size of CID is 65,535");const n=s.lookup(t);n&&(l[e]=String.fromCharCode((n.charCodeAt(0)<<8)+n.charCodeAt(1)))})),new f.ToUnicodeMap(l)}return new f.IdentityToUnicodeMap(e.firstChar,e.lastChar)}readToUnicode(e){return e?e instanceof i.Name?a.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof a.IdentityCMap?new f.IdentityToUnicodeMap(0,65535):new f.ToUnicodeMap(e.getMap())})):e instanceof b.BaseStream?a.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof a.IdentityCMap)return new f.IdentityToUnicodeMap(0,65535);const t=new Array(e.length);return e.forEach((function(e,n){if("number"===typeof n)return void(t[e]=String.fromCodePoint(n));const r=[];for(let t=0;t{if(e 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: "${e}".`),null;throw e})):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(e,t){const n=[];for(let r=0,a=e.length;r>1;(0!==a||t.has(i))&&(n[i]=a)}return n}extractWidths(e,t,n){const r=this.xref;let a=[],o=0;const l=[];let c,u,d,h,f,p,m,g;if(n.composite){if(o=e.has("DW")?e.get("DW"):1e3,g=e.get("W"),g)for(u=0,d=g.length;u{if(h){const e=[];let t=f;for(let n=0,r=h.length;n(this.extractWidths(n,t,e),new o.Font(C.name,w,e))))}static buildFontPaths(e,t,n,a){function i(t){const i=`${e.loadedName}_path_${t}`;try{if(e.renderer.hasBuiltPath(t))return;n.send("commonobj",[i,"FontPath",e.renderer.getPathJs(t)])}catch(o){if(a.ignoreErrors)return n.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontBuildPath}),void(0,r.warn)(`buildFontPaths - ignoring ${i} glyph: "${o}".`);throw o}}for(const r of t){i(r.fontChar);const e=r.accent;e&&e.fontChar&&i(e.fontChar)}}static get fallbackFontDict(){const e=new i.Dict;return e.set("BaseFont",i.Name.get("PDFJS-FallbackFont")),e.set("Type",i.Name.get("FallbackType")),e.set("Subtype",i.Name.get("FallbackType")),e.set("Encoding",i.Name.get("WinAnsiEncoding")),(0,r.shadow)(this,"fallbackFontDict",e)}}t.PartialEvaluator=F;class R{constructor(e){let{loadedName:t,font:n,dict:r,evaluatorOptions:a}=e;this.loadedName=t,this.font=n,this.dict=r,this._evaluatorOptions=a||j,this.type3Loaded=null,this.type3Dependencies=n.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,F.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(e,t,n){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const a=e.clone({ignoreErrors:!1});a.parsingType3Font=!0;const o=new i.RefSet(e.type3FontRefs);this.dict.objId&&!o.has(this.dict.objId)&&o.put(this.dict.objId),a.type3FontRefs=o;const s=this.font,l=this.type3Dependencies;let c=Promise.resolve();const u=this.dict.get("CharProcs"),d=this.dict.get("Resources")||t,h=Object.create(null),f=r.Util.normalizeRect(s.bbox||[0,0,0,0]),p=f[2]-f[0],m=f[3]-f[1],g=Math.hypot(p,m);for(const i of u.getKeys())c=c.then((()=>{const e=u.get(i),t=new O.OperatorList;return a.getOperatorList({stream:e,task:n,resources:d,operatorList:t}).then((()=>{t.fnArray[0]===r.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,g),h[i]=t.getIR();for(const e of t.dependencies)l.add(e)})).catch((function(e){(0,r.warn)(`Type3 font resource "${i}" is not available.`);const t=new O.OperatorList;h[i]=t.getIR()}))}));return this.type3Loaded=c.then((()=>{s.charProcOperatorList=h,this._bbox&&(s.isCharBBox=!0,s.bbox=this._bbox)})),this.type3Loaded}_removeType3ColorOperators(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;const n=r.Util.normalizeRect(e.argsArray[0].slice(2)),a=n[2]-n[0],i=n[3]-n[1],o=Math.hypot(a,i);0===a||0===i?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(o/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],n[0]),this._bbox[1]=Math.min(this._bbox[1],n[1]),this._bbox[2]=Math.max(this._bbox[2],n[2]),this._bbox[3]=Math.max(this._bbox[3],n[3]));let s=0,l=e.length;for(;s0&&void 0!==arguments[0]?arguments[0]:new B;this.state=e,this.stateStack=[]}save(){const e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){const e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=r.Util.transform(this.state.ctm,e)}}class L{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(e,t,n,r,a,i){const o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=a,o[5]=i}setTextLineMatrix(e,t,n,r,a,i){const o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=a,o[5]=i}translateTextMatrix(e,t){const n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}translateTextLineMatrix(e,t){const n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class B{constructor(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=r.TextRenderingMode.FILL,this.fillColorSpace=w.ColorSpace.singletons.gray,this.strokeColorSpace=w.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class U{static get opMap(){const e=(0,k.getLookupTableFactory)((function(e){e.w={id:r.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:r.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:r.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:r.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:r.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:r.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:r.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:r.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:r.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:r.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:r.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:r.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:r.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:r.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:r.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:r.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:r.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:r.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:r.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:r.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:r.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:r.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:r.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:r.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:r.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:r.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:r.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:r.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:r.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:r.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:r.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:r.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:r.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:r.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:r.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:r.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:r.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:r.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:r.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:r.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:r.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:r.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:r.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:r.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:r.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:r.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:r.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:r.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:r.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:r.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:r.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:r.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:r.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:r.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:r.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:r.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:r.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:r.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:r.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:r.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:r.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:r.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:r.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:r.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:r.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:r.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:r.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:r.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:r.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:r.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:r.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:r.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:r.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));return(0,r.shadow)(this,"opMap",e())}static get MAX_INVALID_PATH_OPS(){return(0,r.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new $;this.parser=new m.Parser({lexer:new m.Lexer(e,U.opMap),xref:t}),this.stateManager=n,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args;for(;;){const n=this.parser.getObj();if(n instanceof i.Cmd){const a=n.cmd,i=U.opMap[a];if(!i){(0,r.warn)(`Unknown command "${a}".`);continue}const o=i.id,s=i.numArgs;let l=null!==t?t.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=o>=r.OPS.moveTo&&o<=r.OPS.endPath,i.variableArgs)l>s&&(0,r.info)(`Command ${a}: expected [0, ${s}] args, but received ${l} args.`);else{if(l!==s){const e=this.nonProcessedArgs;for(;l>s;)e.push(t.shift()),l--;for(;lU.MAX_INVALID_PATH_OPS)throw new r.FormatError(`Invalid ${e}`);(0,r.warn)(`Skipping ${e}`),null!==t&&(t.length=0);continue}}return this.preprocessCommand(o,t),e.fn=o,e.args=t,!0}if(n===i.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new r.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}}t.EvaluatorPreprocessor=U},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var r=n(2),a=n(5),i=n(7),o=n(17),s=n(6),l=n(10);const c=["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"],u=2**24-1;class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>u)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>u)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const r=n.length-1;for(;e<=t;){this._map[e++]=n;const t=n.charCodeAt(r)+1;n=t>255?n.substring(0,r-1)+String.fromCharCode(n.charCodeAt(r-1)+1)+"\0":n.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,n){if(t-e>u)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=n.length;let a=0;for(;e<=t&&a>>0;const o=a[i];for(let e=0,t=o.length;e=t&&r<=a)return n.charcode=r,void(n.length=i+1)}}n.charcode=0,n.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let n=0,r=t.length;n=a&&e<=i)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=d;class h extends d{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(e,t,n){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,n){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,r.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=h;const f=function(){function e(e,t){let n=0;for(let r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function n(e,t,n){let r=0;for(let a=n;a>=0;a--)r+=e[a]+t[a],e[a]=255&r,r>>=8}function a(e,t){let n=1;for(let r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}const i=16;class o{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{const n=this.readByte();if(n<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let n;const a=this.tmpBuf;let i=0;do{const e=this.readByte();if(e<0)throw new r.FormatError("unexpected EOF in bcmap");n=!(128&e),a[i++]=127&e}while(!n);let o=t,s=0,l=0;for(;o>=0;){for(;l<8&&a.length>0;)s|=a[--i]<>=8,l-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const n=1&e[t]?255:0;let r=0;for(let a=0;a<=t;a++)r=(1&r)<<8|e[a],e[a]=r>>1^n}readString(){const e=this.readNumber();let t="";for(let n=0;n=0;){const r=b>>5;if(7===r){switch(31&b){case 0:c.readString();break;case 1:d=c.readString()}continue}const o=!!(16&b),l=15&b;if(l+1>i)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const u=1,v=c.readNumber();switch(r){case 0:c.readHex(h,l),c.readHexNumber(f,l),n(f,h,l),s.addCodespaceRange(l+1,e(h,l),e(f,l));for(let t=1;t>>0}function t(e){if("string"!==typeof e)throw new r.FormatError("Malformed CMap: expected string.")}function n(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function u(n,r){for(;;){let i=r.getObj();if(i===a.EOF)break;if((0,a.isCmd)(i,"endbfchar"))return;t(i);const o=e(i);i=r.getObj(),t(i);const s=i;n.mapOne(o,s)}}function p(n,i){for(;;){let r=i.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endbfrange"))return;t(r);const o=e(r);r=i.getObj(),t(r);const s=e(r);if(r=i.getObj(),Number.isInteger(r)||"string"===typeof r){const e=Number.isInteger(r)?String.fromCharCode(r):r;n.mapBfRange(o,s,e)}else{if(!(0,a.isCmd)(r,"["))break;{r=i.getObj();const e=[];for(;!(0,a.isCmd)(r,"]")&&r!==a.EOF;)e.push(r),r=i.getObj();n.mapBfRangeToArray(o,s,e)}}}throw new r.FormatError("Invalid bf range.")}function m(r,i){for(;;){let o=i.getObj();if(o===a.EOF)break;if((0,a.isCmd)(o,"endcidchar"))return;t(o);const s=e(o);o=i.getObj(),n(o);const l=o;r.mapOne(s,l)}}function g(r,i){for(;;){let o=i.getObj();if(o===a.EOF)break;if((0,a.isCmd)(o,"endcidrange"))return;t(o);const s=e(o);o=i.getObj(),t(o);const l=e(o);o=i.getObj(),n(o);const c=o;r.mapCidRange(s,l,c)}}function y(t,n){for(;;){let r=n.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endcodespacerange"))return;if("string"!==typeof r)break;const i=e(r);if(r=n.getObj(),"string"!==typeof r)break;const o=e(r);t.addCodespaceRange(r.length,i,o)}throw new r.FormatError("Invalid codespace range.")}function b(e,t){const n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function v(e,t){const n=t.getObj();n instanceof a.Name&&(e.name=n.name)}async function w(e,t,n,i){let o,l;e:for(;;)try{const n=t.getObj();if(n===a.EOF)break;if(n instanceof a.Name)"WMode"===n.name?b(e,t):"CMapName"===n.name&&v(e,t),o=n;else if(n instanceof a.Cmd)switch(n.cmd){case"endcmap":break e;case"usecmap":o instanceof a.Name&&(l=o.name);break;case"begincodespacerange":y(e,t);break;case"beginbfchar":u(e,t);break;case"begincidchar":m(e,t);break;case"beginbfrange":p(e,t);break;case"begincidrange":g(e,t)}}catch(c){if(c instanceof s.MissingDataException)throw c;(0,r.warn)("Invalid cMap data: "+c);continue}return!i&&l&&(i=l),i?x(e,n,i):e}async function x(e,t,n){if(e.useCMap=await S(n,t),0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let n=0;nx(i,t,e)));if(a===r.CMapCompressionType.NONE){const e=new o.Lexer(new l.Stream(n));return w(i,e,t,null)}throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.")}return{async create(e){const t=e.encoding,n=e.fetchBuiltInCMap,r=e.useCMap;if(t instanceof a.Name)return S(t.name,n);if(t instanceof i.BaseStream){const e=await w(new d,new o.Lexer(t),n,r);return e.isIdentityCMap?S(e.name,n):e}throw new Error("Encoding required.")}}}();t.CMapFactory=p},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var r=n(2),a=n(5),i=n(6),o=n(18),s=n(20),l=n(21),c=n(23),u=n(24),d=n(27),h=n(29),f=n(31),p=n(10),m=n(32),g=n(33);function y(e){const t=e.length;let n=1,r=0;for(let a=0;a0&&void 0!==arguments[0]?arguments[0]:null;const t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const n=[];for(;!(0,a.isCmd)(this.buf1,"]")&&this.buf1!==a.EOF;)n.push(this.getObj(e));if(this.buf1===a.EOF){if(this.recoveryMode)return n;throw new i.ParserEOFException("End of file inside array.")}return this.shift(),n;case"<<":const o=new a.Dict(this.xref);for(;!(0,a.isCmd)(this.buf1,">>")&&this.buf1!==a.EOF;){if(!(this.buf1 instanceof a.Name)){(0,r.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const t=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;o.set(t,this.getObj(e))}if(this.buf1===a.EOF){if(this.recoveryMode)return o;throw new i.ParserEOFException("End of file inside dictionary.")}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(o,e):o:(this.shift(),o);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){const e=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"===typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const t=this.lexer,n=e.pos;let o,s,l=0;for(;-1!==(o=e.getByte());)if(0===l)l=69===o?1:0;else if(1===l)l=73===o?2:0;else if((0,r.assert)(2===l,"findDefaultInlineStreamEnd - invalid state."),32===o||10===o||13===o){s=e.pos;const n=e.peekBytes(10);for(let e=0,t=n.length;e127)){l=0;break}if(2!==l)continue;if(t.knownCommands){const e=t.peekObj();e instanceof a.Cmd&&!t.knownCommands[e.cmd]&&(l=0)}else(0,r.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===l)break}else l=0;-1===o&&((0,r.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),s&&((0,r.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-s))));let c=4;return e.skip(-c),o=e.peekByte(),e.skip(c),(0,i.isWhiteSpace)(o)||c--,e.pos-c-n}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let n,a,i=!1;for(;-1!==(n=e.getByte());)if(255===n){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!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:a=e.getUint16(),a>2?e.skip(a-2):e.skip(-2)}if(i)break}const o=e.pos-t;return-1===n?((0,r.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte());)if(126===n){const t=e.pos;for(n=e.peekByte();(0,i.isWhiteSpace)(n);)e.skip(),n=e.peekByte();if(62===n){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const a=e.pos-t;return-1===n?((0,r.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte())&&62!==n;);const a=e.pos-t;return-1===n?((0,r.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}inlineStreamSkipEI(e){let t,n=0;for(;-1!==(t=e.getByte());)if(0===n)n=69===t?1:0;else if(1===n)n=73===t?2:0;else if(2===n)break}makeInlineImage(e){const t=this.lexer,n=t.stream,i=new a.Dict(this.xref);let o;for(;!(0,a.isCmd)(this.buf1,"ID")&&this.buf1!==a.EOF;){if(!(this.buf1 instanceof a.Name))throw new r.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;i.set(t,this.getObj(e))}-1!==t.beginInlineImagePos&&(o=n.pos-t.beginInlineImagePos);const s=i.get("F","Filter");let l;if(s instanceof a.Name)l=s.name;else if(Array.isArray(s)){const e=this.xref.fetchIfRef(s[0]);e instanceof a.Name&&(l=e.name)}const c=n.pos;let u;switch(l){case"DCT":case"DCTDecode":u=this.findDCTDecodeInlineStreamEnd(n);break;case"A85":case"ASCII85Decode":u=this.findASCII85DecodeInlineStreamEnd(n);break;case"AHx":case"ASCIIHexDecode":u=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:u=this.findDefaultInlineStreamEnd(n)}let d,h=n.makeSubStream(c,u,i);if(u<1e3&&o<5552){const e=h.getBytes();h.reset();const r=n.pos;n.pos=t.beginInlineImagePos;const i=n.getBytes(o);n.pos=r,d=y(e)+"_"+y(i);const s=this.imageCache[d];if(void 0!==s)return this.buf2=a.Cmd.get("EI"),this.shift(),s.reset(),s}return e&&(h=e.createStream(h,u)),h=this.filter(h,i,u),h.dict=i,void 0!==d&&(h.cacheKey=`inline_${u}_${d}`,this.imageCache[d]=h),this.buf2=a.Cmd.get("EI"),this.shift(),h}_findStreamLength(e,t){const{stream:n}=this.lexer;n.pos=e;const r=t.length;for(;n.pos=r)return n.pos+=o,n.pos-e;o++}n.pos+=i}return-1}makeStream(e,t){const n=this.lexer;let o=n.stream;n.skipToNextLine();const s=o.pos-1;let l=e.get("Length");if(Number.isInteger(l)||((0,r.info)(`Bad length "${l&&l.toString()}" in stream.`),l=0),o.pos=s+l,n.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(s,e);if(t<0){const n=1;for(let a=1;a<=n;a++){const n=e.length-a,l=e.slice(0,n),c=this._findStreamLength(s,l);if(c>=0){const e=o.peekBytes(n+1)[n];if(!(0,i.isWhiteSpace)(e))break;(0,r.info)(`Found "${(0,r.bytesToString)(l)}" when searching for endstream command.`),t=c;break}}if(t<0)throw new r.FormatError("Missing endstream command.")}l=t,n.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,l,e),t&&(o=t.createStream(o,l)),o=this.filter(o,e,l),o.dict=e,o}filter(e,t,n){let i=t.get("F","Filter"),o=t.get("DP","DecodeParms");if(i instanceof a.Name)return Array.isArray(o)&&(0,r.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,i.name,n,o);let s=n;if(Array.isArray(i)){const t=i,n=o;for(let l=0,c=t.length;l=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,a=0;if(45===e?(a=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(a=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(n=10,e=this.nextChar()),e<48||e>57){if((0,i.isWhiteSpace)(e)||-1===e){if(10===n&&0===a)return(0,r.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;if(0===n&&-1===a)return(0,r.warn)("Lexer.getNumber - treating a single minus sign as zero."),0}throw new r.FormatError(`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`)}a=a||1;let o=e-48,s=0,l=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;t?s=10*s+r:(0!==n&&(n*=10),o=10*o+r)}else if(46===e){if(0!==n)break;n=1}else if(45===e)(0,r.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(o/=n),t&&(o*=10**(l*s)),a*o}getString(){let e=1,t=!1;const n=this.strBuf;n.length=0;let a=this.nextChar();for(;;){let i=!1;switch(0|a){case-1:(0,r.warn)("Unterminated string"),t=!0;break;case 40:++e,n.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):n.push(")");break;case 92:switch(a=this.nextChar(),a){case-1:(0,r.warn)("Unterminated string"),t=!0;break;case 110:n.push("\n");break;case 114:n.push("\r");break;case 116:n.push("\t");break;case 98:n.push("\b");break;case 102:n.push("\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&a;a=this.nextChar(),i=!0,a>=48&&a<=55&&(e=(e<<3)+(15&a),a=this.nextChar(),a>=48&&a<=55&&(i=!1,e=(e<<3)+(15&a))),n.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(a))}break;default:n.push(String.fromCharCode(a))}if(t)break;i||(a=this.nextChar())}return n.join("")}getName(){let e,t;const n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!v[e];)if(35===e){if(e=this.nextChar(),v[e]){(0,r.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const a=w(e);if(-1!==a){t=e,e=this.nextChar();const i=w(e);if(-1===i){if((0,r.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`),n.push("#",String.fromCharCode(t)),v[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(a<<4|i))}else n.push("#",String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&(0,r.warn)(`Name token is longer than allowed by the spec: ${n.length}`),a.Name.get(n.join(""))}_hexStringWarn(e){5!==this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,r.warn)(`getHexString - ignoring invalid character: ${e}`):(0,r.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,n,a=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(a<0){(0,r.warn)("Unterminated hex string");break}if(62===a){this.nextChar();break}if(1!==v[a]){if(i){if(t=w(a),-1===t){this._hexStringWarn(a),a=this.nextChar();continue}}else{if(n=w(a),-1===n){this._hexStringWarn(a),a=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}i=!i,a=this.nextChar()}else a=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==v[t])break;t=this.nextChar()}switch(0|t){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(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new r.FormatError(`Illegal character: ${t}`)}let n=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127)return this.nextChar(),a.Cmd.get(n)}const i=this.knownCommands;let o=i&&void 0!==i[n];for(;(t=this.nextChar())>=0&&!v[t];){const e=n+String.fromCharCode(t);if(o&&void 0===i[e])break;if(128===n.length)throw new r.FormatError(`Command token too long: ${n.length}`);n=e,o=i&&void 0!==i[n]}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(n)))}peekObj(){const e=this.stream.pos,t=this.currentChar,n=this.beginInlineImagePos;let a;try{a=this.getObj()}catch(o){if(o instanceof i.MissingDataException)throw o;(0,r.warn)(`peekObj: ${o}`)}return this.stream.pos=e,this.currentChar=t,this.beginInlineImagePos=n,a}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=x,t.Linearization=class{static create(e){function t(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}const n=new b({lexer:new x(e),xref:null}),r=n.getObj(),i=n.getObj(),o=n.getObj(),s=n.getObj();let l,c;if(!(Number.isInteger(r)&&Number.isInteger(i)&&(0,a.isCmd)(o,"obj")&&s instanceof a.Dict&&"number"===typeof(l=s.get("Linearized"))&&l>0))return null;if((c=t(s,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:c,hints:function(e){const t=e.get("H");let n;if(Array.isArray(t)&&(2===(n=t.length)||4===n)){for(let e=0;e0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(s),objectNumberFirst:t(s,"O"),endFirst:t(s,"E"),numPages:t(s,"N"),mainXRefEntriesOffset:t(s,"T"),pageFirst:s.has("P")?t(s,"P",!0):0}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var r=n(19),a=n(6);class i extends r.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const e=this.str;let t=e.getByte();for(;(0,a.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t)return void(this.eof=!0);const n=this.bufferLength;let r,i;if(122===t){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{const o=this.input;for(o[0]=t,i=1;i<5;++i){for(t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(o[i]=t,-1===t||126===t)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)o[i]=117;this.eof=!0}let s=0;for(i=0;i<5;++i)s=85*s+(o[i]-33);for(i=3;i>=0;--i)r[n+i]=255&s,s>>=8}}}t.Ascii85Stream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var r=n(7),a=n(10);const i=new Uint8Array(0);class o extends r.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=i,this.minBufferLength=512,e)for(;this.minBufferLengthr&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(t,n)}reset(){this.pos=0}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else{const n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new a.Stream(this.buffer,e,t,n)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=o,t.StreamsSequenceStream=class extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0;for(const r of e)n+=r instanceof o?r._rawMinBufferLength:r.length;super(n),this.streams=e,this._onError=t}readBlock(){const e=this.streams;if(0===e.length)return void(this.eof=!0);const t=e.shift();let n;try{n=t.getBytes()}catch(i){if(this._onError)return void this._onError(i,t.dict&&t.dict.objId);throw i}const r=this.bufferLength,a=r+n.length;this.ensureBuffer(a).set(n,r),this.bufferLength=a}getBaseStreams(){const e=[];for(const t of this.streams){const n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var r=n(19);class a extends r.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length)return void(this.eof=!0);const t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t);let r=this.bufferLength,a=this.firstDigit;for(const i of e){let e;if(i>=48&&i<=57)e=15&i;else{if(!(i>=65&&i<=70||i>=97&&i<=102)){if(62===i){this.eof=!0;break}continue}e=9+(15&i)}a<0?a=e:(n[r++]=a<<4|e,a=-1)}a>=0&&this.eof&&(n[r++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=r}}t.AsciiHexStream=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=n(22),a=n(19),i=n(5);class o extends a.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,n instanceof i.Dict||(n=i.Dict.empty);const a={next:()=>e.getByte()};this.ccittFaxDecoder=new r.CCITTFaxDecoder(a,{K:n.get("K"),EndOfLine:n.get("EndOfLine"),EncodedByteAlign:n.get("EncodedByteAlign"),Columns:n.get("Columns"),Rows:n.get("Rows"),EndOfBlock:n.get("EndOfBlock"),BlackIs1:n.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var r=n(2);const a=-1,i=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[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],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],o=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-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]],s=[[-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]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],c=[[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]],u=[[-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]];t.CCITTFaxDecoder=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;let n,r=t.EndOfBlock;for(null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.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;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,n=this.columns;let i,o,s,l,c;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let s,c,u;if(this.err=!1,this.nextLine2D){for(l=0;t[l]=64);do{c+=u=this._getWhiteCode()}while(u>=64)}else{do{s+=u=this._getWhiteCode()}while(u>=64);do{c+=u=this._getBlackCode()}while(u>=64)}for(this._addPixels(t[this.codingPos]+s,o),t[this.codingPos]0?--i:++i;e[i]<=t[this.codingPos]&&e[i]0?--i:++i;e[i]<=t[this.codingPos]&&e[i]0?--i:++i;e[i]<=t[this.codingPos]&&e[i]=64);else do{s+=u=this._getWhiteCode()}while(u>=64);this._addPixels(t[this.codingPos]+s,o),o^=1}let d=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(s=this._lookBits(12),this.eoline)for(;s!==a&&1!==s;)this._eatBits(1),s=this._lookBits(12);else for(;0===s;)this._eatBits(1),s=this._lookBits(12);1===s?(this._eatBits(12),d=!0):s===a&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(s=this._lookBits(12),1===s){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(l=0;l<4;++l)s=this._lookBits(12),1!==s&&(0,r.info)("bad rtc code: "+s),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(s=this._lookBits(13),s===a)return this.eof=!0,-1;if(s>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&s))}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1],this.row++}if(this.outputBits>=8)c=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]s?(c<<=s,1&this.codingPos||(c|=255>>8-s),this.outputBits-=s,s=0):(c<<=this.outputBits,1&this.codingPos||(c|=255>>8-this.outputBits),s-=this.outputBits,this.outputBits=0,t[this.codingPos]0&&(c<<=s,s=0))}while(s)}return this.black&&(c^=255),c}_addPixels(e,t){const n=this.codingLine;let a=this.codingPos;e>n[a]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,n[a]=e),this.codingPos=a}_addPixelsNeg(e,t){const n=this.codingLine;let a=this.codingPos;if(e>n[a])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,n[a]=e;else if(e0&&e=i){const t=n[e-i];if(t[0]===o)return this._eatBits(o),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(7),e=i[t],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{const e=this._findTableCode(1,7,i);if(e[0]&&e[2])return e[1]}return(0,r.info)("Bad two dim code"),a}_getWhiteCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===a)return 1;if(e=t>>5===0?o[t]:s[t>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,s);if(e[0])return e[1];if(e=this._findTableCode(11,12,o),e[0])return e[1]}return(0,r.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(e=this._lookBits(13),e===a)return 1;if(t=e>>7===0?l[e]:e>>9===0&&e>>7!==0?c[(e>>1)-64]:u[e>>7],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,u);if(e[0])return e[1];if(e=this._findTableCode(7,12,c,64),e[0])return e[1];if(e=this._findTableCode(10,13,l),e[0])return e[1]}return(0,r.info)("bad black code"),this._eatBits(1),1}_lookBits(e){let t;for(;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var r=n(19),a=n(2);const i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=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]),s=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]),l=[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],c=[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 u extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict;const n=e.getByte(),r=e.getByte();if(-1===n||-1===r)throw new a.FormatError(`Invalid header in flate stream: ${n}, ${r}`);if(8!==(15&n))throw new a.FormatError(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!==0)throw new a.FormatError(`Bad FCHECK in flate stream: ${n}, ${r}`);if(32&r)throw new a.FormatError(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}getBits(e){const t=this.str;let n,r=this.codeSize,i=this.codeBuf;for(;r>e,this.codeSize=r-=e,n}getCode(e){const t=this.str,n=e[0],r=e[1];let i,o=this.codeSize,s=this.codeBuf;for(;o>16,u=65535&l;if(c<1||o>c,this.codeSize=o-c,u}generateHuffmanTable(e){const t=e.length;let n,r=0;for(n=0;nr&&(r=e[n]);const a=1<>=1;for(n=e;n>=1,0===d){let t;if(-1===(t=n.getByte()))throw new a.FormatError("Bad block header in flate stream");let r=t;if(-1===(t=n.getByte()))throw new a.FormatError("Bad block header in flate stream");if(r|=t<<8,-1===(t=n.getByte()))throw new a.FormatError("Bad block header in flate stream");let i=t;if(-1===(t=n.getByte()))throw new a.FormatError("Bad block header in flate stream");if(i|=t<<8,i!==(65535&~r)&&(0!==r||0!==i))throw new a.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const o=this.bufferLength,s=o+r;if(e=this.ensureBuffer(s),this.bufferLength=s,0===r)-1===n.peekByte()&&(this.eof=!0);else{const t=n.getBytes(r);e.set(t,o),t.length0;)d[s++]=p}r=this.generateHuffmanTable(d.subarray(0,e)),u=this.generateHuffmanTable(d.subarray(e,c))}}e=this.buffer;let h=e?e.length:0,f=this.bufferLength;for(;;){let n=this.getCode(r);if(n<256){f+1>=h&&(e=this.ensureBuffer(f+1),h=e.length),e[f++]=n;continue}if(256===n)return void(this.bufferLength=f);n-=257,n=o[n];let a=n>>16;a>0&&(a=this.getBits(a)),t=(65535&n)+a,n=this.getCode(u),n=s[n],a=n>>16,a>0&&(a=this.getBits(a));const i=(65535&n)+a;f+t>=h&&(e=this.ensureBuffer(f+t),h=e.length);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=n(7),a=n(19),i=n(5),o=n(25),s=n(2);class l extends a.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new o.Jbig2Image,t=[];if(this.params instanceof i.Dict){const e=this.params.get("JBIG2Globals");if(e instanceof r.BaseStream){const n=e.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const n=e.parseChunks(t),a=n.length;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=n(2),a=n(6),i=n(26),o=n(22);class s extends r.BaseException{constructor(e){super(`JBIG2 error: ${e}`,"Jbig2Error")}}class l{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class c{constructor(e,t,n){this.data=e,this.start=t,this.end=n}get decoder(){const e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)}get contextCache(){const e=new l;return(0,r.shadow)(this,"contextCache",e)}}function u(e,t,n){const r=e.getContexts(t);let a=1;function i(e){let t=0;for(let i=0;i>>0}const o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function d(e,t,n){const r=e.getContexts("IAID");let a=1;for(let i=0;i=O&&F=_)for(z=z<<1&b,y=0;y=0&&$=0&&(L=E[R][$],L&&(z|=L<=e?l<<=1:l=l<<1|A[o][s];for(m=0;m=S||s<0||s>=x?l<<=1:l=l<<1|r[o][s];const c=C.readBit(O,l);t[n]=c}}return A}function v(e,t,n,r,a,i,o,l,c,h,f,p,m,g,y,v,w,x,S){if(e&&t)throw new s("refinement with Huffman is not supported");const k=[];let A,C;for(A=0;A1&&(a=e?S.readBits(x):u(_,"IAIT",O));const i=o*j+a,P=e?g.symbolIDTable.decode(S):d(_,O,c),T=t&&(e?S.readBit():u(_,"IARI",O));let E=l[P],M=E[0].length,N=E.length;if(T){const e=u(_,"IARDW",O),t=u(_,"IARDH",O);M+=e,N+=t,E=b(M,N,y,E,(e>>1)+u(_,"IARDX",O),(t>>1)+u(_,"IARDY",O),!1,v,w)}const I=i-(1&p?0:N-1),D=r-(2&p?M-1:0);let F,R,$;if(h){for(F=0;F>5&7;const u=[31&l];let d=t+6;if(7===l){c=536870911&(0,a.readUint32)(e,d-1),d+=3;let t=c+7>>3;for(u[0]=e[d++];--t>0;)u.push(e[d++])}else if(5===l||6===l)throw new s("invalid referred-to flags");n.retainBits=u;let f=4;n.number<=256?f=1:n.number<=65536&&(f=2);const p=[];let m,g;for(m=0;m>>24&255,i[3]=t.height>>16&255,i[4]=t.height>>8&255,i[5]=255&t.height,m=d,g=e.length;m>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,d+=2,!e.huffman){for(u=0===e.template?4:1,l=[],c=0;c>2&3,h.stripSize=1<>4&3,h.transposed=!!(64&f),h.combinationOperator=f>>7&3,h.defaultPixelValue=f>>9&1,h.dsOffset=f<<17>>27,h.refinementTemplate=f>>15&1,h.huffman){const e=(0,a.readUint16)(r,d);d+=2,h.huffmanFS=3&e,h.huffmanDS=e>>2&3,h.huffmanDT=e>>4&3,h.huffmanRefinementDW=e>>6&3,h.huffmanRefinementDH=e>>8&3,h.huffmanRefinementDX=e>>10&3,h.huffmanRefinementDY=e>>12&3,h.huffmanRefinementSizeSelector=!!(16384&e)}if(h.refinement&&!h.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,a.readInt8)(r,d),y:(0,a.readInt8)(r,d+1)}),d+=2;h.refinementAt=l}h.numberOfSymbolInstances=(0,a.readUint32)(r,d),d+=4,o=[h,n.referredTo,r,d,i];break;case 16:const p={},m=r[d++];p.mmr=!!(1&m),p.template=m>>1&3,p.patternWidth=r[d++],p.patternHeight=r[d++],p.maxPatternIndex=(0,a.readUint32)(r,d),d+=4,o=[p,n.number,r,d,i];break;case 22:case 23:const g={};g.info=S(r,d),d+=k;const y=r[d++];g.mmr=!!(1&y),g.template=y>>1&3,g.enableSkip=!!(8&y),g.combinationOperator=y>>4&7,g.defaultPixelValue=y>>7&1,g.gridWidth=(0,a.readUint32)(r,d),d+=4,g.gridHeight=(0,a.readUint32)(r,d),d+=4,g.gridOffsetX=4294967295&(0,a.readUint32)(r,d),d+=4,g.gridOffsetY=4294967295&(0,a.readUint32)(r,d),d+=4,g.gridVectorX=(0,a.readUint16)(r,d),d+=2,g.gridVectorY=(0,a.readUint16)(r,d),d+=2,o=[g,n.referredTo,r,d,i];break;case 38:case 39:const b={};b.info=S(r,d),d+=k;const v=r[d++];if(b.mmr=!!(1&v),b.template=v>>1&3,b.prediction=!!(8&v),!b.mmr){for(u=0===b.template?4:1,l=[],c=0;c>2&1,w.combinationOperator=x>>3&3,w.requiresBuffer=!!(32&x),w.combinationOperatorOverride=!!(64&x),o=[w];break;case 49:case 50:case 51:case 62:break;case 53:o=[n.number,r,d,i];break;default:throw new s(`segment type ${n.typeName}(${n.type}) is not implemented`)}const h="on"+n.typeName;h in t&&t[h].apply(t,o)}function C(e,t){for(let n=0,r=e.length;n>3,n=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&n.fill(255),this.buffer=n}drawBitmap(e,t){const n=this.currentPageInfo,r=e.width,a=e.height,i=n.width+7>>3,o=n.combinationOperatorOverride?e.combinationOperator:n.combinationOperator,l=this.buffer,c=128>>(7&e.x);let u,d,h,f,p=e.y*i+(e.x>>3);switch(o){case 0:for(u=0;u>=1,h||(h=128,f++);p+=i}break;case 2:for(u=0;u>=1,h||(h=128,f++);p+=i}break;default:throw new s(`operator ${o} is not supported`)}}onImmediateGenericRegion(e,t,n,r){const a=e.info,i=new c(t,n,r),o=y(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(a,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,n,r,i,o){let l,h;e.huffman&&(l=function(e,t,n){let r,a,i,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:r=E(e.huffmanDHSelector+4);break;case 3:r=N(l,t,n),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=E(e.huffmanDWSelector+2);break;case 3:a=N(l,t,n),l++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=N(l,t,n),l++):i=E(1),o=e.aggregationInstancesSelector?N(l,t,n):E(1),{tableDeltaHeight:r,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:o}}(e,n,this.customTables),h=new M(r,i,o));let f=this.symbols;f||(this.symbols=f={});const p=[];for(const a of n){const e=f[a];e&&p.push(...e)}const m=new c(r,i,o);f[t]=function(e,t,n,r,i,o,l,c,h,f,p,m){if(e&&t)throw new s("symbol refinement with Huffman is not supported");const g=[];let w=0,x=(0,a.log2)(n.length+r);const S=p.decoder,k=p.contextCache;let A,C;for(e&&(A=E(1),C=[],x=Math.max(x,1));g.length1)s=v(e,t,r,w,0,a,1,n.concat(g),x,0,0,1,0,o,h,f,p,0,m);else{const e=d(k,S,x),t=u(k,"IARDX",S),a=u(k,"IARDY",S);s=b(r,w,h,e=32){let t,n,r;switch(e){case 32:if(0===f)throw new s("no previous value in symbol ID table");n=a.readBits(2)+3,t=i[f-1].prefixLength;break;case 33:n=a.readBits(3)+3,t=0;break;case 34:n=a.readBits(7)+11,t=0;break;default:throw new s("invalid code length in symbol ID table")}for(r=0;r=0;v--)T=e?D(P,u,d,!0):y(!1,u,d,n,!1,null,_,g),j[v]=T;for(E=0;E=0;w--)I^=j[w][E][N],F|=I<>8,L=f+E*p-N*m>>8,$>=0&&$+A<=r&&L>=0&&L+C<=i)for(v=0;v=i))for(U=b[t],B=R[v],w=0;w=0&&e>1&7),c=1+(r>>4&7),u=[];let d,h,f=i;do{d=s.readBits(l),h=s.readBits(c),u.push(new _([f,d,h,0])),f+=1<>t&1;if(t<=0)this.children[n]=new j(e);else{let r=this.children[n];r||(this.children[n]=r=new j(null)),r.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new s("invalid Huffman data");return t.decodeNode(e)}}class P{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new j(null);for(let n=0,r=e.length;n0&&this.rootNode.buildTree(t,t.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length;let n=0;for(let c=0;c=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<=this.end?-1:this.data[this.position++]}}function N(e,t,n){let r=0;for(let a=0,i=t.length;a>n&1,n--}if(r&&!c){const e=5;for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const n=[{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}];t.ArithmeticDecoder=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],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 e=this.data;let t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let r=e[t]>>1,a=1&e[t];const i=n[r],o=i.qe;let s,l=this.a-o;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=r<<1|a,s}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=n(19),a=n(5),i=n(28),o=n(2);class s extends r.DecodeStream{constructor(e,t,n){let r;for(;-1!==(r=e.getByte());)if(255===r){e.skip(-1);break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(t)){const n=this.dict.get("BPC","BitsPerComponent")||8,r=t.length,a=new Int32Array(r);let i=!1;const o=(1<{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=n(2),a=n(6);class i extends r.BaseException{constructor(e){super(`JPEG error: ${e}`,"JpegError")}}class o extends r.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class s extends r.BaseException{constructor(e){super(e,"EOIMarkerError")}}const l=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]),c=4017,u=799,d=3406,h=2276,f=1567,p=3784,m=5793,g=2896;function y(e,t){let n,r,a=0,i=16;for(;i>0&&!e[i-1];)i--;const o=[{children:[],index:0}];let s,l=o[0];for(n=0;n0;)l=o.pop();for(l.index++,o.push(l);o.length<=n;)o.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;a++}n+19&&void 0!==arguments[9]&&arguments[9];const g=n.mcusPerLine,y=n.progressive,v=t;let w=0,x=0;function k(){if(x>0)return x--,w>>x&1;if(w=e[t++],255===w){const r=e[t++];if(r){if(220===r&&m){t+=2;const r=(0,a.readUint16)(e,t);if(t+=2,r>0&&r!==n.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===r){if(m){const e=T*(8===n.precision?8:0);if(e>0&&Math.round(n.scanLines/e)>=10)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new s("Found EOI marker (0xFFD9) while parsing scan data")}throw new i(`unexpected marker ${(w<<8|r).toString(16)}`)}}return x=7,w>>>7}function A(e){let t=e;for(;;){switch(t=t[k()],typeof t){case"number":return t;case"object":continue}throw new i("invalid huffman sequence")}}function C(e){let t=0;for(;e>0;)t=t<<1|k(),e--;return t}function O(e){if(1===e)return 1===k()?1:-1;const t=C(e);return t>=1<0)return void j--;let n=d;const r=h;for(;n<=r;){const r=A(e.huffmanTableAC),a=15&r,i=r>>4;if(0===a){if(i<15){j=C(i)+(1<>4,0===a)s<15?(j=C(s)+(1<>4;if(0===r){if(i<15)break;a+=16;continue}a+=i;const o=l[a];e.blockData[t+o]=O(r),a++}};let B,U,z,H,q=0;for(U=1===N?c[0].blocksPerLine*c[0].blocksPerColumn:g*n.mcusPerColumn;q<=U;){const n=u?Math.min(U-q,u):U;if(n>0){for(D=0;D0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${B.invalid}`),t=B.offset}if(!(B.marker>=65488&&B.marker<=65495))break;t+=2}return t-v}function w(e,t,n){const r=e.quantizationTable,a=e.blockData;let o,s,l,y,b,v,w,x,S,k,A,C,O,_,j,P,T;if(!r)throw new i("missing required Quantization Table.");for(let i=0;i<64;i+=8)S=a[t+i],k=a[t+i+1],A=a[t+i+2],C=a[t+i+3],O=a[t+i+4],_=a[t+i+5],j=a[t+i+6],P=a[t+i+7],S*=r[i],0!==(k|A|C|O|_|j|P)?(k*=r[i+1],A*=r[i+2],C*=r[i+3],O*=r[i+4],_*=r[i+5],j*=r[i+6],P*=r[i+7],o=m*S+128>>8,s=m*O+128>>8,l=A,y=j,b=g*(k-P)+128>>8,x=g*(k+P)+128>>8,v=C<<4,w=_<<4,o=o+s+1>>1,s=o-s,T=l*p+y*f+128>>8,l=l*f-y*p+128>>8,y=T,b=b+w+1>>1,w=b-w,x=x+v+1>>1,v=x-v,o=o+y+1>>1,y=o-y,s=s+l+1>>1,l=s-l,T=b*h+x*d+2048>>12,b=b*d-x*h+2048>>12,x=T,T=v*u+w*c+2048>>12,v=v*c-w*u+2048>>12,w=T,n[i]=o+x,n[i+7]=o-x,n[i+1]=s+w,n[i+6]=s-w,n[i+2]=l+v,n[i+5]=l-v,n[i+3]=y+b,n[i+4]=y-b):(T=m*S+512>>10,n[i]=T,n[i+1]=T,n[i+2]=T,n[i+3]=T,n[i+4]=T,n[i+5]=T,n[i+6]=T,n[i+7]=T);for(let i=0;i<8;++i)S=n[i],k=n[i+8],A=n[i+16],C=n[i+24],O=n[i+32],_=n[i+40],j=n[i+48],P=n[i+56],0!==(k|A|C|O|_|j|P)?(o=m*S+2048>>12,s=m*O+2048>>12,l=A,y=j,b=g*(k-P)+2048>>12,x=g*(k+P)+2048>>12,v=C,w=_,o=4112+(o+s+1>>1),s=o-s,T=l*p+y*f+2048>>12,l=l*f-y*p+2048>>12,y=T,b=b+w+1>>1,w=b-w,x=x+v+1>>1,v=x-v,o=o+y+1>>1,y=o-y,s=s+l+1>>1,l=s-l,T=b*h+x*d+2048>>12,b=b*d-x*h+2048>>12,x=T,T=v*u+w*c+2048>>12,v=v*c-w*u+2048>>12,w=T,S=o+x,P=o-x,k=s+w,j=s-w,A=l+v,_=l-v,C=y+b,O=y-b,S<16?S=0:S>=4080?S=255:S>>=4,k<16?k=0:k>=4080?k=255:k>>=4,A<16?A=0:A>=4080?A=255:A>>=4,C<16?C=0:C>=4080?C=255:C>>=4,O<16?O=0:O>=4080?O=255:O>>=4,_<16?_=0:_>=4080?_=255:_>>=4,j<16?j=0:j>=4080?j=255:j>>=4,P<16?P=0:P>=4080?P=255:P>>=4,a[t+i]=S,a[t+i+8]=k,a[t+i+16]=A,a[t+i+24]=C,a[t+i+32]=O,a[t+i+40]=_,a[t+i+48]=j,a[t+i+56]=P):(T=m*S+8192>>14,T=T<-2040?0:T>=2024?255:T+2056>>4,a[t+i]=T,a[t+i+8]=T,a[t+i+16]=T,a[t+i+24]=T,a[t+i+32]=T,a[t+i+40]=T,a[t+i+48]=T,a[t+i+56]=T)}function x(e,t){const n=t.blocksPerLine,r=t.blocksPerColumn,a=new Int16Array(64);for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:t;const r=e.length-1;let i=n=r)return null;const o=(0,a.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};let s=(0,a.readUint16)(e,i);for(;!(s>=65472&&s<=65534);){if(++i>=r)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}t.JpegImage=class{constructor(){let{decodeTransform:e=null,colorTransform:t=-1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._decodeTransform=e,this._colorTransform=t}parse(e){let{dnlScanLines:t=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(){const t=(0,a.readUint16)(e,h);h+=2;let n=h+t-2;const i=S(e,n,h);i&&i.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),n=i.offset);const o=e.subarray(h,n);return h+=o.length,o}function c(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(let r=0,a=e.components.length;r>4===0)for(C=0;C<64;C++)T=l[C],n[T]=e[h++];else{if(t>>4!==1)throw new i("DQT - invalid table spec");for(C=0;C<64;C++)T=l[C],n[T]=(0,a.readUint16)(e,h),h+=2}g[15&t]=n}break;case 65472:case 65473:case 65474:if(u)throw new i("Only single frame JPEGs supported");h+=2,u={},u.extended=65473===k,u.progressive=65474===k,u.precision=e[h++];const E=(0,a.readUint16)(e,h);h+=2,u.scanLines=t||E,u.samplesPerLine=(0,a.readUint16)(e,h),h+=2,u.components=[],u.componentIds={};const M=e[h++];let N=0,I=0;for(x=0;x>4,r=15&e[h+1];N>4===0?w:b)[15&t]=y(n,a)}break;case 65501:h+=2,d=(0,a.readUint16)(e,h),h+=2;break;case 65498:const F=1===++m&&!t;h+=2;const R=e[h++],$=[];for(x=0;x>4],r.huffmanTableAC=b[15&a],$.push(r)}const L=e[h++],B=e[h++],U=e[h++];try{const t=v(e,h,u,$,d,L,B,U>>4,15&U,F);h+=t}catch(A){if(A instanceof o)return(0,r.warn)(`${A.message} -- attempting to re-parse the JPEG image.`),this.parse(e,{dnlScanLines:A.scanLines});if(A instanceof s){(0,r.warn)(`${A.message} -- ignoring the rest of the image data.`);break e}throw A}break;case 65500:h+=4;break;case 65535:255!==e[h]&&h--;break;default:const z=S(e,h-2,h-3);if(z&&z.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+z.invalid),h=z.offset;break}if(!z||h>=e.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new i("JpegImage.parse - unknown marker: "+k.toString(16))}k=(0,a.readUint16)(e,h),h+=2}this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=f,this.adobe=p,this.components=[];for(let r=0,a=u.components.length;r2&&void 0!==arguments[2]&&arguments[2];const r=this.width/e,a=this.height/t;let i,o,s,l,c,u,d,h,f,p,m,g=0;const y=this.components.length,b=e*t*y,v=new Uint8ClampedArray(b),w=new Uint32Array(e),x=4294967288;let S;for(d=0;d>8)+k[f+1];return v}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,n,r;for(let a=0,i=e.length;a4)throw new i("Unsupported color mode");const o=this._getLinearizedBlockData(t,n,a);if(1===this.numComponents&&r){const e=o.length,t=new Uint8ClampedArray(3*e);let n=0;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=n(19),a=n(30),i=n(2);class o extends r.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new a.JpxImage;e.parse(this.bytes);const t=e.width,n=e.height,r=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{const a=new Uint8ClampedArray(t*n*r);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var r=n(2),a=n(6),i=n(26);class o extends r.BaseException{constructor(e){super(`JPX error: ${e}`,"JpxError")}}const s={LL:0,LH:1,HL:1,HH:2};function l(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function c(e,t){const n=e.SIZ,r=[];let a;const i=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),o=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz);for(let s=0;s0?Math.min(r.xcb,a.PPx-1):Math.min(r.xcb,a.PPx),a.ycb_=n>0?Math.min(r.ycb,a.PPy-1):Math.min(r.ycb,a.PPy),a}function d(e,t,n){const r=1<t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,c=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,u=l*c;t.precinctParameters={precinctWidth:r,precinctHeight:a,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function h(e,t,n){const r=n.xcb_,a=n.ycb_,i=1<>r,l=t.tby0>>a,c=t.tbx1+i-1>>r,u=t.tby1+o-1>>a,d=t.resolution.precinctParameters,h=[],f=[];let p,m,g,y;for(m=l;me.cbxMax&&(e.cbxMax=p),me.cbyMax&&(e.cbyMax=m)):f[y]=e={cbxMin:p,cbyMin:m,cbxMax:p,cbyMax:m},g.precinct=e}t.codeblockParameters={codeblockWidth:r,codeblockHeight:a,numcodeblockwide:c-s+1,numcodeblockhigh:u-l+1},t.codeblocks=h,t.precincts=f}function f(e,t,n){const r=[],a=e.subbands;for(let i=0,o=a.length;ie.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[c],n=t.precinctParameters.numprecincts;for(;de.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;for(;de.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;if(!(u>=n)){for(;s=0;--e){const n=t.resolutions[e],r=p*n.precinctParameters.precinctWidth,a=p*n.precinctParameters.precinctHeight;u=Math.min(u,r),d=Math.min(d,a),h=Math.max(h,n.precinctParameters.numprecinctswide),f=Math.max(f,n.precinctParameters.numprecinctshigh),c[e]={width:r,height:a},p<<=1}n=Math.min(n,u),r=Math.min(r,d),a=Math.max(a,h),i=Math.max(i,f),o[s]={resolutions:c,minWidth:u,minHeight:d,maxNumWide:h,maxNumHigh:f}}return{components:o,minWidth:n,minHeight:r,maxNumWide:a,maxNumHigh:i}}function x(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],a=t.Csiz;for(let o=0;o>>l&(1<0;){const e=i.shift();l=e.codeblock,void 0===l.data&&(l.data=[]),l.data.push({data:t,start:n+s,end:n+s+e.dataLength,codingpasses:e.codingpasses}),s+=e.dataLength}}return s}function k(e,t,n,r,a,o,s,l,c){const u=r.tbx0,d=r.tby0,h=r.tbx1-r.tbx0,f=r.codeblocks,p="H"===r.type.charAt(0)?1:0,m="H"===r.type.charAt(1)?t:0;for(let g=0,y=f.length;g=o?R:R*(1<0?1-v:0));const o=e.subbands[r],m=s[o.type];k(a,t,0,o,p?1:2**(f+m-i)*(1+n/2048),u+i-1,p,d,h)}g.push({width:t,height:n,items:a})}const b=m.calculate(g,r.tcx0,r.tcy0);return{left:r.tcx0,top:r.tcy0,width:b.width,height:b.height,items:b.items}}function C(e,t){const n=e.SIZ.Csiz,r=e.tiles[t];for(let a=0;a>24&255,l>>16&255,l>>8&255,255&l);(0,r.warn)(`Unsupported header type ${l} (${i}).`)}u&&(n+=c)}}parseImageProperties(e){let t=e.getByte();for(;t>=0;){const n=t;if(t=e.getByte(),65361===(n<<8|t)){e.skip(4);const t=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,a=e.getInt32()>>>0;e.skip(16);const i=e.getUint16();return this.width=t-r,this.height=n-a,this.componentsCount=i,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")}parseCodestream(e,t,n){const i={};let s=!1;try{let o=t;for(;o+1>5,d=[];n>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),d.push(t)}v.SPqcds=d,i.mainHeader?i.QCD=v:(i.currentTile.QCD=v,i.currentTile.QCC=[]);break;case 65373:m=(0,a.readUint16)(e,o);const w={};let k;switch(n=o+2,i.SIZ.Csiz<257?k=e[n++]:(k=(0,a.readUint16)(e,n),n+=2),u=e[n++],31&u){case 0:h=8,f=!0;break;case 1:h=16,f=!1;break;case 2:h=16,f=!0;break;default:throw new Error("Invalid SQcd value "+u)}for(w.noQuantization=8===h,w.scalarExpounded=f,w.guardBits=u>>5,d=[];n>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),d.push(t)}w.SPqcds=d,i.mainHeader?i.QCC[k]=w:i.currentTile.QCC[k]=w;break;case 65362:m=(0,a.readUint16)(e,o);const A={};n=o+2;const O=e[n++];A.entropyCoderWithCustomPrecincts=!!(1&O),A.sopMarkerUsed=!!(2&O),A.ephMarkerUsed=!!(4&O),A.progressionOrder=e[n++],A.layersCount=(0,a.readUint16)(e,n),n+=2,A.multipleComponentTransform=e[n++],A.decompositionLevelsCount=e[n++],A.xcb=2+(15&e[n++]),A.ycb=2+(15&e[n++]);const _=e[n++];if(A.selectiveArithmeticCodingBypass=!!(1&_),A.resetContextProbabilities=!!(2&_),A.terminationOnEachCodingPass=!!(4&_),A.verticallyStripe=!!(8&_),A.predictableTermination=!!(16&_),A.segmentationSymbolUsed=!!(32&_),A.reversibleTransformation=e[n++],A.entropyCoderWithCustomPrecincts){const t=[];for(;n>4})}A.precinctsSizes=t}const j=[];A.selectiveArithmeticCodingBypass&&j.push("selectiveArithmeticCodingBypass"),A.terminationOnEachCodingPass&&j.push("terminationOnEachCodingPass"),A.verticallyStripe&&j.push("verticallyStripe"),A.predictableTermination&&j.push("predictableTermination"),j.length>0&&(s=!0,(0,r.warn)(`JPX: Unsupported COD options (${j.join(", ")}).`)),i.mainHeader?i.COD=A:(i.currentTile.COD=A,i.currentTile.COC=[]);break;case 65424:m=(0,a.readUint16)(e,o),p={},p.index=(0,a.readUint16)(e,o+2),p.length=(0,a.readUint32)(e,o+4),p.dataEnd=p.length+o-2,p.partIndex=e[o+8],p.partsCount=e[o+9],i.mainHeader=!1,0===p.partIndex&&(p.COD=i.COD,p.COC=i.COC.slice(0),p.QCD=i.QCD,p.QCC=i.QCC.slice(0)),i.currentTile=p;break;case 65427:p=i.currentTile,0===p.partIndex&&(C(i,p.index),x(i)),m=p.dataEnd-o,S(i,e,o,m);break;case 65363:(0,r.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:m=(0,a.readUint16)(e,o);break;default:throw new Error("Unknown codestream code: "+t.toString(16))}o+=m}}catch(u){if(s||this.failOnCorruptedImage)throw new o(u.message);(0,r.warn)(`JPX: Trying to recover from: "${u.message}".`)}this.tiles=function(e){const t=e.SIZ,n=e.components,r=t.Csiz,a=[];for(let i=0,o=e.tiles.length;i>2);l[y++]=e+g>>u,l[y++]=e>>u,l[y++]=e+m>>u}else for(h=0;h>u,l[y++]=p-.34413*m-.71414*g>>u,l[y++]=p+1.772*m>>u;if(e)for(h=0,y=3;h>u}else for(let e=0;e>u,y+=r}a.push(c)}return a}(i),this.width=i.SIZ.Xsiz-i.SIZ.XOsiz,this.height=i.SIZ.Ysiz-i.SIZ.YOsiz,this.componentsCount=i.SIZ.Csiz}};class O{constructor(e,t){const n=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(let r=0;r>=1,t>>=1,r++}r--,n=this.levels[r],n.items[n.index]=a,this.currentLevel=r,delete this.value}incrementValue(){const e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return e--,e<0?(this.value=n,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}class _{constructor(e,t,n){const r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(let a=0;an)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0}incrementValue(e){const t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];for(;--e>=0;)t=this.levels[e],t.items[t.index]=n}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}const j=function(){const e=17,t=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]),n=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]),r=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]);return class{constructor(e,a,i,o,s){let l;this.width=e,this.height=a,l="HH"===i?r:"HL"===i?n:t,this.contextLabelTable=l;const c=e*a;let u;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),u=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=u,this.processingFlags=new Uint8Array(c);const d=new Uint8Array(c);if(0!==o)for(let t=0;t0,s=t+10&&(l=n-a,o&&(r[l-1]+=16),s&&(r[l+1]+=16),r[l]+=4),e+1=n)break;if(o[h]&=-2,r[h]||!i[h])continue;const p=l[i[h]];if(e.readBit(s,p)){const e=this.decodeSignBit(t,d,h);a[h]=e,r[h]=1,this.setNeighborsSignificance(t,d,h),o[h]|=2}c[h]++,o[h]|=1}}}decodeSignBit(e,t,n){const r=this.width,a=this.height,i=this.coefficentsMagnitude,o=this.coefficentsSign;let s,l,c,u,d,h;u=t>0&&0!==i[n-1],t+10&&0!==i[n-r],e+1=0?(d=9+s,h=this.decoder.readBit(this.contexts,d)):(d=9-s,h=1^this.decoder.readBit(this.contexts,d)),h}runMagnitudeRefinementPass(){const e=this.decoder,t=this.width,n=this.height,r=this.coefficentsMagnitude,a=this.neighborsSignificance,i=this.contexts,o=this.bitsDecoded,s=this.processingFlags,l=t*n,c=4*t;for(let u,d=0;d>1;let a,i,o,s;const l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,h=1.230174104914001;for(a=(t|=0)-3,i=r+4;i--;a+=2)e[a]*=.8128930661159609;for(a=t-2,o=d*e[a-1],i=r+3;i--&&(s=d*e[a+1],e[a]=h*e[a]-o-s,i--);a+=2)a+=2,o=d*e[a+1],e[a]=h*e[a]-o-s;for(a=t-1,o=u*e[a-1],i=r+2;i--&&(s=u*e[a+1],e[a]-=o+s,i--);a+=2)a+=2,o=u*e[a+1],e[a]-=o+s;for(a=t,o=c*e[a-1],i=r+1;i--&&(s=c*e[a+1],e[a]-=o+s,i--);a+=2)a+=2,o=c*e[a+1],e[a]-=o+s;if(0!==r)for(a=t+1,o=l*e[a-1],i=r;i--&&(s=l*e[a+1],e[a]-=o+s,i--);a+=2)a+=2,o=l*e[a+1],e[a]-=o+s}}class E extends P{filter(e,t,n){const r=n>>1;let a,i;for(a=t|=0,i=r+1;i--;a+=2)e[a]-=e[a-1]+e[a+1]+2>>2;for(a=t+1,i=r;i--;a+=2)e[a]+=e[a-1]+e[a+1]>>1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var r=n(19);class a extends r.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;const r=4096,a={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let i=0;i<256;++i)a.dictionaryValues[i]=i,a.dictionaryLengths[i]=1;this.lzwState=a}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t>>t&(1<0;if(e<256)h[0]=e,f=1;else{if(!(e>=258)){if(256===e){u=9,o=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(e=0;t--)h[t]=s[n],n=c[n];else h[f++]=h[0]}if(a&&(c[o]=d,l[o]=l[d]+1,s[o]=h[0],o++,u=o+i&o+i-1?u:0|Math.min(Math.log(o+i)/.6931471805599453+1,12)),d=e,p+=f,r{Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var r=n(19),a=n(5),i=n(2);class o extends r.DecodeStream{constructor(e,t,n){if(super(t),!(n instanceof a.Dict))return e;const r=this.predictor=n.get("Predictor")||1;if(r<=1)return e;if(2!==r&&(r<10||r>15))throw new i.FormatError(`Unsupported predictor: ${r}`);this.readBlock=2===r?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;const o=this.colors=n.get("Colors")||1,s=this.bits=n.get("BPC","BitsPerComponent")||8,l=this.columns=n.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=l*o*s+7>>3,this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,this.eof)return;let o,s=0,l=0,c=0,u=0,d=t;if(1===r&&1===a)for(o=0;o>1,e^=e>>2,e^=e>>4,s=(1&e)<<7,n[d++]=e}else if(8===r){for(o=0;o>8&255,n[d++]=255&e}}else{const e=new Uint8Array(a+1),d=(1<>c-r)&d,c-=r,l=l<=8&&(n[f++]=l>>u-8&255,u-=8);u>0&&(n[f++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),r=this.str.getBytes(e);if(this.eof=!r.length,this.eof)return;const a=this.bufferLength,o=this.ensureBuffer(a+e);let s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));let l,c,u,d=a;switch(n){case 0:for(l=0;l>1)+r[l];for(;l>1)+r[l]&255,d++;break;case 4:for(l=0;l{Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var r=n(19);class a extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])return void(this.eof=!0);let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){const e=this.str.getBytes(r);t.set(e,n),n+=r}}else{r=257-r;const a=e[1];t=this.ensureBuffer(n+r+1);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var r=n(2),a=n(35),i=n(38),o=n(40),s=n(39),l=n(37),c=n(41),u=n(42),d=n(43),h=n(44),f=n(45),p=n(46),m=n(16),g=n(47),y=n(6),b=n(10),v=n(48);const w=[[57344,63743],[1048576,1114109]],x=1e3,S=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],k=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function A(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===r.FONT_IDENTITY_MATRIX[0])return;const t=.001/e.fontMatrix[0],n=e.widths;for(const r in n)n[r]*=t;e.defaultWidth*=t}function C(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof u.IdentityToUnicodeMap)return;const t=[];for(const n in e.fallbackToUnicode)e.toUnicode.has(n)||(t[n]=e.fallbackToUnicode[n]);t.length>0&&e.toUnicode.amend(t)}class O{constructor(e,t,n,r,a,i,s,l,c){this.originalCharCode=e,this.fontChar=t,this.unicode=n,this.accent=r,this.width=a,this.vmetric=i,this.operatorListId=s,this.isSpace=l,this.isInFont=c;const u=(0,o.getCharUnicodeCategory)(n);this.isWhitespace=u.isWhitespace,this.isZeroWidthDiacritic=u.isZeroWidthDiacritic,this.isInvisibleFormatMark=u.isInvisibleFormatMark}matchesForCache(e,t,n,r,a,i,o,s,l){return this.originalCharCode===e&&this.fontChar===t&&this.unicode===n&&this.accent===r&&this.width===a&&this.vmetric===i&&this.operatorListId===o&&this.isSpace===s&&this.isInFont===l}}function _(e,t){return(e<<8)+t}function j(e,t,n){e[t+1]=n,e[t]=n>>>8}function P(e,t){const n=(e<<8)+t;return 32768&n?n-65536:n}function T(e){return String.fromCharCode(e>>8&255,255&e)}function E(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function M(e){const t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function N(e,t){let n,a,{type:i,subtype:o,composite:s}=t;return function(e){const t=e.peekBytes(4);return 65536===(0,y.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)}(e)||M(e)?n=s?"CIDFontType2":"TrueType":function(e){const t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e)?n=s?"CIDFontType2":"OpenType":function(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?n=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":function(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?s?(n="CIDFontType0",a="CIDFontType0C"):(n="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),n=i,a=o),[n,a]}function I(e,t){for(const n in t)e[+n]=t[n]}function D(e,t,n){const r=[];let a;for(let i=0,s=e.length;i2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const a=`Unsupported CID string (charCode ${e}): "${t}".`;if(n)throw new r.FormatError(a);return(0,r.warn)(a),t}function R(e,t,n,a){const i=Object.create(null),o=new Map,s=[],l=new Set;let c=0;const u=w[c][0];let d=u,h=w[c][1];for(let f in e){f|=0;let p=e[f];if(!t(p))continue;if(d>h){if(c++,c>=w.length){(0,r.warn)("Ran out of space in font private use area.");break}d=w[c][0],h=w[c][1]}const m=d++;0===p&&(p=n);let g=a.get(f);"string"===typeof g&&(g=g.codePointAt(0)),g&&g=n||r.push({fontCharCode:0|o,glyphId:e[o]});if(t)for(const[o,s]of t)s>=n||r.push({fontCharCode:o,glyphId:s});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));const a=[],i=r.length;for(let o=0;o65535?2:1;let o,s,l,c,u="\0\0"+T(i)+"\0\x03\0\x01"+(0,r.string32)(4+8*i);for(o=a.length-1;o>=0&&!(a[o][0]<=65535);--o);const d=o+1;a[o][0]<65535&&65535===a[o][1]&&(a[o][1]=65534);const h=a[o][1]<65535?1:0,f=d+h,p=g.OpenTypeFileBuilder.getSearchParams(f,2);let m,y,b,v,w="",x="",S="",k="",A="",C=0;for(o=0,s=d;o0&&(x+="\xff\xff",w+="\xff\xff",S+="\0\x01",k+="\0\0");const O="\0\0"+T(2*f)+T(p.range)+T(p.entry)+T(p.rangeShift)+x+"\0\0"+w+S+k+A;let _="",j="";if(i>1){for(u+="\0\x03\0\n"+(0,r.string32)(4+8*i+4+O.length),_="",o=0,s=a.length;oe||!c)&&(c=e),u 123 are reserved for internal usage");l|=1<65535&&(u=65535)}else c=0,u=255;const d=e.bbox||[0,0,0,0],h=n.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],f=e.ascentScaled?1:h/x,p=n.ascent||Math.round(f*(e.ascent||d[3]));let m=n.descent||Math.round(f*(e.descent||d[1]));m>0&&e.descent>0&&d[1]<0&&(m=-m);const g=n.yMax||p,y=-n.yMin||-m;return"\0\x03\x02$\x01\xf4\0\x05\0\0\x02\x8a\x02\xbb\0\0\0\x8c\x02\x8a\x02\xbb\0\0\x01\xdf\x001\x01\x02\0\0\0\0\x06"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(a)+(0,r.string32)(i)+(0,r.string32)(s)+(0,r.string32)(l)+"*21*"+T(e.italicAngle?1:0)+T(c||e.firstChar)+T(u||e.lastChar)+T(p)+T(m)+"\0d"+T(g)+T(y)+"\0\0\0\0\0\0\0\0"+T(e.xHeight)+T(e.capHeight)+T(0)+T(c||e.firstChar)+"\0\x03"}function B(e){const t=Math.floor(65536*e.italicAngle);return"\0\x03\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function U(e){return e.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function z(e,t){t||(t=[[],[]]);const n=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||U(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let a,i,o,s,l;for(a=0,i=n.length;a0&&void 0!==arguments[0]&&arguments[0]?[...S,...k]:S,t=Object.create(null);let n,r;for(n of e)r=this[n],void 0!==r&&(t[n]=r);return t}fallbackToSystemFont(e){this.missingFile=!0;const t=this.name,n=this.type,a=this.subtype;let d=(0,i.normalizeFontName)(t);const h=(0,c.getStdFontMap)(),p=(0,c.getNonStdFontMap)(),m=!!h[d],g=!(!p[d]||!h[p[d]]);d=h[d]||p[d]||d;const y=(0,f.getFontBasicMetrics)()[d];y&&(isNaN(this.ascent)&&(this.ascent=y.ascent/x),isNaN(this.descent)&&(this.descent=y.descent/x),isNaN(this.capHeight)&&(this.capHeight=y.capHeight/x)),this.bold=-1!==d.search(/bold/gi),this.italic=-1!==d.search(/oblique/gi)||-1!==d.search(/italic/gi),this.black=-1!==t.search(/Black/g);const b=-1!==t.search(/Narrow/g);if(this.remeasure=(!m||b)&&Object.keys(this.widths).length>0,(m||g)&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){const n=e.cidToGidMap,r=[];if(I(r,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(t)?I(r,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&I(r,(0,c.getSupplementalGlyphMapForCalibri)()),n){for(const e in r){const t=r[e];void 0!==n[t]&&(r[+e]=n[t])}n.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof u.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const a=r[e];void 0===n[a]&&(r[+e]=t)}))}this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){r[+e]=t})),this.toFontChar=r,this.toUnicode=new u.ToUnicodeMap(r)}else if(/Symbol/i.test(d))this.toFontChar=D(l.SymbolSetEncoding,(0,s.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(d))/Wingdings/i.test(t)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=D(l.ZapfDingbatsEncoding,(0,s.getDingbatsGlyphsUnicode)(),this.differences);else if(m){const e=D(this.defaultEncoding,(0,s.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==n||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,n){e[+t]=n})),this.toFontChar=e}else{const e=(0,s.getGlyphsUnicode)(),n=[];this.toUnicode.forEach(((t,r)=>{if(!this.composite){const n=this.differences[t]||this.defaultEncoding[t],a=(0,o.getUnicodeForGlyph)(n,e);-1!==a&&(r=a)}n[+t]=r})),this.composite&&this.toUnicode instanceof u.IdentityToUnicodeMap&&/Verdana/i.test(t)&&I(n,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=n}C(e),this.loadedName=d.split("-")[0],this.fontType=(0,i.getFontType)(n,a,e.isStandardFont)}checkAndRepair(e,t,n){const o=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function c(e,t){const n=Object.create(null);n["OS/2"]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let r=0;r>>0,r=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(r);const o=e.getBytes(a);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:n,length:a,offset:r,data:o}}function f(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function y(e,t,n,r,a,i){const o={length:0,sizeOfInstructions:0};if(n-t<=12)return o;const s=e.subarray(t,n);let l=P(s[0],s[1]);if(l<0)return l=-1,j(s,0,l),r.set(s,a),o.length=s.length,o;let c,u=10,d=0;for(c=0;cs.length?o:!i&&f>0?(r.set(s.subarray(0,h),a),r.set([0,0],a+h),r.set(s.subarray(p,g),a+h+2),g-=f,s.length-g>3&&(g=g+3&-4),o.length=g,o):s.length-g>3?(g=g+3&-4,r.set(s.subarray(0,g),a),o.length=g,o):(r.set(s,a),o.length=s.length,o)}function v(e){const n=(t.start||0)+e.offset;t.pos=n;const r=[[],[]],a=e.length,i=n+a;if(0!==t.getUint16()||a<6)return r;const o=t.getUint16(),s=t.getUint16(),l=[];let c,u;for(c=0;ci)continue;t.pos=a;const o=e.name;if(e.encoding){let n="";for(let r=0,a=e.length;r0&&(c+=e-1)}}else(g||b)&&((0,r.warn)("TT: nested FDEFs not allowed"),m=!0),g=!0,d=c,o=h.pop(),t.functionsDefined[o]={data:l,i:c};else if(!g&&!b)if(o=h.at(-1),isNaN(o))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){const e=h.length+t.functionsStackDeltas[o];if(e<0)return(0,r.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=e}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:h.length-1}),p.push(o),s=t.functionsDefined[o],!s)return(0,r.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!g&&!b){let t=0;for(e<=142?t=w[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(a=h.pop(),isNaN(a)||(t=2*-a));t<0&&h.length>0;)h.pop(),t++;for(;t>0;)h.push(NaN),t--}}t.tooComplexToFollowFunctions=m;const v=[l];c>l.length&&v.push(new Uint8Array(c-l.length)),d>u&&((0,r.warn)("TT: complementing a missing function tail"),v.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){let n,r,a=0;for(n=0,r=t.length;n>>0,o=[];for(let r=0;r>>0);const s={ttcTag:t,majorVersion:n,minorVersion:a,numFonts:i,offsetTable:o};switch(n){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new r.FormatError(`Invalid TrueType Collection majorVersion: ${n}.`)}(e),i=t.split("+");let o;for(let s=0;s0||!(n.cMap instanceof m.IdentityCMap));if("OTTO"===S.version&&!t||!k.head||!k.hhea||!k.maxp||!k.post)return O=new b.Stream(k["CFF "].data),C=new d.CFFFont(O,n),A(n),this.convert(e,C,n);delete k.glyf,delete k.loca,delete k.fpgm,delete k.prep,delete k["cvt "],this.isOpenType=!0}if(!k.maxp)throw new r.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+k.maxp.offset;const E=t.getInt32(),N=t.getUint16();if(n.scaleFactors&&n.scaleFactors.length===N&&T){const{scaleFactors:e}=n,t=_(k.head.data[50],k.head.data[51]),r=new p.GlyfTable({glyfTable:k.glyf.data,isGlyphLocationsLong:t,locaTable:k.loca.data,numGlyphs:N});r.scale(e);const{glyf:a,loca:i,isLocationLong:o}=r.write();k.glyf.data=a,k.loca.data=i,o!==!!t&&(k.head.data[50]=0,k.head.data[51]=o?1:0);const s=k.hmtx.data;for(let n=0;n>8&255,s[t+1]=255&r,j(s,t+2,Math.round(e[n]*P(s[t+2],s[t+3])))}}let I=N+1,D=!0;I>65535&&(D=!1,I=N,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));let U=0,H=0;E>=65536&&k.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(k.maxp.data[14]=0,k.maxp.data[15]=2),t.pos+=4,U=t.getUint16(),t.pos+=4,H=t.getUint16()),k.maxp.data[4]=I>>8,k.maxp.data[5]=255&I;const q=function(e,t,n,a){const i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&x(e,i),t&&x(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,r.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(let n=0,a=e.functionsUsed.length;nt)return(0,r.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,r.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(i,a),n&&1&n.length){const e=new Uint8Array(n.length+1);e.set(n.data),n.data=e}return i.hintsValid}(k.fpgm,k.prep,k["cvt "],U);if(q||(delete k.fpgm,delete k.prep,delete k["cvt "]),function(e,t,n,a,i,o){if(!t)return void(n&&(n.data=null));e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;const s=e.getUint16();e.pos+=8,e.pos+=2;let l=e.getUint16();0!==s&&(2&_(a.data[44],a.data[45])||(t.data[22]=0,t.data[23]=0)),l>i&&((0,r.info)(`The numOfMetrics (${l}) should not be greater than the numGlyphs (${i}).`),l=i,t.data[34]=(65280&l)>>8,t.data[35]=255&l);const c=i-l-(n.length-4*l>>1);if(c>0){const e=new Uint8Array(n.length+2*c);e.set(n.data),o&&(e[n.length]=n.data[2],e[n.length+1]=n.data[3]),n.data=e}}(t,k.hhea,k.hmtx,k.head,I,D),!k.head)throw new r.FormatError('Required "head" table is not found');!function(e,t,n){const a=e.data,i=(o=a[0],s=a[1],l=a[2],c=a[3],(o<<24)+(s<<16)+(l<<8)+c);var o,s,l,c;i>>16!==1&&((0,r.info)("Attempting to fix invalid version in head table: "+i),a[0]=0,a[1]=1,a[2]=0,a[3]=0);const u=_(a[50],a[51]);if(u<0||u>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+u);const e=t+1;if(n===e<<1)a[50]=0,a[51]=0;else{if(n!==e<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+u);a[50]=0,a[51]=1}}}(k.head,N,T?k.loca.length:0);let W=Object.create(null);if(T){const e=_(k.head.data[50],k.head.data[51]),t=function(e,t,n,r,a,i,o){let s,l,c;r?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});const u=i?n+1:n,d=s*(1+u),h=new Uint8Array(d);h.set(e.data.subarray(0,d)),e.data=h;const f=t.data,p=f.length,m=new Uint8Array(p);let g,b;const v=[];for(g=0,b=0;gp&&(e=p),v.push({index:g,offset:e,endOffset:0})}for(v.sort(((e,t)=>e.offset-t.offset)),g=0;ge.index-t.index)),g=0;go&&(o=e.sizeOfInstructions),x+=t,c(h,b,x)}if(0===x){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(g=0,b=s;gn+x?t.data=m.subarray(0,n+x):(t.data=new Uint8Array(n+x),t.data.set(m.subarray(0,x))),t.data.set(m.subarray(0,n),x),c(e.data,h.length-s,x+n)}else t.data=m.subarray(0,x);return{missingGlyphs:w,maxSizeOfInstructions:o}}(k.loca,k.glyf,N,e,q,D,H);W=t.missingGlyphs,E>=65536&&k.maxp.length>=22&&(k.maxp.data[26]=t.maxSizeOfInstructions>>8,k.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!k.hhea)throw new r.FormatError('Required "hhea" table is not found');0===k.hhea.data[10]&&0===k.hhea.data[11]&&(k.hhea.data[10]=255,k.hhea.data[11]=255);const G={unitsPerEm:_(k.head.data[18],k.head.data[19]),yMax:_(k.head.data[42],k.head.data[43]),yMin:P(k.head.data[38],k.head.data[39]),ascent:P(k.hhea.data[4],k.hhea.data[5]),descent:P(k.hhea.data[6],k.hhea.data[7]),lineGap:P(k.hhea.data[8],k.hhea.data[9])};this.ascent=G.ascent/G.unitsPerEm,this.descent=G.descent/G.unitsPerEm,this.lineGap=G.lineGap/G.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,k.post&&function(e,n,a){const o=(t.start||0)+e.offset;t.pos=o;const s=o+e.length,l=t.getInt32();let c;t.skip(28);let u,d=!0;switch(l){case 65536:c=i.MacStandardGlyphOrdering;break;case 131072:const e=t.getUint16();if(e!==a){d=!1;break}const o=[];for(u=0;u=32768){d=!1;break}o.push(e)}if(!d)break;const h=[],f=[];for(;t.pos65535)throw new r.FormatError("Max size of CID is 65,535");let i=-1;t?i=a:void 0!==e[a]&&(i=e[a]),i>=0&&i>>0;let u=!1;if(!l||l.platformId!==e||l.encodingId!==i){if(0!==e||0!==i&&1!==i&&3!==i)if(1===e&&0===i)u=!0;else if(3!==e||1!==i||!a&&l){if(n&&3===e&&0===i){u=!0;let n=!0;if(r>3;e.push(r),n=Math.max(r,n)}const r=[];for(let a=0;a<=n;a++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:P(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let a=0;a<256;a++)if(0===e[a])t.pos=r[0].idRangePos+2*a,p=t.getUint16(),h.push({charCode:a,glyphId:p});else{const n=r[e[a]];for(f=0;f>1;t.skip(6);const n=[];let r;for(r=0;r>1)-(e-r),i.offsetIndex=a,s=Math.max(s,a+i.end-i.start+1)):i.offsetIndex=-1}const l=[];for(f=0;f>>0;for(f=0;f>>0,n=t.getInt32()>>>0;let r=t.getInt32()>>>0;for(let t=e;t<=n;t++)h.push({charCode:t,glyphId:r++})}}}h.sort((function(e,t){return e.charCode-t.charCode}));for(let r=1;r=61440&&e<=61695&&(e&=255),V[e]=c[t].glyphId}if(n.glyphNames&&(h.length||this.differences.length))for(let t=0;t<256;++t){if(!f&&void 0!==V[t])continue;const e=this.differences[t]||h[t];if(!e)continue;const r=n.glyphNames.indexOf(e);r>0&&X(r)&&(V[t]=r)}}0===V.length&&(V[0]=0);let K=I-1;if(D||(K=0),!n.cssFontInfo){const e=R(V,X,K,this.toUnicode);this.toFontChar=e.toFontChar,k.cmap={tag:"cmap",data:$(e.charCodeToGlyphId,e.toUnicodeExtraMap,I)},k["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;const n=t.getUint16();t.skip(60);const r=t.getUint16();return!(n<4&&768&r)&&!(t.getUint16()>t.getUint16())&&(t.skip(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0))}(k["OS/2"],t)||(k["OS/2"]={tag:"OS/2",data:L(n,e.charCodeToGlyphId,G)})}if(!T)try{O=new b.Stream(k["CFF "].data),C=new a.CFFParser(O,n,i.SEAC_ANALYSIS_ENABLED).parse(),C.duplicateFirstGlyph();const e=new a.CFFCompiler(C);k["CFF "].data=e.compile()}catch(Z){(0,r.warn)("Failed to compile font "+n.loadedName)}if(k.name){const t=v(k.name);k.name.data=z(e,t),this.psName=t[0][6]||null}else k.name={tag:"name",data:z(this.name)};const Y=new g.OpenTypeFileBuilder(S.version);for(const r in k)Y.addTable(r,k[r].data);return Y.toArray()}convert(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(e.isInternalFont)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof u.IdentityToUnicodeMap)return;const n=[],r=(0,s.getGlyphsUnicode)();for(const a in t){if(e.hasIncludedToUnicodeMap){if(e.toUnicode.has(a))continue}else if(e.hasEncoding&&(0===e.differences.length||void 0!==e.differences[a]))continue;const i=t[a],s=(0,o.getUnicodeForGlyph)(i,r);-1!==s&&(n[a]=String.fromCharCode(s))}n.length>0&&e.toUnicode.amend(n)}(n,n.builtInEncoding);let a=1;t instanceof d.CFFFont&&(a=t.numGlyphs-1);const c=t.getGlyphMapping(n);let h=null,f=c,p=null;n.cssFontInfo||(h=R(c,t.hasGlyphId.bind(t),a,this.toUnicode),this.toFontChar=h.toFontChar,f=h.charCodeToGlyphId,p=h.toUnicodeExtraMap);const m=t.numGlyphs;function y(e,t){let n=null;for(const r in e)t===e[r]&&(n||(n=[]),n.push(0|r));return n}function b(e,t){for(const n in e)if(t===e[n])return 0|n;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}const v=t.seacs;if(h&&i.SEAC_ANALYSIS_ENABLED&&v&&v.length){const e=n.fontMatrix||r.FONT_IDENTITY_MATRIX,a=t.getCharset(),i=Object.create(null);for(let t in v){t|=0;const n=v[t],r=l.StandardEncoding[n[2]],o=l.StandardEncoding[n[3]],s=a.indexOf(r),u=a.indexOf(o);if(s<0||u<0)continue;const d={x:n[0]*e[0]+n[1]*e[2]+e[4],y:n[0]*e[1]+n[1]*e[3]+e[5]},f=y(c,t);if(f)for(let e=0,t=f.length;e1&&void 0!==arguments[1]&&arguments[1],s=e;this.cMap&&this.cMap.contains(e)&&(s=this.cMap.lookup(e),"string"===typeof s&&(s=F(e,s))),n=this.widths[s],"number"!==typeof n&&(n=this.defaultWidth);const l=this.vmetrics&&this.vmetrics[s];let c=this.toUnicode.get(e)||e;"number"===typeof c&&(c=String.fromCharCode(c));let u=void 0!==this.toFontChar[e];if(t=this.toFontChar[e]||e,this.missingFile){const n=this.differences[e]||this.defaultEncoding[e];".notdef"!==n&&""!==n||"Type1"!==this.type||(t=32),t=(0,o.mapSpecialUnicodeValues)(t)}this.isType3Font&&(a=t);let d=null;if(this.seacMap&&this.seacMap[e]){u=!0;const n=this.seacMap[e];t=n.baseFontCharCode,d={fontChar:String.fromCodePoint(n.accentFontCharCode),offset:n.accentOffset}}let h="";"number"===typeof t&&(t<=1114111?h=String.fromCodePoint(t):(0,r.warn)(`charToGlyph - invalid fontCharCode: ${t}`));let f=this._glyphCache[e];return f&&f.matchesForCache(e,h,c,d,n,l,a,i,u)||(f=new O(e,h,c,d,n,l,a,i,u),this._glyphCache[e]=f),f}charsToGlyphs(e){let t=this._charsCache[e];if(t)return t;if(t=[],this.cMap){const n=Object.create(null),r=e.length;let a=0;for(;at.length%2===1,a=this.toUnicode instanceof u.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let i=0,o=e.length;i55295&&(o<57344||o>65533)&&i++,this.toUnicode){const e=a(o);if(-1!==e){r()&&(t.push(n.join("")),n.length=0);for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)n.push(String.fromCharCode(e>>8*t&255));continue}}r()||(t.push(n.join("")),n.length=0),n.push(String.fromCodePoint(o))}return t.push(n.join("")),t}},t.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var r=n(2),a=n(36),i=n(37);const o=[".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"];t.CFFStandardStrings=o;const s=391,l=[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}],c=[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(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-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(e,t){e[t-2]=e[t-2]*e[t-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}];t.CFFParser=class{constructor(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}parse(){const e=this.properties,t=new u;this.cff=t;const n=this.parseHeader(),r=this.parseIndex(n.endPos),a=this.parseIndex(r.endPos),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),s=this.parseDict(a.obj.get(0)),l=this.createDict(g,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=l,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");const c=l.getByName("CharStrings"),d=this.parseIndex(c).obj,h=l.getByName("FontMatrix");h&&(e.fontMatrix=h);const f=l.getByName("FontBBox");let p,m;if(f&&(e.ascent=Math.max(f[3],f[1]),e.descent=Math.min(f[1],f[3]),e.ascentScaled=!0),t.isCIDFont){const e=this.parseIndex(l.getByName("FDArray")).obj;for(let n=0,r=e.count;n=t)throw new r.FormatError("Invalid CFF header");0!==n&&((0,r.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);const a=e[0],i=e[1],o=e[2],s=e[3];return{obj:new d(a,i,o,s),endPos:o}}parseDict(e){let t=0;function n(){let n=e[t++];return 30===n?function(){let n="";const r=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;for(;t>4,s=15&i;if(o===r)break;if(n+=a[o],s===r)break;n+=a[s]}return parseFloat(n)}():28===n?(n=e[t++],n=(n<<24|e[t++]<<16)>>16,n):29===n?(n=e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n):n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:((0,r.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}let a=[];const i=[];t=0;const o=e.length;for(;t10)return!1;let i=e.stackSize;const o=e.stack,s=t.length;for(let u=0;u>16,u+=2,i++;else if(14===s){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=o.slice(i,i+4),!1;d=l[s]}else if(s>=32&&s<=246)o[i]=s-139,i++;else if(s>=247&&s<=254)o[i]=s<251?(s-247<<8)+t[u]+108:-(s-251<<8)-t[u]-108,u++,i++;else if(255===s)o[i]=(t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3])/65536,u+=4,i++;else if(19===s||20===s)e.hints+=i>>1,u+=e.hints+7>>3,i%=2,d=l[s];else{if(10===s||29===s){let t;if(t=10===s?n:a,!t)return d=l[s],(0,r.warn)("Missing subrsIndex for "+d.id),!1;let c=32768;t.count<1240?c=107:t.count<33900&&(c=1131);const u=o[--i]+c;if(u<0||u>=t.count||isNaN(u))return d=l[s],(0,r.warn)("Out of bounds subrIndex for "+d.id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,t.get(u),n,a))return!1;e.callDepth--,i=e.stackSize;continue}if(11===s)return e.stackSize=i,!0;0===s&&u===t.length?(t[u-1]=14,d=l[14]):d=l[s]}if(d){if(d.stem&&(e.hints+=i>>1,3===s||23===s?e.hasVStems=!0:!e.hasVStems||1!==s&&18!==s||((0,r.warn)("CFF stem hints are in wrong order"),t[u-1]=1===s?3:23)),"min"in d&&!e.undefStack&&i=2&&d.stem?i%=2:i>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),i>0&&(e.width=o[i-1])),"stackDelta"in d?("stackFn"in d&&d.stackFn(o,i),i+=d.stackDelta):d.stackClearing?i=0:d.resetStack?(i=0,e.undefStack=!1):d.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=i,!0}parseCharStrings(e){let{charStrings:t,localSubrIndex:n,globalSubrIndex:a,fdSelect:i,fdArray:o,privateDict:s}=e;const l=[],c=[],u=t.count;for(let d=0;d=o.length&&((0,r.warn)("Invalid fd index for glyph index."),h=!1),h&&(p=o[e].privateDict,f=p.subrsIndex)}else n&&(f=n);if(h&&(h=this.parseCharString(u,e,f,a)),null!==u.width){const e=p.getByName("nominalWidthX");c[d]=e+u.width}else{const e=p.getByName("defaultWidthX");c[d]=e}null!==u.seac&&(l[d]=u.seac),h||t.set(d,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}}emptyPrivateDictionary(e){const t=this.createDict(b,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private"))return void this.emptyPrivateDictionary(e);const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length)return void e.removeByName("Private");const n=t[0],r=t[1];if(0===n||r>=this.bytes.length)return void this.emptyPrivateDictionary(e);const a=r+n,i=this.bytes.subarray(r,a),o=this.parseDict(i),s=this.createDict(b,o,e.strings);if(e.privateDict=s,!s.getByName("Subrs"))return;const l=s.getByName("Subrs"),c=r+l;if(0===l||c>=this.bytes.length)return void this.emptyPrivateDictionary(e);const u=this.parseIndex(c);s.subrsIndex=u.obj}parseCharsets(e,t,n,i){if(0===e)return new w(!0,v.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new w(!0,v.EXPERT,a.ExpertCharset);if(2===e)return new w(!0,v.EXPERT_SUBSET,a.ExpertSubsetCharset);const o=this.bytes,s=e,l=o[e++],c=[i?0:".notdef"];let u,d,h;switch(t-=1,l){case 0:for(h=0;h=65535)return void(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");const e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}t.CFF=u;class d{constructor(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}}t.CFFHeader=d;class h{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?o[e]:e-s<=this.strings.length?this.strings[e-s]:o[0]}getSID(e){let t=o.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+s:-1)}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=h;class f{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=f;class p{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;const n=t.length;if(0===n)return!0;for(let i=0;i=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=S;class k{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new r.FormatError(`Already tracking location of ${e}`);this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,n){if(!(e in this.offsets))throw new r.FormatError(`Not tracking location of ${e}`);const a=n.data,i=this.offsets[e];for(let o=0,s=t.length;o>24&255,a[s]=u>>16&255,a[l]=u>>8&255,a[c]=255&u}}}class A{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){this.data=this.data.concat(e),this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);const a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(let n=0,a=e.fdArray.length;n16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);let o=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(o.output);const s=o.trackers[0],l=this.compileStringIndex(e.strings.strings);t.add(l);const c=this.compileIndex(e.globalSubrIndex);if(t.add(c),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)s.setEntryLocation("Encoding",[e.encoding.format],t);else{const n=this.compileEncoding(e.encoding);s.setEntryLocation("Encoding",[t.length],t),t.add(n)}const u=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);s.setEntryLocation("charset",[t.length],t),t.add(u);const d=this.compileCharStrings(e.charStrings);if(s.setEntryLocation("CharStrings",[t.length],t),t.add(d),e.isCIDFont){s.setEntryLocation("FDSelect",[t.length],t);const n=this.compileFDSelect(e.fdSelect);t.add(n),o=this.compileTopDicts(e.fdArray,t.length,!0),s.setEntryLocation("FDArray",[t.length],t),t.add(o.output);const r=o.trackers;this.compilePrivateDicts(e.fdArray,r,t)}return this.compilePrivateDicts([e.topDict],[s],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,r.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const n=A.EncodeFloatRegExp.exec(t);if(n){const r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}let r,a,i="";for(r=0,a=t.length;r=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new f;for(let n=0,a=e.length;n"~"||"["===t||"]"===t||"("===t||")"===t||"{"===t||"}"===t||"<"===t||">"===t||"/"===t||"%"===t)&&(t="_"),o[e]=t}o=o.join(""),""===o&&(o="Bad_Font_Name"),t.add((0,r.stringToBytes)(o))}return this.compileIndex(t)}compileTopDicts(e,t,n){const r=[];let a=new f;for(let i=0,o=e.length;i>8&255,255&o]);else{i=new Uint8Array(1+2*o),i[0]=0;let t=0;const a=e.charset.length;let s=!1;for(let o=1;o>8&255,i[o+1]=255&l}}return this.compileTypedArray(i)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format;let n,r;switch(t){case 0:for(n=new Uint8Array(1+e.fdSelect.length),n[0]=t,r=0;r>8&255,255&a,i];for(r=1;r>8&255,255&r,t),i=t)}const s=(o.length-3)/3;o[1]=s>>8&255,o[2]=255&s,o.push(r>>8&255,255&r),n=new Uint8Array(o)}return this.compileTypedArray(n)}compileTypedArray(e){const t=[];for(let n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:[];const n=e.objects,r=n.length;if(0===r)return[0,0];const a=[r>>8&255,255&r];let i,o,s=1;for(i=0;i>8&255,255&l):3===o?a.push(l>>16&255,l>>8&255,255&l):a.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[i]&&(l+=n[i].length);for(i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".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"],t.ExpertCharset=[".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"],t.ExpertSubsetCharset=[".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"]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return i;case"MacRomanEncoding":return a;case"SymbolSetEncoding":return s;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return n;case"MacExpertEncoding":return r;default:return null}};const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.ExpertEncoding=n;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","","","",""],a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.MacRomanEncoding=a;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];t.StandardEncoding=i;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.WinAnsiEncoding=o;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.SymbolSetEncoding=s;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.ZapfDingbatsEncoding=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.getFontType=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(e){case"Type1":return n?r.FontType.TYPE1STANDARD:"Type1C"===t?r.FontType.TYPE1C:r.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?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}},t.normalizeFontName=function(e){return e.replace(/[,_]/g,"-").replace(/\s/g,"")},t.recoverGlyphName=l,t.type1FontGlyphMapping=function(e,t,n){const r=Object.create(null);let o,c,u;const d=!!(e.flags&s.Symbolic);if(e.isInternalFont)for(u=t,c=0;c=0?o:0;else if(e.baseEncodingName)for(u=(0,a.getEncoding)(e.baseEncodingName),c=0;c=0?o:0;else if(d)for(c in t)r[c]=t[c];else for(u=a.StandardEncoding,c=0;c=0?o:0;const h=e.differences;let f;if(h)for(c in h){const e=h[c];if(o=n.indexOf(e),-1===o){f||(f=(0,i.getGlyphsUnicode)());const t=l(e,f);t!==e&&(o=n.indexOf(t))}r[c]=o>=0?o:0}return r};var r=n(2),a=n(37),i=n(39),o=n(40);t.SEAC_ANALYSIS_ENABLED=!0;const s={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function l(e,t){if(void 0!==t[e])return e;const n=(0,o.getUnicodeForGlyph)(e,t);if(-1!==n)for(const r in t)if(t[r]===n)return r;return(0,r.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=s,t.MacStandardGlyphOrdering=[".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"]},(e,t,n)=>{n.r(t),n.d(t,{getDingbatsGlyphsUnicode:()=>i,getGlyphsUnicode:()=>a});var r=n(6);const a=(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]})),i=(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]}))},(e,t,n)=>{n.r(t),n.d(t,{clearUnicodeCaches:()=>p,getCharUnicodeCategory:()=>f,getNormalizedUnicodes:()=>c,getUnicodeForGlyph:()=>o,getUnicodeRangeFor:()=>l,mapSpecialUnicodeValues:()=>i,reverseIfRtl:()=>u});var r=n(6);const a=(0,r.getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function i(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e}function o(e,t){let n=t[e];if(void 0!==n)return n;if(!e)return-1;if("u"===e[0]){const t=e.length;let r;if(7===t&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(t>=5&&t<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16),n>=0))return n}return-1}const s=[{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 l(e){for(let t=0,n=s.length;t=n.begin&&e=t.begin&&e=t.begin&&e=0;r--)n.push(e[r]);return n.join("")}const d=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),h=new Map;function f(e){const t=h.get(e);if(t)return t;const n=e.match(d),r={isWhitespace:!(!n||!n[1]),isZeroWidthDiacritic:!(!n||!n[2]),isInvisibleFormatMark:!(!n||!n[3])};return h.set(e,r),r}function p(){h.clear()}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){const t=(0,a.normalizeFontName)(e);return i()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var r=n(6),a=n(38);const i=(0,r.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=i;const o=(0,r.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="FoxitSans.pfb",e["Helvetica-Bold"]="FoxitSansBold.pfb",e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",e["Helvetica-Oblique"]="FoxitSansItalic.pfb",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=o;const s=(0,r.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=s;const l=(0,r.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinit\xe9"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=l;const c=(0,r.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=c;const u=(0,r.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[200]=193,e[203]=205,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=u;const d=(0,r.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=d;const h=(0,r.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[6]=193,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[260]=225,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var r=n(2);t.ToUnicodeMap=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}amend(e){for(const t in e)this._map[t]=e[t]}},t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)}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()")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var r=n(35),a=n(38),i=n(2);t.CFFFont=class{constructor(e,t){this.properties=t;const n=new r.CFFParser(e,t,a.SEAC_ANALYSIS_ENABLED);this.cff=n.parse(),this.cff.duplicateFirstGlyph();const o=new r.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=o.compile()}catch(s){(0,i.warn)("Failed to compile font "+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,n=e.charset.charset;let r,i;if(t.composite){let a;if(r=Object.create(null),e.isCIDFont)for(i=0;i=0){const t=n[e];t&&(a[i]=t)}}a.length>0&&(this.properties.builtInEncoding=a)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=n(2),a=n(35),i=n(39),o=n(37),s=n(10);function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return e[t]<<8|e[t+1]}function u(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function d(e,t){return e[t]<<24>>24}function h(e,t){return u(e,t)/16384}function f(e){const t=e.length;let n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function p(e,t,n){const a=1===c(e,t+2)?l(e,t+8):l(e,t+16),i=c(e,t+a);let o,s,u;if(4===i){c(e,t+a+2);const n=c(e,t+a+6)>>1;for(s=t+a+14,o=[],u=0;u>1;n0;)m.push({flags:l})}for(n=0;n>1,_=!0;break;case 4:d+=c.pop(),i(u,d),_=!0;break;case 5:for(;c.length>0;)u+=c.shift(),d+=c.shift(),s(u,d);break;case 6:for(;c.length>0&&(u+=c.shift(),s(u,d),0!==c.length);)d+=c.shift(),s(u,d);break;case 7:for(;c.length>0&&(d+=c.shift(),s(u,d),0!==c.length);)u+=c.shift(),s(u,d);break;case 8:for(;c.length>0;)y=u+c.shift(),w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(y,w,v,x,u,d);break;case 10:if(C=c.pop(),O=null,n.isCFFCIDFont){const e=n.fdSelect.getFDIndex(a);if(e>=0&&eMath.abs(d-t)?u+=c.shift():d+=c.shift(),l(y,w,v,x,u,d);break;default:throw new r.FormatError(`unknown operator: 12 ${j}`)}break;case 14:if(c.length>=4){const e=c.pop(),r=c.pop();d=c.pop(),u=c.pop(),t.push({cmd:"save"},{cmd:"translate",args:[u,d]});let a=g(n.cmap,String.fromCharCode(n.glyphNameMap[o.StandardEncoding[e]]));b(n.glyphs[a.glyphId],t,n,a.glyphId),t.push({cmd:"restore"}),a=g(n.cmap,String.fromCharCode(n.glyphNameMap[o.StandardEncoding[r]])),b(n.glyphs[a.glyphId],t,n,a.glyphId)}return;case 19:case 20:h+=c.length>>1,m+=h+7>>3,_=!0;break;case 21:d+=c.pop(),u+=c.pop(),i(u,d),_=!0;break;case 22:u+=c.pop(),i(u,d),_=!0;break;case 24:for(;c.length>2;)y=u+c.shift(),w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(y,w,v,x,u,d);u+=c.shift(),d+=c.shift(),s(u,d);break;case 25:for(;c.length>6;)u+=c.shift(),d+=c.shift(),s(u,d);y=u+c.shift(),w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(y,w,v,x,u,d);break;case 26:for(c.length%2&&(u+=c.shift());c.length>0;)y=u,w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v,d=x+c.shift(),l(y,w,v,x,u,d);break;case 27:for(c.length%2&&(d+=c.shift());c.length>0;)y=u+c.shift(),w=d,v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x,l(y,w,v,x,u,d);break;case 28:c.push((p[m]<<24|p[m+1]<<16)>>16),m+=2;break;case 29:C=c.pop()+n.gsubrsBias,O=n.gsubrs[C],O&&e(O);break;case 30:for(;c.length>0&&(y=u,w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+(1===c.length?c.shift():0),l(y,w,v,x,u,d),0!==c.length);)y=u+c.shift(),w=d,v=y+c.shift(),x=w+c.shift(),d=x+c.shift(),u=v+(1===c.length?c.shift():0),l(y,w,v,x,u,d);break;case 31:for(;c.length>0&&(y=u+c.shift(),w=d,v=y+c.shift(),x=w+c.shift(),d=x+c.shift(),u=v+(1===c.length?c.shift():0),l(y,w,v,x,u,d),0!==c.length);)y=u,w=d+c.shift(),v=y+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+(1===c.length?c.shift():0),l(y,w,v,x,u,d);break;default:if(j<32)throw new r.FormatError(`unknown operator: ${j}`);j<247?c.push(j-139):j<251?c.push(256*(j-247)+p[m++]+108):j<255?c.push(256*-(j-251)-p[m++]-108):(c.push((p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3])/65536),m+=4)}_&&(c.length=0)}}(e)}const v=[];class w{constructor(e){this.constructor===w&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:n}=g(this.cmap,e);let r=this.compiledGlyphs[n];if(!r)try{r=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=r}catch(a){throw this.compiledGlyphs[n]=v,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),a}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),r}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return v;let n=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);e>=0&&e2*c(e,t));const i=[];let o=a(t,0);for(let s=r;s{Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var r=n(6);const a=(0,r.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.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})),e["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})),e["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})),e["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})),e.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})),e["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})),e["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})),e["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})),e["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})),e.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}))}));t.getMetrics=a;const i=(0,r.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=i},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0,t.GlyfTable=class{constructor(e){let{glyfTable:t,isGlyphLocationsLong:r,locaTable:a,numGlyphs:i}=e;this.glyphs=[];const o=new DataView(a.buffer,a.byteOffset,a.byteLength),s=new DataView(t.buffer,t.byteOffset,t.byteLength),l=r?4:2;let c=r?o.getUint32(0):2*o.getUint16(0),u=0;for(let d=0;de+(t.getSize()+3&-4)),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),n=e>131070,r=n?4:2,a=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));n?a.setUint32(0,0):a.setUint16(0,0);let i=0,o=0;for(const s of this.glyphs)i+=s.write(i,t),i=i+3&-4,o+=r,n?a.setUint32(o,i):a.setUint16(o,i>>1);return{isLocationLong:n,loca:new Uint8Array(a.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,n=this.glyphs.length;te+t.getSize()),0);return this.header.getSize()+e}write(e,t){if(!this.header)return 0;const n=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(const r of this.composites)e+=r.write(e,t);return e-n}scale(e){if(!this.header)return;const t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(const n of this.composites)n.scale(t,e)}}class r{constructor(e){let{numberOfContours:t,xMin:n,yMin:r,xMax:a,yMax:i}=e;this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=a,this.yMax=i}static parse(e,t){return[10,new r({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class a{constructor(e){let{flags:t,xCoordinates:n,yCoordinates:r}=e;this.xCoordinates=n,this.yCoordinates=r,this.flags=t}}class i{constructor(e){let{contours:t,instructions:n}=e;this.contours=t,this.instructions=n}static parse(e,t,n){const r=[];for(let a=0;a255?e+=2:s>0&&(e+=1),t=i,s=Math.abs(o-n),s>255?e+=2:s>0&&(e+=1),n=o}}return e}write(e,t){const n=e,r=[],a=[],i=[];let o=0,s=0;for(const l of this.contours){for(let e=0,t=l.xCoordinates.length;e=0?18:2,r.push(e)):r.push(c)}o=n;const u=l.yCoordinates[e];if(c=u-s,0===c)t|=32,a.push(0);else{const e=Math.abs(c);e<=255?(t|=c>=0?36:4,a.push(e)):a.push(c)}s=u,i.push(t)}t.setUint16(e,r.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(const l of i)t.setUint8(e++,l);for(let l=0,c=r.length;l=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,t){const n=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-n}scale(e,t){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var r=n(6),a=n(2);function i(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function o(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function s(e,t,n){if(n instanceof Uint8Array)e.set(n,t);else if("string"===typeof n)for(let r=0,a=n.length;rn;)n<<=1,r++;const a=n*t;return{range:a,entry:r,rangeShift:t*e-a}}toArray(){let e=this.sfnt;const t=this.tables,n=Object.keys(t);n.sort();const c=n.length;let u,d,h,f,p,m=12+16*c;const g=[m];for(u=0;u>>0,g.push(m);const y=new Uint8Array(m);for(u=0;u>>0;o(y,m+4,e),o(y,m+8,g[u]),o(y,m+12,t[p].length),m+=16}return y}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var r=n(35),a=n(38),i=n(6),o=n(10),s=n(49),l=n(2);function c(e,t,n){const r=e.length,a=t.length,o=r-a;let s=n,l=!1;for(;s=a){for(s+=n;s=0&&(r[e]=i)}return(0,a.type1FontGlyphMapping)(e,r,n)}hasGlyphId(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}getSeacs(e){const t=[];for(let n=0,r=e.length;n0;n--)t[n]-=t[n-1];p.setByName(e,t)}o.topDict.privateDict=p;const g=new r.CFFIndex;for(d=0,h=a.length;d{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var r=n(37),a=n(6),i=n(10),o=n(2);const s=[4],l=[5],c=[6],u=[7],d=[8],h=[12,35],f=[14],p=[21],m=[22],g=[30],y=[31];class b{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(e,t,n){const r=e.length;let a,i,b,v=!1;for(let w=0;wr)return!0;const a=r-e;for(let i=a;i>8&255,255&e):(e=65536*e|0,this.output.push(255,e>>24&255,e>>16&255,e>>8&255,255&e))}return this.output.push(...t),n?this.stack.splice(a,e):this.stack.length=0,!1}}function v(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function w(e,t,n){if(n>=e.length)return new Uint8Array(0);let r,a,i=0|t;for(r=0;r>8,i=52845*(t+i)+22719&65535}return s}function x(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,n){if(t){const t=e.getBytes(),n=!((v(t[0])||(0,a.isWhiteSpace)(t[0]))&&v(t[1])&&v(t[2])&&v(t[3])&&v(t[4])&&v(t[5])&&v(t[6])&&v(t[7]));e=new i.Stream(n?w(t,55665,4):function(e,t,n){let r=0|t;const a=e.length,i=new Uint8Array(a>>>1);let o,s;for(o=0,s=0;o>8,r=52845*(e+r)+22719&65535}}return i.slice(n,s)}(t,55665,4))}this.seacAnalysisEnabled=!!n,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(x(t))return this.nextChar(),String.fromCharCode(t);let n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!x(t));return n}readCharStrings(e,t){return-1===t?e:w(e,4330,t)}extractFontProgram(e){const t=this.stream,n=[],r=[],a=Object.create(null);a.lenIV=4;const i={subrs:[],charstrings:[],properties:{privateData:a}};let o,s,l,c;for(;null!==(o=this.getToken());)if("/"===o)switch(o=this.getToken(),o){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();o=this.getToken(),null!==o&&"end"!==o;){if("/"!==o)continue;const e=this.getToken();s=this.readInt(),this.getToken(),l=s>0?t.getBytes(s):new Uint8Array(0),c=i.properties.privateData.lenIV;const n=this.readCharStrings(l,c);this.nextChar(),o=this.getToken(),"noaccess"===o?this.getToken():"/"===o&&this.prevChar(),r.push({glyph:e,encoded:n})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt();s=this.readInt(),this.getToken(),l=s>0?t.getBytes(s):new Uint8Array(0),c=i.properties.privateData.lenIV;const r=this.readCharStrings(l,c);this.nextChar(),o=this.getToken(),"noaccess"===o&&this.getToken(),n[e]=r}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray();e.length>0&&e.length;break;case"StemSnapH":case"StemSnapV":i.properties.privateData[o]=this.readNumberArray();break;case"StdHW":case"StdVW":i.properties.privateData[o]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":i.properties.privateData[o]=this.readNumber();break;case"ForceBold":i.properties.privateData[o]=this.readBoolean()}for(const{encoded:u,glyph:d}of r){const t=new b,r=t.convert(u,n,this.seacAnalysisEnabled);let a=t.output;r&&(a=[14]);const o={glyphName:d,charstring:a,width:t.width,lsb:t.lsb,seac:t.seac};if(".notdef"===d?i.charstrings.unshift(o):i.charstrings.push(o),e.builtInEncoding){const n=e.builtInEncoding.indexOf(d);n>-1&&void 0===e.widths[n]&&n>=e.firstChar&&n<=e.lastChar&&(e.widths[n]=t.width)}}return i}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":const n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":const a=this.getToken();let i;if(/^\d+$/.test(a)){i=[];const e=0|parseInt(a,10);this.getToken();for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.getTilingPatternIR=function(e,t,n){const a=t.getArray("Matrix"),i=r.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(i[2]-i[0]===0||i[3]-i[1]===0)throw new r.FormatError(`Invalid getTilingPatternIR /BBox array: [${i}].`);return["TilingPattern",n,e,a,i,o,s,l,c]};var r=n(2),a=n(7),i=n(14),o=n(6);const s=2,l=3,c=4,u=5,d=6,h=7;t.Pattern=class{constructor(){(0,r.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,n,i,f,m){const g=e instanceof a.BaseStream?e.dict:e,v=g.get("ShadingType");try{switch(v){case s:case l:return new p(g,t,n,f,m);case c:case u:case d:case h:return new y(e,t,n,f,m);default:throw new r.FormatError("Unsupported ShadingType: "+v)}}catch(w){if(w instanceof o.MissingDataException)throw w;return i.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.shadingPattern}),(0,r.warn)(w),new b}}};class f{static get SMALL_NUMBER(){return(0,r.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===f&&(0,r.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,r.unreachable)("Abstract method `getIR` called.")}}class p extends f{constructor(e,t,n,a,o){super(),this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType");const s=i.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:n,pdfFunctionFactory:a,localColorSpaceCache:o}),c=e.getArray("BBox");Array.isArray(c)&&4===c.length?this.bbox=r.Util.normalizeRect(c):this.bbox=null;let u=0,d=1;if(e.has("Domain")){const t=e.getArray("Domain");u=t[0],d=t[1]}let h=!1,p=!1;if(e.has("Extend")){const t=e.getArray("Extend");h=t[0],p=t[1]}if(this.shadingType===l&&(!h||!p)){const[e,t,n,a,i,o]=this.coordsArr,s=Math.hypot(e-a,t-i);n<=o+s&&o<=n+s&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=h,this.extendEnd=p;const m=e.getRaw("Function"),g=a.createFromArray(m),y=(d-u)/10,b=this.colorStops=[];if(u>=d||y<=0)return void(0,r.info)("Bad shading domain.");const v=new Float32Array(s.numComps),w=new Float32Array(1);let x;for(let i=0;i<=10;i++){w[0]=u+i*y,g(w,0,v,0),x=s.getRgb(v,0);const e=r.Util.makeHexColor(x[0],x[1],x[2]);b.push([i/10,e])}let S="transparent";e.has("Background")&&(x=s.getRgb(e.get("Background"),0),S=r.Util.makeHexColor(x[0],x[1],x[2])),h||(b.unshift([0,S]),b[1][0]+=f.SMALL_NUMBER),p||(b.at(-1)[0]-=f.SMALL_NUMBER,b.push([1,S])),this.colorStops=b}getIR(){const e=this.coordsArr,t=this.shadingType;let n,a,i,o,c;return t===s?(a=[e[0],e[1]],i=[e[2],e[3]],o=null,c=null,n="axial"):t===l?(a=[e[0],e[1]],i=[e[3],e[4]],o=e[2],c=e[5],n="radial"):(0,r.unreachable)(`getPattern type unknown: ${t}`),["RadialAxial",n,this.bbox,this.colorStops,a,i,o,c]}}class m{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;const n=t.numComps;this.tmpCompsBuf=new Float32Array(n);const r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos0)return!0;const e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let t=this.buffer,n=this.bufferLength;if(32===e){if(0===n)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const e=this.stream.getByte();return this.buffer=e&(1<>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n>n}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),r=this.context.decode,a=e<32?1/((1<i?i:e,t=t>o?o:t,n=n{Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){const t=function(e){const t=h(e);if(!t)return null;const{baseWidths:n,baseMapping:r,factors:a}=t;let i;i=a?n.map(((e,t)=>e*a[t])):n;let o,s=-2;const l=[];for(const[c,u]of r.map(((e,t)=>[e,t])).sort(((e,t)=>{let[n]=e,[r]=t;return n-r})))-1!==c&&(c===s+1?(o.push(i[u]),s+=1):(s=c,o=[i[u]],l.push(c,o)));return l}(e),n=new a.Dict(null);n.set("BaseFont",a.Name.get(e)),n.set("Type",a.Name.get("Font")),n.set("Subtype",a.Name.get("CIDFontType2")),n.set("Encoding",a.Name.get("Identity-H")),n.set("CIDToGIDMap",a.Name.get("Identity")),n.set("W",t),n.set("FirstChar",t[0]),n.set("LastChar",t.at(-2)+t.at(-1).length-1);const r=new a.Dict(null);n.set("FontDescriptor",r);const i=new a.Dict(null);return i.set("Ordering","Identity"),i.set("Registry","Adobe"),i.set("Supplement",0),n.set("CIDSystemInfo",i),n},t.getXfaFontName=h;var r=n(52),a=n(5),i=n(53),o=n(54),s=n(55),l=n(56),c=n(6),u=n(38);const d=(0,c.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:s.MyriadProRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:s.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:s.MyriadProBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:s.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:s.MyriadProItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:s.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:s.MyriadProBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:s.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:r.CalibriRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:r.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:r.CalibriBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:r.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:r.CalibriItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:r.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.CalibriBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:r.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:i.HelveticaRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:i.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:i.HelveticaBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:i.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:i.HelveticaItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:i.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.HelveticaBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:i.HelveticaBoldItalicMetrics}}));function h(e){const t=(0,u.normalizeFontName)(e);return d()[t]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0,t.CalibriBoldFactors=[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],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[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],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[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],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[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],t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0,t.HelveticaBoldFactors=[.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],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.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],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.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],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.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],t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0,t.LiberationSansBoldWidths=[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],t.LiberationSansBoldMapping=[-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],t.LiberationSansBoldItalicWidths=[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],t.LiberationSansBoldItalicMapping=[-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],t.LiberationSansItalicWidths=[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],t.LiberationSansItalicMapping=[-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],t.LiberationSansRegularWidths=[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],t.LiberationSansRegularMapping=[-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]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0,t.MyriadProBoldFactors=[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],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[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],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[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],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[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],t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0,t.SegoeuiBoldFactors=[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],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[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],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[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],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[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],t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t;if("object"!==typeof e)return!1;if(e instanceof r.Dict)t=e;else{if(!(e instanceof o.BaseStream))return!1;t=e.dict}return t.has("FunctionType")};var r=n(5),a=n(2),i=n(58),o=n(7),s=n(59);function l(e){if(!Array.isArray(e))return null;const t=e.length;for(let n=0;n>l)*u,c&=(1<n?e=n:e0&&(h=c[l-1]);let f=i[1];l>1,p=s.length>>1,m=new d(h),g=Object.create(null);let y=8192;const b=new Float32Array(p);return function(e,t,n,r){let a,i,o="";const s=b;for(a=0;ae&&(i=e)),u[a]=i}y>0&&(y--,g[o]=u),n.set(u,r)}}}class u{static get MAX_STACK_SIZE(){return(0,a.shadow)(this,"MAX_STACK_SIZE",100)}constructor(e){this.stack=e?Array.prototype.slice.call(e,0):[]}push(e){if(this.stack.length>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(e){if(this.stack.length+e>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const t=this.stack;for(let n=t.length-e,r=e-1;r>=0;r--,n++)t.push(t[n])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const n=this.stack,r=n.length-e,a=n.length-1,i=r+(t-Math.floor(t/e)*e);for(let o=r,s=a;o0?t.push(s<>l);break;case"ceiling":s=t.pop(),t.push(Math.ceil(s));break;case"copy":s=t.pop(),t.copy(s);break;case"cos":s=t.pop(),t.push(Math.cos(s));break;case"cvi":s=0|t.pop(),t.push(s);break;case"cvr":break;case"div":l=t.pop(),s=t.pop(),t.push(s/l);break;case"dup":t.copy(1);break;case"eq":l=t.pop(),s=t.pop(),t.push(s===l);break;case"exch":t.roll(2,1);break;case"exp":l=t.pop(),s=t.pop(),t.push(s**l);break;case"false":t.push(!1);break;case"floor":s=t.pop(),t.push(Math.floor(s));break;case"ge":l=t.pop(),s=t.pop(),t.push(s>=l);break;case"gt":l=t.pop(),s=t.pop(),t.push(s>l);break;case"idiv":l=t.pop(),s=t.pop(),t.push(s/l|0);break;case"index":s=t.pop(),t.index(s);break;case"le":l=t.pop(),s=t.pop(),t.push(s<=l);break;case"ln":s=t.pop(),t.push(Math.log(s));break;case"log":s=t.pop(),t.push(Math.log(s)/Math.LN10);break;case"lt":l=t.pop(),s=t.pop(),t.push(s=t?new p(t):e.max<=t?e:new g(e,t)}class A{compile(e,t,n){const r=[],a=[],i=t.length>>1,o=n.length>>1;let s,l,c,u,d,h,m,g,A=0;for(let p=0;pe.min&&(o.unshift("Math.max(",a,", "),o.push(")")),i{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=n(2),a=n(5),i=n(6);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(o.LBRACE),this.parseBlock(),this.expect(o.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(o.NUMBER))this.operators.push(this.prev.value);else if(this.accept(o.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(o.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(o.RBRACE),this.accept(o.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(o.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const n=this.operators.length;this.parseBlock(),this.expect(o.RBRACE),this.expect(o.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=n,this.operators[e+1]="jz"}}}};const o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class s{static get opCache(){return(0,r.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){const t=s.opCache[e];return t||(s.opCache[e]=new s(o.OPERATOR,e))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new s(o.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new s(o.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new s(o.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new s(o.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){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 s(o.NUMBER,this.getNumber());case 123:return this.nextChar(),s.LBRACE;case 125:return this.nextChar(),s.RBRACE}const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));const r=n.join("");switch(r.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const n=parseFloat(t.join(""));if(isNaN(n))throw new r.FormatError(`Invalid floating point number: ${n}`);return n}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var r=n(2),a=n(5);class i{constructor(e){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(e&&e.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new a.RefSetCache}getByName(e){this._onlyRefs&&(0,r.unreachable)("Should not call `getByName` method.");const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,n){(0,r.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class extends i{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalColorSpaceCache=class extends i{set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalFunctionCache=class extends i{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}},t.LocalGStateCache=class extends i{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalTilingPatternCache=class extends i{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}};class o{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 a.RefSetCache,this._imageCache=new a.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=!0;const m=e.length;if(0===m||n)return d(e,p,n);h.length=m,f.length=m;let g,y,b=0;for(g=0;g4?(p=!0,t=0):(p=!1,t=1));const v=[];for(g=0;g=0&&"ET"===f[e];--e)f[e]="EN";for(let e=g+1;e0&&(t=f[g-1]);let n=S;e+1C&&o(C)&&(_=C);for(C=O;C>=_;--C){let e=-1;for(g=0,y=v.length;g=0&&(u(h,e,g),e=-1):e<0&&(e=g);e>=0&&u(h,e,v.length)}for(g=0,y=h.length;g"!==e||(h[g]="")}return d(h.join(""),p)};var r=n(2);const a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","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"],i=["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 o(e){return 0!==(1&e)}function s(e){return 0===(1&e)}function l(e,t,n){let r,a;for(r=t,a=e.length;r2&&void 0!==arguments[2]&&arguments[2]?n="ttb":t||(n="rtl"),{str:e,dir:n}}const h=[],f=[]},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(2);const a=3285377520,i=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:a,this.h2=e?4294967295&e:a}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,a=e.length;r>>8,t[n++]=255&a)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const a=n>>2,s=n-4*a,l=new Uint32Array(t.buffer,0,a);let c=0,u=0,d=this.h1,h=this.h2;const f=3432918353,p=461845907,m=11601,g=13715;for(let r=0;r>>17,c=c*p&i|c*g&o,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*f&i|u*m&o,u=u<<15|u>>>17,u=u*p&i|u*g&o,h^=u,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,s){case 3:c^=t[4*a+2]<<16;case 2:c^=t[4*a+1]<<8;case 1:c^=t[4*a],c=c*f&i|c*m&o,c=c<<15|c>>>17,c=c*p&i|c*g&o,1&a?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var r=n(2);function a(e,t,n,r,a){let i=e;for(let o=0,s=t.length-1;o1e3&&(u=Math.max(u,f),p+=h+2,f=0,h=0),d.push({transform:e,x:f,y:p,w:t.width,h:t.height}),f+=t.width+2,h=Math.max(h,t.height)}const m=Math.max(u,f)+1,g=p+h+1,y=new Uint8Array(m*g*4),b=m<<2;for(let r=0;r=0;)e[i-4]=e[i],e[i-3]=e[i+1],e[i-2]=e[i+2],e[i-1]=e[i+3],e[i+t]=e[i+t-4],e[i+t+1]=e[i+t-3],e[i+t+2]=e[i+t-2],e[i+t+3]=e[i+t-1],i-=b}return n.splice(o,4*c,r.OPS.paintInlineImageXObjectGroup),a.splice(o,4*c,[{width:m,height:g,kind:r.ImageKind.RGBA_32BPP,data:y},d]),o+1})),a(i,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,(function(e,t){const n=e.fnArray,a=(t-(e.iCurr-3))%4;switch(a){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintImageMaskXObject;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${a}`)}),(function(e,t){const n=e.fnArray,a=e.argsArray,i=e.iCurr,o=i-3,s=i-2,l=i-1;let c=Math.floor((t-o)/4);if(c<10)return t-(t-o)%4;let u,d,h=!1;const f=a[l][0],p=a[s][0],m=a[s][1],g=a[s][2],y=a[s][3];if(m===g){h=!0,u=s+4;let e=l+4;for(let t=1;t=4&&n[i-4]===n[o]&&n[i-3]===n[s]&&n[i-2]===n[l]&&n[i-1]===n[c]&&r[i-4][0]===u&&r[i-4][1]===d&&(h++,f-=5);let p=f+4;for(let m=1;m=n)break}r=(r||i)[e[t]],r&&!Array.isArray(r)?(o.iCurr=t,t++,!r.checkFn||(0,r.checkFn)(o)?(a=r,r=null):r=null):t++}this.state=r,this.match=a,this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class l{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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this._streamSink=t,this.fnArray=[],this.argsArray=[],!t||e&r.RenderingIntentFlag.OPLIST?this.optimizer=new o(this):this.optimizer=new s(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?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(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=l.CHUNK_SIZE||this.weight>=l.CHUNK_SIZE_ABOUT&&(e===r.OPS.restore||e===r.OPS.endText))&&this.flush()}addImageOps(e,t,n){void 0!==n&&this.addOp(r.OPS.beginMarkedContentProps,["OC",n]),this.addOp(e,t),void 0!==n&&this.addOp(r.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(r.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof l){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,n=e.length;t0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();const n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}t.OperatorList=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=n(2),a=n(64),i=n(7),o=n(14),s=n(19),l=n(27),c=n(30),u=n(5);function d(e,t,n,r){return(e=t+e*n)<0?e=0:e>r&&(e=r),e}function h(e,t,n,r,a,i){const o=a*i;let s;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);const l=n/a,c=r/i;let u,d,h,f,p=0;const m=new Uint16Array(a),g=n;for(u=0;u0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==v||a.height!==w)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),v=a.width,w=a.height),v<1||w<1)throw new r.FormatError(`Invalid image width: ${v} or height: ${w}`);this.width=v,this.height=w,this.interpolate=g.get("I","Interpolate"),this.imageMask=g.get("IM","ImageMask")||!1,this.matte=g.get("Matte")||!1;let x=a.bitsPerComponent;if(!x&&(x=g.get("BPC","BitsPerComponent"),!x)){if(!this.imageMask)throw new r.FormatError(`Bits per component missing in image: ${this.imageMask}`);x=1}if(this.bpc=x,!this.imageMask){let e=g.getRaw("CS")||g.getRaw("ColorSpace");if(!e)switch((0,r.info)("JPX images (which do not require color spaces)"),a.numComps){case 1:e=u.Name.get("DeviceGray");break;case 3:e=u.Name.get("DeviceRGB");break;case 4:e=u.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${a.numComps} color components not supported.`)}this.colorSpace=o.ColorSpace.parse({cs:e,xref:t,resources:s?n:null,pdfFunctionFactory:p,localColorSpaceCache:m}),this.numComps=this.colorSpace.numComps}if(this.decode=g.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||h&&!o.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const e=(1<>3)*r,l=t.byteLength;let c,u;if(!a||i&&s!==l?i?(c=new Uint8Array(s),c.set(t),c.fill(255,l)):c=new Uint8Array(t):c=t,i)for(u=0;u>7&1,o[h+1]=d>>6&1,o[h+2]=d>>5&1,o[h+3]=d>>4&1,o[h+4]=d>>3&1,o[h+5]=d>>2&1,o[h+6]=d>>1&1,o[h+7]=1&d,h+=8;if(h>=1}}else{let n=0;for(d=0,h=0,u=i;h>r;a<0?a=0:a>c&&(a=c),o[h]=a,d&=(1<s[r+1]){t=255;break}}l[d]=t}}}if(l)for(d=0,m=3,p=t*a;d0&&void 0!==arguments[0]&&arguments[0];const t=this.drawWidth,n=this.drawHeight,a={width:t,height:n,interpolate:this.interpolate,kind:0,data:null},i=this.numComps,o=this.width,s=this.height,c=this.bpc,u=o*i*c+7>>3;if(!e){let e;if("DeviceGray"===this.colorSpace.name&&1===c?e=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(e=r.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&t===o&&n===s){if(a.kind=e,a.data=this.getImageBytes(s*u,{}),this.needsDecode){(0,r.assert)(e===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const t=a.data;for(let e=0,n=t.length;e>3,s=this.getImageBytes(a*o,{internal:!0}),l=this.getComponents(s);let c,u;if(1===i){if(u=n*a,this.needsDecode)for(c=0;c{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:n=0,dest:a,destPos:i=0,width:o,height:s,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[0,c]:[c,0],h=o>>3,f=7&o,p=t.length;a=new Uint32Array(a.buffer);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=function(e){let{originalData:t,xrefInfo:n,newRefs:s,xref:u=null,hasXfa:d=!1,xfaDatasetsRef:p=null,hasXfaDatasetsEntry:m=!1,acroFormRef:g=null,acroForm:y=null,xfaData:b=null}=e;d&&function(e){let{xfaData:t,xfaDatasetsRef:n,hasXfaDatasetsEntry:a,acroFormRef:s,acroForm:l,newRefs:u,xref:d,xrefInfo:h}=e;if(null===d)return;if(!a){if(!s)return void(0,r.warn)("XFA - Cannot save it");const e=l.get("XFA"),t=e.slice();t.splice(2,0,"datasets"),t.splice(3,0,n),l.set("XFA",t);const a=d.encrypt;let i=null;a&&(i=a.createCipherTransform(s.num,s.gen));const o=[`${s.num} ${s.gen} obj\n`];c(l,o,i),o.push("\n"),l.set("XFA",e),u.push({ref:s,data:o.join("")})}null===t&&(t=function(e,t){const n=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:s}of t){if(!s)continue;const{path:e,value:t}=s;if(!e)continue;const a=n.documentElement.searchNode((0,i.parseXFAPath)(e),0);a?Array.isArray(t)?a.childNodes=t.map((e=>new o.SimpleDOMNode("value",e))):a.childNodes=[new o.SimpleDOMNode("#text",t)]:(0,r.warn)(`Node not found for path: ${e}`)}const a=[];return n.documentElement.dump(a),a.join("")}(d.fetchIfRef(n).getString(),u));const f=d.encrypt;f&&(t=f.createCipherTransform(n.num,n.gen).encryptString(t));const p=`${n.num} ${n.gen} obj\n<< /Type /EmbeddedFile /Length ${t.length}>>\nstream\n`+t+"\nendstream\nendobj\n";u.push({ref:n,data:p})}({xfaData:b,xfaDatasetsRef:p,hasXfaDatasetsEntry:m,acroFormRef:g,acroForm:y,newRefs:s,xref:u,xrefInfo:n});const v=new a.Dict(null),w=n.newRef;let x,S;const k=t.at(-1);10===k||13===k?(x=[],S=t.length):(x=["\n"],S=t.length+1),v.set("Size",w.num+1),v.set("Prev",n.startXRef),v.set("Type",a.Name.get("XRef")),null!==n.rootRef&&v.set("Root",n.rootRef),null!==n.infoRef&&v.set("Info",n.infoRef),null!==n.encryptRef&&v.set("Encrypt",n.encryptRef),s.push({ref:w,data:""}),s=s.sort(((e,t)=>e.ref.num-t.ref.num));const A=[[0,1,65535]],C=[0,1];let O=0;for(const{ref:r,data:a}of s)O=Math.max(O,S),A.push([1,S,Math.min(r.gen,65535)]),S+=a.length,C.push(r.num,1),x.push(a);if(v.set("Index",C),Array.isArray(n.fileIds)&&n.fileIds.length>0){const e=function(e,t){const n=Math.floor(Date.now()/1e3),a=t.filename||"",i=[n.toString(),a,e.toString()];let o=i.reduce(((e,t)=>e+t.length),0);for(const r of Object.values(t.info))i.push(r),o+=r.length;const s=new Uint8Array(o);let c=0;for(const r of i)f(r,c,s),c+=r.length;return(0,r.bytesToString)((0,l.calculateMD5)(s))}(S,n);v.set("ID",[n.fileIds[0],e])}const _=[1,Math.ceil(Math.log2(O)/8),2],j=(_[0]+_[1]+_[2])*A.length;v.set("W",_),v.set("Length",j),x.push(`${w.num} ${w.gen} obj\n`),c(v,x,null),x.push(" stream\n");const P=x.reduce(((e,t)=>e+t.length),0),T=`\nendstream\nendobj\nstartxref\n${S}\n%%EOF\n`,E=new Uint8Array(t.length+P+j+T.length);E.set(t);let M=t.length;for(const r of x)f(r,M,E),M+=r.length;for(const[r,a,i]of A)M=h(r,_[0],M,E),M=h(a,_[1],M,E),M=h(i,_[2],M,E);return f(T,M,E),E},t.writeDict=c,t.writeObject=function(e,t,n,r){n.push(`${e.num} ${e.gen} obj\n`),t instanceof a.Dict?c(t,n,r):t instanceof s.BaseStream&&u(t,n,r),n.push("\nendobj\n")};var r=n(2),a=n(5),i=n(6),o=n(66),s=n(7),l=n(67);function c(e,t,n){t.push("<<");for(const r of e.getKeys())t.push(` /${(0,i.escapePDFName)(r)} `),d(e.getRaw(r),t,n);t.push(">>")}function u(e,t,n){c(e.dict,t,n),t.push(" stream\n");let r=e.getString();null!==n&&(r=n.encryptString(r)),t.push(r,"\nendstream\n")}function d(e,t,n){e instanceof a.Name?t.push(`/${(0,i.escapePDFName)(e.name)}`):e instanceof a.Ref?t.push(`${e.num} ${e.gen} R`):Array.isArray(e)?function(e,t,n){t.push("[");let r=!0;for(const a of e)r?r=!1:t.push(" "),d(a,t,n);t.push("]")}(e,t,n):"string"===typeof e?(null!==n&&(e=n.encryptString(e)),t.push(`(${(0,r.escapeString)(e)})`)):"number"===typeof e?t.push((0,i.numberToString)(e)):"boolean"===typeof e?t.push(e.toString()):e instanceof a.Dict?c(e,t,n):e instanceof s.BaseStream?u(e,t,n):null===e?t.push("null"):(0,r.warn)(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function h(e,t,n,r){for(let a=t+n-1;a>n-1;a--)r[a]=255&e,e>>=8;return n+t}function f(e,t,n){for(let r=0,a=e.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var r=n(6);const a={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function i(e,t){const n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}t.XMLParserErrorCode=a;class o{_resolveEntities(e){return e.replace(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const n=[];let r=t;function a(){for(;r"!==e[r]&&"/"!==e[r];)++r;const o=e.substring(t,r);for(a();r"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){a();let t="",o="";for(;r"!==e[n]&&"?"!==e[n]&&"/"!==e[n];)++n;const r=e.substring(t,n);!function(){for(;n"!==e[n+1]);)++n;return{name:r,value:e.substring(a,n),parsed:n-t}}parseXml(e){let t=0;for(;t",n),t<0)return void this.onError(a.UnterminatedElement);this.onEndElement(e.substring(n,t)),n=t+1;break;case"?":++n;const r=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+r.parsed,n+r.parsed+2))return void this.onError(a.UnterminatedXmlDeclaration);this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(t=e.indexOf("--\x3e",n+3),t<0)return void this.onError(a.UnterminatedComment);this.onComment(e.substring(n+3,t)),n=t+3}else if("[CDATA["===e.substring(n+1,n+8)){if(t=e.indexOf("]]>",n+8),t<0)return void this.onError(a.UnterminatedCdat);this.onCdata(e.substring(n+8,t)),n=t+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(a.MalformedElement);{const r=e.indexOf("[",n+8);let i=!1;if(t=e.indexOf(">",n+8),t<0)return void this.onError(a.UnterminatedDoctypeDeclaration);if(r>0&&t>r){if(t=e.indexOf("]>",n+8),t<0)return void this.onError(a.UnterminatedDoctypeDeclaration);i=!0}const o=e.substring(n+8,t+(i?1:0));this.onDoctype(o),n=t+(i?2:1)}}break;default:const i=this._parseContent(e,n);if(null===i)return void this.onError(a.MalformedElement);let o=!1;if("/>"===e.substring(n+i.parsed,n+i.parsed+2))o=!0;else if(">"!==e.substring(n+i.parsed,n+i.parsed+1))return void this.onError(a.UnterminatedElement);this.onBeginElement(i.name,i.attributes,o),n+=i.parsed+(o?2:1)}}else{for(;n0}searchNode(e,t){if(t>=e.length)return this;const n=e[t],r=[];let a=this;for(;;){if(n.name===a.nodeName){if(0!==n.pos){if(0===r.length)return null;{const[i]=r.pop();let o=0;for(const r of i.childNodes)if(n.name===r.nodeName){if(o===n.pos)return r.searchNode(e,t+1);o++}return a.searchNode(e,t+1)}}{const n=a.searchNode(e,t+1);if(null!==n)return n}}if(a.childNodes&&0!==a.childNodes.length)r.push([a,0]),a=a.childNodes[0];else{if(0===r.length)return null;for(;0!==r.length;){const[e,t]=r.pop(),n=t+1;if(n");for(const t of this.childNodes)t.dump(e);e.push(``)}else this.nodeValue?e.push(`>${(0,r.encodeToXmlString)(this.nodeValue)}`):e.push("/>")}else e.push((0,r.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=s,t.SimpleXMLParser=class extends o{constructor(e){let{hasAttributes:t=!1,lowerCaseName:n=!1}=e;super(),this._currentFragment=null,this._stack=null,this._errorCode=a.NoError,this._hasAttributes=t,this._lowerCaseName=n}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=a.NoError,this.parseXml(e),this._errorCode!==a.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,n=e.length;t{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=d,t.calculateSHA512=void 0;var r=n(2),a=n(5),i=n(68);class o{constructor(e){this.a=0,this.b=0;const t=new Uint8Array(256),n=e.length;for(let r=0;r<256;++r)t[r]=r;for(let r=0,a=0;r<256;++r){const i=t[r];a=a+i+e[r%n]&255,t[r]=t[a],t[a]=i}this.s=t}encryptBlock(e){let t=this.a,n=this.b;const r=this.s,a=e.length,i=new Uint8Array(a);for(let o=0;o>5&255,u[d++]=a>>13&255,u[d++]=a>>21&255,u[d++]=a>>>29&255,u[d++]=0,u[d++]=0,u[d++]=0;const p=new Int32Array(16);for(d=0;d>>32-s)|0,a=i}i=i+a|0,o=o+c|0,s=s+f|0,l=l+m|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255])}}();t.calculateMD5=s;class l{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<>>32-e,this.low<<=e)}rotateRight(e){let t,n;32&e?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}const o=[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];return function(s,l,c){let u=1779033703,d=3144134277,h=1013904242,f=2773480762,p=1359893119,m=2600822924,g=528734635,y=1541459225;const b=64*Math.ceil((c+9)/64),v=new Uint8Array(b);let w,x;for(w=0;w>>29&255,v[w++]=c>>21&255,v[w++]=c>>13&255,v[w++]=c>>5&255,v[w++]=c<<3&255;const k=new Uint32Array(64);for(w=0;w>>10)+k[x-7]+i(k[x-15])+k[x-16];let s,l,c=u,b=d,S=h,C=f,O=p,_=m,j=g,P=y;for(x=0;x<64;++x)s=P+a(O)+t(O,_,j)+o[x]+k[x],l=r(c)+n(c,b,S),P=j,j=_,_=O,O=C+s|0,C=S,S=b,b=c,c=s+l|0;u=u+c|0,d=d+b|0,h=h+S|0,f=f+C|0,p=p+O|0,m=m+_|0,g=g+j|0,y=y+P|0}var A;return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,h>>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,g>>24&255,g>>16&255,g>>8&255,255&g,y>>24&255,y>>16&255,y>>8&255,255&y])}}();t.calculateSHA256=c;const u=function(){function e(e,t,n,r,a){e.assign(t),e.and(n),a.assign(t),a.not(),a.and(r),e.xor(a)}function t(e,t,n,r,a){e.assign(t),e.and(n),a.assign(t),a.and(r),e.xor(a),a.assign(n),a.and(r),e.xor(a)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}const o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];return function(s,c,u){let d,h,f,p,m,g,y,b,v=arguments.length>3&&void 0!==arguments[3]&&arguments[3];v?(d=new l(3418070365,3238371032),h=new l(1654270250,914150663),f=new l(2438529370,812702999),p=new l(355462360,4144912697),m=new l(1731405415,4290775857),g=new l(2394180231,1750603025),y=new l(3675008525,1694076839),b=new l(1203062813,3204075428)):(d=new l(1779033703,4089235720),h=new l(3144134277,2227873595),f=new l(1013904242,4271175723),p=new l(2773480762,1595750129),m=new l(1359893119,2917565137),g=new l(2600822924,725511199),y=new l(528734635,4215389547),b=new l(1541459225,327033209));const w=128*Math.ceil((u+17)/128),x=new Uint8Array(w);let S,k;for(S=0;S>>29&255,x[S++]=u>>21&255,x[S++]=u>>13&255,x[S++]=u>>5&255,x[S++]=u<<3&255;const C=new Array(80);for(S=0;S<80;S++)C[S]=new l(0,0);let O=new l(0,0),_=new l(0,0),j=new l(0,0),P=new l(0,0),T=new l(0,0),E=new l(0,0),M=new l(0,0),N=new l(0,0);const I=new l(0,0),D=new l(0,0),F=new l(0,0),R=new l(0,0);let $,L;for(S=0;S=1;--o){n=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=n,n=i[14],r=i[10],i[14]=i[6],i[10]=i[2],i[6]=n,i[2]=r,n=i[15],r=i[11],a=i[7],i[15]=i[3],i[11]=n,i[7]=r,i[3]=a;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]];for(let e=0,n=16*o;e<16;++e,++n)i[e]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[i[e]],r=this._mix[i[e+1]],a=this._mix[i[e+2]],o=this._mix[i[e+3]];n=t^r>>>8^r<<24^a>>>16^a<<16^o>>>24^o<<8,i[e]=n>>>24&255,i[e+1]=n>>16&255,i[e+2]=n>>8&255,i[e+3]=255&n}}n=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=n,n=i[14],r=i[10],i[14]=i[6],i[10]=i[2],i[6]=n,i[2]=r,n=i[15],r=i[11],a=i[7],i[15]=i[3],i[11]=n,i[7]=r,i[3]=a;for(let o=0;o<16;++o)i[o]=this._inv_s[i[o]],i[o]^=t[o];return i}_encrypt(e,t){const n=this._s;let r,a,i;const o=new Uint8Array(16);o.set(e);for(let s=0;s<16;++s)o[s]^=t[s];for(let s=1;s=r;--n)if(e[n]!==t){t=0;break}s-=t,i[i.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(s);for(let c=0,u=0,d=i.length;c2&&void 0!==arguments[2]?arguments[2]:null;const r=e.length,a=this.buffer;let i=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;i<16&&t=256&&(s=255&(27^s)));for(let e=0;e<4;++e)n[l]=r^=n[l-32],l++,n[l]=a^=n[l-32],l++,n[l]=i^=n[l-32],l++,n[l]=o^=n[l-32],l++}return n}}t.AES256Cipher=m;class g{checkOwnerPassword(e,t,n,a){const i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);const o=c(i,0,i.length);return(0,r.isArrayEqual)(o,a)}checkUserPassword(e,t,n){const a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);const i=c(a,0,a.length);return(0,r.isArrayEqual)(i,n)}getOwnerKey(e,t,n,r){const a=new Uint8Array(e.length+56);a.set(e,0),a.set(t,e.length),a.set(n,e.length+t.length);const i=c(a,0,a.length);return new m(i).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){const r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);const a=c(r,0,r.length);return new m(a).decryptBlock(n,!1,new Uint8Array(16))}}t.PDF17=g;const y=function(){function e(e,t,n){let r=c(t,0,t.length).subarray(0,32),a=[0],i=0;for(;i<64||a.at(-1)>i-32;){const t=e.length+r.length+n.length,o=new Uint8Array(t);let s=0;o.set(e,s),s+=e.length,o.set(r,s),s+=r.length,o.set(n,s);const l=new Uint8Array(64*t);for(let e=0,n=0;e<64;e++,n+=t)l.set(o,n);a=new p(r.subarray(0,16)).encrypt(l,r.subarray(16,32));let h=0;for(let e=0;e<16;e++)h*=1,h%=3,h+=(a[e]>>>0)%3,h%=3;0===h?r=c(a,0,a.length):1===h?r=d(a,0,a.length):2===h&&(r=u(a,0,a.length)),i++}return r.subarray(0,32)}return class{hash(t,n,r){return e(t,n,r)}checkOwnerPassword(t,n,a,i){const o=new Uint8Array(t.length+56);o.set(t,0),o.set(n,t.length),o.set(a,t.length+n.length);const s=e(t,o,a);return(0,r.isArrayEqual)(s,i)}checkUserPassword(t,n,a){const i=new Uint8Array(t.length+8);i.set(t,0),i.set(n,t.length);const o=e(t,i,[]);return(0,r.isArrayEqual)(o,a)}getOwnerKey(t,n,r,a){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(n,t.length),i.set(r,t.length+n.length);const o=e(t,i,r);return new m(o).decryptBlock(a,!1,new Uint8Array(16))}getUserKey(t,n,r){const a=new Uint8Array(t.length+8);a.set(t,0),a.set(n,t.length);const i=e(t,a,[]);return new m(i).decryptBlock(r,!1,new Uint8Array(16))}}}();t.PDF20=y;class b{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const n=new this.StreamCipherConstructor;return new i.DecryptStream(e,t,(function(e,t){return n.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor;let n=(0,r.stringToBytes)(e);return n=t.decryptBlock(n,!0),(0,r.bytesToString)(n)}encryptString(e){const t=new this.StringCipherConstructor;if(t instanceof f){const n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);const a=new Uint8Array(16);if("undefined"!==typeof crypto)crypto.getRandomValues(a);else for(let e=0;e<16;e++)a[e]=Math.floor(256*Math.random());let i=(0,r.stringToBytes)(e);i=t.encrypt(i,a);const o=new Uint8Array(16+i.length);return o.set(a),o.set(i,16),(0,r.bytesToString)(o)}let n=(0,r.stringToBytes)(e);return n=t.encrypt(n),(0,r.bytesToString)(n)}}const v=function(){const e=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 t(t,n,r,a,i,l,c,u){const d=40+r.length+t.length,h=new Uint8Array(d);let f,p,m=0;if(n)for(p=Math.min(32,n.length);m>8&255,h[m++]=i>>16&255,h[m++]=i>>>24&255,f=0,p=t.length;f=4&&!u&&(h[m++]=255,h[m++]=255,h[m++]=255,h[m++]=255);let g=s(h,0,m);const y=c>>3;if(l>=3)for(f=0;f<50;++f)g=s(g,0,y);const b=g.subarray(0,y);let v,w;if(l>=3){for(m=0;m<32;++m)h[m]=e[m];for(f=0,p=t.length;f3&&void 0!==arguments[3]&&arguments[3];const a=new Uint8Array(n.length+9),i=n.length;let o;for(o=0;o>8&255,a[o++]=e>>16&255,a[o++]=255&t,a[o++]=t>>8&255,r&&(a[o++]=115,a[o++]=65,a[o++]=108,a[o++]=84),s(a,0,o).subarray(0,Math.min(n.length+5,16))}function l(e,t,n,s,l){if(!(t instanceof a.Name))throw new r.FormatError("Invalid crypt filter name.");const c=e.get(t.name);let u;if(null!==c&&void 0!==c&&(u=c.get("CFM")),!u||"None"===u.name)return function(){return new h};if("V2"===u.name)return function(){return new o(i(n,s,l,!1))};if("AESV2"===u.name)return function(){return new p(i(n,s,l,!0))};if("AESV3"===u.name)return function(){return new m(l)};throw new r.FormatError("Unknown crypto method")}return class{constructor(i,l,c){const u=i.get("Filter");if(!(0,a.isName)(u,"Standard"))throw new r.FormatError("unknown encryption method");this.filterName=u.name,this.dict=i;const d=i.get("V");if(!Number.isInteger(d)||1!==d&&2!==d&&4!==d&&5!==d)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=d;let h=i.get("Length");if(!h)if(d<=3)h=40;else{const e=i.get("CF"),t=i.get("StmF");if(e instanceof a.Dict&&t instanceof a.Name){e.suppressEncryption=!0;const n=e.get(t.name);h=n&&n.get("Length")||128,h<40&&(h<<=3)}}if(!Number.isInteger(h)||h<40||h%8!==0)throw new r.FormatError("invalid key length");const f=(0,r.stringToBytes)(i.get("O")).subarray(0,32),p=(0,r.stringToBytes)(i.get("U")).subarray(0,32),m=i.get("P"),b=i.get("R"),v=(4===d||5===d)&&!1!==i.get("EncryptMetadata");this.encryptMetadata=v;const w=(0,r.stringToBytes)(l);let x,S;if(c){if(6===b)try{c=(0,r.utf8StringToString)(c)}catch(k){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,r.stringToBytes)(c)}if(5!==d)S=t(w,x,f,p,m,b,h,v);else{const e=(0,r.stringToBytes)(i.get("O")).subarray(32,40),t=(0,r.stringToBytes)(i.get("O")).subarray(40,48),n=(0,r.stringToBytes)(i.get("U")).subarray(0,48),a=(0,r.stringToBytes)(i.get("U")).subarray(32,40),o=(0,r.stringToBytes)(i.get("U")).subarray(40,48),s=(0,r.stringToBytes)(i.get("OE")),l=(0,r.stringToBytes)(i.get("UE"));(0,r.stringToBytes)(i.get("Perms")),S=function(e,t,n,r,a,i,o,s,l,c,u,d){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];let h;return h=6===e?new y:new g,h.checkUserPassword(t,s,o)?h.getUserKey(t,l,u):t.length&&h.checkOwnerPassword(t,r,i,n)?h.getOwnerKey(t,a,i,c):null}(b,x,f,e,t,n,p,a,o,s,l)}if(!S&&!c)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!S&&c){const n=function(t,n,r,a){const i=new Uint8Array(32);let l=0;const c=Math.min(32,t.length);for(;l>3;if(r>=3)for(u=0;u<50;++u)d=s(d,0,d.length);let f,p;if(r>=3){p=n;const e=new Uint8Array(h);for(u=19;u>=0;u--){for(let t=0;t=4){const e=i.get("CF");e instanceof a.Dict&&(e.suppressEncryption=!0),this.cf=e,this.stmf=i.get("StmF")||n,this.strf=i.get("StrF")||n,this.eff=i.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new b(l(this.cf,this.strf,e,t,this.encryptionKey),l(this.cf,this.stmf,e,t,this.encryptionKey));const n=i(e,t,this.encryptionKey,!1),r=function(){return new o(n)};return new b(r,r)}}}();t.CipherTransformFactory=v},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var r=n(19);class a extends r.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.decrypt=n,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),!e||0===e.length)return void(this.eof=!0);this.nextChunk=this.str.getBytes(512);const t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);let n=this.bufferLength;const r=e.length,a=this.ensureBuffer(n+r);for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var r=n(6),a=n(2),i=n(5),o=n(70),s=n(7),l=n(71),c=n(14),u=n(72),d=n(59),h=n(73),f=n(74);function p(e){return e instanceof i.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class m{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof i.Dict))throw new a.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new d.GlobalImageCache,this.pageKidsCountCache=new i.RefSetCache,this.pageIndexCache=new i.RefSetCache,this.nonBlendModesSet=new i.RefSet}get version(){const e=this._catDict.get("Version");return(0,a.shadow)(this,"version",e instanceof i.Name?e.name:null)}get lang(){const e=this._catDict.get("Lang");return(0,a.shadow)(this,"lang","string"===typeof e?(0,a.stringToPDFString)(e):null)}get needsRendering(){const e=this._catDict.get("NeedsRendering");return(0,a.shadow)(this,"needsRendering","boolean"===typeof e&&e)}get collection(){let e=null;try{const t=this._catDict.get("Collection");t instanceof i.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,a.shadow)(this,"collection",e)}get acroForm(){let e=null;try{const t=this._catDict.get("AcroForm");t instanceof i.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,a.shadow)(this,"acroForm",e)}get acroFormRef(){const e=this._catDict.getRaw("AcroForm");return(0,a.shadow)(this,"acroFormRef",e instanceof i.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata");if(!(e instanceof i.Ref))return(0,a.shadow)(this,"metadata",null);let t=null;try{const n=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),r=this.xref.fetch(e,n);if(r instanceof s.BaseStream&&r.dict instanceof i.Dict){const e=r.dict.get("Type"),n=r.dict.get("Subtype");if((0,i.isName)(e,"Metadata")&&(0,i.isName)(n,"XML")){const e=(0,a.stringToUTF8String)(r.getString());e&&(t=new h.MetadataParser(e).serializable)}}}catch(n){if(n instanceof r.MissingDataException)throw n;(0,a.info)(`Skipping invalid Metadata: "${n}".`)}return(0,a.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)("Unable to read mark info.")}return(0,a.shadow)(this,"markInfo",e)}_readMarkInfo(){const e=this._catDict.get("MarkInfo");if(!(e instanceof i.Dict))return null;const t={Marked:!1,UserProperties:!1,Suspects:!1};for(const n in t){const r=e.get(n);"boolean"===typeof r&&(t[n]=r)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)("Unable read to structTreeRoot info.")}return(0,a.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){const e=this._catDict.get("StructTreeRoot");if(!(e instanceof i.Dict))return null;const t=new f.StructTreeRoot(e);return t.init(),t}get toplevelPagesDict(){const e=this._catDict.get("Pages");if(!(e instanceof i.Dict))throw new a.FormatError("Invalid top-level pages dictionary.");return(0,a.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)("Unable to read document outline.")}return(0,a.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this._catDict.get("Outlines");if(!(e instanceof i.Dict))return null;if(e=e.getRaw("First"),!(e instanceof i.Ref))return null;const t={items:[]},n=[{obj:e,parent:t}],r=new i.RefSet;r.put(e);const o=this.xref,s=new Uint8ClampedArray(3);for(;n.length>0;){const t=n.shift(),l=o.fetchIfRef(t.obj);if(null===l)continue;if(!l.has("Title"))throw new a.FormatError("Invalid outline item encountered.");const u={url:null,dest:null};m.parseDestDictionary({destDict:l,resultObj:u,docBaseUrl:this.pdfManager.docBaseUrl});const d=l.get("Title"),h=l.get("F")||0,f=l.getArray("C"),p=l.get("Count");let g=s;!Array.isArray(f)||3!==f.length||0===f[0]&&0===f[1]&&0===f[2]||(g=c.ColorSpace.singletons.rgb.getRgb(f,0));const y={dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,title:(0,a.stringToPDFString)(d),color:g,count:Number.isInteger(p)?p:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};t.parent.items.push(y),e=l.getRaw("First"),e instanceof i.Ref&&!r.has(e)&&(n.push({obj:e,parent:y}),r.put(e)),e=l.getRaw("Next"),e instanceof i.Ref&&!r.has(e)&&(n.push({obj:e,parent:t.parent}),r.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)("Unable to read permissions.")}return(0,a.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof i.Dict))return null;let t=e.get("P");if("number"!==typeof t)return null;t+=2**32;const n=[];for(const r in a.PermissionFlag){const e=a.PermissionFlag[r];t&e&&n.push(e)}return n}get optionalContentConfig(){let e=null;try{const t=this._catDict.get("OCProperties");if(!t)return(0,a.shadow)(this,"optionalContentConfig",null);const n=t.get("D");if(!n)return(0,a.shadow)(this,"optionalContentConfig",null);const r=t.get("OCGs");if(!Array.isArray(r))return(0,a.shadow)(this,"optionalContentConfig",null);const o=[],s=[];for(const e of r){if(!(e instanceof i.Ref))continue;s.push(e);const t=this.xref.fetchIfRef(e);o.push({id:e.toString(),name:"string"===typeof t.get("Name")?(0,a.stringToPDFString)(t.get("Name")):null,intent:"string"===typeof t.get("Intent")?(0,a.stringToPDFString)(t.get("Intent")):null})}e=this._readOptionalContentConfig(n,s),e.groups=o}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)(`Unable to read optional content config: ${t}`)}return(0,a.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,t){function n(e){const n=[];if(Array.isArray(e))for(const r of e)r instanceof i.Ref&&t.includes(r)&&n.push(r.toString());return n}function r(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;const r=[];for(const s of e){if(s instanceof i.Ref&&t.includes(s)){l.put(s),r.push(s.toString());continue}const e=o(s,n);e&&r.push(e)}if(n>0)return r;const a=[];for(const i of t)l.has(i)||a.push(i.toString());return a.length&&r.push({name:null,order:a}),r}function o(e,t){if(++t>c)return(0,a.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const n=s.fetchIfRef(e);if(!Array.isArray(n))return null;const i=s.fetchIfRef(n[0]);if("string"!==typeof i)return null;const o=r(n.slice(1),t);return o&&o.length?{name:(0,a.stringToPDFString)(i),order:o}:null}const s=this.xref,l=new i.RefSet,c=10;return{name:"string"===typeof e.get("Name")?(0,a.stringToPDFString)(e.get("Name")):null,creator:"string"===typeof e.get("Creator")?(0,a.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof i.Name?e.get("BaseState").name:null,on:n(e.get("ON")),off:n(e.get("OFF")),order:r(e.get("Order")),groups:null}}setActualNumPages(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new a.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,a.shadow)(this,"_pagesCount",e)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree)for(const[n,r]of e.getAll()){const e=p(r);e&&(t[(0,a.stringToPDFString)(n)]=e)}else e instanceof i.Dict&&e.forEach((function(e,n){const r=p(n);r&&(t[e]=r)}));return(0,a.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();if(t instanceof o.NameTree){const n=p(t.get(e));if(n)return n;const r=this.destinations[e];if(r)return(0,a.warn)(`Found "${e}" at an incorrect position in the NameTree.`),r}else if(t instanceof i.Dict){const n=p(t.get(e));if(n)return n}return null}_readDests(){const e=this._catDict.get("Names");return e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.warn)("Unable to read page labels.")}return(0,a.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this._catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let n=null,s="";const l=new o.NumberTree(e,this.xref).getAll();let c="",u=1;for(let o=0,d=this.numPages;o=1))throw new a.FormatError("Invalid start in PageLabel dictionary.");u=t}else u=1}switch(n){case"D":c=u;break;case"R":case"r":c=(0,r.toRomanNumerals)(u,"r"===n);break;case"A":case"a":const e=26,t="a"===n?97:65,i=u-1;c=String.fromCharCode(t+i%e).repeat(Math.floor(i/e)+1);break;default:if(n)throw new a.FormatError(`Invalid style "${n}" in PageLabel dictionary.`);c=""}t[o]=s+c,u++}return t}get pageLayout(){const e=this._catDict.get("PageLayout");let t="";if(e instanceof i.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,a.shadow)(this,"pageLayout",t)}get pageMode(){const e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof i.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,a.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=this._catDict.get("ViewerPreferences");if(!(e instanceof i.Dict))return(0,a.shadow)(this,"viewerPreferences",null);let t=null;for(const n of e.getKeys()){const r=e.get(n);let o;switch(n){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"===typeof r&&(o=r);break;case"NonFullScreenPageMode":if(r instanceof i.Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=r.name;break;default:o="UseNone"}break;case"Direction":if(r instanceof i.Name)switch(r.name){case"L2R":case"R2L":o=r.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof i.Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=r.name;break;default:o="CropBox"}break;case"PrintScaling":if(r instanceof i.Name)switch(r.name){case"None":case"AppDefault":o=r.name;break;default:o="AppDefault"}break;case"Duplex":if(r instanceof i.Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=r.name;break;default:o="None"}break;case"PrintPageRange":Array.isArray(r)&&r.length%2===0&&r.every(((e,t,n)=>Number.isInteger(e)&&e>0&&(0===t||e>=n[t-1])&&e<=this.numPages))&&(o=r);break;case"NumCopies":Number.isInteger(r)&&r>0&&(o=r);break;default:(0,a.warn)(`Ignoring non-standard key in ViewerPreferences: ${n}.`);continue}void 0!==o?(t||(t=Object.create(null)),t[n]=o):(0,a.warn)(`Bad value, for key "${n}", in ViewerPreferences: ${r}.`)}return(0,a.shadow)(this,"viewerPreferences",t)}get openAction(){const e=this._catDict.get("OpenAction"),t=Object.create(null);if(e instanceof i.Dict){const n=new i.Dict(this.xref);n.set("A",e);const r={url:null,dest:null,action:null};m.parseDestDictionary({destDict:n,resultObj:r}),Array.isArray(r.dest)?t.dest=r.dest:r.action&&(t.action=r.action)}else Array.isArray(e)&&(t.dest=e);return(0,a.shadow)(this,"openAction",(0,a.objectSize)(t)>0?t:null)}get attachments(){const e=this._catDict.get("Names");let t=null;if(e instanceof i.Dict&&e.has("EmbeddedFiles")){const n=new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,r]of n.getAll()){const n=new u.FileSpec(r,this.xref);t||(t=Object.create(null)),t[(0,a.stringToPDFString)(e)]=n.serializable}}return(0,a.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names");let t=null;if(e instanceof i.Dict&&e.has("XFAImages")){const n=new o.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,r]of n.getAll())t||(t=new i.Dict(this.xref)),t.set((0,a.stringToPDFString)(e),r)}return(0,a.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names");let t=null;function n(e,n){if(!(n instanceof i.Dict))return;if(!(0,i.isName)(n.get("S"),"JavaScript"))return;let r=n.get("JS");if(r instanceof s.BaseStream)r=r.getString();else if("string"!==typeof r)return;null===t&&(t=new Map),r=(0,a.stringToPDFString)(r).replace(/\u0000/g,""),t.set(e,r)}if(e instanceof i.Dict&&e.has("JavaScript")){const t=new o.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,r]of t.getAll())n((0,a.stringToPDFString)(e),r)}const r=this._catDict.get("OpenAction");return r&&n("OpenAction",r),t}get javaScript(){const e=this._collectJavaScript();return(0,a.shadow)(this,"javaScript",e?[...e.values()]:null)}get jsActions(){const e=this._collectJavaScript();let t=(0,r.collectActions)(this.xref,this._catDict,a.DocumentActionEventType);if(e){t||(t=Object.create(null));for(const[n,r]of e)n in t?t[n].push(r):t[n]=[r]}return(0,a.shadow)(this,"jsActions",t)}async fontFallback(e,t){const n=await Promise.all(this.fontCache);for(const r of n)if(r.loadedName===e)return void r.fallback(t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,l.clearGlobalCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const t=await Promise.all(this.fontCache);for(const{dict:n}of t)delete n.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],n=new i.RefSet,r=this._catDict.getRaw("Pages");r instanceof i.Ref&&n.put(r);const o=this.xref,s=this.pageKidsCountCache,l=this.pageIndexCache;let c=0;for(;t.length;){const r=t.pop();if(r instanceof i.Ref){const u=s.get(r);if(u>=0&&c+u<=e){c+=u;continue}if(n.has(r))throw new a.FormatError("Pages tree contains circular reference.");n.put(r);const d=await o.fetchAsync(r);if(d instanceof i.Dict){let t=d.getRaw("Type");if(t instanceof i.Ref&&(t=await o.fetchAsync(t)),(0,i.isName)(t,"Page")||!d.has("Kids")){if(s.has(r)||s.put(r,1),l.has(r)||l.put(r,c),c===e)return[d,r];c++;continue}}t.push(d);continue}if(!(r instanceof i.Dict))throw new a.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:u}=r;let d=r.getRaw("Count");if(d instanceof i.Ref&&(d=await o.fetchAsync(d)),Number.isInteger(d)&&d>=0&&(u&&!s.has(u)&&s.put(u,d),c+d<=e)){c+=d;continue}let h=r.getRaw("Kids");if(h instanceof i.Ref&&(h=await o.fetchAsync(h)),!Array.isArray(h)){let t=r.getRaw("Type");if(t instanceof i.Ref&&(t=await o.fetchAsync(t)),(0,i.isName)(t,"Page")||!r.has("Kids")){if(c===e)return[r,null];c++;continue}throw new a.FormatError("Page dictionary kids object is not an array.")}for(let e=h.length-1;e>=0;e--)t.push(h[e])}throw new Error(`Page index ${e} not found.`)}async getAllPageDicts(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[{currentNode:this.toplevelPagesDict,posInKids:0}],n=new i.RefSet,o=this._catDict.getRaw("Pages");o instanceof i.Ref&&n.put(o);const s=new Map,l=this.xref,c=this.pageIndexCache;let u=0;function d(t){if(t instanceof r.XRefEntryException&&!e)throw t;s.set(u++,[t,null])}for(;t.length>0;){const e=t.at(-1),{currentNode:r,posInKids:o}=e;let m=r.getRaw("Kids");if(m instanceof i.Ref)try{m=await l.fetchAsync(m)}catch(p){d(p);break}if(!Array.isArray(m)){d(new a.FormatError("Page dictionary kids object is not an array."));break}if(o>=m.length){t.pop();continue}const g=m[o];let y;if(g instanceof i.Ref){if(n.has(g)){d(new a.FormatError("Pages tree contains circular reference."));break}n.put(g);try{y=await l.fetchAsync(g)}catch(p){d(p);break}}else y=g;if(!(y instanceof i.Dict)){d(new a.FormatError("Page dictionary kid reference points to wrong type of object."));break}let b=y.getRaw("Type");if(b instanceof i.Ref)try{b=await l.fetchAsync(b)}catch(p){d(p);break}(0,i.isName)(b,"Page")||!y.has("Kids")?(h=y,(f=g instanceof i.Ref?g:null)&&!c.has(f)&&c.put(f,u),s.set(u++,[h,f])):t.push({currentNode:y,posInKids:0}),e.posInKids++}var h,f;return s}getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return Promise.resolve(t);const n=this.xref;let r=0;const o=t=>function(t){let r,o=0;return n.fetchAsync(t).then((function(n){if((0,i.isRefsEqual)(t,e)&&!(0,i.isDict)(n,"Page")&&!(n instanceof i.Dict&&!n.has("Type")&&n.has("Contents")))throw new a.FormatError("The reference does not point to a /Page dictionary.");if(!n)return null;if(!(n instanceof i.Dict))throw new a.FormatError("Node must be a dictionary.");return r=n.getRaw("Parent"),n.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof i.Dict))throw new a.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;const s=[];let l=!1;for(let r=0,c=e.length;r{if(!t)return this.pageIndexCache.put(e,r),r;const[n,a]=t;return r+=n,o(a)}));return o(e)}get baseUrl(){const e=this._catDict.get("URI");if(e instanceof i.Dict){const t=e.get("Base");if("string"===typeof t){const e=(0,a.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,a.shadow)(this,"baseUrl",e.href)}}return(0,a.shadow)(this,"baseUrl",null)}static parseDestDictionary(e){const t=e.destDict;if(!(t instanceof i.Dict))return void(0,a.warn)("parseDestDictionary: `destDict` must be a dictionary.");const n=e.resultObj;if("object"!==typeof n)return void(0,a.warn)("parseDestDictionary: `resultObj` must be an object.");const o=e.docBaseUrl||null;let l,c,u=t.get("A");if(u instanceof i.Dict||(t.has("Dest")?u=t.get("Dest"):(u=t.get("AA"),u instanceof i.Dict&&(u.has("D")?u=u.get("D"):u.has("U")&&(u=u.get("U"))))),u instanceof i.Dict){const e=u.get("S");if(!(e instanceof i.Name))return void(0,a.warn)("parseDestDictionary: Invalid type in Action dictionary.");const t=e.name;switch(t){case"ResetForm":const e=u.get("Flags"),o=0===(1&("number"===typeof e?e:0)),d=[],h=[];for(const t of u.get("Fields")||[])t instanceof i.Ref?h.push(t.toString()):"string"===typeof t&&d.push((0,a.stringToPDFString)(t));n.resetForm={fields:d,refs:h,include:o};break;case"URI":l=u.get("URI"),l instanceof i.Name&&(l="/"+l.name);break;case"GoTo":c=u.get("D");break;case"Launch":case"GoToR":const f=u.get("F");f instanceof i.Dict?l=f.get("F")||null:"string"===typeof f&&(l=f);let p=u.get("D");if(p&&(p instanceof i.Name&&(p=p.name),"string"===typeof l)){const e=l.split("#")[0];"string"===typeof p?l=e+"#"+p:Array.isArray(p)&&(l=e+"#"+JSON.stringify(p))}const m=u.get("NewWindow");"boolean"===typeof m&&(n.newWindow=m);break;case"Named":const g=u.get("N");g instanceof i.Name&&(n.action=g.name);break;case"JavaScript":const y=u.get("JS");let b;y instanceof s.BaseStream?b=y.getString():"string"===typeof y&&(b=y);const v=b&&(0,r.recoverJsURL)((0,a.stringToPDFString)(b));if(v){l=v.url,n.newWindow=v.newWindow;break}default:if("JavaScript"===t||"SubmitForm"===t)break;(0,a.warn)(`parseDestDictionary - unsupported action: "${t}".`)}}else t.has("Dest")&&(c=t.get("Dest"));if("string"===typeof l){const e=(0,a.createValidAbsoluteUrl)(l,o,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(n.url=e.href),n.unsafeUrl=l}c&&(c instanceof i.Name&&(c=c.name),"string"===typeof c?n.dest=(0,a.stringToPDFString)(c):Array.isArray(c)&&(n.dest=c))}}t.Catalog=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var r=n(5),a=n(2);class i{constructor(e,t,n){this.constructor===i&&(0,a.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=n}getAll(){const e=new Map;if(!this.root)return e;const t=this.xref,n=new r.RefSet;n.put(this.root);const i=[this.root];for(;i.length>0;){const o=t.fetchIfRef(i.shift());if(!(o instanceof r.Dict))continue;if(o.has("Kids")){const e=o.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(n.has(t))throw new a.FormatError(`Duplicate entry in "${this._type}" tree.`);i.push(t),n.put(t)}continue}const s=o.get(this._type);if(Array.isArray(s))for(let n=0,r=s.length;n10)return(0,a.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const i=n.get("Kids");if(!Array.isArray(i))return null;let o=0,s=i.length-1;for(;o<=s;){const r=o+s>>1,a=t.fetchIfRef(i[r]),l=a.get("Limits");if(et.fetchIfRef(l[1]))){n=a;break}o=r+1}}if(o>s)return null}const i=n.get(this._type);if(Array.isArray(i)){let n=0,r=i.length-2;for(;n<=r;){const a=n+r>>1,o=a+(1&a),s=t.fetchIfRef(i[o]);if(es))return t.fetchIfRef(i[o+1]);n=o+2}}}return null}}t.NameTree=class extends i{constructor(e,t){super(e,t,"Names")}},t.NumberTree=class extends i{constructor(e,t){super(e,t,"Nums")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,r.clearPrimitiveCaches)(),(0,a.clearUnicodeCaches)()};var r=n(5),a=n(40)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var r=n(2),a=n(7),i=n(5);function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof i.Dict&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,r.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const e=o(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));let e=null;if(this.contentRef){const t=this.xref.fetchIfRef(this.contentRef);t instanceof a.BaseStream?e=t.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 e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var r=n(66);t.MetadataParser=class{constructor(e){e=this._repair(e);const t=new r.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){const n=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)})),r=[];for(let a=0,i=n.length;a=32&&e<127&&60!==e&&62!==e&&38!==e?r.push(String.fromCharCode(e)):r.push("&#x"+(65536+e).toString(16).substring(1)+";")}return">"+r.join("")}))}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const n of t.childNodes)if("rdf:description"===n.nodeName)for(const e of n.childNodes){const t=e.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(e);continue}this._metadataMap.set(t,e.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var r=n(5),a=n(2),i=n(70);const o=40,s={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};t.StructTreeRoot=class{constructor(e){this.dict=e,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const e=this.dict.get("RoleMap");e instanceof r.Dict&&e.forEach(((e,t)=>{t instanceof r.Name&&this.roleMap.set(e,t.name)}))}};class l{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof r.Name?e.name:"",{root:n}=this.tree;return n.roleMap.has(t)?n.roleMap.get(t):t}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof r.Ref&&(e=t.toString());const n=this.dict.get("K");if(Array.isArray(n))for(const r of n){const t=this.parseKid(e,r);t&&this.kids.push(t)}else{const t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new c({type:s.PAGE_CONTENT,mcid:t,pageObjId:e});let n=null;if(t instanceof r.Ref?n=this.dict.xref.fetch(t):t instanceof r.Dict&&(n=t),!n)return null;const a=n.getRaw("Pg");a instanceof r.Ref&&(e=a.toString());const i=n.get("Type")instanceof r.Name?n.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new c({type:s.STREAM_CONTENT,refObjId:n.getRaw("Stm")instanceof r.Ref?n.getRaw("Stm").toString():null,pageObjId:e,mcid:n.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new c({type:s.OBJECT,refObjId:n.getRaw("Obj")instanceof r.Ref?n.getRaw("Obj").toString():null,pageObjId:e}):new c({type:s.ELEMENT,dict:n})}}class c{constructor(e){let{type:t,dict:n=null,mcid:r=null,pageObjId:a=null,refObjId:i=null}=e;this.type=t,this.dict=n,this.mcid=r,this.pageObjId=a,this.refObjId=i,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const e=this.rootDict.get("ParentTree");if(!e)return;const t=this.pageDict.get("StructParents");if(!Number.isInteger(t))return;const n=new i.NumberTree(e,this.rootDict.xref).get(t);if(!Array.isArray(n))return;const a=new Map;for(const i of n)i instanceof r.Ref&&this.addNode(this.rootDict.xref.fetch(i),a)}addNode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>o)return(0,a.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);const i=new l(this,e);t.set(e,i);const c=e.get("P");if(!c||(0,r.isName)(c.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,i)||t.delete(e),i;const u=this.addNode(c,t,n+1);if(!u)return i;let d=!1;for(const r of u.kids)r.type===s.ELEMENT&&r.dict===e&&(r.parentNode=i,d=!0);return d||t.delete(e),i}addTopLevelNode(e,t){const n=this.rootDict.get("K");if(!n)return!1;if(n instanceof r.Dict)return n.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(n))return!0;let a=!1;for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:0;if(r>o)return void(0,a.warn)("StructTree too deep to be fully serialized.");const i=Object.create(null);i.role=t.role,i.children=[],n.children.push(i);const l=t.dict.get("Alt");"string"===typeof l&&(i.alt=(0,a.stringToPDFString)(l));const c=t.dict.get("Lang");"string"===typeof c&&(i.lang=(0,a.stringToPDFString)(c));for(const a of t.kids){const t=a.type===s.ELEMENT?a.parentNode:null;t?e(t,i,r+1):a.type===s.PAGE_CONTENT||a.type===s.STREAM_CONTENT?i.children.push({type:"content",id:`page${a.pageObjId}_mcid${a.mcid}`}):a.type===s.OBJECT&&i.children.push({type:"object",id:a.refObjId})}}const t=Object.create(null);t.children=[],t.role="Root";for(const n of this.nodes)n&&e(n,t);return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var r=n(5),a=n(7),i=n(6),o=n(2);function s(e,t){if(e instanceof r.Dict)e=e.getRawValues();else if(e instanceof a.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const i of e)((n=i)instanceof r.Ref||n instanceof r.Dict||n instanceof a.BaseStream||Array.isArray(n))&&t.push(i);var n}t.ObjectLoader=class{constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:e,dict:t}=this;this.refSet=new r.RefSet;const n=[];for(let r=0,a=e.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var r=n(77),a=n(81),i=n(87),o=n(85),s=n(78),l=n(2),c=n(88),u=n(98);class d{constructor(e){try{this.root=(new c.XFAParser).parse(d._createDocument(e));const t=new a.Binder(this.root);this.form=t.bind(),this.dataHandler=new i.DataHandler(this.root,t.getData()),this.form[r.$globalData].template=this.form}catch(t){(0,l.warn)(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const e=this.form[r.$toPages]();return new Promise(((t,n)=>{const r=()=>{try{const n=e.next();n.done?t(n.value):setTimeout(r,0)}catch(a){n(a)}};setTimeout(r,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map((e=>{const{width:t,height:n}=e.attributes.style;return[0,0,parseInt(t),parseInt(n)]}))}catch(e){(0,l.warn)(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[r.$globalData].images=e}setFonts(e){this.form[r.$globalData].fontFinder=new o.FontFinder(e);const t=[];for(let n of this.form[r.$globalData].usedTypefaces)n=(0,s.stripQuotes)(n),this.form[r.$globalData].fontFinder.find(n)||t.push(n);return t.length>0?t:null}appendFonts(e,t){this.form[r.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!==typeof e)return null;try{let t=new c.XFAParser(u.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[r.$nodeName])){const e=u.XhtmlNamespace.body({});e[r.$appendChild](t),t=e}const n=t[r.$toHTML]();if(!n.success)return null;const{html:a}=n,{attributes:i}=a;return i&&(i.class&&(i.class=i.class.filter((e=>!e.startsWith("xfa")))),i.dir="auto"),{html:a,str:t[r.$text]()}}catch(t){(0,l.warn)(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}t.XFAFactory=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var r=n(78),a=n(2),i=n(6),o=n(79),s=n(80);const l=Symbol();t.$acceptWhitespace=l;const c=Symbol();t.$addHTML=c;const u=Symbol();t.$appendChild=u;const d=Symbol();t.$childrenToHTML=d;const h=Symbol();t.$clean=h;const f=Symbol();t.$cleanPage=f;const p=Symbol();t.$cleanup=p;const m=Symbol();t.$clone=m;const g=Symbol();t.$consumed=g;const y=Symbol("content");t.$content=y;const b=Symbol("data");t.$data=b;const v=Symbol();t.$dump=v;const w=Symbol("extra");t.$extra=w;const x=Symbol();t.$finalize=x;const S=Symbol();t.$flushHTML=S;const k=Symbol();t.$getAttributeIt=k;const A=Symbol();t.$getAttributes=A;const C=Symbol();t.$getAvailableSpace=C;const O=Symbol();t.$getChildrenByClass=O;const _=Symbol();t.$getChildrenByName=_;const j=Symbol();t.$getChildrenByNameIt=j;const P=Symbol();t.$getDataValue=P;const T=Symbol();t.$getExtra=T;const E=Symbol();t.$getRealChildrenByNameIt=E;const M=Symbol();t.$getChildren=M;const N=Symbol();t.$getContainedChildren=N;const I=Symbol();t.$getNextPage=I;const D=Symbol();t.$getSubformParent=D;const F=Symbol();t.$getParent=F;const R=Symbol();t.$getTemplateRoot=R;const $=Symbol();t.$globalData=$;const L=Symbol();t.$hasSettableValue=L;const B=Symbol();t.$ids=B;const U=Symbol();t.$indexOf=U;const z=Symbol();t.$insertAt=z;const H=Symbol();t.$isCDATAXml=H;const q=Symbol();t.$isBindable=q;const W=Symbol();t.$isDataValue=W;const G=Symbol();t.$isDescendent=G;const V=Symbol();t.$isNsAgnostic=V;const X=Symbol();t.$isSplittable=X;const K=Symbol();t.$isThereMoreWidth=K;const Y=Symbol();t.$isTransparent=Y;const Z=Symbol();t.$isUsable=Z;const J=Symbol(),Q=Symbol("namespaceId");t.$namespaceId=Q;const ee=Symbol("nodeName");t.$nodeName=ee;const te=Symbol();t.$nsAttributes=te;const ne=Symbol();t.$onChild=ne;const re=Symbol();t.$onChildCheck=re;const ae=Symbol();t.$onText=ae;const ie=Symbol();t.$pushGlyphs=ie;const oe=Symbol();t.$popPara=oe;const se=Symbol();t.$pushPara=se;const le=Symbol();t.$removeChild=le;const ce=Symbol("root");t.$root=ce;const ue=Symbol();t.$resolvePrototypes=ue;const de=Symbol();t.$searchNode=de;const he=Symbol();t.$setId=he;const fe=Symbol();t.$setSetAttributes=fe;const pe=Symbol();t.$setValue=pe;const me=Symbol();t.$tabIndex=me;const ge=Symbol();t.$text=ge;const ye=Symbol();t.$toPages=ye;const be=Symbol();t.$toHTML=be;const ve=Symbol();t.$toString=ve;const we=Symbol();t.$toStyle=we;const xe=Symbol("uid");t.$uid=xe;const Se=Symbol(),ke=Symbol(),Ae=Symbol(),Ce=Symbol("_children"),Oe=Symbol(),_e=Symbol(),je=Symbol(),Pe=Symbol(),Te=Symbol(),Ee=Symbol(),Me=Symbol(),Ne=Symbol(),Ie=Symbol(),De=Symbol("parent"),Fe=Symbol(),Re=Symbol(),$e=Symbol();let Le=0;const Be=o.NamespaceIds.datasets.id;class Ue{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[Q]=e,this[ee]=t,this[Me]=n,this[De]=null,this[Ce]=[],this[xe]=`${t}${Le++}`,this[$]=null}[ne](e){if(!this[Me]||!this[re](e))return!1;const t=e[ee],n=this[t];if(!(n instanceof ze))return null!==n&&this[le](n),this[t]=e,this[u](e),!0;if(n.push(e))return this[u](e),!0;let r="";return this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`),(0,a.warn)(`XFA - node "${this[ee]}"${r} has already enough "${t}"!`),!1}[re](e){return this.hasOwnProperty(e[ee])&&e[Q]===this[Q]}[V](){return!1}[l](){return!1}[H](){return!1}[q](){return!1}[oe](){this.para&&this[R]()[w].paraStack.pop()}[se](){this[R]()[w].paraStack.push(this.para)}[he](e){this.id&&this[Q]===o.NamespaceIds.template.id&&e.set(this.id,this)}[R](){return this[$].template}[X](){return!1}[K](){return!1}[u](e){e[De]=this,this[Ce].push(e),!e[$]&&this[$]&&(e[$]=this[$])}[le](e){const t=this[Ce].indexOf(e);this[Ce].splice(t,1)}[L](){return this.hasOwnProperty("value")}[pe](e){}[ae](e){}[x](){}[h](e){delete this[Me],this[p]&&(e.clean(this[p]),delete this[p])}[U](e){return this[Ce].indexOf(e)}[z](e,t){t[De]=this,this[Ce].splice(e,0,t),!t[$]&&this[$]&&(t[$]=this[$])}[Y](){return!this.name}[J](){return""}[ge](){return 0===this[Ce].length?this[y]:this[Ce].map((e=>e[ge]())).join("")}get[Ae](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof Ue||this[e]instanceof ze)break;t.add(e)}}return(0,a.shadow)(this,Ae,e._attributes)}[G](e){let t=this;for(;t;){if(t===e)return!0;t=t[F]()}return!1}[F](){return this[De]}[D](){return this[F]()}[M](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[Ce]}[v](){const e=Object.create(null);this[y]&&(e.$content=this[y]);for(const t of Object.getOwnPropertyNames(this)){const n=this[t];null!==n&&(n instanceof Ue?e[t]=n[v]():n instanceof ze?n.isEmpty()||(e[t]=n.dump()):e[t]=n)}return e}[we](){return null}[be](){return r.HTMLResult.EMPTY}*[N](){for(const e of this[M]())yield e}*[Pe](e,t){for(const n of this[N]())if(!e||t===e.has(n[ee])){const e=this[C](),t=n[be](e);t.success||(this[w].failingNode=n),yield t}}[S](){return null}[c](e,t){this[w].children.push(e)}[C](){}[d](e){let{filter:t=null,include:n=!0}=e;if(this[w].generator){const e=this[C](),t=this[w].failingNode[be](e);if(!t.success)return t;t.html&&this[c](t.html,t.bbox),delete this[w].failingNode}else this[w].generator=this[Pe](t,n);for(;;){const e=this[w].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[c](t.html,t.bbox)}return this[w].generator=null,r.HTMLResult.EMPTY}[fe](e){this[Re]=new Set(Object.keys(e))}[Ee](e){const t=this[Ae],n=this[Re];return[...e].filter((e=>t.has(e)&&!n.has(e)))}[ue](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of this[Ce])n[Fe](e,t)}[Fe](e,t){const n=this[Te](e,t);n?this[Se](n,e,t):this[ue](e,t)}[Te](e,t){const{use:n,usehref:r}=this;if(!n&&!r)return null;let i=null,o=null,l=null,c=n;if(r?(c=r,r.startsWith("#som(")&&r.endsWith(")")?o=r.slice("#som(".length,r.length-1):r.startsWith(".#som(")&&r.endsWith(")")?o=r.slice(".#som(".length,r.length-1):r.startsWith("#")?l=r.slice(1):r.startsWith(".#")&&(l=r.slice(2))):n.startsWith("#")?l=n.slice(1):o=n,this.use=this.usehref="",l?i=e.get(l):(i=(0,s.searchNode)(e.get(ce),this,o,!0,!1),i&&(i=i[0])),!i)return(0,a.warn)(`XFA - Invalid prototype reference: ${c}.`),null;if(i[ee]!==this[ee])return(0,a.warn)(`XFA - Incompatible prototype: ${i[ee]} !== ${this[ee]}.`),null;if(t.has(i))return(0,a.warn)("XFA - Cycle detected in prototypes use."),null;t.add(i);const u=i[Te](e,t);return u&&i[Se](u,e,t),i[ue](e,t),t.delete(i),i}[Se](e,t,n){if(n.has(e))(0,a.warn)("XFA - Cycle detected in prototypes use.");else{!this[y]&&e[y]&&(this[y]=e[y]),new Set(n).add(e);for(const t of this[Ee](e[Re]))this[t]=e[t],this[Re]&&this[Re].add(t);for(const r of Object.getOwnPropertyNames(this)){if(this[Ae].has(r))continue;const a=this[r],i=e[r];if(a instanceof ze){for(const e of a[Ce])e[Fe](t,n);for(let r=a[Ce].length,o=i[Ce].length;rUe[Oe](e))):"object"===typeof e&&null!==e?Object.assign({},e):e}[m](){const e=Object.create(Object.getPrototypeOf(this));for(const n of Object.getOwnPropertySymbols(this))try{e[n]=this[n]}catch(t){(0,a.shadow)(e,n,this[n])}e[xe]=`${e[ee]}${Le++}`,e[Ce]=[];for(const n of Object.getOwnPropertyNames(this)){if(this[Ae].has(n)){e[n]=Ue[Oe](this[n]);continue}const t=this[n];e[n]=t instanceof ze?new ze(t[Ne]):null}for(const n of this[Ce]){const t=n[ee],r=n[m]();e[Ce].push(r),r[De]=e,null===e[t]?e[t]=r:e[t][Ce].push(r)}return e}[M](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Ce].filter((t=>t[ee]===e)):this[Ce]}[O](e){return this[e]}[_](e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[j](e,t,n))}[j](e,t){var n=this;let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function*(){if("parent"!==e){for(const r of n[Ce])r[ee]===e&&(yield r),r.name===e&&(yield r),(t||r[Y]())&&(yield*r[j](e,t,!1));r&&n[Ae].has(e)&&(yield new He(n,e,n[e]))}else yield n[De]}()}}t.XFAObject=Ue;class ze{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[Ne]=e,this[Ce]=[]}push(e){return this[Ce].length<=this[Ne]?(this[Ce].push(e),!0):((0,a.warn)(`XFA - node "${e[ee]}" accepts no more than ${this[Ne]} children`),!1)}isEmpty(){return 0===this[Ce].length}dump(){return 1===this[Ce].length?this[Ce][0][v]():this[Ce].map((e=>e[v]()))}[m](){const e=new ze(this[Ne]);return e[Ce]=this[Ce].map((e=>e[m]())),e}get children(){return this[Ce]}clear(){this[Ce].length=0}}t.XFAObjectArray=ze;class He{constructor(e,t,n){this[De]=e,this[ee]=t,this[y]=n,this[g]=!1,this[xe]="attribute"+Le++}[F](){return this[De]}[W](){return!0}[P](){return this[y].trim()}[pe](e){e=e.value||"",this[y]=e.toString()}[ge](){return this[y]}[G](e){return this[De]===e||this[De][G](e)}}t.XFAAttribute=He;class qe extends Ue{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(super(e,t),this[y]="",this[_e]=null,"#text"!==t){const e=new Map;this[ke]=e;for(const[t,r]of Object.entries(n))e.set(t,new He(this,t,r));if(n.hasOwnProperty(te)){const e=n[te].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[_e]=!1:"dataValue"===e&&(this[_e]=!0))}}this[g]=!1}[ve](e){const t=this[ee];if("#text"===t)return void e.push((0,i.encodeToXmlString)(this[y]));const n=(0,a.utf8StringToString)(t),r=this[Q]===Be?"xfa:":"";e.push(`<${r}${n}`);for(const[o,s]of this[ke].entries()){const t=(0,a.utf8StringToString)(o);e.push(` ${t}="${(0,i.encodeToXmlString)(s[y])}"`)}if(null!==this[_e]&&(this[_e]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[y]||0!==this[Ce].length){if(e.push(">"),this[y])"string"===typeof this[y]?e.push((0,i.encodeToXmlString)(this[y])):this[y][ve](e);else for(const t of this[Ce])t[ve](e);e.push(``)}else e.push("/>")}[ne](e){if(this[y]){const e=new qe(this[Q],"#text");this[u](e),e[y]=this[y],this[y]=""}return this[u](e),!0}[ae](e){this[y]+=e}[x](){if(this[y]&&this[Ce].length>0){const e=new qe(this[Q],"#text");this[u](e),e[y]=this[y],delete this[y]}}[be](){return"#text"===this[ee]?r.HTMLResult.success({name:"#text",value:this[y]}):r.HTMLResult.EMPTY}[M](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Ce].filter((t=>t[ee]===e)):this[Ce]}[A](){return this[ke]}[O](e){const t=this[ke].get(e);return void 0!==t?t:this[M](e)}*[j](e,t){const n=this[ke].get(e);n&&(yield n);for(const r of this[Ce])r[ee]===e&&(yield r),t&&(yield*r[j](e,t))}*[k](e,t){const n=this[ke].get(e);!n||t&&n[g]||(yield n);for(const r of this[Ce])yield*r[k](e,t)}*[E](e,t,n){for(const r of this[Ce])r[ee]!==e||n&&r[g]||(yield r),t&&(yield*r[E](e,t,n))}[W](){return null===this[_e]?0===this[Ce].length||this[Ce][0][Q]===o.NamespaceIds.xhtml.id:this[_e]}[P](){return null===this[_e]?0===this[Ce].length?this[y].trim():this[Ce][0][Q]===o.NamespaceIds.xhtml.id?this[Ce][0][ge]().trim():null:this[y].trim()}[pe](e){e=e.value||"",this[y]=e.toString()}[v](){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=Object.create(null);e&&(t.$ns=this[Q]),this[y]&&(t.$content=this[y]),t.$name=this[ee],t.children=[];for(const n of this[Ce])t.children.push(n[v](e));t.attributes=Object.create(null);for(const[n,r]of this[ke])t.attributes[n]=r[y];return t}}t.XmlObject=qe;class We extends Ue{constructor(e,t){super(e,t),this[y]=""}[ae](e){this[y]+=e}[x](){}}t.ContentObject=We,t.OptionObject=class extends We{constructor(e,t,n){super(e,t),this[Ie]=n}[x](){this[y]=(0,r.getKeyword)({data:this[y],defaultValue:this[Ie][0],validate:e=>this[Ie].includes(e)})}[h](e){super[h](e),delete this[Ie]}},t.StringObject=class extends We{[x](){this[y]=this[y].trim()}};class Ge extends We{constructor(e,t,n,r){super(e,t),this[je]=n,this[$e]=r}[x](){this[y]=(0,r.getInteger)({data:this[y],defaultValue:this[je],validate:this[$e]})}[h](e){super[h](e),delete this[je],delete this[$e]}}t.IntegerObject=Ge,t.Option01=class extends Ge{constructor(e,t){super(e,t,0,(e=>1===e))}},t.Option10=class extends Ge{constructor(e,t){super(e,t,1,(e=>0===e))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const n=e.trim().split(/\s*,\s*/).map((e=>s(e,"-1")));if(n.length<4||n[2]<0||n[3]<0)return{x:t,y:t,width:t,height:t};const[r,a,i,o]=n;return{x:r,y:a,width:i,height:o}},t.getColor=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],[n,r,a]=t;if(!e)return{r:n,g:r,b:a};const i=e.trim().split(/\s*,\s*/).map((e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255))).map((e=>isNaN(e)?0:e));return i.length<3||([n,r,a]=i),{r:n,g:r,b:a}},t.getFloat=function(e){let{data:t,defaultValue:n,validate:r}=e;if(!t)return n;t=t.trim();const a=parseFloat(t);return!isNaN(a)&&r(a)?a:n},t.getInteger=function(e){let{data:t,defaultValue:n,validate:r}=e;if(!t)return n;t=t.trim();const a=parseInt(t,10);return!isNaN(a)&&r(a)?a:n},t.getKeyword=o,t.getMeasurement=s,t.getRatio=function(e){if(!e)return{num:1,den:1};const t=e.trim().split(/\s*:\s*/).map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};const[n,r]=t;return{num:n,den:r}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)}))):[]},t.getStringOption=function(e,t){return o({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,e.length-1):e};var r=n(2);const a={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},i=/([+-]?\d+\.?\d*)(.*)/;function o(e){let{data:t,defaultValue:n,validate:r}=e;return t?(t=t.trim(),r(t)?t:n):n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t=t||"0",!e)return s(t);const n=e.trim().match(i);if(!n)return s(t);const[,r,o]=n,l=parseFloat(r);if(isNaN(l))return s(t);if(0===l)return 0;const c=a[o];return c?c(l):l}class l{static get FAILURE(){return(0,r.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,r.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,n,r){this.success=e,this.html=t,this.bbox=n,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e){return new l(!0,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}t.HTMLResult=l},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;const n=Symbol();t.$buildXFAObject=n,t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,n){const a=h(n);if(!a)return null;if(a.some((e=>e.operator===l.dotDot)))return null;const o=c.get(a[0].name);let s=0;o?(e=o(e,t),s=1):e=t||e;for(let c=a.length;s3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const o=h(n,a);if(!o)return null;const s=c.get(o[0].name);let d,f=0;s?(d=!0,e=[s(e,t)],f=1):(d=null===t,e=[t||e]);for(let c=o.length;f0&&h.push(e)}if(0!==h.length||d||0!==f)e=isFinite(c)?h.filter((e=>ce[c])):h.flat();else{const n=t[r.$getParent]();if(!(t=n))return null;f=-1,e=[t]}}return 0===e.length?null:e};var r=n(77),a=n(79),i=n(2);const o=/^[^.[]+/,s=/^[^\]]+/,l={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},c=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[r.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),u=new WeakMap,d=a.NamespaceIds.datasets.id;function h(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.match(o);if(!r)return null;let[a]=r;const c=[{name:a,cacheName:"."+a,index:0,js:null,formCalc:null,operator:l.dot}];let u=a.length;for(;u{Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var r=n(77),a=n(82),i=n(80),o=n(79),s=n(2);const l=o.NamespaceIds.datasets.id;function c(e){const t=new a.Text({});return t[r.$content]=e,t}t.Binder=class{constructor(e){this.root=e,this.datasets=e.datasets,e.datasets&&e.datasets.data?this.data=e.datasets.data:this.data=new r.XmlObject(o.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[r.$getChildren]().length,this.root.form=this.form=e.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(e,t,n){if(e[r.$data]=t,e[r.$hasSettableValue]())if(t[r.$isDataValue]()){const n=t[r.$getDataValue]();e[r.$setValue](c(n))}else if(e instanceof a.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){const n=t[r.$getChildren]().map((e=>e[r.$content].trim())).join("\n");e[r.$setValue](c(n))}else this._isConsumeData()&&(0,s.warn)("XFA - Nodes haven't the same type.");else!t[r.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,s.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,n,a){if(!e)return null;let i,s;for(let l=0;l<3;l++){for(i=n[r.$getRealChildrenByNameIt](e,!1,!0);s=i.next().value,s;)if(t===s[r.$isDataValue]())return s;if(n[r.$namespaceId]===o.NamespaceIds.datasets.id&&"data"===n[r.$nodeName])break;n=n[r.$getParent]()}return a?(i=this.data[r.$getRealChildrenByNameIt](e,!0,!1),s=i.next().value,s||(i=this.data[r.$getAttributeIt](e,!0),s=i.next().value,s&&s[r.$isDataValue]()?s:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:n,target:o,connection:l}of e.setProperty.children){if(l)continue;if(!n)continue;const c=(0,i.searchNode)(this.root,t,n,!1,!1);if(!c){(0,s.warn)(`XFA - Invalid reference: ${n}.`);continue}const[u]=c;if(!u[r.$isDescendent](this.data)){(0,s.warn)("XFA - Invalid node: must be a data node.");continue}const d=(0,i.searchNode)(this.root,e,o,!1,!1);if(!d){(0,s.warn)(`XFA - Invalid target: ${o}.`);continue}const[h]=d;if(!h[r.$isDescendent](e)){(0,s.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const f=h[r.$getParent]();if(h instanceof a.SetProperty||f instanceof a.SetProperty){(0,s.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(h instanceof a.BindItems||f instanceof a.BindItems){(0,s.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const p=u[r.$text](),m=h[r.$nodeName];if(h instanceof r.XFAAttribute){const e=Object.create(null);e[m]=p;const t=Reflect.construct(Object.getPrototypeOf(f).constructor,[e]);f[m]=t[m]}else h.hasOwnProperty(r.$content)?(h[r.$data]=u,h[r.$content]=p,h[r.$finalize]()):(0,s.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return;for(const a of e.items.children)e[r.$removeChild](a);e.items.clear();const n=new a.Items({}),o=new a.Items({});e[r.$appendChild](n),e.items.push(n),e[r.$appendChild](o),e.items.push(o);for(const{ref:a,labelRef:l,valueRef:u,connection:d}of e.bindItems.children){if(d)continue;if(!a)continue;const e=(0,i.searchNode)(this.root,t,a,!1,!1);if(e)for(const t of e){if(!t[r.$isDescendent](this.datasets)){(0,s.warn)(`XFA - Invalid ref (${a}): must be a datasets child.`);continue}const e=(0,i.searchNode)(this.root,t,l,!0,!1);if(!e){(0,s.warn)(`XFA - Invalid label: ${l}.`);continue}const[d]=e;if(!d[r.$isDescendent](this.datasets)){(0,s.warn)("XFA - Invalid label: must be a datasets child.");continue}const h=(0,i.searchNode)(this.root,t,u,!0,!1);if(!h){(0,s.warn)(`XFA - Invalid value: ${u}.`);continue}const[f]=h;if(!f[r.$isDescendent](this.datasets)){(0,s.warn)("XFA - Invalid value: must be a datasets child.");continue}const p=c(d[r.$text]()),m=c(f[r.$text]());n[r.$appendChild](p),n.text.push(p),o[r.$appendChild](m),o.text.push(m)}else(0,s.warn)(`XFA - Invalid reference: ${a}.`)}}_bindOccurrences(e,t,n){let a;if(t.length>1&&(a=e[r.$clone](),a[r.$removeChild](a.occur),a.occur=null),this._bindValue(e,t[0],n),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1===t.length)return;const i=e[r.$getParent](),o=e[r.$nodeName],s=i[r.$indexOf](e);for(let l=1,c=t.length;lt.name===e.name)).length:n[a].children.length;const o=n[r.$indexOf](e)+1,s=t.initial-i;if(s){const t=e[r.$clone]();t[r.$removeChild](t.occur),t.occur=null,n[a].push(t),n[r.$insertAt](o,t);for(let e=1;e0)this._bindOccurrences(a,[e[0]],null);else if(this.emptyMerge){const e=t[r.$namespaceId]===l?-1:t[r.$namespaceId],n=a[r.$data]=new r.XmlObject(e,a.name||"root");t[r.$appendChild](n),this._bindElement(a,n)}continue}if(!a[r.$isBindable]())continue;let e=!1,o=null,c=null,u=null;if(a.bind){switch(a.bind.match){case"none":this._setAndBind(a,t);continue;case"global":e=!0;break;case"dataRef":if(!a.bind.ref){(0,s.warn)(`XFA - ref is empty in node ${a[r.$nodeName]}.`),this._setAndBind(a,t);continue}c=a.bind.ref}a.bind.picture&&(o=a.bind.picture[r.$content])}const[d,h]=this._getOccurInfo(a);if(c){if(u=(0,i.searchNode)(this.root,t,c,!0,!1),null===u){if(u=(0,i.createDataNode)(this.data,t,c),!u)continue;this._isConsumeData()&&(u[r.$consumed]=!0),this._setAndBind(a,u);continue}this._isConsumeData()&&(u=u.filter((e=>!e[r.$consumed]))),u.length>h?u=u.slice(0,h):0===u.length&&(u=null),u&&this._isConsumeData()&&u.forEach((e=>{e[r.$consumed]=!0}))}else{if(!a.name){this._setAndBind(a,t);continue}if(this._isConsumeData()){const n=[];for(;n.length0?n:null}else{if(u=t[r.$getRealChildrenByNameIt](a.name,!1,this.emptyMerge).next().value,!u){if(0===d){n.push(a);continue}const e=t[r.$namespaceId]===l?-1:t[r.$namespaceId];u=a[r.$data]=new r.XmlObject(e,a.name),this.emptyMerge&&(u[r.$consumed]=!0),t[r.$appendChild](u),this._setAndBind(a,u);continue}this.emptyMerge&&(u[r.$consumed]=!0),u=[u]}}u?this._bindOccurrences(a,u,o):d>0?this._setAndBind(a,t):n.push(a)}n.forEach((e=>e[r.$getParent]()[r.$removeChild](e)))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var r=n(77),a=n(79),i=n(83),o=n(84),s=n(78),l=n(2),c=n(85),u=n(6),d=n(80);const h=a.NamespaceIds.template.id,f="http://www.w3.org/2000/svg",p=/^H(\d+)$/,m=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"]),g=[[[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 y(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[r.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function b(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function v(e,t){if(!e.value){const t=new Nt({});e[r.$appendChild](t),e.value=t}e.value[r.$setValue](t)}function*w(e){for(const t of e[r.$getChildren]())t instanceof vt?yield*t[r.$getContainedChildren]():yield t}function x(e){return e.validate&&"error"===e.validate.nullTest}function S(e){for(;e;){if(!e.traversal)return void(e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex]);if(e[r.$tabIndex])return;let t=null;for(const i of e.traversal[r.$getChildren]())if("next"===i.operation){t=i;break}if(!t||!t.ref)return void(e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex]);const n=e[r.$getTemplateRoot]();e[r.$tabIndex]=++n[r.$tabIndex];const a=n[r.$searchNode](t.ref,e);if(!a)return;e=a[0]}}function k(e,t){const n=e.assist;if(n){const e=n[r.$toHTML]();e&&(t.title=e);const a=n.role.match(p);if(a){const e="heading",n=a[1];t.role=e,t["aria-level"]=n}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const n=e[r.$getParent]();"row"===n.layout&&(n.assist&&"TH"===n.assist.role?t.role="columnheader":t.role="cell")}}function A(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[r.$content]?t.speak[r.$content]:t.toolTip?t.toolTip[r.$content]:null}function C(e){return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function O(e){const t=e[r.$getTemplateRoot]();null===t[r.$extra].firstUnsplittable&&(t[r.$extra].firstUnsplittable=e,t[r.$extra].noLayoutFailure=!0)}function _(e){const t=e[r.$getTemplateRoot]();t[r.$extra].firstUnsplittable===e&&(t[r.$extra].noLayoutFailure=!1)}function j(e){if(e[r.$extra])return!1;if(e[r.$extra]=Object.create(null),"auto"===e.targetType)return!1;const t=e[r.$getTemplateRoot]();let n=null;if(e.target){if(n=t[r.$searchNode](e.target,e[r.$getParent]()),!n)return!1;n=n[0]}const{currentPageArea:a,currentContentArea:i}=t[r.$extra];if("pageArea"===e.targetType)return n instanceof Je||(n=null),e.startNew?(e[r.$extra].target=n||a,!0):!(!n||n===a)&&(e[r.$extra].target=n,!0);n instanceof Q||(n=null);const o=n&&n[r.$getParent]();let s,l=o;if(e.startNew)if(n){const e=o.contentArea.children,t=e.indexOf(i),r=e.indexOf(n);-1!==t&&te,a[r.$extra].noLayoutFailure=!0;const s=t[r.$toHTML](n);e[r.$addHTML](s.html,s.bbox),a[r.$extra].noLayoutFailure=i,t[r.$getSubformParent]=o}class T extends r.StringObject{constructor(e){super(h,"appearanceFilter"),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class E extends r.XFAObject{constructor(e){super(h,"arc",!0),this.circular=(0,s.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,s.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,s.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,s.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[r.$toHTML](){const e=this.edge||new ue({}),t=e[r.$toStyle](),n=Object.create(null);let a;this.fill&&"visible"===this.fill.presence?Object.assign(n,this.fill[r.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,o.measureToString)("visible"===e.presence?e.thickness:0),n.stroke=t.color;const i={xmlns:f,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)a={name:"ellipse",attributes:{xmlns:f,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:n}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,r=this.sweepAngle>180?1:0,[o,s,l,c]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];a={name:"path",attributes:{xmlns:f,d:`M ${o} ${s} A 50 50 0 ${r} 0 ${l} ${c}`,vectorEffect:"non-scaling-stroke",style:n}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const l={name:"svg",children:[a],attributes:i};return b(this[r.$getParent]()[r.$getParent]())?s.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[l]}):(l.attributes.style.position="absolute",s.HTMLResult.success(l))}}class M extends r.XFAObject{constructor(e){super(h,"area",!0),this.colSpan=(0,s.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.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*w(this)}[r.$isTransparent](){return!0}[r.$isBindable](){return!0}[r.$addHTML](e,t){const[n,a,i,o]=t;this[r.$extra].width=Math.max(this[r.$extra].width,n+i),this[r.$extra].height=Math.max(this[r.$extra].height,a+o),this[r.$extra].children.push(e)}[r.$getAvailableSpace](){return this[r.$extra].availableSpace}[r.$toHTML](e){const t=(0,o.toStyle)(this,"position"),n={style:t,id:this[r.$uid],class:["xfaArea"]};(0,o.isPrintOnly)(this)&&n.class.push("xfaPrintOnly"),this.name&&(n.xfaName=this.name);const a=[];this[r.$extra]={children:a,width:0,height:0,availableSpace:e};const i=this[r.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!i.success)return i.isBreak()?i:(delete this[r.$extra],s.HTMLResult.FAILURE);t.width=(0,o.measureToString)(this[r.$extra].width),t.height=(0,o.measureToString)(this[r.$extra].height);const l={name:"div",attributes:n,children:a},c=[this.x,this.y,this[r.$extra].width,this[r.$extra].height];return delete this[r.$extra],s.HTMLResult.success(l,c)}}class N extends r.XFAObject{constructor(e){super(h,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[r.$toHTML](){return this.toolTip&&this.toolTip[r.$content]?this.toolTip[r.$content]:null}}class I extends r.XFAObject{constructor(e){super(h,"barcode",!0),this.charEncoding=(0,s.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,s.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,s.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=(0,s.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=(0,s.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,s.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,s.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,s.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,s.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,s.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,s.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,s.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,s.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,s.getStringOption)(e.type?e.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,s.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,s.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class D extends r.XFAObject{constructor(e){super(h,"bind",!0),this.match=(0,s.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class F extends r.XFAObject{constructor(e){super(h,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}t.BindItems=F;class R extends r.XFAObject{constructor(e){super(h,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class $ extends r.Option01{constructor(e){super(h,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$toHTML](e){return C(1===this[r.$content]?"1":"0")}}class L extends r.XFAObject{constructor(e){super(h,"border",!0),this.break=(0,s.getStringOption)(e.break,["close","open"]),this.hand=(0,s.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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 e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new ue({});for(let n=e.length;n<4;n++)e.push(t)}const t=e.map((e=>e.thickness)),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[r.$extra]={widths:t,insets:n,edges:e}}return this[r.$extra]}[r.$toStyle](){const{edges:e}=this[r.$getExtra](),t=e.map((e=>{const t=e[r.$toStyle]();return t.color=t.color||"#000000",t})),n=Object.create(null);if(this.margin&&Object.assign(n,this.margin[r.$toStyle]()),this.fill&&"visible"===this.fill.presence&&Object.assign(n,this.fill[r.$toStyle]()),this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[r.$toStyle]()));if(2===e.length||3===e.length){const t=e.at(-1);for(let n=e.length;n<4;n++)e.push(t)}n.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":n.borderStyle="";break;case"inactive":n.borderStyle="none";break;default:n.borderStyle=t.map((e=>e.style)).join(" ")}return n.borderWidth=t.map((e=>e.width)).join(" "),n.borderColor=t.map((e=>e.color)).join(" "),n}}class B extends r.XFAObject{constructor(e){super(h,"break",!0),this.after=(0,s.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,s.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,s.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class U extends r.XFAObject{constructor(e){super(h,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,s.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,s.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class z extends r.XFAObject{constructor(e){super(h,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,s.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,s.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[r.$toHTML](e){return this[r.$extra]={},s.HTMLResult.FAILURE}}class H extends r.XFAObject{constructor(e){super(h,"button",!0),this.highlight=(0,s.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toHTML](e){const t=this[r.$getParent]()[r.$getParent](),n={name:"button",attributes:{id:this[r.$uid],class:["xfaButton"],style:{}},children:[]};for(const a of t.event.children){if("click"!==a.activity||!a.script)continue;const e=(0,u.recoverJsURL)(a.script[r.$content]);if(!e)continue;const t=(0,o.fixURL)(e.url);t&&n.children.push({name:"a",attributes:{id:"link"+this[r.$uid],href:t,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return s.HTMLResult.success(n)}}class q extends r.XFAObject{constructor(e){super(h,"calculate",!0),this.id=e.id||"",this.override=(0,s.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class W extends r.XFAObject{constructor(e){super(h,"caption",!0),this.id=e.id||"",this.placement=(0,s.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,s.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[r.$setValue](e){v(this,e)}[r.$getExtra](e){if(!this[r.$extra]){let{width:t,height:n}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":n=this.reserve<=0?n:this.reserve}this[r.$extra]=(0,o.layoutNode)(this,{width:t,height:n})}return this[r.$extra]}[r.$toHTML](e){if(!this.value)return s.HTMLResult.EMPTY;this[r.$pushPara]();const t=this.value[r.$toHTML](e).html;if(!t)return this[r.$popPara](),s.HTMLResult.EMPTY;const n=this.reserve;if(this.reserve<=0){const{w:t,h:n}=this[r.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=n}}const a=[];"string"===typeof t?a.push({name:"#text",value:t}):a.push(t);const i=(0,o.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(i.width=(0,o.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(i.height=(0,o.measureToString)(this.reserve))}return(0,o.setPara)(this,null,t),this[r.$popPara](),this.reserve=n,s.HTMLResult.success({name:"div",attributes:{style:i,class:["xfaCaption"]},children:a})}}class G extends r.StringObject{constructor(e){super(h,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class V extends r.XFAObject{constructor(e){super(h,"certificates",!0),this.credentialServerPolicy=(0,s.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class X extends r.XFAObject{constructor(e){super(h,"checkButton",!0),this.id=e.id||"",this.mark=(0,s.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,s.getStringOption)(e.shape,["square","round"]),this.size=(0,s.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,o.toStyle)("margin"),n=(0,o.measureToString)(this.size);let a,i,l;t.width=t.height=n;const c=this[r.$getParent]()[r.$getParent](),u=c.items.children.length&&c.items.children[0][r.$toHTML]().html||[],d={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},h=(c.value&&c.value[r.$text]()||"off")===d.on||void 0,f=c[r.$getSubformParent](),p=c[r.$uid];let m;f instanceof xe?(l=f[r.$uid],a="radio",i="xfaRadio",m=f[r.$data]&&f[r.$data][r.$uid]||f[r.$uid]):(a="checkbox",i="xfaCheckbox",m=c[r.$data]&&c[r.$data][r.$uid]||c[r.$uid]);const g={name:"input",attributes:{class:[i],style:t,fieldId:p,dataId:m,type:a,checked:h,xfaOn:d.on,xfaOff:d.off,"aria-label":A(c),"aria-required":!1}};return l&&(g.attributes.name=l),x(c)&&(g.attributes["aria-required"]=!0,g.attributes.required=!0),s.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[g]})}}class K extends r.XFAObject{constructor(e){super(h,"choiceList",!0),this.commitOn=(0,s.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,s.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,s.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,o.toStyle)(this,"border","margin"),n=this[r.$getParent]()[r.$getParent](),a={fontSize:`calc(${n.font&&n.font.size||10}px * var(--scale-factor))`},i=[];if(n.items.children.length>0){const e=n.items;let t=0,o=0;2===e.children.length&&(t=e.children[0].save,o=1-t);const s=e.children[t][r.$toHTML]().html,l=e.children[o][r.$toHTML]().html;let c=!1;const u=n.value&&n.value[r.$text]()||"";for(let n=0,r=s.length;ne>=0}),this.use=e.use||"",this.usehref=e.usehref||""}}class J extends r.XFAObject{constructor(e){super(h,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,s.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class Q extends r.XFAObject{constructor(e){super(h,"contentArea",!0),this.h=(0,s.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,s.getMeasurement)(e.w),this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[r.$toHTML](e){const t={left:(0,o.measureToString)(this.x),top:(0,o.measureToString)(this.y),width:(0,o.measureToString)(this.w),height:(0,o.measureToString)(this.h)},n=["xfaContentarea"];return(0,o.isPrintOnly)(this)&&n.push("xfaPrintOnly"),s.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:n,id:this[r.$uid]}})}}class ee extends r.XFAObject{constructor(e){super(h,"corner",!0),this.id=e.id||"",this.inverted=(0,s.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,s.getStringOption)(e.join,["square","round"]),this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,s.getMeasurement)(e.radius),this.stroke=(0,s.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,s.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](){const e=(0,o.toStyle)(this,"visibility");return e.radius=(0,o.measureToString)("square"===this.join?0:this.radius),e}}class te extends r.ContentObject{constructor(e){super(h,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return C(this[r.$content]?this[r.$content].toString():"")}}class ne extends r.ContentObject{constructor(e){super(h,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return C(this[r.$content]?this[r.$content].toString():"")}}class re extends r.XFAObject{constructor(e){super(h,"dateTimeEdit",!0),this.hScrollPolicy=(0,s.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,s.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,o.toStyle)(this,"border","font","margin"),n=this[r.$getParent]()[r.$getParent](),a={name:"input",attributes:{type:"text",fieldId:n[r.$uid],dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":A(n),"aria-required":!1}};return x(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),s.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class ae extends r.ContentObject{constructor(e){super(h,"decimal"),this.fracDigits=(0,s.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,s.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return C(null!==this[r.$content]?this[r.$content].toString():"")}}class ie extends r.XFAObject{constructor(e){super(h,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class oe extends r.XFAObject{constructor(e){super(h,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.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 se extends r.OptionObject{constructor(e){super(h,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class le extends r.XFAObject{constructor(e){super(h,"digestMethods",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new r.XFAObjectArray}}class ce extends r.XFAObject{constructor(e){super(h,"draw",!0),this.anchorType=(0,s.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,s.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,s.getMeasurement)(e.h):"",this.hAlign=(0,s.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,s.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,s.getMeasurement)(e.maxW,"0pt"),this.minH=(0,s.getMeasurement)(e.minH,"0pt"),this.minW=(0,s.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,s.getRelevant)(e.relevant),this.rotate=(0,s.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,s.getMeasurement)(e.w):"",this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.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](e){v(this,e)}[r.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence)return s.HTMLResult.EMPTY;(0,o.fixDimensions)(this),this[r.$pushPara]();const t=this.w,n=this.h,{w:a,h:l,isBroken:c}=(0,o.layoutNode)(this,e);if(a&&""===this.w){if(c&&this[r.$getSubformParent]()[r.$isThereMoreWidth]())return this[r.$popPara](),s.HTMLResult.FAILURE;this.w=a}if(l&&""===this.h&&(this.h=l),O(this),!(0,i.checkDimensions)(this,e))return this.w=t,this.h=n,this[r.$popPara](),s.HTMLResult.FAILURE;_(this);const u=(0,o.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,o.setMinMaxDimensions)(this,u),u.margin&&(u.padding=u.margin,delete u.margin);const d=["xfaDraw"];this.font&&d.push("xfaFont"),(0,o.isPrintOnly)(this)&&d.push("xfaPrintOnly");const h={style:u,id:this[r.$uid],class:d};this.name&&(h.xfaName=this.name);const f={name:"div",attributes:h,children:[]};k(this,h);const p=(0,o.computeBbox)(this,f,e),m=this.value?this.value[r.$toHTML](e).html:null;return null===m?(this.w=t,this.h=n,this[r.$popPara](),s.HTMLResult.success((0,o.createWrapper)(this,f),p)):(f.children.push(m),(0,o.setPara)(this,u,m),this.w=t,this.h=n,this[r.$popPara](),s.HTMLResult.success((0,o.createWrapper)(this,f),p))}}class ue extends r.XFAObject{constructor(e){super(h,"edge",!0),this.cap=(0,s.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,s.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,s.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](){const e=(0,o.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,o.measureToString)(this.thickness),color:this.color?this.color[r.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class de extends r.OptionObject{constructor(e){super(h,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class he extends r.XFAObject{constructor(e){super(h,"encodings",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new r.XFAObjectArray}}class fe extends r.XFAObject{constructor(e){super(h,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class pe extends r.XFAObject{constructor(e){super(h,"encryptData",!0),this.id=e.id||"",this.operation=(0,s.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class me extends r.XFAObject{constructor(e){super(h,"encryption",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class ge extends r.OptionObject{constructor(e){super(h,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ye extends r.XFAObject{constructor(e){super(h,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new r.XFAObjectArray}}class be extends r.XFAObject{constructor(e){super(h,"event",!0),this.activity=(0,s.getStringOption)(e.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=e.id||"",this.listen=(0,s.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class ve extends r.ContentObject{constructor(e){super(h,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,s.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,s.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$isCDATAXml](){return"text/html"===this.contentType}[r.$onChild](e){return("text/html"===this.contentType&&e[r.$namespaceId]===a.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[r.$content]=e,!0)}[r.$toHTML](e){return"text/html"===this.contentType&&this[r.$content]?this[r.$content][r.$toHTML](e):s.HTMLResult.EMPTY}}class we extends r.XFAObject{constructor(e){super(h,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.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 xe extends r.XFAObject{constructor(e){super(h,"exclGroup",!0),this.access=(0,s.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,s.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,s.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,s.getMeasurement)(e.h):"",this.hAlign=(0,s.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,s.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,s.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,s.getMeasurement)(e.maxW,"0pt"),this.minH=(0,s.getMeasurement)(e.minH,"0pt"),this.minW=(0,s.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,s.getMeasurement)(e.w):"",this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.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](e){for(const t of this.field.children){if(!t.value){const e=new Nt({});t[r.$appendChild](e),t.value=e}t.value[r.$setValue](e)}}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}[r.$isSplittable](){const e=this[r.$getSubformParent]();return!!e[r.$isSplittable]()&&(void 0!==this[r.$extra]._isSplittable?this[r.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[r.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[r.$extra].numberInLine)&&(this[r.$extra]._isSplittable=!0,!0))}[r.$flushHTML](){return(0,i.flushHTML)(this)}[r.$addHTML](e,t){(0,i.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,i.getAvailableSpace)(this)}[r.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return s.HTMLResult.EMPTY;(0,o.fixDimensions)(this);const t=[],n={id:this[r.$uid],class:[]};(0,o.setAccess)(this,n.class),this[r.$extra]||(this[r.$extra]=Object.create(null)),Object.assign(this[r.$extra],{children:t,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const a=this[r.$isSplittable]();if(a||O(this),!(0,i.checkDimensions)(this,e))return s.HTMLResult.FAILURE;const l=new Set(["field"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[r.$extra].columnWidths=e,this[r.$extra].currentColumn=0)}const c=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),u=["xfaExclgroup"],d=(0,o.layoutClass)(this);d&&u.push(d),(0,o.isPrintOnly)(this)&&u.push("xfaPrintOnly"),n.style=c,n.class=u,this.name&&(n.xfaName=this.name),this[r.$pushPara]();const h="lr-tb"===this.layout||"rl-tb"===this.layout,f=h?2:1;for(;this[r.$extra].attempte>=1||-1===e}),this.h=e.h?(0,s.getMeasurement)(e.h):"",this.hAlign=(0,s.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,s.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,s.getMeasurement)(e.maxW,"0pt"),this.minH=(0,s.getMeasurement)(e.minH,"0pt"),this.minW=(0,s.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,s.getRelevant)(e.relevant),this.rotate=(0,s.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,s.getMeasurement)(e.w):"",this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.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](e){v(this,e)}[r.$toHTML](e){if(S(this),!this.ui){let e;switch(this.ui=new Et({}),this.ui[r.$globalData]=this[r.$globalData],this[r.$appendChild](this.ui),this.items.children.length){case 0:e=new Ct({}),this.ui.textEdit=e;break;case 1:e=new X({}),this.ui.checkButton=e;break;case 2:e=new K({}),this.ui.choiceList=e}this.ui[r.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return s.HTMLResult.EMPTY;this.caption&&delete this.caption[r.$extra],this[r.$pushPara]();const t=this.caption?this.caption[r.$toHTML](e).html:null,n=this.w,a=this.h;let l=0,u=0;this.margin&&(l=this.margin.leftInset+this.margin.rightInset,u=this.margin.topInset+this.margin.bottomInset);let d=null;if(""===this.w||""===this.h){let t=null,n=null,a=0,i=0;if(this.ui.checkButton)a=i=this.ui.checkButton.size;else{const{w:t,h:n}=(0,o.layoutNode)(this,e);null!==t?(a=t,i=n):i=(0,c.getMetrics)(this.font,!0).lineNoGap}if(d=y(this.ui[r.$getExtra]()),a+=d.w,i+=d.h,this.caption){const{w:o,h:l,isBroken:c}=this.caption[r.$getExtra](e);if(c&&this[r.$getSubformParent]()[r.$isThereMoreWidth]())return this[r.$popPara](),s.HTMLResult.FAILURE;switch(t=o,n=l,this.caption.placement){case"left":case"right":case"inline":t+=a;break;case"top":case"bottom":n+=i}}else t=a,n=i;t&&""===this.w&&(t+=l,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1e>=1&&e<=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 _e extends r.ContentObject{constructor(e){super(h,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return C(null!==this[r.$content]?this[r.$content].toString():"")}}class je extends r.XFAObject{constructor(e){super(h,"font",!0),this.baselineShift=(0,s.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,s.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=(0,s.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||"",this.kerningMode=(0,s.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,s.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,s.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,s.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,s.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,s.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,s.getStringOption)(e.posture,["normal","italic"]),this.size=(0,s.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,s.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,s.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,s.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[r.$clean](e){super[r.$clean](e),this[r.$globalData].usedTypefaces.add(this.typeface)}[r.$toStyle](){const e=(0,o.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,o.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,o.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,o.measureToString)(.99*this.size),(0,o.setFontFamily)(this,this,this[r.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}class Pe extends r.XFAObject{constructor(e){super(h,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class Te extends r.StringObject{constructor(e){super(h,"handler"),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ee extends r.XFAObject{constructor(e){super(h,"hyphenation"),this.excludeAllCaps=(0,s.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,s.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,s.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,s.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=(0,s.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,s.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Me extends r.StringObject{constructor(e){super(h,"image"),this.aspect=(0,s.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,s.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$toHTML](){if(this.contentType&&!m.has(this.contentType.toLowerCase()))return s.HTMLResult.EMPTY;let e=this[r.$globalData].images&&this[r.$globalData].images.get(this.href);if(!e&&(this.href||!this[r.$content]))return s.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,l.stringToBytes)(atob(this[r.$content]))),!e)return s.HTMLResult.EMPTY;if(!this.contentType){for(const[t,n]of g)if(e.length>t.length&&t.every(((t,n)=>t===e[n]))){this.contentType=n;break}if(!this.contentType)return s.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let n;switch(this.aspect){case"fit":case"actual":break;case"height":n={height:"100%",objectFit:"fill"};break;case"none":n={width:"100%",height:"100%",objectFit:"fill"};break;case"width":n={width:"100%",objectFit:"fill"}}const a=this[r.$getParent]();return s.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:n,src:URL.createObjectURL(t),alt:a?A(a[r.$getParent]()):null}})}}class Ne extends r.XFAObject{constructor(e){super(h,"imageEdit",!0),this.data=(0,s.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){return"embed"===this.data?s.HTMLResult.success({name:"div",children:[],attributes:{}}):s.HTMLResult.EMPTY}}class Ie extends r.ContentObject{constructor(e){super(h,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseInt(this[r.$content].trim(),10);this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return C(null!==this[r.$content]?this[r.$content].toString():"")}}class De extends r.XFAObject{constructor(e){super(h,"issuers",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class Fe extends r.XFAObject{constructor(e){super(h,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,s.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.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 e=[];for(const t of this[r.$getChildren]())e.push(t[r.$text]());return s.HTMLResult.success(e)}}t.Items=Fe;class Re extends r.XFAObject{constructor(e){super(h,"keep",!0),this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=(0,s.getStringOption)(e.intact,t),this.next=(0,s.getStringOption)(e.next,t),this.previous=(0,s.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class $e extends r.XFAObject{constructor(e){super(h,"keyUsage");const t=["","yes","no"];this.crlSign=(0,s.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,s.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,s.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,s.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,s.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,s.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,s.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,s.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,s.getStringOption)(e.nonRepudiation,t),this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Le extends r.XFAObject{constructor(e){super(h,"line",!0),this.hand=(0,s.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,s.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[r.$toHTML](){const e=this[r.$getParent]()[r.$getParent](),t=this.edge||new ue({}),n=t[r.$toStyle](),a=Object.create(null),i="visible"===t.presence?t.thickness:0;let l,c,u,d;a.strokeWidth=(0,o.measureToString)(i),a.stroke=n.color;let h="100%",p="100%";e.w<=i?([l,c,u,d]=["50%",0,"50%","100%"],h=a.strokeWidth):e.h<=i?([l,c,u,d]=[0,"50%","100%","50%"],p=a.strokeWidth):"\\"===this.slope?[l,c,u,d]=[0,0,"100%","100%"]:[l,c,u,d]=[0,"100%","100%",0];const m={name:"svg",children:[{name:"line",attributes:{xmlns:f,x1:l,y1:c,x2:u,y2:d,style:a}}],attributes:{xmlns:f,width:h,height:p,style:{overflow:"visible"}}};return b(e)?s.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[m]}):(m.attributes.style.position="absolute",s.HTMLResult.success(m))}}class Be extends r.XFAObject{constructor(e){super(h,"linear",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){return e=e?e[r.$toStyle]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[r.$toStyle]():"#000000"})`}}class Ue extends r.ContentObject{constructor(e){super(h,"lockDocument"),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=(0,s.getStringOption)(this[r.$content],["auto","0","1"])}}class ze extends r.XFAObject{constructor(e){super(h,"manifest",!0),this.action=(0,s.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new r.XFAObjectArray}}class He extends r.XFAObject{constructor(e){super(h,"margin",!0),this.bottomInset=(0,s.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,s.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,s.getMeasurement)(e.rightInset,"0"),this.topInset=(0,s.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toStyle](){return{margin:(0,o.measureToString)(this.topInset)+" "+(0,o.measureToString)(this.rightInset)+" "+(0,o.measureToString)(this.bottomInset)+" "+(0,o.measureToString)(this.leftInset)}}}class qe extends r.XFAObject{constructor(e){super(h,"mdp"),this.id=e.id||"",this.permissions=(0,s.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,s.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class We extends r.XFAObject{constructor(e){super(h,"medium"),this.id=e.id||"",this.imagingBBox=(0,s.getBBox)(e.imagingBBox),this.long=(0,s.getMeasurement)(e.long),this.orientation=(0,s.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,s.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,s.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,s.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ge extends r.XFAObject{constructor(e){super(h,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new r.XFAObjectArray}}class Ve extends r.XFAObject{constructor(e){super(h,"numericEdit",!0),this.hScrollPolicy=(0,s.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,o.toStyle)(this,"border","font","margin"),n=this[r.$getParent]()[r.$getParent](),a={name:"input",attributes:{type:"text",fieldId:n[r.$uid],dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":A(n),"aria-required":!1}};return x(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),s.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class Xe extends r.XFAObject{constructor(e){super(h,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,s.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,s.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,s.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$clean](){const e=this[r.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof Je||e instanceof Qe?0:1),""===this.max&&(this.max=""===t?e instanceof Je||e instanceof Qe?-1:1:this.min),-1!==this.max&&this.max!0}),this.name=e.name||"",this.numbered=(0,s.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,s.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,s.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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||-1===this.occur.max||this[r.$extra].numberOfUsee.oddOrEven===t&&e.pagePosition===n));return a||(a=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===n)),a||(a=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition)),a||this.pageArea.children[0]))}}class et extends r.XFAObject{constructor(e){super(h,"para",!0),this.hAlign=(0,s.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,s.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,s.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,s.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,s.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,s.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,s.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,s.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,s.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map(((e,t)=>t%2===1?(0,s.getMeasurement)(e):e)),this.textIndent=e.textIndent?(0,s.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,s.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,s.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[r.$toStyle](){const e=(0,o.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,o.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,o.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,o.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,o.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,o.measureToString)(this.textIndent),(0,o.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,o.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,o.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[r.$toStyle]()),e}}class tt extends r.XFAObject{constructor(e){super(h,"passwordEdit",!0),this.hScrollPolicy=(0,s.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class nt extends r.XFAObject{constructor(e){super(h,"pattern",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000",n="repeating-linear-gradient",a=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return`${n}(to top,${a}) ${n}(to right,${a})`;case"crossDiagonal":return`${n}(45deg,${a}) ${n}(-45deg,${a})`;case"diagonalLeft":return`${n}(45deg,${a})`;case"diagonalRight":return`${n}(-45deg,${a})`;case"horizontal":return`${n}(to top,${a})`;case"vertical":return`${n}(to right,${a})`}return""}}class rt extends r.StringObject{constructor(e){super(h,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class at extends r.XFAObject{constructor(e){super(h,"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 it extends r.XFAObject{constructor(e){super(h,"radial",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${e},${t}`:`${t},${e}`})`}}class ot extends r.StringObject{constructor(e){super(h,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class st extends r.XFAObject{constructor(e){super(h,"reasons",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new r.XFAObjectArray}}class lt extends r.XFAObject{constructor(e){super(h,"rectangle",!0),this.hand=(0,s.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new r.XFAObjectArray(4),this.edge=new r.XFAObjectArray(4),this.fill=null}[r.$toHTML](){const e=this.edge.children.length?this.edge.children[0]:new ue({}),t=e[r.$toStyle](),n=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(n,this.fill[r.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,o.measureToString)("visible"===e.presence?e.thickness:0),n.stroke=t.color;const a=(this.corner.children.length?this.corner.children[0]:new ee({}))[r.$toStyle](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:f,width:"100%",height:"100%",x:0,y:0,rx:a.radius,ry:a.radius,style:n}}],attributes:{xmlns:f,style:{overflow:"visible"},width:"100%",height:"100%"}};return b(this[r.$getParent]()[r.$getParent]())?s.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]}):(i.attributes.style.position="absolute",s.HTMLResult.success(i))}}class ct extends r.StringObject{constructor(e){super(h,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ut extends r.StringObject{constructor(e){super(h,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,s.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class dt extends r.XFAObject{constructor(e){super(h,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}t.SetProperty=dt;class ht extends r.XFAObject{constructor(e){super(h,"signData",!0),this.id=e.id||"",this.operation=(0,s.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ft extends r.XFAObject{constructor(e){super(h,"signature",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class pt extends r.XFAObject{constructor(e){super(h,"signing",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class mt extends r.XFAObject{constructor(e){super(h,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toStyle](e){return e?e[r.$toStyle]():"#FFFFFF"}}class gt extends r.StringObject{constructor(e){super(h,"speak"),this.disable=(0,s.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,s.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class yt extends r.XFAObject{constructor(e){super(h,"stipple",!0),this.id=e.id||"",this.rate=(0,s.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){const t=this.rate/100;return l.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class bt extends r.XFAObject{constructor(e){super(h,"subform",!0),this.access=(0,s.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,s.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,s.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,s.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((e=>"-1"===e?-1:(0,s.getMeasurement)(e))),this.h=e.h?(0,s.getMeasurement)(e.h):"",this.hAlign=(0,s.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,s.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,s.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,s.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,s.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,s.getMeasurement)(e.minH,"0pt"),this.minW=(0,s.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,s.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,s.getRelevant)(e.relevant),this.restoreState=(0,s.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,s.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,s.getMeasurement)(e.w):"",this.x=(0,s.getMeasurement)(e.x,"0pt"),this.y=(0,s.getMeasurement)(e.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 e=this[r.$getParent]();return e instanceof vt?e[r.$getSubformParent]():e}[r.$isBindable](){return!0}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}*[r.$getContainedChildren](){yield*w(this)}[r.$flushHTML](){return(0,i.flushHTML)(this)}[r.$addHTML](e,t){(0,i.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,i.getAvailableSpace)(this)}[r.$isSplittable](){const e=this[r.$getSubformParent]();return!!e[r.$isSplittable]()&&(void 0!==this[r.$extra]._isSplittable?this[r.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[r.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[r.$extra].numberInLine)&&(this[r.$extra]._isSplittable=!0,!0))}[r.$toHTML](e){if(S(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new U({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new z({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Ze({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.overflow.push(e)}this[r.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return s.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,l.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(j(e))return s.HTMLResult.breakNode(e)}if(this[r.$extra]&&this[r.$extra].afterBreakAfter)return s.HTMLResult.EMPTY;(0,o.fixDimensions)(this);const t=[],n={id:this[r.$uid],class:[]};(0,o.setAccess)(this,n.class),this[r.$extra]||(this[r.$extra]=Object.create(null)),Object.assign(this[r.$extra],{children:t,line:null,attributes:n,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const a=this[r.$getTemplateRoot](),c=a[r.$extra].noLayoutFailure,u=this[r.$isSplittable]();if(u||O(this),!(0,i.checkDimensions)(this,e))return s.HTMLResult.FAILURE;const d=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[r.$extra].columnWidths=e,this[r.$extra].currentColumn=0)}const h=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),f=["xfaSubform"],p=(0,o.layoutClass)(this);if(p&&f.push(p),n.style=h,n.class=f,this.name&&(n.xfaName=this.name),this.overflow){const t=this.overflow[r.$getExtra]();t.addLeader&&(t.addLeader=!1,P(this,t.leader,e))}this[r.$pushPara]();const m="lr-tb"===this.layout||"rl-tb"===this.layout,g=m?2:1;for(;this[r.$extra].attempt=1){const e=this.breakAfter.children[0];if(j(e))return this[r.$extra].afterBreakAfter=C,s.HTMLResult.breakNode(e)}return delete this[r.$extra],C}}class vt extends r.XFAObject{constructor(e){super(h,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,s.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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*w(this)}[r.$getSubformParent](){let e=this[r.$getParent]();for(;!(e instanceof bt);)e=e[r.$getParent]();return e}[r.$isBindable](){return!0}}class wt extends r.ContentObject{constructor(e){super(h,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=new Map(this[r.$content].split(this.delimiter).map((e=>((e=e.split("=",2))[0]=e[0].trim(),e))))}}class xt extends r.XFAObject{constructor(e){super(h,"subjectDNs",!0),this.id=e.id||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new r.XFAObjectArray}}class St extends r.XFAObject{constructor(e){super(h,"submit",!0),this.embedPDF=(0,s.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,s.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,s.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new r.XFAObjectArray,this.signData=new r.XFAObjectArray}}class kt extends r.XFAObject{constructor(e){super(h,"template",!0),this.baseProfile=(0,s.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new r.XFAObjectArray}[r.$finalize](){0===this.subform.children.length&&(0,l.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,l.warn)("XFA - Several subforms in template node: please file a bug."),this[r.$tabIndex]=5e3}[r.$isSplittable](){return!0}[r.$searchNode](e,t){return e.startsWith("#")?[this[r.$ids].get(e.slice(1))]:(0,d.searchNode)(this,t,e,!0,!0)}*[r.$toPages](){if(!this.subform.children.length)return s.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 e=this.subform.children[0];e.pageSet[r.$cleanPage]();const t=e.pageSet.pageArea.children,n={name:"div",children:[]};let a=null,i=null,o=null;if(e.breakBefore.children.length>=1?(i=e.breakBefore.children[0],o=i.target):e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?(i=e.subform.children[0].breakBefore.children[0],o=i.target):e.break&&e.break.beforeTarget?(i=e.break,o=i.beforeTarget):e.subform.children.length>=1&&e.subform.children[0].break&&e.subform.children[0].break.beforeTarget&&(i=e.subform.children[0].break,o=i.beforeTarget),i){const e=this[r.$searchNode](o,i[r.$getParent]());e instanceof Je&&(a=e,i[r.$extra]={})}a||(a=t[0]),a[r.$extra]={numberOfUse:1};const c=a[r.$getParent]();let u;c[r.$extra]={numberOfUse:1,pageIndex:c.pageArea.children.indexOf(a),pageSetIndex:0};let d=null,h=null,f=!0,p=0,m=0;for(;;){if(f)p=0;else if(n.children.pop(),3===++p)return(0,l.warn)("XFA - Something goes wrong: please file a bug."),n;u=null,this[r.$extra].currentPageArea=a;const t=a[r.$toHTML]().html;n.children.push(t),d&&(this[r.$extra].noLayoutFailure=!0,t.children.push(d[r.$toHTML](a[r.$extra].space).html),d=null),h&&(this[r.$extra].noLayoutFailure=!0,t.children.push(h[r.$toHTML](a[r.$extra].space).html),h=null);const i=a.contentArea.children,o=t.children.filter((e=>e.attributes.class.includes("xfaContentarea")));f=!1,this[r.$extra].firstUnsplittable=null,this[r.$extra].noLayoutFailure=!1;const s=t=>{const n=e[r.$flushHTML]();n&&(f=f||n.children&&0!==n.children.length,o[t].children.push(n))};for(let a=m,l=i.length;a1&&n.children.pop(),n;if(c.isBreak()){const e=c.breakNode;if(s(a),"auto"===e.targetType)continue;e.leader&&(d=this[r.$searchNode](e.leader,e[r.$getParent]()),d=d?d[0]:null),e.trailer&&(h=this[r.$searchNode](e.trailer,e[r.$getParent]()),h=h?h[0]:null),"pageArea"===e.targetType?(u=e[r.$extra].target,a=1/0):e[r.$extra].target?(u=e[r.$extra].target,m=e[r.$extra].index+1,a=1/0):a=e[r.$extra].index}else if(this[r.$extra].overflowNode){const e=this[r.$extra].overflowNode;this[r.$extra].overflowNode=null;const t=e[r.$getExtra](),n=t.target;t.addLeader=null!==t.leader,t.addTrailer=null!==t.trailer,s(a);const o=a;if(a=1/0,n instanceof Je)u=n;else if(n instanceof Q){const e=i.indexOf(n);-1!==e?e>o?a=e-1:m=e:(u=n[r.$getParent](),m=u.contentArea.children.indexOf(n))}}else s(a)}this[r.$extra].pageNumber+=1,u&&(u[r.$isUsable]()?u[r.$extra].numberOfUse+=1:u=null),a=u||a[r.$getNextPage](),yield null}}}t.Template=kt;class At extends r.ContentObject{constructor(e){super(h,"text"),this.id=e.id||"",this.maxChars=(0,s.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$acceptWhitespace](){return!0}[r.$onChild](e){return e[r.$namespaceId]===a.NamespaceIds.xhtml.id?(this[r.$content]=e,!0):((0,l.warn)(`XFA - Invalid content in Text: ${e[r.$nodeName]}.`),!1)}[r.$onText](e){this[r.$content]instanceof r.XFAObject||super[r.$onText](e)}[r.$finalize](){"string"===typeof this[r.$content]&&(this[r.$content]=this[r.$content].replace(/\r\n/g,"\n"))}[r.$getExtra](){return"string"===typeof this[r.$content]?this[r.$content].split(/[\u2029\u2028\n]/).reduce(((e,t)=>(t&&e.push(t),e)),[]).join("\n"):this[r.$content][r.$text]()}[r.$toHTML](e){if("string"===typeof this[r.$content]){const e=C(this[r.$content]).html;return this[r.$content].includes("\u2029")?(e.name="div",e.children=[],this[r.$content].split("\u2029").map((e=>e.split(/[\u2028\n]/).reduce(((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e)),[]))).forEach((t=>{e.children.push({name:"p",children:t})}))):/[\u2028\n]/.test(this[r.$content])&&(e.name="div",e.children=[],this[r.$content].split(/[\u2028\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))),s.HTMLResult.success(e)}return this[r.$content][r.$toHTML](e)}}t.Text=At;class Ct extends r.XFAObject{constructor(e){super(h,"textEdit",!0),this.allowRichText=(0,s.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,s.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,s.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,s.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,o.toStyle)(this,"border","font","margin");let n;const a=this[r.$getParent]()[r.$getParent]();return""===this.multiLine&&(this.multiLine=a instanceof ce?1:0),n=1===this.multiLine?{name:"textarea",attributes:{dataId:a[r.$data]&&a[r.$data][r.$uid]||a[r.$uid],fieldId:a[r.$uid],class:["xfaTextfield"],style:t,"aria-label":A(a),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:a[r.$data]&&a[r.$data][r.$uid]||a[r.$uid],fieldId:a[r.$uid],class:["xfaTextfield"],style:t,"aria-label":A(a),"aria-required":!1}},x(a)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),s.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Ot extends r.StringObject{constructor(e){super(h,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return C(this[r.$content]?this[r.$content].toString():"")}}class _t extends r.XFAObject{constructor(e){super(h,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,s.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class jt extends r.StringObject{constructor(e){super(h,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Pt extends r.XFAObject{constructor(e){super(h,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new r.XFAObjectArray}}class Tt extends r.XFAObject{constructor(e){super(h,"traverse",!0),this.id=e.id||"",this.operation=(0,s.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[r.$isTransparent](){return!1}}class Et extends r.XFAObject{constructor(e){super(h,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.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(void 0===this[r.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof r.XFAObject)return this[r.$extra]=t,t}this[r.$extra]=null}return this[r.$extra]}[r.$toHTML](e){const t=this[r.$getExtra]();return t?t[r.$toHTML](e):s.HTMLResult.EMPTY}}class Mt extends r.XFAObject{constructor(e){super(h,"validate",!0),this.formatTest=(0,s.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,s.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,s.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Nt extends r.XFAObject{constructor(e){super(h,"value",!0),this.id=e.id||"",this.override=(0,s.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,s.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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](e){const t=this[r.$getParent]();if(t instanceof Ae&&t.ui&&t.ui.imageEdit)return this.image||(this.image=new Me({}),this[r.$appendChild](this.image)),void(this.image[r.$content]=e[r.$content]);const n=e[r.$nodeName];if(null===this[n]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];t instanceof r.XFAObject&&(this[e]=null,this[r.$removeChild](t))}this[e[r.$nodeName]]=e,this[r.$appendChild](e)}else this[n][r.$content]=e[r.$content]}[r.$text](){if(this.exData)return"string"===typeof this.exData[r.$content]?this.exData[r.$content].trim():this.exData[r.$content][r.$text]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof r.XFAObject)return(t[r.$content]||"").toString().trim()}return null}[r.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const n=this[t];if(n instanceof r.XFAObject)return n[r.$toHTML](e)}return s.HTMLResult.EMPTY}}t.Value=Nt;class It extends r.XFAObject{constructor(e){super(h,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.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 Dt{static[a.$buildXFAObject](e,t){if(Dt.hasOwnProperty(e)){const n=Dt[e](t);return n[r.$setSetAttributes](t),n}}static appearanceFilter(e){return new T(e)}static arc(e){return new E(e)}static area(e){return new M(e)}static assist(e){return new N(e)}static barcode(e){return new I(e)}static bind(e){return new D(e)}static bindItems(e){return new F(e)}static bookend(e){return new R(e)}static boolean(e){return new $(e)}static border(e){return new L(e)}static break(e){return new B(e)}static breakAfter(e){return new U(e)}static breakBefore(e){return new z(e)}static button(e){return new H(e)}static calculate(e){return new q(e)}static caption(e){return new W(e)}static certificate(e){return new G(e)}static certificates(e){return new V(e)}static checkButton(e){return new X(e)}static choiceList(e){return new K(e)}static color(e){return new Y(e)}static comb(e){return new Z(e)}static connect(e){return new J(e)}static contentArea(e){return new Q(e)}static corner(e){return new ee(e)}static date(e){return new te(e)}static dateTime(e){return new ne(e)}static dateTimeEdit(e){return new re(e)}static decimal(e){return new ae(e)}static defaultUi(e){return new ie(e)}static desc(e){return new oe(e)}static digestMethod(e){return new se(e)}static digestMethods(e){return new le(e)}static draw(e){return new ce(e)}static edge(e){return new ue(e)}static encoding(e){return new de(e)}static encodings(e){return new he(e)}static encrypt(e){return new fe(e)}static encryptData(e){return new pe(e)}static encryption(e){return new me(e)}static encryptionMethod(e){return new ge(e)}static encryptionMethods(e){return new ye(e)}static event(e){return new be(e)}static exData(e){return new ve(e)}static exObject(e){return new we(e)}static exclGroup(e){return new xe(e)}static execute(e){return new Se(e)}static extras(e){return new ke(e)}static field(e){return new Ae(e)}static fill(e){return new Ce(e)}static filter(e){return new Oe(e)}static float(e){return new _e(e)}static font(e){return new je(e)}static format(e){return new Pe(e)}static handler(e){return new Te(e)}static hyphenation(e){return new Ee(e)}static image(e){return new Me(e)}static imageEdit(e){return new Ne(e)}static integer(e){return new Ie(e)}static issuers(e){return new De(e)}static items(e){return new Fe(e)}static keep(e){return new Re(e)}static keyUsage(e){return new $e(e)}static line(e){return new Le(e)}static linear(e){return new Be(e)}static lockDocument(e){return new Ue(e)}static manifest(e){return new ze(e)}static margin(e){return new He(e)}static mdp(e){return new qe(e)}static medium(e){return new We(e)}static message(e){return new Ge(e)}static numericEdit(e){return new Ve(e)}static occur(e){return new Xe(e)}static oid(e){return new Ke(e)}static oids(e){return new Ye(e)}static overflow(e){return new Ze(e)}static pageArea(e){return new Je(e)}static pageSet(e){return new Qe(e)}static para(e){return new et(e)}static passwordEdit(e){return new tt(e)}static pattern(e){return new nt(e)}static picture(e){return new rt(e)}static proto(e){return new at(e)}static radial(e){return new it(e)}static reason(e){return new ot(e)}static reasons(e){return new st(e)}static rectangle(e){return new lt(e)}static ref(e){return new ct(e)}static script(e){return new ut(e)}static setProperty(e){return new dt(e)}static signData(e){return new ht(e)}static signature(e){return new ft(e)}static signing(e){return new pt(e)}static solid(e){return new mt(e)}static speak(e){return new gt(e)}static stipple(e){return new yt(e)}static subform(e){return new bt(e)}static subformSet(e){return new vt(e)}static subjectDN(e){return new wt(e)}static subjectDNs(e){return new xt(e)}static submit(e){return new St(e)}static template(e){return new kt(e)}static text(e){return new At(e)}static textEdit(e){return new Ct(e)}static time(e){return new Ot(e)}static timeStamp(e){return new _t(e)}static toolTip(e){return new jt(e)}static traversal(e){return new Pt(e)}static traverse(e){return new Tt(e)}static ui(e){return new Et(e)}static validate(e){return new Mt(e)}static value(e){return new Nt(e)}static variables(e){return new It(e)}}t.TemplateNamespace=Dt},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,n){const o=e[r.$extra],s=o.availableSpace,[l,c,u,d]=n;switch(e.layout){case"position":o.width=Math.max(o.width,l+u),o.height=Math.max(o.height,c+d),o.children.push(t);break;case"lr-tb":case"rl-tb":o.line&&1!==o.attempt||(o.line=i(e,[]),o.children.push(o.line),o.numberInLine=0),o.numberInLine+=1,o.line.children.push(t),0===o.attempt?(o.currentWidth+=u,o.height=Math.max(o.height,o.prevHeight+d)):(o.currentWidth=u,o.prevHeight=o.height,o.height+=d,o.attempt=0),o.width=Math.max(o.width,o.currentWidth);break;case"rl-row":case"row":{o.children.push(t),o.width+=u,o.height=Math.max(o.height,d);const e=(0,a.measureToString)(o.height);for(const t of o.children)t.attributes.style.height=e;break}case"table":case"tb":o.width=Math.min(s.width,Math.max(o.width,u)),o.height+=d,o.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[r.$getTemplateRoot]()[r.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;const n=e[r.$getSubformParent](),a=n[r.$extra]&&n[r.$extra].attempt||0,[,i,o,s]=function(e){let t,n,r=""===e.w?NaN:e.w,a=""===e.h?NaN:e.h,[i,o]=[0,0];switch(e.anchorType||""){case"bottomCenter":[i,o]=[r/2,a];break;case"bottomLeft":[i,o]=[0,a];break;case"bottomRight":[i,o]=[r,a];break;case"middleCenter":[i,o]=[r/2,a/2];break;case"middleLeft":[i,o]=[0,a/2];break;case"middleRight":[i,o]=[r,a/2];break;case"topCenter":[i,o]=[r/2,0];break;case"topRight":[i,o]=[r,0]}switch(e.rotate||0){case 0:[t,n]=[-i,-o];break;case 90:[t,n]=[-o,i],[r,a]=[a,-r];break;case 180:[t,n]=[i,o],[r,a]=[-r,-a];break;case 270:[t,n]=[o,-i],[r,a]=[-a,r]}return[e.x+t+Math.min(0,r),e.y+n+Math.min(0,a),Math.abs(r),Math.abs(a)]}(e);switch(n.layout){case"lr-tb":case"rl-tb":return 0===a?e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure?""!==e.w?Math.round(o-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(s-t.height)>2)&&(""!==e.w?Math.round(o-t.width)<=2||0===n[r.$extra].numberInLine&&t.height>2:t.width>2):!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||!(""!==e.h&&Math.round(s-t.height)>2)&&(""===e.w||Math.round(o-t.width)<=2||!n[r.$isThereMoreWidth]())&&t.height>2;case"table":case"tb":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||e[r.$isSplittable]()?(""===e.w||Math.round(o-t.width)<=2||!n[r.$isThereMoreWidth]())&&t.height>2:Math.round(s-t.height)<=2);case"position":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||Math.round(s+i-t.height)<=2||s+i>e[r.$getTemplateRoot]()[r.$extra].currentContentArea.h);case"rl-row":case"row":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||""===e.h||Math.round(s-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[r.$extra])return null;const t={name:"div",attributes:e[r.$extra].attributes,children:e[r.$extra].children};if(e[r.$extra].failingNode){const n=e[r.$extra].failingNode[r.$flushHTML]();n&&(e.layout.endsWith("-tb")?t.children.push(i(e,[n])):t.children.push(n))}return 0===t.children.length?null:t},t.getAvailableSpace=function(e){const t=e[r.$extra].availableSpace,n=e.margin?e.margin.topInset+e.margin.bottomInset:0,a=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[r.$extra].attempt?{width:t.width-a-e[r.$extra].currentWidth,height:t.height-n-e[r.$extra].prevHeight}:{width:t.width-a,height:t.height-n-e[r.$extra].height};case"rl-row":case"row":return{width:e[r.$extra].columnWidths.slice(e[r.$extra].currentColumn).reduce(((e,t)=>e+t)),height:t.height-a};case"table":case"tb":return{width:t.width-a,height:t.height-n-e[r.$extra].height};default:return t}};var r=n(77),a=n(84);function i(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,n){let a;if(""!==e.w&&""!==e.h)a=[e.x,e.y,e.w,e.h];else{if(!n)return null;let i=e.w;if(""===i){if(0===e.maxW){const t=e[r.$getSubformParent]();i="position"===t.layout&&""!==t.w?0:e.minW}else i=Math.min(e.maxW,n.width);t.attributes.style.width=l(i)}let o=e.h;if(""===o){if(0===e.maxH){const t=e[r.$getSubformParent]();o="position"===t.layout&&""!==t.h?0:e.minH}else o=Math.min(e.maxH,n.height);t.attributes.style.height=l(o)}a=[e.x,e.y,i,o]}return a},t.createWrapper=function(e,t){const{attributes:n}=t,{style:a}=n,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(n.class.push("xfaWrapped"),e.border){const{widths:n,insets:o}=e.border[r.$extra];let s,l,c=o[0],u=o[3];const h=o[0]+o[2],f=o[1]+o[3];switch(e.border.hand){case"even":c-=n[0]/2,u-=n[3]/2,s=`calc(100% + ${(n[1]+n[3])/2-f}px)`,l=`calc(100% + ${(n[0]+n[2])/2-h}px)`;break;case"left":c-=n[0],u-=n[3],s=`calc(100% + ${n[1]+n[3]-f}px)`,l=`calc(100% + ${n[0]+n[2]-h}px)`;break;case"right":s=f?`calc(100% - ${f}px)`:"100%",l=h?`calc(100% - ${h}px)`:"100%"}const p=["xfaBorder"];d(e.border)&&p.push("xfaPrintOnly");const m={name:"div",attributes:{class:p,style:{top:`${c}px`,left:`${u}px`,width:s,height:l}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==a[e]&&(m.attributes.style[e]=a[e],delete a[e]);i.children.push(m,t)}else i.children.push(t);for(const r of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==a[r]&&(i.attributes.style[r]=a[r],delete a[r]);return"absolute"===a.position?i.attributes.style.position="absolute":i.attributes.style.position="relative",delete a.position,a.alignSelf&&(i.attributes.style.alignSelf=a.alignSelf,delete a.alignSelf),i},t.fixDimensions=function(e){const t=e[r.$getSubformParent]();if(t.layout&&t.layout.includes("row")){const n=t[r.$extra],a=e.colSpan;let i;i=-1===a?n.columnWidths.slice(n.currentColumn).reduce(((e,t)=>e+t),0):n.columnWidths.slice(n.currentColumn,n.currentColumn+a).reduce(((e,t)=>e+t),0),isNaN(i)||(e.w=i)}t.layout&&"position"!==t.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce(((e,t)=>e+t),0))},t.fixTextIndent=function(e){const t=(0,i.getMeasurement)(e.textIndent,"0px");if(t>=0)return;const n="padding"+("left"===("right"===e.textAlign?"right":"left")?"Left":"Right"),r=(0,i.getMeasurement)(e[n],"0px");e[n]=r-t+"px"},t.fixURL=function(e){const t=(0,a.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null},t.isPrintOnly=d,t.layoutClass=function(e){switch(e.layout){case"position":default: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"}},t.layoutNode=function(e,t){let n=null,a=null,i=!1;if((!e.w||!e.h)&&e.value){let o=0,s=0;e.margin&&(o=e.margin.leftInset+e.margin.rightInset,s=e.margin.topInset+e.margin.bottomInset);let l=null,c=null;e.para&&(c=Object.create(null),l=""===e.para.lineHeight?null:e.para.lineHeight,c.top=""===e.para.spaceAbove?0:e.para.spaceAbove,c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,c.left=""===e.para.marginLeft?0:e.para.marginLeft,c.right=""===e.para.marginRight?0:e.para.marginRight);let d=e.font;if(!d){const t=e[r.$getTemplateRoot]();let n=e[r.$getParent]();for(;n&&n!==t;){if(n.font){d=n.font;break}n=n[r.$getParent]()}}const h=(e.w||t.width)-o,f=e[r.$globalData].fontFinder;if(e.value.exData&&e.value.exData[r.$content]&&"text/html"===e.value.exData.contentType){const t=u(e.value.exData[r.$content],d,c,l,f,h);a=t.width,n=t.height,i=t.isBroken}else{const t=e.value[r.$text]();if(t){const e=u(t,d,c,l,f,h);a=e.width,n=e.height,i=e.isBroken}}null===a||e.w||(a+=o),null===n||e.h||(n+=s)}return{w:a,h:n,isBroken:i}},t.measureToString=l,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,n,r){if(!n)return void delete r.fontFamily;const a=(0,i.stripQuotes)(e.typeface);r.fontFamily=`"${a}"`;const s=n.find(a);if(s){const{fontFamily:n}=s.regular.cssFontInfo;n!==a&&(r.fontFamily=`"${n}"`);const i=h(t);if(i&&""!==i.lineHeight)return;if(r.lineHeight)return;const l=(0,o.selectFont)(e,s);l&&(r.lineHeight=Math.max(1.2,l.lineHeight))}},t.setMinMaxDimensions=function(e,t){"position"===e[r.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=l(e.minW)),e.maxW>0&&(t.maxWidth=l(e.maxW)),e.minH>0&&(t.minHeight=l(e.minH)),e.maxH>0&&(t.maxHeight=l(e.maxH)))},t.setPara=function(e,t,n){if(n.attributes.class&&n.attributes.class.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));const a=h(e);if(a){const e=n.attributes.style;switch(e.display="flex",e.flexDirection="column",a.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=a[r.$toStyle]();for(const[n,r]of Object.entries(t))n in e||(e[n]=r)}}},t.toStyle=function(e){const t=Object.create(null);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;oe+t),0),t.currentColumn=0):(o=t.columnWidths.slice(t.currentColumn,t.currentColumn+i).reduce(((e,t)=>e+t),0),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(o)||(a=e.w=o)}t.width=""!==a?l(a):"auto",t.height=""!==i?l(i):"auto"},position(e,t){const n=e[r.$getSubformParent]();n&&n.layout&&"position"!==n.layout||(t.position="absolute",t.left=l(e.x),t.top=l(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[r.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[r.$toStyle]().margin)}};function u(e,t,n,a,i,o){const l=new s.TextMeasure(t,n,a,i);return"string"===typeof e?l.addString(e):e[r.$pushGlyphs](l),l.compute(o)}function d(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function h(e){const t=e[r.$getTemplateRoot]()[r.$extra].paraStack;return t.length?t.at(-1):null}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;if(e){const t=(0,a.stripQuotes)(e.typeface),i=e[r.$globalData].fontFinder.find(t);n=o(e,i)}if(!n)return{lineHeight:12,lineGap:2,lineNoGap:10};const i=e.size||10,s=n.lineHeight?Math.max(t?0:1.2,n.lineHeight):1.2,l=void 0===n.lineGap?.2:n.lineGap;return{lineHeight:s*i,lineGap:l*i,lineNoGap:Math.max(1,s-l)*i}},t.selectFont=o;var r=n(77),a=n(78),i=n(2);function o(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;for(const r of e)this.addPdfFont(r);for(const r of this.fonts.values())r.regular||(r.regular=r.italic||r.bold||r.bolditalic);if(!t||0===t.size)return;const n=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const r of t)this.fonts.set(r,n)}addPdfFont(e){const t=e.cssFontInfo,n=t.fontFamily;let r=this.fonts.get(n);r||(r=Object.create(null),this.fonts.set(n,r),this.defaultFont||(this.defaultFont=r));let a="";const i=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?a=i>=700?"bolditalic":"italic":i>=700&&(a="bold"),a||((e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(a="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(a+="italic")),a||(a="regular"),r[a]=e}getDefault(){return this.defaultFont}find(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.fonts.get(e)||this.cache.get(e);if(n)return n;const r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let a=e.replace(r,"");if(n=this.fonts.get(a),n)return this.cache.set(e,n),n;a=a.toLowerCase();const o=[];for(const[i,s]of this.fonts.entries())i.replace(r,"").toLowerCase().startsWith(a)&&o.push(s);if(0===o.length)for(const[,i]of this.fonts.entries())i.regular.name&&i.regular.name.replace(r,"").toLowerCase().startsWith(a)&&o.push(i);if(0===o.length){a=a.replace(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replace(r,"").toLowerCase().startsWith(a)&&o.push(t)}if(0===o.length)for(const i of this.fonts.values())i.regular.name&&i.regular.name.replace(r,"").toLowerCase().startsWith(a)&&o.push(i);return o.length>=1?(1!==o.length&&t&&(0,i.warn)(`XFA - Too many choices to guess the correct font: ${e}`),this.cache.set(e,o[0]),o[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,i.warn)(`XFA - Cannot find the font: ${e}`)),null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var r=n(85);class a{constructor(e,t,n,a){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(a));this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const i=a.find(e.typeface);i?(this.pdfFont=(0,r.selectFont)(e,i),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(a))):[this.pdfFont,this.xfaFont]=this.defaultFont(a)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t&&t.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class i{constructor(e,t,n,r){this.fontFinder=r,this.stack=[new a(e,t,n,r)]}pushData(e,t,n){const r=this.stack.at(-1);for(const a of["typeface","posture","weight","size","letterSpacing"])e[a]||(e[a]=r.xfaFont[a]);for(const a of["top","bottom","left","right"])isNaN(t[a])&&(t[a]=r.paraMargin[a]);const i=new a(e,t,n||r.lineHeight,this.fontFinder);i.pdfFont||(i.pdfFont=r.pdfFont),this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,n,r){this.glyphs=[],this.fontSelector=new i(e,t,n,r),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){const r=t.xfaFont.letterSpacing,a=t.pdfFont,i=a.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,i)*n,s=i-(void 0===a.lineGap?.2:a.lineGap),l=Math.max(1,s)*n,c=n/1e3,u=a.defaultWidth||a.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\u2029\n]/)){const e=a.encodeString(t).join(""),n=a.charsToGlyphs(e);for(const t of n){const e=t.width||u;this.glyphs.push([e*c+r,o,l,t.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([n,1.2*n,n,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,n=0,r=0,a=0,i=0,o=0,s=!1,l=!0;for(let c=0,u=this.glyphs.length;ce?(r=Math.max(r,i),i=0,a+=o,o=g,t=-1,n=0,s=!0,l=!1):(o=Math.max(g,o),n=i,i+=u,t=c):i+u>e?(a+=o,o=g,-1!==t?(c=t,r=Math.max(r,n),i=0,t=-1,n=0):(r=Math.max(r,i),i=u),s=!0,l=!1):(i+=u,o=Math.max(g,o))}return r=Math.max(r,i),a+=o+this.extraHeight,{width:1.02*r,height:a,isBroken:s}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var r=n(77);t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[r.$getChildren]()]];for(;t.length>0;){const n=t.at(-1),[a,i]=n;if(a+1===i.length){t.pop();continue}const o=i[++n[0]],s=e.get(o[r.$uid]);if(s)o[r.$setValue](s);else{const t=o[r.$getAttributes]();for(const n of t.values()){const t=e.get(n[r.$uid]);if(t){n[r.$setValue](t);break}}}const l=o[r.$getChildren]();l.length>0&&t.push([-1,l])}const n=[''];if(this.dataset)for(const a of this.dataset[r.$getChildren]())"data"!==a[r.$nodeName]&&a[r.$toString](n);return this.data[r.$toString](n),n.push(""),n.join("")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var r=n(77),a=n(66),i=n(89),o=n(2);class s extends a.XMLParserBase{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this._builder=new i.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=a.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===a.XMLParserErrorCode.NoError)return this._current[r.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" ")),this._richText||this._current[r.$acceptWhitespace]()?this._current[r.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[r.$onText](e.trim())}onCdata(e){this._current[r.$onText](e)}_mkAttributes(e,t){let n=null,a=null;const i=Object.create({});for(const{name:s,value:l}of e)if("xmlns"===s)n?(0,o.warn)(`XFA - multiple namespace definition in <${t}>`):n=l;else if(s.startsWith("xmlns:")){const e=s.substring("xmlns:".length);a||(a=[]),a.push({prefix:e,value:l})}else{const e=s.indexOf(":");if(-1===e)i[s]=l;else{let t=i[r.$nsAttributes];t||(t=i[r.$nsAttributes]=Object.create(null));const[n,a]=[s.slice(0,e),s.slice(e+1)];let o=t[n];o||(o=t[n]=Object.create(null)),o[a]=l}}return[n,a,i]}_getNameAndPrefix(e,t){const n=e.indexOf(":");return-1===n?[e,null]:[e.substring(n+1),t?"":e.substring(0,n)]}onBeginElement(e,t,n){const[a,i,o]=this._mkAttributes(t,e),[s,l]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:l,name:s,attributes:o,namespace:a,prefixes:i});if(c[r.$globalData]=this._globalData,n)return c[r.$finalize](),this._current[r.$onChild](c)&&c[r.$setId](this._ids),void c[r.$clean](this._builder);this._stack.push(this._current),this._current=c}onEndElement(e){const t=this._current;if(t[r.$isCDATAXml]()&&"string"===typeof t[r.$content]){const e=new s;e._globalData=this._globalData;const n=e.parse(t[r.$content]);t[r.$content]=null,t[r.$onChild](n)}t[r.$finalize](),this._current=this._stack.pop(),this._current[r.$onChild](t)&&t[r.$setId](this._ids),t[r.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var r=n(79),a=n(77),i=n(90),o=n(82),s=n(99),l=n(2);class c extends a.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[a.$ids]=e}[a.$onChild](e){return this.element=e,!0}[a.$finalize](){super[a.$finalize](),this.element.template instanceof o.Template&&(this[a.$ids].set(a.$root,this.element),this.element.template[a.$resolvePrototypes](this[a.$ids]),this.element.template[a.$ids]=this[a.$ids])}}class u extends a.XFAObject{constructor(){super(-1,"",Object.create(null))}[a.$onChild](e){return!1}}t.Builder=class{constructor(){let e=arguments.length>0&&void 0!==arguments[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((e=>{let{id:t}=e;return t}))),this._currentNamespace=e||new s.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new c(e)}build(e){let{nsPrefix:t,name:n,attributes:o,namespace:s,prefixes:l}=e;const c=null!==s;if(c&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),l&&this._addNamespacePrefix(l),o.hasOwnProperty(a.$nsAttributes)){const e=i.NamespaceSetUp.datasets,t=o[a.$nsAttributes];let n=null;for(const[r,a]of Object.entries(t))if(this._getNamespaceToUse(r)===e){n={xfa:a};break}n?o[a.$nsAttributes]=n:delete o[a.$nsAttributes]}const d=this._getNamespaceToUse(t),h=d&&d[r.$buildXFAObject](n,o)||new u;return h[a.$isNsAgnostic]()&&this._nsAgnosticLevel++,(c||l||h[a.$isNsAgnostic]())&&(h[a.$cleanup]={hasNamespace:c,prefixes:l,nsAgnostic:h[a.$isNsAgnostic]()}),h}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[n,{check:a}]of Object.entries(r.NamespaceIds))if(a(e)){if(t=i.NamespaceSetUp[n],t)return this._namespaces.set(e,t),t;break}return t=new s.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}_addNamespacePrefix(e){for(const{prefix:t,value:n}of e){const e=this._searchNamespace(n);let r=this._namespacePrefixes.get(t);r||(r=[],this._namespacePrefixes.set(t,r)),r.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);return t&&t.length>0?t.at(-1):((0,l.warn)(`Unknown namespace prefix: ${e}.`),null)}clean(e){const{hasNamespace:t,prefixes:n,nsAgnostic:r}=e;t&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((e=>{let{prefix:t}=e;this._namespacePrefixes.get(t).pop()})),r&&this._nsAgnosticLevel--}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var r=n(91),a=n(92),i=n(93),o=n(94),s=n(95),l=n(96),c=n(82),u=n(97),d=n(98);const h={config:r.ConfigNamespace,connection:a.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:u.XdpNamespace,xhtml:d.XhtmlNamespace};t.NamespaceSetUp=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var r=n(79),a=n(77),i=n(78),o=n(2);const s=r.NamespaceIds.config.id;class l extends a.XFAObject{constructor(e){super(s,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new a.XFAObjectArray}}class c extends a.XFAObject{constructor(e){super(s,"acrobat7",!0),this.dynamicRender=null}}class u extends a.OptionObject{constructor(e){super(s,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class d extends a.OptionObject{constructor(e){super(s,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class h extends a.Option01{constructor(e){super(s,"addSilentPrint")}}class f extends a.Option01{constructor(e){super(s,"addViewerPreferences")}}class p extends a.Option10{constructor(e){super(s,"adjustData")}}class m extends a.IntegerObject{constructor(e){super(s,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class g extends a.XFAObject{constructor(e){super(s,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new a.XFAObjectArray}}class y extends a.ContentObject{constructor(e){super(s,"alwaysEmbed")}}class b extends a.StringObject{constructor(e){super(s,"amd")}}class v extends a.XFAObject{constructor(e){super(s,"area"),this.level=(0,i.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3}),this.name=(0,i.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class w extends a.OptionObject{constructor(e){super(s,"attributes",["preserve","delegate","ignore"])}}class x extends a.OptionObject{constructor(e){super(s,"autoSave",["disabled","enabled"])}}class S extends a.StringObject{constructor(e){super(s,"base")}}class k extends a.XFAObject{constructor(e){super(s,"batchOutput"),this.format=(0,i.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class A extends a.ContentObject{constructor(e){super(s,"behaviorOverride")}[a.$finalize](){this[a.$content]=new Map(this[a.$content].trim().split(/\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class C extends a.XFAObject{constructor(e){super(s,"cache",!0),this.templateCache=null}}class O extends a.Option01{constructor(e){super(s,"change")}}class _ extends a.XFAObject{constructor(e){super(s,"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 a.XFAObjectArray}}class j extends a.XFAObject{constructor(e){super(s,"compress"),this.scope=(0,i.getStringOption)(e.scope,["imageOnly","document"])}}class P extends a.Option01{constructor(e){super(s,"compressLogicalStructure")}}class T extends a.Option10{constructor(e){super(s,"compressObjectStream")}}class E extends a.XFAObject{constructor(e){super(s,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class M extends a.XFAObject{constructor(e){super(s,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new a.XFAObjectArray}}class N extends a.OptionObject{constructor(e){super(s,"conformance",["A","B"])}}class I extends a.Option01{constructor(e){super(s,"contentCopy")}}class D extends a.IntegerObject{constructor(e){super(s,"copies",1,(e=>e>=1))}}class F extends a.StringObject{constructor(e){super(s,"creator")}}class R extends a.IntegerObject{constructor(e){super(s,"currentPage",0,(e=>e>=0))}}class $ extends a.XFAObject{constructor(e){super(s,"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 a.XFAObjectArray,this.transform=new a.XFAObjectArray}}class L extends a.XFAObject{constructor(e){super(s,"debug",!0),this.uri=null}}class B extends a.ContentObject{constructor(e){super(s,"defaultTypeface"),this.writingScript=(0,i.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class U extends a.OptionObject{constructor(e){super(s,"destination",["pdf","pcl","ps","webClient","zpl"])}}class z extends a.Option01{constructor(e){super(s,"documentAssembly")}}class H extends a.XFAObject{constructor(e){super(s,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class q extends a.OptionObject{constructor(e){super(s,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class W extends a.OptionObject{constructor(e){super(s,"dynamicRender",["forbidden","required"])}}class G extends a.Option01{constructor(e){super(s,"embed")}}class V extends a.Option01{constructor(e){super(s,"encrypt")}}class X extends a.XFAObject{constructor(e){super(s,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class K extends a.OptionObject{constructor(e){super(s,"encryptionLevel",["40bit","128bit"])}}class Y extends a.StringObject{constructor(e){super(s,"enforce")}}class Z extends a.XFAObject{constructor(e){super(s,"equate"),this.force=(0,i.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class J extends a.XFAObject{constructor(e){super(s,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,n=this._unicodeRange;for(let r of n.split(",").map((e=>e.trim())).filter((e=>!!e)))r=r.split("-",2).map((e=>{const n=e.match(t);return n?parseInt(n[1],16):0})),1===r.length&&r.push(r[0]),e.push(r);return(0,o.shadow)(this,"unicodeRange",e)}}class Q extends a.ContentObject{constructor(e){super(s,"exclude")}[a.$finalize](){this[a.$content]=this[a.$content].trim().split(/\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class ee extends a.StringObject{constructor(e){super(s,"excludeNS")}}class te extends a.OptionObject{constructor(e){super(s,"flipLabel",["usePrinterSetting","on","off"])}}class ne extends a.XFAObject{constructor(e){super(s,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new a.XFAObjectArray,this.defaultTypeface=new a.XFAObjectArray,this.neverEmbed=new a.XFAObjectArray}}class re extends a.Option01{constructor(e){super(s,"formFieldFilling")}}class ae extends a.StringObject{constructor(e){super(s,"groupParent")}}class ie extends a.OptionObject{constructor(e){super(s,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class oe extends a.StringObject{constructor(e){super(s,"includeXDPContent")}}class se extends a.OptionObject{constructor(e){super(s,"incrementalLoad",["none","forwardOnly"])}}class le extends a.Option01{constructor(e){super(s,"incrementalMerge")}}class ce extends a.Option01{constructor(e){super(s,"interactive")}}class ue extends a.OptionObject{constructor(e){super(s,"jog",["usePrinterSetting","none","pageSet"])}}class de extends a.XFAObject{constructor(e){super(s,"labelPrinter",!0),this.name=(0,i.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class he extends a.OptionObject{constructor(e){super(s,"layout",["paginate","panel"])}}class fe extends a.IntegerObject{constructor(e){super(s,"level",0,(e=>e>0))}}class pe extends a.Option01{constructor(e){super(s,"linearized")}}class me extends a.StringObject{constructor(e){super(s,"locale")}}class ge extends a.StringObject{constructor(e){super(s,"localeSet")}}class ye extends a.XFAObject{constructor(e){super(s,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class be extends a.XFAObject{constructor(e){super(s,"map",!0),this.equate=new a.XFAObjectArray,this.equateRange=new a.XFAObjectArray}}class ve extends a.XFAObject{constructor(e){super(s,"mediumInfo",!0),this.map=null}}class we extends a.XFAObject{constructor(e){super(s,"message",!0),this.msgId=null,this.severity=null}}class xe extends a.XFAObject{constructor(e){super(s,"messaging",!0),this.message=new a.XFAObjectArray}}class Se extends a.OptionObject{constructor(e){super(s,"mode",["append","overwrite"])}}class ke extends a.Option01{constructor(e){super(s,"modifyAnnots")}}class Ae extends a.IntegerObject{constructor(e){super(s,"msgId",1,(e=>e>=1))}}class Ce extends a.StringObject{constructor(e){super(s,"nameAttr")}}class Oe extends a.ContentObject{constructor(e){super(s,"neverEmbed")}}class _e extends a.IntegerObject{constructor(e){super(s,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class je extends a.XFAObject{constructor(e){super(s,"openAction",!0),this.destination=null}}class Pe extends a.XFAObject{constructor(e){super(s,"output",!0),this.to=null,this.type=null,this.uri=null}}class Te extends a.StringObject{constructor(e){super(s,"outputBin")}}class Ee extends a.XFAObject{constructor(e){super(s,"outputXSL",!0),this.uri=null}}class Me extends a.OptionObject{constructor(e){super(s,"overprint",["none","both","draw","field"])}}class Ne extends a.StringObject{constructor(e){super(s,"packets")}[a.$finalize](){"*"!==this[a.$content]&&(this[a.$content]=this[a.$content].trim().split(/\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class Ie extends a.XFAObject{constructor(e){super(s,"pageOffset"),this.x=(0,i.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,i.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class De extends a.StringObject{constructor(e){super(s,"pageRange")}[a.$finalize](){const e=this[a.$content].trim().split(/\s+/).map((e=>parseInt(e,10))),t=[];for(let n=0,r=e.length;n!1))}}class Le extends a.XFAObject{constructor(e){super(s,"pcl",!0),this.name=e.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 Be extends a.XFAObject{constructor(e){super(s,"pdf",!0),this.name=e.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 Ue extends a.XFAObject{constructor(e){super(s,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class ze extends a.XFAObject{constructor(e){super(s,"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 He extends a.Option01{constructor(e){super(s,"pickTrayByPDFSize")}}class qe extends a.StringObject{constructor(e){super(s,"picture")}}class We extends a.Option01{constructor(e){super(s,"plaintextMetadata")}}class Ge extends a.OptionObject{constructor(e){super(s,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Ve extends a.XFAObject{constructor(e){super(s,"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 a.XFAObjectArray,this.labelPrinter=new a.XFAObjectArray,this.pcl=new a.XFAObjectArray,this.pdf=new a.XFAObjectArray,this.ps=new a.XFAObjectArray,this.submitUrl=new a.XFAObjectArray,this.webClient=new a.XFAObjectArray,this.zpl=new a.XFAObjectArray}}class Xe extends a.Option01{constructor(e){super(s,"print")}}class Ke extends a.Option01{constructor(e){super(s,"printHighQuality")}}class Ye extends a.OptionObject{constructor(e){super(s,"printScaling",["appdefault","noScaling"])}}class Ze extends a.StringObject{constructor(e){super(s,"printerName")}}class Je extends a.StringObject{constructor(e){super(s,"producer")}}class Qe extends a.XFAObject{constructor(e){super(s,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class et extends a.ContentObject{constructor(e){super(s,"range")}[a.$finalize](){this[a.$content]=this[a.$content].trim().split(/\s*,\s*/,2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>(1===e.length&&e.push(e[0]),e)))}}class tt extends a.ContentObject{constructor(e){super(s,"record")}[a.$finalize](){this[a.$content]=this[a.$content].trim();const e=parseInt(this[a.$content],10);!isNaN(e)&&e>=0&&(this[a.$content]=e)}}class nt extends a.ContentObject{constructor(e){super(s,"relevant")}[a.$finalize](){this[a.$content]=this[a.$content].trim().split(/\s+/)}}class rt extends a.ContentObject{constructor(e){super(s,"rename")}[a.$finalize](){this[a.$content]=this[a.$content].trim(),(this[a.$content].toLowerCase().startsWith("xml")||this[a.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,o.warn)("XFA - Rename: invalid XFA name")}}class at extends a.OptionObject{constructor(e){super(s,"renderPolicy",["server","client"])}}class it extends a.OptionObject{constructor(e){super(s,"runScripts",["both","client","none","server"])}}class ot extends a.XFAObject{constructor(e){super(s,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class st extends a.OptionObject{constructor(e){super(s,"scriptModel",["XFA","none"])}}class lt extends a.OptionObject{constructor(e){super(s,"severity",["ignore","error","information","trace","warning"])}}class ct extends a.XFAObject{constructor(e){super(s,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class ut extends a.XFAObject{constructor(e){super(s,"staple"),this.mode=(0,i.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class dt extends a.StringObject{constructor(e){super(s,"startNode")}}class ht extends a.IntegerObject{constructor(e){super(s,"startPage",0,(e=>!0))}}class ft extends a.OptionObject{constructor(e){super(s,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class pt extends a.StringObject{constructor(e){super(s,"submitUrl")}}class mt extends a.IntegerObject{constructor(e){super(s,"subsetBelow",100,(e=>e>=0&&e<=100))}}class gt extends a.Option01{constructor(e){super(s,"suppressBanner")}}class yt extends a.Option01{constructor(e){super(s,"tagged")}}class bt extends a.XFAObject{constructor(e){super(s,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class vt extends a.OptionObject{constructor(e){super(s,"threshold",["trace","error","information","warning"])}}class wt extends a.OptionObject{constructor(e){super(s,"to",["null","memory","stderr","stdout","system","uri"])}}class xt extends a.XFAObject{constructor(e){super(s,"templateCache"),this.maxEntries=(0,i.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class St extends a.XFAObject{constructor(e){super(s,"trace",!0),this.area=new a.XFAObjectArray}}class kt extends a.XFAObject{constructor(e){super(s,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class At extends a.OptionObject{constructor(e){super(s,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ct extends a.StringObject{constructor(e){super(s,"uri")}}class Ot extends a.OptionObject{constructor(e){super(s,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class _t extends a.ContentObject{constructor(e){super(s,"validateApprovalSignatures")}[a.$finalize](){this[a.$content]=this[a.$content].trim().split(/\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class jt extends a.OptionObject{constructor(e){super(s,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Pt extends a.OptionObject{constructor(e){super(s,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Tt extends a.XFAObject{constructor(e){super(s,"VersionControl"),this.outputBelow=(0,i.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,i.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,i.getStringOption)(e.sourceBelow,["update","maintain"])}}class Et extends a.XFAObject{constructor(e){super(s,"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 Mt extends a.XFAObject{constructor(e){super(s,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Nt extends a.OptionObject{constructor(e){super(s,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class It extends a.ContentObject{constructor(e){super(s,"window")}[a.$finalize](){const e=this[a.$content].trim().split(/\s*,\s*/,2).map((e=>parseInt(e,10)));e.some((e=>isNaN(e)))?this[a.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[a.$content]=e)}}class Dt extends a.XFAObject{constructor(e){super(s,"xdc",!0),this.uri=new a.XFAObjectArray,this.xsl=new a.XFAObjectArray}}class Ft extends a.XFAObject{constructor(e){super(s,"xdp",!0),this.packets=null}}class Rt extends a.XFAObject{constructor(e){super(s,"xsl",!0),this.debug=null,this.uri=null}}class $t extends a.XFAObject{constructor(e){super(s,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Lt{static[r.$buildXFAObject](e,t){if(Lt.hasOwnProperty(e))return Lt[e](t)}static acrobat(e){return new l(e)}static acrobat7(e){return new c(e)}static ADBE_JSConsole(e){return new u(e)}static ADBE_JSDebugger(e){return new d(e)}static addSilentPrint(e){return new h(e)}static addViewerPreferences(e){return new f(e)}static adjustData(e){return new p(e)}static adobeExtensionLevel(e){return new m(e)}static agent(e){return new g(e)}static alwaysEmbed(e){return new y(e)}static amd(e){return new b(e)}static area(e){return new v(e)}static attributes(e){return new w(e)}static autoSave(e){return new x(e)}static base(e){return new S(e)}static batchOutput(e){return new k(e)}static behaviorOverride(e){return new A(e)}static cache(e){return new C(e)}static change(e){return new O(e)}static common(e){return new _(e)}static compress(e){return new j(e)}static compressLogicalStructure(e){return new P(e)}static compressObjectStream(e){return new T(e)}static compression(e){return new E(e)}static config(e){return new M(e)}static conformance(e){return new N(e)}static contentCopy(e){return new I(e)}static copies(e){return new D(e)}static creator(e){return new F(e)}static currentPage(e){return new R(e)}static data(e){return new $(e)}static debug(e){return new L(e)}static defaultTypeface(e){return new B(e)}static destination(e){return new U(e)}static documentAssembly(e){return new z(e)}static driver(e){return new H(e)}static duplexOption(e){return new q(e)}static dynamicRender(e){return new W(e)}static embed(e){return new G(e)}static encrypt(e){return new V(e)}static encryption(e){return new X(e)}static encryptionLevel(e){return new K(e)}static enforce(e){return new Y(e)}static equate(e){return new Z(e)}static equateRange(e){return new J(e)}static exclude(e){return new Q(e)}static excludeNS(e){return new ee(e)}static flipLabel(e){return new te(e)}static fontInfo(e){return new ne(e)}static formFieldFilling(e){return new re(e)}static groupParent(e){return new ae(e)}static ifEmpty(e){return new ie(e)}static includeXDPContent(e){return new oe(e)}static incrementalLoad(e){return new se(e)}static incrementalMerge(e){return new le(e)}static interactive(e){return new ce(e)}static jog(e){return new ue(e)}static labelPrinter(e){return new de(e)}static layout(e){return new he(e)}static level(e){return new fe(e)}static linearized(e){return new pe(e)}static locale(e){return new me(e)}static localeSet(e){return new ge(e)}static log(e){return new ye(e)}static map(e){return new be(e)}static mediumInfo(e){return new ve(e)}static message(e){return new we(e)}static messaging(e){return new xe(e)}static mode(e){return new Se(e)}static modifyAnnots(e){return new ke(e)}static msgId(e){return new Ae(e)}static nameAttr(e){return new Ce(e)}static neverEmbed(e){return new Oe(e)}static numberOfCopies(e){return new _e(e)}static openAction(e){return new je(e)}static output(e){return new Pe(e)}static outputBin(e){return new Te(e)}static outputXSL(e){return new Ee(e)}static overprint(e){return new Me(e)}static packets(e){return new Ne(e)}static pageOffset(e){return new Ie(e)}static pageRange(e){return new De(e)}static pagination(e){return new Fe(e)}static paginationOverride(e){return new Re(e)}static part(e){return new $e(e)}static pcl(e){return new Le(e)}static pdf(e){return new Be(e)}static pdfa(e){return new Ue(e)}static permissions(e){return new ze(e)}static pickTrayByPDFSize(e){return new He(e)}static picture(e){return new qe(e)}static plaintextMetadata(e){return new We(e)}static presence(e){return new Ge(e)}static present(e){return new Ve(e)}static print(e){return new Xe(e)}static printHighQuality(e){return new Ke(e)}static printScaling(e){return new Ye(e)}static printerName(e){return new Ze(e)}static producer(e){return new Je(e)}static ps(e){return new Qe(e)}static range(e){return new et(e)}static record(e){return new tt(e)}static relevant(e){return new nt(e)}static rename(e){return new rt(e)}static renderPolicy(e){return new at(e)}static runScripts(e){return new it(e)}static script(e){return new ot(e)}static scriptModel(e){return new st(e)}static severity(e){return new lt(e)}static silentPrint(e){return new ct(e)}static staple(e){return new ut(e)}static startNode(e){return new dt(e)}static startPage(e){return new ht(e)}static submitFormat(e){return new ft(e)}static submitUrl(e){return new pt(e)}static subsetBelow(e){return new mt(e)}static suppressBanner(e){return new gt(e)}static tagged(e){return new yt(e)}static template(e){return new bt(e)}static templateCache(e){return new xt(e)}static threshold(e){return new vt(e)}static to(e){return new wt(e)}static trace(e){return new St(e)}static transform(e){return new kt(e)}static type(e){return new At(e)}static uri(e){return new Ct(e)}static validate(e){return new Ot(e)}static validateApprovalSignatures(e){return new _t(e)}static validationMessaging(e){return new jt(e)}static version(e){return new Pt(e)}static versionControl(e){return new Tt(e)}static viewerPreferences(e){return new Et(e)}static webClient(e){return new Mt(e)}static whitespace(e){return new Nt(e)}static window(e){return new It(e)}static xdc(e){return new Dt(e)}static xdp(e){return new Ft(e)}static xsl(e){return new Rt(e)}static zpl(e){return new $t(e)}}t.ConfigNamespace=Lt},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var r=n(79),a=n(77);const i=r.NamespaceIds.connectionSet.id;class o extends a.XFAObject{constructor(e){super(i,"connectionSet",!0),this.wsdlConnection=new a.XFAObjectArray,this.xmlConnection=new a.XFAObjectArray,this.xsdConnection=new a.XFAObjectArray}}class s extends a.XFAObject{constructor(e){super(i,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends a.XFAObject{constructor(e){super(i,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends a.StringObject{constructor(e){super(i,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends a.StringObject{constructor(e){super(i,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends a.StringObject{constructor(e){super(i,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends a.StringObject{constructor(e){super(i,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends a.StringObject{constructor(e){super(i,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends a.StringObject{constructor(e){super(i,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class m extends a.XFAObject{constructor(e){super(i,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class g extends a.XFAObject{constructor(e){super(i,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class y extends a.XFAObject{constructor(e){super(i,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class b{static[r.$buildXFAObject](e,t){if(b.hasOwnProperty(e))return b[e](t)}static connectionSet(e){return new o(e)}static effectiveInputPolicy(e){return new s(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new u(e)}static soapAction(e){return new d(e)}static soapAddress(e){return new h(e)}static uri(e){return new f(e)}static wsdlAddress(e){return new p(e)}static wsdlConnection(e){return new m(e)}static xmlConnection(e){return new g(e)}static xsdConnection(e){return new y(e)}}t.ConnectionSetNamespace=b},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var r=n(77),a=n(79);const i=a.NamespaceIds.datasets.id;class o extends r.XmlObject{constructor(e){super(i,"data",e)}[r.$isNsAgnostic](){return!0}}class s extends r.XFAObject{constructor(e){super(i,"datasets",!0),this.data=null,this.Signature=null}[r.$onChild](e){const t=e[r.$nodeName];("data"===t&&e[r.$namespaceId]===i||"Signature"===t&&e[r.$namespaceId]===a.NamespaceIds.signature.id)&&(this[t]=e),this[r.$appendChild](e)}}class l{static[a.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static datasets(e){return new s(e)}static data(e){return new o(e)}}t.DatasetsNamespace=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var r=n(79),a=n(77),i=n(78);const o=r.NamespaceIds.localeSet.id;class s extends a.XFAObject{constructor(e){super(o,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new a.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new a.XFAObjectArray(2)}}class l extends a.StringObject{constructor(e){super(o,"currencySymbol"),this.name=(0,i.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends a.XFAObject{constructor(e){super(o,"currencySymbols",!0),this.currencySymbol=new a.XFAObjectArray(3)}}class u extends a.StringObject{constructor(e){super(o,"datePattern"),this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class d extends a.XFAObject{constructor(e){super(o,"datePatterns",!0),this.datePattern=new a.XFAObjectArray(4)}}class h extends a.ContentObject{constructor(e){super(o,"dateTimeSymbols")}}class f extends a.StringObject{constructor(e){super(o,"day")}}class p extends a.XFAObject{constructor(e){super(o,"dayNames",!0),this.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new a.XFAObjectArray(7)}}class m extends a.StringObject{constructor(e){super(o,"era")}}class g extends a.XFAObject{constructor(e){super(o,"eraNames",!0),this.era=new a.XFAObjectArray(2)}}class y extends a.XFAObject{constructor(e){super(o,"locale",!0),this.desc=e.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 b extends a.XFAObject{constructor(e){super(o,"localeSet",!0),this.locale=new a.XFAObjectArray}}class v extends a.StringObject{constructor(e){super(o,"meridiem")}}class w extends a.XFAObject{constructor(e){super(o,"meridiemNames",!0),this.meridiem=new a.XFAObjectArray(2)}}class x extends a.StringObject{constructor(e){super(o,"month")}}class S extends a.XFAObject{constructor(e){super(o,"monthNames",!0),this.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new a.XFAObjectArray(12)}}class k extends a.StringObject{constructor(e){super(o,"numberPattern"),this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class A extends a.XFAObject{constructor(e){super(o,"numberPatterns",!0),this.numberPattern=new a.XFAObjectArray(4)}}class C extends a.StringObject{constructor(e){super(o,"numberSymbol"),this.name=(0,i.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class O extends a.XFAObject{constructor(e){super(o,"numberSymbols",!0),this.numberSymbol=new a.XFAObjectArray(5)}}class _ extends a.StringObject{constructor(e){super(o,"timePattern"),this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class j extends a.XFAObject{constructor(e){super(o,"timePatterns",!0),this.timePattern=new a.XFAObjectArray(4)}}class P extends a.XFAObject{constructor(e){super(o,"typeFace",!0),this.name=""|e.name}}class T extends a.XFAObject{constructor(e){super(o,"typeFaces",!0),this.typeFace=new a.XFAObjectArray}}class E{static[r.$buildXFAObject](e,t){if(E.hasOwnProperty(e))return E[e](t)}static calendarSymbols(e){return new s(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new u(e)}static datePatterns(e){return new d(e)}static dateTimeSymbols(e){return new h(e)}static day(e){return new f(e)}static dayNames(e){return new p(e)}static era(e){return new m(e)}static eraNames(e){return new g(e)}static locale(e){return new y(e)}static localeSet(e){return new b(e)}static meridiem(e){return new v(e)}static meridiemNames(e){return new w(e)}static month(e){return new x(e)}static monthNames(e){return new S(e)}static numberPattern(e){return new k(e)}static numberPatterns(e){return new A(e)}static numberSymbol(e){return new C(e)}static numberSymbols(e){return new O(e)}static timePattern(e){return new _(e)}static timePatterns(e){return new j(e)}static typeFace(e){return new P(e)}static typeFaces(e){return new T(e)}}t.LocaleSetNamespace=E},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var r=n(79),a=n(77);const i=r.NamespaceIds.signature.id;class o extends a.XFAObject{constructor(e){super(i,"signature",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static signature(e){return new o(e)}}t.SignatureNamespace=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var r=n(79),a=n(77);const i=r.NamespaceIds.stylesheet.id;class o extends a.XFAObject{constructor(e){super(i,"stylesheet",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static stylesheet(e){return new o(e)}}t.StylesheetNamespace=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var r=n(79),a=n(77);const i=r.NamespaceIds.xdp.id;class o extends a.XFAObject{constructor(e){super(i,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new a.XFAObjectArray,this.template=null}[a.$onChildCheck](e){const t=r.NamespaceIds[e[a.$nodeName]];return t&&e[a.$namespaceId]===t.id}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static xdp(e){return new o(e)}}t.XdpNamespace=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var r=n(77),a=n(79),i=n(84),o=n(78);const s=a.NamespaceIds.xhtml.id,l=Symbol(),c=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"]),u=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,o.getMeasurement)(e),(0,i.measureToString)(.99*e))],["letter-spacing",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["line-height",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["margin",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["margin-bottom",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["margin-left",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["margin-right",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["margin-top",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["text-indent",e=>(0,i.measureToString)((0,o.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,i.measureToString)((0,o.getMeasurement)(e))]]),d=/\s+/g,h=/[\r\n]+/g,f=/\r\n?/g;function p(e,t,n){const a=Object.create(null);if(!e)return a;const s=Object.create(null);for(const[r,i]of e.split(";").map((e=>e.split(":",2)))){const e=u.get(r);if(""===e)continue;let t=i;e&&(t="string"===typeof e?e:e(i,s)),r.endsWith("scale")?a.transform?a.transform=`${a[r]} ${t}`:a.transform=t:a[r.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=t}if(a.fontFamily&&(0,i.setFontFamily)({typeface:a.fontFamily,weight:a.fontWeight||"normal",posture:a.fontStyle||"normal",size:s.fontSize||0},t,t[r.$globalData].fontFinder,a),n&&a.verticalAlign&&"0px"!==a.verticalAlign&&a.fontSize){const e=.583,t=.333,n=(0,o.getMeasurement)(a.fontSize);a.fontSize=(0,i.measureToString)(n*e),a.verticalAlign=(0,i.measureToString)(Math.sign((0,o.getMeasurement)(a.verticalAlign))*n*t)}return n&&a.fontSize&&(a.fontSize=`calc(${a.fontSize} * var(--scale-factor))`),(0,i.fixTextIndent)(a),a}const m=new Set(["body","html"]);class g extends r.XmlObject{constructor(e,t){super(s,t),this[l]=!1,this.style=e.style||""}[r.$clean](e){var t;super[r.$clean](e),this.style=(t=this).style?t.style.trim().split(/\s*;\s*/).filter((e=>!!e)).map((e=>e.split(/\s*:\s*/,2))).filter((e=>{let[n,a]=e;return"font-family"===n&&t[r.$globalData].usedTypefaces.add(a),c.has(n)})).map((e=>e.join(":"))).join(";"):""}[r.$acceptWhitespace](){return!m.has(this[r.$nodeName])}[r.$onText](e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this[l]=!0:(e=e.replace(h,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(d," "))),e&&(this[r.$content]+=e)}[r.$pushGlyphs](e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Object.create(null),a={top:NaN,bottom:NaN,left:NaN,right:NaN};let i=null;for(const[r,s]of this.style.split(";").map((e=>e.split(":",2))))switch(r){case"font-family":n.typeface=(0,o.stripQuotes)(s);break;case"font-size":n.size=(0,o.getMeasurement)(s);break;case"font-weight":n.weight=s;break;case"font-style":n.posture=s;break;case"letter-spacing":n.letterSpacing=(0,o.getMeasurement)(s);break;case"margin":const e=s.split(/ \t/).map((e=>(0,o.getMeasurement)(e)));switch(e.length){case 1:a.top=a.bottom=a.left=a.right=e[0];break;case 2:a.top=a.bottom=e[0],a.left=a.right=e[1];break;case 3:a.top=e[0],a.bottom=e[2],a.left=a.right=e[1];break;case 4:a.top=e[0],a.left=e[1],a.bottom=e[2],a.right=e[3]}break;case"margin-top":a.top=(0,o.getMeasurement)(s);break;case"margin-bottom":a.bottom=(0,o.getMeasurement)(s);break;case"margin-left":a.left=(0,o.getMeasurement)(s);break;case"margin-right":a.right=(0,o.getMeasurement)(s);break;case"line-height":i=(0,o.getMeasurement)(s)}if(e.pushData(n,a,i),this[r.$content])e.addString(this[r.$content]);else for(const o of this[r.$getChildren]())"#text"!==o[r.$nodeName]?o[r.$pushGlyphs](e):e.addString(o[r.$content]);t&&e.popFont()}[r.$toHTML](e){const t=[];if(this[r.$extra]={children:t},this[r.$childrenToHTML]({}),0===t.length&&!this[r.$content])return o.HTMLResult.EMPTY;let n;return n=this[l]?this[r.$content]?this[r.$content].replace(f,"\n"):void 0:this[r.$content]||void 0,o.HTMLResult.success({name:this[r.$nodeName],attributes:{href:this.href,style:p(this.style,this,this[l])},children:t,value:n})}}class y extends g{constructor(e){super(e,"a"),this.href=(0,i.fixURL)(e.href)||""}}class b extends g{constructor(e){super(e,"b")}[r.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[r.$pushGlyphs](e),e.popFont()}}class v extends g{constructor(e){super(e,"body")}[r.$toHTML](e){const t=super[r.$toHTML](e),{html:n}=t;return n?(n.name="div",n.attributes.class=["xfaRich"],t):o.HTMLResult.EMPTY}}class w extends g{constructor(e){super(e,"br")}[r.$text](){return"\n"}[r.$pushGlyphs](e){e.addString("\n")}[r.$toHTML](e){return o.HTMLResult.success({name:"br"})}}class x extends g{constructor(e){super(e,"html")}[r.$toHTML](e){const t=[];if(this[r.$extra]={children:t},this[r.$childrenToHTML]({}),0===t.length)return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[r.$content]||""});if(1===t.length){const e=t[0];if(e.attributes&&e.attributes.class.includes("xfaRich"))return o.HTMLResult.success(e)}return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class S extends g{constructor(e){super(e,"i")}[r.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[r.$pushGlyphs](e),e.popFont()}}class k extends g{constructor(e){super(e,"li")}}class A extends g{constructor(e){super(e,"ol")}}class C extends g{constructor(e){super(e,"p")}[r.$pushGlyphs](e){super[r.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[r.$text](){return this[r.$getParent]()[r.$getChildren]().at(-1)===this?super[r.$text]():super[r.$text]()+"\n"}}class O extends g{constructor(e){super(e,"span")}}class _ extends g{constructor(e){super(e,"sub")}}class j extends g{constructor(e){super(e,"sup")}}class P extends g{constructor(e){super(e,"ul")}}class T{static[a.$buildXFAObject](e,t){if(T.hasOwnProperty(e))return T[e](t)}static a(e){return new y(e)}static b(e){return new b(e)}static body(e){return new v(e)}static br(e){return new w(e)}static html(e){return new x(e)}static i(e){return new S(e)}static li(e){return new k(e)}static ol(e){return new A(e)}static p(e){return new C(e)}static span(e){return new O(e)}static sub(e){return new _(e)}static sup(e){return new j(e)}static ul(e){return new P(e)}}t.XhtmlNamespace=T},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var r=n(79),a=n(77);class i{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new a.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var r=n(2),a=n(6),i=n(66);function o(e){try{return(0,r.stringToUTF8String)(e)}catch(t){return(0,r.warn)(`UTF-8 decoding failed: "${t}".`),e}}class s extends i.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new i.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const n=new s({hasAttributes:!0});try{n.parseFromString(e["xdp:xdp"])}catch(t){}this.node=n.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode((0,a.parseXFAPath)(e),0);if(!t)return"";const n=t.firstChild;return n&&"value"===n.nodeName?t.children.map((e=>o(e.textContent))):o(t.textContent)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var r=n(2),a=n(5),i=n(6),o=n(17),s=n(7),l=n(67);t.XRef=class{constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new a.RefSet,this.stats=new i.DocStats(t.msgHandler),this._newRefNum=null}getNewRef(){return null===this._newRefNum&&(this._newRefNum=this.entries.length||1),a.Ref.get(this._newRefNum++,0)}resetNewRef(){this._newRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(){let e,t,n,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o?((0,r.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(s){if(s instanceof i.MissingDataException)throw s;(0,r.warn)(`XRef.parse - Invalid "Encrypt" reference: "${s}".`)}if(t instanceof a.Dict){const n=e.get("ID"),r=n&&n.length?n[0]:"";t.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(t,r,this.pdfManager.password)}try{n=e.get("Root")}catch(s){if(s instanceof i.MissingDataException)throw s;(0,r.warn)(`XRef.parse - Invalid "Root" reference: "${s}".`)}if(n instanceof a.Dict)try{if(n.get("Pages")instanceof a.Dict)return void(this.root=n)}catch(s){if(s instanceof i.MissingDataException)throw s;(0,r.warn)(`XRef.parse - Invalid "Pages" reference: "${s}".`)}if(!o)throw new i.XRefParseException;throw new r.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});const t=this.readXRefTable(e);if(!(0,a.isCmd)(t,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");let n=e.getObj();if(n instanceof a.Dict||!n.dict||(n=n.dict),!(n instanceof a.Dict))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,n}readXRefTable(e){const t=e.lexer.stream,n=this.tableState;let i;for(t.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,a.isCmd)(i=e.getObj(),"trailer"))break;n.firstEntryNum=i,n.entryCount=e.getObj()}let o=n.firstEntryNum;const s=n.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(let i=n.entryNum;i0;){const[s,l]=o;if(!Number.isInteger(s)||!Number.isInteger(l))throw new r.FormatError(`Invalid XRef range fields: ${s}, ${l}`);if(!Number.isInteger(n)||!Number.isInteger(a)||!Number.isInteger(i))throw new r.FormatError(`Invalid XRef entry fields length: ${s}, ${l}`);for(let o=t.entryNum;o=r.length);)i+=String.fromCharCode(o),o=r[a];return i}function l(e,t,n){const r=n.length,a=e.length;let i=0;for(;t=r)break;t++,i++}return i}const c=/^(\d+)\s+(\d+)\s+obj\b/,u=/\bendobj[\b\s]$/,d=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,h=new Uint8Array([116,114,97,105,108,101,114]),f=new Uint8Array([115,116,97,114,116,120,114,101,102]),p=new Uint8Array([111,98,106]),m=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const g=this.stream;g.pos=0;const y=g.getBytes(),b=y.length;let v=g.start;const w=[],x=[];for(;v=b)break;n=y[v]}while(n!==e&&n!==t);continue}const a=s(y,v);let S;if(a.startsWith("xref")&&(4===a.length||/\s/.test(a[4])))v+=l(y,v,h),w.push(v),v+=l(y,v,f);else if(S=c.exec(a)){const e=0|S[1],t=0|S[2];let n,s=v+a.length,c=!1;if(this.entries[e]){if(this.entries[e].gen===t)try{new o.Parser({lexer:new o.Lexer(g.makeSubStream(s))}).getObj(),c=!0}catch(k){k instanceof i.ParserEOFException?(0,r.warn)(`indexObjects -- checking object (${a}): "${k}".`):c=!0}}else c=!0;for(c&&(this.entries[e]={offset:v-g.start,gen:t,uncompressed:!0});s0&&void 0!==arguments[0]&&arguments[0];const t=this.stream,n=new Set;try{for(;this.startXRefQueue.length;){const e=this.startXRefQueue[0];if(n.has(e)){(0,r.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n.add(e),t.pos=e+t.start;const i=new o.Parser({lexer:new o.Lexer(t),xref:this,allowStreams:!0});let l,c=i.getObj();if((0,a.isCmd)(c,"xref")){if(l=this.processXRefTable(i),this.topDict||(this.topDict=l),c=l.get("XRefStm"),Number.isInteger(c)){const e=c;e in this.xrefstms||(this.xrefstms[e]=1,this.startXRefQueue.push(e))}}else{if(!Number.isInteger(c))throw new r.FormatError("Invalid XRef stream header");if(!Number.isInteger(i.getObj())||!(0,a.isCmd)(i.getObj(),"obj")||!((c=i.getObj())instanceof s.BaseStream))throw new r.FormatError("Invalid XRef stream");if(l=this.processXRefStream(c),this.topDict||(this.topDict=l),!l)throw new r.FormatError("Failed to read XRef stream")}c=l.get("Prev"),Number.isInteger(c)?this.startXRefQueue.push(c):c instanceof a.Ref&&this.startXRefQueue.push(c.num),this.startXRefQueue.shift()}return this.topDict}catch(l){if(l instanceof i.MissingDataException)throw l;(0,r.info)("(while reading XRef): "+l),this.startXRefQueue.shift()}if(!e)throw new i.XRefParseException}getEntry(e){const t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof a.Ref?this.fetch(e,t):e}fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof a.Ref))throw new Error("ref object is not a reference");const n=e.num,i=this._cacheMap.get(n);if(void 0!==i)return i instanceof a.Dict&&!i.objId&&(i.objId=e.toString()),i;let o=this.getEntry(n);if(null===o)return this._cacheMap.set(n,o),o;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,r.warn)(`Ignoring circular reference: ${e}.`),a.CIRCULAR_REF;this._pendingRefs.put(e);try{o=o.uncompressed?this.fetchUncompressed(e,o,t):this.fetchCompressed(e,o,t),this._pendingRefs.remove(e)}catch(l){throw this._pendingRefs.remove(e),l}return o instanceof a.Dict?o.objId=e.toString():o instanceof s.BaseStream&&(o.dict.objId=e.toString()),o}fetchUncompressed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.gen;let l=e.num;if(t.gen!==r)throw new i.XRefEntryException(`Inconsistent generation in XRef: ${e}`);const c=this.stream.makeSubStream(t.offset+this.stream.start),u=new o.Parser({lexer:new o.Lexer(c),xref:this,allowStreams:!0}),d=u.getObj(),h=u.getObj(),f=u.getObj();if(d!==l||h!==r||!(f instanceof a.Cmd))throw new i.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`);if("obj"!==f.cmd){if(f.cmd.startsWith("obj")&&(l=parseInt(f.cmd.substring(3),10),!Number.isNaN(l)))return l;throw new i.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}return(t=this.encrypt&&!n?u.getObj(this.encrypt.createCipherTransform(l,r)):u.getObj())instanceof s.BaseStream||this._cacheMap.set(l,t),t}fetchCompressed(e,t){const n=t.offset,l=this.fetch(a.Ref.get(n,0));if(!(l instanceof s.BaseStream))throw new r.FormatError("bad ObjStm stream");const c=l.dict.get("First"),u=l.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(u))throw new r.FormatError("invalid first and n parameters for ObjStm stream");let d=new o.Parser({lexer:new o.Lexer(l),xref:this,allowStreams:!0});const h=new Array(u),f=new Array(u);for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const a=1,i=2,o=1,s=2,l=3,c=4,u=5,d=6,h=7,f=8;function p(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===a)n.resolve(t.data);else{if(t.callback!==i)throw new Error("Unexpected callback case");n.reject(p(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,o=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:o,callback:a,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:o,callback:i,callbackId:t.callbackId,reason:p(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const a=this.callbackId++,i=(0,r.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},n)}catch(o){i.reject(o)}return i.promise}sendWithStream(e,t,n,a){const i=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const o=(0,r.createPromiseCapability)();return this.streamControllers[i]={controller:n,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:n.desiredSize},a),o.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:o,streamId:i,reason:p(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,o=this,s=this.actionHandler[e.action],d={enqueue(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t}),delete o.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:u,streamId:t,reason:p(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,reason:p(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case f:e.success?m.startCall.resolve():m.startCall.reject(p(e.reason));break;case h:e.success?m.pullCall.resolve():m.pullCall.reject(p(e.reason));break;case d:if(!g){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull&&g.onPull())})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this._deleteStreamController(m,t);break;case u:(0,r.assert)(m,"error should have stream controller"),m.controller.error(p(e.reason)),this._deleteStreamController(m,t);break;case s:e.success?m.cancelCall.resolve():m.cancelCall.reject(p(e.reason)),this._deleteStreamController(m,t);break;case o:if(!g)break;new Promise((function(t){t(g.onCancel&&g.onCancel(p(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,reason:p(e)})})),g.sinkCapability.reject(p(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=n(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,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 a(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const n=new i(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class a{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.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:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class i{constructor(e,t,n){this._msgHandler=n,this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=n(1)})(),r})(),e.exports=t()},329:(e,t,n)=>{"use strict";var r=n(2513);function a(){}var i=null,o={};function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._U=0,this._V=0,this._W=null,this._X=null,e!==a&&f(e,this)}function l(e,t){for(;3===e._V;)e=e._W;if(s._Y&&s._Y(e),0===e._V)return 0===e._U?(e._U=1,void(e._X=t)):1===e._U?(e._U=2,void(e._X=[e._X,t])):void e._X.push(t);!function(e,t){r((function(){var n=1===e._V?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return i=n,o}}(n,e._W);r===o?u(t.promise,i):c(t.promise,r)}else 1===e._V?c(t.promise,e._W):u(t.promise,e._W)}))}(e,t)}function c(e,t){if(t===e)return u(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=function(e){try{return e.then}catch(t){return i=t,o}}(t);if(n===o)return u(e,i);if(n===e.then&&t instanceof s)return e._V=3,e._W=t,void d(e);if("function"===typeof n)return void f(n.bind(t),e)}e._V=1,e._W=t,d(e)}function u(e,t){e._V=2,e._W=t,s._Z&&s._Z(e,t),d(e)}function d(e){if(1===e._U&&(l(e,e._X),e._X=null),2===e._U){for(var t=0;t{"use strict";var r=n(329);e.exports=r;var a=u(!0),i=u(!1),o=u(null),s=u(void 0),l=u(0),c=u("");function u(e){var t=new r(r._0);return t._V=1,t._W=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return o;if(void 0===e)return s;if(!0===e)return a;if(!1===e)return i;if(0===e)return l;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new r(t.bind(e))}catch(n){return new r((function(e,t){t(n)}))}return u(e)};var d=function(e){return"function"===typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};r.all=function(e){var t=d(e);return new r((function(e,n){if(0===t.length)return e([]);var a=t.length;function i(o,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._V;)s=s._W;return 1===s._V?i(o,s._W):(2===s._V&&n(s._W),void s.then((function(e){i(o,e)}),n))}var l=s.then;if("function"===typeof l)return void new r(l.bind(s)).then((function(e){i(o,e)}),n)}t[o]=s,0===--a&&e(t)}for(var o=0;o{"use strict";var r=n(329),a=[ReferenceError,TypeError,RangeError],i=!1;function o(){i=!1,r._Y=null,r._Z=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=o,t.enable=function(e){e=e||{},i&&o();i=!0;var t=0,n=0,l={};function c(t){(e.allRejections||s(l[t].error,e.whitelist||a))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[t].displayId,l[t].error)))}r._Y=function(t){2===t._V&&l[t._1]&&(l[t._1].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._1):clearTimeout(l[t._1].timeout),delete l[t._1])},r._Z=function(e,n){0===e._U&&(e._1=t++,l[e._1]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._1),s(n,a)?100:2e3),logged:!1})}}},3488:(e,t,n)=>{"use strict";var r=n(3959);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},9561:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5010:(e,t,n)=>{"use strict";n(9932),n(3388),n(9075),"undefined"===typeof Promise&&(n(7117).enable(),self.Promise=n(1957)),"undefined"!==typeof window&&n(4038),Object.assign=n(6470)},6317:(e,t,n)=>{"use strict";n(1072),n(4371)},8059:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Calendar:()=>ir,CenturyView:()=>_t,DecadeView:()=>Bt,MonthView:()=>Tn,Navigation:()=>De,YearView:()=>en,default:()=>lr});var r=n(9950),a=n(9561),i=n.n(a),o=n(1426),s=n(5005);function l(e,t,n){return function(r,a){void 0===a&&(a=n);var i=e(r)+a;return t(i)}}function c(e){return function(t){return new Date(e(t).getTime()-1)}}function u(e,t){return function(n){return[e(n),t(n)]}}function d(e){if(e instanceof Date)return e.getFullYear();if("number"===typeof e)return e;var t=parseInt(e,10);if("string"===typeof e&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function h(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function f(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function p(e){var t=d(e),n=t+(1-t)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var m=l(d,p,-100),g=l(d,p,100),y=c(g),b=l(d,y,-100),v=(l(d,y,100),u(p,y));function w(e){var t=d(e),n=t+(1-t)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var x=l(d,w,-10),S=l(d,w,10),k=c(S),A=l(d,k,-10),C=(l(d,k,10),u(w,k));function O(e){var t=d(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var _=l(d,O,-1),j=l(d,O,1),P=c(j),T=l(d,P,-1),E=(l(d,P,1),u(O,P));function M(e,t){return function(n,r){void 0===r&&(r=t);var a=d(n),i=h(n)+r,o=new Date;return o.setFullYear(a,i,1),o.setHours(0,0,0,0),e(o)}}function N(e){var t=d(e),n=h(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var I=M(N,-1),D=M(N,1),F=c(D),R=M(F,-1),$=(M(F,1),u(N,F));function L(e,t){return function(n,r){void 0===r&&(r=t);var a=d(n),i=h(n),o=f(n)+r,s=new Date;return s.setFullYear(a,i,o),s.setHours(0,0,0,0),e(s)}}function B(e){var t=d(e),n=h(e),r=f(e),a=new Date;return a.setFullYear(t,n,r),a.setHours(0,0,0,0),a}L(B,-1);var U,z=c(L(B,1)),H=(L(z,-1),L(z,1),u(B,z));function q(e){return f(F(e))}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:X.ISO_8601,n=e.getDay();switch(t){case X.ISO_8601:return(n+6)%7;case X.ARABIC:return(n+1)%7;case X.HEBREW:case X.US:return n;default:throw new Error("Unsupported calendar type.")}}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X.ISO_8601,n=d(e),r=h(e),a=e.getDate()-ce(e,t);return new Date(n,r,a)}function de(e,t){switch(e){case"century":return p(t);case"decade":return w(t);case"year":return O(t);case"month":return N(t);case"day":return B(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function he(e,t){switch(e){case"century":return g(t);case"decade":return S(t);case"year":return j(t);case"month":return D(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var fe=function(e,t){switch(e){case"decade":return x(t,-100);case"year":return _(t,-10);case"month":return I(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}},pe=function(e,t){switch(e){case"decade":return S(t,100);case"year":return j(t,10);case"month":return D(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}};function me(e,t){switch(e){case"century":return y(t);case"decade":return k(t);case"year":return P(t);case"month":return F(t);case"day":return z(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var ge=function(e,t){switch(e){case"decade":return A(t,-100);case"year":return T(t,-10);case"month":return R(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}};function ye(e,t){switch(e){case"century":return v(t);case"decade":return C(t);case"year":return E(t);case"month":return $(t);case"day":return H(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;return(arguments.length>2?arguments[2]:void 0).map((function(n){return t(e,n)})).join(" \u2013 ")}function ve(e,t,n){return be(e,t,C(n))}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X.ISO_8601,n=e.getDay();switch(t){case X.ARABIC:case X.HEBREW:return n===se||n===le;case X.ISO_8601:case X.US:return n===le||n===oe;default:throw new Error("Unsupported calendar type.")}}function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}var Se=Object.values(X),ke=["century","decade","year","month"],Ae=i().oneOf(Se),Ce=i().oneOfType([i().string,i().arrayOf(i().string)]),Oe=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(xe(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.maxDate;return a&&r>a?new Error("Invalid prop `".concat(t,"` of type `").concat(xe(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null},_e=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(xe(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.minDate;return a&&r0,W="century"!==H,G=function(e,t){switch(e){case"century":return m(t);case"decade":return x(t);case"year":return _(t);case"month":return I(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(H,t),V=W&&fe(H,t),X=he(H,t),K=W&&pe(H,t),Y=function(){if(G.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"century":return b(t);case"decade":return A(t);case"year":return T(t);case"month":return R(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(H,t);return d&&d>=e}(),Z=W&&function(){if(V.getFullYear()<0)return!0;var e=ge(H,t);return d&&d>=e}(),J=u&&u=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ze(e){return"".concat(e,"%")}function He(e){var t=e.children,n=e.className,a=e.direction,i=e.count,o=e.offset,s=e.style,l=e.wrap,c=Ue(e,Fe);return r.createElement("div",Re({className:n,style:Le({display:"flex",flexDirection:a,flexWrap:l?"wrap":"no-wrap"},s)},c),r.Children.map(t,(function(e,t){return r.cloneElement(e,Le(Le({},e.props),{},{style:{flexBasis:ze(100/i),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:o&&0===t?ze(100*o/i):null}}))})))}function qe(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return We(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e}function Ve(e,t){return Ge(e[0],t)||Ge(e[1],t)}function Xe(e,t,n){var r=[];if(Ve(t,e)){r.push(n);var a=Ge(e[0],t),i=Ge(e[1],t);a&&r.push("".concat(n,"Start")),i&&r.push("".concat(n,"End")),a&&i&&r.push("".concat(n,"BothEnds"))}return r}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,a=e.dateType,i=e.hover,o="react-calendar__tile",s=[o];if(!r)return s;if(!Array.isArray(r)&&!a)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,c=Array.isArray(r)?r:ye(a,r);if(Ge(l,c)&&s.push("".concat(o,"--now")),!t)return s;if(!Array.isArray(t)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var u,d,h=Array.isArray(t)?t:ye(n,t);d=c,(u=h)[0]<=d[0]&&u[1]>=d[1]?s.push("".concat(o,"--active")):Ve(h,c)&&s.push("".concat(o,"--hasActive"));var f=Xe(h,c,"".concat(o,"--range"));s.push.apply(s,qe(f));var p=[].concat(t);if(i&&1===p.length){var m=Xe(i>h[0]?[h[0],i]:[i,h[0]],c,"".concat(o,"--hover"));s.push.apply(s,qe(m))}return s}He.propTypes={children:i().node,className:i().string,count:i().number.isRequired,direction:i().string,offset:i().number,style:i().objectOf(i().oneOfType([i().string,i().number])),wrap:i().bool};var Ye=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function nt(e){for(var t=e.className,n=e.count,a=void 0===n?3:n,i=e.dateTransform,o=e.dateType,s=e.end,l=e.hover,c=e.offset,u=e.start,d=e.step,h=void 0===d?1:d,f=e.tile,p=e.value,m=e.valueType,g=tt(e,Ye),y=[],b=u;b<=s;b+=h){var v=i(b);y.push(r.createElement(f,et({key:v.getTime(),classes:Ke({value:p,valueType:m,date:v,dateType:o,hover:l}),date:v,point:b},g)))}return r.createElement(He,{className:t,count:a,offset:c,wrap:!0},y)}function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;ti||c&&u(c)=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var xt="react-calendar__century-view__decades__decade";function St(e){var t=e.classes,n=e.formatYear,a=void 0===n?ie:n,i=wt(e,mt),o=i.date,s=i.locale;return r.createElement(pt,vt({},i,{classes:[].concat(t,xt),maxDateTransform:k,minDateTransform:w,view:"century"}),ve(s,a,o))}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var It="react-calendar__decade-view__years__year";function Dt(e){var t=e.classes,n=e.formatYear,a=void 0===n?ie:n,i=Nt(e,jt),o=i.date,s=i.locale;return r.createElement(pt,Mt({},i,{classes:[].concat(t,It),maxDateTransform:P,minDateTransform:O,view:"decade"}),a(s,o))}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Vt="react-calendar__year-view__months__month";function Xt(e){var t=e.classes,n=e.formatMonth,a=void 0===n?te:n,i=e.formatMonthYear,o=void 0===i?ne:i,s=Gt(e,Ut),l=s.date,c=s.locale;return r.createElement(pt,Wt({},s,{classes:[].concat(t,Vt),formatAbbr:o,maxDateTransform:F,minDateTransform:N,view:"year"}),a(c,l))}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ln="react-calendar__month-view__days__day";function cn(e){var t=e.formatDay,n=void 0===t?Q:t,a=e.formatLongDate,i=void 0===a?ee:a,o=e.calendarType,s=e.classes,l=e.currentMonthIndex,c=sn(e,tn),u=c.date,d=c.locale;return r.createElement(pt,on({},c,{classes:[].concat(s,ln,we(u,o)?"".concat(ln,"--weekend"):null,u.getMonth()!==l?"".concat(ln,"--neighboringMonth"):null),formatAbbr:i,maxDateTransform:z,minDateTransform:B,view:"month"}),n(d,u))}cn.propTypes=rn(rn({},Ne),{},{currentMonthIndex:i().number.isRequired,formatDay:i().func,formatLongDate:i().func});var un=["showFixedNumberOfWeeks","showNeighboringMonth"];function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function mn(e){var t=e.activeStartDate,n=e.calendarType,a=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,o=pn(e,un),s=d(t),l=h(t),c=a||i,u=ce(t,n),f=c?0:u,p=1+(c?-u:0),m=function(){if(a)return p+42-1;var e=q(t);if(i){var r=new Date;return r.setFullYear(s,l,e),r.setHours(0,0,0,0),e+(7-ce(r,n)-1)}return e}();return r.createElement(nt,fn({},o,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:l,dateTransform:function(e){var t=new Date;return t.setFullYear(s,l,e),t.setHours(0,0,0,0),t},dateType:"day",end:m,offset:f,start:p,tile:cn}))}mn.propTypes=function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var An="react-calendar__tile";function Cn(e){var t=e.date,n=e.onClickWeekNumber,a=e.weekNumber,i=kn(e,vn),o=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:X.ISO_8601,r=n===X.US?X.US:X.ISO_8601,a=ue(e,n),i=d(e)+1;do{t=ue(new Date(i,0,r===X.ISO_8601?4:1),n),i-=1}while(e=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Tn(e){var t=e.activeStartDate,n=e.locale,a=e.onMouseLeave,i=e.showFixedNumberOfWeeks,s=e.calendarType,l=void 0===s?function(e){return Object.keys(K).find((function(t){return K[t].includes(e)}))||X.ISO_8601}(n):s,c=e.formatShortWeekday,u=e.formatWeekday,d=e.onClickWeekNumber,h=e.showWeekNumbers,f=Pn(e,_n);var p="react-calendar__month-view";return r.createElement("div",{className:(0,o.default)(p,h?"".concat(p,"--weekNumbers"):"")},r.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},h?r.createElement(On,{activeStartDate:t,calendarType:l,onClickWeekNumber:d,onMouseLeave:a,showFixedNumberOfWeeks:i}):null,r.createElement("div",{style:{flexGrow:1,width:"100%"}},r.createElement(bn,{calendarType:l,formatShortWeekday:c,formatWeekday:u,locale:n,onMouseLeave:a}),r.createElement(mn,jn({calendarType:l},f)))))}Tn.propTypes={activeStartDate:i().instanceOf(Date).isRequired,calendarType:Ae,formatShortWeekday:i().func,formatWeekday:i().func,locale:i().string,onClickWeekNumber:i().func,onMouseLeave:i().func,showFixedNumberOfWeeks:i().bool,showWeekNumbers:i().bool};var En=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?t:n&&n0}},{key:"getProcessedValue",value:function(e){var t=this.props,n=t.minDate,r=t.maxDate,a=t.maxDetail,i=t.returnValue;return function(){switch(i){case"start":return er;case"end":return tr;case"range":return nr;default:throw new Error("Invalid returnValue.")}}()({value:e,minDate:n,maxDate:r,maxDetail:a})}},{key:"renderContent",value:function(e){var t=this.activeStartDate,n=this.onMouseOver,a=this.valueType,i=this.value,o=this.view,s=this.props,l=s.calendarType,c=s.locale,u=s.maxDate,d=s.minDate,h=s.selectRange,f=s.tileClassName,p=s.tileContent,m=s.tileDisabled,g=this.hover,y={activeStartDate:e?he(o,t):de(o,t),hover:g,locale:c,maxDate:u,minDate:d,onClick:this.drillDownAvailable?this.drillDown:this.onChange,onMouseOver:h?n:null,tileClassName:f,tileContent:p,tileDisabled:m,value:i,valueType:a};switch(o){case"century":var b=this.props.formatYear;return r.createElement(_t,Mn({formatYear:b},y));case"decade":var v=this.props.formatYear;return r.createElement(Bt,Mn({formatYear:v},y));case"year":var w=this.props,x=w.formatMonth,S=w.formatMonthYear;return r.createElement(en,Mn({formatMonth:x,formatMonthYear:S},y));case"month":var k=this.props,A=k.formatDay,C=k.formatLongDate,O=k.formatShortWeekday,_=k.formatWeekday,j=k.onClickWeekNumber,P=k.showDoubleView,T=k.showFixedNumberOfWeeks,E=k.showNeighboringMonth,M=k.showWeekNumbers,N=this.onMouseLeave;return r.createElement(Tn,Mn({calendarType:l,formatDay:A,formatLongDate:C,formatShortWeekday:O,formatWeekday:_,onClickWeekNumber:j,onMouseLeave:h?N:null,showFixedNumberOfWeeks:"undefined"!==typeof T?T:P,showNeighboringMonth:E,showWeekNumbers:M},y));default:throw new Error("Invalid view: ".concat(o,"."))}}},{key:"renderNavigation",value:function(){if(!this.props.showNavigation)return null;var e=this.activeStartDate,t=this.view,n=this.views,a=this.props,i=a.formatMonthYear,o=a.formatYear,s=a.locale,l=a.maxDate,c=a.minDate,u=a.navigationAriaLabel,d=a.navigationAriaLive,h=a.navigationLabel,f=a.next2AriaLabel,p=a.next2Label,m=a.nextAriaLabel,g=a.nextLabel,y=a.prev2AriaLabel,b=a.prev2Label,v=a.prevAriaLabel,w=a.prevLabel,x=a.showDoubleView;return r.createElement(De,{activeStartDate:e,drillUp:this.drillUp,formatMonthYear:i,formatYear:o,locale:s,maxDate:l,minDate:c,navigationAriaLabel:u,navigationAriaLive:d,navigationLabel:h,next2AriaLabel:f,next2Label:p,nextAriaLabel:m,nextLabel:g,prev2AriaLabel:y,prev2Label:b,prevAriaLabel:v,prevLabel:w,setActiveStartDate:this.setActiveStartDate,showDoubleView:x,view:t,views:n})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.inputRef,a=e.selectRange,i=e.showDoubleView,s=this.onMouseLeave,l=this.value,c=[].concat(l);return r.createElement("div",{className:(0,o.default)(Gn,a&&1===c.length&&"".concat(Gn,"--selectRange"),i&&"".concat(Gn,"--doubleView"),t),ref:n},this.renderNavigation(),r.createElement("div",{className:"".concat(Gn,"__viewContainer"),onBlur:a?s:null,onMouseLeave:a?s:null},this.renderContent(),i&&this.renderContent(!0)))}}],n&&In(t.prototype,n),a&&In(t,a),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.Component);ir.defaultProps={goToRangeStartOnSelect:!0,maxDate:Wn,maxDetail:"month",minDate:qn,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var or=i().instanceOf(Date),sr=i().oneOfType([i().string,Pe]);ir.propTypes={activeStartDate:or,allowPartialRange:i().bool,calendarType:Ae,className:Ce,defaultActiveStartDate:or,defaultValue:sr,defaultView:Ee,formatDay:i().func,formatLongDate:i().func,formatMonth:i().func,formatMonthYear:i().func,formatShortWeekday:i().func,formatWeekday:i().func,formatYear:i().func,goToRangeStartOnSelect:i().bool,inputRef:je,locale:i().string,maxDate:_e,maxDetail:i().oneOf(Vn),minDate:Oe,minDetail:i().oneOf(Vn),navigationAriaLabel:i().string,navigationAriaLive:i().oneOf(["off","polite","assertive"]),navigationLabel:i().func,next2AriaLabel:i().string,next2Label:i().node,nextAriaLabel:i().string,nextLabel:i().node,onActiveStartDateChange:i().func,onChange:i().func,onClickDay:i().func,onClickDecade:i().func,onClickMonth:i().func,onClickWeekNumber:i().func,onClickYear:i().func,onDrillDown:i().func,onDrillUp:i().func,onViewChange:i().func,prev2AriaLabel:i().string,prev2Label:i().node,prevAriaLabel:i().string,prevLabel:i().node,returnValue:i().oneOf(["start","end","range"]),selectRange:i().bool,showDoubleView:i().bool,showFixedNumberOfWeeks:i().bool,showNavigation:i().bool,showNeighboringMonth:i().bool,showWeekNumbers:i().bool,tileClassName:i().oneOfType([i().func,Ce]),tileContent:i().oneOfType([i().func,i().node]),tileDisabled:i().func,value:sr,view:Ee};const lr=ir},9824:(e,t,n)=>{"use strict";var r,a,i=function(){function e(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(9950)),i=y(n(9561)),o=n(1817),s=y(n(598)),l=y(n(2100)),c=y(n(7420)),u=y(n(5178)),d=y(n(9323)),h=y(n(6485)),f=n(7879),p=n(8596),m=n(807),g=n(7188);function y(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function v(){return v=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);na||r.length>=a.length){H(z(n,"nextElementSibling"))}}})),O(A(e),"onChange",(function(t){var n=t.target,r=n.name,a=n.value;e.setState(O({},r,a),e.onChangeExternal)})),O(A(e),"onChangeNative",(function(t){var n=e.props.onChange,r=t.target.value;n&&n(function(){if(!r)return null;var e=w(r.split("-"),3),t=e[0],n=e[1],a=e[2],i=parseInt(t,10),o=parseInt(n,10)-1||0,s=parseInt(a,10)||1,l=new Date;return l.setFullYear(i,o,s),l.setHours(0,0,0,0),l}(),!1)})),O(A(e),"onChangeExternal",(function(){var t=e.props.onChange;if(t){var n=[e.dayInput.current,e.monthInput.current,e.yearInput.current].filter(Boolean),r={};if(n.forEach((function(e){r[e.name]=e.value})),n.every((function(e){return!e.value})))t(null,!1);else if(n.every((function(e){return e.value&&e.validity.valid}))){var a=parseInt(r.year,10)||(new Date).getFullYear(),i=parseInt(r.month||1,10)-1,o=parseInt(r.day||1,10),s=new Date;s.setFullYear(a,i,o),s.setHours(0,0,0,0),t(e.getProcessedValue(s),!1)}}})),O(A(e),"renderDay",(function(t,n){var r=e.props,i=r.autoFocus,o=r.dayAriaLabel,s=r.dayPlaceholder,c=r.showLeadingZeros,u=e.state,d=u.day,h=u.month,f=u.year;if(t&&t.length>2)throw new Error("Unsupported token: ".concat(t));var p=t&&2===t.length;return a.default.createElement(l.default,v({key:"day"},e.commonInputProps,{ariaLabel:o,autoFocus:0===n&&i,inputRef:e.dayInput,month:h,placeholder:s,showLeadingZeros:p||c,value:d,year:f}))})),O(A(e),"renderMonth",(function(t,n){var r=e.props,i=r.autoFocus,o=r.locale,s=r.monthAriaLabel,l=r.monthPlaceholder,d=r.showLeadingZeros,h=e.state,f=h.month,p=h.year;if(t&&t.length>4)throw new Error("Unsupported token: ".concat(t));if(t.length>2)return a.default.createElement(u.default,v({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,inputRef:e.monthInput,locale:o,placeholder:l,short:3===t.length,value:f,year:p}));var m=t&&2===t.length;return a.default.createElement(c.default,v({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,inputRef:e.monthInput,placeholder:l,showLeadingZeros:m||d,value:f,year:p}))})),O(A(e),"renderYear",(function(t,n){var r=e.props,i=r.autoFocus,o=r.yearAriaLabel,s=r.yearPlaceholder,l=e.state.year;return a.default.createElement(d.default,v({key:"year"},e.commonInputProps,{ariaLabel:o,autoFocus:0===n&&i,inputRef:e.yearInput,placeholder:s,value:l,valueType:e.valueType}))})),e}return t=p,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.minDate,r=e.maxDate,a=e.maxDetail,i={};e.isCalendarOpen!==t.isCalendarOpen&&(i.isCalendarOpen=e.isCalendarOpen);var s=$({value:e.value,minDate:n,maxDate:r,maxDetail:a}),l=[s,t.value];return(i.isCalendarOpen||I.apply(void 0,_(l.map((function(e){return $({value:e,minDate:n,maxDate:r,maxDetail:a})}))))||I.apply(void 0,_(l.map((function(e){return L({value:e,minDate:n,maxDate:r,maxDetail:a})})))))&&(s?(i.year=(0,o.getYear)(s).toString(),i.month=(0,o.getMonthHuman)(s).toString(),i.day=(0,o.getDate)(s).toString()):(i.year=null,i.month=null,i.day=null),i.value=s),i}}],(n=[{key:"formatDate",get:function(){var e=this.props.maxDetail,t={year:"numeric"},n=M.indexOf(e);return n>=2&&(t.month="numeric"),n>=3&&(t.day="numeric"),(0,f.getFormatter)(t)}},{key:"getProcessedValue",value:function(e){var t=this.props,n=t.minDate,r=t.maxDate,a=t.maxDetail,i=t.returnValue;return function(){switch(i){case"start":return $;case"end":return L;case"range":return B;default:throw new Error("Invalid returnValue.")}}()({value:e,minDate:n,maxDate:r,maxDetail:a})}},{key:"divider",get:function(){var e=this.placeholder.match(/[^0-9a-z]/i);return e?e[0]:null}},{key:"placeholder",get:function(){var e=this.props,t=e.format,n=e.locale;if(t)return t;var r=new Date(2017,11,11),a=this.formatDate(n,r),i=["y","M","d"],o=a;return["year","month","day"].forEach((function(e,t){var a,s,l=(a=e,s=r,(0,f.getFormatter)(O({useGrouping:!1},a,"numeric"))(n,s).match(/\d{1,}/)),c=i[t];o=o.replace(l,c)})),o=o.replace("17","y")}},{key:"commonInputProps",get:function(){var e=this.props,t=e.className,n=e.disabled,r=e.isCalendarOpen,a=e.maxDate,i=e.minDate,o=e.required;return{className:t,disabled:n,maxDate:a||E,minDate:i||T,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,required:o||r}}},{key:"valueType",get:function(){return D(this.props.maxDetail)}},{key:"renderCustomInputs",value:function(){var e=this.placeholder,t=this.props.format;return function(e,t,n){var r=[],i=new RegExp(Object.keys(t).map((function(e){return"".concat(e,"+")})).join("|"),"g"),o=e.match(i);return e.split(i).reduce((function(e,i,l){var c=i&&a.default.createElement(s.default,{key:"separator_".concat(l)},i),u=[].concat(_(e),[c]),d=o&&o[l];if(d){var h=t[d]||t[Object.keys(t).find((function(e){return d.match(e)}))];!n&&r.includes(h)?u.push(d):(u.push(h(d,l)),r.push(h))}return u}),[])}(e,{d:this.renderDay,M:this.renderMonth,y:this.renderYear},"undefined"!==typeof t)}},{key:"renderNativeInput",value:function(){var e=this.props,t=e.disabled,n=e.maxDate,r=e.minDate,i=e.name,o=e.nativeInputAriaLabel,s=e.required,l=this.state.value;return a.default.createElement(h.default,{key:"date",ariaLabel:o,disabled:t,maxDate:n||E,minDate:r||T,name:i,onChange:this.onChangeNative,required:s,value:l,valueType:this.valueType})}},{key:"render",value:function(){var e=this.props.className;return a.default.createElement("div",{className:e,onClick:this.onClick},this.renderNativeInput(),this.renderCustomInputs())}}])&&x(t.prototype,n),r&&x(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(a.PureComponent);t.default=q,q.defaultProps={maxDetail:"month",name:"date",returnValue:"start"};var W=i.default.oneOfType([i.default.string,i.default.instanceOf(Date)]);q.propTypes={autoFocus:i.default.bool,className:i.default.string.isRequired,dayAriaLabel:i.default.string,dayPlaceholder:i.default.string,disabled:i.default.bool,format:i.default.string,isCalendarOpen:i.default.bool,locale:i.default.string,maxDate:m.isMaxDate,maxDetail:i.default.oneOf(M),minDate:m.isMinDate,monthAriaLabel:i.default.string,monthPlaceholder:i.default.string,name:i.default.string,nativeInputAriaLabel:i.default.string,onChange:i.default.func,required:i.default.bool,returnValue:i.default.oneOf(["start","end","range"]),showLeadingZeros:i.default.bool,value:i.default.oneOfType([W,i.default.arrayOf(W)]),yearAriaLabel:i.default.string,yearPlaceholder:i.default.string}},2100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=u(n(9950)),a=u(n(9561)),i=n(1817),o=u(n(2124)),s=n(807),l=n(7188),c=["maxDate","minDate","month","year"];function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.month,s=e.year,u=h(e,c),f=a?(0,i.getDaysInMonth)(new Date(s,a-1,1)):31;function p(e){return e&&s===(0,i.getYear)(e).toString()&&a===(0,i.getMonthHuman)(e).toString()}var m=(0,l.safeMin)(f,p(t)&&(0,i.getDate)(t)),g=(0,l.safeMax)(1,p(n)&&(0,i.getDate)(n));return r.default.createElement(o.default,d({max:m,min:g,name:"day"},u))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,inputRef:s.isRef,maxDate:s.isMaxDate,minDate:s.isMinDate,month:a.default.string,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,showLeadingZeros:a.default.bool,value:a.default.string,year:a.default.string}},2124:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var a=d(n(9950)),i=d(n(9561)),o=d(n(1426)),s=d(n(1893)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(8293)),c=n(807);function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}var h="undefined"!==typeof window&&/(MSIE|Trident\/|Edge\/)/.test(window.navigator.userAgent),f="undefined"!==typeof window&&/Firefox/.test(window.navigator.userAgent);function p(e){var t=e.target;h?requestAnimationFrame((function(){return t.select()})):t.select()}function m(e){if(document.fonts){var t=(0,l.getFontShorthand)(e);if(t)document.fonts.check(t)||document.fonts.addEventListener("loadingdone",(function(){(0,l.default)(e)}))}}function g(e){return function(t){if(!f){var n=t.key,r=t.target,a=r.value,i=1===n.length&&/\d/.test(n),o=function(e){return e&&"selectionStart"in e&&null!==e.selectionStart?e.value.slice(e.selectionStart,e.selectionEnd):"getSelection"in window?window.getSelection().toString():null}(r);i&&(o||a.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=u(n(9950)),a=u(n(9561)),i=n(1817),o=u(n(2124)),s=n(807),l=n(7188),c=["maxDate","minDate","year"];function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.year,s=h(e,c);function u(e){return e&&a===(0,i.getYear)(e).toString()}var f=(0,l.safeMin)(12,u(t)&&(0,i.getMonthHuman)(t)),p=(0,l.safeMax)(1,u(n)&&(0,i.getMonthHuman)(n));return r.default.createElement(o.default,d({max:f,min:p,name:"month"},s))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,inputRef:s.isRef,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,showLeadingZeros:a.default.bool,value:a.default.string,year:a.default.string}},5178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=d(n(9950)),a=d(n(9561)),i=d(n(1426)),o=n(1817),s=n(7879),l=n(807),c=n(7188),u=["ariaLabel","className","inputRef","locale","maxDate","minDate","placeholder","short","value","year"];function d(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function g(e){var t=e.ariaLabel,n=e.className,a=e.inputRef,l=e.locale,d=e.maxDate,p=e.minDate,g=e.placeholder,y=void 0===g?"--":g,b=e.short,v=e.value,w=e.year,x=m(e,u);function S(e){return e&&w===(0,o.getYear)(e).toString()}var k=(0,c.safeMin)(12,S(d)&&(0,o.getMonthHuman)(d)),A=(0,c.safeMax)(1,S(p)&&(0,o.getMonthHuman)(p)),C=f(Array(12)).map((function(e,t){return new Date(2019,t,1)})),O="month",_=b?s.formatShortMonth:s.formatMonth;return r.default.createElement("select",h({"aria-label":t,className:(0,i.default)("".concat(n,"__input"),"".concat(n,"__").concat(O)),"data-input":"true","data-select":"true",name:O,ref:a,value:null!==v?v:""},x),!v&&r.default.createElement("option",{value:""},y),C.map((function(e){var t=(0,o.getMonthHuman)(e),n=tk;return r.default.createElement("option",{key:t,disabled:n,value:t},_(l,e))})))}g.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,inputRef:l.isRef,locale:a.default.string,maxDate:l.isMaxDate,minDate:l.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,short:a.default.bool,value:a.default.string,year:a.default.string}},6485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(9950)),a=s(n(9561)),i=n(1817),o=n(807);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.ariaLabel,n=e.disabled,a=e.maxDate,o=e.minDate,s=e.name,l=e.onChange,c=e.required,u=e.value,d=e.valueType,h=function(){switch(d){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType.")}}(),f=function(){switch(d){case"century":case"decade":case"year":return i.getYear;case"month":return i.getISOLocalMonth;case"day":return i.getISOLocalDate;default:throw new Error("Invalid valueType.")}}();return r.default.createElement("input",{"aria-label":t,disabled:n,max:a?f(a):null,min:o?f(o):null,name:s,onChange:l,onFocus:function(e){e.stopPropagation()},required:c,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:h,value:u?f(u):""})}l.propTypes={ariaLabel:a.default.string,disabled:a.default.bool,maxDate:o.isMaxDate,minDate:o.isMinDate,name:a.default.string,onChange:a.default.func,required:a.default.bool,value:a.default.oneOfType([a.default.string,a.default.instanceOf(Date)]),valueType:o.isValueType}},9323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=u(n(9950)),a=u(n(9561)),i=n(1817),o=u(n(2124)),s=n(807),l=n(7188),c=["maxDate","minDate","placeholder","valueType"];function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.placeholder,s=void 0===a?"----":a,u=e.valueType,f=h(e,c),p=(0,l.safeMin)(275760,t&&(0,i.getYear)(t)),m=(0,l.safeMax)(1,n&&(0,i.getYear)(n)),g="century"===u?10:1;return r.default.createElement(o.default,d({max:p,min:m,name:"year",placeholder:s,step:g},f))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,inputRef:s.isRef,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,value:a.default.string,valueType:s.isValueType}},598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(9950)),a=i(n(9561));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.children;return r.default.createElement("span",{className:"react-date-picker__inputGroup__divider"},t)}o.propTypes={children:a.default.node}},7879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatShortMonth=t.formatMonth=void 0,t.getFormatter=o;var r,a=(r=n(5005))&&r.__esModule?r:{default:r};var i=new Map;function o(e){return function(t,n){var r=t||(0,a.default)();i.has(r)||i.set(r,new Map);var o=i.get(r);return o.has(e)||o.set(e,new Intl.DateTimeFormat(r,e).format),o.get(e)(n)}}function s(e){return function(t,n){return o(e)(t,function(e){var t=new Date(e);return new Date(t.setHours(12))}(n))}}var l=s({month:"long"});t.formatMonth=l;var c=s({month:"short"});t.formatShortMonth=c},8596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBegin=function(e,t){switch(e){case"century":return(0,r.getCenturyStart)(t);case"decade":return(0,r.getDecadeStart)(t);case"year":return(0,r.getYearStart)(t);case"month":return(0,r.getMonthStart)(t);case"day":return(0,r.getDayStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}},t.getEnd=function(e,t){switch(e){case"century":return(0,r.getCenturyEnd)(t);case"decade":return(0,r.getDecadeEnd)(t);case"year":return(0,r.getYearEnd)(t);case"month":return(0,r.getMonthEnd)(t);case"day":return(0,r.getDayEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}};var r=n(1817)},807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValueType=t.isRef=t.isMinDate=t.isMaxDate=void 0;var r,a=(r=n(9561))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na?new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.minDate;return a&&r{"use strict";function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne)return t;if(n&&n{"use strict";var r=n(9950),a=n(6470),i=n(5340);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n