(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7150],{93813:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(85605)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,o),i=!1}finally{i&&delete r[e]}return a.exports}o.ab="//";var a={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=y(e));var r,o,a,i,u,c,s,l,f,p=(o=(r=e).auth,a=r.hostname,i=r.protocol||"",u=r.pathname||"",c=r.hash||"",s=r.query||"",l=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",r.host?l=o+r.host:a&&(l=o+(~a.indexOf(":")?"["+a+"]":a),r.port&&(l+=":"+r.port)),s&&"object"==typeof s&&(s=t.encode(s)),f=r.search||s&&"?"+s||"",i&&":"!==i.substr(-1)&&(i+=":"),r.slashes||(!i||n.test(i))&&!1!==l?(l="//"+(l||""),u&&"/"!==u[0]&&(u="/"+u)):l||(l=""),c&&"#"!==c[0]&&(c="#"+c),f&&"?"!==f[0]&&(f="?"+f),{protocol:i,host:l,pathname:u=u.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:c});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var i="http://",u=i+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,s=/https?|ftp|gopher|file/;function l(e,t){var n="string"==typeof e?y(e):e;e="object"==typeof e?r(e):e;var o=y(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&o.protocol&&(a="",o.slashes||(a=o.protocol,t=t.replace(o.protocol,"")));var l=e.match(c);l&&!o.protocol&&(e=e.substr((a=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var f=new URL(e,u+"/"),p=new URL(t,f).toString().replace(u,""),d=o.protocol||n.protocol;return d+=n.slashes||o.slashes?"//":"",!a&&d?p=p.replace(i,d):a&&(p=p.replace(i,"")),s.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),a&&(p=a+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=y,f.prototype.format=r,f.prototype.resolve=l,f.prototype.resolveObject=l;var p=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,h=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof f)return e;var a=(e=e.trim()).match(d);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var i=!/(^javascript)/.test(e)&&e.match(g),c=h.test(e),s="";i&&(p.test(i[1])||(s=i[1].toLowerCase(),e=""+i[2]+i[3]),i[2]||(c=!1,p.test(i[1])?(s=i[1],e=""+i[3]):e="//"+i[3]),3!==i[2].length&&1!==i[2].length||(s=i[1],e="/"+i[3]));var l,y=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),E=y&&y[1],b=new f,v="",R="";try{l=new URL(e)}catch(t){v=t,s||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(R="/",e=e.substr(1));try{l=new URL(e,u)}catch(e){return b.protocol=s,b.href=s,b}}b.slashes=c&&!R,b.host="w.w"===l.host?"":l.host,b.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=v?s||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var w=e.split("#");!b.search&&~w[0].indexOf("?")&&(b.search="?"),b.hash||""!==w[1]||(b.hash="#"),b.query=n?t.decode(l.search.substr(1)):b.search.substr(1),b.pathname=R+(i?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),v&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),s&&!p.test(s)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,E&&!b.host.endsWith(E)&&(b.host+=E,b.port=E.slice(1)),b.href=R?""+b.pathname+b.search+b.hash:r(b);var S=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~S.indexOf(e)||(b[e]=b[e]||null)}),b}a.parse=y,a.format=r,a.resolve=l,a.resolveObject=function(e,t){return y(l(e,t))},a.Url=f}(),e.exports=a}()},85605:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(n);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var s=0;s<c;++s){var l,f,p,d,g=e[s].replace(i,"%20"),h=g.indexOf(r);(h>=0?(l=g.substr(0,h),f=g.substr(h+1)):(l=g,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(a,p))?t(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,i,u){return(a=a||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var u=encodeURIComponent(t(o))+i;return n(e[o])?r(e[o],function(e){return u+encodeURIComponent(t(e))}).join(a):u+encodeURIComponent(t(e[o]))}).join(a):u?encodeURIComponent(t(u))+i+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//";var o={};o.decode=o.parse=r(815),o.encode=o.stringify=r(577),e.exports=o}()},48049:function(e,t,n){"use strict";var r=n(14397);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=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 u.name="Invariant Violation",u}}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:a,resetWarningCache:o};return n.PropTypes=n,n}},40718:function(e,t,n){e.exports=n(48049)()},14397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58768:function(e){"use strict";e.exports=function(){}},99882:function(){},18746:function(){},58055:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(83657),o=n(68973),a=n(57437),i=(0,o.G)((e,t)=>(0,a.jsx)(r.K,{align:"center",...e,direction:"row",ref:t}));i.displayName="HStack"},27924:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(13821),o=n(70118),a=n(14096),i=n(68973),u=n(57437),c=(0,i.G)((e,t)=>{let{onClick:n,className:i,...c}=e,{onClose:s}=(0,r.vR)(),l=(0,a.cx)("chakra-modal__close-btn",i),f=(0,r.I_)();return(0,u.jsx)(o.P,{ref:t,__css:f.closeButton,className:l,onClick:(0,a.v0)(n,e=>{e.stopPropagation(),s()}),...c})});c.displayName="ModalCloseButton"},48230:function(e,t,n){"use strict";function r(e){var t=!1;return{promise:new Promise(function(n,r){e.then(function(e){return!t&&n(e)}).catch(function(e){return!t&&r(e)})}),cancel:function(){t=!0}}}n.d(t,{Z:function(){return r}})},51648:function(e,t,n){"use strict";n.d(t,{Tu:function(){return o},ZP:function(){return a}});var r=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function a(e,t){var n={};return o.forEach(function(r){var o=e[r];o&&(t?n[r]=function(e){return o(e,t(r))}:n[r]=o)}),n}},73651:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(2265),o=n(40718),a=n(51648),i=n(48230),u=n(61994),c=n(69398),s=n(58768),l=Object.prototype.hasOwnProperty;function f(e,t,n){for(n of e.keys())if(p(n,t))return n}function p(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&p(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((o=r)&&"object"==typeof o&&!(o=f(t,o))||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((o=r[0])&&"object"==typeof o&&!(o=f(t,o))||!p(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(l.call(e,n)&&++r&&!l.call(t,n)||!(n in t)||!p(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var d=n(70351),g=n(21010),h=n(51695),m=n(46389),y={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},E=n(21366),b=n(71319),v=n(10756),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{PDFDataRangeTransport:w}=d.default,S=(e,t)=>{switch(t){case y.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case y.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function O(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}let T=(0,r.forwardRef)(function(e,t){var{children:n,className:o,error:l="Failed to load PDF file.",externalLinkRel:f,externalLinkTarget:y,file:v,inputRef:T,imageResourcesPath:x,loading:P="Loading PDF…",noData:L="No PDF file specified.",onItemClick:C,onLoadError:A,onLoadProgress:j,onLoadSuccess:D,onPassword:k=S,onSourceError:Z,onSourceSuccess:_,options:I,renderMode:U,rotate:M}=e,F=R(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);let[N,V]=(0,b.Z)(),{value:$,error:G}=N,[B,q]=(0,b.Z)(),{value:J,error:z}=B,H=(0,r.useRef)(new m.Z),W=(0,r.useRef)([]),K=(0,r.useRef)(),X=(0,r.useRef)();(0,r.useEffect)(()=>{v&&v!==K.current&&O(v)&&(s(!p(v,K.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),K.current=v)},[v]),(0,r.useEffect)(()=>{I&&I!==X.current&&(s(!p(I,X.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),X.current=I)},[I]);let Y=(0,r.useRef)({scrollPageIntoView:e=>{let{dest:t,pageNumber:n,pageIndex:r=n-1}=e;if(C){C({dest:t,pageIndex:r,pageNumber:n});return}let o=W.current[r];if(o){o.scrollIntoView();return}s(!1,"An internal link leading to page ".concat(n," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}});(0,r.useImperativeHandle)(t,()=>({linkService:H,pages:W,viewer:Y}),[]),(0,r.useEffect)(function(){V({type:"RESET"})},[v,V]);let Q=(0,r.useCallback)(()=>{var e,t,n,r;return e=this,t=void 0,n=void 0,r=function*(){if(!v)return null;if("string"==typeof v)return(0,E.gJ)(v)?{data:(0,E.us)(v)}:((0,E.tN)(),{url:v});if(v instanceof w)return{range:v};if((0,E.eP)(v))return{data:v};if(E.jU&&(0,E.Lj)(v))return{data:yield(0,E.eR)(v)};if((0,c.Z)("object"==typeof v,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,c.Z)(O(v),"Invalid parameter object: need either .data, .range or .url"),"url"in v&&"string"==typeof v.url){if((0,E.gJ)(v.url)){let{url:e}=v,t=R(v,["url"]);return Object.assign({data:(0,E.us)(e)},t)}(0,E.tN)()}return v},new(n||(n=Promise))(function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(i,u)}c((r=r.apply(e,t||[])).next())})},[v]);function ee(e,t){W.current[e]=t}function et(e){delete W.current[e]}(0,r.useEffect)(()=>{let e=(0,i.Z)(Q());return e.promise.then(e=>{V({type:"RESOLVE",value:e})}).catch(e=>{V({type:"REJECT",error:e})}),()=>{(0,E.LJ)(e)}},[Q,V]),(0,r.useEffect)(()=>{if(void 0!==$){if(!1===$){G&&(s(!1,G.toString()),Z&&Z(G));return}_&&_()}},[$]),(0,r.useEffect)(function(){q({type:"RESET"})},[q,$]),(0,r.useEffect)(function(){if(!$)return;let e=Object.assign(Object.assign({},I),{isEvalSupported:!1}),t=Object.assign(Object.assign({},$),e),n=d.default.getDocument(t);return j&&(n.onProgress=j),k&&(n.onPassword=k),n.promise.then(e=>{q({type:"RESOLVE",value:e})}).catch(e=>{n.destroyed||q({type:"REJECT",error:e})}),()=>{n.destroy()}},[I,q,$]),(0,r.useEffect)(()=>{if(void 0!==J){if(!1===J){z&&(s(!1,z.toString()),A&&A(z));return}J&&(D&&D(J),W.current=Array(J.numPages),H.current.setDocument(J))}},[J]),(0,r.useEffect)(function(){H.current.setViewer(Y.current),H.current.setExternalLinkRel(f),H.current.setExternalLinkTarget(y)},[f,y]);let en=(0,r.useMemo)(()=>({imageResourcesPath:x,linkService:H.current,onItemClick:C,pdf:J,registerPage:ee,renderMode:U,rotate:M,unregisterPage:et}),[x,C,J,U,M]),er=(0,r.useMemo)(()=>(0,a.ZP)(F,()=>J),[F,J]);return r.createElement("div",Object.assign({className:(0,u.Z)("react-pdf__Document",o),ref:T,style:{"--scale-factor":"1"}},er),v?null==J?r.createElement(h.Z,{type:"loading"},"function"==typeof P?P():P):!1===J?r.createElement(h.Z,{type:"error"},"function"==typeof l?l():l):r.createElement(g.Z.Provider,{value:en},n):r.createElement(h.Z,{type:"no-data"},"function"==typeof L?L():L))}),x=o.oneOfType([o.func,o.node]);T.propTypes=Object.assign(Object.assign({},v.Gg),{children:o.node,className:v.$n,error:x,externalLinkRel:o.string,externalLinkTarget:o.oneOf(["_self","_blank","_parent","_top"]),file:v.zE,imageResourcesPath:o.string,inputRef:v.dq,loading:x,noData:x,onItemClick:o.func,onLoadError:o.func,onLoadProgress:o.func,onLoadSuccess:o.func,onPassword:o.func,onSourceError:o.func,onSourceSuccess:o.func,options:o.shape({canvasFactory:o.any,canvasMaxAreaInBytes:o.number,cMapPacked:o.bool,CMapReaderFactory:o.any,cMapUrl:o.string,disableAutoFetch:o.bool,disableFontFace:o.bool,disableRange:o.bool,disableStream:o.bool,docBaseUrl:o.string,enableXfa:o.bool,filterFactory:o.any,fontExtraProperties:o.bool,httpHeaders:o.object,isEvalSupported:o.bool,isOffscreenCanvasSupported:o.bool,length:o.number,maxImageSize:o.number,ownerDocument:o.any,password:o.string,pdfBug:o.bool,rangeChunkSize:o.number,StandardFontDataFactory:o.any,standardFontDataUrl:o.string,stopAtErrors:o.bool,useSystemFonts:o.bool,useWorkerFetch:o.bool,verbosity:o.number,withCredentials:o.bool,worker:o.any}),rotate:o.number});var P=T},21010:function(e,t,n){"use strict";var r=n(2265);t.Z=(0,r.createContext)(null)},46389:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(69398);class o{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,r.Z)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){(0,r.Z)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise(t=>{(0,r.Z)(this.pdfDocument,"PDF document not loaded."),(0,r.Z)(e,"Destination is not specified."),"string"==typeof e?this.pdfDocument.getDestination(e).then(t):Array.isArray(e)?t(e):e.then(t)}).then(e=>{(0,r.Z)(Array.isArray(e),`"${e}" is not a valid destination array.`);let t=e[0];new Promise(e=>{(0,r.Z)(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then(t=>{e(t)}).catch(()=>{(0,r.Z)(!1,`"${t}" is not a valid page reference.`)}):"number"==typeof t?e(t):(0,r.Z)(!1,`"${t}" is not a valid destination reference.`)}).then(t=>{let n=t+1;(0,r.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,r.Z)(n>=1&&n<=this.pagesCount,`"${n}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:n})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){(0,r.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,r.Z)(e>=1&&e<=this.pagesCount,`"${e}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:e-1,pageNumber:e})}addLinkAttributes(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}},51695:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2265);function o({children:e,type:t}){return r.createElement("div",{className:`react-pdf__message react-pdf__message--${t}`},e)}},75796:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(2265),o=n(40718),a=n(48230),i=n(51648),u=n(61994);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(Boolean);return n.length<=1?n[0]||null:function(e){n.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}var s=n(69398),l=n(58768),f=(0,r.createContext)(null),p=n(51695),d=n(70351);let g={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},h=/^H(\d+)$/;function m(e){return"children"in e}function y(e){return!!m(e)&&1===e.children.length&&0 in e.children&&"id"in e.children[0]}function E({className:e,node:t}){let n=(0,r.useMemo)(()=>t?Object.assign(Object.assign({},function(e){let t={};if(m(e)){let{role:n}=e,r=n.match(h);if(r)t.role="heading",t["aria-level"]=Number(r[1]);else if(n in g){let e=g[n];e&&(t.role=e)}}return t}(t)),function e(t){let n={};if(m(t)){if(void 0!==t.alt&&(n["aria-label"]=t.alt),void 0!==t.lang&&(n.lang=t.lang),y(t)){let[r]=t.children;if(r){let t=e(r);return Object.assign(Object.assign({},n),t)}}}else"id"in t&&(n["aria-owns"]=t.id);return n}(t)):null,[t]),o=(0,r.useMemo)(()=>!m(t)||y(t)?null:t.children.map((e,t)=>r.createElement(E,{key:t,node:e})),[t]);return r.createElement("span",Object.assign({className:e},n),o)}function b(){return(0,r.useContext)(f)}var v=n(71319),R=n(21366);function w(){let e=b();(0,s.Z)(e,"Unable to find Page context.");let{onGetStructTreeError:t,onGetStructTreeSuccess:n}=e,[o,i]=(0,v.Z)(),{value:u,error:c}=o,{customTextRenderer:f,page:p}=e;return((0,r.useEffect)(function(){i({type:"RESET"})},[i,p]),(0,r.useEffect)(function(){if(f||!p)return;let e=(0,a.Z)(p.getStructTree());return e.promise.then(e=>{i({type:"RESOLVE",value:e})}).catch(e=>{i({type:"REJECT",error:e})}),()=>(0,R.LJ)(e)},[f,p,i]),(0,r.useEffect)(()=>{if(void 0!==u){if(!1===u){c&&(l(!1,c.toString()),t&&t(c));return}u&&n&&n(u)}},[u]),u)?r.createElement(E,{className:"react-pdf__Page__structTree structTree",node:u}):null}let S=d.default.AnnotationMode;function O(e){let t=b();(0,s.Z)(t,"Unable to find Page context.");let{_className:n,canvasBackground:o,devicePixelRatio:a=(0,R.x_)(),onRenderError:i,onRenderSuccess:u,page:f,renderForms:p,renderTextLayer:d,rotate:g,scale:h}=Object.assign(Object.assign({},t),e),{canvasRef:m}=e;(0,s.Z)(f,"Attempted to render page canvas, but no page was specified.");let y=(0,r.useRef)(null);function E(e){!(0,R.DE)(e)&&(l(!1,e.toString()),i&&i(e))}let v=(0,r.useMemo)(()=>f.getViewport({scale:h*a,rotation:g}),[a,f,g,h]),O=(0,r.useMemo)(()=>f.getViewport({scale:h,rotation:g}),[f,g,h]);(0,r.useEffect)(function(){if(!f)return;f.cleanup();let{current:e}=y;if(!e)return;e.width=v.width,e.height=v.height,e.style.width="".concat(Math.floor(O.width),"px"),e.style.height="".concat(Math.floor(O.height),"px"),e.style.visibility="hidden";let t={annotationMode:p?S.ENABLE_FORMS:S.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:v};o&&(t.background=o);let n=f.render(t);return n.promise.then(()=>{e.style.visibility="",f&&u&&u((0,R.XZ)(f,h))}).catch(E),()=>(0,R.LJ)(n)},[o,y,a,f,p,v,O]);let T=(0,r.useCallback)(()=>{let{current:e}=y;e&&(e.width=0,e.height=0)},[y]);return(0,r.useEffect)(()=>T,[T]),r.createElement("canvas",{className:"".concat(n,"__canvas"),dir:"ltr",ref:c(m,y),style:{display:"block",userSelect:"none"}},d?r.createElement(w,null):null)}function T(){let e=b();(0,s.Z)(e,"Unable to find Page context.");let{_className:t,onRenderSuccess:n,onRenderError:o,page:i,rotate:u,scale:c}=e;(0,s.Z)(i,"Attempted to render page SVG, but no page was specified.");let[f,p]=(0,v.Z)(),{value:g,error:h}=f,m=(0,r.useMemo)(()=>i.getViewport({scale:c,rotation:u}),[i,u,c]);(0,r.useEffect)(function(){p({type:"RESET"})},[i,p,m]),(0,r.useEffect)(function(){if(!i)return;let e=(0,a.Z)(i.getOperatorList());return e.promise.then(e=>{new d.default.SVGGraphics(i.commonObjs,i.objs).getSVG(e,m).then(e=>{if(!(e instanceof SVGElement))throw Error("getSVG returned unexpected result.");p({type:"RESOLVE",value:e})}).catch(e=>{p({type:"REJECT",error:e})})}).catch(e=>{p({type:"REJECT",error:e})}),()=>(0,R.LJ)(e)},[i,p,m]),(0,r.useEffect)(()=>{if(void 0!==g){if(!1===g){!(!h||(0,R.DE)(h))&&(l(!1,h.toString()),o&&o(h));return}i&&n&&n((0,R.XZ)(i,c))}},[g]);let{width:y,height:E}=m;return r.createElement("div",{className:`${t}__svg`,ref:e=>(function(e){if(!e||!g)return;e.firstElementChild||e.appendChild(g);let{width:t,height:n}=m;g.setAttribute("width",`${t}`),g.setAttribute("height",`${n}`)})(e),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:y,height:E,userSelect:"none"}})}function x(){let e=b();(0,s.Z)(e,"Unable to find Page context.");let{customTextRenderer:t,onGetTextError:n,onGetTextSuccess:o,onRenderTextLayerError:i,onRenderTextLayerSuccess:c,page:f,pageIndex:p,pageNumber:g,rotate:h,scale:m}=e;(0,s.Z)(f,"Attempted to load page text content, but no page was specified.");let[y,E]=(0,v.Z)(),{value:w,error:S}=y,O=(0,r.useRef)(null),T=(0,r.useRef)();l(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,r.useEffect)(function(){E({type:"RESET"})},[f,E]),(0,r.useEffect)(function(){if(!f)return;let e=(0,a.Z)(f.getTextContent());return e.promise.then(e=>{E({type:"RESOLVE",value:e})}).catch(e=>{E({type:"REJECT",error:e})}),()=>(0,R.LJ)(e)},[f,E]),(0,r.useEffect)(()=>{if(void 0!==w){if(!1===w){S&&(l(!1,S.toString()),n&&n(S));return}w&&o&&o(w)}},[w]);let x=(0,r.useCallback)(()=>{c&&c()},[c]),P=(0,r.useCallback)(e=>{l(!1,e.toString()),i&&i(e)},[i]),L=(0,r.useMemo)(()=>f.getViewport({scale:m,rotation:h}),[f,h,m]);return(0,r.useLayoutEffect)(function(){if(!f||!w)return;let{current:e}=O;if(!e)return;e.innerHTML="";let n=f.streamTextContent({includeMarkedContent:!0}),r=d.default.renderTextLayer({container:e,textContentSource:n,viewport:L});return r.promise.then(()=>{let n=document.createElement("div");n.className="endOfContent",e.append(n),T.current=n;let r=e.querySelectorAll('[role="presentation"]');if(t){let e=0;w.items.forEach((n,o)=>{if(!("str"in n))return;let a=r[e];if(!a)return;let i=t(Object.assign({pageIndex:p,pageNumber:g,itemIndex:o},n));a.innerHTML=i,e+=n.str&&n.hasEOL?2:1})}x()}).catch(P),()=>(0,R.LJ)(r)},[t,P,x,f,p,g,w,L]),r.createElement("div",{className:(0,u.Z)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let e=T.current;e&&e.classList.remove("active")},onMouseDown:function(){let e=T.current;e&&e.classList.add("active")},ref:O})}var P=n(21010);function L(){return(0,r.useContext)(P.Z)}function C(){let e=L(),t=b();(0,s.Z)(t,"Unable to find Page context.");let{imageResourcesPath:n,linkService:o,onGetAnnotationsError:i,onGetAnnotationsSuccess:c,onRenderAnnotationLayerError:f,onRenderAnnotationLayerSuccess:p,page:g,pdf:h,renderForms:m,rotate:y,scale:E=1}=Object.assign(Object.assign({},e),t);(0,s.Z)(h,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,s.Z)(g,"Attempted to load page annotations, but no page was specified."),(0,s.Z)(o,"Attempted to load page annotations, but no linkService was specified.");let[w,S]=(0,v.Z)(),{value:O,error:T}=w,x=(0,r.useRef)(null);l(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,r.useEffect)(function(){S({type:"RESET"})},[S,g]),(0,r.useEffect)(function(){if(!g)return;let e=(0,a.Z)(g.getAnnotations());return e.promise.then(e=>{S({type:"RESOLVE",value:e})}).catch(e=>{S({type:"REJECT",error:e})}),()=>{(0,R.LJ)(e)}},[S,g,m]),(0,r.useEffect)(()=>{if(void 0!==O){if(!1===O){T&&(l(!1,T.toString()),i&&i(T));return}O&&c&&c(O)}},[O]);let P=(0,r.useMemo)(()=>g.getViewport({scale:E,rotation:y}),[g,y,E]);return(0,r.useEffect)(function(){if(!h||!g||!o||!O)return;let{current:e}=x;if(!e)return;let t=P.clone({dontFlip:!0}),r={annotations:O,annotationStorage:h.annotationStorage,div:e,downloadManager:null,imageResourcesPath:n,linkService:o,page:g,renderForms:m,viewport:t};e.innerHTML="";try{new d.default.AnnotationLayer({accessibilityManager:null,annotationCanvasMap:null,div:e,l10n:null,page:g,viewport:t}).render(r),p&&p()}catch(e){l(!1,"".concat(e)),f&&f(e)}return()=>{}},[O,n,o,g,m,P]),r.createElement("div",{className:(0,u.Z)("react-pdf__Page__annotations","annotationLayer"),ref:x})}var A=n(10756),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let D=function(e){let t=Object.assign(Object.assign({},L()),e),{_className:n="react-pdf__Page",_enableRegisterUnregisterPage:o=!0,canvasBackground:d,canvasRef:g,children:h,className:m,customRenderer:y,customTextRenderer:E,devicePixelRatio:b,error:w="Failed to load the page.",height:S,inputRef:P,loading:A="Loading page…",noData:D="No page specified.",onGetAnnotationsError:k,onGetAnnotationsSuccess:Z,onGetStructTreeError:_,onGetStructTreeSuccess:I,onGetTextError:U,onGetTextSuccess:M,onLoadError:F,onLoadSuccess:N,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:$,onRenderError:G,onRenderSuccess:B,onRenderTextLayerError:q,onRenderTextLayerSuccess:J,pageIndex:z,pageNumber:H,pdf:W,registerPage:K,renderAnnotationLayer:X=!0,renderForms:Y=!1,renderMode:Q="canvas",renderTextLayer:ee=!0,rotate:et,scale:en=1,unregisterPage:er,width:eo}=t,ea=j(t,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[ei,eu]=(0,v.Z)(),{value:ec,error:es}=ei,el=(0,r.useRef)(null);(0,s.Z)(W,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let ef=(0,R.T8)(H)?H-1:null!=z?z:null,ep=null!=H?H:(0,R.T8)(z)?z+1:null,ed=null!=et?et:ec?ec.rotate:null,eg=(0,r.useMemo)(()=>{if(!ec)return null;let e=1,t=null!=en?en:1;if(eo||S){let t=ec.getViewport({scale:1,rotation:ed});eo?e=eo/t.width:S&&(e=S/t.height)}return t*e},[S,ec,ed,en,eo]);(0,r.useEffect)(function(){return()=>{(0,R.T8)(ef)&&o&&er&&er(ef)}},[o,W,ef,er]),(0,r.useEffect)(function(){eu({type:"RESET"})},[eu,W,ef]),(0,r.useEffect)(function(){if(!W||!ep)return;let e=(0,a.Z)(W.getPage(ep));return e.promise.then(e=>{eu({type:"RESOLVE",value:e})}).catch(e=>{eu({type:"REJECT",error:e})}),()=>(0,R.LJ)(e)},[eu,W,ef,ep,K]),(0,r.useEffect)(()=>{if(void 0!==ec){if(!1===ec){es&&(l(!1,es.toString()),F&&F(es));return}!function(){if(N){if(!ec||!eg)return;N((0,R.XZ)(ec,eg))}if(o&&K){if(!(0,R.T8)(ef)||!el.current)return;K(ef,el.current)}}()}},[ec,eg]);let eh=(0,r.useMemo)(()=>ec&&(0,R.T8)(ef)&&ep&&(0,R.T8)(ed)&&(0,R.T8)(eg)?{_className:n,canvasBackground:d,customTextRenderer:E,devicePixelRatio:b,onGetAnnotationsError:k,onGetAnnotationsSuccess:Z,onGetStructTreeError:_,onGetStructTreeSuccess:I,onGetTextError:U,onGetTextSuccess:M,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:$,onRenderError:G,onRenderSuccess:B,onRenderTextLayerError:q,onRenderTextLayerSuccess:J,page:ec,pageIndex:ef,pageNumber:ep,renderForms:Y,renderTextLayer:ee,rotate:ed,scale:eg}:null,[n,d,E,b,k,Z,_,I,U,M,V,$,G,B,q,J,ec,ef,ep,Y,ee,ed,eg]),em=(0,r.useMemo)(()=>(0,i.ZP)(ea,()=>ec?eg?(0,R.XZ)(ec,eg):void 0:ec),[ea,ec,eg]),ey="".concat(ef,"@").concat(eg,"/").concat(ed),eE="".concat(ef,"/").concat(ed);return r.createElement("div",Object.assign({className:(0,u.Z)(n,m),"data-page-number":ep,ref:c(P,el),style:{"--scale-factor":"".concat(eg),backgroundColor:d||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},em),ep?null===W||null==ec?r.createElement(p.Z,{type:"loading"},"function"==typeof A?A():A):!1===W||!1===ec?r.createElement(p.Z,{type:"error"},"function"==typeof w?w():w):r.createElement(f.Provider,{value:eh},function(){switch(Q){case"custom":return(0,s.Z)(y,'renderMode was set to "custom", but no customRenderer was passed.'),r.createElement(y,{key:"".concat(ey,"_custom")});case"none":return null;case"svg":return r.createElement(T,{key:"".concat(eE,"_svg")});default:return r.createElement(O,{key:"".concat(ey,"_canvas"),canvasRef:g})}}(),ee?r.createElement(x,{key:"".concat(ey,"_text")}):null,X?r.createElement(C,{key:"".concat(ey,"_annotations")}):null,h):r.createElement(p.Z,{type:"no-data"},"function"==typeof D?D():D))},k=o.oneOfType([o.func,o.node]);D.propTypes=Object.assign(Object.assign({},A.Gg),{canvasBackground:o.string,canvasRef:A.dq,children:o.node,className:A.$n,customRenderer:o.func,customTextRenderer:o.func,devicePixelRatio:o.number,error:k,height:o.number,imageResourcesPath:o.string,inputRef:A.dq,loading:k,noData:k,onGetTextError:o.func,onGetTextSuccess:o.func,onLoadError:o.func,onLoadSuccess:o.func,onRenderError:o.func,onRenderSuccess:o.func,onRenderTextLayerError:o.func,onRenderTextLayerSuccess:o.func,pageIndex:A.qd,pageNumber:A.F$,pdf:A.Ze,renderAnnotationLayer:o.bool,renderForms:o.bool,renderMode:A.DV,renderTextLayer:o.bool,rotate:A.lA,scale:o.number,width:o.number});var Z=D},70351:function(e,t,n){"use strict";var r=n(98691);t.default=r},71319:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265);function o(e,t){switch(t.type){case"RESOLVE":return{value:t.value,error:void 0};case"REJECT":return{value:!1,error:t.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function a(){return(0,r.useReducer)(o,{value:void 0,error:void 0})}},10756:function(e,t,n){"use strict";n.d(t,{$n:function(){return p},DV:function(){return E},F$:function(){return h},Gg:function(){return s},Ze:function(){return m},dq:function(){return y},lA:function(){return b},qd:function(){return g},zE:function(){return d}});var r=n(40718),o=n(51648),a=n(70351),i=n(21366),u=n(46389);let{PDFDataRangeTransport:c}=a.default,s=(()=>{let e={};return o.Tu.forEach(t=>{e[t]=r.func}),e})(),l=r.oneOfType([r.instanceOf(Int8Array),r.instanceOf(Uint8Array),r.instanceOf(Uint8ClampedArray),r.instanceOf(Int16Array),r.instanceOf(Uint16Array),r.instanceOf(Int32Array),r.instanceOf(Uint32Array),r.instanceOf(Float32Array),r.instanceOf(Float64Array)]),f=[r.string,r.instanceOf(ArrayBuffer),r.shape({data:r.oneOfType([r.string,r.instanceOf(ArrayBuffer),r.arrayOf(r.number.isRequired),l]).isRequired}),r.shape({range:r.instanceOf(c).isRequired}),r.shape({url:r.string.isRequired})];"undefined"!=typeof Blob&&f.push(r.instanceOf(Blob));let p=r.oneOfType([r.string,r.arrayOf(r.string)]),d=r.oneOfType(f);r.instanceOf(u.Z),r.oneOf(["_self","_blank","_parent","_top"]),r.shape({commonObjs:r.shape({}).isRequired,getAnnotations:r.func.isRequired,getTextContent:r.func.isRequired,getViewport:r.func.isRequired,render:r.func.isRequired});let g=function(e,t,n){let{[t]:r,pageNumber:o,pdf:a}=e;if(!(0,i.$K)(a))return null;if((0,i.$K)(r)){if("number"!=typeof r)return Error(`\`${t}\` of type \`${typeof r}\` supplied to \`${n}\`, expected \`number\`.`);if(r<0)return Error(`Expected \`${t}\` to be greater or equal to 0.`);let{numPages:e}=a;if(r+1>e)return Error(`Expected \`${t}\` to be less or equal to ${e-1}.`)}else if(!(0,i.$K)(o))return Error(`\`${t}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${n}\`.`);return null},h=function(e,t,n){let{[t]:r,pageIndex:o,pdf:a}=e;if(!(0,i.$K)(a))return null;if((0,i.$K)(r)){if("number"!=typeof r)return Error(`\`${t}\` of type \`${typeof r}\` supplied to \`${n}\`, expected \`number\`.`);if(r<1)return Error(`Expected \`${t}\` to be greater or equal to 1.`);let{numPages:e}=a;if(r>e)return Error(`Expected \`${t}\` to be less or equal to ${e}.`)}else if(!(0,i.$K)(o))return Error(`\`${t}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${n}\`.`);return null},m=r.oneOfType([r.any,r.oneOf([!1])]),y=r.oneOfType([r.func,r.exact({current:r.any})]),E=r.oneOf(["canvas","custom","none","svg"]),b=r.oneOf([0,90,180,270])},21366:function(e,t,n){"use strict";n.d(t,{$K:function(){return u},DE:function(){return y},LJ:function(){return h},Lj:function(){return l},T8:function(){return c},XZ:function(){return m},eP:function(){return s},eR:function(){return E},gJ:function(){return f},jU:function(){return a},tN:function(){return g},us:function(){return p},x_:function(){return d}});var r=n(69398),o=n(58768);let a="undefined"!=typeof document,i=a&&"file:"===window.location.protocol;function u(e){return void 0!==e}function c(e){return u(e)&&null!==e}function s(e){return e instanceof ArrayBuffer}function l(e){return(0,r.Z)(a,"isBlob can only be used in a browser environment"),e instanceof Blob}function f(e){return"string"==typeof e&&/^data:/.test(e)}function p(e){(0,r.Z)(f(e),"Invalid data URI.");let[t="",n=""]=e.split(",");return -1!==t.split(";").indexOf("base64")?atob(n):unescape(n)}function d(){return a&&window.devicePixelRatio||1}function g(){o(!i,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.")}function h(e){e&&e.cancel&&e.cancel()}function m(e,t){return Object.defineProperty(e,"width",{get(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get(){return this.view[3]},configurable:!0}),e}function y(e){return"RenderingCancelledException"===e.name}function E(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{if(!r.result)return n(Error("Error while reading a file."));t(r.result)},r.onerror=e=>{if(!e.target)return n(Error("Error while reading a file."));let{error:t}=e.target;if(!t)return n(Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return n(Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return n(Error("Error while reading a file: Security error."));case t.ABORT_ERR:return n(Error("Error while reading a file: Aborted."));default:return n(Error("Error while reading a file."))}},r.readAsArrayBuffer(e)})}},69398:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})}}]);