UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

22 lines 363 kB
/** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2022 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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],e):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=e()}(globalThis,(()=>(()=>{var __webpack_modules__=[,(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.UNSUPPORTED_FEATURES=e.TextRenderingMode=e.StreamType=e.RenderingIntentFlag=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FontType=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.BASELINE_FACTOR=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMode=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0;e.arrayByteLength=arrayByteLength;e.arraysToBytes=function arraysToBytes(t){const e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];let i=0;for(let s=0;s<e;s++)i+=arrayByteLength(t[s]);let s=0;const r=new Uint8Array(i);for(let i=0;i<e;i++){let e=t[i];e instanceof Uint8Array||(e="string"==typeof e?stringToBytes(e):new Uint8Array(e));const a=e.byteLength;r.set(e,s);s+=a}return r};e.assert=function assert(t,e){t||unreachable(e)};e.bytesToString=function bytesToString(t){"object"==typeof t&&null!==t&&void 0!==t.length||unreachable("Invalid argument for bytesToString");const e=t.length,i=8192;if(e<i)return String.fromCharCode.apply(null,t);const s=[];for(let r=0;r<e;r+=i){const a=Math.min(r+i,e),n=t.subarray(r,a);s.push(String.fromCharCode.apply(null,n))}return s.join("")};e.createPromiseCapability=function createPromiseCapability(){const t=Object.create(null);let e=!1;Object.defineProperty(t,"settled",{get:()=>e});t.promise=new Promise((function(i,s){t.resolve=function(t){e=!0;i(t)};t.reject=function(t){e=!0;s(t)}}));return t};e.createValidAbsoluteUrl=function createValidAbsoluteUrl(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(i&&"string"==typeof t){if(i.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);e&&e.length>=2&&(t=`http://${t}`)}if(i.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}const s=e?new URL(t,e):new URL(t);if(_isValidProtocol(s))return s}catch(t){}return null};e.getModificationDate=function getModificationDate(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const e=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return e.join("")};e.getVerbosityLevel=function getVerbosityLevel(){return r};e.info=function info(t){r>=s.INFOS&&console.log(`Info: ${t}`)};e.isArrayBuffer=function isArrayBuffer(t){return"object"==typeof t&&null!==t&&void 0!==t.byteLength};e.isArrayEqual=function isArrayEqual(t,e){if(t.length!==e.length)return!1;for(let i=0,s=t.length;i<s;i++)if(t[i]!==e[i])return!1;return!0};e.objectFromMap=function objectFromMap(t){const e=Object.create(null);for(const[i,s]of t)e[i]=s;return e};e.objectSize=function objectSize(t){return Object.keys(t).length};e.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(r=t)};e.shadow=shadow;e.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};e.stringToBytes=stringToBytes;e.stringToPDFString=function stringToPDFString(t){if(t[0]>="ï"){let e;"þ"===t[0]&&"ÿ"===t[1]?e="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?e="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(e="utf-8");if(e)try{const i=new TextDecoder(e,{fatal:!0}),s=stringToBytes(t);return i.decode(s)}catch(t){warn(`stringToPDFString: "${t}".`)}}const e=[];for(let i=0,s=t.length;i<s;i++){const s=o[t.charCodeAt(i)];e.push(s?String.fromCharCode(s):t.charAt(i))}return e.join("")};e.stringToUTF8String=stringToUTF8String;e.unreachable=unreachable;e.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};e.warn=warn;if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;i(2)}e.IDENTITY_MATRIX=[1,0,0,1,0,0];e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];e.LINE_FACTOR=1.35;e.LINE_DESCENT_FACTOR=.35;e.BASELINE_FACTOR=.25925925925925924;e.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};e.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};e.AnnotationEditorPrefix="pdfjs_internal_editor_";e.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};e.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};e.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};e.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};e.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.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};e.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};e.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReplyType={GROUP:"Group",REPLY:"R"};e.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.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};e.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.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"};e.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};e.PageActionEventType={O:"PageOpen",C:"PageClose"};e.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.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 s={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=s;e.CMapCompressionType={NONE:0,BINARY:1};e.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};e.UNSUPPORTED_FEATURES={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",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"};e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let r=s.WARNINGS;function warn(t){r>=s.WARNINGS&&console.log(`Warning: ${t}`)}function unreachable(t){throw new Error(t)}function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function shadow(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(t,e,{value:i,enumerable:!s,configurable:!0,writable:!1});return i}const a=function BaseExceptionClosure(){function BaseException(t,e){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=e}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();e.BaseException=a;e.PasswordException=class PasswordException extends a{constructor(t,e){super(t,"PasswordException");this.code=e}};e.UnknownErrorException=class UnknownErrorException extends a{constructor(t,e){super(t,"UnknownErrorException");this.details=e}};e.InvalidPDFException=class InvalidPDFException extends a{constructor(t){super(t,"InvalidPDFException")}};e.MissingPDFException=class MissingPDFException extends a{constructor(t){super(t,"MissingPDFException")}};e.UnexpectedResponseException=class UnexpectedResponseException extends a{constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}};e.FormatError=class FormatError extends a{constructor(t){super(t,"FormatError")}};e.AbortException=class AbortException extends a{constructor(t){super(t,"AbortException")}};function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");const e=t.length,i=new Uint8Array(e);for(let s=0;s<e;++s)i[s]=255&t.charCodeAt(s);return i}function arrayByteLength(t){if(void 0!==t.length)return t.length;if(void 0!==t.byteLength)return t.byteLength;unreachable("Invalid argument for arrayByteLength")}e.FeatureTest=class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const n=[...Array(256).keys()].map((t=>t.toString(16).padStart(2,"0")));class Util{static makeHexColor(t,e,i){return`#${n[t]}${n[e]}${n[i]}`}static scaleMinMax(t,e){let i;if(t[0]){if(t[0]<0){i=e[0];e[0]=e[1];e[1]=i}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[3];e[3]*=t[3]}else{i=e[0];e[0]=e[2];e[2]=i;i=e[1];e[1]=e[3];e[3]=i;if(t[1]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){i=e[0];e[0]=e[1];e[1]=i}e[0]*=t[2];e[1]*=t[2]}e[0]+=t[4];e[1]+=t[4];e[2]+=t[5];e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}static applyInverseTransform(t,e){const i=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/i,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/i]}static getAxialAlignedBoundingBox(t,e){const i=Util.applyTransform(t,e),s=Util.applyTransform(t.slice(2,4),e),r=Util.applyTransform([t[0],t[3]],e),a=Util.applyTransform([t[2],t[1]],e);return[Math.min(i[0],s[0],r[0],a[0]),Math.min(i[1],s[1],r[1],a[1]),Math.max(i[0],s[0],r[0],a[0]),Math.max(i[1],s[1],r[1],a[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],i=t[0]*e[0]+t[1]*e[2],s=t[0]*e[1]+t[1]*e[3],r=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],n=(i+a)/2,o=Math.sqrt((i+a)**2-4*(i*a-r*s))/2,l=n+o||1,c=n-o||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(t){const e=t.slice(0);if(t[0]>t[2]){e[0]=t[2];e[2]=t[0]}if(t[1]>t[3]){e[1]=t[3];e[3]=t[1]}return e}static intersect(t,e){const i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),s=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>s)return null;const r=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return r>a?null:[i,r,s,a]}static bezierBoundingBox(t,e,i,s,r,a,n,o){const l=[],c=[[],[]];let d,h,u,p,f,g,m,v;for(let c=0;c<2;++c){if(0===c){h=6*t-12*i+6*r;d=-3*t+9*i-9*r+3*n;u=3*i-3*t}else{h=6*e-12*s+6*a;d=-3*e+9*s-9*a+3*o;u=3*s-3*e}if(Math.abs(d)<1e-12){if(Math.abs(h)<1e-12)continue;p=-u/h;0<p&&p<1&&l.push(p)}else{m=h*h-4*u*d;v=Math.sqrt(m);if(!(m<0)){f=(-h+v)/(2*d);0<f&&f<1&&l.push(f);g=(-h-v)/(2*d);0<g&&g<1&&l.push(g)}}}let _,b=l.length;const y=b;for(;b--;){p=l[b];_=1-p;c[0][b]=_*_*_*t+3*_*_*p*i+3*_*p*p*r+p*p*p*n;c[1][b]=_*_*_*e+3*_*_*p*s+3*_*p*p*a+p*p*p*o}c[0][y]=t;c[1][y]=e;c[0][y+1]=n;c[1][y+1]=o;c[0].length=c[1].length=y+2;return[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}e.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(t){return decodeURIComponent(escape(t))}},(t,e,i)=>{"use strict";var s=i(3);!function checkNodeBtoa(){!globalThis.btoa&&s.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&s.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&s.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix)}();!function checkReadableStream(){!globalThis.ReadableStream&&s.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkArrayAt(){Array.prototype.at||i(4)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||i(78)}();!function checkStructuredClone(){globalThis.structuredClone||i(88)}()},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.isNodeJS=void 0;const i=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);e.isNodeJS=i},(t,e,i)=>{i(5);var s=i(77);t.exports=s("Array","at")},(t,e,i)=>{"use strict";var s=i(6),r=i(43),a=i(67),n=i(65),o=i(72);s({target:"Array",proto:!0},{at:function at(t){var e=r(this),i=a(e),s=n(t),o=s>=0?s:i+s;return o<0||o>=i?void 0:e[o]}});o("at")},(t,e,i)=>{var s=i(7),r=i(8).f,a=i(47),n=i(51),o=i(41),l=i(59),c=i(71);t.exports=function(t,e){var i,d,h,u,p,f=t.target,g=t.global,m=t.stat;if(i=g?s:m?s[f]||o(f,{}):(s[f]||{}).prototype)for(d in e){u=e[d];h=t.dontCallGetSet?(p=r(i,d))&&p.value:i[d];if(!c(g?d:f+(m?".":"#")+d,t.forced)&&void 0!==h){if(typeof u==typeof h)continue;l(u,h)}(t.sham||h&&h.sham)&&a(u,"sham",!0);n(i,d,u,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.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")()},(t,e,i)=>{var s=i(9),r=i(11),a=i(13),n=i(14),o=i(15),l=i(21),c=i(42),d=i(45),h=Object.getOwnPropertyDescriptor;e.f=s?h:function getOwnPropertyDescriptor(t,e){t=o(t);e=l(e);if(d)try{return h(t,e)}catch(t){}if(c(t,e))return n(!r(a.f,t,e),t[e])}},(t,e,i)=>{var s=i(10);t.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,e,i)=>{var s=i(12),r=Function.prototype.call;t.exports=s?r.bind(r):function(){return r.apply(r,arguments)}},(t,e,i)=>{var s=i(10);t.exports=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,e)=>{"use strict";var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,r=s&&!i.call({1:2},1);e.f=r?function propertyIsEnumerable(t){var e=s(this,t);return!!e&&e.enumerable}:i},t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},(t,e,i)=>{var s=i(16),r=i(19);t.exports=function(t){return s(r(t))}},(t,e,i)=>{var s=i(17),r=i(10),a=i(18),n=Object,o=s("".split);t.exports=r((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?o(t,""):n(t)}:n},(t,e,i)=>{var s=i(12),r=Function.prototype,a=r.call,n=s&&r.bind.bind(a,a);t.exports=s?n:function(t){return function(){return a.apply(t,arguments)}}},(t,e,i)=>{var s=i(17),r=s({}.toString),a=s("".slice);t.exports=function(t){return a(r(t),8,-1)}},(t,e,i)=>{var s=i(20),r=TypeError;t.exports=function(t){if(s(t))throw r("Can't call method on "+t);return t}},t=>{t.exports=function(t){return null==t}},(t,e,i)=>{var s=i(22),r=i(26);t.exports=function(t){var e=s(t,"string");return r(e)?e:e+""}},(t,e,i)=>{var s=i(11),r=i(23),a=i(26),n=i(33),o=i(36),l=i(37),c=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!r(t)||a(t))return t;var i,l=n(t,d);if(l){void 0===e&&(e="default");i=s(l,t,e);if(!r(i)||a(i))return i;throw c("Can't convert object to primitive value")}void 0===e&&(e="number");return o(t,e)}},(t,e,i)=>{var s=i(24),r=i(25),a=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:s(t)||t===a}:function(t){return"object"==typeof t?null!==t:s(t)}},(t,e,i)=>{var s=i(25),r=s.all;t.exports=s.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},t=>{var e="object"==typeof document&&document.all,i=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},(t,e,i)=>{var s=i(27),r=i(24),a=i(28),n=i(29),o=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return r(e)&&a(e.prototype,o(t))}},(t,e,i)=>{var s=i(7),r=i(24),aFunction=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?aFunction(s[t]):s[t]&&s[t][e]}},(t,e,i)=>{var s=i(17);t.exports=s({}.isPrototypeOf)},(t,e,i)=>{var s=i(30);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,e,i)=>{var s=i(31),r=i(10);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},(t,e,i)=>{var s,r,a=i(7),n=i(32),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,d=c&&c.v8;d&&(r=(s=d.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1]));!r&&n&&(!(s=n.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/))&&(r=+s[1]);t.exports=r},(t,e,i)=>{var s=i(27);t.exports=s("navigator","userAgent")||""},(t,e,i)=>{var s=i(34),r=i(20);t.exports=function(t,e){var i=t[e];return r(i)?void 0:s(i)}},(t,e,i)=>{var s=i(24),r=i(35),a=TypeError;t.exports=function(t){if(s(t))return t;throw a(r(t)+" is not a function")}},t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},(t,e,i)=>{var s=i(11),r=i(24),a=i(23),n=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&r(i=t.toString)&&!a(o=s(i,t)))return o;if(r(i=t.valueOf)&&!a(o=s(i,t)))return o;if("string"!==e&&r(i=t.toString)&&!a(o=s(i,t)))return o;throw n("Can't convert object to primitive value")}},(t,e,i)=>{var s=i(7),r=i(38),a=i(42),n=i(44),o=i(30),l=i(29),c=r("wks"),d=s.Symbol,h=d&&d.for,u=l?d:d&&d.withoutSetter||n;t.exports=function(t){if(!a(c,t)||!o&&"string"!=typeof c[t]){var e="Symbol."+t;o&&a(d,t)?c[t]=d[t]:c[t]=l&&h?h(e):u(e)}return c[t]}},(t,e,i)=>{var s=i(39),r=i(40);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:s?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,e,i)=>{var s=i(7),r=i(41),a="__core-js_shared__",n=s[a]||r(a,{});t.exports=n},(t,e,i)=>{var s=i(7),r=Object.defineProperty;t.exports=function(t,e){try{r(s,t,{value:e,configurable:!0,writable:!0})}catch(i){s[t]=e}return e}},(t,e,i)=>{var s=i(17),r=i(43),a=s({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return a(r(t),e)}},(t,e,i)=>{var s=i(19),r=Object;t.exports=function(t){return r(s(t))}},(t,e,i)=>{var s=i(17),r=0,a=Math.random(),n=s(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+a,36)}},(t,e,i)=>{var s=i(9),r=i(10),a=i(46);t.exports=!s&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},(t,e,i)=>{var s=i(7),r=i(23),a=s.document,n=r(a)&&r(a.createElement);t.exports=function(t){return n?a.createElement(t):{}}},(t,e,i)=>{var s=i(9),r=i(48),a=i(14);t.exports=s?function(t,e,i){return r.f(t,e,a(1,i))}:function(t,e,i){t[e]=i;return t}},(t,e,i)=>{var s=i(9),r=i(45),a=i(49),n=i(50),o=i(21),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",u="configurable",p="writable";e.f=s?a?function defineProperty(t,e,i){n(t);e=o(e);n(i);if("function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i.writable){var s=d(t,e);if(s&&s.writable){t[e]=i.value;i={configurable:u in i?i.configurable:s.configurable,enumerable:h in i?i.enumerable:s.enumerable,writable:!1}}}return c(t,e,i)}:c:function defineProperty(t,e,i){n(t);e=o(e);n(i);if(r)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");"value"in i&&(t[e]=i.value);return t}},(t,e,i)=>{var s=i(9),r=i(10);t.exports=s&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,e,i)=>{var s=i(23),r=String,a=TypeError;t.exports=function(t){if(s(t))return t;throw a(r(t)+" is not an object")}},(t,e,i)=>{var s=i(24),r=i(48),a=i(52),n=i(41);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;s(i)&&a(i,c,o);if(o.global)l?t[e]=i:n(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},(t,e,i)=>{var s=i(10),r=i(24),a=i(42),n=i(9),o=i(53).CONFIGURABLE,l=i(54),c=i(55),d=c.enforce,h=c.get,u=Object.defineProperty,p=n&&!s((function(){return 8!==u((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=t.exports=function(t,e,i){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");i&&i.getter&&(e="get "+e);i&&i.setter&&(e="set "+e);(!a(t,"name")||o&&t.name!==e)&&(n?u(t,"name",{value:e,configurable:!0}):t.name=e);p&&i&&a(i,"arity")&&t.length!==i.arity&&u(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?n&&u(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=d(t);a(s,"source")||(s.source=f.join("string"==typeof e?e:""));return t};Function.prototype.toString=g((function toString(){return r(this)&&h(this).source||l(this)}),"toString")},(t,e,i)=>{var s=i(9),r=i(42),a=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,o=r(a,"name"),l=o&&"something"===function something(){}.name,c=o&&(!s||s&&n(a,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},(t,e,i)=>{var s=i(17),r=i(24),a=i(40),n=s(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return n(t)});t.exports=a.inspectSource},(t,e,i)=>{var s,r,a,n=i(56),o=i(7),l=i(23),c=i(47),d=i(42),h=i(40),u=i(57),p=i(58),f="Object already initialized",g=o.TypeError,m=o.WeakMap;if(n||h.state){var v=h.state||(h.state=new m);v.get=v.get;v.has=v.has;v.set=v.set;s=function(t,e){if(v.has(t))throw g(f);e.facade=t;v.set(t,e);return e};r=function(t){return v.get(t)||{}};a=function(t){return v.has(t)}}else{var _=u("state");p[_]=!0;s=function(t,e){if(d(t,_))throw g(f);e.facade=t;c(t,_,e);return e};r=function(t){return d(t,_)?t[_]:{}};a=function(t){return d(t,_)}}t.exports={set:s,get:r,has:a,enforce:function(t){return a(t)?r(t):s(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return i}}}},(t,e,i)=>{var s=i(7),r=i(24),a=s.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},(t,e,i)=>{var s=i(38),r=i(44),a=s("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},t=>{t.exports={}},(t,e,i)=>{var s=i(42),r=i(60),a=i(8),n=i(48);t.exports=function(t,e,i){for(var o=r(e),l=n.f,c=a.f,d=0;d<o.length;d++){var h=o[d];s(t,h)||i&&s(i,h)||l(t,h,c(e,h))}}},(t,e,i)=>{var s=i(27),r=i(17),a=i(61),n=i(70),o=i(50),l=r([].concat);t.exports=s("Reflect","ownKeys")||function ownKeys(t){var e=a.f(o(t)),i=n.f;return i?l(e,i(t)):e}},(t,e,i)=>{var s=i(62),r=i(69).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return s(t,r)}},(t,e,i)=>{var s=i(17),r=i(42),a=i(15),n=i(63).indexOf,o=i(58),l=s([].push);t.exports=function(t,e){var i,s=a(t),c=0,d=[];for(i in s)!r(o,i)&&r(s,i)&&l(d,i);for(;e.length>c;)r(s,i=e[c++])&&(~n(d,i)||l(d,i));return d}},(t,e,i)=>{var s=i(15),r=i(64),a=i(67),createMethod=function(t){return function(e,i,n){var o,l=s(e),c=a(l),d=r(n,c);if(t&&i!=i){for(;c>d;)if((o=l[d++])!=o)return!0}else for(;c>d;d++)if((t||d in l)&&l[d]===i)return t||d||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,e,i)=>{var s=i(65),r=Math.max,a=Math.min;t.exports=function(t,e){var i=s(t);return i<0?r(i+e,0):a(i,e)}},(t,e,i)=>{var s=i(66);t.exports=function(t){var e=+t;return e!=e||0===e?0:s(e)}},t=>{var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function trunc(t){var s=+t;return(s>0?i:e)(s)}},(t,e,i)=>{var s=i(68);t.exports=function(t){return s(t.length)}},(t,e,i)=>{var s=i(65),r=Math.min;t.exports=function(t){return t>0?r(s(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,e)=>{e.f=Object.getOwnPropertySymbols},(t,e,i)=>{var s=i(10),r=i(24),a=/#|\.prototype\./,isForced=function(t,e){var i=o[n(t)];return i==c||i!=l&&(r(e)?s(e):!!e)},n=isForced.normalize=function(t){return String(t).replace(a,".").toLowerCase()},o=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";t.exports=isForced},(t,e,i)=>{var s=i(37),r=i(73),a=i(48).f,n=s("unscopables"),o=Array.prototype;null==o[n]&&a(o,n,{configurable:!0,value:r(null)});t.exports=function(t){o[n][t]=!0}},(t,e,i)=>{var s,r=i(50),a=i(74),n=i(69),o=i(58),l=i(76),c=i(46),d=i(57),h=d("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var e=t.parentWindow.Object;t=null;return e},NullProtoObject=function(){try{s=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&s?NullProtoObjectViaActiveX(s):function(){var t,e=c("iframe");e.style.display="none";l.appendChild(e);e.src=String("javascript:");(t=e.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(s);for(var t=n.length;t--;)delete NullProtoObject.prototype[n[t]];return NullProtoObject()};o[h]=!0;t.exports=Object.create||function create(t,e){var i;if(null!==t){EmptyConstructor.prototype=r(t);i=new EmptyConstructor;EmptyConstructor.prototype=null;i[h]=t}else i=NullProtoObject();return void 0===e?i:a.f(i,e)}},(t,e,i)=>{var s=i(9),r=i(49),a=i(48),n=i(50),o=i(15),l=i(75);e.f=s&&!r?Object.defineProperties:function defineProperties(t,e){n(t);for(var i,s=o(e),r=l(e),c=r.length,d=0;c>d;)a.f(t,i=r[d++],s[i]);return t}},(t,e,i)=>{var s=i(62),r=i(69);t.exports=Object.keys||function keys(t){return s(t,r)}},(t,e,i)=>{var s=i(27);t.exports=s("document","documentElement")},(t,e,i)=>{var s=i(7),r=i(17);t.exports=function(t,e){return r(s[t].prototype[e])}},(t,e,i)=>{i(79)},(t,e,i)=>{"use strict";var s=i(80),r=i(67),a=i(65),n=s.aTypedArray;(0,s.exportTypedArrayMethod)("at",(function at(t){var e=n(this),i=r(e),s=a(t),o=s>=0?s:i+s;return o<0||o>=i?void 0:e[o]}))},(t,e,i)=>{"use strict";var s,r,a,n=i(81),o=i(9),l=i(7),c=i(24),d=i(23),h=i(42),u=i(82),p=i(35),f=i(47),g=i(51),m=i(48).f,v=i(28),_=i(84),b=i(86),y=i(37),A=i(44),P=i(55),S=P.enforce,x=P.get,w=l.Int8Array,E=w&&w.prototype,C=l.Uint8ClampedArray,k=C&&C.prototype,T=w&&_(w),M=E&&_(E),R=Object.prototype,I=l.TypeError,D=y("toStringTag"),O=A("TYPED_ARRAY_TAG"),G="TypedArrayConstructor",L=n&&!!b&&"Opera"!==u(l.opera),N=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(t){var e=_(t);if(d(e)){var i=x(e);return i&&h(i,G)?i.TypedArrayConstructor:getTypedArrayConstructor(e)}},isTypedArray=function(t){if(!d(t))return!1;var e=u(t);return h(j,e)||h(U,e)};for(s in j)(a=(r=l[s])&&r.prototype)?S(a).TypedArrayConstructor=r:L=!1;for(s in U)(a=(r=l[s])&&r.prototype)&&(S(a).TypedArrayConstructor=r);if(!L||!c(T)||T===Function.prototype){T=function TypedArray(){throw I("Incorrect invocation")};if(L)for(s in j)l[s]&&b(l[s],T)}if(!L||!M||M===R){M=T.prototype;if(L)for(s in j)l[s]&&b(l[s].prototype,M)}L&&_(k)!==M&&b(k,M);if(o&&!h(M,D)){N=!0;m(M,D,{get:function(){return d(this)?this[O]:void 0}});for(s in j)l[s]&&f(l[s],O,s)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:N&&O,aTypedArray:function(t){if(isTypedArray(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||v(T,t)))return t;throw I(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,i,s){if(o){if(i)for(var r in j){var a=l[r];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(i){try{a.prototype[t]=e}catch(t){}}}M[t]&&!i||g(M,t,i?e:L&&E[t]||e,s)}},exportTypedArrayStaticMethod:function(t,e,i){var s,r;if(o){if(b){if(i)for(s in j)if((r=l[s])&&h(r,t))try{delete r[t]}catch(t){}if(T[t]&&!i)return;try{return g(T,t,i?e:L&&T[t]||e)}catch(t){}}for(s in j)!(r=l[s])||r[t]&&!i||g(r,t,e)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(t){if(!d(t))return!1;var e=u(t);return"DataView"===e||h(j,e)||h(U,e)},isTypedArray:isTypedArray,TypedArray:T,TypedArrayPrototype:M}},t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(t,e,i)=>{var s=i(83),r=i(24),a=i(18),n=i(37)("toStringTag"),o=Object,l="Arguments"==a(function(){return arguments}());t.exports=s?a:function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=o(t),n))?i:l?a(e):"Object"==(s=a(e))&&r(e.callee)?"Arguments":s}},(t,e,i)=>{var s={};s[i(37)("toStringTag")]="z";t.exports="[object z]"===String(s)},(t,e,i)=>{var s=i(42),r=i(24),a=i(43),n=i(57),o=i(85),l=n("IE_PROTO"),c=Object,d=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=a(t);if(s(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof c?d:null}},(t,e,i)=>{var s=i(10);t.exports=!s((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,e,i)=>{var s=i(17),r=i(50),a=i(87);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=s(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]);e=i instanceof Array}catch(t){}return function setPrototypeOf(i,s){r(i);a(s);e?t(i,s):i.__proto__=s;return i}}():void 0)},(t,e,i)=>{var s=i(24),r=String,a=TypeError;t.exports=function(t){if("object"==typeof t||s(t))return t;throw a("Can't set "+r(t)+" as a prototype")}},(t,e,i)=>{i(89);i(96);i(98);i(121);i(123);var s=i(132);t.exports=s.structuredClone},(t,e,i)=>{"use strict";var s=i(15),r=i(72),a=i(90),n=i(55),o=i(48).f,l=i(91),c=i(95),d=i(39),h=i(9),u="Array Iterator",p=n.set,f=n.getterFor(u);t.exports=l(Array,"Array",(function(t,e){p(this,{type:u,target:s(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,i=t.kind,s=t.index++;if(!e||s>=e.length){t.target=void 0;return c(void 0,!0)}return c("keys"==i?s:"values"==i?e[s]:[s,e[s]],!1)}),"values");var g=a.Arguments=a.Array;r("keys");r("values");r("entries");if(!d&&h&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(t){}},t=>{t.exports={}},(t,e,i)=>{"use strict";var s=i(6),r=i(11),a=i(39),n=i(53),o=i(24),l=i(92),c=i(84),d=i(86),h=i(94),u=i(47),p=i(51),f=i(37),g=i(90),m=i(93),v=n.PROPER,_=n.CONFIGURABLE,b=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,A=f("iterator"),P="keys",S="values",x="entries",returnThis=function(){return this};t.exports=function(t,e,i,n,f,m,w){l(i,e,n);var E,C,k,getIterationMethod=function(t){if(t===f&&D)return D;if(!y&&t in R)return R[t];switch(t){case P:return function keys(){return new i(this,t)};case S:return function values(){return new i(this,t)};case x:return function entries(){return new i(this,t)}}return function(){return new i(this)}},T=e+" Iterator",M=!1,R=t.prototype,I=R[A]||R["@@iterator"]||f&&R[f],D=!y&&I||getIterationMethod(f),O="Array"==e&&R.entries||I;if(O&&(E=c(O.call(new t)))!==Object.prototype&&E.next){a||c(E)===b||(d?d(E,b):o(E[A])||p(E,A,returnThis));h(E,T,!0,!0);a&&(g[T]=returnThis)}if(v&&f==S&&I&&I.name!==S)if(!a&&_)u(R,"name",S);else{M=!0;D=function values(){return r(I,this)}}if(f){C={values:getIterationMethod(S),keys:m?D:getIterationMethod(P),entries:getIterationMethod(x)};if(w)for(k in C)(y||M||!(k in R))&&p(R,k,C[k]);else s({target:e,proto:!0,forced:y||M},C)}a&&!w||R[A]===D||p(R,A,D,{name:f});g[e]=D;return C}},(t,e,i)=>{"use strict";var s=i(93).IteratorPrototype,r=i(73),a=i(14),n=i(94),o=i(90),returnThis=function(){return this};t.exports=function(t,e,i,l){var c=e+" Iterator";t.prototype=r(s,{next:a(+!l,i)});n(t,c,!1,!0);o[c]=returnThis;return t}},(t,e,i)=>{"use strict";var s,r,a,n=i(10),o=i(24),l=i(23),c=i(73),d=i(84),h=i(51),u=i(37),p=i(39),f=u("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(r=d(d(a)))!==Object.prototype&&(s=r):g=!0);!l(s)||n((function(){var t={};return s[f].call(t)!==t}))?s={}:p&&(s=c(s));o(s[f])||h(s,f,(function(){return this}));t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:g}},(t,e,i)=>{var s=i(48).f,r=i(42),a=i(37)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype);t&&!r(t,a)&&s(t,a,{configurable:!0,value:e})}},t=>{t.exports=function(t,e){return{value:t,done:e}}},(t,e,i)=>{var s=i(83),r=i(51),a=i(97);s||r(Object.prototype,"toString",a,{unsafe:!0})},(t,e,i)=>{"use strict";var s=i(83),r=i(82);t.exports=s?{}.toString:function toString(){return"[object "+r(this)+"]"}},(t,e,i)=>{i(99)},(t,e,i)=>{"use strict";i(100)("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),i(118))},(t,e,i)=>{"use strict";var s=i(6),r=i(7),a=i(17),n=i(71),o=i(51),l=i(101),c=i(108),d=i(115),h=i(24),u=i(20),p=i(23),f=i(10),g=i(116),m=i(94),v=i(117);t.exports=function(t,e,i){var _=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=_?"set":"add",A=r[t],P=A&&A.prototype,S=A,x={},fixMethod=function(t){var e=a(P[t]);o(P,t,"add"==t?function add(t){e(this,0===t?0:t);return this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function get(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function has(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function set(t,i){e(this,0===t?0:t,i);return this})};if(n(t,!h(A)||!(b||P.forEach&&!f((function(){(new A).entries().next()}))))){S=i.getConstructor(e,t,_,y);l.enable()}else if(n(t,!0)){var w=new S,E=w[y](b?{}:-0,1)!=w,C=f((function(){w.has(1)})),k=g((function(t){new A(t)})),T=!b&&f((function(){for(var t=new A,e=5;e--;)t[y](e,e);return!t.has(-0)}));if(!k){(S=e((function(t,e){d(t,P);var i=v(new A,t,S);u(e)||c(e,i[y],{that:i,AS_ENTRIES:_});return i}))).prototype=P;P.constructor=S}if(C||T){fixMethod("delete");fixMethod("has");_&&fixMethod("get")}(T||E)&&fixMethod(y);b&&P.clear&&delete P.clear}x[t]=S;s({global:!0,constructor:!0,forced:S!=A},x);m(S,t);b||i.setStrong(S,t,_);return S}},(t,e,i)=>{var s=i(6),r=i(17),a=i(58),n=i(23),o=i(42),l=i(48).f,c=i(61),d=i(102),h=i(105),u=i(44),p=i(107),f=!1,g=u("meta"),m=0,setMetadata=function(t){l(t,g,{value:{objectID:"O"+m++,weakData:{}}})},v=t.exports={enable:function(){v.enable=function(){};f=!0;var t=c.f,e=r([].splice),i={};i[g]=1;if(t(i).length){c.f=function(i){for(var s=t(i),r=0,a=s.length;r<a;r++)if(s[r]===g){e(s,r,1);break}return s};s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f})}},fastKey:function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,g)){if(!h(t))return"F";if(!e)return"E";setMetadata(t)}return t[g].objectID},getWeakData:function(t,e){if(!o(t,g)){if(!h(t))return!0;if(!e)return!1;setMetadata(t)}return t[g].weakData},onFreeze:function(t){p&&f&&h(t)&&!o(t,g)&&setMetadata(t);return t}};a[g]=!0},(t,e,i)=>{var s=i(18),r=i(15),a=i(61).f,n=i(103),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return o&&"Window"==s(t)?function(t){try{return a(t)}catch(t){return n(o)}}(t):a(r(t))}},(t,e,i)=>{var s=i(64),r=i(67),a=i(104),n=Array,o=Math.max;t.exports=function(t,e,i){for(var l=r(t),c=s(e,l),d=s(void 0===i?l:i,l),h=n(o(d-c,0)),u=0;c<d;c++,u++)a(h,u,t[c]);h.length=u;return h}},(t,e,i)=>{"use strict";var s=i(21),r=i(48),a=i(14);t.exports=function(t,e,i){var n=s(e);n in t?r.f(t,n,a(0,i)):t[n]=i}},(t,e,i)=>{var s=i(10),r=i(23),a=i(18),n=i(106),o=Object.isExtensible,l=s((function(){o(1)}));t.exports=l||n?function isExtensible(t){return!!r(t)&&((!n||"ArrayBuffer"!=a(t))&&(!o||o(t)))}:o},(t,e,i)=>{var s=i(10);t.exports=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},(t,e,i)=>{var s=i(10);t.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(t,e,i)=>{var s=i(109),r=i(11),a=i(50),n=i(35),o=i(111),l=i(67),c=i(28),d=i(112),h=i(113),u=i(114),p=TypeError,Result=function(t,e){this.stopped=t;this.result=e},f=Result.prototype;t.exports=function(t,e,i){var g,m,v,_,b,y,A,P=i&&i.that,S=!(!i||!i.AS_ENTRIES),x=!(!i||!i.IS_RECORD),w=!(!i||!i.IS_ITERATOR),E=!(!i||!i.INTERRUPTED),C=s(e,P),stop=function(t){g&&u(g,"normal",t);return new Result(!0,t)},callFn=function(t){if(S){a(t);return E?C(t[0],t[1],stop):C(t[0],t[1])}return E?C(t,stop):C(t)};if(x)g=t.iterator;else if(w)g=t;else{if(!(m=h(t)))throw p(n(t)+" is not iterable");if(o(m)){for(v=0,_=l(t);_>v;v++)if((b=callFn(t[v]))&&c(f,b))return b;return new Result(!1)}g=d(t,m)}y=x?t.next:g.next;for(;!(A=r(y,g)).done;){try{b=callFn(A.value)}catch(t){u(g,"throw",t)}if("object"==typeof b&&b&&c(f,b))return b}return new Result(!1)}},(t,e,i)=>{var s=i(110),r=i(34),a=i(12),n=s(s.bind);t.exports=function(t,e){r(t);return void 0===e?t:a?n(t,e):function(){return t.apply(e,arguments)}}},(t,e,i)=>{var s=i(18),r=i(17);t.exports=function(t){if("Function"===s(t))return r(t)}},(t,e,i)=>{var s=i(37),r=i(90),a=s("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||n[a]===t)}},(t,e,i)=>{var s=i(11),r=i(34),a=i(50),n=i(35),o=i(113),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(r(i))return a(s(i,t));throw l(n(t)+" is not iterable")}},(t,e,i)=>{var s=i(82),r=i(33),a=i(20),n=i(90),o=i(37)("iterator");t.exports=function(t){if(!a(t))return r(t,o)||r(t,"@@iterator")||n[s(t)]}},(t,e,i)=>{var s=i(11),r=i(50),a=i(33);t.exports=function(t,e,i){var n,o;r(t);try{if(!(n=a(t,"return"))){if("throw"===e)throw i;return i}n=s(n,t)}catch(t){o=!0;n=t}if("throw"===e)throw i;if(o)throw n;r(n);return i}},(t,e,i)=>{var s=i(28),r=TypeError;t.exports=function(t,e){if(s(e,t))return t;throw r("Incorrect invocation")}},(t,e,i)=>{var s=i(37)("iterator"),r=!1;try{var a=0,n={next:function(){return{done:!!a++}},return:function(){r=!0}};n[s]=function(){return this};Array.from(n,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var a={};a[s]=function(){return{next:function(){return{done:i=!0}}}};t(a)}catch(t){}return i}},(t,e,i)=>{var s=i(24),r=i(23),a=i(86);t.exports=function(t,e,i){var n,o;a&&s(n=e.constructor)&&n!==i&&r(o=n.prototype)&&o!==i.prototype&&a(t,o);return t}},(t,e,i)=>{"use strict";var s=i(48).f,r=i(73),a=i(119),n=i(109),o=i(115),l=i(20),c=i(108),d=i(91),h=i(95),u=i(120),p=i(9),f=i(101).fastKey,g=i(55),m=g.set,v=g.getterFor;t.exports={getConstructor:function(t,e,i,d){var h=t((function(t,s){o(t,u);m(t,{type:e,index:r(null),first:void 0,last:void 0,size:0});p||(t.size=0);l(s)||c(s,t[d],{that:t,AS_ENTRIES:i})})),u=h.prototype,g=v(e),define=function(t,e,i){var s,r,a=g(t),n=getEntry(t,e);if(n)n.value=i;else{a.last=n={index:r=f(e,!0),key:e,value:i,previous:s=a.last,next:void 0,removed:!1};a.first||(a.first=n);s&&(s.next=n);p?a.size++:t.size++;"F"!==r&&(a.index[r]=n)}return t},getEntry=function(t,e){var i,s=g(t),r=f(e);if("F"!==r)return s.index[r];for(i=s.first;i;i=i.next)if(i.key==e)return i};a(u,{clear:function clear(){for(var t=g(this),e=t.index,i=t.first;i;){i.removed=!0;i.previous&&(i.previous=i.previous.next=void 0);delete e[i.index];i=i.next}t.first=t.last=void 0;p?t.size=0:this.size=0},delete:function(t){var e=this,i=g(e),s=getEntry(e,t);if(s){var r=s.next,a=s.previous;delete i.index[s.index];s.removed=!0;a&&(a.next=r);r&&(r.previous=a);i.first==s&&(i.first=r);i.last==s&&(i.last=a);p?i.size--:e.size--}return!!s},forEach:function forEach(t){for(var e,i=g(this),s=n(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;){s(e.value,e.key,this);for(;e&&e.removed;)e=e.previous}},has:function has(t){return!!getEntry(this,t)}});a(u,i?{get:function get(t){var e=getEntry(this,t);return e&&e.value},set:function set(t,e){return define(this,0===t?0:t,e)}}:{add:function add(t){return define(this,t=0===t?0:t,t)}});p&&s(u,"size",{get:function(){return g(this).size}});return h},setStrong:function(t,e,i){var s=e+" Iterator",r=v(e),a=v(s);d(t,e,(function(t,e){m(this,{type:s,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;if(!t.target||!(t.last=i=i?i.next:t.state.first)){t.target=void 0;return h(void 0,!0)}return h("keys"==e?i.key:"values"==e?i.value:[i.key,i.value],!1)}),i?"entries":"values",!i,!0);u(e)}}},(t,e,i)=>{var s=i(51);t.exports=function(t,e,i){for(var r in e)s(t,r,e[r],i);return t}},(t,e,i)=>{"use strict";var s=i(27),r=i(48),a=i(37),n=i(9),o=a("species");t.exports=function(t){var e=s(t),i=r.f;n&&e&&!e[o]&&i(e,o,{configurable:!0,get:function(){return this}})}},(t,e,i)=>{i(122)},(t,e,i)=>{"use strict";i(100)("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),i(118))},(t,e,i)=>{var s,r=i(39),a=i(6),n=i(7),o=i(27),l=i(17),c=i(10),d=i(44),h=i(24),u=i(124),p=i(20),f=i(23),g=i(26),m=i(108),v=i(50),_=i(82),b=i(42),y=i(104),A=i(47),P=i(67),S=i(125),x=i(126),w=i(128),E=i(31),C=i(129),k=i(130),T=i(131),M=n.Object,R=n.Date,I=n.Error,D=n.EvalError,O=n.RangeError,G=n.ReferenceError,L=n.SyntaxError,N=n.TypeError,j=n.URIError,U=n.PerformanceMark,B=n.WebAssembly,W=B&&B.CompileError||I,q=B&&B.LinkError||I,z=B&&B.RuntimeError||I,H=o("DOMException"),V=o("Set"),X=o("Map"),$=X.prototype,Y=l($.has),K=l($.get),J=l($.set),Q=l(V.prototype.add),Z=o("Object","keys"),tt=l([].push),et=l((!0).valueOf),it=l(1..valueOf),st=l("".valueOf),rt=l(R.prototype.getTime),nt=d("structuredClone"),ot="DataCloneError",lt="Transferring",checkBasicSemantic=function(t){return!c((function(){var e=new n.Set([7]),i=t(e),s=t(M(7));return i==e||!i.has(7)||"object"!=typeof s||7!=s}))&&t},checkErrorsCloning=function(t,e){return!c((function(){var i=new e,s=t({a:i,b:i});return!(s&&s.a===s.b&&s.a instanceof e&&s.a.stack===i.stack)}))},ct=n.structuredClone,dt=r||!checkErrorsCloning(ct,I)||!checkErrorsCloning(ct,H)||!(s=ct,!c((function(){var t=s(new n.AggregateError([1],nt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=nt||3!=t.cause}))),ht=!ct&&checkBasicSemantic((function(t){return new U(nt,{detail:t}).detail})),ut=checkBasicSemantic(ct)||ht,throwUncloneable=function(t){throw new H("Uncloneable type: "+t,ot)},throwUnpolyfillable=function(t,e){throw new H((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",ot)},structuredCloneInternal=function(t,e){g(t)&&throwUncloneable("Symbol");if(!f(t))return t;if(e){if(Y(e,t))return K(e,t)}else e=new X;var i,s,r,a,l,c,d,u,p,m,v=_(t),S=!1;switch(v){case"Array":r=[];S=!0;break;case"Object":r={};S=!0;break;case"Map":r=new X;S=!0;break;case"Set":r=new V;S=!0;break;case"RegExp":r=new RegExp(t.source,x(t));break;case"Error":switch(s=t.name){case"AggregateError":r=o("AggregateError")([]);break;case"EvalError":r=D();break;case"RangeError":r=O();break;case"ReferenceError":r=G();break;case"SyntaxError":r=L();break;case"TypeError":r=N();break;case"URIError":r=j();break;case"CompileError":r=W();break;case"LinkError":r=q();break;case"RuntimeError":r=z();break;default:r=I()}S=!0;break;case"DOMException":r=new H(t.message,t.name);S=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":i=n[v];f(i)||throwUnpolyfillable(v);r=new i(structuredCloneInternal(t.buffer,e),t.byteOffset,"DataView"===v?t.byteLength:t.length);break;case"DOMQuad":try{r=new DOMQuad(structuredCloneInternal(t.p1,e),structuredCloneInternal(t.p2,e),structuredCloneInternal(t.p3,e),structuredCloneInternal(t.p4,e))}catch(e){ut?r=ut(t):throwUnpolyfillable(v)}break;case"FileList":if(a=function(){var t;try{t=new n.DataTransfer}catch(e){try{t=new n.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(l=0,c=P(t);l<c;l++)a.items.add(structuredCloneInternal(t[l],e));r=a.files}else ut?r=ut(t):throwUnpolyfillable(v);break;case"ImageData":try{r=new ImageData(structuredCloneInternal(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){ut?r=ut(t):throwUnpolyfillable(v)}break;default:if(ut)r=ut(t);else switch(v){case"BigInt":r=M(t.valueOf());break;case"Boolean":r=M(et(t));break;case"Number":r=M(it(t));break;case"String":r=M(st(t));break;case"Date":r=new R(rt(t));break;case"ArrayBuffer":(i=n.DataView)||"function"==typeof t.slice||throwUnpolyfillable(v);try{if("function"==typeof t.slice)r=t.slice(0);else{c=t.byteLength;r=new ArrayBuffer(c);p=new i(t);m=new i(r);for(l=0;l<c;l++)m.setUint8(l,p.getUint8(l))}}catch(t){throw new H("ArrayBuffer is detached",ot)}break;case"SharedArrayBuffer":r=t;break;case"Blob":try{r=t.slice(0,t.size,t.type)}catch(t){throwUnpolyfillable(v)}break;case"DOMPoint":case"DOMPointReadOnly":i=n[v];try{r=i.fromPoint?i.fromPoint(t):new i(t.x,t.y,t.z,t.w)}catch(t){throwUnpolyfillable(v)}break;case"DOMRect":case"DOMRectReadOnly":i=n[v];try{r=i.fromRect?i.fromRect(t):new i(t.x,t.y,t.width,t.height)}catch(t){throwUnpolyfillable(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=n[v];try{r=i.fromMatrix?i.fromMatrix(t):new i(t)}catch(t){throwUnpolyfillable(v)}break;case"AudioData":case"VideoFrame":h(t.clone)||throwUnpolyfillable(v);try{r=t.clone()}catch(t){throwUncloneable(v)}break;case"File":try{r=new File([t],t.name,t)}catch(t){throwUnpolyfillable(v)}break