UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

22 lines 1.23 MB
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2021 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()}(this,(function(){return(()=>{var e=[,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WorkerTask=t.WorkerMessageHandler=void 0;r(2);r(101);r(103);r(116);r(136);r(137);r(142);r(143);var a=r(146),n=r(189),i=r(191),s=r(264),o=r(294),c=r(295),l=r(194);Promise.allSettled||(Promise.allSettled=function(e){const t=e.filter((e=>!!e)).map((e=>e.then((e=>({status:"fulfilled",value:e}))).catch((e=>({status:"rejected",reason:e})))));return Promise.all(t)});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 wphSetupTest(t){if(!r){r=!0;e.send("test",t instanceof Uint8Array&&255===t[0])}}));e.on("configure",(function wphConfigure(e){(0,a.setVerbosityLevel)(e.verbosity)}));e.on("GetDocRequest",(function wphSetupDoc(e){return WorkerMessageHandler.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let r,u=!1,h=null;const d=[],f=(0,a.getVerbosityLevel)(),g=e.apiVersion,p="2.12.557";if(g!==p)throw new Error('The API version "'.concat(g,'" does not match ')+'the Worker version "'.concat(p,'".'));const m=[];for(const e in[])m.push(e);if(m.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+m.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const b=e.docId,y=e.docBaseUrl,S=e.docId+"_worker";let w=new o.MessageHandler(S,b,t);function ensureNotTerminated(){if(u)throw new Error("Worker was terminated")}function startWorkerTask(e){d.push(e)}function finishWorkerTask(e){e.finish();const t=d.indexOf(e);d.splice(t,1)}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(w,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,t,r){const n=(0,a.createPromiseCapability)();let s;const o=e.source;if(o.data){try{s=new i.LocalPdfManager(b,o.data,o.password,w,t,r,y);n.resolve(s)}catch(e){n.reject(e)}return n.promise}let l,u=[];try{l=new c.PDFWorkerStream(w)}catch(e){n.reject(e);return n.promise}const d=l.getFullReader();d.headersReady.then((function(){if(!d.isRangeSupported)return;const e=o.disableAutoFetch||d.isStreamingSupported;s=new i.NetworkPdfManager(b,l,{msgHandler:w,password:o.password,length:d.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,r,y);for(let e=0;e<u.length;e++)s.sendProgressiveData(u[e]);u=[];n.resolve(s);h=null})).catch((function(e){n.reject(e);h=null}));let f=0;new Promise((function(e,c){const readChunk=function(e){let{value:l,done:g}=e;try{ensureNotTerminated();if(g){s||function(){const e=(0,a.arraysToBytes)(u);o.length&&e.length!==o.length&&(0,a.warn)("reported HTTP length is different from actual");try{s=new i.LocalPdfManager(b,e,o.password,w,t,r,y);n.resolve(s)}catch(e){n.reject(e)}u=[]}();h=null;return}f+=(0,a.arrayByteLength)(l);d.isStreamingSupported||w.send("DocProgress",{loaded:f,total:Math.max(f,d.contentLength||0)});s?s.sendProgressiveData(l):u.push(l);d.read().then(readChunk,c)}catch(e){c(e)}};d.read().then(readChunk,c)})).catch((function(e){n.reject(e);h=null}));h=function(e){l.cancelAllRequests(e)};return n.promise}w.on("GetPage",(function wphSetupGetPage(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}}))}))}));w.on("GetPageIndex",(function wphSetupGetPageIndex(e){let{ref:t}=e;const a=n.Ref.get(t.num,t.gen);return r.ensureCatalog("getPageIndex",[a])}));w.on("GetDestinations",(function wphSetupGetDestinations(e){return r.ensureCatalog("destinations")}));w.on("GetDestination",(function wphSetupGetDestination(e){return r.ensureCatalog("getDestination",[e.id])}));w.on("GetPageLabels",(function wphSetupGetPageLabels(e){return r.ensureCatalog("pageLabels")}));w.on("GetPageLayout",(function wphSetupGetPageLayout(e){return r.ensureCatalog("pageLayout")}));w.on("GetPageMode",(function wphSetupGetPageMode(e){return r.ensureCatalog("pageMode")}));w.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")}));w.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")}));w.on("GetAttachments",(function wphSetupGetAttachments(e){return r.ensureCatalog("attachments")}));w.on("GetJavaScript",(function wphSetupGetJavaScript(e){return r.ensureCatalog("javaScript")}));w.on("GetDocJSActions",(function wphSetupGetDocJSActions(e){return r.ensureCatalog("jsActions")}));w.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))}));w.on("GetOutline",(function wphSetupGetOutline(e){return r.ensureCatalog("documentOutline")}));w.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")}));w.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")}));w.on("GetMetadata",(function wphSetupGetMetadata(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])}));w.on("GetMarkInfo",(function wphSetupGetMarkInfo(e){return r.ensureCatalog("markInfo")}));w.on("GetData",(function wphSetupGetData(e){r.requestLoadedStream();return r.onLoadedStream().then((function(e){return e.bytes}))}));w.on("GetAnnotations",(function(e){let{pageIndex:t,intent:a}=e;return r.getPage(t).then((function(e){return e.getAnnotationsData(a)}))}));w.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")}));w.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")}));w.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")}));w.on("SaveDocument",(function(e){let{isPureXfa:t,numPages:i,annotationStorage:o,filename:c}=e;r.requestLoadedStream();const l=[r.onLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("xref"),r.ensureDoc("startXRef")];if(t)l.push(r.serializeXfaData(o));else for(let e=0;e<i;e++)l.push(r.getPage(e).then((function(t){const r=new WorkerTask("Save: page ".concat(e));return t.save(w,r,o).finally((function(){finishWorkerTask(r)}))})));return Promise.all(l).then((function(e){let[r,i,o,l,u,...h]=e,d=[],f=null;if(t){f=h[0];if(!f)return r.bytes}else{for(const e of h)d=e.filter((e=>null!==e)).reduce(((e,t)=>e.concat(t)),d);if(0===d.length)return r.bytes}const g=i instanceof n.Dict&&i.get("XFA")||null;let p=null,m=!1;if(Array.isArray(g)){for(let e=0,t=g.length;e<t;e+=2)if("datasets"===g[e]){p=g[e+1];o=null;m=!0}null===p&&(p=l.getNewRef())}else if(g){o=null;(0,a.warn)("Unsupported XFA type.")}let b=Object.create(null);if(l.trailer){const e=Object.create(null),t=l.trailer.get("Info")||null;t instanceof n.Dict&&t.forEach(((t,r)=>{(0,a.isString)(t)&&(0,a.isString)(r)&&(e[t]=(0,a.stringToPDFString)(r))}));b={rootRef:l.trailer.getRaw("Root")||null,encryptRef:l.trailer.getRaw("Encrypt")||null,newRef:l.getNewRef(),infoRef:l.trailer.getRaw("Info")||null,info:e,fileIds:l.trailer.get("ID")||null,startXRef:u,filename:c}}l.resetNewRef();return(0,s.incrementalUpdate)({originalData:r.bytes,xrefInfo:b,newRefs:d,xref:l,hasXfa:!!g,xfaDatasetsRef:p,hasXfaDatasetsEntry:m,acroFormRef:o,acroForm:i,xfaData:f})}))}));w.on("GetOperatorList",(function wphSetupRenderPage(e,t){const n=e.pageIndex;r.getPage(n).then((function(r){const i=new WorkerTask("GetOperatorList: page ".concat(n));startWorkerTask(i);const s=f>=a.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:w,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){finishWorkerTask(i);s&&(0,a.info)("page=".concat(n+1," - getOperatorList: time=")+"".concat(Date.now()-s,"ms, len=").concat(e.length));t.close()}),(function(e){finishWorkerTask(i);if(!i.terminated){w.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList});t.error(e)}}))}))}));w.on("GetTextContent",(function wphExtractText(e,t){const n=e.pageIndex;r.getPage(n).then((function(r){const i=new WorkerTask("GetTextContent: page "+n);startWorkerTask(i);const s=f>=a.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:w,task:i,sink:t,normalizeWhitespace:e.normalizeWhitespace,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){finishWorkerTask(i);s&&(0,a.info)("page=".concat(n+1," - getTextContent: time=")+"".concat(Date.now()-s,"ms"));t.close()}),(function(e){finishWorkerTask(i);i.terminated||t.error(e)}))}))}));w.on("GetStructTree",(function wphGetStructTree(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))}));w.on("FontFallback",(function(e){return r.fontFallback(e.id,w)}));w.on("Cleanup",(function wphCleanup(e){return r.cleanup(!0)}));w.on("Terminate",(function wphTerminate(e){u=!0;const t=[];if(r){r.terminate(new a.AbortException("Worker was terminated."));const e=r.cleanup();t.push(e);r=null}else(0,n.clearPrimitiveCaches)();h&&h(new a.AbortException("Worker was terminated."));for(const e of d){t.push(e.finished);e.terminate()}return Promise.all(t).then((function(){w.destroy();w=null}))}));w.on("Ready",(function wphReady(t){!function setupDoc(e){function onSuccess(e){ensureNotTerminated();w.send("GetDoc",{pdfInfo:e})}function onFailure(e){ensureNotTerminated();if(e instanceof a.PasswordException){const t=new WorkerTask("PasswordException: response ".concat(e.code));startWorkerTask(t);w.sendWithPromise("PasswordRequest",e).then((function(e){let{password:a}=e;finishWorkerTask(t);r.updatePassword(a);pdfManagerReady()})).catch((function(){finishWorkerTask(t);w.send("DocException",e)}))}else e instanceof a.InvalidPDFException||e instanceof a.MissingPDFException||e instanceof a.UnexpectedResponseException||e instanceof a.UnknownErrorException?w.send("DocException",e):w.send("DocException",new a.UnknownErrorException(e.message,e.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(e){ensureNotTerminated();if(e instanceof l.XRefParseException){r.requestLoadedStream();r.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(e)}))}ensureNotTerminated();const t={maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl};let n=t.cMapUrl;"Function"===n.constructor.name&&(t.cMapUrl=n());getPdfManager(e,t,e.enableXfa).then((function(e){if(u){e.terminate(new a.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}r=e;r.onLoadedStream().then((function(e){w.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(e);e=null}));w.on("showUnverifiedSignatures",(function wphReady(e){e&&(0,a.info)("showUnverifiedSignatures="+e+". This is an incompletely implemented feature. Signatures cannot be validated, so use it at own risk.");self.showUnverifiedSignatures=e}));return S}static initializeFromPort(e){const t=new o.MessageHandler("worker","main",e);WorkerMessageHandler.setup(t,e);t.send("ready",null)}}t.WorkerMessageHandler=WorkerMessageHandler;"undefined"==typeof window&&"undefined"!=typeof self&&function isMessagePort(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&WorkerMessageHandler.initializeFromPort(self)},(e,t,r)=>{"use strict";var a,n,i,s,o=r(3),c=r(34),l=r(4),u=r(22),h=r(8),d=r(65),f=r(46),g=r(66),p=r(67),m=r(69),b=r(70),y=r(29),S=r(20),w=r(19),v=r(71),x=r(47),C=r(72),k=r(81),O=r(82),T=r(85).set,R=r(92),E=r(95),M=r(97),D=r(96),_=r(98),N=r(99),L=r(48),j=r(64),U=r(32),W=r(100),q=r(91),$=r(26),X=U("species"),H="Promise",z=L.getterFor(H),G=L.set,V=L.getterFor(H),Y=d&&d.prototype,K=d,J=Y,Q=l.TypeError,Z=l.document,ee=l.process,te=D.f,re=te,ae=!!(Z&&Z.createEvent&&l.dispatchEvent),ne=S(l.PromiseRejectionEvent),ie="unhandledrejection",se=!1,oe=j(H,(function(){var e=x(K),t=e!==String(K);if(!t&&66===$)return!0;if(c&&!J.finally)return!0;if($>=51&&/native code/.test(e))return!1;var r=new K((function(e){e(1)})),FakePromise=function(e){e((function(){}),(function(){}))};(r.constructor={})[X]=FakePromise;return!(se=r.then((function(){}))instanceof FakePromise)||!t&&W&&!ne})),ce=oe||!k((function(e){K.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!w(e)||!S(t=e.then))&&t},callReaction=function(e,t){var r,a,n,i=t.value,s=1==t.state,o=s?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{if(o){if(!s){2===t.rejection&&onHandleUnhandled(t);t.rejection=1}if(!0===o)r=i;else{u&&u.enter();r=o(i);if(u){u.exit();n=!0}}r===e.promise?l(Q("Promise-chain cycle")):(a=isThenable(r))?h(a,r,c,l):c(r)}else l(i)}catch(e){u&&!n&&u.exit();l(e)}},notify=function(e,t){if(!e.notified){e.notified=!0;R((function(){for(var r,a=e.reactions;r=a.get();)callReaction(r,e);e.notified=!1;t&&!e.rejection&&onUnhandled(e)}))}},dispatchEvent=function(e,t,r){var a,n;if(ae){(a=Z.createEvent("Event")).promise=t;a.reason=r;a.initEvent(e,!1,!0);l.dispatchEvent(a)}else a={promise:t,reason:r};!ne&&(n=l["on"+e])?n(a):e===ie&&M("Unhandled promise rejection",r)},onUnhandled=function(e){h(T,l,(function(){var t,r=e.facade,a=e.value;if(isUnhandled(e)){t=_((function(){q?ee.emit("unhandledRejection",a,r):dispatchEvent(ie,r,a)}));e.rejection=q||isUnhandled(e)?2:1;if(t.error)throw t.value}}))},isUnhandled=function(e){return 1!==e.rejection&&!e.parent},onHandleUnhandled=function(e){h(T,l,(function(){var t=e.facade;q?ee.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(e,t,r){return function(a){e(t,a,r)}},internalReject=function(e,t,r){if(!e.done){e.done=!0;r&&(e=r);e.value=t;e.state=2;notify(e,!0)}},internalResolve=function(e,t,r){if(!e.done){e.done=!0;r&&(e=r);try{if(e.facade===t)throw Q("Promise can't be resolved itself");var a=isThenable(t);if(a)R((function(){var r={done:!1};try{h(a,t,bind(internalResolve,r,e),bind(internalReject,r,e))}catch(t){internalReject(r,t,e)}}));else{e.value=t;e.state=1;notify(e,!1)}}catch(t){internalReject({done:!1},t,e)}}};if(oe){J=(K=function Promise(e){v(this,J);y(e);h(a,this);var t=z(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}}).prototype;(a=function Promise(e){G(this,{type:H,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:void 0})}).prototype=g(J,{then:function then(e,t){var r=V(this),a=te(O(this,K));r.parent=!0;a.ok=!S(e)||e;a.fail=S(t)&&t;a.domain=q?ee.domain:void 0;0==r.state?r.reactions.add(a):R((function(){callReaction(a,r)}));return a.promise},catch:function(e){return this.then(void 0,e)}});n=function(){var e=new a,t=z(e);this.promise=e;this.resolve=bind(internalResolve,t);this.reject=bind(internalReject,t)};D.f=te=function(e){return e===K||e===i?new n(e):re(e)};if(!c&&S(d)&&Y!==Object.prototype){s=Y.then;if(!se){f(Y,"then",(function then(e,t){var r=this;return new K((function(e,t){h(s,r,e,t)})).then(e,t)}),{unsafe:!0});f(Y,"catch",J.catch,{unsafe:!0})}try{delete Y.constructor}catch(e){}p&&p(Y,J)}}o({global:!0,wrap:!0,forced:oe},{Promise:K});m(K,H,!1,!0);b(H);i=u(H);o({target:H,stat:!0,forced:oe},{reject:function reject(e){var t=te(this);h(t.reject,void 0,e);return t.promise}});o({target:H,stat:!0,forced:c||oe},{resolve:function resolve(e){return E(c&&this===i?K:this,e)}});o({target:H,stat:!0,forced:ce},{all:function all(e){var t=this,r=te(t),a=r.resolve,n=r.reject,i=_((function(){var r=y(t.resolve),i=[],s=0,o=1;C(e,(function(e){var c=s++,l=!1;o++;h(r,t,e).then((function(e){if(!l){l=!0;i[c]=e;--o||a(i)}}),n)}));--o||a(i)}));i.error&&n(i.value);return r.promise},race:function race(e){var t=this,r=te(t),a=r.reject,n=_((function(){var n=y(t.resolve);C(e,(function(e){h(n,t,e).then(r.resolve,a)}))}));n.error&&a(n.value);return r.promise}})},(e,t,r)=>{var a=r(4),n=r(5).f,i=r(42),s=r(46),o=r(36),c=r(53),l=r(64);e.exports=function(e,t){var r,u,h,d,f,g=e.target,p=e.global,m=e.stat;if(r=p?a:m?a[g]||o(g,{}):(a[g]||{}).prototype)for(u in t){d=t[u];h=e.noTargetGet?(f=n(r,u))&&f.value:r[u];if(!l(p?u:g+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&i(d,"sham",!0);s(r,u,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(6),n=r(8),i=r(10),s=r(11),o=r(12),c=r(17),l=r(37),u=r(40),h=Object.getOwnPropertyDescriptor;t.f=a?h:function getOwnPropertyDescriptor(e,t){e=o(e);t=c(t);if(u)try{return h(e,t)}catch(e){}if(l(e,t))return s(!n(i.f,e,t),e[t])}},(e,t,r)=>{var a=r(7);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(9),n=Function.prototype.call;e.exports=a?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,r)=>{var a=r(7);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(13),n=r(16);e.exports=function(e){return a(n(e))}},(e,t,r)=>{var a=r(4),n=r(14),i=r(7),s=r(15),o=a.Object,c=n("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?c(e,""):o(e)}:o},(e,t,r)=>{var a=r(9),n=Function.prototype,i=n.bind,s=n.call,o=a&&i.bind(s,s);e.exports=a?function(e){return e&&o(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},(e,t,r)=>{var a=r(14),n=a({}.toString),i=a("".slice);e.exports=function(e){return i(n(e),8,-1)}},(e,t,r)=>{var a=r(4).TypeError;e.exports=function(e){if(null==e)throw a("Can't call method on "+e);return e}},(e,t,r)=>{var a=r(18),n=r(21);e.exports=function(e){var t=a(e,"string");return n(t)?t:t+""}},(e,t,r)=>{var a=r(4),n=r(8),i=r(19),s=r(21),o=r(28),c=r(31),l=r(32),u=a.TypeError,h=l("toPrimitive");e.exports=function(e,t){if(!i(e)||s(e))return e;var r,a=o(e,h);if(a){void 0===t&&(t="default");r=n(a,e,t);if(!i(r)||s(r))return r;throw u("Can't convert object to primitive value")}void 0===t&&(t="number");return c(e,t)}},(e,t,r)=>{var a=r(20);e.exports=function(e){return"object"==typeof e?null!==e:a(e)}},e=>{e.exports=function(e){return"function"==typeof e}},(e,t,r)=>{var a=r(4),n=r(22),i=r(20),s=r(23),o=r(24),c=a.Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,c(e))}},(e,t,r)=>{var a=r(4),n=r(20),aFunction=function(e){return n(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?aFunction(a[e]):a[e]&&a[e][t]}},(e,t,r)=>{var a=r(14);e.exports=a({}.isPrototypeOf)},(e,t,r)=>{var a=r(25);e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{var a=r(26),n=r(7);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(4),s=r(27),o=i.process,c=i.Deno,l=o&&o.versions||c&&c.version,u=l&&l.v8;u&&(n=(a=u.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,t,r)=>{var a=r(22);e.exports=a("navigator","userAgent")||""},(e,t,r)=>{var a=r(29);e.exports=function(e,t){var r=e[t];return null==r?void 0:a(r)}},(e,t,r)=>{var a=r(4),n=r(20),i=r(30),s=a.TypeError;e.exports=function(e){if(n(e))return e;throw s(i(e)+" is not a function")}},(e,t,r)=>{var a=r(4).String;e.exports=function(e){try{return a(e)}catch(e){return"Object"}}},(e,t,r)=>{var a=r(4),n=r(8),i=r(20),s=r(19),o=a.TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},(e,t,r)=>{var a=r(4),n=r(33),i=r(37),s=r(39),o=r(25),c=r(24),l=n("wks"),u=a.Symbol,h=u&&u.for,d=c?u:u&&u.withoutSetter||s;e.exports=function(e){if(!i(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&i(u,e)?l[e]=u[e]:l[e]=c&&h?h(t):d(t)}return l[e]}},(e,t,r)=>{var a=r(34),n=r(35);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.0",mode:a?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,r)=>{var a=r(4),n=r(36),i="__core-js_shared__",s=a[i]||n(i,{});e.exports=s},(e,t,r)=>{var a=r(4),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(14),n=r(38),i=a({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(n(e),t)}},(e,t,r)=>{var a=r(4),n=r(16),i=a.Object;e.exports=function(e){return i(n(e))}},(e,t,r)=>{var a=r(14),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(6),n=r(7),i=r(41);e.exports=!a&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{var a=r(4),n=r(19),i=a.document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},(e,t,r)=>{var a=r(6),n=r(43),i=r(11);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(4),n=r(6),i=r(40),s=r(44),o=r(45),c=r(17),l=a.TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",g="writable";t.f=n?s?function defineProperty(e,t,r){o(e);t=c(t);o(r);if("function"==typeof e&&"prototype"===t&&"value"in r&&g in r&&!r.writable){var a=h(e,t);if(a&&a.writable){e[t]=r.value;r={configurable:f in r?r.configurable:a.configurable,enumerable:d in r?r.enumerable:a.enumerable,writable:!1}}}return u(e,t,r)}:u:function defineProperty(e,t,r){o(e);t=c(t);o(r);if(i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw l("Accessors not supported");"value"in r&&(e[t]=r.value);return e}},(e,t,r)=>{var a=r(6),n=r(7);e.exports=a&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,r)=>{var a=r(4),n=r(19),i=a.String,s=a.TypeError;e.exports=function(e){if(n(e))return e;throw s(i(e)+" is not an object")}},(e,t,r)=>{var a=r(4),n=r(20),i=r(37),s=r(42),o=r(36),c=r(47),l=r(48),u=r(52).CONFIGURABLE,h=l.get,d=l.enforce,f=String(String).split("String");(e.exports=function(e,t,r,c){var l,h=!!c&&!!c.unsafe,g=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet,m=c&&void 0!==c.name?c.name:t;if(n(r)){"Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!i(r,"name")||u&&r.name!==m)&&s(r,"name",m);(l=d(r)).source||(l.source=f.join("string"==typeof m?m:""))}if(e!==a){h?!p&&e[t]&&(g=!0):delete e[t];g?e[t]=r:s(e,t,r)}else g?e[t]=r:o(t,r)})(Function.prototype,"toString",(function toString(){return n(this)&&h(this).source||c(this)}))},(e,t,r)=>{var a=r(14),n=r(20),i=r(35),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(49),o=r(4),c=r(14),l=r(19),u=r(42),h=r(37),d=r(35),f=r(50),g=r(51),p="Object already initialized",m=o.TypeError,b=o.WeakMap;if(s||d.state){var y=d.state||(d.state=new b),S=c(y.get),w=c(y.has),v=c(y.set);a=function(e,t){if(w(y,e))throw new m(p);t.facade=e;v(y,e,t);return t};n=function(e){return S(y,e)||{}};i=function(e){return w(y,e)}}else{var x=f("state");g[x]=!0;a=function(e,t){if(h(e,x))throw new m(p);t.facade=e;u(e,x,t);return t};n=function(e){return h(e,x)?e[x]:{}};i=function(e){return h(e,x)}}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(!l(t)||(r=n(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{var a=r(4),n=r(20),i=r(47),s=a.WeakMap;e.exports=n(s)&&/native code/.test(i(s))},(e,t,r)=>{var a=r(33),n=r(39),i=a("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},e=>{e.exports={}},(e,t,r)=>{var a=r(6),n=r(37),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(37),n=r(54),i=r(5),s=r(43);e.exports=function(e,t,r){for(var o=n(t),c=s.f,l=i.f,u=0;u<o.length;u++){var h=o[u];a(e,h)||r&&a(r,h)||c(e,h,l(t,h))}}},(e,t,r)=>{var a=r(22),n=r(14),i=r(55),s=r(63),o=r(45),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(56),n=r(62).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return a(e,n)}},(e,t,r)=>{var a=r(14),n=r(37),i=r(12),s=r(57).indexOf,o=r(51),c=a([].push);e.exports=function(e,t){var r,a=i(e),l=0,u=[];for(r in a)!n(o,r)&&n(a,r)&&c(u,r);for(;t.length>l;)n(a,r=t[l++])&&(~s(u,r)||c(u,r));return u}},(e,t,r)=>{var a=r(12),n=r(58),i=r(60),createMethod=function(e){return function(t,r,s){var o,c=a(t),l=i(c),u=n(s,l);if(e&&r!=r){for(;l>u;)if((o=c[u++])!=o)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(e,t,r)=>{var a=r(59),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=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){var a=+e;return a!=a||0===a?0:(a>0?r:t)(a)}},(e,t,r)=>{var a=r(61);e.exports=function(e){return a(e.length)}},(e,t,r)=>{var a=r(59),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(7),n=r(20),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(4);e.exports=a.Promise},(e,t,r)=>{var a=r(46);e.exports=function(e,t,r){for(var n in t)a(e,n,t[n],r);return e}},(e,t,r)=>{var a=r(14),n=r(45),i=r(68);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=a(Object.getOwnPropertyDescriptor(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(4),n=r(20),i=a.String,s=a.TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw s("Can't set "+i(e)+" as a prototype")}},(e,t,r)=>{var a=r(43).f,n=r(37),i=r(32)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype);e&&!n(e,i)&&a(e,i,{configurable:!0,value:t})}},(e,t,r)=>{"use strict";var a=r(22),n=r(43),i=r(32),s=r(6),o=i("species");e.exports=function(e){var t=a(e),r=n.f;s&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}},(e,t,r)=>{var a=r(4),n=r(23),i=a.TypeError;e.exports=function(e,t){if(n(t,e))return e;throw i("Incorrect invocation")}},(e,t,r)=>{var a=r(4),n=r(73),i=r(8),s=r(45),o=r(30),c=r(74),l=r(60),u=r(23),h=r(76),d=r(77),f=r(80),g=a.TypeError,Result=function(e,t){this.stopped=e;this.result=t},p=Result.prototype;e.exports=function(e,t,r){var a,m,b,y,S,w,v,x=r&&r.that,C=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),T=n(t,x),stop=function(e){a&&f(a,"normal",e);return new Result(!0,e)},callFn=function(e){if(C){s(e);return O?T(e[0],e[1],stop):T(e[0],e[1])}return O?T(e,stop):T(e)};if(k)a=e;else{if(!(m=d(e)))throw g(o(e)+" is not iterable");if(c(m)){for(b=0,y=l(e);y>b;b++)if((S=callFn(e[b]))&&u(p,S))return S;return new Result(!1)}a=h(e,m)}w=a.next;for(;!(v=i(w,a)).done;){try{S=callFn(v.value)}catch(e){f(a,"throw",e)}if("object"==typeof S&&S&&u(p,S))return S}return new Result(!1)}},(e,t,r)=>{var a=r(14),n=r(29),i=r(9),s=a(a.bind);e.exports=function(e,t){n(e);return void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{var a=r(32),n=r(75),i=a("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||s[i]===e)}},e=>{e.exports={}},(e,t,r)=>{var a=r(4),n=r(8),i=r(29),s=r(45),o=r(30),c=r(77),l=a.TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(i(r))return s(n(r,e));throw l(o(e)+" is not iterable")}},(e,t,r)=>{var a=r(78),n=r(28),i=r(75),s=r(32)("iterator");e.exports=function(e){if(null!=e)return n(e,s)||n(e,"@@iterator")||i[a(e)]}},(e,t,r)=>{var a=r(4),n=r(79),i=r(20),s=r(15),o=r(32)("toStringTag"),c=a.Object,l="Arguments"==s(function(){return arguments}());e.exports=n?s: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=c(e),o))?r:l?s(t):"Object"==(a=s(t))&&i(t.callee)?"Arguments":a}},(e,t,r)=>{var a={};a[r(32)("toStringTag")]="z";e.exports="[object z]"===String(a)},(e,t,r)=>{var a=r(8),n=r(45),i=r(28);e.exports=function(e,t,r){var s,o;n(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=a(s,e)}catch(e){o=!0;s=e}if("throw"===t)throw r;if(o)throw s;n(s);return r}},(e,t,r)=>{var a=r(32)("iterator"),n=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){n=!0}};s[a]=function(){return this};Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var r=!1;try{var i={};i[a]=function(){return{next:function(){return{done:r=!0}}}};e(i)}catch(e){}return r}},(e,t,r)=>{var a=r(45),n=r(83),i=r(32)("species");e.exports=function(e,t){var r,s=a(e).constructor;return void 0===s||null==(r=a(s)[i])?t:n(r)}},(e,t,r)=>{var a=r(4),n=r(84),i=r(30),s=a.TypeError;e.exports=function(e){if(n(e))return e;throw s(i(e)+" is not a constructor")}},(e,t,r)=>{var a=r(14),n=r(7),i=r(20),s=r(78),o=r(22),c=r(47),noop=function(){},l=[],u=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=a(h.exec),f=!h.exec(noop),g=function isConstructor(e){if(!i(e))return!1;try{u(noop,l,e);return!0}catch(e){return!1}},p=function isConstructor(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,c(e))}catch(e){return!0}};p.sham=!0;e.exports=!u||n((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?p:g},(e,t,r)=>{var a,n,i,s,o=r(4),c=r(86),l=r(73),u=r(20),h=r(37),d=r(7),f=r(87),g=r(88),p=r(41),m=r(89),b=r(90),y=r(91),S=o.setImmediate,w=o.clearImmediate,v=o.process,x=o.Dispatch,C=o.Function,k=o.MessageChannel,O=o.String,T=0,R={},E="onreadystatechange";try{a=o.location}catch(e){}var run=function(e){if(h(R,e)){var t=R[e];delete R[e];t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){o.postMessage(O(e),a.protocol+"//"+a.host)};if(!S||!w){S=function setImmediate(e){m(arguments.length,1);var t=u(e)?e:C(e),r=g(arguments,1);R[++T]=function(){c(t,void 0,r)};n(T);return T};w=function clearImmediate(e){delete R[e]};if(y)n=function(e){v.nextTick(runner(e))};else if(x&&x.now)n=function(e){x.now(runner(e))};else if(k&&!b){s=(i=new k).port2;i.port1.onmessage=listener;n=l(s.postMessage,s)}else if(o.addEventListener&&u(o.postMessage)&&!o.importScripts&&a&&"file:"!==a.protocol&&!d(post)){n=post;o.addEventListener("message",listener,!1)}else n=E in p("script")?function(e){f.appendChild(p("script")).onreadystatechange=function(){f.removeChild(this);run(e)}}:function(e){setTimeout(runner(e),0)}}e.exports={set:S,clear:w}},(e,t,r)=>{var a=r(9),n=Function.prototype,i=n.apply,s=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(a?s.bind(i):function(){return s.apply(i,arguments)})},(e,t,r)=>{var a=r(22);e.exports=a("document","documentElement")},(e,t,r)=>{var a=r(14);e.exports=a([].slice)},(e,t,r)=>{var a=r(4).TypeError;e.exports=function(e,t){if(e<t)throw a("Not enough arguments");return e}},(e,t,r)=>{var a=r(27);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(a)},(e,t,r)=>{var a=r(15),n=r(4);e.exports="process"==a(n.process)},(e,t,r)=>{var a,n,i,s,o,c,l,u,h=r(4),d=r(73),f=r(5).f,g=r(85).set,p=r(90),m=r(93),b=r(94),y=r(91),S=h.MutationObserver||h.WebKitMutationObserver,w=h.document,v=h.process,x=h.Promise,C=f(h,"queueMicrotask"),k=C&&C.value;if(!k){a=function(){var e,t;y&&(e=v.domain)&&e.exit();for(;n;){t=n.fn;n=n.next;try{t()}catch(e){n?s():i=void 0;throw e}}i=void 0;e&&e.enter()};if(p||y||b||!S||!w)if(!m&&x&&x.resolve){(l=x.resolve(void 0)).constructor=x;u=d(l.then,l);s=function(){u(a)}}else if(y)s=function(){v.nextTick(a)};else{g=d(g,h);s=function(){g(a)}}else{o=!0;c=w.createTextNode("");new S(a).observe(c,{characterData:!0});s=function(){c.data=o=!o}}}e.exports=k||function(e){var t={fn:e,next:void 0};i&&(i.next=t);if(!n){n=t;s()}i=t}},(e,t,r)=>{var a=r(27),n=r(4);e.exports=/ipad|iphone|ipod/i.test(a)&&void 0!==n.Pebble},(e,t,r)=>{var a=r(27);e.exports=/web0s(?!.*chrome)/i.test(a)},(e,t,r)=>{var a=r(45),n=r(19),i=r(96);e.exports=function(e,t){a(e);if(n(t)&&t.constructor===e)return t;var r=i.f(e);(0,r.resolve)(t);return r.promise}},(e,t,r)=>{"use strict";var a=r(29),PromiseCapability=function(e){var t,r;this.promise=new e((function(e,a){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e;r=a}));this.resolve=a(t);this.reject=a(r)};e.exports.f=function(e){return new PromiseCapability(e)}},(e,t,r)=>{var a=r(4);e.exports=function(e,t){var r=a.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e=>{var Queue=function(){this.head=null;this.tail=null};Queue.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t;this.tail=t},get:function(){var e=this.head;if(e){this.head=e.next;this.tail===e&&(this.tail=null);return e.item}}};e.exports=Queue},e=>{e.exports="object"==typeof window},(e,t,r)=>{r(102)},(e,t,r)=>{"use strict";var a=r(3),n=r(8),i=r(29),s=r(96),o=r(98),c=r(72);a({target:"Promise",stat:!0},{allSettled:function allSettled(e){var t=this,r=s.f(t),a=r.resolve,l=r.reject,u=o((function(){var r=i(t.resolve),s=[],o=0,l=1;c(e,(function(e){var i=o++,c=!1;l++;n(r,t,e).then((function(e){if(!c){c=!0;s[i]={status:"fulfilled",value:e};--l||a(s)}}),(function(e){if(!c){c=!0;s[i]={status:"rejected",reason:e};--l||a(s)}}))}));--l||a(s)}));u.error&&l(u.value);return r.promise}})},(e,t,r)=>{var a=r(4),n=r(104),i=r(105),s=r(106),o=r(42),c=r(32),l=c("iterator"),u=c("toStringTag"),h=s.values,handlePrototype=function(e,t){if(e){if(e[l]!==h)try{o(e,l,h)}catch(t){e[l]=h}e[u]||o(e,u,t);if(n[t])for(var r in s)if(e[r]!==s[r])try{o(e,r,s[r])}catch(t){e[r]=s[r]}}};for(var d in n)handlePrototype(a[d]&&a[d].prototype,d);handlePrototype(i,"DOMTokenList")},e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},(e,t,r)=>{var a=r(41)("span").classList,n=a&&a.constructor&&a.constructor.prototype;e.exports=n===Object.prototype?void 0:n},(e,t,r)=>{"use strict";var a=r(12),n=r(107),i=r(75),s=r(48),o=r(43).f,c=r(111),l=r(34),u=r(6),h="Array Iterator",d=s.set,f=s.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:a(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length){e.target=void 0;return{value:void 0,done:!0}}return"keys"==r?{value:a,done:!1}:"values"==r?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values");var g=i.Arguments=i.Array;n("keys");n("values");n("entries");if(!l&&u&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(e){}},(e,t,r)=>{var a=r(32),n=r(108),i=r(43),s=a("unscopables"),o=Array.prototype;null==o[s]&&i.f(o,s,{configurable:!0,value:n(null)});e.exports=function(e){o[s][e]=!0}},(e,t,r)=>{var a,n=r(45),i=r(109),s=r(62),o=r(51),c=r(87),l=r(41),u=r(50),h=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<script>"+e+"</"+"script>"},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");t.style.display="none";c.appendChild(t);t.src=String("javascript:");(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.prototype[s[e]];return NullProtoObject()};o[h]=!0;e.exports=Object.create||function create(e,t){var r;if(null!==e){EmptyConstructor.prototype=n(e);r=new EmptyConstructor;EmptyConstructor.prototype=null;r[h]=e}else r=NullProtoObject();return void 0===t?r:i.f(r,t)}},(e,t,r)=>{var a=r(6),n=r(44),i=r(43),s=r(45),o=r(12),c=r(110);t.f=a&&!n?Object.defineProperties:function defineProperties(e,t){s(e);for(var r,a=o(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],a[r]);return e}},(e,t,r)=>{var a=r(56),n=r(62);e.exports=Object.keys||function keys(e){return a(e,n)}},(e,t,r)=>{"use strict";var a=r(3),n=r(8),i=r(34),s=r(52),o=r(20),c=r(112),l=r(114),u=r(67),h=r(69),d=r(42),f=r(46),g=r(32),p=r(75),m=r(113),b=s.PROPER,y=s.CONFIGURABLE,S=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,v=g("iterator"),x="keys",C="values",k="entries",returnThis=function(){return this};e.exports=function(e,t,r,s,g,m,O){c(r,t,s);var T,R,E,getIterationMethod=function(e){if(e===g&&L)return L;if(!w&&e in _)return _[e];switch(e){case x:return function keys(){return new r(this,e)};case C:return function values(){return new r(this,e)};case k:return function entries(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",D=!1,_=e.prototype,N=_[v]||_["@@iterator"]||g&&_[g],L=!w&&N||getIterationMethod(g),j="Array"==t&&_.entries||N;if(j&&(T=l(j.call(new e)))!==Object.prototype&&T.next){i||l(T)===S||(u?u(T,S):o(T[v])||f(T,v,returnThis));h(T,M,!0,!0);i&&(p[M]=returnThis)}if(b&&g==C&&N&&N.name!==C)if(!i&&y)d(_,"name",C);else{D=!0;L=function values(){return n(N,this)}}if(g){R={values:getIterationMethod(C),keys:m?L:getIterationMethod(x),entries:getIterationMethod(k)};if(O)for(E in R)(w||D||!(E in _))&&f(_,E,R[E]);else a({target:t,proto:!0,forced:w||D},R)}i&&!O||_[v]===L||f(_,v,L,{name:g});p[t]=L;return R}},(e,t,r)=>{"use strict";var a=r(113).IteratorPrototype,n=r(108),i=r(11),s=r(69),o=r(75),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(7),o=r(20),c=r(108),l=r(114),u=r(46),h=r(32),d=r(34),f=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(a=n):g=!0);null==a||s((function(){var e={};return a[f].call(e)!==e}))?a={}:d&&(a=c(a));o(a[f])||u(a,f,(function(){return this}));e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:g}},(e,t,r)=>{var a=r(4),n=r(37),i=r(20),s=r(38),o=r(50),c=r(115),l=o("IE_PROTO"),u=a.Object,h=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=s(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?h:null}},(e,t,r)=>{var a=r(7);e.exports=!a((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(e,t,r)=>{r(117)("Uint8",(function(e){return function Uint8Array(t,r,a){return e(this,t,r,a)}}))},(e,t,r)=>{"use strict";var a=r(3),n=r(4),i=r(8),s=r(6),o=r(118),c=r(119),l=r(121),u=r(71),h=r(11),d=r(42),f=r(127),g=r(61),p=r(122),m=r(128),b=r(17),y=r(37),S=r(78),w=r(19),v=r(21),x=r(108),C=r(23),k=r(67),O=r(55).f,T=r(130),R=r(131).forEach,E=r(70),M=r(43),D=r(5),_=r(48),N=r(135),L=_.get,j=_.set,U=M.f,W=D.f,q=Math.round,$=n.RangeError,X=l.ArrayBuffer,H=X.prototype,z=l.DataView,G=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_CONSTRUCTOR,Y=c.TYPED_ARRAY_TAG,K=c.TypedArray,J=c.TypedArrayPrototype,Q=c.aTypedArrayConstructor,Z=c.isTypedArray,ee="BYTES_PER_ELEMENT",te="Wrong length",fromList=function(e,t){Q(e);for(var r=0,a=t.length,n=new e(a);a>r;)n[r]=t[r++];return n},addGetter=function(e,t){U(e,t,{get:function(){return L(this)[t]}})},isArrayBuffer=function(e){var t;return C(H,e)||"ArrayBuffer"==(t=S(e))||"SharedArrayBuffer"==t},isTypedArrayIndex=function(e,t){return Z(e)&&!v(t)&&t in e&&f(+t)&&t>=0},re=function getOwnPropertyDescriptor(e,t){t=b(t);return isTypedArrayIndex(e,t)?h(2,e[t]):W(e,t)},ae=function defineProperty(e,t,r){t=b(t);if(isTypedArrayIndex(e,t)&&w(r)&&y(r,"value")&&!y(r,"get")&&!y(r,"set")&&!r.configurable&&(!y(r,"writable")||r.writable)&&(!y(r,"enumerable")||r.enumerable)){e[t]=r.value;return e}return U(e,t,r)};if(s){if(!G){D.f=re;M.f=ae;addGetter(J,"buffer");addGetter(J,"byteOffset");addGetter(J,"byteLength");addGetter(J,"length")}a({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:re,defineProperty:ae});e.exports=function(e,t,r){var s=e.match(/\d+$/)[0]/8,c=e+(r?"Clamped":"")+"Array",l="get"+e,h="set"+e,f=n[c],b=f,y=b&&b.prototype,S={},addElement=function(e,t){U(e,t,{get:function(){return function(e,t){var r=L(e);return r.view[l](t*s+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,a){var n=L(e);r&&(a=(a=q(a))<0?0:a>255?255:255&a);n.view[h](t*s+n.byteOffset,a,!0)}(this,t,e)},enumerable:!0})};if(G){if(o){b=t((function(e,t,r,a){u(e,y);return N(w(t)?isArrayBuffer(t)?void 0!==a?new f(t,m(r,s),a):void 0!==r?new f(t,m(r,s)):new f(t):Z(t)?fromList(b,t):i(T,b,t):new f(p(t)),e,b)}));k&&k(b,K);R(O(f),(function(e){e in b||d(b,e,f[e])}));b.prototype=y}}else{b=t((function(e,t,r,a){u(e,y);var n,o,c,l=0,h=0;if(w(t)){if(!isArrayBuffer(t))return Z(t)?fromList(b,t):i(T,b,t);n=t;h=m(r,s);var d=t.byteLength;if(void 0===a){if(d%s)throw $(te);if((o=d-h)<0)throw $(te)}else if((o=g(a)*s)+h>d)throw $(te);c=o/s}else{c=p(t);n=new X(o=c*s)}j(e,{buffer:n,byteOffset:h,byteLength:o,length:c,view:new z(n)});for(;l<c;)addElement(e,l++)}));k&&k(b,K);y=b.prototype=x(J)}y.constructor!==b&&d(y,"constructor",b);d(y,V,b);Y&&d(y,Y,c);S[c]=b;a({global:!0,forced:b!=f,sham:!G},S);ee in b||d(b,ee,s);ee in y||d(y,ee,s);E(c)}}else e.exports=function(){}},(e,t,r)=>{var a=r(4),n=r(7),i=r(81),s=r(119).NATIVE_ARRAY_BUFFER_VIEWS,o=a.ArrayBuffer,c=a.Int8Array;e.exports=!s||!n((function(){c(1)}))||!n((function(){new c(-1)}))||!i((function(e){new c;new c(null);new c(1.5);new c(e)}),!0)||n((function(){return 1!==new c(new o(2),1,void 0).length}))},(e,t,r)=>{"use strict";var a,n,i,s=r(120),o=r(6),c=r(4),l=r(20),u=r(19),h=r(37),d=r(78),f=r(30),g=r(42),p=r(46),m=r(43).f,b=r(23),y=r(114),S=r(67),w=r(32),v=r(39),x=c.Int8Array,C=x&&x.prototype,k=c.Uint8ClampedArray,O=k&&k.prototype,T=x&&y(x),R=C&&y(C),E=Object.prototype,M=c.TypeError,D=w("toStringTag"),_=v("TYPED_ARRAY_TAG"),N=v("TYPED_ARRAY_CONSTRUCTOR"),L=s&&!!S&&"Opera"!==d(c.opera),j=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},isTypedArray=function(e){if(!u(e))return!1;var t=d(e);return h(U,t)||h(W,t)};for(a in U)(i=(n=c[a])&&n.prototype)?g(i,N,n):L=!1;for(a in W)(i=(n=c[a])&&n.prototype)&&g(i,N,n);if(!L||!l(T)||T===Function.prototype){T=function TypedArray(){throw M("Incorrect invocation")};if(L)for(a in U)c[a]&&S(c[a],T)}if(!L||!R||R===E){R=T.prototype;if(L)for(a in U)c[a]&&S(c[a].prototype,R)}L&&y(O)!==R&&S(O,R);if(o&&!h(R,D)){j=!0;m(R,D,{get:function(){return u(this)?this[_]:void 0}});for(a in U)c[a]&&g(c[a],_,a)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_CONSTRUCTOR:N,TYPED_ARRAY_TAG:j&&_,aTypedArray:function(e){if(isTypedArray(e))return e;throw M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!S||b(T,e)))return e;throw M(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,a){if(o){if(r)for(var n in U){var i=c[n];if(i&&h(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}R[e]&&!r||p(R,e,r?t:L&&C[e]||t,a)}},exportTypedArrayStaticMethod:function(e,t,r){var a,n;if(o){if(S){if(r)for(a in U)if((n=c[a])&&h(n,e))try{delete n[e]}catch(e){}if(T[e]&&!r)return;try{return p(T,e,r?t:L&&T[e]||t)}catch(e){}}for(a in U)!(n=c[a])||n[e]&&!r||p(n,e,t)}},isView:function isView(e){if(!u(e))return!1;var t=d(e);return"DataView"===t||h(U,t)||h(W,t)},isTypedArray:isTypedArray,TypedArray:T,TypedArrayPrototype:R}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,r)=>{"use strict";var a=r(4),n=r(14),i=r(6),s=r(120),o=r(52),c=r(42),l=r(66),u=r(7),h=r(71),d=r(59),f=r(61),g=r(122),p=r(123),m=r(114),b=r(67),y=r(55).f,S=r(43).f,w=r(124),v=r(125),x=r(69),C=r(48),k=o.PROPER,O=o.CONFIGURABLE,T=C.get,R=C.set,E="ArrayBuffer",M="DataView",D="Wrong index",_=a.ArrayBuffer,N=_,L=N&&N.prototype,j=a.DataView,U=j&&j.prototype,W=Object.prototype,q=a.Array,$=a.RangeError,X=n(w),H=n([].reverse),z=p.pack,G=p.unpack,packInt8=function(e){return[255&e]},packInt16=function(e){return[255&e,e>>8&255]},packInt32=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return z(e,23,4)},packFloat64=function(e){return z(e,52,8)},addGetter=function(e,t){S(e.prototype,t,{get:function(){return T(this)[t]}})},get=function(e,t,r,a){var n=g(r),i=T(e);if(n+t>i.byteLength)throw $(D);var s=T(i.buffer).bytes,o=n+i.byteOffset,c=v(s,o,o+t);return a?c:H(c)},set=function(e,t,r,a,n,i){var s=g(r),o=T(e);if(s+t>o.byteLength)throw $(D);for(var c=T(o.buffer).bytes,l=s+o.byteOffset,u=a(+n),h=0;h<t;h++)c[l+h]=u[i?h:t-h-1]};if(s){var V=k&&_.name!==E;if(u((function(){_(1)}))&&u((function(){new _(-1)}))&&!u((function(){new _;new _(1.5);new _(NaN);return V&&!O})))V&&O&&c(_,"name",E);else{(N=function ArrayBuffer(e){h(this,L);return new _(g(e))}).prototype=L;for(var Y,K=y(_),J=0;K.length>J;)(Y=K[J++])in N||c(N,Y,_[Y]);L.constructor=N}b&&m(U)!==W&&b(U,W);var Q=new j(new N(2)),Z=n(U.setInt8);Q.setInt8(0,2147483648);Q.setInt8(1,2147483649);!Q.getInt8(0)&&Q.getInt8(1)||l(U,{setInt8:function setInt8(e,t){Z(this,e,t<<24>>24)},setUint8:function setUint8(e,t){Z(this,e,t<<24>>24)}},{unsafe:!0})}else{L=(N=function ArrayBuffer(e){h(this,L);var t=g(e);R(this,{bytes:X(q(t),0),byteLength:t});i||(this.byteLength=t)}).prototype;U=(j=function DataView(e,t,r){h(this,U);h(e,L);var a=T(e).byteLength,n=d(t);if(n<0||n>a)throw $("Wrong offset");if(n+(r=void 0===r?a-n:f(r))>a)throw $("Wrong length");R(this,{buffer:e,byteLength:r,byteOffset:n});if(!i){this.buffer=e;this.byteLength=r;this.byteOffset=n}}).prototype;if(i){addGetter(N,"byteLength");addGetter(j,"buffer");addGetter(j,"byteLength");addGetter(j,"byteOffset")}l(U,{getInt8:function getInt8(e){return get(this,1,e)[0]<<24>>24},getUint8:function getUint8(e){return get(this,1,e)[0]},getInt16:function getInt16(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function getUint16(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function getInt32(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(e){return G(get(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(e){return G(get(this,8,e,arguments.length>1?arguments[1]:void 0),52)}