UNPKG

@compdfkit_pdf_sdk/webviewer

Version:

[ComPDFKit PDF SDK](https://www.compdf.com) seamlessly operates on [Web](https://www.compdf.com/web), [Windows](https://www.compdf.com/windows), [Android](https://www.compdf.com/android), [iOS](https://www.compdf.com/ios), [Mac](https://www.compdf.com/con

22 lines 1.13 MB
/** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2023 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * JavaScript code in this page */ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(globalThis,(()=>(()=>{var e=[,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WorkerTask=t.WorkerMessageHandler=void 0;var a=r(2),n=r(139),i=r(140),s=r(142),o=r(206),c=r(200),l=r(4),h=r(237),u=r(238);class WorkerTask{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=WorkerTask;class WorkerMessageHandler{static setup(e,t){let r=!1;e.on("test",(function(t){if(!r){r=!0;e.send("test",t instanceof Uint8Array)}}));e.on("configure",(function(e){(0,a.setVerbosityLevel)(e.verbosity)}));e.on("GetDocRequest",(function(e){return WorkerMessageHandler.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let r,d=!1,f=null;const g=new Set,p=(0,a.getVerbosityLevel)(),{docId:m,apiVersion:b}=e,y="3.5.141";if(b!==y)throw new Error(`The API version "${b}" does not match the Worker version "${y}".`);const w=[];for(const e in[])w.push(e);if(w.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+w.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof Path2D||"undefined"==typeof ReadableStream){const e="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `Path2D` and/or `ReadableStream`); ";if(l.isNodeJS)throw new Error(e+"please use a `legacy`-build instead.");throw new Error(e+"please update to a supported browser.")}const S=m+"_worker";let x=new h.MessageHandler(S,m,t);function ensureNotTerminated(){if(d)throw new Error("Worker was terminated")}function startWorkerTask(e){g.add(e)}function finishWorkerTask(e){e.finish();g.delete(e)}async function loadDocument(e){await r.ensureDoc("checkHeader");await r.ensureDoc("parseStartXRef");await r.ensureDoc("parse",[e]);await r.ensureDoc("checkFirstPage",[e]);await r.ensureDoc("checkLastPage",[e]);const t=await r.ensureDoc("isPureXfa");if(t){const e=new WorkerTask("loadXfaFonts");startWorkerTask(e);await Promise.all([r.loadXfaFonts(x,e).catch((e=>{})).then((()=>finishWorkerTask(e))),r.loadXfaImages()])}const[a,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);return{numPages:a,fingerprints:n,htmlForXfa:t?await r.ensureDoc("htmlForXfa"):null}}function getPdfManager(e){let{data:t,password:r,disableAutoFetch:i,rangeChunkSize:o,length:c,docBaseUrl:l,enableXfa:h,evaluatorOptions:d}=e;const g={source:null,disableAutoFetch:i,docBaseUrl:l,docId:m,enableXfa:h,evaluatorOptions:d,handler:x,length:c,password:r,rangeChunkSize:o},p=(0,a.createPromiseCapability)();let b;if(t){try{g.source=t;b=new s.LocalPdfManager(g);p.resolve(b)}catch(e){p.reject(e)}return p.promise}let y,w=[];try{y=new u.PDFWorkerStream(x)}catch(e){p.reject(e);return p.promise}const S=y.getFullReader();S.headersReady.then((function(){if(S.isRangeSupported){g.source=y;g.length=S.contentLength;g.disableAutoFetch=g.disableAutoFetch||S.isStreamingSupported;b=new s.NetworkPdfManager(g);for(const e of w)b.sendProgressiveData(e);w=[];p.resolve(b);f=null}})).catch((function(e){p.reject(e);f=null}));let C=0;new Promise((function(e,t){const readChunk=function(e){let{value:r,done:i}=e;try{ensureNotTerminated();if(i){b||function(){const e=(0,n.arrayBuffersToBytes)(w);c&&e.length!==c&&(0,a.warn)("reported HTTP length is different from actual");try{g.source=e;b=new s.LocalPdfManager(g);p.resolve(b)}catch(e){p.reject(e)}w=[]}();f=null;return}C+=r.byteLength;S.isStreamingSupported||x.send("DocProgress",{loaded:C,total:Math.max(C,S.contentLength||0)});b?b.sendProgressiveData(r):w.push(r);S.read().then(readChunk,t)}catch(e){t(e)}};S.read().then(readChunk,t)})).catch((function(e){p.reject(e);f=null}));f=function(e){y.cancelAllRequests(e)};return p.promise}x.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){let[t,r,a,n]=e;return{rotate:t,ref:r,userUnit:a,view:n}}))}))}));x.on("GetPageIndex",(function(e){const t=i.Ref.get(e.num,e.gen);return r.ensureCatalog("getPageIndex",[t])}));x.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")}));x.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])}));x.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")}));x.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")}));x.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")}));x.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")}));x.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")}));x.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")}));x.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")}));x.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")}));x.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))}));x.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")}));x.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")}));x.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")}));x.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])}));x.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")}));x.on("GetData",(function(e){return r.requestLoadedStream().then((function(e){return e.bytes}))}));x.on("GetAnnotations",(function(e){let{pageIndex:t,intent:a}=e;return r.getPage(t).then((function(e){const r=new WorkerTask(`GetAnnotations: page ${t}`);startWorkerTask(r);return e.getAnnotationsData(x,r,a).then((e=>{finishWorkerTask(r);return e}),(e=>{finishWorkerTask(r);throw e}))}))}));x.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")}));x.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")}));x.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")}));x.on("SaveDocument",(function(e){let{isPureXfa:t,numPages:s,annotationStorage:o,filename:l}=e;const h=[r.requestLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("xref"),r.ensureDoc("startXRef")],u=t?null:(0,n.getNewAnnotationsMap)(o);if(u)for(const[e,t]of u)h.push(r.getPage(e).then((r=>{const a=new WorkerTask(`Save (editor): page ${e}`);return r.saveNewAnnotations(x,a,t).finally((function(){finishWorkerTask(a)}))})));if(t)h.push(r.serializeXfaData(o));else for(let e=0;e<s;e++)h.push(r.getPage(e).then((function(t){const r=new WorkerTask(`Save: page ${e}`);return t.save(x,r,o).finally((function(){finishWorkerTask(r)}))})));return Promise.all(h).then((function(e){let[r,n,s,o,h,...u]=e,d=[],f=null;if(t){f=u[0];if(!f)return r.bytes}else{d=u.flat(2);if(0===d.length)return r.bytes}const g=s&&n instanceof i.Dict&&d.some((e=>e.needAppearances)),p=n instanceof i.Dict&&n.get("XFA")||null;let m=null,b=!1;if(Array.isArray(p)){for(let e=0,t=p.length;e<t;e+=2)if("datasets"===p[e]){m=p[e+1];b=!0}null===m&&(m=o.getNewTemporaryRef())}else p&&(0,a.warn)("Unsupported XFA type.");let y=Object.create(null);if(o.trailer){const e=Object.create(null),t=o.trailer.get("Info")||null;t instanceof i.Dict&&t.forEach(((t,r)=>{"string"==typeof r&&(e[t]=(0,a.stringToPDFString)(r))}));const r=o.lastXRefStreamPos;y={rootRef:o.trailer.getRaw("Root")||null,encryptRef:o.trailer.getRaw("Encrypt")||null,newRef:o.getNewTemporaryRef(),infoRef:o.trailer.getRaw("Info")||null,info:e,fileIds:o.trailer.get("ID")||null,startXRef:null===r?h:r,filename:l}}try{return(0,c.incrementalUpdate)({originalData:r.bytes,xrefInfo:y,newRefs:d,xref:o,hasXfa:!!p,xfaDatasetsRef:m,hasXfaDatasetsEntry:b,needAppearances:g,acroFormRef:s,acroForm:n,xfaData:f})}finally{o.resetNewTemporaryRef()}}))}));x.on("GetOperatorList",(function(e,t){const n=e.pageIndex;r.getPage(n).then((function(r){const i=new WorkerTask(`GetOperatorList: page ${n}`);startWorkerTask(i);const s=p>=a.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:x,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){finishWorkerTask(i);s&&(0,a.info)(`page=${n+1} - getOperatorList: time=${Date.now()-s}ms, len=${e.length}`);t.close()}),(function(e){finishWorkerTask(i);i.terminated||t.error(e)}))}))}));x.on("GetTextContent",(function(e,t){const{pageIndex:n,includeMarkedContent:i}=e;r.getPage(n).then((function(e){const r=new WorkerTask("GetTextContent: page "+n);startWorkerTask(r);const s=p>=a.VerbosityLevel.INFOS?Date.now():0;e.extractTextContent({handler:x,task:r,sink:t,includeMarkedContent:i}).then((function(){finishWorkerTask(r);s&&(0,a.info)(`page=${n+1} - getTextContent: time=`+(Date.now()-s)+"ms");t.close()}),(function(e){finishWorkerTask(r);r.terminated||t.error(e)}))}))}));x.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))}));x.on("FontFallback",(function(e){return r.fontFallback(e.id,x)}));x.on("Cleanup",(function(e){return r.cleanup(!0)}));x.on("Terminate",(function(e){d=!0;const t=[];if(r){r.terminate(new a.AbortException("Worker was terminated."));const e=r.cleanup();t.push(e);r=null}else(0,o.clearGlobalCaches)();f&&f(new a.AbortException("Worker was terminated."));for(const e of g){t.push(e.finished);e.terminate()}return Promise.all(t).then((function(){x.destroy();x=null}))}));x.on("Ready",(function(t){!function setupDoc(e){function onSuccess(e){ensureNotTerminated();x.send("GetDoc",{pdfInfo:e})}function onFailure(e){ensureNotTerminated();if(e instanceof a.PasswordException){const t=new WorkerTask(`PasswordException: response ${e.code}`);startWorkerTask(t);x.sendWithPromise("PasswordRequest",e).then((function(e){let{password:a}=e;finishWorkerTask(t);r.updatePassword(a);pdfManagerReady()})).catch((function(){finishWorkerTask(t);x.send("DocException",e)}))}else e instanceof a.InvalidPDFException||e instanceof a.MissingPDFException||e instanceof a.UnexpectedResponseException||e instanceof a.UnknownErrorException?x.send("DocException",e):x.send("DocException",new a.UnknownErrorException(e.message,e.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(e){ensureNotTerminated();e instanceof n.XRefParseException?r.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(e)}))}ensureNotTerminated();getPdfManager(e).then((function(e){if(d){e.terminate(new a.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}r=e;r.requestLoadedStream(!0).then((e=>{x.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(e);e=null}));return S}static initializeFromPort(e){const t=new h.MessageHandler("worker","main",e);WorkerMessageHandler.setup(t,e);t.send("ready",null)}}t.WorkerMessageHandler=WorkerMessageHandler;"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&WorkerMessageHandler.initializeFromPort(self)},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=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.assert=function assert(e,t){e||unreachable(t)};t.bytesToString=function bytesToString(e){"object"==typeof e&&null!==e&&void 0!==e.length||unreachable("Invalid argument for bytesToString");const t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);const a=[];for(let n=0;n<t;n+=r){const i=Math.min(n+r,t),s=e.subarray(n,i);a.push(String.fromCharCode.apply(null,s))}return a.join("")};t.createPromiseCapability=function createPromiseCapability(){const e=Object.create(null);let t=!1;Object.defineProperty(e,"settled",{get:()=>t});e.promise=new Promise((function(r,a){e.resolve=function(e){t=!0;r(e)};e.reject=function(e){t=!0;a(e)}}));return e};t.createValidAbsoluteUrl=function createValidAbsoluteUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(r.tryConvertEncoding)try{e=stringToUTF8String(e)}catch(e){}}const a=t?new URL(e,t):new URL(e);if(function _isValidProtocol(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(e){}return null};t.getModificationDate=function getModificationDate(){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 getVerbosityLevel(){return n};t.info=function info(e){n>=a.INFOS&&console.log(`Info: ${e}`)};t.isArrayBuffer=function isArrayBuffer(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength};t.isArrayEqual=function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(e[r]!==t[r])return!1;return!0};t.objectFromMap=function objectFromMap(e){const t=Object.create(null);for(const[r,a]of e)t[r]=a;return t};t.objectSize=function objectSize(e){return Object.keys(e).length};t.setVerbosityLevel=function setVerbosityLevel(e){Number.isInteger(e)&&(n=e)};t.shadow=shadow;t.string32=function string32(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)};t.stringToBytes=stringToBytes;t.stringToPDFString=function stringToPDFString(e){if(e[0]>="ï"){let t;"þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8");if(t)try{const r=new TextDecoder(t,{fatal:!0}),a=stringToBytes(e);return r.decode(a)}catch(e){warn(`stringToPDFString: "${e}".`)}}const t=[];for(let r=0,a=e.length;r<a;r++){const a=o[e.charCodeAt(r)];t.push(a?String.fromCharCode(a):e.charAt(r))}return t.join("")};t.stringToUTF8String=stringToUTF8String;t.unreachable=unreachable;t.utf8StringToString=function utf8StringToString(e){return unescape(encodeURIComponent(e))};t.warn=warn;if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;r(3)}t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.MAX_IMAGE_SIZE_TO_CACHE=1e7;t.LINE_FACTOR=1.35;t.LINE_DESCENT_FACTOR=.35;t.BASELINE_FACTOR=.25925925925925924;t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,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"};const a={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=a;t.CMapCompressionType={NONE:0,BINARY:1};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,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let n=a.WARNINGS;function warn(e){n>=a.WARNINGS&&console.log(`Warning: ${e}`)}function unreachable(e){throw new Error(e)}function shadow(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(e,t,{value:r,enumerable:!a,configurable:!0,writable:!1});return r}const i=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();t.BaseException=i;t.PasswordException=class PasswordException extends i{constructor(e,t){super(e,"PasswordException");this.code=t}};t.UnknownErrorException=class UnknownErrorException extends i{constructor(e,t){super(e,"UnknownErrorException");this.details=t}};t.InvalidPDFException=class InvalidPDFException extends i{constructor(e){super(e,"InvalidPDFException")}};t.MissingPDFException=class MissingPDFException extends i{constructor(e){super(e,"MissingPDFException")}};t.UnexpectedResponseException=class UnexpectedResponseException extends i{constructor(e,t){super(e,"UnexpectedResponseException");this.status=t}};t.FormatError=class FormatError extends i{constructor(e){super(e,"FormatError")}};t.AbortException=class AbortException extends i{constructor(e){super(e,"AbortException")}};function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,r=new Uint8Array(t);for(let a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}t.FeatureTest=class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?shadow(this,"platform",{isWin:!1,isMac:!1}):shadow(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}};const s=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class Util{static makeHexColor(e,t,r){return`#${s[e]}${s[t]}${s[r]}`}static scaleMinMax(e,t){let r;if(e[0]){if(e[0]<0){r=t[0];t[0]=t[1];t[1]=r}t[0]*=e[0];t[1]*=e[0];if(e[3]<0){r=t[2];t[2]=t[3];t[3]=r}t[2]*=e[3];t[3]*=e[3]}else{r=t[0];t[0]=t[2];t[2]=r;r=t[1];t[1]=t[3];t[3]=r;if(e[1]<0){r=t[2];t[2]=t[3];t[3]=r}t[2]*=e[1];t[3]*=e[1];if(e[2]<0){r=t[0];t[0]=t[1];t[1]=r}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 r=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])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=Util.applyTransform(e,t),a=Util.applyTransform(e.slice(2,4),t),n=Util.applyTransform([e[0],e[3]],t),i=Util.applyTransform([e[2],e[1]],t);return[Math.min(r[0],a[0],n[0],i[0]),Math.min(r[1],a[1],n[1],i[1]),Math.max(r[0],a[0],n[0],i[0]),Math.max(r[1],a[1],n[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 singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],s=(r+i)/2,o=Math.sqrt((r+i)**2-4*(r*i-n*a))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)]}static normalizeRect(e){const t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t}static intersect(e,t){const r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>a)return null;const n=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 n>i?null:[r,n,a,i]}static bezierBoundingBox(e,t,r,a,n,i,s,o){const c=[],l=[[],[]];let h,u,d,f,g,p,m,b;for(let l=0;l<2;++l){if(0===l){u=6*e-12*r+6*n;h=-3*e+9*r-9*n+3*s;d=3*r-3*e}else{u=6*t-12*a+6*i;h=-3*t+9*a-9*i+3*o;d=3*a-3*t}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u;0<f&&f<1&&c.push(f)}else{m=u*u-4*d*h;b=Math.sqrt(m);if(!(m<0)){g=(-u+b)/(2*h);0<g&&g<1&&c.push(g);p=(-u-b)/(2*h);0<p&&p<1&&c.push(p)}}}let y,w=c.length;const S=w;for(;w--;){f=c[w];y=1-f;l[0][w]=y*y*y*e+3*y*y*f*r+3*y*f*f*n+f*f*f*s;l[1][w]=y*y*y*t+3*y*y*f*a+3*y*f*f*i+f*f*f*o}l[0][S]=e;l[1][S]=t;l[0][S+1]=s;l[1][S+1]=o;l[0].length=l[1].length=S+2;return[Math.min(...l[0]),Math.min(...l[1]),Math.max(...l[0]),Math.max(...l[1])]}}t.Util=Util;const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(e){return decodeURIComponent(escape(e))}},(e,t,r)=>{"use strict";var a=r(4);!function checkDOMMatrix(){!globalThis.DOMMatrix&&a.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix)}();!function checkPath2D(){if(globalThis.Path2D||!a.isNodeJS)return;const{CanvasRenderingContext2D:e}=require("canvas"),{polyfillPath2D:t}=require("path2d-polyfill");globalThis.CanvasRenderingContext2D=e;t(globalThis)}();!function checkReadableStream(){!globalThis.ReadableStream&&a.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkArrayAt(){Array.prototype.at||r(5)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||r(79)}();!function checkStructuredClone(){globalThis.structuredClone||r(91)}()},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isNodeJS=void 0;const r=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=r},(e,t,r)=>{r(6);var a=r(78);e.exports=a("Array","at")},(e,t,r)=>{"use strict";var a=r(7),n=r(44),i=r(68),s=r(66),o=r(73);a({target:"Array",proto:!0},{at:function at(e){var t=n(this),r=i(t),a=s(e),o=a>=0?a:r+a;return o<0||o>=r?void 0:t[o]}});o("at")},(e,t,r)=>{var a=r(8),n=r(9).f,i=r(48),s=r(52),o=r(42),c=r(60),l=r(72);e.exports=function(e,t){var r,h,u,d,f,g=e.target,p=e.global,m=e.stat;if(r=p?a:m?a[g]||o(g,{}):(a[g]||{}).prototype)for(h in t){d=t[h];u=e.dontCallGetSet?(f=n(r,h))&&f.value:r[h];if(!l(p?h:g+(m?".":"#")+h,e.forced)&&void 0!==u){if(typeof d==typeof u)continue;c(d,u)}(e.sham||u&&u.sham)&&i(d,"sham",!0);s(r,h,d,e)}}},e=>{var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(e,t,r)=>{var a=r(10),n=r(12),i=r(14),s=r(15),o=r(16),c=r(22),l=r(43),h=r(46),u=Object.getOwnPropertyDescriptor;t.f=a?u:function getOwnPropertyDescriptor(e,t){e=o(e);t=c(t);if(h)try{return u(e,t)}catch(e){}if(l(e,t))return s(!n(i.f,e,t),e[t])}},(e,t,r)=>{var a=r(11);e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{var a=r(13),n=Function.prototype.call;e.exports=a?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,r)=>{var a=r(11);e.exports=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);t.f=n?function propertyIsEnumerable(e){var t=a(this,e);return!!t&&t.enumerable}:r},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{var a=r(17),n=r(20);e.exports=function(e){return a(n(e))}},(e,t,r)=>{var a=r(18),n=r(11),i=r(19),s=Object,o=a("".split);e.exports=n((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o(e,""):s(e)}:s},(e,t,r)=>{var a=r(13),n=Function.prototype,i=n.call,s=a&&n.bind.bind(i,i);e.exports=a?s:function(e){return function(){return i.apply(e,arguments)}}},(e,t,r)=>{var a=r(18),n=a({}.toString),i=a("".slice);e.exports=function(e){return i(n(e),8,-1)}},(e,t,r)=>{var a=r(21),n=TypeError;e.exports=function(e){if(a(e))throw n("Can't call method on "+e);return e}},e=>{e.exports=function(e){return null==e}},(e,t,r)=>{var a=r(23),n=r(27);e.exports=function(e){var t=a(e,"string");return n(t)?t:t+""}},(e,t,r)=>{var a=r(12),n=r(24),i=r(27),s=r(34),o=r(37),c=r(38),l=TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=s(e,h);if(c){void 0===t&&(t="default");r=a(c,e,t);if(!n(r)||i(r))return r;throw l("Can't convert object to primitive value")}void 0===t&&(t="number");return o(e,t)}},(e,t,r)=>{var a=r(25),n=r(26),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:a(e)||e===i}:function(e){return"object"==typeof e?null!==e:a(e)}},(e,t,r)=>{var a=r(26),n=a.all;e.exports=a.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},(e,t,r)=>{var a=r(28),n=r(25),i=r(29),s=r(30),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=a("Symbol");return n(t)&&i(t.prototype,o(e))}},(e,t,r)=>{var a=r(8),n=r(25);e.exports=function(e,t){return arguments.length<2?(r=a[e],n(r)?r:void 0):a[e]&&a[e][t];var r}},(e,t,r)=>{var a=r(18);e.exports=a({}.isPrototypeOf)},(e,t,r)=>{var a=r(31);e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{var a=r(32),n=r(11);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a&&a<41}))},(e,t,r)=>{var a,n,i=r(8),s=r(33),o=i.process,c=i.Deno,l=o&&o.versions||c&&c.version,h=l&&l.v8;h&&(n=(a=h.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1]));!n&&s&&(!(a=s.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=s.match(/Chrome\/(\d+)/))&&(n=+a[1]);e.exports=n},e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,r)=>{var a=r(35),n=r(21);e.exports=function(e,t){var r=e[t];return n(r)?void 0:a(r)}},(e,t,r)=>{var a=r(25),n=r(36),i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+" is not a function")}},e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,r)=>{var a=r(12),n=r(25),i=r(24),s=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!i(o=a(r,e)))return o;if(n(r=e.valueOf)&&!i(o=a(r,e)))return o;if("string"!==t&&n(r=e.toString)&&!i(o=a(r,e)))return o;throw s("Can't convert object to primitive value")}},(e,t,r)=>{var a=r(8),n=r(39),i=r(43),s=r(45),o=r(31),c=r(30),l=a.Symbol,h=n("wks"),u=c?l.for||l:l&&l.withoutSetter||s;e.exports=function(e){i(h,e)||(h[e]=o&&i(l,e)?l[e]:u("Symbol."+e));return h[e]}},(e,t,r)=>{var a=r(40),n=r(41);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:a?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,r)=>{var a=r(8),n=r(42),i="__core-js_shared__",s=a[i]||n(i,{});e.exports=s},(e,t,r)=>{var a=r(8),n=Object.defineProperty;e.exports=function(e,t){try{n(a,e,{value:t,configurable:!0,writable:!0})}catch(r){a[e]=t}return t}},(e,t,r)=>{var a=r(18),n=r(44),i=a({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(n(e),t)}},(e,t,r)=>{var a=r(20),n=Object;e.exports=function(e){return n(a(e))}},(e,t,r)=>{var a=r(18),n=0,i=Math.random(),s=a(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}},(e,t,r)=>{var a=r(10),n=r(11),i=r(47);e.exports=!a&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{var a=r(8),n=r(24),i=a.document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},(e,t,r)=>{var a=r(10),n=r(49),i=r(15);e.exports=a?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){e[t]=r;return e}},(e,t,r)=>{var a=r(10),n=r(46),i=r(50),s=r(51),o=r(22),c=TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",f="writable";t.f=a?i?function defineProperty(e,t,r){s(e);t=o(t);s(r);if("function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var a=h(e,t);if(a&&a[f]){e[t]=r.value;r={configurable:d in r?r[d]:a[d],enumerable:u in r?r[u]:a[u],writable:!1}}}return l(e,t,r)}:l:function defineProperty(e,t,r){s(e);t=o(t);s(r);if(n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");"value"in r&&(e[t]=r.value);return e}},(e,t,r)=>{var a=r(10),n=r(11);e.exports=a&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,r)=>{var a=r(24),n=String,i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+" is not an object")}},(e,t,r)=>{var a=r(25),n=r(49),i=r(53),s=r(42);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,l=void 0!==o.name?o.name:t;a(r)&&i(r,l,o);if(o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},(e,t,r)=>{var a=r(18),n=r(11),i=r(25),s=r(43),o=r(10),c=r(54).CONFIGURABLE,l=r(55),h=r(56),u=h.enforce,d=h.get,f=String,g=Object.defineProperty,p=a("".slice),m=a("".replace),b=a([].join),y=o&&!n((function(){return 8!==g((function(){}),"length",{value:8}).length})),w=String(String).split("String"),S=e.exports=function(e,t,r){"Symbol("===p(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]");r&&r.getter&&(t="get "+t);r&&r.setter&&(t="set "+t);(!s(e,"name")||c&&e.name!==t)&&(o?g(e,"name",{value:t,configurable:!0}):e.name=t);y&&r&&s(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);s(a,"source")||(a.source=b(w,"string"==typeof t?t:""));return e};Function.prototype.toString=S((function toString(){return i(this)&&d(this).source||l(this)}),"toString")},(e,t,r)=>{var a=r(10),n=r(43),i=Function.prototype,s=a&&Object.getOwnPropertyDescriptor,o=n(i,"name"),c=o&&"something"===function something(){}.name,l=o&&(!a||a&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:l}},(e,t,r)=>{var a=r(18),n=r(25),i=r(41),s=a(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)});e.exports=i.inspectSource},(e,t,r)=>{var a,n,i,s=r(57),o=r(8),c=r(24),l=r(48),h=r(43),u=r(41),d=r(58),f=r(59),g="Object already initialized",p=o.TypeError,m=o.WeakMap;if(s||u.state){var b=u.state||(u.state=new m);b.get=b.get;b.has=b.has;b.set=b.set;a=function(e,t){if(b.has(e))throw p(g);t.facade=e;b.set(e,t);return t};n=function(e){return b.get(e)||{}};i=function(e){return b.has(e)}}else{var y=d("state");f[y]=!0;a=function(e,t){if(h(e,y))throw p(g);t.facade=e;l(e,y,t);return t};n=function(e){return h(e,y)?e[y]:{}};i=function(e){return h(e,y)}}e.exports={set:a,get:n,has:i,enforce:function(e){return i(e)?n(e):a(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{var a=r(8),n=r(25),i=a.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},(e,t,r)=>{var a=r(39),n=r(45),i=a("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},e=>{e.exports={}},(e,t,r)=>{var a=r(43),n=r(61),i=r(9),s=r(49);e.exports=function(e,t,r){for(var o=n(t),c=s.f,l=i.f,h=0;h<o.length;h++){var u=o[h];a(e,u)||r&&a(r,u)||c(e,u,l(t,u))}}},(e,t,r)=>{var a=r(28),n=r(18),i=r(62),s=r(71),o=r(51),c=n([].concat);e.exports=a("Reflect","ownKeys")||function ownKeys(e){var t=i.f(o(e)),r=s.f;return r?c(t,r(e)):t}},(e,t,r)=>{var a=r(63),n=r(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return a(e,n)}},(e,t,r)=>{var a=r(18),n=r(43),i=r(16),s=r(64).indexOf,o=r(59),c=a([].push);e.exports=function(e,t){var r,a=i(e),l=0,h=[];for(r in a)!n(o,r)&&n(a,r)&&c(h,r);for(;t.length>l;)n(a,r=t[l++])&&(~s(h,r)||c(h,r));return h}},(e,t,r)=>{var a=r(16),n=r(65),i=r(68),createMethod=function(e){return function(t,r,s){var o,c=a(t),l=i(c),h=n(s,l);if(e&&r!=r){for(;l>h;)if((o=c[h++])!=o)return!0}else for(;l>h;h++)if((e||h in c)&&c[h]===r)return e||h||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(e,t,r)=>{var a=r(66),n=Math.max,i=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):i(r,t)}},(e,t,r)=>{var a=r(67);e.exports=function(e){var t=+e;return t!=t||0===t?0:a(t)}},e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var a=+e;return(a>0?r:t)(a)}},(e,t,r)=>{var a=r(69);e.exports=function(e){return a(e.length)}},(e,t,r)=>{var a=r(66),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,r)=>{var a=r(11),n=r(25),i=/#|\.prototype\./,isForced=function(e,t){var r=o[s(e)];return r==l||r!=c&&(n(t)?a(t):!!t)},s=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=isForced.data={},c=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},(e,t,r)=>{var a=r(38),n=r(74),i=r(49).f,s=a("unscopables"),o=Array.prototype;null==o[s]&&i(o,s,{configurable:!0,value:n(null)});e.exports=function(e){o[s][e]=!0}},(e,t,r)=>{var a,n=r(51),i=r(75),s=r(70),o=r(59),c=r(77),l=r(47),h=r(58),u="prototype",d="script",f=h("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+d+">"+e+"</"+d+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{a=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&a?NullProtoObjectViaActiveX(a):function(){var e,t=l("iframe"),r="java"+d+":";t.style.display="none";c.appendChild(t);t.src=String(r);(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(a);for(var e=s.length;e--;)delete NullProtoObject[u][s[e]];return NullProtoObject()};o[f]=!0;e.exports=Object.create||function create(e,t){var r;if(null!==e){EmptyConstructor[u]=n(e);r=new EmptyConstructor;EmptyConstructor[u]=null;r[f]=e}else r=NullProtoObject();return void 0===t?r:i.f(r,t)}},(e,t,r)=>{var a=r(10),n=r(50),i=r(49),s=r(51),o=r(16),c=r(76);t.f=a&&!n?Object.defineProperties:function defineProperties(e,t){s(e);for(var r,a=o(t),n=c(t),l=n.length,h=0;l>h;)i.f(e,r=n[h++],a[r]);return e}},(e,t,r)=>{var a=r(63),n=r(70);e.exports=Object.keys||function keys(e){return a(e,n)}},(e,t,r)=>{var a=r(28);e.exports=a("document","documentElement")},(e,t,r)=>{var a=r(8),n=r(18);e.exports=function(e,t){return n(a[e].prototype[t])}},(e,t,r)=>{r(80)},(e,t,r)=>{"use strict";var a=r(81),n=r(68),i=r(66),s=a.aTypedArray;(0,a.exportTypedArrayMethod)("at",(function at(e){var t=s(this),r=n(t),a=i(e),o=a>=0?a:r+a;return o<0||o>=r?void 0:t[o]}))},(e,t,r)=>{"use strict";var a,n,i,s=r(82),o=r(10),c=r(8),l=r(25),h=r(24),u=r(43),d=r(83),f=r(36),g=r(48),p=r(52),m=r(85),b=r(29),y=r(86),w=r(88),S=r(38),x=r(45),C=r(56),k=C.enforce,v=C.get,O=c.Int8Array,T=O&&O.prototype,M=c.Uint8ClampedArray,E=M&&M.prototype,D=O&&y(O),N=T&&y(T),R=Object.prototype,L=c.TypeError,_=S("toStringTag"),j=x("TYPED_ARRAY_TAG"),$="TypedArrayConstructor",U=s&&!!w&&"Opera"!==d(c.opera),X=!1,H={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},q={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(e){var t=y(e);if(h(t)){var r=v(t);return r&&u(r,$)?r[$]:getTypedArrayConstructor(t)}},isTypedArray=function(e){if(!h(e))return!1;var t=d(e);return u(H,t)||u(q,t)};for(a in H)(i=(n=c[a])&&n.prototype)?k(i)[$]=n:U=!1;for(a in q)(i=(n=c[a])&&n.prototype)&&(k(i)[$]=n);if(!U||!l(D)||D===Function.prototype){D=function TypedArray(){throw L("Incorrect invocation")};if(U)for(a in H)c[a]&&w(c[a],D)}if(!U||!N||N===R){N=D.prototype;if(U)for(a in H)c[a]&&w(c[a].prototype,N)}U&&y(E)!==N&&w(E,N);if(o&&!u(N,_)){X=!0;m(N,_,{configurable:!0,get:function(){return h(this)?this[j]:void 0}});for(a in H)c[a]&&g(c[a],j,a)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:X&&j,aTypedArray:function(e){if(isTypedArray(e))return e;throw L("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!w||b(D,e)))return e;throw L(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,a){if(o){if(r)for(var n in H){var i=c[n];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}N[e]&&!r||p(N,e,r?t:U&&T[e]||t,a)}},exportTypedArrayStaticMethod:function(e,t,r){var a,n;if(o){if(w){if(r)for(a in H)if((n=c[a])&&u(n,e))try{delete n[e]}catch(e){}if(D[e]&&!r)return;try{return p(D,e,r?t:U&&D[e]||t)}catch(e){}}for(a in H)!(n=c[a])||n[e]&&!r||p(n,e,t)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(e){if(!h(e))return!1;var t=d(e);return"DataView"===t||u(H,t)||u(q,t)},isTypedArray:isTypedArray,TypedArray:D,TypedArrayPrototype:N}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,r)=>{var a=r(84),n=r(25),i=r(19),s=r(38)("toStringTag"),o=Object,c="Arguments"==i(function(){return arguments}());e.exports=a?i:function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=o(e),s))?r:c?i(t):"Object"==(a=i(t))&&n(t.callee)?"Arguments":a}},(e,t,r)=>{var a={};a[r(38)("toStringTag")]="z";e.exports="[object z]"===String(a)},(e,t,r)=>{var a=r(53),n=r(49);e.exports=function(e,t,r){r.get&&a(r.get,t,{getter:!0});r.set&&a(r.set,t,{setter:!0});return n.f(e,t,r)}},(e,t,r)=>{var a=r(43),n=r(25),i=r(44),s=r(58),o=r(87),c=s("IE_PROTO"),l=Object,h=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=i(e);if(a(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?h:null}},(e,t,r)=>{var a=r(11);e.exports=!a((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(e,t,r)=>{var a=r(89),n=r(51),i=r(90);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=a(Object.prototype,"__proto__","set"))(r,[]);t=r instanceof Array}catch(e){}return function setPrototypeOf(r,a){n(r);i(a);t?e(r,a):r.__proto__=a;return r}}():void 0)},(e,t,r)=>{var a=r(18),n=r(35);e.exports=function(e,t,r){try{return a(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},(e,t,r)=>{var a=r(25),n=String,i=TypeError;e.exports=function(e){if("object"==typeof e||a(e))return e;throw i("Can't set "+n(e)+" as a prototype")}},(e,t,r)=>{r(92);r(99);r(101);r(124);r(126);var a=r(138);e.exports=a.structuredClone},(e,t,r)=>{"use strict";var a=r(16),n=r(73),i=r(93),s=r(56),o=r(49).f,c=r(94),l=r(98),h=r(40),u=r(10),d="Array Iterator",f=s.set,g=s.getterFor(d);e.exports=c(Array,"Array",(function(e,t){f(this,{type:d,target:a(e),index:0,kind:t})}),(function(){var e=g(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length){e.target=void 0;return l(void 0,!0)}return l("keys"==r?a:"values"==r?t[a]:[a,t[a]],!1)}),"values");var p=i.Arguments=i.Array;n("keys");n("values");n("entries");if(!h&&u&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(e){}},e=>{e.exports={}},(e,t,r)=>{"use strict";var a=r(7),n=r(12),i=r(40),s=r(54),o=r(25),c=r(95),l=r(86),h=r(88),u=r(97),d=r(48),f=r(52),g=r(38),p=r(93),m=r(96),b=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,S=m.BUGGY_SAFARI_ITERATORS,x=g("iterator"),C="keys",k="values",v="entries",returnThis=function(){return this};e.exports=function(e,t,r,s,g,m,O){c(r,t,s);var T,M,E,getIterationMethod=function(e){if(e===g&&_)return _;if(!S&&e in R)return R[e];switch(e){case C:return function keys(){return new r(this,e)};case k:return function values(){return new r(this,e)};case v:return function entries(){return new r(this,e)}}return function(){return new r(this)}},D=t+" Iterator",N=!1,R=e.prototype,L=R[x]||R["@@iterator"]||g&&R[g],_=!S&&L||getIterationMethod(g),j="Array"==t&&R.entries||L;if(j&&(T=l(j.call(new e)))!==Object.prototype&&T.next){i||l(T)===w||(h?h(T,w):o(T[x])||f(T,x,returnThis));u(T,D,!0,!0);i&&(p[D]=returnThis)}if(b&&g==k&&L&&L.name!==k)if(!i&&y)d(R,"name",k);else{N=!0;_=function values(){return n(L,this)}}if(g){M={values:getIterationMethod(k),keys:m?_:getIterationMethod(C),entries:getIterationMethod(v)};if(O)for(E in M)(S||N||!(E in R))&&f(R,E,M[E]);else a({target:t,proto:!0,forced:S||N},M)}i&&!O||R[x]===_||f(R,x,_,{name:g});p[t]=_;return M}},(e,t,r)=>{"use strict";var a=r(96).IteratorPrototype,n=r(74),i=r(15),s=r(97),o=r(93),returnThis=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";e.prototype=n(a,{next:i(+!c,r)});s(e,l,!1,!0);o[l]=returnThis;return e}},(e,t,r)=>{"use strict";var a,n,i,s=r(11),o=r(25),c=r(24),l=r(74),h=r(86),u=r(52),d=r(38),f=r(40),g=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(n=h(h(i)))!==Object.prototype&&(a=n):p=!0);!c(a)||s((function(){var e={};return a[g].call(e)!==e}))?a={}:f&&(a=l(a));o(a[g])||u(a,g,(function(){return this}));e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:p}},(e,t,r)=>{var a=r(49).f,n=r(43),i=r(38)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype);e&&!n(e,i)&&a(e,i,{configurable:!0,value:t})}},e=>{e.exports=function(e,t){return{value:e,done:t}}},(e,t,r)=>{var a=r(84),n=r(52),i=r(100);a||n(Object.prototype,"toString",i,{unsafe:!0})},(e,t,r)=>{"use strict";var a=r(84),n=r(83);e.exports=a?{}.toString:function toString(){return"[object "+n(this)+"]"}},(e,t,r)=>{r(102)},(e,t,r)=>{"use strict";r(103)("Map",(function(e){return function Map(){return e(this,arguments.length?arguments[0]:void 0)}}),r(121))},(e,t,r)=>{"use strict";var a=r(7),n=r(8),i=r(18),s=r(72),o=r(52),c=r(104),l=r(111),h=r(118),u=r(25),d=r(21),f=r(24),g=r(11),p=r(119),m=r(97),b=r(120);e.exports=function(e,t,r){var y=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),S=y?"set":"add",x=n[e],C=x&&x.prototype,k=x,v={},fixMethod=function(e){var t=i(C[e]);o(C,e,"add"==e?function add(e){t(this,0===e?0:e);return this}:"delete"==e?function(e){return!(w&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function get(e){return w&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function has(e){return!(w&&!f(e))&&t(this,0===e?0:e)}:function set(e,r){t(this,0===e?0:e,r);return this})};if(s(e,!u(x)||!(w||C.forEach&&!g((function(){(new x).entries().next()}))))){k=r.getConstructor(t,e,y,S);c.enable()}else if(s(e,!0)){var O=new k,T=O[S](w?{}:-0,1)!=O,M=g((function(){O.has(1)})),E=p((function(e){new x(e)})),D=!w&&g((function(){for(var e=new x,t=5;t--;)e[S](t,t);return!e.has(-0)}));if(!E){(k=t((function(e,t){h(e,C);var r=b(new x,e,k);d(t)||l(t,r[S],{that:r,AS_ENTRIES:y});return r}))).prototype=C;C.constructor=k}if(M||D){fixMethod("delete");fixMethod("has");y&&fixMethod("get")}(D||T)&&fixMethod(S);w&&C.clear&&delete C.clear}v[e]=k;a({global:!0,constructor:!0,forced:k!=x},v);m(k,e);w||r.setStrong(k,e,y);return k}},(e,t,r)=>{var a=r(7),n=r(18),i=r(59),s=r(24),o=r(43),c=r(49).f,l=r(62),h=r(105),u=r(108),d=r(45),f=r(110),g=!1,p=d("meta"),m=0,setMetadata=function(e){c(e,p,{value:{objectID:"O"+m++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){};g=!0;var e=l.f,t=n([].splice),r={};r[p]=1;if(e(r).length){l.f=function(r){for(var a=e(r),n=0,i=a.length;n<i;n++)if(a[n]===p){t(a,n,1);break}return a};a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:h.f})}},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,p)){if(!u(e))return"F";if(!t)return"E";setMetadata(e)}return e[p].objectID},getWeakData:function(e,t){if(!o(e,p)){if(!u(e))return!0;if(!t)return!1;setMetadata(e)}return e[p].weakData},onFreeze:function(e){f&&g&&u(e)&&!o(e,p)&&setMetadata(e);return e}};i[p]=!0},(e,t,r)=>{var a=r(19),n=r(16),i=r(62).f,s=r(106),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function getOwnPropertyNames(e){return o&&"Window"==a(e)?function(e){try{return i(e)}catch(e){return s(o)}}(e):i(n(e))}},(e,t,r)=>{var a=r(65),n=r(68),i=r(107),s=Array,o=Math.max;e.exports=function(e,t,r){for(var c=n(e),l=a(t,c),h=a(void 0===r?c:r,c),u=s(o(h-l,0)),d=0;l<h;l++,d++)i(u,d,e[l]);u.length=d;return u}},(e,t,r)=>{"use str