/** * @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(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(this,(function(){return(()=>{var t=[,(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(135),h=o(137),d=o(201),m=o(6),g=o(229),y=o(230),v=o(139);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o=c.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:D,sink:r,task:u,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);if(!u.terminated){D.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));D.on("GetTextContent",(function wphExtractText(t,r){var l=t.pageIndex;o.getPage(l).then((function(o){var u=new S("GetTextContent: page "+l);startWorkerTask(u);var h=w>=c.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:D,task:u,sink:r,normalizeWhitespace:t.normalizeWhitespace,includeMarkedContent:t.includeMarkedContent,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));D.on("GetStructTree",(function wphGetStructTree(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));D.on("FontFallback",(function(t){return o.fontFallback(t.id,D)}));D.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));D.on("Terminate",(function wphTerminate(t){m=!0;var r=[];if(o){o.terminate(new c.AbortException("Worker was terminated."));var l=o.cleanup();r.push(l);o=null}else(0,u.clearPrimitiveCaches)();_&&_(new c.AbortException("Worker was terminated."));var h,d=_createForOfIteratorHelper(k);try{for(d.s();!(h=d.n()).done;){var g=h.value;r.push(g.finished);g.terminate()}}catch(t){d.e(t)}finally{d.f()}return Promise.all(r).then((function(){D.destroy();D=null}))}));D.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();D.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof c.PasswordException){var r=new S("PasswordException: response ".concat(t.code));startWorkerTask(r);D.sendWithPromise("PasswordRequest",t).then((function(t){var l=t.password;finishWorkerTask(r);o.updatePassword(l);pdfManagerReady()})).catch((function(){finishWorkerTask(r);D.send("DocException",t)}))}else t instanceof c.InvalidPDFException||t instanceof c.MissingPDFException||t instanceof c.UnexpectedResponseException||t instanceof c.UnknownErrorException?D.send("DocException",t):D.send("DocException",new c.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof v.XRefParseException){o.requestLoadedStream();o.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(t)}))}ensureNotTerminated();getPdfManager(t,{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,useSystemFonts:t.useSystemFonts,cMapUrl:t.cMapUrl,standardFontDataUrl:t.standardFontDataUrl},t.enableXfa).then((function(t){if(m){t.terminate(new c.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){D.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return M}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new g.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=_;"undefined"==typeof window&&!m.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&_.initializeFromPort(self)},(t,r,o)=>{"use strict";t.exports=o(3)},(t,r,o)=>{"use strict";function _typeof(t){_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return _typeof(t)}var l=function(t){var r,o=Object.prototype,l=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function define(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0});return t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var c=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(c.prototype),h=new Context(l||[]);u._invoke=function makeInvokeMethod(t,r,o){var l=m;return function invoke(c,u){if(l===y)throw new Error("Generator is already running");if(l===v){if("throw"===c)throw u;return doneResult()}o.method=c;o.arg=u;for(;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===S)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(l===m){l=v;throw o.arg}o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l=y;var _=tryCatch(t,r,o);if("normal"===_.type){l=o.done?v:g;if(_.arg===S)continue;return{value:_.arg,done:o.done}}if("throw"===_.type){l=v;o.method="throw";o.arg=_.arg}}}}(t,o,h);return u}t.wrap=wrap;function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}var m="suspendedStart",g="suspendedYield",y="executing",v="completed",S={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};define(_,u,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(values([])));w&&w!==o&&l.call(w,u)&&(_=w);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);GeneratorFunction.prototype=GeneratorFunctionPrototype;define(C,"constructor",GeneratorFunctionPrototype);define(GeneratorFunctionPrototype,"constructor",GeneratorFunction);GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction");function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))};t.mark=function(t){if(Object.setPrototypeOf)Object.setPrototypeOf(t,GeneratorFunctionPrototype);else{t.__proto__=GeneratorFunctionPrototype;define(t,d,"GeneratorFunction")}t.prototype=Object.create(C);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(o,c,u,h){var d=tryCatch(t[o],t,c);if("throw"!==d.type){var m=d.arg,g=m.value;return g&&"object"===_typeof(g)&&l.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){m.value=t;u(m)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;this._invoke=function enqueue(t,l){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,l,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);define(AsyncIterator.prototype,h,(function(){return this}));t.AsyncIterator=AsyncIterator;t.async=function(r,o,l,c,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(r,o,l,c),u);return t.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))};function maybeInvokeDelegate(t,o){var l=t.iterator[o.method];if(l===r){o.delegate=null;if("throw"===o.method){if(t.iterator.return){o.method="return";o.arg=r;maybeInvokeDelegate(t,o);if("throw"===o.method)return S}o.method="throw";o.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var c=tryCatch(l,t.iterator,o.arg);if("throw"===c.type){o.method="throw";o.arg=c.arg;o.delegate=null;return S}var u=c.arg;if(!u){o.method="throw";o.arg=new TypeError("iterator result is not an object");o.delegate=null;return S}if(!u.done)return u;o[t.resultName]=u.value;o.next=t.nextLoc;if("return"!==o.method){o.method="next";o.arg=r}o.delegate=null;return S}defineIteratorMethods(C);define(C,d,"Generator");define(C,u,(function(){return this}));define(C,"toString",(function(){return"[object Generator]"}));function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]);if(2 in t){r.finallyLoc=t[2];r.afterLoc=t[3]}this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(pushTryEntry,this);this.reset(!0)}t.keys=function(t){var r=[];for(var o in t)r.push(o);r.reverse();return function next(){for(;r.length;){var o=r.pop();if(o in t){next.value=o;next.done=!1;return next}}next.done=!0;return next}};function values(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function next(){for(;++c=0;--c){var u=this.tryEntries[c],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=l.call(u,"catchLoc"),m=l.call(u,"finallyLoc");if(d&&m){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&l.call(c,"finallyLoc")&&this.prev=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t){this.complete(o.completion,o.afterLoc);resetTryEntry(o);return S}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var l=o.completion;if("throw"===l.type){var c=l.arg;resetTryEntry(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,o,l){this.delegate={iterator:values(t),resultName:o,nextLoc:l};"next"===this.method&&(this.arg=r);return S}};return t}("object"===_typeof(t=o.nmd(t))?t.exports:{});try{regeneratorRuntime=l}catch(t){"object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=l:Function("r","regeneratorRuntime = r")(l)}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.IsLittleEndianCached=r.IsEvalSupportedCached=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var o=0,l=0;l1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!=typeof Blob&&!o)return URL.createObjectURL(new Blob([t],{type:r}));for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="data:".concat(r,";base64,"),u=0,h=t.length;u>2,v=(3&d)<<4|m>>4,S=u+1>6:64,_=u+21&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(o&&"string"==typeof t){if(o.addDefaultProtocol&&t.startsWith("www.")){var l=t.match(/\./g);l&&l.length>=2&&(t="http://".concat(t))}if(o.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var c=r?new URL(t,r):new URL(t);if(_isValidProtocol(c))return c}catch(t){}return null};r.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[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 r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return c};r.info=function info(t){c>=l.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;for(var o=0,l=t.length;o=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(l.s();!(r=l.n()).done;){var c=(d=r.value,m=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(d)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(d,m)||_unsupportedIterableToArray(d,m)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],h=c[1];o[u]=h}}catch(t){l.e(t)}finally{l.f()}var d,m;return o};r.objectSize=function objectSize(t){return Object.keys(t).length};r.removeNullCharacters=function removeNullCharacters(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof t){warn("The argument for removeNullCharacters must be a string.");return t}r&&(t=t.replace(k," "));return t.replace(_,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(c=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){var r=t.length,o=[];if("þ"===t[0]&&"ÿ"===t[1])for(var l=2;l>8&255),String.fromCharCode(255&c))}return r.join("")};r.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;o(5);function _defineProperties(t,r){for(var o=0;ot.length)&&(r=t.length);for(var o=0,l=new Array(r);o=l.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}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,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!1});return o}var u=function BaseExceptionClosure(){function BaseException(t,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=u;var h=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var l;_classCallCheck(this,PasswordException);(l=r.call(this,t,"PasswordException")).code=o;return l}return PasswordException}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var l;_classCallCheck(this,UnknownErrorException);(l=r.call(this,t,"UnknownErrorException")).details=o;return l}return UnknownErrorException}(u);r.UnknownErrorException=d;var m=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return InvalidPDFException}(u);r.InvalidPDFException=m;var g=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return MissingPDFException}(u);r.MissingPDFException=g;var y=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var l;_classCallCheck(this,UnexpectedResponseException);(l=r.call(this,t,"UnexpectedResponseException")).status=o;return l}return UnexpectedResponseException}(u);r.UnexpectedResponseException=y;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return FormatError}(u);r.FormatError=v;var S=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return AbortException}(u);r.AbortException=S;var _=/\x00+/g,k=/[\x01-\x1F]/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),l=0;lt[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){function compare(t,r){return t-r}var o=[t[0],t[2],r[0],r[2]].sort(compare),l=[t[1],t[3],r[1],r[3]].sort(compare),c=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0]))return null;c[0]=o[1];c[2]=o[2];if(!(l[0]===t[1]&&l[1]===r[1]||l[0]===r[1]&&l[1]===t[1]))return null;c[1]=l[1];c[3]=l[2];return c}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,o,l,c,u,h,d){for(var m,g,y,v,S,_,k,w,C=[],x=[[],[]],O=0;O<2;++O){if(0===O){g=6*t-12*o+6*c;m=-3*t+9*o-9*c+3*h;y=3*o-3*t}else{g=6*r-12*l+6*u;m=-3*r+9*l-9*u+3*d;y=3*l-3*r}if(Math.abs(m)<1e-12){if(Math.abs(g)<1e-12)continue;0<(v=-y/g)&&v<1&&C.push(v)}else{k=g*g-4*y*m;w=Math.sqrt(k);if(!(k<0)){0<(S=(-g+w)/(2*m))&&S<1&&C.push(S);0<(_=(-g-w)/(2*m))&&_<1&&C.push(_)}}}for(var T,R=C.length,E=R;R--;){T=1-(v=C[R]);x[0][R]=T*T*T*t+3*T*T*v*o+3*T*v*v*c+v*v*v*h;x[1][R]=T*T*T*r+3*T*T*v*l+3*T*v*v*u+v*v*v*d}x[0][E]=t;x[1][E]=r;x[0][E+1]=h;x[1][E+1]=d;x[0].length=x[1].length=E+2;return[Math.min.apply(Math,_toConsumableArray(x[0])),Math.min.apply(Math,_toConsumableArray(x[1])),Math.max.apply(Math,_toConsumableArray(x[0])),Math.max.apply(Math,_toConsumableArray(x[1]))]}}]);return Util}();r.Util=O;var T=[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,r,o)=>{"use strict";var l=o(6);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=o(7));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&l.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&l.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&l.isNodeJS&&(globalThis.DOMMatrix=o(69))}();!function checkObjectFromEntries(){Object.fromEntries||o(70)}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=o(97))}();!function checkReadableStream(){!globalThis.ReadableStream&&l.isNodeJS&&(globalThis.ReadableStream=o(134).ReadableStream)}()}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isNodeJS=void 0;function _typeof(t){_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return _typeof(t)}var o=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=o},(t,r,o)=>{o(8);t.exports=o(10)},(t,r,o)=>{o(9)({global:!0},{globalThis:o(10)})},(t,r,o)=>{var l=o(10),c=o(11).f,u=o(47),h=o(50),d=o(41),m=o(57),g=o(68);t.exports=function(t,r){var o,y,v,S,_,k=t.target,w=t.global,C=t.stat;if(o=w?l:C?l[k]||d(k,{}):(l[k]||{}).prototype)for(y in r){S=r[y];v=t.noTargetGet?(_=c(o,y))&&_.value:o[y];if(!g(w?y:k+(C?".":"#")+y,t.forced)&&void 0!==v){if(typeof S==typeof v)continue;m(S,v)}(t.sham||v&&v.sham)&&u(S,"sham",!0);h(o,y,S,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,r,o)=>{var l=o(12),c=o(14),u=o(15),h=o(16),d=o(17),m=o(22),g=o(42),y=o(45),v=Object.getOwnPropertyDescriptor;r.f=l?v:function getOwnPropertyDescriptor(t,r){t=d(t);r=m(r);if(y)try{return v(t,r)}catch(t){}if(g(t,r))return h(!c(u.f,t,r),t[r])}},(t,r,o)=>{var l=o(13);t.exports=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},t=>{var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},(t,r)=>{"use strict";var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);r.f=c?function propertyIsEnumerable(t){var r=l(this,t);return!!r&&r.enumerable}:o},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,o)=>{var l=o(18),c=o(21);t.exports=function(t){return l(c(t))}},(t,r,o)=>{var l=o(10),c=o(19),u=o(13),h=o(20),d=l.Object,m=c("".split);t.exports=u((function(){return!d("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?m(t,""):d(t)}:d},t=>{var r=Function.prototype,o=r.bind,l=r.call,c=o&&o.bind(l);t.exports=o?function(t){return t&&c(l,t)}:function(t){return t&&function(){return l.apply(t,arguments)}}},(t,r,o)=>{var l=o(19),c=l({}.toString),u=l("".slice);t.exports=function(t){return u(c(t),8,-1)}},(t,r,o)=>{var l=o(10).TypeError;t.exports=function(t){if(null==t)throw l("Can't call method on "+t);return t}},(t,r,o)=>{var l=o(23),c=o(26);t.exports=function(t){var r=l(t,"string");return c(r)?r:r+""}},(t,r,o)=>{var l=o(10),c=o(14),u=o(24),h=o(26),d=o(33),m=o(36),g=o(37),y=l.TypeError,v=g("toPrimitive");t.exports=function(t,r){if(!u(t)||h(t))return t;var o,l=d(t,v);if(l){void 0===r&&(r="default");o=c(l,t,r);if(!u(o)||h(o))return o;throw y("Can't convert object to primitive value")}void 0===r&&(r="number");return m(t,r)}},(t,r,o)=>{var l=o(25);t.exports=function(t){return"object"==typeof t?null!==t:l(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,r,o)=>{var l=o(10),c=o(27),u=o(25),h=o(28),d=o(29),m=l.Object;t.exports=d?function(t){return"symbol"==typeof t}:function(t){var r=c("Symbol");return u(r)&&h(r.prototype,m(t))}},(t,r,o)=>{var l=o(10),c=o(25),aFunction=function(t){return c(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(l[t]):l[t]&&l[t][r]}},(t,r,o)=>{var l=o(19);t.exports=l({}.isPrototypeOf)},(t,r,o)=>{var l=o(30);t.exports=l&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var l=o(31),c=o(13);t.exports=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&l&&l<41}))},(t,r,o)=>{var l,c,u=o(10),h=o(32),d=u.process,m=u.Deno,g=d&&d.versions||m&&m.version,y=g&&g.v8;y&&(c=(l=y.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1]));!c&&h&&(!(l=h.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=h.match(/Chrome\/(\d+)/))&&(c=+l[1]);t.exports=c},(t,r,o)=>{var l=o(27);t.exports=l("navigator","userAgent")||""},(t,r,o)=>{var l=o(34);t.exports=function(t,r){var o=t[r];return null==o?void 0:l(o)}},(t,r,o)=>{var l=o(10),c=o(25),u=o(35),h=l.TypeError;t.exports=function(t){if(c(t))return t;throw h(u(t)+" is not a function")}},(t,r,o)=>{var l=o(10).String;t.exports=function(t){try{return l(t)}catch(t){return"Object"}}},(t,r,o)=>{var l=o(10),c=o(14),u=o(25),h=o(24),d=l.TypeError;t.exports=function(t,r){var o,l;if("string"===r&&u(o=t.toString)&&!h(l=c(o,t)))return l;if(u(o=t.valueOf)&&!h(l=c(o,t)))return l;if("string"!==r&&u(o=t.toString)&&!h(l=c(o,t)))return l;throw d("Can't convert object to primitive value")}},(t,r,o)=>{var l=o(10),c=o(38),u=o(42),h=o(44),d=o(30),m=o(29),g=c("wks"),y=l.Symbol,v=y&&y.for,S=m?y:y&&y.withoutSetter||h;t.exports=function(t){if(!u(g,t)||!d&&"string"!=typeof g[t]){var r="Symbol."+t;d&&u(y,t)?g[t]=y[t]:g[t]=m&&v?v(r):S(r)}return g[t]}},(t,r,o)=>{var l=o(39),c=o(40);(t.exports=function(t,r){return c[t]||(c[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.19.3",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},t=>{t.exports=!1},(t,r,o)=>{var l=o(10),c=o(41),u="__core-js_shared__",h=l[u]||c(u,{});t.exports=h},(t,r,o)=>{var l=o(10),c=Object.defineProperty;t.exports=function(t,r){try{c(l,t,{value:r,configurable:!0,writable:!0})}catch(o){l[t]=r}return r}},(t,r,o)=>{var l=o(19),c=o(43),u=l({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(c(t),r)}},(t,r,o)=>{var l=o(10),c=o(21),u=l.Object;t.exports=function(t){return u(c(t))}},(t,r,o)=>{var l=o(19),c=0,u=Math.random(),h=l(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+h(++c+u,36)}},(t,r,o)=>{var l=o(12),c=o(13),u=o(46);t.exports=!l&&!c((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var l=o(10),c=o(24),u=l.document,h=c(u)&&c(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var l=o(12),c=o(48),u=o(16);t.exports=l?function(t,r,o){return c.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var l=o(10),c=o(12),u=o(45),h=o(49),d=o(22),m=l.TypeError,g=Object.defineProperty;r.f=c?g:function defineProperty(t,r,o){h(t);r=d(r);h(o);if(u)try{return g(t,r,o)}catch(t){}if("get"in o||"set"in o)throw m("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var l=o(10),c=o(24),u=l.String,h=l.TypeError;t.exports=function(t){if(c(t))return t;throw h(u(t)+" is not an object")}},(t,r,o)=>{var l=o(10),c=o(25),u=o(42),h=o(47),d=o(41),m=o(51),g=o(52),y=o(56).CONFIGURABLE,v=g.get,S=g.enforce,_=String(String).split("String");(t.exports=function(t,r,o,m){var g,v=!!m&&!!m.unsafe,k=!!m&&!!m.enumerable,w=!!m&&!!m.noTargetGet,C=m&&void 0!==m.name?m.name:r;if(c(o)){"Symbol("===String(C).slice(0,7)&&(C="["+String(C).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!u(o,"name")||y&&o.name!==C)&&h(o,"name",C);(g=S(o)).source||(g.source=_.join("string"==typeof C?C:""))}if(t!==l){v?!w&&t[r]&&(k=!0):delete t[r];k?t[r]=o:h(t,r,o)}else k?t[r]=o:d(r,o)})(Function.prototype,"toString",(function toString(){return c(this)&&v(this).source||m(this)}))},(t,r,o)=>{var l=o(19),c=o(25),u=o(40),h=l(Function.toString);c(u.inspectSource)||(u.inspectSource=function(t){return h(t)});t.exports=u.inspectSource},(t,r,o)=>{var l,c,u,h=o(53),d=o(10),m=o(19),g=o(24),y=o(47),v=o(42),S=o(40),_=o(54),k=o(55),w="Object already initialized",C=d.TypeError,x=d.WeakMap;if(h||S.state){var O=S.state||(S.state=new x),T=m(O.get),R=m(O.has),E=m(O.set);l=function(t,r){if(R(O,t))throw new C(w);r.facade=t;E(O,t,r);return r};c=function(t){return T(O,t)||{}};u=function(t){return R(O,t)}}else{var M=_("state");k[M]=!0;l=function(t,r){if(v(t,M))throw new C(w);r.facade=t;y(t,M,r);return r};c=function(t){return v(t,M)?t[M]:{}};u=function(t){return v(t,M)}}t.exports={set:l,get:c,has:u,enforce:function(t){return u(t)?c(t):l(t,{})},getterFor:function(t){return function(r){var o;if(!g(r)||(o=c(r)).type!==t)throw C("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var l=o(10),c=o(25),u=o(51),h=l.WeakMap;t.exports=c(h)&&/native code/.test(u(h))},(t,r,o)=>{var l=o(38),c=o(44),u=l("keys");t.exports=function(t){return u[t]||(u[t]=c(t))}},t=>{t.exports={}},(t,r,o)=>{var l=o(12),c=o(42),u=Function.prototype,h=l&&Object.getOwnPropertyDescriptor,d=c(u,"name"),m=d&&"something"===function something(){}.name,g=d&&(!l||l&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:m,CONFIGURABLE:g}},(t,r,o)=>{var l=o(42),c=o(58),u=o(11),h=o(48);t.exports=function(t,r){for(var o=c(r),d=h.f,m=u.f,g=0;g{var l=o(27),c=o(19),u=o(59),h=o(67),d=o(49),m=c([].concat);t.exports=l("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?m(r,o(t)):r}},(t,r,o)=>{var l=o(60),c=o(66).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return l(t,c)}},(t,r,o)=>{var l=o(19),c=o(42),u=o(17),h=o(61).indexOf,d=o(55),m=l([].push);t.exports=function(t,r){var o,l=u(t),g=0,y=[];for(o in l)!c(d,o)&&c(l,o)&&m(y,o);for(;r.length>g;)c(l,o=r[g++])&&(~h(y,o)||m(y,o));return y}},(t,r,o)=>{var l=o(17),c=o(62),u=o(64),createMethod=function(t){return function(r,o,h){var d,m=l(r),g=u(m),y=c(h,g);if(t&&o!=o){for(;g>y;)if((d=m[y++])!=d)return!0}else for(;g>y;y++)if((t||y in m)&&m[y]===o)return t||y||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var l=o(63),c=Math.max,u=Math.min;t.exports=function(t,r){var o=l(t);return o<0?c(o+r,0):u(o,r)}},t=>{var r=Math.ceil,o=Math.floor;t.exports=function(t){var l=+t;return l!=l||0===l?0:(l>0?o:r)(l)}},(t,r,o)=>{var l=o(65);t.exports=function(t){return l(t.length)}},(t,r,o)=>{var l=o(63),c=Math.min;t.exports=function(t){return t>0?c(l(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,o)=>{var l=o(13),c=o(25),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o==g||o!=m&&(c(r)?l(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},m=isForced.NATIVE="N",g=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{"use strict";var l,c,u;function _typeof(t){_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return _typeof(t)}u=function(){function fromArray(r){var o=new t,l=Array.from(r);if(!l.every((function(t){return!Number.isNaN(t)})))throw TypeError('CSSMatrix: "'+r+'" must only have numbers.');if(16===l.length){var c=l[0],u=l[1],h=l[2],d=l[3],m=l[4],g=l[5],y=l[6],v=l[7],S=l[8],_=l[9],k=l[10],w=l[11],C=l[12],x=l[13],O=l[14],T=l[15];o.m11=c;o.a=c;o.m21=m;o.c=m;o.m31=S;o.m41=C;o.e=C;o.m12=u;o.b=u;o.m22=g;o.d=g;o.m32=_;o.m42=x;o.f=x;o.m13=h;o.m23=y;o.m33=k;o.m43=O;o.m14=d;o.m24=v;o.m34=w;o.m44=T}else{if(6!==l.length)throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");var R=l[0],E=l[1],M=l[2],D=l[3],j=l[4],L=l[5];o.m11=R;o.a=R;o.m12=E;o.b=E;o.m21=M;o.c=M;o.m22=D;o.d=D;o.m41=j;o.e=j;o.m42=L;o.f=L}return o}function fromMatrix(r){var o=Object.keys(new t);if("object"===_typeof(r)&&o.every((function(t){return t in r})))return fromArray([r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44]);throw TypeError('CSSMatrix: "'+r+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function fromString(r){if("string"!=typeof r)throw TypeError('CSSMatrix: "'+r+'" is not a string.');var o=String(r).replace(/\s/g,""),l=new t,c='CSSMatrix: invalid transform string "'+r+'"';o.split(")").filter((function(t){return t})).forEach((function(t){var r=t.split("("),o=r[0],u=r[1];if(!u)throw TypeError(c);var h=u.split(",").map((function(t){return t.includes("rad")?parseFloat(t)*(180/Math.PI):parseFloat(t)})),d=h[0],m=h[1],g=h[2],y=h[3],v=[d,m,g],S=[d,m,g,y];if("perspective"===o&&d&&[m,g].every((function(t){return void 0===t})))l.m34=-1/d;else if(o.includes("matrix")&&[6,16].includes(h.length)&&h.every((function(t){return!Number.isNaN(+t)}))){var _=h.map((function(t){return Math.abs(t)<1e-6?0:t}));l=l.multiply(fromArray(_))}else if("translate3d"===o&&v.every((function(t){return!Number.isNaN(+t)})))l=l.translate(d,m,g);else if("translate"===o&&d&&void 0===g)l=l.translate(d,m||0,0);else if("rotate3d"===o&&S.every((function(t){return!Number.isNaN(+t)}))&&y)l=l.rotateAxisAngle(d,m,g,y);else if("rotate"===o&&d&&[m,g].every((function(t){return void 0===t})))l=l.rotate(0,0,d);else if("scale3d"===o&&v.every((function(t){return!Number.isNaN(+t)}))&&v.some((function(t){return 1!==t})))l=l.scale(d,m,g);else if("scale"!==o||Number.isNaN(d)||1===d||void 0!==g)if("skew"===o&&d&&void 0===g){l=l.skewX(d);l=m?l.skewY(m):l}else{if(!(/[XYZ]/.test(o)&&d&&[m,g].every((function(t){return void 0===t}))&&["translate","rotate","scale","skew"].some((function(t){return o.includes(t)}))))throw TypeError(c);if(["skewX","skewY"].includes(o))l=l[o](d);else{var k=o.replace(/[XYZ]/,""),w=o.replace(k,""),C=["X","Y","Z"].indexOf(w),x=[0===C?d:0,1===C?d:0,2===C?d:0];l=l[k].apply(l,x)}}else{var O=Number.isNaN(+m)?d:m;l=l.scale(d,O,1)}}));return l}function Translate(r,o,l){var c=new t;c.m41=r;c.e=r;c.m42=o;c.f=o;c.m43=l;return c}function Rotate(r,o,l){var c=new t,u=Math.PI/180,h=r*u,d=o*u,m=l*u,g=Math.cos(h),y=-Math.sin(h),v=Math.cos(d),S=-Math.sin(d),_=Math.cos(m),k=-Math.sin(m),w=v*_,C=-v*k;c.m11=w;c.a=w;c.m12=C;c.b=C;c.m13=S;var x=y*S*_+g*k;c.m21=x;c.c=x;var O=g*_-y*S*k;c.m22=O;c.d=O;c.m23=-y*v;c.m31=y*k-g*S*_;c.m32=y*_+g*S*k;c.m33=g*v;return c}function RotateAxisAngle(r,o,l,c){var u=new t,h=c*(Math.PI/360),d=Math.sin(h),m=Math.cos(h),g=d*d,y=Math.sqrt(r*r+o*o+l*l),v=r,S=o,_=l;if(0===y){v=0;S=0;_=1}else{v/=y;S/=y;_/=y}var k=v*v,w=S*S,C=_*_,x=1-2*(w+C)*g;u.m11=x;u.a=x;var O=2*(v*S*g+_*d*m);u.m12=O;u.b=O;u.m13=2*(v*_*g-S*d*m);var T=2*(S*v*g-_*d*m);u.m21=T;u.c=T;var R=1-2*(C+k)*g;u.m22=R;u.d=R;u.m23=2*(S*_*g+v*d*m);u.m31=2*(_*v*g+S*d*m);u.m32=2*(_*S*g-v*d*m);u.m33=1-2*(k+w)*g;return u}function Scale(r,o,l){var c=new t;c.m11=r;c.a=r;c.m22=o;c.d=o;c.m33=l;return c}function SkewX(r){var o=new t,l=r*Math.PI/180,c=Math.tan(l);o.m21=c;o.c=c;return o}function SkewY(r){var o=new t,l=r*Math.PI/180,c=Math.tan(l);o.m12=c;o.b=c;return o}function Multiply(t,r){return fromArray([r.m11*t.m11+r.m12*t.m21+r.m13*t.m31+r.m14*t.m41,r.m11*t.m12+r.m12*t.m22+r.m13*t.m32+r.m14*t.m42,r.m11*t.m13+r.m12*t.m23+r.m13*t.m33+r.m14*t.m43,r.m11*t.m14+r.m12*t.m24+r.m13*t.m34+r.m14*t.m44,r.m21*t.m11+r.m22*t.m21+r.m23*t.m31+r.m24*t.m41,r.m21*t.m12+r.m22*t.m22+r.m23*t.m32+r.m24*t.m42,r.m21*t.m13+r.m22*t.m23+r.m23*t.m33+r.m24*t.m43,r.m21*t.m14+r.m22*t.m24+r.m23*t.m34+r.m24*t.m44,r.m31*t.m11+r.m32*t.m21+r.m33*t.m31+r.m34*t.m41,r.m31*t.m12+r.m32*t.m22+r.m33*t.m32+r.m34*t.m42,r.m31*t.m13+r.m32*t.m23+r.m33*t.m33+r.m34*t.m43,r.m31*t.m14+r.m32*t.m24+r.m33*t.m34+r.m34*t.m44,r.m41*t.m11+r.m42*t.m21+r.m43*t.m31+r.m44*t.m41,r.m41*t.m12+r.m42*t.m22+r.m43*t.m32+r.m44*t.m42,r.m41*t.m13+r.m42*t.m23+r.m43*t.m33+r.m44*t.m43,r.m41*t.m14+r.m42*t.m24+r.m43*t.m34+r.m44*t.m44])}var t=function CSSMatrix(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var o=this;o.a=1;o.b=0;o.c=0;o.d=1;o.e=0;o.f=0;o.m11=1;o.m12=0;o.m13=0;o.m14=0;o.m21=0;o.m22=1;o.m23=0;o.m24=0;o.m31=0;o.m32=0;o.m33=1;o.m34=0;o.m41=0;o.m42=0;o.m43=0;o.m44=1;if(t&&t.length){var l=[16,6].some((function(r){return r===t.length}))?t:t[0];return o.setMatrixValue(l)}return o},r={isIdentity:{configurable:!0},is2D:{configurable:!0}};r.isIdentity.set=function(t){this.isIdentity=t};r.isIdentity.get=function(){var t=this;return 1===t.m11&&0===t.m12&&0===t.m13&&0===t.m14&&0===t.m21&&1===t.m22&&0===t.m23&&0===t.m24&&0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m41&&0===t.m42&&0===t.m43&&1===t.m44};r.is2D.get=function(){var t=this;return 0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m43&&1===t.m44};r.is2D.set=function(t){this.is2D=t};t.prototype.setMatrixValue=function setMatrixValue(t){return[Array,Float64Array,Float32Array].some((function(r){return t instanceof r}))?fromArray(t):"string"==typeof t&&t.length&&"none"!==t?fromString(t):"object"===_typeof(t)?fromMatrix(t):this};t.prototype.toArray=function toArray(){var t=this,r=Math.pow(10,6);return(t.is2D?[t.a,t.b,t.c,t.d,t.e,t.f]:[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]).map((function(t){return Math.abs(t)<1e-6?0:(t*r>>0)/r}))};t.prototype.toString=function toString(){var t=this.toArray();return(this.is2D?"matrix":"matrix3d")+"("+t+")"};t.prototype.toJSON=function toJSON(){var t=this,r=t.is2D,o=t.isIdentity;return Object.assign({},t,{is2D:r,isIdentity:o})};t.prototype.multiply=function multiply(t){return Multiply(this,t)};t.prototype.translate=function translate(t,r,o){var l=r,c=o;void 0===c&&(c=0);void 0===l&&(l=0);return Multiply(this,Translate(t,l,c))};t.prototype.scale=function scale(t,r,o){var l=r,c=o;void 0===l&&(l=t);void 0===c&&(c=1);return Multiply(this,Scale(t,l,c))};t.prototype.rotate=function rotate(t,r,o){var l=t,c=r,u=o;void 0===c&&(c=0);if(void 0===u){u=l;l=0}return Multiply(this,Rotate(l,c,u))};t.prototype.rotateAxisAngle=function rotateAxisAngle(t,r,o,l){if([t,r,o,l].some((function(t){return Number.isNaN(t)})))throw new TypeError("CSSMatrix: expecting 4 values");return Multiply(this,RotateAxisAngle(t,r,o,l))};t.prototype.skewX=function skewX(t){return Multiply(this,SkewX(t))};t.prototype.skewY=function skewY(t){return Multiply(this,SkewY(t))};t.prototype.transformPoint=function transformPoint(t){var r=Translate(t.x,t.y,t.z);r.m44=t.w||1;return{x:(r=this.multiply(r)).m41,y:r.m42,z:r.m43,w:r.m44}};t.prototype.transform=function transform(t){var r=this,o=r.m11*t.x+r.m12*t.y+r.m13*t.z+r.m14*t.w,l=r.m21*t.x+r.m22*t.y+r.m23*t.z+r.m24*t.w,c=r.m31*t.x+r.m32*t.y+r.m33*t.z+r.m34*t.w,u=r.m41*t.x+r.m42*t.y+r.m43*t.z+r.m44*t.w;return{x:o/u,y:l/u,z:c/u,w:u}};Object.defineProperties(t.prototype,r);Object.assign(t,{Translate:Translate,Rotate:Rotate,RotateAxisAngle:RotateAxisAngle,Scale:Scale,SkewX:SkewX,SkewY:SkewY,Multiply:Multiply,fromArray:fromArray,fromMatrix:fromMatrix,fromString:fromString});Object.assign(t,{Version:"0.0.24"});return t},"object"===_typeof(r)?t.exports=u():void 0!==(c="function"==typeof(l=u)?l.call(r,o,r,t):l)&&(t.exports=c)},(t,r,o)=>{o(71);o(86);var l=o(96);t.exports=l.Object.fromEntries},(t,r,o)=>{"use strict";var l=o(17),c=o(72),u=o(77),h=o(52),d=o(78),m="Array Iterator",g=h.set,y=h.getterFor(m);t.exports=d(Array,"Array",(function(t,r){g(this,{type:m,target:l(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,o=t.kind,l=t.index++;if(!r||l>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==o?{value:l,done:!1}:"values"==o?{value:r[l],done:!1}:{value:[l,r[l]],done:!1}}),"values");u.Arguments=u.Array;c("keys");c("values");c("entries")},(t,r,o)=>{var l=o(37),c=o(73),u=o(48),h=l("unscopables"),d=Array.prototype;null==d[h]&&u.f(d,h,{configurable:!0,value:c(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{var l,c=o(49),u=o(74),h=o(66),d=o(55),m=o(76),g=o(46),y=o(54),v=y("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"