/*! For license information please see 900.1482b221.js.LICENSE.txt */ (self.webpackChunkapp=self.webpackChunkapp||[]).push([[900],{9109:function(module,__unused_webpack_exports,__webpack_require__){function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||a(t)},t.bytesToString=c,t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"===typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var n=e.match(/\./g);(null===n||void 0===n?void 0:n.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=f(e)}catch(o){}}var i=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(a){}return null},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();var r=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(r);else for(var n=0;n<32;n++)r[n]=Math.floor(255*Math.random());return c(r)},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;rt?t.normalize("NFKC"):g.get(r)))},t.objectFromMap=function(e){var t=Object.create(null);for(var[r,n]of e)t[r]=n;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=s,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=u,t.stringToPDFString=function(e){var t;if(e[0]>="\xef"&&("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),n=u(e);return r.decode(n)}catch(c){o('stringToPDFString: "'.concat(c,'".'))}for(var i=[],a=0,s=e.length;a=n.WARNINGS&&console.log("Warning: ".concat(e))}function a(e){throw new Error(e)}function s(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var l=function(){function e(t,r){this.constructor===e&&a("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();function c(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||a("Invalid argument for bytesToString");var t=e.length,r=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,r){return"#".concat(d[e]).concat(d[t]).concat(d[r])}static scaleMinMax(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){var r=this.applyTransform(e,t),n=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),o=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],n[0],i[0],o[0]),Math.min(r[1],n[1],i[1],o[1]),Math.max(r[0],n[0],i[0],o[0]),Math.max(r[1],n[1],i[1],o[1])]}static inverseTransform(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(r+o)/2,s=Math.sqrt((r+o)**2-4*(r*o-i*n))/2,l=a+s||1,c=a-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),n=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>n)return null;var i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>o?null:[r,i,n,o]}static bezierBoundingBox(e,t,r,n,i,o,a,s){for(var l,c,u,d,p,f,h,v,g=[],m=[[],[]],b=0;b<2;++b)if(0===b?(c=6*e-12*r+6*i,l=-3*e+9*r-9*i+3*a,u=3*r-3*e):(c=6*t-12*n+6*o,l=-3*t+9*n-9*o+3*s,u=3*n-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;0<(d=-u/c)&&d<1&&g.push(d)}else h=c*c-4*u*l,v=Math.sqrt(h),h<0||(0<(p=(-c+v)/(2*l))&&p<1&&g.push(p),0<(f=(-c-v)/(2*l))&&f<1&&g.push(f));for(var y,_=g.length,A=_;_--;)y=1-(d=g[_]),m[0][_]=y*y*y*e+3*y*y*d*r+3*y*d*d*i+d*d*d*a,m[1][_]=y*y*y*t+3*y*y*d*n+3*y*d*d*o+d*d*d*s;return m[0][A]=e,m[1][A]=t,m[0][A+1]=a,m[1][A+1]=s,m[0].length=m[1].length=A+2,[Math.min(...m[0]),Math.min(...m[1]),Math.max(...m[0]),Math.max(...m[1])]}};var p=[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 f(e){return decodeURIComponent(escape(e))}var h=new WeakMap;t.PromiseCapability=class{constructor(){_classPrivateFieldInitSpec(this,h,{writable:!0,value:!1}),this.promise=new Promise(((e,t)=>{this.resolve=t=>{_classPrivateFieldSet(this,h,!0),e(t)},this.reject=e=>{_classPrivateFieldSet(this,h,!0),t(e)}}))}get settled(){return _classPrivateFieldGet(this,h)}};var v=null,g=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;var DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,r;if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");var n=new PDFDocumentLoadingTask,{docId:i}=n,o=e.url?getUrlProp(e.url):null,a=e.data?getDataProp(e.data):null,s=e.httpHeaders||null,l=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,p=e.worker instanceof PDFWorker?e.worker:null,f=e.verbosity,h="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,v="string"===typeof e.cMapUrl?e.cMapUrl:null,g=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,b="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,y=e.StandardFontDataFactory||DefaultStandardFontDataFactory,_=!0!==e.stopAtErrors,A=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,C=!1!==e.isEvalSupported,w="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,S=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,k="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,x=!0===e.fontExtraProperties,P=!0===e.enableXfa,E=e.ownerDocument||globalThis.document,O=!0===e.disableRange,T=!0===e.disableStream,R=!0===e.disableAutoFetch,M=!0===e.pdfBug,F=u?u.length:null!==(r=e.length)&&void 0!==r?r:NaN,D="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!k,I="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&y===_display_utils.DOMStandardFontDataFactory&&v&&b&&(0,_display_utils.isValidFetchUrl)(v,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(b,document.baseURI),B=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:E}),j=e.filterFactory||new DefaultFilterFactory({docId:i,ownerDocument:E});(0,_util.setVerbosityLevel)(f);var N={canvasFactory:B,filterFactory:j};if(I||(N.cMapReaderFactory=new m({baseUrl:v,isCompressed:g}),N.standardFontDataFactory=new y({baseUrl:b})),!p){var L={verbosity:f,port:_worker_options.GlobalWorkerOptions.workerPort};p=L.port?PDFWorker.fromPort(L):new PDFWorker(L),n._worker=p}var Z={docId:i,apiVersion:"3.11.174",data:a,password:c,disableAutoFetch:R,rangeChunkSize:d,length:F,docBaseUrl:h,enableXfa:P,evaluatorOptions:{maxImageSize:A,disableFontFace:k,ignoreErrors:_,isEvalSupported:C,isOffscreenCanvasSupported:w,canvasMaxAreaInBytes:S,fontExtraProperties:x,useSystemFonts:D,cMapUrl:I?v:null,standardFontDataUrl:I?b:null}},G={ignoreErrors:_,isEvalSupported:C,disableFontFace:k,fontExtraProperties:x,enableXfa:P,ownerDocument:E,disableAutoFetch:R,pdfBug:M,styleElement:null};return p.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(p,Z),t=new Promise((function(e){var t,r;u?t=new _transport_stream.PDFDataTransportStream({length:F,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:O,disableStream:T},u):a||(r={url:o,length:F,httpHeaders:s,withCredentials:l,rangeChunkSize:d,disableRange:O,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(r):(0,_display_utils.isValidFetchUrl)(r.url)?new _displayFetch_stream.PDFFetchStream(r):new _displayNetwork.PDFNetworkStream(r)),e(t)}));return Promise.all([e,t]).then((function(e){var[t,r]=e;if(n.destroyed)throw new Error("Loading aborted");var o=new _message_handler.MessageHandler(i,t,p.port),a=new WorkerTransport(o,n,r,G,N);n._transport=a,o.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(e,t){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator((function*(e,t){if(e.destroyed)throw new Error("Worker was destroyed");var r=yield e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return r}))).apply(this,arguments)}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch(t){if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{constructor(){var e,t;this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(e=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),t=e++,e)),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){var e=this;return _asyncToGenerator((function*(){e.destroyed=!0;try{var t,r;null!==(t=e._worker)&&void 0!==t&&t.port&&(e._worker._pendingDestroy=!0),yield null===(r=e._transport)||void 0===r?void 0:r.destroy()}catch(i){var n;throw null!==(n=e._worker)&&void 0!==n&&n.port&&delete e._worker._pendingDestroy,i}e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))()}}var _docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(var r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(var r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(var t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(var e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;var t=[];for(var r in e)t.push(...e[r]);return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_tryCleanup=new WeakSet,_abortDelayedCleanup=new WeakSet;class PDFPageProxy{constructor(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classPrivateMethodInitSpec(this,_abortDelayedCleanup),_classPrivateMethodInitSpec(this,_tryCleanup),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pendingCleanup,{writable:!0,value:!1}),this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=n?new _display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){var{scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=0,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:i})}getAnnotations(){var{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}getXfa(){var e=this;return _asyncToGenerator((function*(){var t;return(null===(t=e._transport._htmlForXfa)||void 0===t?void 0:t.children[e._pageIndex])||null}))()}render(e){var t,r,{canvasContext:n,viewport:i,intent:o="display",annotationMode:a=_util.AnnotationMode.ENABLE,transform:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:p=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");var f=this._transport.getRenderingIntent(o,a,p);_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),c||(c=this._transport.getOptionalContentConfig());var h=this._intentStates.get(f.cacheKey);h||(h=Object.create(null),this._intentStates.set(f.cacheKey,h)),h.streamReaderCancelTimeout&&(clearTimeout(h.streamReaderCancelTimeout),h.streamReaderCancelTimeout=null);var v,g=!!(f.renderingIntent&_util.RenderingIntentFlag.PRINT);h.displayReadyCapability||(h.displayReadyCapability=new _util.PromiseCapability,h.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(v=this._stats)||void 0===v||v.time("Page Request"),this._pumpOperatorList(f));var m=e=>{var t,r;h.renderTasks.delete(b),(this._maybeCleanupAfterRender||g)&&_classPrivateFieldSet(this,_pendingCleanup,!0),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!g),e?(b.capability.reject(e),this._abortOperatorList({intentState:h,reason:e instanceof Error?e:new Error(e)})):b.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(r=this._stats)||void 0===r||r.timeEnd("Overall")},b=new InternalRenderTask({callback:m,params:{canvasContext:n,viewport:i,transform:s,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:h.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:d});((r=h).renderTasks||(r.renderTasks=new Set)).add(b);var y=b.task;return Promise.all([h.displayReadyCapability.promise,c]).then((e=>{var t,[r,n]=e;this.destroyed?m():(null===(t=this._stats)||void 0===t||t.time("Rendering"),b.initializeGraphics({transparency:r,optionalContentConfig:n}),b.operatorListChanged())})).catch(m),y}getOperatorList(){var e,t,r,{intent:n="display",annotationMode:i=_util.AnnotationMode.ENABLE,printAnnotationStorage:o=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=this._transport.getRenderingIntent(n,i,o,!0),s=this._intentStates.get(a.cacheKey);return s||(s=Object.create(null),this._intentStates.set(a.cacheKey,s)),s.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(e))},s.opListReadCapability=new _util.PromiseCapability,((t=s).renderTasks||(t.renderTasks=new Set)).add(e),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(r=this._stats)||void 0===r||r.time("Page Request"),this._pumpOperatorList(a)),s.opListReadCapability.promise}streamTextContent(){var{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size(e){return e.items.length}})}getTextContent(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));var t=this.streamTextContent(e);return new Promise((function(e,r){var n=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){n.read().then((function(r){var{value:n,done:o}=r;o?e(i):(Object.assign(i.styles,n.styles),i.items.push(...n.items),t())}),r)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;var e=[];for(var t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(var r of t.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),Promise.all(e)}cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(this,_pendingCleanup,!0);var t=_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}_startRenderPage(e,t){var r,n,i=this._intentStates.get(t);i&&(null===(r=this._stats)||void 0===r||r.timeEnd("Page Request"),null===(n=i.displayReadyCapability)||void 0===n||n.resolve(e))}_renderPageChunk(e,t){for(var r=0,n=e.length;r{a.read().then((e=>{var{value:t,done:r}=e;r?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){for(var t of(s.operatorList.lastChunk=!0,s.renderTasks))t.operatorListChanged();_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){var{intentState:t,reason:r,force:n=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof _display_utils.RenderingCancelledException){var i=RENDERING_CANCELLED_TIMEOUT;return r.extraDelay>0&&r.extraDelay<1e3&&(i+=r.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})}),i))}}if(t.streamReader.cancel(new _util.AbortException(r.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(var[o,a]of this._intentStates)if(a===t){this._intentStates.delete(o);break}this.cleanup()}}}get stats(){return this._stats}}function _tryCleanup2(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),!_classPrivateFieldGet(this,_pendingCleanup)||this.destroyed)return!1;if(e)return _classPrivateFieldSet(this,_delayedCleanupTimeout,setTimeout((()=>{_classPrivateFieldSet(this,_delayedCleanupTimeout,null),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;for(var{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),!0}function _abortDelayedCleanup2(){_classPrivateFieldGet(this,_delayedCleanupTimeout)&&(clearTimeout(_classPrivateFieldGet(this,_delayedCleanupTimeout)),_classPrivateFieldSet(this,_delayedCleanupTimeout,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,_deferred,{writable:!0,value:Promise.resolve()})}postMessage(e,t){var r={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(this,_deferred).then((()=>{for(var e of _classPrivateFieldGet(this,_listeners))e.call(this,r)}))}addEventListener(e,t){_classPrivateFieldGet(this,_listeners).add(t)}removeEventListener(e,t){_classPrivateFieldGet(this,_listeners).delete(t)}terminate(){_classPrivateFieldGet(this,_listeners).clear()}}exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(i){return!1}var n=new URL(t,r);return r.origin===n.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){var{name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){var n;if(null!==(n=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))&&void 0!==n&&n.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts)||_classStaticPrivateFieldSpecSet(PDFWorker,PDFWorker,_workerPorts,new WeakMap)).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));var t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),n=()=>{t.removeEventListener("error",i),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||n()};t.addEventListener("error",i),r.on("test",(e=>{t.removeEventListener("error",i),this.destroyed?n():e?(this._messageHandler=r,this._port=t,this._webWorker=t,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",i),this.destroyed)n();else try{o()}catch(r){this._setupFakeWorker()}}));var o=()=>{var e=new Uint8Array;r.send("test",e,[e.buffer])};return void o()}catch(a){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)this._readyCapability.reject(new Error("Worker was destroyed"));else{var t=new LoopbackPort;this._port=t;var r="fake".concat(PDFWorkerUtil.fakeWorkerId++),n=new _message_handler.MessageHandler(r+"_worker",r,t);e.setup(n,t);var i=new _message_handler.MessageHandler(r,r+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})}})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var t;if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var r=null===(t=_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts))||void 0===t?void 0:t.get(e.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}static get _setupFakeWorkerGlobal(){var _this3=this,loader=function(){var _ref8=_asyncToGenerator((function*(){var mainWorkerMessageHandler=_this3._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){var worker=eval("require")(_this3.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this3.workerSrc),window.pdfjsWorker.WorkerMessageHandler}));return function(){return _ref8.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={writable:!0,value:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_cacheSimpleMethod=new WeakSet;class WorkerTransport{constructor(e,t,r,n,i){_classPrivateMethodInitSpec(this,_cacheSimpleMethod),_classPrivateFieldInitSpec(this,_methodPromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_passwordCapability,{writable:!0,value:null}),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,o=_annotation_storage.SerializableEmpty;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o=((i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE)&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return n&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:"".concat(i,"_").concat(o.hash),annotationStorageSerializable:o}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(this,_passwordCapability))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];for(var r of _classPrivateFieldGet(this,_pageCache).values())t.push(r._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e;this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldGet(this,_methodPromises).clear(),this.filterFactory.destroy(),null===(e=this._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){var{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{var r=new _util.PromiseCapability,n=this._fullReader;return n.headersReady.then((()=>{var e;n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),n.onProgress=e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded,total:e.total})});r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function(e){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{var{pdfInfo:r}=e;this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(r,this))})),e.on("DocException",(function(e){var r;switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(_classPrivateFieldSet(this,_passwordCapability,new _util.PromiseCapability),t.onPassword)try{t.onPassword((e=>{e instanceof Error?_classPrivateFieldGet(this,_passwordCapability).reject(e):_classPrivateFieldGet(this,_passwordCapability).resolve({password:e})}),e.code)}catch(r){_classPrivateFieldGet(this,_passwordCapability).reject(r)}else _classPrivateFieldGet(this,_passwordCapability).reject(new _util.PasswordException(e.message,e.code));return _classPrivateFieldGet(this,_passwordCapability).promise})),e.on("DataLoaded",(e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(this,_pageCache).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var r,[n,i,o]=t;if(!this.destroyed&&!this.commonObjs.has(n))switch(i){case"Font":var a=this._params;if("error"in o){var s=o.error;(0,_util.warn)("Error during font loading: ".concat(s)),this.commonObjs.resolve(n,s);break}var l=a.pdfBug&&null!==(r=globalThis.FontInspector)&&void 0!==r&&r.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,c=new _font_loader.FontFaceObject(o,{isEvalSupported:a.isEvalSupported,disableFontFace:a.disableFontFace,ignoreErrors:a.ignoreErrors,inspectFont:l});this.fontLoader.bind(c).catch((t=>e.sendWithPromise("FontFallback",{id:n}))).finally((()=>{!a.fontExtraProperties&&c.data&&(c.data=null),this.commonObjs.resolve(n,c)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,o);break;default:throw new Error("Got unknown common object type ".concat(i))}})),e.on("obj",(e=>{var[t,r,n,i]=e;if(!this.destroyed){var o=_classPrivateFieldGet(this,_pageCache).get(r);if(!o.objs.has(t))switch(n){case"Image":if(o.objs.resolve(t,i),i){var a;if(i.bitmap){var{width:s,height:l}=i;a=s*l*4}else{var c;a=(null===(c=i.data)||void 0===c?void 0:c.length)||0}a>_util.MAX_IMAGE_SIZE_TO_CACHE&&(o._maybeCleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(t,i);break;default:throw new Error("Got unknown object type ".concat(n))}}})),e.on("DocProgress",(e=>{var r;this.destroyed||null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var{map:r,transfers:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:r,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},n).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var t=e-1,r=_classPrivateFieldGet(this,_pagePromises).get(t);if(r)return r;var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(t,e,this,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(t,r),r}));return _classPrivateFieldGet(this,_pagePromises).set(t,n),n}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetFieldObjects")}hasJSActions(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){var e="GetMetadata",t=_classPrivateFieldGet(this,_methodPromises).get(e);if(t)return t;var r=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,r,n,i;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(r=this._fullReader)||void 0===r?void 0:r.filename)&&void 0!==t?t:null,contentLength:null!==(n=null===(i=this._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==n?n:null}}));return _classPrivateFieldGet(this,_methodPromises).set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var e=arguments,t=this;return _asyncToGenerator((function*(){var r=e.length>0&&void 0!==e[0]&&e[0];if(!t.destroyed){for(var n of(yield t.messageHandler.sendWithPromise("Cleanup",null),_classPrivateFieldGet(t,_pageCache).values()))if(!n.cleanup())throw new Error("startCleanup: Page ".concat(n.pageNumber," is currently rendering."));t.commonObjs.clear(),r||t.fontLoader.clear(),_classPrivateFieldGet(t,_methodPromises).clear(),t.filterFactory.destroy(!0)}}))()}get loadingParams(){var{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}function _cacheSimpleMethod2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateFieldGet(this,_methodPromises).get(e);if(r)return r;var n=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(this,_methodPromises).set(e,n),n}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return r.capability.promise.then((()=>t(r.data))),null}var n=_classPrivateFieldGet(this,_objs)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){var t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);r.data=t,r.capability.resolve()}clear(){for(var e in _classPrivateFieldGet(this,_objs)){var t,{data:r}=_classPrivateFieldGet(this,_objs)[e];null===r||void 0===r||null===(t=r.bitmap)||void 0===t||t.close()}_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(e){var t;return(t=_classPrivateFieldGet(this,_objs))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(this,_internalRenderTask).cancel(null,e)}get separateAnnots(){var{separateAnnots:e}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!e)return!1;var{annotationCanvasMap:t}=_classPrivateFieldGet(this,_internalRenderTask);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){var{callback:t,params:r,objs:n,commonObjs:i,annotationCanvasMap:o,operatorList:a,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:p=null}=e;this.callback=t,this.params=r,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!==typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,r,{transparency:n=!1,optionalContentConfig:i}=e;if(!this.cancelled){if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var{canvasContext:o,viewport:a,transform:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:a,transparency:n,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}cancel(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),r))}operatorListChanged(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var e=this;return _asyncToGenerator((function*(){e.cancelled||(e.operatorListIdx=e.gfx.executeOperatorList(e.operatorList,e.operatorListIdx,e._continueBound,e.stepper),e.operatorListIdx===e.operatorList.argsArray.length&&(e.running=!1,e.operatorList.lastChunk&&(e.gfx.endDrawing(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(e._canvas),e.callback())))}))()}}var _canvasInUse={writable:!0,value:new WeakSet},version="3.11.174";exports.version=version;var build="ce8716743";exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var n=r(1),i=r(4),o=r(8),a=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=a;var s=new WeakMap,l=new WeakMap,c=new WeakSet;class u{constructor(){_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:new Map}),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){var r=_classPrivateFieldGet(this,l).get(e);return void 0===r?t:Object.assign(t,r)}getRawValue(e){return _classPrivateFieldGet(this,l).get(e)}remove(e){if(_classPrivateFieldGet(this,l).delete(e),0===_classPrivateFieldGet(this,l).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(var t of _classPrivateFieldGet(this,l).values())if(t instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){var r=_classPrivateFieldGet(this,l).get(e),n=!1;if(void 0!==r)for(var[o,a]of Object.entries(t))r[o]!==a&&(n=!0,r[o]=a);else n=!0,_classPrivateFieldGet(this,l).set(e,t);n&&_classPrivateMethodGet(this,c,d).call(this),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(this,l).has(e)}getAll(){return _classPrivateFieldGet(this,l).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,l)):null}setAll(e){for(var[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return _classPrivateFieldGet(this,l).size}resetModified(){_classPrivateFieldGet(this,s)&&(_classPrivateFieldSet(this,s,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new f(this)}get serializable(){if(0===_classPrivateFieldGet(this,l).size)return a;var e=new Map,t=new o.MurmurHash3_64,r=[],n=Object.create(null),s=!1;for(var[c,u]of _classPrivateFieldGet(this,l)){var d=u instanceof i.AnnotationEditor?u.serialize(!1,n):u;d&&(e.set(c,d),t.update("".concat(c,":").concat(JSON.stringify(d))),s||(s=!!d.bitmap))}if(s)for(var p of e.values())p.bitmap&&r.push(p.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:r}:a}}function d(){_classPrivateFieldGet(this,s)||(_classPrivateFieldSet(this,s,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var p=new WeakMap;class f extends u{constructor(e){super(),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0});var{map:t,hash:r,transfers:n}=e.serializable,i=structuredClone(t,n?{transfer:n}:null);_classPrivateFieldSet(this,p,{map:i,hash:r,transfers:n})}get print(){(0,n.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(this,p)}}t.PrintAnnotationStorage=f},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var i=r(5),o=r(1),a=r(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakSet,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet,P=new WeakSet,E=new WeakSet;class O{constructor(e){_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateFieldInitSpec(this,s,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,y,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:O._zIndex++}),this.constructor===O&&(0,o.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;var{rotation:t,rawDims:{pageWidth:r,pageHeight:n,pageX:i,pageY:a}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,n],this.pageTranslation=[i,a];var[T,R]=this.parentDimensions;this.x=e.x/T,this.y=e.y/R,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,o.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){var t=new Z({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(O._l10nPromise||(O._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)])))),null!==t&&void 0!==t&&t.strings)for(var r of t.strings)O._l10nPromise.set(r,e.get(r));if(-1===O._borderLineWidth){var n=getComputedStyle(document.documentElement);O._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,o.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return _classPrivateFieldGet(this,y)}set _isDraggable(e){var t;_classPrivateFieldSet(this,y,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}center(){var[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(this,_)}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(_classPrivateFieldGet(this,g)?_classPrivateFieldSet(this,g,!1):this.parent.setSelected(this))}focusout(e){var t;if(this._focusEventsAllowed&&this.isAttachedToDOM){var r=e.relatedTarget;null!==r&&void 0!==r&&r.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,r,n){var[i,o]=this.parentDimensions;[r,n]=this.screenToPageTranslation(r,n),this.x=(e+r)/i,this.y=(t+n)/o,this.fixAndSetPosition()}translate(e,t){_classPrivateMethodGet(this,A,T).call(this,this.parentDimensions,e,t)}translateInPage(e,t){_classPrivateMethodGet(this,A,T).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){var[r,n]=this.parentDimensions;if(this.x+=e/r,this.y+=t/n,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var{x:i,y:o}=this.div.getBoundingClientRect();this.parent.findNewParent(this,i,o)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var{x:a,y:s}=this,[l,c]=_classPrivateMethodGet(this,C,R).call(this);a+=l,s+=c,this.div.style.left="".concat((100*a).toFixed(2),"%"),this.div.style.top="".concat((100*s).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){var[e,t]=this.pageDimensions,{x:r,y:n,width:i,height:o}=this;switch(i*=e,o*=t,r*=e,n*=t,this.rotation){case 0:r=Math.max(0,Math.min(e-i,r)),n=Math.max(0,Math.min(t-o,n));break;case 90:r=Math.max(0,Math.min(e-o,r)),n=Math.min(t,Math.max(i,n));break;case 180:r=Math.min(e,Math.max(i,r)),n=Math.min(t,Math.max(o,n));break;case 270:r=Math.min(e,Math.max(o,r)),n=Math.max(0,Math.min(t-i,n))}this.x=r/=e,this.y=n/=t;var[a,s]=_classPrivateMethodGet(this,C,R).call(this);r+=a,n+=s;var{style:l}=this.div;l.left="".concat((100*r).toFixed(2),"%"),l.top="".concat((100*n).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return _classStaticPrivateMethodGet(O,O,M).call(O,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return _classStaticPrivateMethodGet(O,O,M).call(O,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){var{parentScale:e,pageDimensions:[t,r]}=this,n=t*e,i=r*e;return o.FeatureTest.isCSSRoundSupported?[Math.round(n),Math.round(i)]:[n,i]}setDims(e,t){var r,[n,i]=this.parentDimensions;this.div.style.width="".concat((100*e/n).toFixed(2),"%"),_classPrivateFieldGet(this,p)||(this.div.style.height="".concat((100*t/i).toFixed(2),"%")),null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.classList.toggle("small",ee.stopPropagation())),t.addEventListener("click",(t=>{t.preventDefault(),e._uiManager.editAltText(e)}),{capture:!0}),t.addEventListener("keydown",(r=>{r.target===t&&"Enter"===r.key&&(r.preventDefault(),e._uiManager.editAltText(e))})),_classPrivateMethodGet(e,P,j).call(e),e.div.append(t),O.SMALL_EDITOR_SIZE||(O.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*t.getBoundingClientRect().width)))}}))()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:_classPrivateFieldGet(this,s),decorative:_classPrivateFieldGet(this,l)}}set altTextData(e){var{altText:t,decorative:r}=e;_classPrivateFieldGet(this,s)===t&&_classPrivateFieldGet(this,l)===r||(_classPrivateFieldSet(this,s,t),_classPrivateFieldSet(this,l,r),_classPrivateMethodGet(this,P,j).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(this,h)),this.div.addEventListener("focusout",_classPrivateFieldGet(this,v));var[e,t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth="".concat((100*t/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/t).toFixed(2),"%"));var[r,n]=this.getInitialTranslation();return this.translate(r,n),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){var{isMac:t}=o.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(this,g,!0),_classPrivateMethodGet(this,E,L).call(this,e))}moveInDOM(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t){var r=this.parentScale,[n,i]=this.pageDimensions,[o,a]=this.pageTranslation,s=e/r,l=t/r,c=this.x*n,u=this.y*i,d=this.width*n,p=this.height*i;switch(this.rotation){case 0:return[c+s+o,i-u-l-p+a,c+s+d+o,i-u-l+a];case 90:return[c+l+o,i-u+s+a,c+l+p+o,i-u+s+d+a];case 180:return[c-s-d+o,i-u+l+a,c-s+o,i-u+l+p+a];case 270:return[c-l-p+o,i-u-s-d+a,c-l+o,i-u-s+a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){var[r,n,i,o]=e,a=i-r,s=o-n;switch(this.rotation){case 0:return[r,t-o,a,s];case 90:return[r,t-n,s,a];case 180:return[i,t-n,a,s];case 270:return[i,t-o,s,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(this,b,!0)}disableEditMode(){_classPrivateFieldSet(this,b,!1)}isInEditMode(){return _classPrivateFieldGet(this,b)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(this,h)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(this,v))}serialize(){(0,o.unreachable)("An editor must be serializable")}static deserialize(e,t,r){var n=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r});n.rotation=e.rotation;var[i,o]=n.pageDimensions,[a,s,l,c]=n.getRectInCurrentCoords(e.rect,o);return n.x=a/i,n.y=s/o,n.width=l/i,n.height=c/o,n}remove(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(this,h)),this.div.removeEventListener("focusout",_classPrivateFieldGet(this,v)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(this,c))||void 0===e||e.remove(),_classPrivateFieldSet(this,c,null),_classPrivateFieldSet(this,u,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(_classPrivateMethodGet(this,S,D).call(this),_classPrivateFieldGet(this,f).classList.remove("hidden"))}select(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e,t,r;null===(e=_classPrivateFieldGet(this,f))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(r=this.div)&&void 0!==r&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!0)}enableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(this,m)}set isEditing(e){_classPrivateFieldSet(this,m,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){_classPrivateFieldSet(this,p,!0);var r=e/t,{style:n}=this.div;n.aspectRatio=r,n.height="auto"}static get MIN_SIZE(){return 16}}function T(e,t,r){var[n,i]=e;[t,r]=this.screenToPageTranslation(t,r),this.x+=t/n,this.y+=r/i,this.fixAndSetPosition()}function R(){var[e,t]=this.parentDimensions,{_borderLineWidth:r}=n,i=r/e,o=r/t;switch(this.rotation){case 90:return[-i,o];case 180:return[i,o];case 270:return[i,-o];default:return[-i,-o]}}function M(e,t,r){switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function F(e){switch(e){case 90:var[t,r]=this.pageDimensions;return[0,-t/r,r/t,0];case 180:return[-1,0,0,-1];case 270:var[n,i]=this.pageDimensions;return[0,n/i,-i/n,0];default:return[1,0,0,1]}}function D(){if(!_classPrivateFieldGet(this,f)){_classPrivateFieldSet(this,f,document.createElement("div")),_classPrivateFieldGet(this,f).classList.add("resizers");var e=["topLeft","topRight","bottomRight","bottomLeft"];for(var t of(this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft"),e)){var r=document.createElement("div");_classPrivateFieldGet(this,f).append(r),r.classList.add("resizer",t),r.addEventListener("pointerdown",_classPrivateMethodGet(this,k,I).bind(this,t)),r.addEventListener("contextmenu",a.noContextMenu)}this.div.prepend(_classPrivateFieldGet(this,f))}}function I(e,t){t.preventDefault();var{isMac:r}=o.FeatureTest.platform;if(!(0!==t.button||t.ctrlKey&&r)){var n=_classPrivateMethodGet(this,x,B).bind(this,e),i=this._isDraggable;this._isDraggable=!1;var a={passive:!0,capture:!0};window.addEventListener("pointermove",n,a);var s=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,p=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;var f=()=>{this._isDraggable=i,window.removeEventListener("pointerup",f),window.removeEventListener("blur",f),window.removeEventListener("pointermove",n,a),this.parent.div.style.cursor=d,this.div.style.cursor=p;var e=this.x,t=this.y,r=this.width,o=this.height;e===s&&t===l&&r===c&&o===u||this.addCommands({cmd:()=>{this.width=r,this.height=o,this.x=e,this.y=t;var[n,i]=this.parentDimensions;this.setDims(n*r,i*o),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=s,this.y=l;var[e,t]=this.parentDimensions;this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",f),window.addEventListener("blur",f)}}function B(e,t){var r,i,[o,a]=this.parentDimensions,s=this.x,l=this.y,c=this.width,u=this.height,d=n.MIN_SIZE/o,p=n.MIN_SIZE/a,f=e=>Math.round(1e4*e)/1e4,h=_classPrivateMethodGet(this,w,F).call(this,this.rotation),v=(e,t)=>[h[0]*e+h[2]*t,h[1]*e+h[3]*t],g=_classPrivateMethodGet(this,w,F).call(this,360-this.rotation),m=!1,b=!1;switch(e){case"topLeft":m=!0,r=(e,t)=>[0,0],i=(e,t)=>[e,t];break;case"topMiddle":r=(e,t)=>[e/2,0],i=(e,t)=>[e/2,t];break;case"topRight":m=!0,r=(e,t)=>[e,0],i=(e,t)=>[0,t];break;case"middleRight":b=!0,r=(e,t)=>[e,t/2],i=(e,t)=>[0,t/2];break;case"bottomRight":m=!0,r=(e,t)=>[e,t],i=(e,t)=>[0,0];break;case"bottomMiddle":r=(e,t)=>[e/2,t],i=(e,t)=>[e/2,0];break;case"bottomLeft":m=!0,r=(e,t)=>[0,t],i=(e,t)=>[e,0];break;case"middleLeft":b=!0,r=(e,t)=>[0,t/2],i=(e,t)=>[e,t/2]}var y,_,A=r(c,u),C=i(c,u),S=v(...C),k=f(s+S[0]),x=f(l+S[1]),P=1,E=1,[O,T]=this.screenToPageTranslation(t.movementX,t.movementY);if([O,T]=(y=O/o,_=T/a,[g[0]*y+g[2]*_,g[1]*y+g[3]*_]),m){var R=Math.hypot(c,u);P=E=Math.max(Math.min(Math.hypot(C[0]-A[0]-O,C[1]-A[1]-T)/R,1/c,1/u),d/c,p/u)}else b?P=Math.max(d,Math.min(1,Math.abs(C[0]-A[0]-O)))/c:E=Math.max(p,Math.min(1,Math.abs(C[1]-A[1]-T)))/u;var M=f(c*P),D=f(u*E),I=k-(S=v(...i(M,D)))[0],B=x-S[1];this.width=M,this.height=D,this.x=I,this.y=B,this.setDims(o*M,a*D),this.fixAndSetPosition()}function j(){return N.apply(this,arguments)}function N(){return(N=_asyncToGenerator((function*(){var e=_classPrivateFieldGet(this,c);if(e){var t;if(!_classPrivateFieldGet(this,s)&&!_classPrivateFieldGet(this,l))return e.classList.remove("done"),void(null===(t=_classPrivateFieldGet(this,u))||void 0===t||t.remove());n._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));var r=_classPrivateFieldGet(this,u);if(!r){_classPrivateFieldSet(this,u,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip");var i=r.id="alt-text-tooltip-".concat(this.id);e.setAttribute("aria-describedby",i),e.addEventListener("mouseenter",(()=>{_classPrivateFieldSet(this,d,setTimeout((()=>{_classPrivateFieldSet(this,d,null),_classPrivateFieldGet(this,u).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),100))})),e.addEventListener("mouseleave",(()=>{var e;clearTimeout(_classPrivateFieldGet(this,d)),_classPrivateFieldSet(this,d,null),null===(e=_classPrivateFieldGet(this,u))||void 0===e||e.classList.remove("show")}))}e.classList.add("done"),r.innerText=_classPrivateFieldGet(this,l)?yield n._l10nPromise.get("editor_alt_text_decorative_tooltip"):_classPrivateFieldGet(this,s),r.parentNode||e.append(r)}}))).apply(this,arguments)}function L(e){if(this._isDraggable){var t,r,n=this._uiManager.isSelected(this);this._uiManager.setUpDragSession(),n&&(t={passive:!0,capture:!0},r=e=>{var[t,r]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,r)},window.addEventListener("pointermove",r,t));var i=()=>{if(window.removeEventListener("pointerup",i),window.removeEventListener("blur",i),n&&window.removeEventListener("pointermove",r,t),_classPrivateFieldSet(this,g,!1),!this._uiManager.endDragSession()){var{isMac:a}=o.FeatureTest.platform;e.ctrlKey&&!a||e.shiftKey||e.metaKey&&a?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",i),window.addEventListener("blur",i)}}n=O,_defineProperty(O,"_borderLineWidth",-1),_defineProperty(O,"_colorManager",new i.ColorManager),_defineProperty(O,"_zIndex",1),_defineProperty(O,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=O;class Z extends O{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,r){for(var n of r)t.addEventListener(n,e[n].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=r(1),o=r(6),a=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,a,{writable:!0,value:0})}getId(){var e,t;return"".concat(i.AnnotationEditorPrefix).concat((_classPrivateFieldSet(this,a,(e=_classPrivateFieldGet(this,a),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;class p{constructor(){_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,l,{writable:!0,value:(0,i.getUuid)()}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null})}static get _isSVGFittingCanvas(){var e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';var r=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,i.shadow)(this,"_isSVGFittingCanvas",r)}getFromFile(e){var t=this;return _asyncToGenerator((function*(){var{lastModified:r,name:n,size:i,type:o}=e;return _classPrivateMethodGet(t,d,f).call(t,"".concat(r,"_").concat(n,"_").concat(i,"_").concat(o),e)}))()}getFromUrl(e){var t=this;return _asyncToGenerator((function*(){return _classPrivateMethodGet(t,d,f).call(t,e,e)}))()}getFromId(e){var t=this;return _asyncToGenerator((function*(){_classPrivateFieldGet(t,u)||_classPrivateFieldSet(t,u,new Map);var r=_classPrivateFieldGet(t,u).get(e);return r?r.bitmap?(r.refCounter+=1,r):r.file?t.getFromFile(r.file):t.getFromUrl(r.url):null}))()}getSvgUrl(e){var t=_classPrivateFieldGet(this,u).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var t=_classPrivateFieldGet(this,u).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith("image_".concat(_classPrivateFieldGet(this,l),"_"))}}function f(e,t){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator((function*(e,t){var r;_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var i=_classPrivateFieldGet(this,u).get(e);if(null===i)return null;if(null!==(r=i)&&void 0!==r&&r.bitmap)return i.refCounter+=1,i;try{var o,a,s;if(i||(i={bitmap:null,id:"image_".concat(_classPrivateFieldGet(this,l),"_").concat((_classPrivateFieldSet(this,c,(o=_classPrivateFieldGet(this,c),a=o++,o)),a)),refCounter:0,isSvg:!1}),"string"===typeof t){i.url=t;var d=yield fetch(t);if(!d.ok)throw new Error(d.statusText);s=yield d.blob()}else s=i.file=t;if("image/svg+xml"===s.type){var p=n._isSVGFittingCanvas,f=new FileReader,h=new Image,v=new Promise(((e,t)=>{h.onload=()=>{i.bitmap=h,i.isSvg=!0,e()},f.onload=_asyncToGenerator((function*(){var e=i.svgUrl=f.result;h.src=(yield p)?"".concat(e,"#svgView(preserveAspectRatio(none))"):e})),h.onerror=f.onerror=t}));f.readAsDataURL(s),yield v}else i.bitmap=yield createImageBitmap(s);i.refCounter=1}catch(g){console.error(g),i=null}return _classPrivateFieldGet(this,u).set(e,i),i&&_classPrivateFieldGet(this,u).set(i.id,i),i}))).apply(this,arguments)}n=p;var v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap;class y{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,v,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:-1}),_classPrivateFieldSet(this,m,e)}add(e){var{cmd:t,undo:r,mustExec:n,type:i=NaN,overwriteIfSameType:o=!1,keepUndo:a=!1}=e;if(n&&t(),!_classPrivateFieldGet(this,g)){var s={cmd:t,undo:r,type:i};if(-1===_classPrivateFieldGet(this,b))return _classPrivateFieldGet(this,v).length>0&&(_classPrivateFieldGet(this,v).length=0),_classPrivateFieldSet(this,b,0),void _classPrivateFieldGet(this,v).push(s);if(o&&_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].type===i)return a&&(s.undo=_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo),void(_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)]=s);var l=_classPrivateFieldGet(this,b)+1;l===_classPrivateFieldGet(this,m)?_classPrivateFieldGet(this,v).splice(0,1):(_classPrivateFieldSet(this,b,l),l<_classPrivateFieldGet(this,v).length&&_classPrivateFieldGet(this,v).splice(l)),_classPrivateFieldGet(this,v).push(s)}}undo(){-1!==_classPrivateFieldGet(this,b)&&(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo(),_classPrivateFieldSet(this,g,!1),_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)-1))}redo(){_classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1&&(_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)+1),_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].cmd(),_classPrivateFieldSet(this,g,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(this,b)}hasSomethingToRedo(){return _classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1}destroy(){_classPrivateFieldSet(this,v,null)}}t.CommandManager=y;var _=new WeakSet;class A{constructor(e){_classPrivateMethodInitSpec(this,_),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var{isMac:t}=i.FeatureTest.platform;for(var[r,n,o={}]of e)for(var a of r){var s=a.startsWith("mac+");t&&s?(this.callbacks.set(a.slice(4),{callback:n,options:o}),this.allKeys.add(a.split("+").at(-1))):t||s||(this.callbacks.set(a,{callback:n,options:o}),this.allKeys.add(a.split("+").at(-1)))}}exec(e,t){if(this.allKeys.has(t.key)){var r=this.callbacks.get(_classPrivateMethodGet(this,_,C).call(this,t));if(r){var{callback:n,options:{bubbles:i=!1,args:o=[],checker:a=null}}=r;a&&!a(e,t)||(n.bind(e,...o)(),i||(t.stopPropagation(),t.preventDefault()))}}}}function C(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=A;class w{get _colors(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,o.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){var t=(0,o.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(var[r,n]of this._colors)if(n.every(((e,r)=>e===t[r])))return w._colorsMapping.get(r);return t}getHexCode(e){var t=this._colors.get(e);return t?i.Util.makeHexColor(...t):e}}_defineProperty(w,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=w;var S=new WeakMap,k=new WeakMap,x=new WeakMap,P=new WeakMap,E=new WeakMap,O=new WeakMap,T=new WeakMap,R=new WeakMap,M=new WeakMap,F=new WeakMap,D=new WeakMap,I=new WeakMap,B=new WeakMap,j=new WeakMap,N=new WeakMap,L=new WeakMap,Z=new WeakMap,G=new WeakMap,z=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap,V=new WeakMap,Y=new WeakMap,K=new WeakMap,X=new WeakMap,$=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakSet,oe=new WeakSet,ae=new WeakSet,se=new WeakSet,le=new WeakSet,ce=new WeakSet,ue=new WeakSet,de=new WeakSet,pe=new WeakSet,fe=new WeakSet,he=new WeakSet,ve=new WeakSet,ge=new WeakSet;class me{static get _keyboardManager(){var e=me.prototype,t=e=>{var{activeElement:t}=document;return t&&_classPrivateFieldGet(e,re).contains(t)&&e.hasSomethingToControl()},r=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new A([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}]]))}constructor(e,t,r,n,a,l){_classPrivateMethodInitSpec(this,ge),_classPrivateMethodInitSpec(this,ve),_classPrivateMethodInitSpec(this,he),_classPrivateMethodInitSpec(this,fe),_classPrivateMethodInitSpec(this,pe),_classPrivateMethodInitSpec(this,de),_classPrivateMethodInitSpec(this,ue),_classPrivateMethodInitSpec(this,ce),_classPrivateMethodInitSpec(this,le),_classPrivateMethodInitSpec(this,se),_classPrivateMethodInitSpec(this,ae),_classPrivateMethodInitSpec(this,oe),_classPrivateMethodInitSpec(this,ie),_classPrivateFieldInitSpec(this,S,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,k,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,x,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:new y}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:new s}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:i.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:this.blur.bind(this)}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:this.focus.bind(this)}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:this.copy.bind(this)}),_classPrivateFieldInitSpec(this,H,{writable:!0,value:this.cut.bind(this)}),_classPrivateFieldInitSpec(this,V,{writable:!0,value:this.paste.bind(this)}),_classPrivateFieldInitSpec(this,Y,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,K,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,X,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,$,{writable:!0,value:this.onScaleChanging.bind(this)}),_classPrivateFieldInitSpec(this,Q,{writable:!0,value:this.onRotationChanging.bind(this)}),_classPrivateFieldInitSpec(this,J,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,ee,{writable:!0,value:[0,0]}),_classPrivateFieldInitSpec(this,te,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,re,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ne,{writable:!0,value:null}),_classPrivateFieldSet(this,re,e),_classPrivateFieldSet(this,ne,t),_classPrivateFieldSet(this,P,r),this._eventBus=n,this._eventBus._on("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._on("pagechanging",_classPrivateFieldGet(this,X)),this._eventBus._on("scalechanging",_classPrivateFieldGet(this,$)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldSet(this,E,a.annotationStorage),_classPrivateFieldSet(this,I,a.filterFactory),_classPrivateFieldSet(this,z,l),this.viewParameters={realScale:o.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){for(var e of(_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,oe,ye).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._off("pagechanging",_classPrivateFieldGet(this,X)),this._eventBus._off("scalechanging",_classPrivateFieldGet(this,$)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldGet(this,x).values()))e.destroy();_classPrivateFieldGet(this,x).clear(),_classPrivateFieldGet(this,k).clear(),_classPrivateFieldGet(this,D).clear(),_classPrivateFieldSet(this,S,null),_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,O).destroy(),_classPrivateFieldGet(this,P).destroy()}get hcmFilter(){return(0,i.shadow)(this,"hcmFilter",_classPrivateFieldGet(this,z)?_classPrivateFieldGet(this,I).addHCMFilter(_classPrivateFieldGet(this,z).foreground,_classPrivateFieldGet(this,z).background):"none")}get direction(){return(0,i.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(this,re)).direction)}editAltText(e){var t;null===(t=_classPrivateFieldGet(this,P))||void 0===t||t.editAltText(this,e)}onPageChanging(e){var{pageNumber:t}=e;_classPrivateFieldSet(this,T,t-1)}focusMainContainer(){_classPrivateFieldGet(this,re).focus()}findParent(e,t){for(var r of _classPrivateFieldGet(this,x).values()){var{x:n,y:i,width:o,height:a}=r.div.getBoundingClientRect();if(e>=n&&e<=n+o&&t>=i&&t<=i+a)return r}return null}disableUserSelect(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(this,ne).classList.toggle("noUserSelect",e)}addShouldRescale(e){_classPrivateFieldGet(this,D).add(e)}removeShouldRescale(e){_classPrivateFieldGet(this,D).delete(e)}onScaleChanging(e){var{scale:t}=e;for(var r of(this.commitOrRemove(),this.viewParameters.realScale=t*o.PixelsPerInch.PDF_TO_CSS_UNITS,_classPrivateFieldGet(this,D)))r.onScaleChanging()}onRotationChanging(e){var{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(this,E)||_classPrivateFieldGet(this,E).has(e.id)||_classPrivateFieldGet(this,E).setValue(e.id,e)}blur(){if(this.hasSelection){var{activeElement:e}=document;for(var t of _classPrivateFieldGet(this,G))if(t.div.contains(e)){_classPrivateFieldSet(this,L,[t,e]),t._focusEventsAllowed=!1;break}}}focus(){if(_classPrivateFieldGet(this,L)){var[e,t]=_classPrivateFieldGet(this,L);_classPrivateFieldSet(this,L,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}}addEditListeners(){_classPrivateMethodGet(this,ae,_e).call(this),_classPrivateMethodGet(this,le,Ce).call(this)}removeEditListeners(){_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,ce,we).call(this)}copy(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(this,S))||void 0===t||t.commitOrRemove(),this.hasSelection){var r=[];for(var n of _classPrivateFieldGet(this,G)){var i=n.serialize(!0);i&&r.push(i)}0!==r.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(r))}}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();var{clipboardData:t}=e;for(var r of t.items)for(var n of _classPrivateFieldGet(this,F))if(n.isHandlingMimeForPasting(r.type))return void n.paste(r,this.currentLayer);var o=t.getData("application/pdfjs");if(o){try{o=JSON.parse(o)}catch(u){return void(0,i.warn)('paste: "'.concat(u.message,'".'))}if(Array.isArray(o)){this.unselectAll();var a=this.currentLayer;try{var s=[];for(var l of o){var c=a.deserialize(l);if(!c)return;s.push(c)}this.addCommands({cmd:()=>{for(var e of s)_classPrivateMethodGet(this,he,Ee).call(this,e);_classPrivateMethodGet(this,ge,Te).call(this,s)},undo:()=>{for(var e of s)e.remove()},mustExec:!0})}catch(u){(0,i.warn)('paste: "'.concat(u.message,'".'))}}}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||me._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_classPrivateMethodGet(this,ie,be).call(this),_classPrivateMethodGet(this,ae,_e).call(this),_classPrivateMethodGet(this,le,Ce).call(this),_classPrivateMethodGet(this,ue,Se).call(this,{isEditing:_classPrivateFieldGet(this,Z)!==i.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),hasSelectedEditor:!1})):(_classPrivateMethodGet(this,oe,ye).call(this),_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,ce,we).call(this),_classPrivateMethodGet(this,ue,Se).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!_classPrivateFieldGet(this,F))for(var t of(_classPrivateFieldSet(this,F,e),_classPrivateFieldGet(this,F)))_classPrivateMethodGet(this,de,ke).call(this,t.defaultPropertiesToUpdate)}getId(){return _classPrivateFieldGet(this,B).getId()}get currentLayer(){return _classPrivateFieldGet(this,x).get(_classPrivateFieldGet(this,T))}getLayer(e){return _classPrivateFieldGet(this,x).get(e)}get currentPageIndex(){return _classPrivateFieldGet(this,T)}addLayer(e){_classPrivateFieldGet(this,x).set(e.pageIndex,e),_classPrivateFieldGet(this,j)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(this,x).delete(e.pageIndex)}updateMode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(this,Z)!==e){if(_classPrivateFieldSet(this,Z,e),e===i.AnnotationEditorType.NONE)return this.setEditingState(!1),void _classPrivateMethodGet(this,fe,Pe).call(this);for(var r of(this.setEditingState(!0),_classPrivateMethodGet(this,pe,xe).call(this),this.unselectAll(),_classPrivateFieldGet(this,x).values()))r.updateMode(e);if(t)for(var n of _classPrivateFieldGet(this,k).values())if(n.annotationElementId===t){this.setSelected(n),n.enterInEditMode();break}}}updateToolbar(e){e!==_classPrivateFieldGet(this,Z)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(this,F))if(e!==i.AnnotationEditorParamsType.CREATE){for(var r of _classPrivateFieldGet(this,G))r.updateParams(e,t);for(var n of _classPrivateFieldGet(this,F))n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(this,N)!==e)for(var t of(_classPrivateFieldSet(this,N,e),_classPrivateFieldGet(this,x).values()))e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}getEditors(e){var t=[];for(var r of _classPrivateFieldGet(this,k).values())r.pageIndex===e&&t.push(r);return t}getEditor(e){return _classPrivateFieldGet(this,k).get(e)}addEditor(e){_classPrivateFieldGet(this,k).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(this,k).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(this,R).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(this,E))||void 0===t||t.remove(e.id)}addDeletedAnnotationElement(e){_classPrivateFieldGet(this,R).add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return _classPrivateFieldGet(this,R).has(e)}removeDeletedAnnotationElement(e){_classPrivateFieldGet(this,R).delete(e.annotationElementId),e.deleted=!1}setActiveEditor(e){_classPrivateFieldGet(this,S)!==e&&(_classPrivateFieldSet(this,S,e),e&&_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(this,G).has(e))return _classPrivateFieldGet(this,G).delete(e),e.unselect(),void _classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}setSelected(e){for(var t of _classPrivateFieldGet(this,G))t!==e&&t.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(this,G).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(this,G).delete(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(this,G).size}undo(){_classPrivateFieldGet(this,O).undo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}redo(){_classPrivateFieldGet(this,O).redo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}addCommands(e){_classPrivateFieldGet(this,O).add(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}delete(){if(this.commitOrRemove(),this.hasSelection){var e=[..._classPrivateFieldGet(this,G)];this.addCommands({cmd:()=>{for(var t of e)t.remove()},undo:()=>{for(var t of e)_classPrivateMethodGet(this,he,Ee).call(this,t)},mustExec:!0})}}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(this,S))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return _classPrivateFieldGet(this,S)||this.hasSelection}selectAll(){for(var e of _classPrivateFieldGet(this,G))e.commit();_classPrivateMethodGet(this,ge,Te).call(this,_classPrivateFieldGet(this,k).values())}unselectAll(){if(_classPrivateFieldGet(this,S))_classPrivateFieldGet(this,S).commitOrRemove();else if(this.hasSelection){for(var e of _classPrivateFieldGet(this,G))e.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){_classPrivateFieldGet(this,ee)[0]+=e,_classPrivateFieldGet(this,ee)[1]+=t;var[r,n]=_classPrivateFieldGet(this,ee),i=[..._classPrivateFieldGet(this,G)];for(var o of(_classPrivateFieldGet(this,te)&&clearTimeout(_classPrivateFieldGet(this,te)),_classPrivateFieldSet(this,te,setTimeout((()=>{_classPrivateFieldSet(this,te,null),_classPrivateFieldGet(this,ee)[0]=_classPrivateFieldGet(this,ee)[1]=0,this.addCommands({cmd:()=>{for(var e of i)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(r,n)},undo:()=>{for(var e of i)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(-r,-n)},mustExec:!1})}),1e3)),i))o.translateInPage(e,t)}}setUpDragSession(){if(this.hasSelection)for(var e of(this.disableUserSelect(!0),_classPrivateFieldSet(this,M,new Map),_classPrivateFieldGet(this,G)))_classPrivateFieldGet(this,M).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}endDragSession(){if(!_classPrivateFieldGet(this,M))return!1;this.disableUserSelect(!1);var e=_classPrivateFieldGet(this,M);_classPrivateFieldSet(this,M,null);var t=!1;for(var[{x:r,y:n,pageIndex:i},o]of e)o.newX=r,o.newY=n,o.newPageIndex=i,t||(t=r!==o.savedX||n!==o.savedY||i!==o.savedPageIndex);if(!t)return!1;var a=(e,t,r,n)=>{if(_classPrivateFieldGet(this,k).has(e.id)){var i=_classPrivateFieldGet(this,x).get(n);i?e._setParentAndPosition(i,t,r):(e.pageIndex=n,e.x=t,e.y=r)}};return this.addCommands({cmd:()=>{for(var[t,{newX:r,newY:n,newPageIndex:i}]of e)a(t,r,n,i)},undo:()=>{for(var[t,{savedX:r,savedY:n,savedPageIndex:i}]of e)a(t,r,n,i)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(_classPrivateFieldGet(this,M))for(var r of _classPrivateFieldGet(this,M).keys())r.drag(e,t)}rebuild(e){if(null===e.parent){var t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return _classPrivateFieldGet(this,S)===e}getActive(){return _classPrivateFieldGet(this,S)}getMode(){return _classPrivateFieldGet(this,Z)}get imageManager(){return(0,i.shadow)(this,"imageManager",new p)}}function be(){window.addEventListener("focus",_classPrivateFieldGet(this,W)),window.addEventListener("blur",_classPrivateFieldGet(this,U))}function ye(){window.removeEventListener("focus",_classPrivateFieldGet(this,W)),window.removeEventListener("blur",_classPrivateFieldGet(this,U))}function _e(){window.addEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function Ae(){window.removeEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function Ce(){document.addEventListener("copy",_classPrivateFieldGet(this,q)),document.addEventListener("cut",_classPrivateFieldGet(this,H)),document.addEventListener("paste",_classPrivateFieldGet(this,V))}function we(){document.removeEventListener("copy",_classPrivateFieldGet(this,q)),document.removeEventListener("cut",_classPrivateFieldGet(this,H)),document.removeEventListener("paste",_classPrivateFieldGet(this,V))}function Se(e){Object.entries(e).some((e=>{var[t,r]=e;return _classPrivateFieldGet(this,J)[t]!==r}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,J),e)})}function ke(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function xe(){if(!_classPrivateFieldGet(this,j))for(var e of(_classPrivateFieldSet(this,j,!0),_classPrivateFieldGet(this,x).values()))e.enable()}function Pe(){if(this.unselectAll(),_classPrivateFieldGet(this,j))for(var e of(_classPrivateFieldSet(this,j,!1),_classPrivateFieldGet(this,x).values()))e.disable()}function Ee(e){var t=_classPrivateFieldGet(this,x).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function Oe(){if(0===_classPrivateFieldGet(this,k).size)return!0;if(1===_classPrivateFieldGet(this,k).size)for(var e of _classPrivateFieldGet(this,k).values())return e.isEmpty();return!1}function Te(e){for(var t of(_classPrivateFieldGet(this,G).clear(),e))t.isEmpty()||(_classPrivateFieldGet(this,G).add(t),t.select());_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}_defineProperty(me,"TRANSLATE_SMALL",1),_defineProperty(me,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=me},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){var t=document.createElement("span");for(var r of(t.style.visibility="hidden",document.body.append(t),e.keys())){t.style.color=r;var n=window.getComputedStyle(t).color;e.set(r,q(n))}t.remove()},t.getCurrentTransform=function(e){var{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform();return[t,r,n,i,o,a]},t.getCurrentTransformInverse=function(e){var{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform().invertSelf();return[t,r,n,i,o,a]},t.getFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(U(e))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),i=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(i&&(i=i[0]).includes("%"))try{i=r.exec(decodeURIComponent(i))[0]}catch(a){}return i||t},t.getRGB=q,t.getXfaPageViewport=function(e,t){var{scale:r=1,rotation:n=0}=t,{width:i,height:o}=e.attributes.style,a=[0,0,parseInt(i),parseInt(o)];return new G({viewBox:a,scale:r,rotation:n})},t.isDataScheme=U,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=W,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((r,n)=>{var i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),r(e)},i.onerror=function(){n(new Error("Cannot load script at: ".concat(i.src)))},(document.head||document.documentElement).append(i)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof G){var{pageWidth:i,pageHeight:a}=t.rawDims,{style:s}=e,l=o.FeatureTest.isCSSRoundSupported,c="var(--scale-factor) * ".concat(i,"px"),u="var(--scale-factor) * ".concat(a,"px"),d=l?"round(".concat(c,", 1px)"):"calc(".concat(c,")"),p=l?"round(".concat(u,", 1px)"):"calc(".concat(u,")");r&&t.rotation%180!==0?(s.width=p,s.height=d):(s.width=d,s.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)};var i=r(7),o=r(1),a="http://www.w3.org/2000/svg";class s{}n=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",n.CSS/n.PDF),t.PixelsPerInch=s;var l,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakMap,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet;class P extends i.BaseFilterFactory{constructor(){var{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateFieldInitSpec(this,A,{get:O,set:void 0}),_classPrivateFieldInitSpec(this,_,{get:E,set:void 0}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:0}),_classPrivateFieldSet(this,d,e),_classPrivateFieldSet(this,p,t)}addFilter(e){var t,r;if(!e)return"none";var n,i,o,a,s=_classPrivateFieldGet(this,_).get(e);if(s)return s;if(1===e.length){for(var l=e[0],c=new Array(256),u=0;u<256;u++)c[u]=l[u]/255;a=n=i=o=c.join(",")}else{for(var[p,f,h]=e,v=new Array(256),g=new Array(256),m=new Array(256),b=0;b<256;b++)v[b]=p[b]/255,g[b]=f[b]/255,m[b]=h[b]/255;n=v.join(","),i=g.join(","),o=m.join(","),a="".concat(n).concat(i).concat(o)}if(s=_classPrivateFieldGet(this,_).get(a))return _classPrivateFieldGet(this,_).set(e,s),s;var A="g_".concat(_classPrivateFieldGet(this,d),"_transfer_map_").concat((_classPrivateFieldSet(this,y,(t=_classPrivateFieldGet(this,y),r=t++,t)),r)),C="url(#".concat(A,")");_classPrivateFieldGet(this,_).set(e,C),_classPrivateFieldGet(this,_).set(a,C);var S=_classPrivateMethodGet(this,w,R).call(this,A);return _classPrivateMethodGet(this,k,F).call(this,n,i,o,S),C}addHCMFilter(e,t){var r,n="".concat(e,"-").concat(t);if(_classPrivateFieldGet(this,h)===n)return _classPrivateFieldGet(this,v);if(_classPrivateFieldSet(this,h,n),_classPrivateFieldSet(this,v,"none"),null===(r=_classPrivateFieldGet(this,f))||void 0===r||r.remove(),!e||!t)return _classPrivateFieldGet(this,v);var i=_classPrivateMethodGet(this,x,D).call(this,e);e=o.Util.makeHexColor(...i);var a=_classPrivateMethodGet(this,x,D).call(this,t);if(t=o.Util.makeHexColor(...a),_classPrivateFieldGet(this,A).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(this,v);for(var s=new Array(256),l=0;l<=255;l++){var c=l/255;s[l]=c<=.03928?c/12.92:((c+.055)/1.055)**2.4}var u=s.join(","),p="g_".concat(_classPrivateFieldGet(this,d),"_hcm_filter"),m=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,R).call(this,p));_classPrivateMethodGet(this,k,F).call(this,u,u,u,m),_classPrivateMethodGet(this,C,T).call(this,m);var b=(e,t)=>{for(var r=i[e]/255,n=a[e]/255,o=new Array(t+1),s=0;s<=t;s++)o[s]=r+s/t*(n-r);return o.join(",")};return _classPrivateMethodGet(this,k,F).call(this,b(0,5),b(1,5),b(2,5),m),_classPrivateFieldSet(this,v,"url(#".concat(p,")")),_classPrivateFieldGet(this,v)}addHighlightHCMFilter(e,t,r,n){var i,o="".concat(e,"-").concat(t,"-").concat(r,"-").concat(n);if(_classPrivateFieldGet(this,m)===o)return _classPrivateFieldGet(this,b);if(_classPrivateFieldSet(this,m,o),_classPrivateFieldSet(this,b,"none"),null===(i=_classPrivateFieldGet(this,g))||void 0===i||i.remove(),!e||!t)return _classPrivateFieldGet(this,b);var[a,s]=[e,t].map(_classPrivateMethodGet(this,x,D).bind(this)),l=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),c=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),[u,p]=[r,n].map(_classPrivateMethodGet(this,x,D).bind(this));c{for(var n=new Array(256),i=(c-l)/r,o=e/255,a=(t-e)/(255*r),s=0,u=0;u<=r;u++){for(var d=Math.round(l+u*i),p=o+u*a,f=s;f<=d;f++)n[f]=p;s=d+1}for(var h=s;h<256;h++)n[h]=n[s-1];return n.join(",")},h="g_".concat(_classPrivateFieldGet(this,d),"_hcm_highlight_filter"),v=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,R).call(this,h));return _classPrivateMethodGet(this,C,T).call(this,v),_classPrivateMethodGet(this,k,F).call(this,f(u[0],p[0],5),f(u[1],p[1],5),f(u[2],p[2],5),v),_classPrivateFieldSet(this,b,"url(#".concat(h,")")),_classPrivateFieldGet(this,b)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(this,v)||_classPrivateFieldGet(this,b))||(_classPrivateFieldGet(this,u)&&(_classPrivateFieldGet(this,u).parentNode.parentNode.remove(),_classPrivateFieldSet(this,u,null)),_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).clear(),_classPrivateFieldSet(this,c,null)),_classPrivateFieldSet(this,y,0))}}function E(){return _classPrivateFieldGet(this,c)||_classPrivateFieldSet(this,c,new Map)}function O(){if(!_classPrivateFieldGet(this,u)){var e=_classPrivateFieldGet(this,p).createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;var r=_classPrivateFieldGet(this,p).createElementNS(a,"svg");r.setAttribute("width",0),r.setAttribute("height",0),_classPrivateFieldSet(this,u,_classPrivateFieldGet(this,p).createElementNS(a,"defs")),e.append(r),r.append(_classPrivateFieldGet(this,u)),_classPrivateFieldGet(this,p).body.append(e)}return _classPrivateFieldGet(this,u)}function T(e){var t=_classPrivateFieldGet(this,p).createElementNS(a,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function R(e){var t=_classPrivateFieldGet(this,p).createElementNS(a,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateFieldGet(this,A).append(t),t}function M(e,t,r){var n=_classPrivateFieldGet(this,p).createElementNS(a,t);n.setAttribute("type","discrete"),n.setAttribute("tableValues",r),e.append(n)}function F(e,t,r,n){var i=_classPrivateFieldGet(this,p).createElementNS(a,"feComponentTransfer");n.append(i),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncR",e),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncG",t),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncB",r)}function D(e){return _classPrivateFieldGet(this,A).style.color=e,q(getComputedStyle(_classPrivateFieldGet(this,A)).getPropertyValue("color"))}t.DOMFilterFactory=P;class I extends i.BaseCanvasFactory{constructor(){var{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){var r=this._document.createElement("canvas");return r.width=e,r.height=t,r}}function B(e){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(W(e,document.baseURI)){var r=yield fetch(e);if(!r.ok)throw new Error(r.statusText);return t?new Uint8Array(yield r.arrayBuffer()):(0,o.stringToBytes)(yield r.text())}return new Promise(((r,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){var e;if((200===i.status||0===i.status)&&(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,o.stringToBytes)(i.responseText)),e))return void r(e);n(new Error(i.statusText))}},i.send(null)}))})),j.apply(this,arguments)}t.DOMCanvasFactory=I;class N extends i.BaseCMapReaderFactory{_fetchData(e,t){return B(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=N;class L extends i.BaseStandardFontDataFactory{_fetchData(e){return B(e,!0)}}t.DOMStandardFontDataFactory=L;class Z extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS(a,e)}}t.DOMSVGFactory=Z;class G{constructor(e){var{viewBox:t,scale:r,rotation:n,offsetX:i=0,offsetY:o=0,dontFlip:a=!1}=e;this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=i,this.offsetY=o;var s,l,c,u,d,p,f,h,v=(t[2]+t[0])/2,g=(t[3]+t[1])/2;switch((n%=360)<0&&(n+=360),n){case 180:s=-1,l=0,c=0,u=1;break;case 90:s=0,l=1,c=1,u=0;break;case 270:s=0,l=-1,c=-1,u=0;break;case 0:s=1,l=0,c=0,u=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(c=-c,u=-u),0===s?(d=Math.abs(g-t[1])*r+i,p=Math.abs(v-t[0])*r+o,f=(t[3]-t[1])*r,h=(t[2]-t[0])*r):(d=Math.abs(v-t[0])*r+i,p=Math.abs(g-t[1])*r+o,f=(t[2]-t[0])*r,h=(t[3]-t[1])*r),this.transform=[s*r,l*r,c*r,u*r,d-s*r*v-c*r*g,p-l*r*v-u*r*g],this.width=f,this.height=h}get rawDims(){var{viewBox:e}=this;return(0,o.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){var{scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new G({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:i})}convertToViewportPoint(e,t){return o.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){var t=o.Util.applyTransform([e[0],e[1]],this.transform),r=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=G;class z extends o.BaseException{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function U(e){for(var t=e.length,r=0;r>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,o.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=z,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,o.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,o.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){var e=[],t=0;for(var{name:r}of this.times)t=Math.max(r.length,t);for(var{name:n,start:i,end:o}of this.times)e.push("".concat(n.padEnd(t)," ").concat(o-i,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;l||(l=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=l.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=u,a+=d):"+"===c&&(o-=u,a-=d),new Date(Date.UTC(r,n,i,o,a,s))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var n=r(1);class i{constructor(){this.constructor===i&&(0,n.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,r,n){return"none"}destroy(){}}t.BaseFilterFactory=i;class o{constructor(){this.constructor===o&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,n.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=o;class a{constructor(e){var{baseUrl:t=null,isCompressed:r=!0}=e;this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=r}fetch(e){var t=this;return _asyncToGenerator((function*(){var{name:r}=e;if(!t.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!r)throw new Error("CMap name must be specified.");var i=t.baseUrl+r+(t.isCompressed?".bcmap":""),o=t.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return t._fetchData(i,o).catch((e=>{throw new Error("Unable to load ".concat(t.isCompressed?"binary ":"","CMap at: ").concat(i))}))}))()}_fetchData(e,t){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a;class s{constructor(e){var{baseUrl:t=null}=e;this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}fetch(e){var t=this;return _asyncToGenerator((function*(){var{filename:r}=e;if(!t.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!r)throw new Error("Font filename must be specified.");var n="".concat(t.baseUrl).concat(r);return t._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}))()}_fetchData(e){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),r||(n.setAttribute("width","".concat(e,"px")),n.setAttribute("height","".concat(t,"px"))),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),n}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,n.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(1),i=3285377520,o=4294901760,a=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){var t,r;if("string"===typeof e){t=new Uint8Array(2*e.length),r=0;for(var i=0,s=e.length;i>>8,t[r++]=255&l)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var c=r>>2,u=r-4*c,d=new Uint32Array(t.buffer,0,c),p=0,f=0,h=this.h1,v=this.h2,g=3432918353,m=461845907,b=11601,y=13715,_=0;_>>17)*m&o|p*y&a)<<13|h>>>19)+3864292196:v=5*(v=(v^=f=(f=(f=(f=d[_])*g&o|f*b&a)<<15|f>>>17)*m&o|f*y&a)<<13|v>>>19)+3864292196;switch(p=0,u){case 3:p^=t[4*c+2]<<16;case 2:p^=t[4*c+1]<<8;case 1:p=(p=(p=(p^=t[4*c])*g&o|p*b&a)<<15|p>>>17)*m&o|p*y&a,1&c?h^=p:v^=p}this.h1=h,this.h2=v}hexdigest(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&o|36045*e&a,e=444984403*(e^=(t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16)>>>1)&o|60499*e&a,((e^=(t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=r(1),i=new WeakMap;t.FontLoader=class{constructor(e){var{ownerDocument:t=globalThis.document,styleElement:r=null}=e;_classPrivateFieldInitSpec(this,i,{writable:!0,value:new Set}),this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(var e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),_classPrivateFieldGet(this,i).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(e){var t=this;return _asyncToGenerator((function*(){if(e&&!_classPrivateFieldGet(t,i).has(e.loadedName))if((0,n.assert)(!t.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),t.isFontLoadingAPISupported){var{loadedName:r,src:o,style:a}=e,s=new FontFace(r,o,a);t.addNativeFontFace(s);try{yield s.load(),_classPrivateFieldGet(t,i).add(r)}catch(l){(0,n.warn)("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),t.removeNativeFontFace(s)}}else(0,n.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}))()}bind(e){var t=this;return _asyncToGenerator((function*(){if(!(e.attached||e.missingFile&&!e.systemFontInfo))if(e.attached=!0,e.systemFontInfo)yield t.loadSystemFont(e.systemFontInfo);else if(t.isFontLoadingAPISupported){var r=e.createNativeFontFace();if(r){t.addNativeFontFace(r);try{yield r.loaded}catch(o){throw(0,n.warn)("Failed to load font '".concat(r.family,"': '").concat(o,"'.")),e.disableFontFace=!0,o}}}else{var i=e.createFontFaceRule();if(i){if(t.insertRule(i),t.isSyncFontLoadingSupported)return;yield new Promise((r=>{var n=t._queueLoadingCallback(r);t._prepareFontLoadEvent(e,n)}))}}}))()}get isFontLoadingAPISupported(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,n.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){var e=!1;return(n.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){var{loadingRequests:t}=this,r={done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){var e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(r),r}get _loadTestFont(){var e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,n.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}var o,a,s=this._document.createElement("canvas");s.width=1,s.height=1;var l=s.getContext("2d"),c=0,u="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,p=1482184792,f=r(d=i(d,976,u.length,u),16);for(o=0,a=u.length-3;o30)return(0,n.warn)("Load test font never loaded."),void r();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(u,(()=>{g.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){var{isEvalSupported:r=!0,disableFontFace:n=!1,ignoreErrors:i=!1,inspectFont:o=null}=t;for(var a in this.compiledGlyphs=Object.create(null),e)this[a]=e[a];this.isEvalSupported=!1!==r,this.disableFontFace=!0===n,this.ignoreErrors=!0===i,this._inspectFont=o}createNativeFontFace(){var e,t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;var t,r=(0,n.bytesToString)(this.data),i="url(data:".concat(this.mimetype,";base64,").concat(btoa(r),");");if(this.cssFontInfo){var o="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(o+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),t='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(o,"src:").concat(i,"}")}else t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(i,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,i),t}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r;try{r=e.get(this.loadedName+"_path_"+t)}catch(s){if(!this.ignoreErrors)throw s;return(0,n.warn)('getPathGenerator - ignoring character: "'.concat(s,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.FeatureTest.isEvalSupported){var i=[];for(var o of r){var a=void 0!==o.args?o.args.join(","):"";i.push("c.",o.cmd,"(",a,");\n")}return this.compiledGlyphs[t]=new Function("c","size",i.join(""))}return this.compiledGlyphs[t]=function(e,t){for(var n of r)"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var n=r(7),i=(r(1),function(e){return new Promise(((t,r)=>{__webpack_require__(70172).readFile(e,((e,n)=>{!e&&n?t(new Uint8Array(n)):r(new Error(e))}))}))});class o extends n.BaseFilterFactory{}t.NodeFilterFactory=o;class a extends n.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(93414).createCanvas(e,t)}}t.NodeCanvasFactory=a;class s extends n.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends n.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(1),i=r(6),o=r(12),a=r(13),s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){var n;return void 0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,r)):(n=this.canvasFactory.create(t,r),this.cache[e]=n),n}delete(e){delete this.cache[e]}clear(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,r,n,o,a,s,l,c,u){var[d,p,f,h,v,g]=(0,i.getCurrentTransform)(e);if(0===p&&0===f){var m=s*d+v,b=Math.round(m),y=l*h+g,_=Math.round(y),A=(s+c)*d+v,C=Math.abs(Math.round(A)-b)||1,w=(l+u)*h+g,S=Math.abs(Math.round(w)-_)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(h),b,_),e.drawImage(t,r,n,o,a,0,0,C,S),e.setTransform(d,p,f,h,v,g),[C,S]}if(0===d&&0===h){var k=l*f+v,x=Math.round(k),P=s*p+g,E=Math.round(P),O=(l+u)*f+v,T=Math.abs(Math.round(O)-x)||1,R=(s+c)*p+g,M=Math.abs(Math.round(R)-E)||1;return e.setTransform(0,Math.sign(p),Math.sign(f),0,x,E),e.drawImage(t,r,n,o,a,0,0,M,T),e.setTransform(d,p,f,h,v,g),[M,T]}return e.drawImage(t,r,n,o,a,s,l,c,u),[Math.hypot(d,p)*c,Math.hypot(f,h)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=n.Util.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){var r=n.Util.applyTransform(t,e),i=n.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,r[0],i[0]),this.minY=Math.min(this.minY,r[1],i[1]),this.maxX=Math.max(this.maxX,r[0],i[0]),this.maxY=Math.max(this.maxY,r[1],i[1])}updateScalingPathMinMax(e,t){n.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,r,i,o,a,s,l,c,u){var d=n.Util.bezierBoundingBox(t,r,i,o,a,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(e===o.PathType.STROKE){t||(0,n.unreachable)("Stroke bounding box must include transform.");var i=n.Util.singularValueDecompose2dScale(t),a=i[0]*this.lineWidth/2,s=i[1]*this.lineWidth/2;r[0]-=a,r[1]-=s,r[2]+=a,r[3]+=s}return r}updateClipFromPath(){var e=n.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function p(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,i,o,a,s,c=t.height,u=t.width,d=c%l,p=(c-d)/l,f=0===d?p:p+1,h=e.createImageData(u,l),v=0,g=t.data,m=h.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var b=g.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),_=y.length,A=u+7>>3,C=4294967295,w=n.FeatureTest.isLittleEndian?4278190080:255;for(i=0;iA?u:8*S-7,P=-8&x,E=0,O=0;k>=1}for(;r<_;)y[r++]=0;e.putImageData(h,0,i*l)}}else if(t.kind===n.ImageKind.RGBA_32BPP){for(o=0,s=u*l*4,i=0;i=p&&(s=u*(a=d)),r=0,o=s;o--;)m[r++]=g[v++],m[r++]=g[v++],m[r++]=g[v++],m[r++]=255;e.putImageData(h,0,i*l)}}}}function f(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var r=t.height,n=t.width,i=r%l,o=(r-i)/l,s=0===i?o:o+1,c=e.createImageData(n,l),u=0,d=t.data,p=c.data,f=0;f>8,e[o-2]=e[o-2]*a+r*s>>8,e[o-1]=e[o-1]*a+n*s>>8}}}function m(e,t,r){for(var n=e.length,i=3;i>8]>>8:t[i]*o>>16}}function y(e,t,r,n){var i=n[0],o=n[1],a=n[2]-i,s=n[3]-o;0!==a&&0!==s&&(function(e,t,r,n,i,o,a,s,l,c,u){for(var d=!!o,p=d?o[0]:0,f=d?o[1]:0,h=d?o[2]:0,v="Luminosity"===i?b:m,y=Math.min(n,Math.ceil(1048576/r)),_=0;_1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){var{transform:t,viewport:r,transparency:n=!1,background:o=null}=e,a=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=o||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=l,n){var c=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),v(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,r,i){var o=e.argsArray,a=e.fnArray,s=t||0,l=o.length;if(l===s)return s;for(var c,u=l-s>10&&"function"===typeof r,d=u?Date.now()+15:0,p=0,f=this.commonObjs,h=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((c=a[s])!==n.OPS.dependency)this[c].apply(this,o[s]);else for(var v of o[s]){var g=v.startsWith("g_")?f:h;if(!g.has(v))return g.get(v,r),s}if(++s===l)return s;if(u&&++p>10){if(Date.now()>d)return r(),s;p=0}}}endDrawing(){for(var e of(_classPrivateMethodGet(this,k,E).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this._cachedBitmapsMap.values())){for(var t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),_classPrivateMethodGet(this,x,O).call(this)}_scaleImage(e,t){for(var r,n,i=e.width,o=e.height,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=i,c=o,u="prescale1";a>2&&l>1||s>2&&c>1;){var d=l,p=c;a>2&&l>1&&(a/=l/(d=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2))),s>2&&c>1&&(s/=c/(p=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(n=(r=this.cachedCanvases.getCanvas(u,d,p)).context).clearRect(0,0,d,p),n.drawImage(e,0,0,l,c,0,0,d,p),e=r.canvas,l=d,c=p,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){var t,r,a,s,l=this.ctx,{width:c,height:d}=e,p=this.current.fillColor,h=this.current.patternFill,v=(0,i.getCurrentTransform)(l);if((e.bitmap||e.data)&&e.count>1){var g=e.bitmap||e.data.buffer;r=JSON.stringify(h?v:[v.slice(0,4),p]),(t=this._cachedBitmapsMap.get(g))||(t=new Map,this._cachedBitmapsMap.set(g,t));var m=t.get(r);if(m&&!h)return{canvas:m,offsetX:Math.round(Math.min(v[0],v[2])+v[4]),offsetY:Math.round(Math.min(v[1],v[3])+v[5])};a=m}a||f((s=this.cachedCanvases.getCanvas("maskCanvas",c,d)).context,e);var b=n.Util.transform(v,[1/c,0,0,-1/d,0,0]);b=n.Util.transform(b,[1,0,0,1,0,-d]);var y=n.Util.applyTransform([0,0],b),A=n.Util.applyTransform([c,d],b),C=n.Util.normalizeRect([y[0],y[1],A[0],A[1]]),w=Math.round(C[2]-C[0])||1,S=Math.round(C[3]-C[1])||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,S),x=k.context,P=Math.min(y[0],A[0]),E=Math.min(y[1],A[1]);x.translate(-P,-E),x.transform(...b),a||(a=(a=this._scaleImage(s.canvas,(0,i.getCurrentTransformInverse)(x))).img,t&&h&&t.set(r,a)),x.imageSmoothingEnabled=_((0,i.getCurrentTransform)(x),e.interpolate),u(x,a,0,0,a.width,a.height,0,0,c,d),x.globalCompositeOperation="source-in";var O=n.Util.transform((0,i.getCurrentTransformInverse)(x),[1,0,0,1,-P,-E]);return x.fillStyle=h?p.getPattern(l,this,O,o.PathType.FILL):p,x.fillRect(0,0,c,d),t&&!h&&(this.cachedCanvases.delete("fillCanvas"),t.set(r,k.canvas)),{canvas:k.canvas,offsetX:Math.round(P),offsetY:Math.round(E)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=A[e]}setLineJoin(e){this.ctx.lineJoin=C[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){var e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=n.context;var o=this.ctx;o.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),h(this.suspendedCtx,o),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,r){t.translate(e,r),this.__originalTranslate(e,r)},e.scale=function(e,r){t.scale(e,r),this.__originalScale(e,r)},e.transform=function(e,r,n,i,o,a){t.transform(e,r,n,i,o,a),this.__originalTransform(e,r,n,i,o,a)},e.setTransform=function(e,r,n,i,o,a){t.setTransform(e,r,n,i,o,a),this.__originalSetTransform(e,r,n,i,o,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,r){t.moveTo(e,r),this.__originalMoveTo(e,r)},e.lineTo=function(e,r){t.lineTo(e,r),this.__originalLineTo(e,r)},e.bezierCurveTo=function(e,r,n,i,o,a){t.bezierCurveTo(e,r,n,i,o,a),this.__originalBezierCurveTo(e,r,n,i,o,a)},e.rect=function(e,r,n,i){t.rect(e,r,n,i),this.__originalRect(e,r,n,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),h(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask;y(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}save(){this.inSMaskMode?(h(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),h(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,r,n,i,o){this.ctx.transform(e,t,r,n,i,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){for(var o,a,s=this.ctx,l=this.current,c=l.x,u=l.y,d=(0,i.getCurrentTransform)(s),p=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],f=p?r.slice(0):null,h=0,v=0,g=e.length;h0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof r&&null!==r&&void 0!==r&&r.getPattern?(t.save(),t.strokeStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.FILL),n=!0);var a=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),n&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=w}eoClip(){this.pendingClip=S}beginText(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){for(var r of(t.save(),t.beginPath(),e))t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var r,i=this.commonObjs.get(e),o=this.current;if(!i)throw new Error("Can't find font for ".concat(e));if(o.fontMatrix=i.fontMatrix||n.FONT_IDENTITY_MATRIX,0!==o.fontMatrix[0]&&0!==o.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,o.fontDirection=-1):o.fontDirection=1,this.current.font=i,this.current.fontSize=t,!i.isType3Font){var a=i.loadedName||"sans-serif",s=(null===(r=i.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(a,'", ').concat(i.fallbackName),l="normal";i.black?l="900":i.bold&&(l="bold");var c=i.italic?"italic":"normal",u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(l," ").concat(u,"px ").concat(s)}}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,n,i,o){this.current.textMatrix=[e,t,r,n,i,o],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,o){var a,s=this.ctx,l=this.current,c=l.font,u=l.textRenderingMode,d=l.fontSize/l.fontSizeScale,p=u&n.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&n.TextRenderingMode.ADD_TO_PATH_FLAG),h=l.patternFill&&!c.missingFile;(c.disableFontFace||f||h)&&(a=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||h?(s.save(),s.translate(t,r),s.beginPath(),a(s,d),o&&s.setTransform(...o),p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fill(),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fillText(e,t,r),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,r)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,i.getCurrentTransform)(s),x:t,y:r,fontSize:d,addToPath:a})}get isFontSubpixelAAEnabled(){var{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,i=3;i0&&t[i]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)}showText(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var s,l=this.ctx,c=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,p=t.fontDirection,f=t.textHScale*p,h=e.length,v=r.vertical,g=v?1:-1,m=r.defaultVMetrics,b=a*t.fontMatrix[0],y=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(l.save(),l.transform(...t.textMatrix),l.translate(t.x,t.y+t.textRise),p>0?l.scale(f,-1):l.scale(f,1),t.patternFill){l.save();var _=t.fillColor.getPattern(l,this,(0,i.getCurrentTransformInverse)(l),o.PathType.FILL);s=(0,i.getCurrentTransform)(l),l.restore(),l.fillStyle=_}var A=t.lineWidth,C=t.textMatrixScale;if(0===C||0===A){var w=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;w!==n.TextRenderingMode.STROKE&&w!==n.TextRenderingMode.FILL_STROKE||(A=this.getSinglePixelWidth())}else A/=C;if(1!==c&&(l.scale(c,c),A/=c),l.lineWidth=A,r.isInvalidPDFjsFont){var S=[],k=0;for(var x of e)S.push(x.unicode),k+=x.width;return l.fillText(S.join(""),0,0),t.x+=k*b*f,l.restore(),void this.compose()}var P,E=0;for(P=0;P0){var Z=1e3*l.measureText(M).width/a*c;if(Bnew P(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new o.TilingPattern(e,r,this.ctx,a,n)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){var i=n.Util.makeHexColor(e,t,r);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(e,t,r){var i=n.Util.makeHexColor(e,t,r);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,o.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),r&&(t.matrix=r),t}shadingFill(e){if(this.contentVisible){var t=this.ctx;this.save();var r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.SHADING);var a=(0,i.getCurrentTransformInverse)(t);if(a){var{width:s,height:l}=t.canvas,[c,u,d,p]=n.Util.getAxialAlignedBoundingBox([0,0,s,l],a);this.ctx.fillRect(c,u,d-c,p-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}beginInlineImage(){(0,n.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,n.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,i.getCurrentTransform)(this.ctx),t)){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.current.updateRectMinMax((0,i.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=(0,i.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");var o=n.Util.getAxialAlignedBoundingBox(e.bbox,(0,i.getCurrentTransform)(t)),a=[0,0,t.canvas.width,t.canvas.height];o=n.Util.intersect(o,a)||[0,0,0,0];var l=Math.floor(o[0]),c=Math.floor(o[1]),u=Math.max(Math.ceil(o[2])-l,1),d=Math.max(Math.ceil(o[3])-c,1),p=1,f=1;u>s&&(p=u/s,u=s),d>s&&(f=d/s,d=s),this.current.startNewPathAndClipBox([0,0,u,d]);var v="groupAt"+this.groupLevel;e.smask&&(v+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(v,u,d),m=g.context;m.scale(1/p,1/f),m.translate(-l,-c),m.transform(...r),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:l,offsetY:c,scaleX:p,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(p,f),t.save()),h(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}endGroup(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();var o=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...o);var a=n.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],o);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(a)}}}beginAnnotation(e,t,r,o,a){if(_classPrivateMethodGet(this,k,E).call(this),v(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){var s=t[2]-t[0],l=t[3]-t[1];if(a&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=l;var[c,u]=n.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:p}=this,f=Math.ceil(s*this.outputScaleX*p),h=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(f,h);var{canvas:g,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-u,0,l*u),v(this.ctx)}else v(this.ctx),this.ctx.rect(t[0],t[1],s,l),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_classPrivateMethodGet(this,x,O).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(this.contentVisible){var t=e.count;(e=this.getObject(e.data,e)).count=t;var r=this.ctx,n=this.processingType3;if(n&&(void 0===n.compiled&&(n.compiled=function(e){var{width:t,height:r}=e;if(t>1e3||r>1e3)return null;var n,i,o,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),s=t+1,l=new Uint8Array(s*(r+1)),c=t+7&-8,u=new Uint8Array(c*r),d=0;for(var p of e.data)for(var f=128;f>0;)u[d++]=p&f?0:255,f>>=1;var h=0;for(0!==u[d=0]&&(l[0]=1,++h),i=1;i>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0)]&&(l[o+i]=a[v],++h),d++;if(u[d-c]!==u[d]&&(l[o+i]=u[d]?2:4,++h),h>1e3)return null}for(o=n*s,0!==u[d=c*(r-1)]&&(l[o]=8,++h),i=1;i1e3)return null;var g=new Int32Array([0,s,-1,0,-s,0,0,0,1]),m=new Path2D;for(n=0;h&&n<=r;n++){for(var b=n*s,y=b+t;b>4,l[b]&=A>>2|A<<2),m.lineTo(b%s,b/s|0),l[b]||--h}while(_!==b);--n}}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.fill(m),e.beginPath(),e.restore()}}(e)),n.compiled))n.compiled(r);else{var i=this._createMaskCanvas(e),o=i.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(o,i.offsetX,i.offsetY),r.restore(),this.compose()}}}paintImageMaskXObjectRepeat(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){e=this.getObject(e.data,e);var l=this.ctx;l.save();var c=(0,i.getCurrentTransform)(l);l.transform(t,r,o,a,0,0);var u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(var d=0,p=s.length;dv?h/v:1,t=f>v?f/v:1}}this._cachedScaleForStroking[0]=e,this._cachedScaleForStroking[1]=t}return this._cachedScaleForStroking}rescaleAndStroke(e){var{ctx:t}=this,{lineWidth:r}=this.current,[n,i]=this.getScaleForStroking();if(t.lineWidth=r||1,1!==n||1!==i){var o=t.getLineDash();if(e&&t.save(),t.scale(n,i),o.length>0){var a=Math.max(n,i);t.setLineDash(o.map((e=>e/a))),t.lineDashOffset/=a}t.stroke(),e&&t.restore()}else t.stroke()}isContentVisible(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function E(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function O(){if(this.pageColors){var e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){var t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}for(var T in t.CanvasGraphics=P,n.OPS)void 0!==P.prototype[T]&&(P.prototype[n.OPS[T]]=P.prototype[T])},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new p}throw new Error("Unknown IR type: ".concat(e[0]))};var n=r(1),i=r(6),o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function a(e,t){if(t){var r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}}t.PathType=o;class s{constructor(){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,n.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){var t;for(var r of("axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1)),this._colorStops))t.addColorStop(r[0],r[1]);return t}getPattern(e,t,r,s){var l;if(s===o.STROKE||s===o.FILL){var c=t.current.getClippedPathBoundingBox(s,(0,i.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,d=Math.ceil(c[3]-c[1])||1,p=t.cachedCanvases.getCanvas("pattern",u,d,!0),f=p.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-c[0],-c[1]),r=n.Util.transform(r,[1,0,0,1,c[0],c[1]]),f.transform(...t.baseTransform),this.matrix&&f.transform(...this.matrix),a(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),l=e.createPattern(p.canvas,"no-repeat");var h=new DOMMatrix(r);l.setTransform(h)}else a(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,r,n,i,o,a,s){var l,c=t.coords,u=t.colors,d=e.data,p=4*e.width;c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=o,o=a,a=l),c[n+1]>c[i+1]&&(l=n,n=i,i=l,l=a,a=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=o,o=a,a=l);var f=(c[r]+t.offsetX)*t.scaleX,h=(c[r+1]+t.offsetY)*t.scaleY,v=(c[n]+t.offsetX)*t.scaleX,g=(c[n+1]+t.offsetY)*t.scaleY,m=(c[i]+t.offsetX)*t.scaleX,b=(c[i+1]+t.offsetY)*t.scaleY;if(!(h>=b))for(var y,_,A,C,w,S,k,x,P=u[o],E=u[o+1],O=u[o+2],T=u[a],R=u[a+1],M=u[a+2],F=u[s],D=u[s+1],I=u[s+2],B=Math.round(h),j=Math.round(b),N=B;N<=j;N++){if(Nb?1:g===b?0:(g-N)/(g-b)),_=T-(T-F)*Z,A=R-(R-D)*Z,C=M-(M-I)*Z}var G=void 0;w=f-(f-m)*(G=Nb?1:(h-N)/(h-b)),S=P-(P-F)*G,k=E-(E-D)*G,x=O-(O-I)*G;for(var z=Math.round(Math.min(y,w)),U=Math.round(Math.max(y,w)),W=p*N+4*z,q=z;q<=U;q++)(G=(y-q)/(y-w))<0?G=0:G>1&&(G=1),d[W++]=_-(_-S)*G|0,d[W++]=A-(A-k)*G|0,d[W++]=C-(C-x)*G|0,d[W++]=255}}function u(e,t,r){var n,i,o=t.coords,a=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(o.length/s)-1,u=s-1;for(n=0;n=n?i=n:r=i/e,{scale:r,size:i}}clipBbox(e,t,r,n,o){var a=n-t,s=o-r;e.ctx.rect(t,r,a,s),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,r,n,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){var i=e.ctx,o=e.current;switch(t){case f:var a=this.ctx;i.fillStyle=a.fillStyle,i.strokeStyle=a.strokeStyle,o.fillColor=a.fillStyle,o.strokeColor=a.strokeStyle;break;case h:var s=n.Util.makeHexColor(r[0],r[1],r[2]);i.fillStyle=s,i.strokeStyle=s,o.fillColor=s,o.strokeColor=s;break;default:throw new n.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,r,i){var a=r;i!==o.SHADING&&(a=n.Util.transform(a,t.baseTransform),this.matrix&&(a=n.Util.transform(a,this.matrix)));var s=this.createPatternCanvas(t),l=new DOMMatrix(a);l=(l=l.translate(s.offsetX,s.offsetY)).scale(1/s.scaleX,1/s.scaleY);var c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}_defineProperty(v,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=v},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=i,t.convertToRGBA=function(e){switch(e.kind){case n.ImageKind.GRAYSCALE_1BPP:return i(e);case n.ImageKind.RGB_24BPP:return function(e){var{src:t,srcPos:r=0,dest:i,destPos:o=0,width:a,height:s}=e,l=0,c=t.length>>2,u=new Uint32Array(t.buffer,r,c);if(n.FeatureTest.isLittleEndian){for(;l>>24|p<<8|4278190080,i[o+2]=p>>>16|f<<16|4278190080,i[o+3]=f>>>8|4278190080}for(var h=4*l,v=t.length;h>>8|255,i[o+2]=m<<16|b>>>16|255,i[o+3]=b<<8|255}for(var y=4*l,_=t.length;y<_;y+=3)i[o++]=t[y]<<24|t[y+1]<<16|t[y+2]<<8|255}return{srcPos:r,destPos:o}}(e)}return null},t.grayToRGBA=function(e,t){if(n.FeatureTest.isLittleEndian)for(var r=0,i=e.length;r>3,f=7&o,h=t.length;i=new Uint32Array(i.buffer);for(var v=0,g=0;g{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=null,r.workerSrc=""},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(1),i=1,o=2,a=1,s=2,l=3,c=4,u=5,d=6,p=7,f=8;function h(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"PasswordException":return new n.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var v=new WeakSet,g=new WeakSet,m=new WeakSet;function b(e){var t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,a=this,s=this.actionHandler[e.action],d={enqueue(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),o.postMessage({sourceName:r,targetName:i,stream:c,streamId:t,chunk:e},s)}},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:u,streamId:t,reason:h(e)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){o.postMessage({sourceName:r,targetName:i,stream:f,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:r,targetName:i,stream:f,streamId:t,reason:h(e)})}))}function y(e){var t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,v=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case f:e.success?v.startCall.resolve():v.startCall.reject(h(e.reason));break;case p:e.success?v.pullCall.resolve():v.pullCall.reject(h(e.reason));break;case d:if(!g){o.postMessage({sourceName:r,targetName:i,stream:p,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=g.onPull)||void 0===t?void 0:t.call(g))})).then((function(){o.postMessage({sourceName:r,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:r,targetName:i,stream:p,streamId:t,reason:h(e)})}));break;case c:if((0,n.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,n.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case u:(0,n.assert)(v,"error should have stream controller"),v.controller.error(h(e.reason)),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(h(e.reason)),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case a:if(!g)break;new Promise((function(t){var r;t(null===(r=g.onCancel)||void 0===r?void 0:r.call(g,h(e.reason)))})).then((function(){o.postMessage({sourceName:r,targetName:i,stream:s,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:r,targetName:i,stream:s,streamId:t,reason:h(e)})})),g.sinkCapability.reject(h(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function _(e,t){return A.apply(this,arguments)}function A(){return(A=_asyncToGenerator((function*(e,t){var r,n,i;yield Promise.allSettled([null===(r=e.startCall)||void 0===r?void 0:r.promise,null===(n=e.pullCall)||void 0===n?void 0:n.promise,null===(i=e.cancelCall)||void 0===i?void 0:i.promise]),delete this.streamControllers[t]}))).apply(this,arguments)}t.MessageHandler=class{constructor(e,t,r){_classPrivateMethodInitSpec(this,m),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{var t=e.data;if(t.targetName===this.sourceName)if(t.stream)_classPrivateMethodGet(this,g,y).call(this,t);else if(t.callback){var n=t.callbackId,a=this.callbackCapabilities[n];if(!a)throw new Error("Cannot resolve callback ".concat(n));if(delete this.callbackCapabilities[n],t.callback===i)a.resolve(t.data);else{if(t.callback!==o)throw new Error("Unexpected callback case");a.reject(h(t.reason))}}else{var s=this.actionHandler[t.action];if(!s)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var l=this.sourceName,c=t.sourceName;new Promise((function(e){e(s(t.data))})).then((function(e){r.postMessage({sourceName:l,targetName:c,callback:i,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:l,targetName:c,callback:o,callbackId:t.callbackId,reason:h(e)})}))}else t.streamId?_classPrivateMethodGet(this,v,b).call(this,t):s(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){var i=this.callbackId++,o=new n.PromiseCapability;this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},r)}catch(a){o.reject(a)}return o.promise}sendWithStream(e,t,r,i){var o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:r=>{var a=new n.PromiseCapability;return this.streamControllers[o]={controller:r,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:o,data:t,desiredSize:r.desiredSize},i),a.promise},pull:e=>{var t=new n.PromiseCapability;return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=new n.PromiseCapability;return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:a,streamId:o,reason:h(e)}),t.promise}},r)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(1),i=new WeakMap,o=new WeakMap;t.Metadata=class{constructor(e){var{parsedData:t,rawData:r}=e;_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,o,{writable:!0,value:void 0}),_classPrivateFieldSet(this,i,t),_classPrivateFieldSet(this,o,r)}getRaw(){return _classPrivateFieldGet(this,o)}get(e){var t;return null!==(t=_classPrivateFieldGet(this,i).get(e))&&void 0!==t?t:null}getAll(){return(0,n.objectFromMap)(_classPrivateFieldGet(this,i))}has(e){return _classPrivateFieldGet(this,i).has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var n=r(1),i=r(8),o=Symbol("INTERNAL"),a=new WeakMap;class s{constructor(e,t){_classPrivateFieldInitSpec(this,a,{writable:!0,value:!0}),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(this,a)}_setVisible(e,t){e!==o&&(0,n.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,a,t)}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakSet;function f(e){var t=e.length;if(t<2)return!0;for(var r=e[0],i=1;i1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(o,!!t),_classPrivateFieldSet(this,l,null)):(0,n.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}getOrder(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():[..._classPrivateFieldGet(this,c).keys()]:null}getGroups(){return _classPrivateFieldGet(this,c).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,c)):null}getGroup(e){return _classPrivateFieldGet(this,c).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);var e=new i.MurmurHash3_64;for(var[t,r]of _classPrivateFieldGet(this,c))e.update("".concat(t,":").concat(r.visible));return _classPrivateFieldSet(this,l,e.hexdigest())}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var n=r(1),i=r(6);t.PDFDataTransportStream=class{constructor(e,t){var{length:r,initialData:i,progressiveDone:o=!1,contentDispositionFilename:a=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,n.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=o,this._contentDispositionFilename=a,(null===i||void 0===i?void 0:i.length)>0){var c=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){var{begin:t,chunk:r}=e,i=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{var o=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)}));(0,n.assert)(o,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,r,n,i;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded}):null===(n=this._fullRequestReader)||void 0===n||null===(i=n.onProgress)||void 0===i||i.call(n,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new o(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeReaders.slice(0)))r.cancel(e);this._pdfDataRangeTransport.abort()}};class o{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o of(this._stream=e,this._done=r||!1,this._filename=(0,i.isPdfFile)(n)?n:null,this._queuedChunks=t||[],this._loaded=0,this._queuedChunks))this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunks.length>0)return{value:e._queuedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();for(var r of(t.resolve({value:e,done:!1}),this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(1),i=r(20);function o(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,n.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=new c(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new n.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);var r=t.url;fetch(r,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();var t=t=>e.headers.get(t),{allowRangeRequests:o,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._headersCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;var s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new n.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(r-1));var l=s.url;fetch(l,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._readCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var r=(0,i.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if((0,o.isPdfFile)(r))return r}return null},t.validateRangeRequestCapabilities=function(e){var{getResponseHeader:t,isHttp:r,rangeChunkSize:n,disableRange:i}=e,o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n||i||!r||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(1),i=r(21),o=r(6)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,r=a("filename\\*","i").exec(e);if(r){var i=c(r=r[1]);return l(i=d(i=u(i=unescape(i))))}if(r=function(e){for(var t,r=[],n=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=n.exec(e));){var[,i,o,s]=t;if((i=parseInt(i,10))in r){if(0===i)break}else r[i]=[o,s]}for(var l=[],d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var n=r(1),i=r(20);class o{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){var n={begin:e,end:t};for(var i in r)n[i]=r[i];return this.request(n)}requestFull(e){return this.request(e)}request(e){var t=new XMLHttpRequest,r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var i in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&t.setRequestHeader(i,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){var r,n=this.pendingRequests[e];n&&(null===(r=n.onProgress)||void 0===r||r.call(n,t))}onStateChange(e,t){var r=this.pendingRequests[e];if(r){var i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===i.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===i.status&&this.isHttp){var o;null===(o=r.onError)||void 0===o||o.call(r,i.status)}else{var a=i.status||200;if(200===a&&206===r.expectedStatus||a===r.expectedStatus){var s=function(e){var t=e.response;return"string"!==typeof t?t:(0,n.stringToBytes)(t).buffer}(i);if(206===a){var l=i.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);r.onDone({begin:parseInt(c[1],10),chunk:s})}else if(s)r.onDone({begin:0,chunk:s});else{var u;null===(u=r.onError)||void 0===u||u.call(r,i.status)}}else{var d;null===(d=r.onError)||void 0===d||d.call(r,i.status)}}}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new o(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){var r=new s(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class a{constructor(e,t){this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=new n.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(var t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){for(var t of(this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError),this._requests))t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(e._cachedChunks.length>0)return{value:e._cachedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._headersReceivedCapability.reject(e),this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,r){this._manager=e;var n={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,r,n),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){var t=e.chunk;for(var r of(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){for(var t of(this._storedError=(0,i.createResponseStatusError)(e,this._url),this._requests))t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(null!==e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(1),i=r(20),o=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){var t=__webpack_require__(66558),r=t.parse(e);return"file:"===r.protocol||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(r.host||(r.protocol="file:"),r)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new p(this,e,t):new u(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class a{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new n.PromiseCapability,this._headersCapability=new n.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:new Uint8Array(r).buffer,done:!1})}))()}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new n.PromiseCapability;var t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:new Uint8Array(r).buffer,done:!1})}))()}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends a{constructor(e){super(e);var t=t=>{if(404===t.statusCode){var r=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=r,void this._headersCapability.reject(r)}this._headersCapability.resolve(),this._setReadableStream(t);var o=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:o,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(o)};if(this._request=null,"http:"===this._url.protocol){var r=__webpack_require__(2001);this._request=r.request(l(this._url,e.httpHeaders),t)}else{var o=__webpack_require__(33779);this._request=o.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends s{constructor(e,t,r){for(var i in super(e),this._httpHeaders={},e.httpHeaders){var o=e.httpHeaders[i];void 0!==o&&(this._httpHeaders[i]=o)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(r-1);var a=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{var t=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=t}};if(this._request=null,"http:"===this._url.protocol){var s=__webpack_require__(2001);this._request=s.request(l(this._url,this._httpHeaders),a)}else{var c=__webpack_require__(33779);this._request=c.request(l(this._url,this._httpHeaders),a)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends a{constructor(e){super(e);var t=decodeURIComponent(this._url.path);o.test(this._url.href)&&(t=t.replace(/^\//,""));var r=__webpack_require__(70172);r.lstat(t,((e,i)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=i.size,this._setReadableStream(r.createReadStream(t)),this._headersCapability.resolve()}))}}class p extends s{constructor(e,t,r){super(e);var n=decodeURIComponent(this._url.path);o.test(this._url.href)&&(n=n.replace(/^\//,""));var i=__webpack_require__(70172);this._setReadableStream(i.createReadStream(n,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(6),i=r(1),o="normal",a="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="data:".concat(t,";base64,"),o=0,a=e.length;o>2]+n[(3&s)<<4|l>>4]+n[o+1>6:64]+n[o+2>1&2147483647:n>>1&2147483647;t[r]=n}function a(e,r,n,i){var o=i,a=r.length;n[o]=a>>24&255,n[o+1]=a>>16&255,n[o+2]=a>>8&255,n[o+3]=255&a,n[o+=4]=255&e.charCodeAt(0),n[o+1]=255&e.charCodeAt(1),n[o+2]=255&e.charCodeAt(2),n[o+3]=255&e.charCodeAt(3),o+=4,n.set(r,o);var s=function(e,r,n){for(var i=-1,o=r;o>>8^t[a]}return-1^i}(n,i+4,o+=r.length);n[o]=s>>24&255,n[o+1]=s>>16&255,n[o+2]=s>>8&255,n[o+3]=255&s}function s(e){var t=e.length,r=65535,n=Math.ceil(t/r),i=new Uint8Array(2+t+5*n+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;t>r;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+r),o),o+=r,a+=r,t-=r;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;var s=function(e,t,r){for(var n=1,i=0,o=t;o>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function l(t,r,n,o){var l,c,d,p=t.width,f=t.height,h=t.data;switch(r){case i.ImageKind.GRAYSCALE_1BPP:c=0,l=1,d=p+7>>3;break;case i.ImageKind.RGB_24BPP:c=2,l=8,d=3*p;break;case i.ImageKind.RGBA_32BPP:c=6,l=8,d=4*p;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+d)*f),g=0,m=0,b=0;b>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,l,c,0,0,0]),C=function(e){if(!i.isNodeJS)return s(e);try{var t=parseInt(process.versions.node)>=8?e:Buffer.from(e),r=__webpack_require__(82258).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(n){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+n)}return s(e)}(v),w=e.length+36+A.length+C.length,S=new Uint8Array(w),k=0;return S.set(e,k),a("IHDR",A,S,k+=e.length),a("IDATA",C,S,k+=12+A.length),k+=12+C.length,a("IEND",new Uint8Array(0),S,k),u(S,"image/png",n)}return function(e,t,r){return l(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=a,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function f(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function h(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(f(e[0])," ").concat(f(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(f(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(f(e[4])," ").concat(f(e[5]),")");return"matrix(".concat(f(e[0])," ").concat(f(e[1])," ").concat(f(e[2])," ").concat(f(e[3])," ").concat(f(e[4])," ")+"".concat(f(e[5]),")")}var v=0,g=0,m=0;t.SVGGraphics=class{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in(0,n.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new n.DOMSVGFactory,this.current=new p,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[],i.OPS)this._operatorIdMapping[i.OPS[o]]=o}getObject(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){for(var t=this,r=e.fnArray,n=e.argsArray,o=0,a=r.length;o{r.get(e,t)}));t.current.dependencies.push(n)};for(var l of n[o])s(l)}return Promise.all(this.current.dependencies)}transform(e,t,r,n,o,a){var s=[e,t,r,n,o,a];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;var r=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,i=[],o=0,a=n.length;o0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=i.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=i.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){var{width:t,height:r}=this.viewport,n=i.Util.inverseTransform(this.transformMatrix),[o,a,s,l]=i.Util.getAxialAlignedBoundingBox([0,0,t,r],n),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",o),c.setAttributeNS(null,"y",a),c.setAttributeNS(null,"width",s-o),c.setAttributeNS(null,"height",l-a),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){var t=e[1],r=e[2],n=e[3]||i.IDENTITY_MATRIX,[o,a,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading".concat(m++),[f,h,v,g]=i.Util.normalizeRect([...i.Util.applyTransform([o,a],n),...i.Util.applyTransform([s,l],n)]),[b,y]=i.Util.singularValueDecompose2dScale(n),_=c*b,A=u*y,C=this.svgFactory.createElement("svg:pattern");C.setAttributeNS(null,"id",p),C.setAttributeNS(null,"patternUnits","userSpaceOnUse"),C.setAttributeNS(null,"width",_),C.setAttributeNS(null,"height",A),C.setAttributeNS(null,"x","".concat(f)),C.setAttributeNS(null,"y","".concat(h));var w=this.svg,S=this.transformMatrix,k=this.current.fillColor,x=this.current.strokeColor,P=this.svgFactory.create(v-f,g-h);if(this.svg=P,this.transformMatrix=n,2===d){var E=i.Util.makeHexColor(...t);this.current.fillColor=E,this.current.strokeColor=E}return this.executeOpTree(this.convertOpList(r)),this.svg=w,this.transformMatrix=S,this.current.fillColor=k,this.current.strokeColor=x,C.append(P.childNodes[0]),this.defs.append(C),"url(#".concat(p,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,r="shading".concat(m++),n=e[3];switch(e[1]){case"axial":var o=e[4],a=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",o[0]),t.setAttributeNS(null,"y1",o[1]),t.setAttributeNS(null,"x2",a[0]),t.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(var d of n){var p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),t.append(p)}return this.defs.append(t),"url(#".concat(r,")");case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){var r=this.current,n=r.x,o=r.y,a=[],s=0;for(var l of e)switch(0|l){case i.OPS.rectangle:n=t[s++],o=t[s++];var c=n+t[s++],u=o+t[s++];a.push("M",f(n),f(o),"L",f(c),f(o),"L",f(c),f(u),"L",f(n),f(u),"Z");break;case i.OPS.moveTo:n=t[s++],o=t[s++],a.push("M",f(n),f(o));break;case i.OPS.lineTo:n=t[s++],o=t[s++],a.push("L",f(n),f(o));break;case i.OPS.curveTo:n=t[s+4],o=t[s+5],a.push("C",f(t[s]),f(t[s+1]),f(t[s+2]),f(t[s+3]),f(n),f(o)),s+=6;break;case i.OPS.curveTo2:a.push("C",f(n),f(o),f(t[s]),f(t[s+1]),f(t[s+2]),f(t[s+3])),n=t[s+2],o=t[s+3],s+=4;break;case i.OPS.curveTo3:n=t[s+2],o=t[s+3],a.push("C",f(t[s]),f(t[s+1]),f(n),f(o),f(n),f(o)),s+=4;break;case i.OPS.closePath:a.push("Z")}a=a.join(" "),r.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(n,o)}endPath(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(v++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",h(this.transformMatrix));var n=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.append(n),this.defs.append(r),e.activeClipUrl){for(var i of(e.clipGroup=null,this.extraStack))i.clipGroup=null;r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}clip(e){this.pendingClip=e}closePath(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",f(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",f(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(f).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",f(t*r.dashPhase)+"px")}eoFill(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){var r=e.width,n=e.height,i=d(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",f(r)),o.setAttributeNS(null,"height",f(n)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",f(-n)),a.setAttributeNS(null,"width",f(r)+"px"),a.setAttributeNS(null,"height",f(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(f(1/r)," ").concat(f(-1/n),")")),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){var t=this.getObject(e.data,e);if(t.bitmap)(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");else{var r=this.current,n=t.width,o=t.height,a=r.fillColor;r.maskId="mask".concat(g++);var s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",r.maskId);var l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",f(n)),l.setAttributeNS(null,"height",f(o)),l.setAttributeNS(null,"fill",a),l.setAttributeNS(null,"mask","url(#".concat(r.maskId,")")),this.defs.append(s),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,s)}}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",f(r)),i.setAttributeNS(null,"height",f(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.append(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",h(e.transform)),t.append(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",h(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class r{static textContent(e){var t=[],n={items:t,styles:Object.create(null)};return function e(n){var i;if(n){var o=null,a=n.name;if("#text"===a)o=n.value;else{if(!r.shouldBuildText(a))return;null!==n&&void 0!==n&&null!==(i=n.attributes)&&void 0!==i&&i.textContent?o=n.attributes.textContent:n.value&&(o=n.value)}if(null!==o&&t.push({str:o}),n.children)for(var s of n.children)e(s)}}(e),n}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=r},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,i.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);var{container:t,viewport:r}=e,n=getComputedStyle(t),o=n.getPropertyValue("visibility"),a=parseFloat(n.getPropertyValue("--scale-factor"));"visible"===o&&(!a||Math.abs(a-r.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");var s=new d(e);return s._render(),s},t.updateTextLayer=function(e){var{container:t,viewport:r,textDivs:n,textDivProperties:o,isOffscreenCanvasSupported:a,mustRotate:s=!0,mustRescale:c=!0}=e;if(s&&(0,i.setLayerDimensions)(t,{rotation:r.rotation}),c){var d=l(0,a),p={prevFontSize:null,prevFontFamily:null,div:null,scale:r.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:d};for(var f of n)p.properties=o.get(f),p.div=f,u(p)}};var n=r(1),i=r(6),o=30,a=.8,s=new Map;function l(e,t){var r;if(t&&n.FeatureTest.isOffscreenCanvasSupported)r=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{var i=document.createElement("canvas");i.width=i.height=e,r=i.getContext("2d",{alpha:!1})}return r}function c(e,t,r){var i=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);var u=n.Util.transform(e._transform,t.transform),d=Math.atan2(u[1],u[0]),p=r[t.fontName];p.vertical&&(d+=Math.PI/2);var f,h,v=Math.hypot(u[2],u[3]),g=v*function(e,t){var r=s.get(e);if(r)return r;var n=l(o,t);n.font="".concat(o,"px ").concat(e);var i=n.measureText(""),c=i.fontBoundingBoxAscent,u=Math.abs(i.fontBoundingBoxDescent);if(c){var d=c/(c+u);return s.set(e,d),n.canvas.width=n.canvas.height=0,d}n.strokeStyle="red",n.clearRect(0,0,o,o),n.strokeText("g",0,0);var p=n.getImageData(0,0,o,o).data;u=0;for(var f=p.length-1-3;f>=0;f-=4)if(p[f]>0){u=Math.ceil(f/4/o);break}n.clearRect(0,0,o,o),n.strokeText("A",0,o),c=0;for(var h=0,v=(p=n.getImageData(0,0,o,o).data).length;h0){c=o-Math.floor(h/4/o);break}if(n.canvas.width=n.canvas.height=0,c){var g=c/(c+u);return s.set(e,g),g}return s.set(e,a),a}(p.fontFamily,e._isOffscreenCanvasSupported);0===d?(f=u[4],h=u[5]-g):(f=u[4]+g*Math.sin(d),h=u[5]-g*Math.cos(d));var m="calc(var(--scale-factor)*",b=i.style;e._container===e._rootContainer?(b.left="".concat((100*f/e._pageWidth).toFixed(2),"%"),b.top="".concat((100*h/e._pageHeight).toFixed(2),"%")):(b.left="".concat(m).concat(f.toFixed(2),"px)"),b.top="".concat(m).concat(h.toFixed(2),"px)")),b.fontSize="".concat(m).concat(v.toFixed(2),"px)"),b.fontFamily=p.fontFamily,c.fontSize=v,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));var y=!1;if(t.str.length>1)y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var _=Math.abs(t.transform[0]),A=Math.abs(t.transform[3]);_!==A&&Math.max(_,A)/Math.min(_,A)>1.5&&(y=!0)}y&&(c.canvasWidth=p.vertical?t.height:t.width),e._textDivProperties.set(i,c),e._isReadableStream&&e._layoutText(i)}function u(e){var{div:t,scale:r,properties:n,ctx:i,prevFontSize:o,prevFontFamily:a}=e,{style:s}=t,l="";if(0!==n.canvasWidth&&n.hasText){var{fontFamily:c}=s,{canvasWidth:u,fontSize:d}=n;o===d&&a===c||(i.font="".concat(d*r,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);var{width:p}=i.measureText(t.textContent);p>0&&(l="scaleX(".concat(u*r/p,")"))}0!==n.angle&&(l="rotate(".concat(n.angle,"deg) ").concat(l)),l.length>0&&(s.transform=l)}class d{constructor(e){var t,{textContentSource:r,container:o,viewport:a,textDivs:s,textDivProperties:c,textContentItemsStr:u,isOffscreenCanvasSupported:d}=e;this._textContentSource=r,this._isReadableStream=r instanceof ReadableStream,this._container=this._rootContainer=o,this._textDivs=s||[],this._textContentItemsStr=u||[],this._isOffscreenCanvasSupported=d,this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._textDivProperties=c||new WeakMap,this._canceled=!1,this._capability=new n.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:a.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,d)};var{pageWidth:p,pageHeight:f,pageX:h,pageY:v}=a.rawDims;this._transform=[1,0,0,-1,-h,v+f],this._pageWidth=p,this._pageHeight=f,(0,i.setLayerDimensions)(o,a),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new n.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(var r of e)if(void 0!==r.str)this._textContentItemsStr.push(r.str),c(this,r,t);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){var n=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==r.id&&this._container.setAttribute("id","".concat(r.id)),n.append(this._container)}else"endMarkedContent"===r.type&&(this._container=this._container.parentNode)}_layoutText(e){var t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){var r=document.createElement("br");r.setAttribute("role","presentation"),this._container.append(r)}}_render(){var e=new n.PromiseCapability,t=Object.create(null);if(this._isReadableStream){var r=()=>{this._reader.read().then((n=>{var{value:i,done:o}=n;o?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),r())}),e.reject)};this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');var{items:i,styles:o}=this._textContentSource;this._processItems(i,o),e.resolve()}e.promise.then((()=>{t=null,function(e){if(!e._canceled){var t=e._textDivs,r=e._capability;if(t.length>1e5)r.resolve();else{if(!e._isReadableStream)for(var n of t)e._layoutText(n);r.resolve()}}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var n=r(1),i=r(4),o=r(28),a=r(33),s=r(6),l=r(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet;class w{constructor(e){var{uiManager:t,pageIndex:r,div:n,accessibilityManager:i,annotationLayer:s,viewport:S,l10n:k}=e;_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0});var x=[o.FreeTextEditor,a.InkEditor,l.StampEditor];if(!w._initialized)for(var P of(w._initialized=!0,x))P.initialize(k);t.registerEditorTypes(x),_classPrivateFieldSet(this,b,t),this.pageIndex=r,this.div=n,_classPrivateFieldSet(this,c,i),_classPrivateFieldSet(this,d,s),this.viewport=S,_classPrivateFieldGet(this,b).addLayer(this)}get isEmpty(){return 0===_classPrivateFieldGet(this,h).size}updateToolbar(e){_classPrivateFieldGet(this,b).updateToolbar(e)}updateMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,b).getMode();_classPrivateMethodGet(this,C,P).call(this),e===n.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==n.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===n.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===n.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===n.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(this,b).getMode()===n.AnnotationEditorType.INK){if(!e)for(var t of _classPrivateFieldGet(this,h).values())if(t.isEmpty())return void t.setInBackground();_classPrivateMethodGet(this,_,k).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){_classPrivateFieldGet(this,b).setEditingState(e)}addCommands(e){_classPrivateFieldGet(this,b).addCommands(e)}enable(){this.div.style.pointerEvents="auto";var e=new Set;for(var t of _classPrivateFieldGet(this,h).values())t.enableEditing(),t.annotationElementId&&e.add(t.annotationElementId);if(_classPrivateFieldGet(this,d)){var r=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var n of r)if(n.hide(),!_classPrivateFieldGet(this,b).isDeletedAnnotationElement(n.data.id)&&!e.has(n.data.id)){var i=this.deserialize(n);i&&(this.addOrRebuild(i),i.enableEditing())}}}disable(){_classPrivateFieldSet(this,m,!0),this.div.style.pointerEvents="none";var e=new Set;for(var t of _classPrivateFieldGet(this,h).values()){var r;t.disableEditing(),t.annotationElementId&&null===t.serialize()?(null===(r=this.getEditableAnnotation(t.annotationElementId))||void 0===r||r.show(),t.remove()):e.add(t.annotationElementId)}if(_classPrivateFieldGet(this,d)){var n=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var i of n){var{id:o}=i.data;e.has(o)||_classPrivateFieldGet(this,b).isDeletedAnnotationElement(o)||i.show()}}_classPrivateMethodGet(this,C,P).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(this,m,!1)}getEditableAnnotation(e){var t;return(null===(t=_classPrivateFieldGet(this,d))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){_classPrivateFieldGet(this,b).getActive()!==e&&_classPrivateFieldGet(this,b).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,p))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,p))}attach(e){_classPrivateFieldGet(this,h).set(e.id,e);var{annotationElementId:t}=e;t&&_classPrivateFieldGet(this,b).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(this,b).removeDeletedAnnotationElement(e)}detach(e){var t;_classPrivateFieldGet(this,h).delete(e.id),null===(t=_classPrivateFieldGet(this,c))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(this,m)&&e.annotationElementId&&_classPrivateFieldGet(this,b).addDeletedAnnotationElement(e)}remove(e){this.detach(e),_classPrivateFieldGet(this,b).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{_classPrivateFieldGet(this,b).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(this,g)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(this,b).addDeletedAnnotationElement(e.annotationElementId),i.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),_classPrivateFieldGet(this,b).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(this,b).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;if(e.isAttachedToDOM){var{activeElement:r}=document;e.div.contains(r)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),r.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(this,c))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(this,b).getId()}pasteEditor(e,t){_classPrivateFieldGet(this,b).updateToolbar(e),_classPrivateFieldGet(this,b).updateMode(e);var{offsetX:r,offsetY:n}=_classPrivateMethodGet(this,A,x).call(this),i=this.getNextId(),o=_classPrivateMethodGet(this,y,S).call(this,_objectSpread({parent:this,id:i,x:r,y:n,uiManager:_classPrivateFieldGet(this,b),isCentered:!0},t));o&&this.add(o)}deserialize(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case n.AnnotationEditorType.FREETEXT:return o.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(this,b))}return null}addNewEditor(){_classPrivateMethodGet(this,_,k).call(this,_classPrivateMethodGet(this,A,x).call(this),!0)}setSelected(e){_classPrivateFieldGet(this,b).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(this,b).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(this,b).isSelected(e)}unselect(e){_classPrivateFieldGet(this,b).unselect(e)}pointerup(e){var{isMac:t}=n.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,v)&&(_classPrivateFieldSet(this,v,!1),_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,b).getMode()!==n.AnnotationEditorType.STAMP?_classPrivateMethodGet(this,_,k).call(this,e,!1):_classPrivateFieldGet(this,b).unselectAll():_classPrivateFieldSet(this,u,!0))}pointerdown(e){if(_classPrivateFieldGet(this,v))_classPrivateFieldSet(this,v,!1);else{var{isMac:t}=n.FeatureTest.platform;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(this,v,!0);var r=_classPrivateFieldGet(this,b).getActive();_classPrivateFieldSet(this,u,!r||r.isEmpty())}}}findNewParent(e,t,r){var n=_classPrivateFieldGet(this,b).findParent(t,r);return null!==n&&n!==this&&(n.changeParent(e),!0)}destroy(){var e;for(var t of((null===(e=_classPrivateFieldGet(this,b).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(this,b).commitOrRemove(),_classPrivateFieldGet(this,b).setActiveEditor(null)),_classPrivateFieldGet(this,h).values())){var r;null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove()}this.div=null,_classPrivateFieldGet(this,h).clear(),_classPrivateFieldGet(this,b).removeLayer(this)}render(e){var{viewport:t}=e;for(var r of(this.viewport=t,(0,s.setLayerDimensions)(this.div,t),_classPrivateFieldGet(this,b).getEditors(this.pageIndex)))this.add(r);this.updateMode()}update(e){var{viewport:t}=e;_classPrivateFieldGet(this,b).commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){var{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function S(e){switch(_classPrivateFieldGet(this,b).getMode()){case n.AnnotationEditorType.FREETEXT:return new o.FreeTextEditor(e);case n.AnnotationEditorType.INK:return new a.InkEditor(e);case n.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function k(e,t){var r=this.getNextId(),n=_classPrivateMethodGet(this,y,S).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(this,b),isCentered:t});return n&&this.add(n),n}function x(){var{x:e,y:t,width:r,height:n}=this.div.getBoundingClientRect(),i=Math.max(0,e),o=Math.max(0,t),a=(i+Math.min(window.innerWidth,e+r))/2-e,s=(o+Math.min(window.innerHeight,t+n))/2-t,[l,c]=this.viewport.rotation%180===0?[a,s]:[s,a];return{offsetX:l,offsetY:c}}function P(){for(var e of(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,h).values()))e.isEmpty()&&e.remove();_classPrivateFieldSet(this,g,!1)}_defineProperty(w,"_initialized",!1),t.AnnotationEditorLayer=w},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=r(1),o=r(5),a=r(4),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakSet,b=new WeakSet,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet,w=new WeakSet;class S extends a.AnnotationEditor{static get _keyboardManager(){var e=S.prototype,t=e=>e.isEmpty(),r=o.AnnotationEditorUIManager.TRANSLATE_SMALL,n=o.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new o.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}]]))}constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,l,{writable:!0,value:this.editorDivBlur.bind(this)}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:this.editorDivFocus.bind(this)}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.editorDivInput.bind(this)}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.editorDivKeydown.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:"".concat(this.id,"-editor")}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:null}),_classPrivateFieldSet(this,p,e.color||S._defaultColor||a.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(this,v,e.fontSize||S._defaultFontSize)}static initialize(e){a.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:S._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:S._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,m,k).call(this,t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,b,x).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,S._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,S._defaultColor||a.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,v)],[i.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,p)]]}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){var e=this.parentScale;return[-S._internalPadding*e,-(S._internalPadding+_classPrivateFieldGet(this,v))*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(this,u)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(this,h)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(this,u)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var e;this.width?_classPrivateMethodGet(this,w,R).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(this.isInEditMode()){super.commit(),this.disableEditMode();var e=_classPrivateFieldGet(this,f),t=_classPrivateFieldSet(this,f,_classPrivateMethodGet(this,y,P).call(this).trimEnd());if(e!==t){var r=e=>{_classPrivateFieldSet(this,f,e),e?(_classPrivateMethodGet(this,A,O).call(this),this._uiManager.rebuild(this),_classPrivateMethodGet(this,_,E).call(this)):this.remove()};this.addCommands({cmd:()=>{r(t)},undo:()=>{r(e)},mustExec:!1}),_classPrivateMethodGet(this,_,E).call(this)}}}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){S._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;var e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(this,h)),this.enableEditing(),a.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),a.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;var{style:r}=this.editorDiv;if(r.fontSize="calc(".concat(_classPrivateFieldGet(this,v),"px * var(--scale-factor))"),r.color=_classPrivateFieldGet(this,p),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,o.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var[n,i]=this.parentDimensions;if(this.annotationElementId){var{position:s}=_classPrivateFieldGet(this,g),[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);var u,d,[f,m]=this.pageDimensions,[b,y]=this.pageTranslation;switch(this.rotation){case 0:u=e+(s[0]-b)/f,d=t+this.height-(s[1]-y)/m;break;case 90:u=e+(s[0]-b)/f,d=t-(s[1]-y)/m,[l,c]=[c,-l];break;case 180:u=e-this.width+(s[0]-b)/f,d=t-(s[1]-y)/m,[l,c]=[-l,-c];break;case 270:u=e+(s[0]-b-this.height*m)/f,d=t+(s[1]-y-this.width*f)/m,[l,c]=[-c,l]}this.setAt(u*n,d*i,l,c)}else this.setAt(e*n,t*i,this.width*n,this.height*i);_classPrivateMethodGet(this,A,O).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t,r){var n=null;if(e instanceof s.FreeTextAnnotationElement){var{data:{defaultAppearanceData:{fontSize:o,fontColor:a},rect:l,rotation:c,id:u},textContent:d,textPosition:h,parent:{page:{pageNumber:m}}}=e;if(!d||0===d.length)return null;n=e={annotationType:i.AnnotationEditorType.FREETEXT,color:Array.from(a),fontSize:o,value:d.join("\n"),position:h,pageIndex:m-1,rect:l,rotation:c,id:u,deleted:!1}}var b=super.deserialize(e,t,r);return _classPrivateFieldSet(b,v,e.fontSize),_classPrivateFieldSet(b,p,i.Util.makeHexColor(...e.color)),_classPrivateFieldSet(b,f,e.value),b.annotationElementId=e.id||null,_classPrivateFieldSet(b,g,n),b}serialize(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};var t=S._internalPadding*this.parentScale,r=this.getRect(t,t),n=a.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(this,p)),o={annotationType:i.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(this,v),value:_classPrivateFieldGet(this,f),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?o:this.annotationElementId&&!_classPrivateMethodGet(this,C,T).call(this,o)?null:(o.id=this.annotationElementId,o)}}function k(e){var t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(this,v))*this.parentScale),_classPrivateFieldSet(this,v,e),_classPrivateMethodGet(this,_,E).call(this)},r=_classPrivateFieldGet(this,v);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(r)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function x(e){var t=_classPrivateFieldGet(this,p);this.addCommands({cmd:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=t)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function P(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t=[];for(var r of e)t.push(r.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function E(){var e,[t,r]=this.parentDimensions;if(this.isAttachedToDOM)e=this.div.getBoundingClientRect();else{var{currentLayer:n,div:i}=this,o=i.style.display;i.style.display="hidden",n.div.append(this.div),e=i.getBoundingClientRect(),i.remove(),i.style.display=o}this.rotation%180===this.parentRotation%180?(this.width=e.width/t,this.height=e.height/r):(this.width=e.height/t,this.height=e.width/r),this.fixAndSetPosition()}function O(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(this,f))for(var e of _classPrivateFieldGet(this,f).split("\n")){var t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function T(e){var{value:t,fontSize:r,color:n,rect:i,pageIndex:o}=_classPrivateFieldGet(this,g);return e.value!==t||e.fontSize!==r||e.rect.some(((e,t)=>Math.abs(e-i[t])>=1))||e.color.some(((e,t)=>e!==n[t]))||e.pageIndex!==o}function R(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.annotationElementId)if(_classPrivateMethodGet(this,_,E).call(this),e||0!==this.width&&0!==this.height){var t=n._internalPadding*this.parentScale;_classPrivateFieldGet(this,g).rect=this.getRect(t,t)}else setTimeout((()=>_classPrivateMethodGet(this,w,R).call(this,!0)),0)}n=S,_defineProperty(S,"_freeTextDefaultContent",""),_defineProperty(S,"_internalPadding",0),_defineProperty(S,"_defaultColor",null),_defineProperty(S,"_defaultFontSize",10),_defineProperty(S,"_type","freetext"),t.FreeTextEditor=S},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var n=r(1),i=r(6),o=r(3),a=r(30),s=r(31),l=r(32),c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class p{static create(e){switch(e.data.annotationType){case n.AnnotationType.LINK:return new m(e);case n.AnnotationType.TEXT:return new _(e);case n.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new k(e):e.data.checkBox?new S(e):new x(e);case"Ch":return new P(e);case"Sig":return new w(e)}return new A(e);case n.AnnotationType.POPUP:return new E(e);case n.AnnotationType.FREETEXT:return new te(e);case n.AnnotationType.LINE:return new ne(e);case n.AnnotationType.SQUARE:return new oe(e);case n.AnnotationType.CIRCLE:return new se(e);case n.AnnotationType.POLYLINE:return new ce(e);case n.AnnotationType.CARET:return new de(e);case n.AnnotationType.INK:return new fe(e);case n.AnnotationType.POLYGON:return new ue(e);case n.AnnotationType.HIGHLIGHT:return new he(e);case n.AnnotationType.UNDERLINE:return new ve(e);case n.AnnotationType.SQUIGGLY:return new ge(e);case n.AnnotationType.STRIKEOUT:return new me(e);case n.AnnotationType.STAMP:return new be(e);case n.AnnotationType.FILEATTACHMENT:return new Ae(e);default:return new h(e)}}}var f=new WeakMap;class h{constructor(e){var{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(r)),n&&this._createQuadrilaterals()}static _hasPopupData(e){var{titleObj:t,contentsObj:r,richText:n}=e;return!!(null!==t&&void 0!==t&&t.str||null!==r&&void 0!==r&&r.str||null!==n&&void 0!==n&&n.str)}get hasPopupData(){return h._hasPopupData(this.data)}_createContainer(e){var{data:t,parent:{page:r,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id),this instanceof A||(o.tabIndex=c),o.style.zIndex=this.parent.zIndex++,this.data.popupRef&&o.setAttribute("aria-haspopup","dialog"),t.noRotate&&o.classList.add("norotate");var{pageWidth:a,pageHeight:s,pageX:l,pageY:u}=i.rawDims;if(!t.rect||this instanceof E){var{rotation:p}=t;return t.hasOwnCanvas||0===p||this.setRotation(p,o),o}var{width:h,height:v}=d(t.rect),g=n.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(!e&&t.borderStyle.width>0){o.style.borderWidth="".concat(t.borderStyle.width,"px");var m=t.borderStyle.horizontalCornerRadius,b=t.borderStyle.verticalCornerRadius;if(m>0||b>0){var y="calc(".concat(m,"px * var(--scale-factor)) / calc(").concat(b,"px * var(--scale-factor))");o.style.borderRadius=y}else if(this instanceof k){var _="calc(".concat(h,"px * var(--scale-factor)) / calc(").concat(v,"px * var(--scale-factor))");o.style.borderRadius=_}switch(t.borderStyle.style){case n.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case n.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case n.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;case n.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;case n.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}var C=t.borderColor||null;C?(_classPrivateFieldSet(this,f,!0),o.style.borderColor=n.Util.makeHexColor(0|C[0],0|C[1],0|C[2])):o.style.borderWidth=0}o.style.left="".concat(100*(g[0]-l)/a,"%"),o.style.top="".concat(100*(g[1]-u)/s,"%");var{rotation:w}=t;return t.hasOwnCanvas||0===w?(o.style.width="".concat(100*h/a,"%"),o.style.height="".concat(100*v/s,"%")):this.setRotation(w,o),o}setRotation(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var r,n,{pageWidth:i,pageHeight:o}=this.parent.viewport.rawDims,{width:a,height:s}=d(this.data.rect);e%180===0?(r=100*a/i,n=100*s/o):(r=100*s/i,n=100*a/o),t.style.width="".concat(r,"%"),t.style.height="".concat(n,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}}get _commonActions(){var e=(e,t,r)=>{var n=r.detail[e],i=n[0],o=n.slice(1);r.target.style[t]=a.ColorConverters["".concat(i,"_HTML")](o),this.annotationStorage.setValue(this.data.id,{[t]:a.ColorConverters["".concat(i,"_rgb")](o)})};return(0,n.shadow)(this,"_commonActions",{display:e=>{var{display:t}=e.detail,r=t%2===1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{var{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{var t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){var r=this._commonActions;for(var n of Object.keys(t.detail)){var i=e[n]||r[n];null===i||void 0===i||i(t)}}_setDefaultPropertiesFromJS(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t){var r=this._commonActions;for(var[n,i]of Object.entries(t)){var o=r[n];o&&(o({detail:{[n]:i},target:e}),delete t[n])}}}}_createQuadrilaterals(){if(this.container){var{quadPoints:e}=this.data;if(e){var[t,r,n,i]=this.data.rect;if(1===e.length){var[,{x:o,y:a},{x:s,y:l}]=e[0];if(n===o&&i===a&&t===s&&r===l)return}var c,{style:u}=this.container;if(_classPrivateFieldGet(this,f)){var{borderColor:d,borderWidth:p}=u;u.borderWidth=0,c=["url('data:image/svg+xml;utf8,",'','')],this.container.classList.add("hasBorder")}var h=n-t,v=i-r,{svgFactory:g}=this,m=g.createElement("svg");m.classList.add("quadrilateralsContainer"),m.setAttribute("width",0),m.setAttribute("height",0);var b=g.createElement("defs");m.append(b);var y=g.createElement("clipPath"),_="clippath_".concat(this.data.id);for(var[,{x:A,y:C},{x:w,y:S}]of(y.setAttribute("id",_),y.setAttribute("clipPathUnits","objectBoundingBox"),b.append(y),e)){var k,x=g.createElement("rect"),P=(w-t)/h,E=(i-C)/v,O=(A-w)/h,T=(C-S)/v;x.setAttribute("x",P),x.setAttribute("y",E),x.setAttribute("width",O),x.setAttribute("height",T),y.append(x),null===(k=c)||void 0===k||k.push(''))}_classPrivateFieldGet(this,f)&&(c.push("')"),u.backgroundImage=c.join("")),this.container.append(m),this.container.style.clipPath="url(#".concat(_,")")}}}_createPopup(){var{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");var r=new E({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(r.render())}render(){(0,n.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var i=this._fieldObjects[e];if(i)for(var{page:o,id:a,exportValues:s}of i)if(-1!==o&&a!==t){var l="string"===typeof s?s:null,c=document.querySelector('[data-element-id="'.concat(a,'"]'));!c||u.has(c)?r.push({id:a,exportValue:l,domElement:c}):(0,n.warn)("_getElementsByName - element not allowed: ".concat(a))}return r}for(var d of document.getElementsByName(e)){var{exportValue:p}=d,f=d.getAttribute("data-element-id");f!==t&&u.has(d)&&r.push({id:f,exportValue:p,domElement:d})}return r}show(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){var e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(var t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){var{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var r;null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}var v=new WeakSet,g=new WeakSet;class m extends h{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),this.isTooltipOnly=e.data.isTooltipOnly}render(){var{data:e,linkService:t}=this,r=document.createElement("a");r.setAttribute("data-element-id",e.id);var n=!1;return e.url?(t.addLinkAttributes(r,e.url,e.newWindow),n=!0):e.action?(this._bindNamedAction(r,e.action),n=!0):e.attachment?(this._bindAttachment(r,e.attachment),n=!0):e.setOCGState?(_classPrivateMethodGet(this,g,y).call(this,r,e.setOCGState),n=!0):e.dest?(this._bindLink(r,e.dest),n=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),n=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(r,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(r),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_classPrivateMethodGet(this,v,b).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_classPrivateMethodGet(this,v,b).call(this)}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,t.content,t.filename),!1},_classPrivateMethodGet(this,v,b).call(this)}_bindJSAction(e,t){var r=this;e.href=this.linkService.getAnchorUrl("");var n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),i=function(i){var o=n.get(i);if(!o)return 1;e[o]=()=>{var e;return null===(e=r.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:r,detail:{id:t.id,name:i}}),!1}};for(var o of Object.keys(t.actions))i(o);e.onclick||(e.onclick=()=>!1),_classPrivateMethodGet(this,v,b).call(this)}_bindResetFormAction(e,t){var r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),_classPrivateMethodGet(this,v,b).call(this),!this._fieldObjects)return(0,n.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(r||(e.onclick=()=>!1));e.onclick=()=>{null===r||void 0===r||r();var{fields:e,refs:i,include:o}=t,a=[];if(0!==e.length||0!==i.length){var s=new Set(i);for(var l of e){var c=this._fieldObjects[l]||[];for(var{id:d}of c)s.add(d)}for(var p of Object.values(this._fieldObjects))for(var f of p)s.has(f.id)===o&&a.push(f)}else for(var h of Object.values(this._fieldObjects))a.push(...h);var v,g=this.annotationStorage,m=[];for(var b of a){var{id:y}=b;switch(m.push(y),b.type){case"text":var _=b.defaultValue||"";g.setValue(y,{value:_});break;case"checkbox":case"radiobutton":var A=b.defaultValue===b.exportValues;g.setValue(y,{value:A});break;case"combobox":case"listbox":var C=b.defaultValue||"";g.setValue(y,{value:C});break;default:continue}var w=document.querySelector('[data-element-id="'.concat(y,'"]'));w&&(u.has(w)?w.dispatchEvent(new Event("resetform")):(0,n.warn)("_bindResetFormAction - element not allowed: ".concat(y)))}return this.enableScripting&&(null===(v=this.linkService.eventBus)||void 0===v||v.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:m,name:"ResetForm"}})),!1}}}function b(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_classPrivateMethodGet(this,v,b).call(this)}class _ extends h{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");var e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class A extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){var{isWin:t,isMac:r}=n.FeatureTest.platform;return t&&e.ctrlKey||r&&e.metaKey}_setEventListener(e,t,r,n,i){r.includes("mouse")?e.addEventListener(r,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:i(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(r,(e=>{var o;if("blur"===r){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===r){if(t.focused)return;t.focused=!0}i&&(null===(o=this.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:i(e)}}))}))}_setEventListeners(e,t,r,n){for(var[i,o]of r){var a,s,l;("Action"===o||null!==(a=this.data.actions)&&void 0!==a&&a[o])&&("Focus"!==o&&"Blur"!==o||t||(t={focused:!1}),this._setEventListener(e,t,i,o,n),"Focus"!==o||null!==(s=this.data.actions)&&void 0!==s&&s.Blur?"Blur"!==o||null!==(l=this.data.actions)&&void 0!==l&&l.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}_setBackgroundColor(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":n.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){var t,{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style,a=e=>Math.round(10*e)/10;if(this.data.multiLine){var s=Math.abs(this.data.rect[3]-this.data.rect[1]-2),l=s/(Math.round(s/(n.LINE_FACTOR*i))||1);t=Math.min(i,a(l/n.LINE_FACTOR))}else{var c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);t=Math.min(i,a(c/n.LINE_FACTOR))}o.fontSize="calc(".concat(t,"px * var(--scale-factor))"),o.color=n.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(o.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class C extends A{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,n){var i=this.annotationStorage;for(var o of this._getElementsByName(e.name,e.id))o.domElement&&(o.domElement[t]=r),i.setValue(o.id,{[n]:r})}render(){var e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");var r=null;if(this.renderForms){var n,i=e.getValue(t,{value:this.data.fieldValue}),o=i.value||"",a=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;a&&o.length>a&&(o=o.slice(0,a));var s=i.formattedValue||(null===(n=this.data.textContent)||void 0===n?void 0:n.join("\n"))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));var l,d,p={userValue:o,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((r=document.createElement("textarea")).textContent=null!==(l=s)&&void 0!==l?l:o,this.data.doNotScroll&&(r.style.overflowY="hidden")):((r=document.createElement("input")).type="text",r.setAttribute("value",null!==(d=s)&&void 0!==d?d:o),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=c,this._setRequired(r,this.data.required),a&&(r.maxLength=a),r.addEventListener("input",(n=>{e.setValue(t,{value:n.target.value}),this.setPropertyOnSiblings(r,"value",n.target.value,"value"),p.formattedValue=null})),r.addEventListener("resetform",(e=>{var t,n=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";r.value=p.userValue=n,p.formattedValue=null}));var f=e=>{var{formattedValue:t}=p;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var h;r.addEventListener("focus",(e=>{if(!p.focused){var{target:t}=e;p.userValue&&(t.value=p.userValue),p.lastCommittedValue=t.value,p.commitKey=1,p.focused=!0}})),r.addEventListener("updatefromsandbox",(r=>{this.showElementAndHideCanvas(r.target);var n={value(r){var n;p.userValue=null!==(n=r.detail.value)&&void 0!==n?n:"",e.setValue(t,{value:p.userValue.toString()}),r.target.value=p.userValue},formattedValue(r){var{formattedValue:n}=r.detail;p.formattedValue=n,null!==n&&void 0!==n&&r.target!==document.activeElement&&(r.target.value=n),e.setValue(t,{formattedValue:n})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:r=>{var n,{charLimit:i}=r.detail,{target:o}=r;if(0!==i){o.setAttribute("maxLength",i);var a=p.userValue;!a||a.length<=i||(a=a.slice(0,i),o.value=p.userValue=a,e.setValue(t,{value:a}),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}else o.removeAttribute("maxLength")}};this._dispatchEventFromSandbox(n,r)})),r.addEventListener("keydown",(e=>{var r;p.commitKey=1;var n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(p.commitKey=3):n=2,-1!==n){var{value:i}=e.target;p.lastCommittedValue!==i&&(p.lastCommittedValue=i,p.userValue=i,null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}}));var v=f;f=null,r.addEventListener("blur",(e=>{if(p.focused&&e.relatedTarget){p.focused=!1;var r,{value:n}=e.target;p.userValue=n,p.lastCommittedValue!==n&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:p.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),v(e)}})),null!==(h=this.data.actions)&&void 0!==h&&h.Keystroke&&r.addEventListener("beforeinput",(e=>{var r;p.lastCommittedValue=null;var{data:n,target:i}=e,{value:o,selectionStart:a,selectionEnd:s}=i,l=a,c=s;switch(e.inputType){case"deleteWordBackward":var u=o.substring(0,a).match(/\w*[^\w]*$/);u&&(l-=u[0].length);break;case"deleteWordForward":var d=o.substring(a).match(/^[^\w]*\w*/);d&&(c+=d[0].length);break;case"deleteContentBackward":a===s&&(l-=1);break;case"deleteContentForward":a===s&&(c+=1)}e.preventDefault(),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:n||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(r,p,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(f&&r.addEventListener("blur",f),this.data.comb){var g=(this.data.rect[2]-this.data.rect[0])/a;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(g,"px * var(--scale-factor) - 1ch)")}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class w extends A{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class S extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.exportValue===t.fieldValue}).value;"string"===typeof n&&(n="Off"!==n,e.setValue(r,{value:n})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var i=document.createElement("input");return u.add(i),i.setAttribute("data-element-id",r),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,n&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=c,i.addEventListener("change",(n=>{var{name:i,checked:o}=n.target;for(var a of this._getElementsByName(i,r)){var s=o&&a.exportValue===t.exportValue;a.domElement&&(a.domElement.checked=s),e.setValue(a.id,{value:s})}e.setValue(r,{value:o})})),i.addEventListener("resetform",(e=>{var r=t.defaultFieldValue||"Off";e.target.checked=r===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{var n={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(r,{value:t.target.checked})}};this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class k extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof n&&(n=n!==t.buttonValue,e.setValue(r,{value:n}));var i=document.createElement("input");if(u.add(i),i.setAttribute("data-element-id",r),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,n&&i.setAttribute("checked",!0),i.tabIndex=c,i.addEventListener("change",(t=>{var{name:n,checked:i}=t.target;for(var o of this._getElementsByName(n,r))e.setValue(o.id,{value:!1});e.setValue(r,{value:i})})),i.addEventListener("resetform",(e=>{var r=t.defaultFieldValue;e.target.checked=null!==r&&void 0!==r&&r===t.buttonValue})),this.enableScripting&&this.hasJSActions){var o=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{var n={value:t=>{var n=o===t.detail.value;for(var i of this._getElementsByName(t.target.name)){var a=n&&i.id===r;i.domElement&&(i.domElement.checked=a),e.setValue(i.id,{value:a})}}};this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class x extends m{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){var e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);var t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class P extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");var e=this.annotationStorage,t=this.data.id,r=e.getValue(t,{value:this.data.fieldValue}),n=document.createElement("select");u.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,this._setRequired(n,this.data.required),n.name=this.data.fieldName,n.tabIndex=c;var i=this.data.combo&&this.data.options.length>0;for(var o of(this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0)),n.addEventListener("resetform",(e=>{var t=this.data.defaultFieldValue;for(var r of n.options)r.selected=r.value===t})),this.data.options)){var a=document.createElement("option");a.textContent=o.displayValue,a.value=o.exportValue,r.value.includes(o.exportValue)&&(a.setAttribute("selected",!0),i=!1),n.append(a)}var s=null;if(i){var l=document.createElement("option");l.value=" ",l.setAttribute("hidden",!0),l.setAttribute("selected",!0),n.prepend(l),s=()=>{l.remove(),n.removeEventListener("input",s),s=null},n.addEventListener("input",s)}var d=e=>{var t=e?"value":"textContent",{options:r,multiple:i}=n;return i?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[t])):-1===r.selectedIndex?null:r[r.selectedIndex][t]},p=d(!1),f=e=>{var t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(n.addEventListener("updatefromsandbox",(r=>{var i={value(r){var i;null===(i=s)||void 0===i||i();var o=r.detail.value,a=new Set(Array.isArray(o)?o:[o]);for(var l of n.options)l.selected=a.has(l.value);e.setValue(t,{value:d(!0)}),p=d(!1)},multipleSelection(e){n.multiple=!0},remove(r){var i=n.options,o=r.detail.remove;if(i[o].selected=!1,n.remove(o),i.length>0){var a=Array.prototype.findIndex.call(i,(e=>e.selected));-1===a&&(i[0].selected=!0)}e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},clear(r){for(;0!==n.length;)n.remove(0);e.setValue(t,{value:null,items:[]}),p=d(!1)},insert(r){var{index:i,displayValue:o,exportValue:a}=r.detail.insert,s=n.children[i],l=document.createElement("option");l.textContent=o,l.value=a,s?s.before(l):n.append(l),e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},items(r){for(var{items:i}=r.detail;0!==n.length;)n.remove(0);for(var o of i){var{displayValue:a,exportValue:s}=o,l=document.createElement("option");l.textContent=a,l.value=s,n.append(l)}n.options.length>0&&(n.options[0].selected=!0),e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},indices(r){var n=new Set(r.detail.indices);for(var i of r.target.options)i.selected=n.has(i.index);e.setValue(t,{value:d(!0)}),p=d(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,r)})),n.addEventListener("input",(r=>{var n,i=d(!0);e.setValue(t,{value:i}),r.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:p,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(n,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):n.addEventListener("input",(function(r){e.setValue(t,{value:d(!0)})})),this.data.combo&&this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class E extends h{constructor(e){var{data:t,elements:r}=e;super(e,{isRenderable:h._hasPopupData(t)}),this.elements=r}render(){this.container.classList.add("popupAnnotation");var e=new X({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(var r of this.elements)r.popup=e,t.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>"".concat(n.AnnotationPrefix).concat(e))).join(",")),this.container}}var O=new WeakMap,T=new WeakMap,R=new WeakMap,M=new WeakMap,F=new WeakMap,D=new WeakMap,I=new WeakMap,B=new WeakMap,j=new WeakMap,N=new WeakMap,L=new WeakMap,Z=new WeakMap,G=new WeakMap,z=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakSet,V=new WeakSet,Y=new WeakSet,K=new WeakSet;class X{constructor(e){var{container:t,color:r,elements:n,titleObj:o,modificationDate:a,contentsObj:s,richText:l,parent:c,rect:u,parentRect:d,open:p}=e;_classPrivateMethodInitSpec(this,K),_classPrivateMethodInitSpec(this,Y),_classPrivateMethodInitSpec(this,V),_classPrivateMethodInitSpec(this,H),_classPrivateFieldInitSpec(this,O,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:_classPrivateMethodGet(this,H,$).bind(this)}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:_classPrivateMethodGet(this,K,ee).bind(this)}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:_classPrivateMethodGet(this,Y,J).bind(this)}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:_classPrivateMethodGet(this,V,Q).bind(this)}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:!1}),_classPrivateFieldSet(this,I,t),_classPrivateFieldSet(this,W,o),_classPrivateFieldSet(this,B,s),_classPrivateFieldSet(this,U,l),_classPrivateFieldSet(this,N,c),_classPrivateFieldSet(this,D,r),_classPrivateFieldSet(this,z,u),_classPrivateFieldSet(this,L,d),_classPrivateFieldSet(this,j,n);var f=i.PDFDateString.toDateObject(a);for(var h of(f&&_classPrivateFieldSet(this,O,c.l10n.get("annotation_date_string",{date:f.toLocaleDateString(),time:f.toLocaleTimeString()})),this.trigger=n.flatMap((e=>e.getElementsToTriggerPopup())),this.trigger))h.addEventListener("click",_classPrivateFieldGet(this,F)),h.addEventListener("mouseenter",_classPrivateFieldGet(this,M)),h.addEventListener("mouseleave",_classPrivateFieldGet(this,R)),h.classList.add("popupTriggerArea");for(var v of n){var g;null===(g=v.container)||void 0===g||g.addEventListener("keydown",_classPrivateFieldGet(this,T))}_classPrivateFieldGet(this,I).hidden=!0,p&&_classPrivateMethodGet(this,V,Q).call(this)}render(){if(!_classPrivateFieldGet(this,G)){var{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:r,pageX:i,pageY:o}}}=_classPrivateFieldGet(this,N),a=_classPrivateFieldSet(this,G,document.createElement("div"));if(a.className="popup",_classPrivateFieldGet(this,D)){var s=a.style.outlineColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,D));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?a.style.backgroundColor="color-mix(in srgb, ".concat(s," 30%, white)"):a.style.backgroundColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,D).map((e=>Math.floor(.7*(255-e)+e))))}var c=document.createElement("span");c.className="header";var u=document.createElement("h1");if(c.append(u),({dir:u.dir,str:u.textContent}=_classPrivateFieldGet(this,W)),a.append(c),_classPrivateFieldGet(this,O)){var d=document.createElement("span");d.classList.add("popupDate"),_classPrivateFieldGet(this,O).then((e=>{d.textContent=e})),c.append(d)}var p=_classPrivateFieldGet(this,B),f=_classPrivateFieldGet(this,U);if(null===f||void 0===f||!f.str||null!==p&&void 0!==p&&p.str&&p.str!==f.str){var h=this._formatContents(p);a.append(h)}else l.XfaLayer.render({xfaHtml:f.html,intent:"richText",div:a}),a.lastChild.classList.add("richText","popupContent");var v=!!_classPrivateFieldGet(this,L),g=_classPrivateFieldGet(this,v?L:z);for(var m of _classPrivateFieldGet(this,j))if(!g||null!==n.Util.intersect(m.data.rect,g)){g=m.data.rect,v=!0;break}var b=n.Util.normalizeRect([g[0],e[3]-g[1]+e[1],g[2],e[3]-g[3]+e[1]]),y=v?g[2]-g[0]+5:0,_=b[0]+y,A=b[1],{style:C}=_classPrivateFieldGet(this,I);C.left="".concat(100*(_-i)/t,"%"),C.top="".concat(100*(A-o)/r,"%"),_classPrivateFieldGet(this,I).append(a)}}_formatContents(e){var{str:t,dir:r}=e,n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;for(var i=t.split(/(?:\r\n?|\n)/),o=0,a=i.length;o{"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&_classPrivateMethodGet(this,_e,Ce).call(this)})),!r.popupRef&&this.hasPopupData?this._createPopup():e.classList.add("popupTriggerArea"),t.append(e),t}getElementsToTriggerPopup(){return _classPrivateFieldGet(this,ye)}addHighlightArea(){this.container.classList.add("highlightArea")}}function Ce(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var we=new WeakMap,Se=new WeakMap,ke=new WeakMap,xe=new WeakSet,Pe=new WeakSet;function Ee(e,t){var r,i=e.firstChild||e;i.id="".concat(n.AnnotationPrefix).concat(t),this.div.append(e),null===(r=_classPrivateFieldGet(this,we))||void 0===r||r.moveElementInDOM(this.div,e,i,!1)}function Oe(){if(_classPrivateFieldGet(this,Se)){var e=this.div;for(var[t,r]of _classPrivateFieldGet(this,Se)){var n=e.querySelector('[data-annotation-id="'.concat(t,'"]'));if(n){var{firstChild:i}=n;i?"CANVAS"===i.nodeName?i.replaceWith(r):i.before(r):n.append(r)}}_classPrivateFieldGet(this,Se).clear()}}t.AnnotationLayer=class{constructor(e){var{div:t,accessibilityManager:r,annotationCanvasMap:n,l10n:i,page:o,viewport:a}=e;_classPrivateMethodInitSpec(this,Pe),_classPrivateMethodInitSpec(this,xe),_classPrivateFieldInitSpec(this,we,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Se,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ke,{writable:!0,value:new Map}),this.div=t,_classPrivateFieldSet(this,we,r),_classPrivateFieldSet(this,Se,n),this.l10n=i,this.page=o,this.viewport=a,this.zIndex=0,this.l10n||(this.l10n=s.NullL10n)}render(e){var t=this;return _asyncToGenerator((function*(){var{annotations:r}=e,a=t.div;(0,i.setLayerDimensions)(a,t.viewport);var s=new Map,l={data:null,layer:a,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:t,elements:null};for(var c of r)if(!c.noHTML){var u=c.annotationType===n.AnnotationType.POPUP;if(u){var f=s.get(c.id);if(!f)continue;l.elements=f}else{var{width:h,height:v}=d(c.rect);if(h<=0||v<=0)continue}l.data=c;var g=p.create(l);if(g.isRenderable){if(!u&&c.popupRef){var m=s.get(c.popupRef);m?m.push(g):s.set(c.popupRef,[g])}g.annotationEditorType>0&&_classPrivateFieldGet(t,ke).set(g.data.id,g);var b=g.render();c.hidden&&(b.style.visibility="hidden"),_classPrivateMethodGet(t,xe,Ee).call(t,b,c.id)}}_classPrivateMethodGet(t,Pe,Oe).call(t),yield t.l10n.translate(a)}))()}update(e){var{viewport:t}=e,r=this.div;this.viewport=t,(0,i.setLayerDimensions)(r,{rotation:t.rotation}),_classPrivateMethodGet(this,Pe,Oe).call(this),r.hidden=!1}getEditableAnnotations(){return Array.from(_classPrivateFieldGet(this,ke).values())}getEditableAnnotation(e){return _classPrivateFieldGet(this,ke).get(e)}}},(e,t)=>{function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function n(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){var[t,r,n,i]=e;return["G",1-Math.min(1,.3*t+.59*n+.11*r+i)]}static G_CMYK(e){var[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){var[t]=e;return["RGB",t,t,t]}static G_rgb(e){var[t]=e;return[t=n(t),t,t]}static G_HTML(e){var[t]=e,n=r(t);return"#".concat(n).concat(n).concat(n)}static RGB_G(e){var[t,r,n]=e;return["G",.3*t+.59*r+.11*n]}static RGB_rgb(e){return e.map(n)}static RGB_HTML(e){return"#".concat(e.map(r).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){var[t,r,n,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,n+i),1-Math.min(1,r+i)]}static CMYK_rgb(e){var[t,r,i,o]=e;return[n(1-Math.min(1,t+o)),n(1-Math.min(1,i+o)),n(1-Math.min(1,r+o))]}static CMYK_HTML(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){var[t,r,n]=e,i=1-t,o=1-r,a=1-n;return["CMYK",i,o,a,Math.min(i,o,a)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=n;var r={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function n(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return r[e]||""}r.print_progress_percent="{{progress}}%";var i={getLanguage(){return _asyncToGenerator((function*(){return"en-us"}))()},getDirection(){return _asyncToGenerator((function*(){return"ltr"}))()},get(e){var t=arguments;return _asyncToGenerator((function*(){var r=t.length>1&&void 0!==t[1]?t[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(t.length>2&&void 0!==t[2]?t[2]:n(e,r),r)}))()},translate(e){return _asyncToGenerator((function*(){}))()}};t.NullL10n=i},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var n=r(25);t.XfaLayer=class{static setupStorage(e,t,r,n,i){var o=n.getValue(t,{value:null});switch(r.name){case"textarea":if(null!==o.value&&(e.textContent=o.value),"print"===i)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(o.value===r.attributes.xfaOn?e.setAttribute("checked",!0):o.value===r.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{n.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==o.value&&e.setAttribute("value",o.value),"print"===i)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==o.value)for(var a of(e.setAttribute("value",o.value),r.children))a.attributes.value===o.value?a.attributes.selected=!0:a.attributes.hasOwnProperty("selected")&&delete a.attributes.selected;e.addEventListener("input",(e=>{var r=e.target.options,i=-1===r.selectedIndex?"":r[r.selectedIndex].value;n.setValue(t,{value:i})}))}}static setAttributes(e){var{html:t,element:r,storage:n=null,intent:i,linkService:o}=e,{attributes:a}=r,s=t instanceof HTMLAnchorElement;for(var[l,c]of("radio"===a.type&&(a.name="".concat(a.name,"-").concat(i)),Object.entries(a)))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&o.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(e){var t=e.annotationStorage,r=e.linkService,i=e.xfaHtml,o=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:o,linkService:r});var s=[[i,-1,a]],l=e.div;if(l.append(a),e.viewport){var c="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=c}"richText"!==o&&l.setAttribute("class","xfaLayer xfaFont");for(var u=[];s.length>0;){var d,[p,f,h]=s.at(-1);if(f+1!==p.children.length){var v=p.children[++s.at(-1)[1]];if(null!==v){var{name:g}=v;if("#text"!==g){var m=null!==v&&void 0!==v&&null!==(d=v.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(v.attributes.xmlns,g):document.createElement(g);if(h.append(m),v.attributes&&this.setAttributes({html:m,element:v,storage:t,intent:o,linkService:r}),v.children&&v.children.length>0)s.push([v,-1,m]);else if(v.value){var b=document.createTextNode(v.value);n.XfaText.shouldBuildText(g)&&u.push(b),m.append(b)}}else{var y=document.createTextNode(v.value);u.push(y),h.append(y)}}}else s.pop()}for(var _ of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))_.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var i=r(1),o=r(4),a=r(29),s=r(6),l=r(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakMap,C=new WeakMap,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet,P=new WeakSet,E=new WeakSet,O=new WeakSet,T=new WeakSet,R=new WeakSet,M=new WeakSet,F=new WeakSet,D=new WeakSet,I=new WeakSet,B=new WeakSet,j=new WeakSet,N=new WeakSet,L=new WeakSet,Z=new WeakSet,G=new WeakSet,z=new WeakSet,U=new WeakSet,W=new WeakSet,q=new WeakSet;class H extends o.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})),_classPrivateMethodInitSpec(this,q),_classPrivateMethodInitSpec(this,W),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,z),_classPrivateMethodInitSpec(this,G),_classPrivateMethodInitSpec(this,Z),_classPrivateMethodInitSpec(this,L),_classPrivateMethodInitSpec(this,N),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,I),_classPrivateMethodInitSpec(this,D),_classPrivateMethodInitSpec(this,F),_classPrivateMethodInitSpec(this,M),_classPrivateMethodInitSpec(this,R),_classPrivateMethodInitSpec(this,T),_classPrivateMethodInitSpec(this,O),_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.canvasPointermove.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.canvasPointerleave.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.canvasPointerup.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.canvasPointerdown.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:new Path2D}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,C,{writable:!0,value:null}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){o.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:H._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:H._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:H._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,w,V).call(this,t);break;case i.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,S,Y).call(this,t);break;case i.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,k,K).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,H._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,H._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*H._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||H._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||H._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:H._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,j,se).call(this),_classPrivateMethodGet(this,N,le).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,L,ce).call(this)),_classPrivateMethodGet(this,q,be).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,y).disconnect(),_classPrivateFieldSet(this,y,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){var[e,t]=this.parentDimensions,r=this.width*e,n=this.height*t;this.setDimensions(r,n)}enableEditMode(){_classPrivateFieldGet(this,g)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,h)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,h)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(this,g)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,g,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,q,be).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(this,g)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_classPrivateMethodGet(this,E,Q).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),_classPrivateMethodGet(this,O,J).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),_classPrivateMethodGet(this,B,ae).call(this,e)}canvasPointerleave(e){_classPrivateMethodGet(this,B,ae).call(this,e)}get isResizable(){return!this.isEmpty()&&_classPrivateFieldGet(this,g)}render(){if(this.div)return this.div;var e,t;this.width&&(e=this.x,t=this.y),super.render(),o.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));var[r,n,i,a]=_classPrivateMethodGet(this,x,X).call(this);if(this.setAt(r,n,0,0),this.setDims(i,a),_classPrivateMethodGet(this,j,se).call(this),this.width){var[s,l]=this.parentDimensions;this.setAspectRatio(this.width*s,this.height*l),this.setAt(e*s,t*l,this.width*s,this.height*l),_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,L,ce).call(this),this.setDims(this.width*s,this.height*l),_classPrivateMethodGet(this,I,oe).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,N,le).call(this),this.div}setDimensions(e,t){var r=Math.round(e),n=Math.round(t);if(_classPrivateFieldGet(this,_)!==r||_classPrivateFieldGet(this,A)!==n){_classPrivateFieldSet(this,_,r),_classPrivateFieldSet(this,A,n),this.canvas.style.visibility="hidden";var[i,o]=this.parentDimensions;this.width=e/i,this.height=t/o,this.fixAndSetPosition(),_classPrivateFieldGet(this,g)&&_classPrivateMethodGet(this,Z,ue).call(this,e,t),_classPrivateMethodGet(this,L,ce).call(this),_classPrivateMethodGet(this,I,oe).call(this),this.canvas.style.visibility="visible",this.fixDims()}}static deserialize(e,t,r){if(e instanceof a.InkAnnotationElement)return null;var n=super.deserialize(e,t,r);n.thickness=e.thickness,n.color=i.Util.makeHexColor(...e.color),n.opacity=e.opacity;var[s,l]=n.pageDimensions,d=n.width*s,p=n.height*l,f=n.parentScale,h=e.thickness/2;_classPrivateFieldSet(n,g,!0),_classPrivateFieldSet(n,_,Math.round(d)),_classPrivateFieldSet(n,A,Math.round(p));var{paths:v,rect:m,rotation:b}=e;for(var{bezier:y}of v){y=_classStaticPrivateMethodGet(H,H,he).call(H,y,m,b);var C=[];n.paths.push(C);for(var w=f*(y[0]-h),S=f*(y[1]-h),k=2,x=y.length;k{this.thickness=e,_classPrivateMethodGet(this,q,be).call(this)},undo:()=>{this.thickness=t,_classPrivateMethodGet(this,q,be).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function Y(e){var t=this.color;this.addCommands({cmd:()=>{this.color=e,_classPrivateMethodGet(this,I,oe).call(this)},undo:()=>{this.color=t,_classPrivateMethodGet(this,I,oe).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function K(e){e/=100;var t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_classPrivateMethodGet(this,I,oe).call(this)},undo:()=>{this.opacity=t,_classPrivateMethodGet(this,I,oe).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function X(){var{parentRotation:e,parentDimensions:[t,r]}=this;switch(e){case 90:return[0,r,r,t];case 180:return[t,r,t,r];case 270:return[t,0,r,t];default:return[0,0,t,r]}}function $(){var{ctx:e,color:t,opacity:r,thickness:n,parentScale:i,scaleFactor:o}=this;e.lineWidth=n*i/o,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(r))}function Q(e,t){var r;this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(this,p)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(this,d)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(this,f)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,h)),this.isEditing=!0,_classPrivateFieldGet(this,b)||(_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,L,ce).call(this),this.thickness||(this.thickness=n._defaultThickness),this.color||(this.color=n._defaultColor||o.AnnotationEditor._defaultLineColor),null!==(r=this.opacity)&&void 0!==r||(this.opacity=n._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(this,m,!1),_classPrivateMethodGet(this,P,$).call(this),_classPrivateFieldSet(this,C,(()=>{_classPrivateMethodGet(this,M,re).call(this),_classPrivateFieldGet(this,C)&&window.requestAnimationFrame(_classPrivateFieldGet(this,C))})),window.requestAnimationFrame(_classPrivateFieldGet(this,C))}function J(e,t){var[r,n]=this.currentPath.at(-1);if(!(this.currentPath.length>1&&e===r&&t===n)){var i=this.currentPath,o=_classPrivateFieldGet(this,v);if(i.push([e,t]),_classPrivateFieldSet(this,m,!0),i.length<=2)return o.moveTo(...i[0]),void o.lineTo(e,t);3===i.length&&(_classPrivateFieldSet(this,v,o=new Path2D),o.moveTo(...i[0])),_classPrivateMethodGet(this,F,ne).call(this,o,...i.at(-3),...i.at(-2),e,t)}}function ee(){if(0!==this.currentPath.length){var e=this.currentPath.at(-1);_classPrivateFieldGet(this,v).lineTo(...e)}}function te(e,t){var r;if(_classPrivateFieldSet(this,C,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_classPrivateMethodGet(this,O,J).call(this,e,t),_classPrivateMethodGet(this,T,ee).call(this),1!==this.currentPath.length)r=_classPrivateMethodGet(this,D,ie).call(this);else{var n=[e,t];r=[[n,n.slice(),n.slice(),n]]}var i=_classPrivateFieldGet(this,v),o=this.currentPath;this.currentPath=[],_classPrivateFieldSet(this,v,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(o),this.paths.push(r),this.bezierPath2D.push(i),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_classPrivateMethodGet(this,j,se).call(this),_classPrivateMethodGet(this,N,le).call(this)),_classPrivateMethodGet(this,q,be).call(this))},mustExec:!0})}function re(){if(_classPrivateFieldGet(this,m)){_classPrivateFieldSet(this,m,!1);Math.ceil(this.thickness*this.parentScale);var e=this.currentPath.slice(-3),t=e.map((e=>e[0])),r=e.map((e=>e[1])),{ctx:n}=(Math.min(...t),Math.max(...t),Math.min(...r),Math.max(...r),this);for(var i of(n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height),this.bezierPath2D))n.stroke(i);n.stroke(_classPrivateFieldGet(this,v)),n.restore()}}function ne(e,t,r,n,i,o,a){var s=(t+n)/2,l=(r+i)/2,c=(n+o)/2,u=(i+a)/2;e.bezierCurveTo(s+2*(n-s)/3,l+2*(i-l)/3,c+2*(n-c)/3,u+2*(i-u)/3,c,u)}function ie(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t,r=[],[n,i]=e[0];for(t=1;t{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),_classPrivateMethodGet(this,R,te).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function se(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",o.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function le(){_classPrivateFieldSet(this,y,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(this,y).observe(this.div)}function ce(){if(_classPrivateFieldGet(this,b)){var[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_classPrivateMethodGet(this,G,de).call(this)}}function ue(e,t){var r=_classPrivateMethodGet(this,W,me).call(this),n=(e-r)/_classPrivateFieldGet(this,u),i=(t-r)/_classPrivateFieldGet(this,c);this.scaleFactor=Math.min(n,i)}function de(){var e=_classPrivateMethodGet(this,W,me).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function pe(e){for(var t=new Path2D,r=0,n=e.length;r0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(this,g)){var t=_classPrivateMethodGet(this,U,ge).call(this),r=_classPrivateMethodGet(this,W,me).call(this);_classPrivateFieldSet(this,u,Math.max(o.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(this,c,Math.max(o.AnnotationEditor.MIN_SIZE,t[3]-t[1]));var n=Math.ceil(r+_classPrivateFieldGet(this,u)*this.scaleFactor),i=Math.ceil(r+_classPrivateFieldGet(this,c)*this.scaleFactor),[a,s]=this.parentDimensions;this.width=n/a,this.height=i/s,this.setAspectRatio(n,i);var l=this.translationX,d=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,L,ce).call(this),_classPrivateMethodGet(this,I,oe).call(this),_classPrivateFieldSet(this,_,n),_classPrivateFieldSet(this,A,i),this.setDims(n,i);var p=e?r/this.scaleFactor/2:0;this.translate(l-this.translationX-p,d-this.translationY-p)}else _classPrivateMethodGet(this,I,oe).call(this)}n=H,_defineProperty(H,"_defaultColor",null),_defineProperty(H,"_defaultOpacity",1),_defineProperty(H,"_defaultThickness",1),_defineProperty(H,"_type","ink"),t.InkEditor=H},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var i=r(1),o=r(4),a=r(6),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakSet,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet;class P extends o.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"stampEditor"})),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldSet(this,d,e.bitmapUrl),_classPrivateFieldSet(this,p,e.bitmapFile)}static initialize(e){o.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,i.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>"image/".concat(e))))}static get supportedTypesStr(){return(0,i.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(i.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}remove(){var e,t;_classPrivateFieldGet(this,c)&&(_classPrivateFieldSet(this,l,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(this,c)),null===(e=_classPrivateFieldGet(this,f))||void 0===e||e.remove(),_classPrivateFieldSet(this,f,null),null===(t=_classPrivateFieldGet(this,h))||void 0===t||t.disconnect(),_classPrivateFieldSet(this,h,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,_,T).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,_,T).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(_classPrivateFieldGet(this,u)||_classPrivateFieldGet(this,l)||_classPrivateFieldGet(this,d)||_classPrivateFieldGet(this,p))}get isResizable(){return!0}render(){if(this.div)return this.div;var e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,_classPrivateFieldGet(this,l)?_classPrivateMethodGet(this,A,R).call(this):_classPrivateMethodGet(this,_,T).call(this),this.width){var[r,n]=this.parentDimensions;this.setAt(e*r,t*n,this.width*r,this.height*n)}return this.div}static deserialize(e,t,r){if(e instanceof s.StampAnnotationElement)return null;var n=super.deserialize(e,t,r),{rect:i,bitmapUrl:o,bitmapId:a,isSvg:l,accessibilityData:u}=e;a&&r.imageManager.isValidId(a)?_classPrivateFieldSet(n,c,a):_classPrivateFieldSet(n,d,o),_classPrivateFieldSet(n,g,l);var[p,f]=n.pageDimensions;return n.width=(i[2]-i[0])/p,n.height=(i[3]-i[1])/f,u&&(n.altTextData=u),n}serialize(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;var r={annotationType:i.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(this,c),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(this,g),structTreeParentId:this._structTreeParentId};if(e)return r.bitmapUrl=_classPrivateMethodGet(this,k,I).call(this,!0),r.accessibilityData=this.altTextData,r;var{decorative:n,altText:o}=this.altTextData;if(!n&&o&&(r.accessibilityData={type:"Figure",alt:o}),null===t)return r;t.stamps||(t.stamps=new Map);var a=_classPrivateFieldGet(this,g)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(this,c))){if(_classPrivateFieldGet(this,g)){var s=t.stamps.get(_classPrivateFieldGet(this,c));a>s.area&&(s.area=a,s.serialized.bitmap.close(),s.serialized.bitmap=_classPrivateMethodGet(this,k,I).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(this,c),{area:a,serialized:r}),r.bitmap=_classPrivateMethodGet(this,k,I).call(this,!1);return r}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(this,l,e.bitmap),t||(_classPrivateFieldSet(this,c,e.id),_classPrivateFieldSet(this,g,e.isSvg)),_classPrivateMethodGet(this,A,R).call(this)):this.remove()}function O(){_classPrivateFieldSet(this,u,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(this,f)&&this.div.focus()}function T(){var e=this;if(_classPrivateFieldGet(this,c))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(this,c)).then((e=>_classPrivateMethodGet(this,b,E).call(this,e,!0))).finally((()=>_classPrivateMethodGet(this,y,O).call(this)));if(_classPrivateFieldGet(this,d)){var t=_classPrivateFieldGet(this,d);return _classPrivateFieldSet(this,d,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromUrl(t).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}if(_classPrivateFieldGet(this,p)){var r=_classPrivateFieldGet(this,p);return _classPrivateFieldSet(this,p,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromFile(r).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}var i=document.createElement("input");i.type="file",i.accept=n.supportedTypesStr,_classPrivateFieldSet(this,u,new Promise((t=>{i.addEventListener("change",_asyncToGenerator((function*(){if(i.files&&0!==i.files.length){e._uiManager.enableWaiting(!0);var r=yield e._uiManager.imageManager.getFromFile(i.files[0]);_classPrivateMethodGet(e,b,E).call(e,r)}else e.remove();t()}))),i.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>_classPrivateMethodGet(this,y,O).call(this)))),i.click()}function R(){var{div:e}=this,{width:t,height:r}=_classPrivateFieldGet(this,l),[n,i]=this.pageDimensions,o=.75;if(this.width)t=this.width*n,r=this.height*i;else if(t>o*n||r>o*i){var a=Math.min(o*n/t,o*i/r);t*=a,r*=a}var[s,c]=this.parentDimensions;this.setDims(t*s/n,r*c/i),this._uiManager.enableWaiting(!1);var u=_classPrivateFieldSet(this,f,document.createElement("canvas"));e.append(u),e.hidden=!1,_classPrivateMethodGet(this,S,D).call(this,t,r),_classPrivateMethodGet(this,x,B).call(this),_classPrivateFieldGet(this,m)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(this,m,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function M(e,t){var r,[n,i]=this.parentDimensions;this.width=e/n,this.height=t/i,this.setDims(e,t),null!==(r=this._initialOptions)&&void 0!==r&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(this,v)&&clearTimeout(_classPrivateFieldGet(this,v)),_classPrivateFieldSet(this,v,setTimeout((()=>{_classPrivateFieldSet(this,v,null),_classPrivateMethodGet(this,S,D).call(this,e,t)}),200))}function F(e,t){for(var{width:r,height:n}=_classPrivateFieldGet(this,l),i=r,o=n,a=_classPrivateFieldGet(this,l);i>2*e||o>2*t;){var s=i,c=o;i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2)),o>2*t&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2));var u=new OffscreenCanvas(i,o);u.getContext("2d").drawImage(a,0,0,s,c,0,0,i,o),a=u.transferToImageBitmap()}return a}function D(e,t){e=Math.ceil(e),t=Math.ceil(t);var r=_classPrivateFieldGet(this,f);if(r&&(r.width!==e||r.height!==t)){r.width=e,r.height=t;var n=_classPrivateFieldGet(this,g)?_classPrivateFieldGet(this,l):_classPrivateMethodGet(this,w,F).call(this,e,t),i=r.getContext("2d");i.filter=this._uiManager.hcmFilter,i.drawImage(n,0,0,n.width,n.height,0,0,e,t)}}function I(e){if(e){if(_classPrivateFieldGet(this,g)){var t=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(this,c));if(t)return t}var r=document.createElement("canvas");return({width:r.width,height:r.height}=_classPrivateFieldGet(this,l)),r.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0),r.toDataURL()}if(_classPrivateFieldGet(this,g)){var[n,i]=this.pageDimensions,o=Math.round(this.width*n*a.PixelsPerInch.PDF_TO_CSS_UNITS),s=Math.round(this.height*i*a.PixelsPerInch.PDF_TO_CSS_UNITS),u=new OffscreenCanvas(o,s);return u.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0,_classPrivateFieldGet(this,l).width,_classPrivateFieldGet(this,l).height,0,0,o,s),u.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(this,l))}function B(){_classPrivateFieldSet(this,h,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&_classPrivateMethodGet(this,C,M).call(this,t.width,t.height)}))),_classPrivateFieldGet(this,h).observe(this.div)}n=P,_defineProperty(P,"_type","stamp"),t.StampEditor=P}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return o.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return a.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return n.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return r.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return n.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return n.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return n.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}});var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(2),n=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),o=__w_pdfjs_require__(27),a=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__webpack_exports__})(),module.exports=root.pdfjsLib=factory()},81199:function(e,t,r){"use strict";r.d(t,{yV:function(){return lt},S1:function(){return ct},mc:function(){return ut},Iv:function(){return dt},j:function(){return pt}});var n,i=r(27006);!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(n||(n={}));var o,a=function(e){return function(){var t=(0,i.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,i.XA)(t.split(".")),a=o.next();!a.done;a=o.next()){var s=a.value;if(!(s in e))return;e=e[s]}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return e},l=function(e,t){return function(){var r,n,o={};try{for(var a=(0,i.XA)(t),l=a.next();!l.done;l=a.next()){var c=l.value;o[c]=s(e,c)}}catch(u){r={error:u}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}},c=function(e,t,r,i,o){return void 0===o&&(o=null),function(){for(var a=[],s=0;s>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,e)};function _(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(r){}return t}var A=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){var r,n=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(d.f1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=y()),new Promise((function(r){var n={event:e,attempts:0,callback:function(e){return r(e)},timeout:0};t.addToQueue(n)}))},e.prototype.getTryableList=function(e){var t=this;return e.filter((function(e){return e.attempts0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,o=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(t=[],r=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):r.push(e)})),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),n=function(e,t){var r=Math.max(t,1);return e.reduce((function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e}),[])}(t,this.config.flushQueueSize),[4,Promise.all(n.map((function(t){return o.send(t,e)})))]);case 1:return i.sent(),this.scheduleTryable(r),[2]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,i.mG)(this,void 0,void 0,(function(){var r,n,a,s,l;return(0,i.Jh)(this,(function(c){switch(c.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;t.extra;return(0,i._T)(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString()},c.label=1;case 1:return c.trys.push([1,3,,4]),n=b(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:return null===(a=c.sent())?(this.fulfillRequest(e,0,"Unexpected error occurred"),[2]):t?(this.handleResponse(a,e),[3,4]):("body"in a?this.fulfillRequest(e,a.statusCode,"".concat(a.status,": ").concat(_(a))):this.fulfillRequest(e,a.statusCode,a.status),[2]);case 3:return s=c.sent(),l=(u=s)instanceof Error?u.message:String(u),this.config.loggerProvider.error(l),this.handleResponse({status:o.Failed,statusCode:0},e),[3,4];case 4:return[2]}var u}))}))},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))this.fulfillRequest(t,e.statusCode,e.body.error);else{var n=(0,i.ev)((0,i.ev)((0,i.ev)((0,i.ev)([],(0,i.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,i.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,i.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,i.CR)(e.body.silencedEvents),!1).flat(),o=new Set(n),a=t.filter((function(t,n){if(!o.has(n))return!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(_(e));var s=this.getTryableList(a);this.scheduleTryable(s)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(_(e)),this.config.flushQueueSize/=2;var r=this.getTryableList(t);this.scheduleTryable(r)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(n),s=new Set(i),l=new Set(o),c=t.filter((function(t,n){if(!(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)))return l.has(n)&&(t.timeout=r.throttleTimeout),!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));c.length>0&&this.config.loggerProvider.warn(_(e));var u=this.getTryableList(c);this.scheduleTryable(u)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),n=this.getTryableList(r);this.scheduleTryable(n)},e.prototype.fulfillRequest=function(e,t,r){this.removeEvents(e),e.forEach((function(e){return e.callback(p(e.event,t,r))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},e}(),C=r(52523),w=r(12778),S=r(46552),k=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return(0,S.L)(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,i.pi)({},this.properties):{};return e[w.al.REVENUE_PRODUCT_ID]=this.productId,e[w.al.REVENUE_QUANTITY]=this.quantity,e[w.al.REVENUE_PRICE]=this.price,e[w.al.REVENUE_TYPE]=this.revenueType,e[w.al.REVENUE]=this.revenue,e},e}(),x=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n,o;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e.name=null!==(r=e.name)&&void 0!==r?r:y(),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(o=e.setup)||void 0===o?void 0:o.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){var r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return r=this.plugins.findIndex((function(t){return t.name===e})),n=this.plugins[r],this.plugins.splice(r,1),[4,null===(t=n.teardown)||void 0===t?void 0:t.call(n)];case 1:return i.sent(),[2]}}))}))},e.prototype.reset=function(e){this.applying=!1,this.plugins.map((function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)})),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(r){t.queue.push([e,r]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,o,a,s,l,c,u,d,f,h,v,g,m,b,y,_,A,C;return(0,i.Jh)(this,(function(w){switch(w.label){case 0:if(!e)return[2];t=(0,i.CR)(e,1),r=t[0],n=(0,i.CR)(e,2),o=n[1],a=this.plugins.filter((function(e){return"before"===e.type})),w.label=1;case 1:w.trys.push([1,6,7,8]),s=(0,i.XA)(a),l=s.next(),w.label=2;case 2:return l.done?[3,5]:(h=l.value).execute?[4,h.execute((0,i.pi)({},r))]:[3,4];case 3:if(null===(v=w.sent()))return o({event:r,code:0,message:""}),[2];r=v,w.label=4;case 4:return l=s.next(),[3,2];case 5:return[3,8];case 6:return c=w.sent(),y={error:c},[3,8];case 7:try{l&&!l.done&&(_=s.return)&&_.call(s)}finally{if(y)throw y.error}return[7];case 8:u=this.plugins.filter((function(e){return"enrichment"===e.type||void 0===e.type})),w.label=9;case 9:w.trys.push([9,14,15,16]),d=(0,i.XA)(u),f=d.next(),w.label=10;case 10:return f.done?[3,13]:(h=f.value).execute?[4,h.execute((0,i.pi)({},r))]:[3,12];case 11:if(null===(v=w.sent()))return o({event:r,code:0,message:""}),[2];r=v,w.label=12;case 12:return f=d.next(),[3,10];case 13:return[3,16];case 14:return g=w.sent(),A={error:g},[3,16];case 15:try{f&&!f.done&&(C=d.return)&&C.call(d)}finally{if(A)throw A.error}return[7];case 16:return m=this.plugins.filter((function(e){return"destination"===e.type})),b=m.map((function(e){var t=(0,i.pi)({},r);return e.execute(t).catch((function(e){return p(t,0,String(e))}))})),Promise.all(b).then((function(e){var t=(0,i.CR)(e,1)[0]||p(r,100,"Event not tracked, no destination plugins on the instance");o(t)})),[2]}}))}))},e.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e,t,r,n=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return n.apply(e)})))];case 1:return i.sent(),t=this.plugins.filter((function(e){return"destination"===e.type})),r=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(r)];case 2:return i.sent(),[2]}}))}))},e}(),P=function(e,t){return(0,i.pi)((0,i.pi)({},t),{event_type:w.JU.IDENTIFY,user_properties:e.getUserProperties()})},E=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new x(this),this.name=e}return e.prototype._init=function(e){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,o,a,s,l,c;return(0,i.Jh)(this,(function(u){switch(u.label){case 0:t=this[e],this[e]=[],u.label=1;case 1:u.trys.push([1,8,9,10]),r=(0,i.XA)(t),n=r.next(),u.label=2;case 2:return n.done?[3,7]:(o=n.value,(a=o())&&"promise"in a?[4,a.promise]:[3,4]);case 3:return u.sent(),[3,6];case 4:return[4,a];case 5:u.sent(),u.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return s=u.sent(),l={error:s},[3,10];case 9:try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(l)throw l.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[2]}}))}))},e.prototype.track=function(e,t,r){var n=function(e,t,r){var n="string"===typeof e?{event_type:e}:e;return(0,i.pi)((0,i.pi)((0,i.pi)({},n),r),t&&{event_properties:t})}(e,t,r);return u(this.dispatch(n))},e.prototype.identify=function(e,t){var r=P(e,t);return u(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var o=function(e,t,r,n){var o;return(0,i.pi)((0,i.pi)({},n),{event_type:w.JU.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(o={},o[e]=t,o)})}(e,t,r,n);return u(this.dispatch(o))},e.prototype.setGroup=function(e,t,r){var n=function(e,t,r){var n,o=new C.h;return o.set(e,t),(0,i.pi)((0,i.pi)({},r),{event_type:w.JU.IDENTIFY,user_properties:o.getUserProperties(),groups:(n={},n[e]=t,n)})}(e,t,r);return u(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=function(e,t){return(0,i.pi)((0,i.pi)({},t),{event_type:w.JU.REVENUE,event_properties:e.getEventProperties()})}(e,t);return u(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),u())},e.prototype._addPlugin=function(e){return u(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),u())},e.prototype._removePlugin=function(e){return u(this.timeline.deregister(e))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(p(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t=this;return(0,i.Jh)(this,(function(r){return this.isReady?[2,this.process(e)]:[2,new Promise((function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))}))]}))}))},e.prototype.process=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,p(e,0,"Event skipped due to optOut config")]:[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return t=i.sent(),r=String(t),this.config.loggerProvider.error(r),[2,n=p(e,0,r)];case 3:return[2]}}))}))},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut=Boolean(e)},e.prototype.flush=function(){return u(this.timeline.flush())},e}(),O=function(e,t){return"boolean"===typeof e?e:!1!==(null===e||void 0===e?void 0:e[t])},T=function(e){return O(e,"attribution")},R=function(e){return O(e,"pageViews")},M=function(e){return O(e,"sessions")},F=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return R(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"===typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"===typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},D="dclid",I="fbclid",B="gbraid",j="gclid",N="ko_click_id",L="li_fat_id",Z="msclkid",G="rtd_cid",z="ttclid",U="twclid",W="wbraid",q={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},H=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},V=function(e,t,r,n){void 0===n&&(n=!0);e.referrer;var o=e.referring_domain,a=(0,i._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),c=(0,i._T)(s,["referrer","referring_domain"]);if(Y(r.excludeReferrers,e.referring_domain))return!1;if(!n&&function(e){return Object.values(e).every((function(e){return!e}))}(e)&&t)return!1;var u=JSON.stringify(a)!==JSON.stringify(c),d=H(o||"")!==H(l||"");return!t||u||d},Y=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))},K=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},X=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof r.g?r.g:void 0},$=function(){var e,t=X();return(null===(e=null===t||void 0===t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var r=t.split("=",2),n=Q(r[0]),i=Q(r[1]);return i?(e[n]=i,e):e}),{}):{}},Q=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(t){return""}},J=function(){function e(){}return e.prototype.parse=function(){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){return[2,(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},q),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=$();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!==(t=null===(e=r.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(n){}return r},e.prototype.getClickIds=function(){var e,t=$();return(e={})[D]=t[D],e[I]=t[I],e[B]=t[B],e[j]=t[j],e[N]=t[N],e[L]=t[L],e[Z]=t[Z],e[G]=t[G],e[z]=t[z],e[U]=t[U],e[W]=t[W],e},e}(),ee=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},te=function(){function e(e,t){var r,n,o,a;this.shouldTrackNewCampaign=!1,this.options=(0,i.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:K(null===(r=t.cookieOptions)||void 0===r?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=(n=t.apiKey,void 0===(o="MKTG")&&(o=""),void 0===a&&(a=10),[d.xp,o,n.substring(0,a)].filter(Boolean).join("_")),this.currentCampaign=q,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e,t;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return t=i.CR.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ee(this.sessionTimeout,this.lastEventTime),V(this.currentCampaign,this.previousCampaign,this.options,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},e.prototype.fetchCampaign=function(){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([(new J).parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}}))}))},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=function(e,t){var r=(0,i.pi)((0,i.pi)({},q),e),n=Object.entries(r).reduce((function(e,r){var n,o=(0,i.CR)(r,2),a=o[0],s=o[1];return e.setOnce("initial_".concat(a),null!==(n=null!==s&&void 0!==s?s:t.initialEmptyValue)&&void 0!==n?n:"EMPTY"),s?e.set(a,s):e.unset(a)}),new C.h);return P(n)}(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),re=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ne(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ne=function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},ie=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),oe=function(){return oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=200&&e<300?o.Success:429===e?o.RateLimit:413===e?o.PayloadTooLarge:408===e?o.Timeout:e>=400&&e<500?o.Invalid:e>=500?o.Failed:o.Unknown},e}(),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r,n,o;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if("undefined"===typeof fetch)throw new Error("FetchTransport is not supported");return r={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,r)];case 1:return[4,(n=i.sent()).text()];case 2:return o=i.sent(),[2,this.buildResponse(o?JSON.parse(o):{code:n.status})]}}))}))},t}(ye),Ae=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}}))}))},e.prototype.get=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=r.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(r){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var r;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){try{null===(r=this.storage)||void 0===r||r.setItem(e,JSON.stringify(t))}catch(i){}return[2]}))}))},e.prototype.remove=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(r){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(n){}return[2]}))}))},e.prototype.reset=function(){var e;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(r){}return[2]}))}))},e}(),Ce=1e3,we=function(e){function t(t){var r,n=this;return(n=e.call(this,null===(r=X())||void 0===r?void 0:r.localStorage)||this).loggerProvider=null===t||void 0===t?void 0:t.loggerProvider,n}return(0,i.ZT)(t,e),t.prototype.set=function(t,r){var n;return(0,i.mG)(this,void 0,void 0,(function(){var o;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return Array.isArray(r)&&r.length>Ce?(o=r.length-Ce,[4,e.prototype.set.call(this,t,r.slice(0,Ce))]):[3,2];case 1:return i.sent(),null===(n=this.loggerProvider)||void 0===n||n.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(Ce,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t}(Ae),Se=function(e){function t(){var t;return e.call(this,null===(t=X())||void 0===t?void 0:t.sessionStorage)||this}return(0,i.ZT)(t,e),t}(Ae),ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r=this;return(0,i.Jh)(this,(function(n){return[2,new Promise((function(n,i){"undefined"===typeof XMLHttpRequest&&i(new Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===r.state.done){var e=o.responseText,t=e?JSON.parse(e):{code:o.status},i=r.buildResponse(t);n(i)}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))}))]}))}))},t}(ye),xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r=this;return(0,i.Jh)(this,(function(n){return[2,new Promise((function(n,i){var o=X();if(!(null===o||void 0===o?void 0:o.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);return n(o.navigator.sendBeacon(e,JSON.stringify(t))?r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):r.buildResponse({code:500}))}catch(s){i(s)}}))]}))}))},t}(ye),Pe=function(e,t,r){return void 0===r&&(r=!0),(0,i.mG)(void 0,void 0,void 0,(function(){var n,o,a,s,l,c,u,p,f;return(0,i.Jh)(this,(function(h){switch(h.label){case 0:return n=function(e){return"".concat(d.xp.toLowerCase(),"_").concat(e.substring(0,6))}(e),[4,t.getRaw(n)];case 1:return(o=h.sent())?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:h.sent(),h.label=3;case 3:return a=(0,i.CR)(o.split("."),6),s=a[0],l=a[1],c=a[2],u=a[3],p=a[4],f=a[5],[2,{deviceId:s,userId:Oe(l),sessionId:Ee(u),lastEventId:Ee(f),lastEventTime:Ee(p),optOut:Boolean(c)}]}}))}))},Ee=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Oe=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(t){return}},Te="[Amplitude]",Re=("".concat(Te," Page Viewed"),"".concat(Te," Form Started")),Me="".concat(Te," Form Submitted"),Fe="".concat(Te," File Downloaded"),De="session_start",Ie="session_end",Be="".concat(Te," File Extension"),je="".concat(Te," File Name"),Ne="".concat(Te," Link ID"),Le="".concat(Te," Link Text"),Ze="".concat(Te," Link URL"),Ge="".concat(Te," Form ID"),ze="".concat(Te," Form Name"),Ue="".concat(Te," Form Destination"),We="cookie",qe=function(e){function t(t,r,i,o,a,s,l,c,u,d,p,f,v,g,m,b,y,_,A,C,w,S,k,x,P,E,O,T,R,M,F){void 0===i&&(i=new ge),void 0===o&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===c&&(c=5),void 0===u&&(u=30),void 0===d&&(d=We),void 0===m&&(m=new h),void 0===b&&(b=n.Warn),void 0===_&&(_=!1),void 0===A&&(A=!1),void 0===S&&(S=""),void 0===k&&(k="US"),void 0===P&&(P=18e5),void 0===E&&(E=new we({loggerProvider:m})),void 0===O&&(O={ipAddress:!0,language:!0,platform:!0}),void 0===T&&(T="fetch"),void 0===R&&(R=!1);var D=e.call(this,{apiKey:t,storageProvider:E,transportProvider:Ye(T)})||this;return D.apiKey=t,D.appVersion=r,D.cookieOptions=o,D.defaultTracking=a,D.flushIntervalMillis=l,D.flushMaxRetries=c,D.flushQueueSize=u,D.identityStorage=d,D.ingestionMetadata=p,D.instanceName=f,D.loggerProvider=m,D.logLevel=b,D.minIdLength=y,D.offline=_,D.partnerId=C,D.plan=w,D.serverUrl=S,D.serverZone=k,D.sessionTimeout=P,D.storageProvider=E,D.trackingOptions=O,D.transport=T,D.useBatch=R,D._optOut=!1,D._cookieStorage=i,D.deviceId=s,D.lastEventId=v,D.lastEventTime=g,D.optOut=A,D.sessionId=x,D.pageCounter=F,D.userId=M,D.loggerProvider.enable(D.logLevel),D}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter};this.cookieStorage.set(me(this.apiKey),e)},t}(g),He=function(e,t,r){return void 0===t&&(t={}),(0,i.mG)(void 0,void 0,void 0,(function(){var n,o,a,s,l,c,u,d,p,f,h,v,g,m,b,_,A,C,w,S,k,x,P,E,O,T,R,M,F,D,I,B,j,N,L,Z,G,z,U,W,q;return(0,i.Jh)(this,(function(H){switch(H.label){case 0:return n=t.identityStorage||We,A={},n===We?[3,1]:(a="",[3,5]);case 1:return null===(w=null===(C=t.cookieOptions)||void 0===C?void 0:C.domain)||void 0===w?[3,2]:(s=w,[3,4]);case 2:return[4,Ke()];case 3:s=H.sent(),H.label=4;case 4:a=s,H.label=5;case 5:return o=i.pi.apply(void 0,[(A.domain=a,A.expiration=365,A.sameSite="Lax",A.secure=!1,A.upgrade=!0,A),t.cookieOptions]),l=Ve(t.identityStorage,o),[4,Pe(e,l,null===(k=null===(S=t.cookieOptions)||void 0===S?void 0:S.upgrade)||void 0===k||k)];case 6:return c=H.sent(),[4,l.get(me(e))];case 7:return u=H.sent(),d=$(),p=null!==(T=null!==(O=null!==(E=null!==(P=null!==(x=t.deviceId)&&void 0!==x?x:d.ampDeviceId)&&void 0!==P?P:d.deviceId)&&void 0!==E?E:null===u||void 0===u?void 0:u.deviceId)&&void 0!==O?O:c.deviceId)&&void 0!==T?T:y(),f=null!==(R=null===u||void 0===u?void 0:u.lastEventId)&&void 0!==R?R:c.lastEventId,h=null!==(M=null===u||void 0===u?void 0:u.lastEventTime)&&void 0!==M?M:c.lastEventTime,v=null!==(D=null!==(F=t.optOut)&&void 0!==F?F:null===u||void 0===u?void 0:u.optOut)&&void 0!==D?D:c.optOut,g=null!==(I=null===u||void 0===u?void 0:u.sessionId)&&void 0!==I?I:c.sessionId,m=null!==(j=null!==(B=t.userId)&&void 0!==B?B:null===u||void 0===u?void 0:u.userId)&&void 0!==j?j:c.userId,r.previousSessionDeviceId=null!==(N=null===u||void 0===u?void 0:u.deviceId)&&void 0!==N?N:c.deviceId,r.previousSessionUserId=null!==(L=null===u||void 0===u?void 0:u.userId)&&void 0!==L?L:c.userId,b={ipAddress:null===(G=null===(Z=t.trackingOptions)||void 0===Z?void 0:Z.ipAddress)||void 0===G||G,language:null===(U=null===(z=t.trackingOptions)||void 0===z?void 0:z.language)||void 0===U||U,platform:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.platform)||void 0===q||q},_=null===u||void 0===u?void 0:u.pageCounter,[2,new qe(e,t.appVersion,l,o,t.defaultTracking,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,v,t.partnerId,t.plan,t.serverUrl,t.serverZone,g,t.sessionTimeout,t.storageProvider,b,t.transport,t.useBatch,m,_)]}}))}))},Ve=function(e,t){switch(void 0===e&&(e=We),void 0===t&&(t={}),e){case"localStorage":return new we;case"sessionStorage":return new Se;case"none":return new ge;default:return new be((0,i.pi)((0,i.pi)({},t),{expirationDays:t.expiration}))}},Ye=function(e){return"xhr"===e?new ke:"beacon"===e?new xe:new _e},Ke=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,l;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,(new be).isEnabled()];case 1:if(!i.sent()||!e&&("undefined"===typeof location||!location.hostname))return[2,""];for(t=null!==e&&void 0!==e?e:location.hostname,r=t.split("."),n=[],o="AMP_TLDTEST",a=r.length-2;a>=0;--a)n.push(r.slice(a).join("."));a=0,i.label=2;case 2:return a2?(n=t,o=r):"string"===typeof t?(n=t,o=void 0):(n=null===t||void 0===t?void 0:t.userId,o=t),u(this._init((0,i.pi)((0,i.pi)({},o),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,o;return(0,i.mG)(this,void 0,void 0,(function(){var a,s,l,c,u,d=this;return(0,i.Jh)(this,(function(p){switch(p.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,He(t.apiKey,t,this)]);case 1:return a=p.sent(),[4,e.prototype._init.call(this,a)];case 2:return p.sent(),T(this.config.defaultTracking)?(h=this.config,s=T(h.defaultTracking)&&h.defaultTracking&&"object"===typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"===typeof h.defaultTracking.attribution?(0,i.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new te(s,this.config),[4,this.webAttribution.init()]):[3,4];case 3:p.sent(),p.label=4;case 4:return l=$(),c=Number.isNaN(Number(l.ampSessionId))?void 0:Number(l.ampSessionId),this.setSessionId(null!==(o=null!==(n=null!==(r=t.sessionId)&&void 0!==r?r:c)&&void 0!==n?n:this.config.sessionId)&&void 0!==o?o:Date.now()),(u=ue(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline?[3,6]:[4,this.add(ot()).promise];case 5:p.sent(),p.label=6;case 6:return[4,this.add(new A).promise];case 7:return p.sent(),[4,this.add(new ve).promise];case 8:return p.sent(),[4,this.add(new de).promise];case 9:return p.sent(),function(e){it||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),it=!0)}(this.config),f=this.config.defaultTracking,O(f,"fileDownloads")?[4,this.add(nt()).promise]:[3,11];case 10:p.sent(),p.label=11;case 11:return function(e){return O(e,"formInteractions")}(this.config.defaultTracking)?[4,this.add(tt()).promise]:[3,13];case 12:p.sent(),p.label=13;case 13:return R(this.config.defaultTracking)?[4,this.add($e(F(this.config))).promise]:[3,15];case 14:p.sent(),p.label=15;case 15:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 16:return p.sent(),u.eventBridge.setEventReceiver((function(e){d.track(e.eventType,e.eventProperties)})),[2]}var f,h}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?e===this.config.userId&&void 0!==e||(this.config.userId=e,function(e,t){ue(t).identityStore.editIdentity().setUserId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.deviceId=e,function(e,t){ue(t).identityStore.editIdentity().setDeviceId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(y()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),u(Promise.resolve());if(e===this.config.sessionId)return u(Promise.resolve());var n=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,M(this.config.defaultTracking)&&(n&&i&&r.push(this.track(Ie,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,r);return M(this.config.defaultTracking)&&r.push(this.track(De,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,u(Promise.all(r))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=Ye(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,r){if(fe(t)){var n=t._q;t._q=[],t=pe(new C.h,n)}return(null===r||void 0===r?void 0:r.user_id)&&this.setUserId(r.user_id),(null===r||void 0===r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(fe(n)){var o=n._q;n._q=[],n=pe(new C.h,o)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(fe(t)){var n=t._q;t._q=[],t=pe(new k,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,i.mG)(this,void 0,void 0,(function(){var r,n,o;return(0,i.Jh)(this,(function(i){return r=Date.now(),n=ee(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===De||t.event_type===Ie||t.session_id&&t.session_id!==this.getSessionId()||(n||o?(this.setSessionId(r),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]}))}))},t}(E),st=function(){var e=new at;return{init:c(e.init.bind(e),"init",a(e),l(e,["config"])),add:c(e.add.bind(e),"add",a(e),l(e,["config.apiKey","timeline.plugins"])),remove:c(e.remove.bind(e),"remove",a(e),l(e,["config.apiKey","timeline.plugins"])),track:c(e.track.bind(e),"track",a(e),l(e,["config.apiKey","timeline.queue.length"])),logEvent:c(e.logEvent.bind(e),"logEvent",a(e),l(e,["config.apiKey","timeline.queue.length"])),identify:c(e.identify.bind(e),"identify",a(e),l(e,["config.apiKey","timeline.queue.length"])),groupIdentify:c(e.groupIdentify.bind(e),"groupIdentify",a(e),l(e,["config.apiKey","timeline.queue.length"])),setGroup:c(e.setGroup.bind(e),"setGroup",a(e),l(e,["config.apiKey","timeline.queue.length"])),revenue:c(e.revenue.bind(e),"revenue",a(e),l(e,["config.apiKey","timeline.queue.length"])),flush:c(e.flush.bind(e),"flush",a(e),l(e,["config.apiKey","timeline.queue.length"])),getUserId:c(e.getUserId.bind(e),"getUserId",a(e),l(e,["config","config.userId"])),setUserId:c(e.setUserId.bind(e),"setUserId",a(e),l(e,["config","config.userId"])),getDeviceId:c(e.getDeviceId.bind(e),"getDeviceId",a(e),l(e,["config","config.deviceId"])),setDeviceId:c(e.setDeviceId.bind(e),"setDeviceId",a(e),l(e,["config","config.deviceId"])),reset:c(e.reset.bind(e),"reset",a(e),l(e,["config","config.userId","config.deviceId"])),getSessionId:c(e.getSessionId.bind(e),"getSessionId",a(e),l(e,["config"])),setSessionId:c(e.setSessionId.bind(e),"setSessionId",a(e),l(e,["config"])),extendSession:c(e.extendSession.bind(e),"extendSession",a(e),l(e,["config"])),setOptOut:c(e.setOptOut.bind(e),"setOptOut",a(e),l(e,["config"])),setTransport:c(e.setTransport.bind(e),"setTransport",a(e),l(e,["config"]))}}(),lt=(st.add,st.extendSession,st.flush,st.getDeviceId,st.getSessionId,st.getUserId,st.groupIdentify,st.identify),ct=st.init,ut=(st.logEvent,st.remove,st.reset),dt=(st.revenue,st.setDeviceId,st.setGroup,st.setOptOut,st.setSessionId,st.setTransport,st.setUserId),pt=st.track},62113:function(e,t,r){"use strict";r.d(t,{EG:function(){return a},RE:function(){return c},f1:function(){return o},h8:function(){return l},q$:function(){return n},xp:function(){return i},y_:function(){return s}});var n="-",i="AMP",o="".concat(i,"_unsent"),a="https://api2.amplitude.com/2/httpapi",s="https://api.eu.amplitude.com/2/httpapi",l="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},52523:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(27006),i=r(12778),o=r(62113),a=r(46552),s=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,n.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(i.h9.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(i.h9.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(i.h9.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(i.h9.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(i.h9.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(i.h9.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(i.h9.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(i.h9.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(i.h9.UNSET,e,o.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[i.h9.CLEAR_ALL]=o.q$,this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return void 0===this._properties[i.h9.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===i.h9.ADD?"number"===typeof r:e===i.h9.UNSET||e===i.h9.REMOVE||(0,a.T)(t,r)))},e}()},46552:function(e,t,r){"use strict";r.d(t,{L:function(){return i},T:function(){return o}});var n=r(27006),i=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!o(t,r))return!1}return!0},o=function(e,t){var r,o;if("string"!==typeof e)return!1;if(Array.isArray(t)){var a=!0;try{for(var s=(0,n.XA)(t),l=s.next();!l.done;l=s.next()){var c=l.value;if(Array.isArray(c))return!1;if("object"===typeof c)a=a&&i(c);else if(!["number","string"].includes(typeof c))return!1;if(!a)return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}}else{if(null===t||void 0===t)return!1;if("object"===typeof t)return i(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0}},12778:function(e,t,r){"use strict";var n,i,o;r.d(t,{JU:function(){return o},al:function(){return i},h9:function(){return n}}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(n||(n={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE="$revenue"}(i||(i={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(o||(o={}))},95796:function(e,t,r){"use strict";r.d(t,{Z:function(){return ie}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(_,--b):0,g--,10===y&&(g=1,v--),y}function S(){return y=b2||E(y)>3?"":" "}function F(e,t){for(;--t&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return P(e,x()+(t<6&&32==k()&&32==S()))}function D(e){for(;S();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&D(y);break;case 40:41===e&&D(e);break;case 92:S()}return b}function I(e,t){for(;S()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+P(t,b-1)+"*"+o(47===e?e:S())}function B(e){for(;!E(k());)S();return P(e,b)}var j="-ms-",N="-moz-",L="-webkit-",Z="comm",G="rule",z="decl",U="@keyframes";function W(e,t){for(var r="",n=f(e),i=0;i0&&p(N)-m&&h(y>32?X(N+";",n,r,m-1):X(l(N," ","")+";",n,r,m-2),f);break;case 59:N+=";";default:if(h(j=Y(N,t,r,v,g,i,d,O,T=[],D=[],m),a),123===E)if(0===g)V(N,t,j,j,T,a,m,d,D);else switch(99===b&&110===u(N,3)?100:b){case 100:case 108:case 109:case 115:V(e,j,j,n&&h(Y(e,j,j,0,0,i,d,O,i,T=[],m),D),i,D,m,d,n?T:D);break;default:V(N,j,j,j,[""],D,0,d,D)}}v=g=y=0,A=P=1,O=N="",m=s;break;case 58:m=1+p(N),y=_;default:if(A<1)if(123==E)--A;else if(125==E&&0==A++&&125==w())continue;switch(N+=o(E),E*A){case 38:P=g>0?1:(N+="\f",-1);break;case 44:d[v++]=(p(N)-1)*P,P=1;break;case 64:45===k()&&(N+=R(S())),b=k(),g=m=p(O=N+=B(x())),E++;break;case 45:45===_&&2==p(N)&&(A=0)}}return a}function Y(e,t,r,n,o,a,c,u,p,h,v){for(var g=o-1,m=0===o?a:[""],b=f(m),y=0,_=0,C=0;y0?m[w]+" "+S:l(S,/&\f/g,m[w])))&&(p[C++]=k);return A(e,t,r,0===o?G:u,p,h,v)}function K(e,t,r){return A(e,t,r,Z,o(y),d(e,2,-2),0)}function X(e,t,r,n){return A(e,t,r,z,d(e,0,n),d(e,n+1,-1),n)}var $=function(e,t,r){for(var n=0,i=0;n=i,i=k(),38===n&&12===i&&(t[r]=1),!E(i);)S();return P(e,b)},Q=function(e,t){return T(function(e,t){var r=-1,n=44;do{switch(E(n)){case 0:38===n&&12===k()&&(t[r]=1),e[r]+=$(b-1,t,r);break;case 2:e[r]+=R(n);break;case 4:if(44===n){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}}while(n=S());return e}(O(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(r))&&!n){J.set(e,!0);for(var i=[],o=Q(t,i),a=r.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+L)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===u(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+j+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=re(e.value,e.length);break;case U:return W([C(e,{value:l(e.value,"@","@"+L)})],n);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([C(e,{props:[l(t,/:(plac\w+)/,":"+L+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,j+"input-$1")]})],n)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ne;var o,a,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:p}}},40310:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(90957),i=r(21914),o=r(95627),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(12009),c=r(35414),u=r(92384),d=r(95308),p=s,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},v=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,d.L)((function(){return(0,c.My)(t,r,n)})),null},m=function e(t,r){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var p=v(t,r,s),f=p||h(d),m=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var _=b.length,A=1;A<_;A++)y.push(b[A],b[0][A])}var C=(0,l.w)((function(e,t,r){var n=m&&e.as||d,o="",s=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=i.useContext(l.T)}"string"===typeof e.className?o=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var _=(0,u.O)(y.concat(s),t.registered,v);o+=t.key+"-"+_.name,void 0!==a&&(o+=" "+a);var A=m&&void 0===p?h(n):f,C={};for(var w in e)m&&"as"===w||A(w)&&(C[w]=e[w]);return C.className=o,C.ref=r,i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:_,isStringTag:"string"===typeof n}),i.createElement(n,C))}));return C.displayName=void 0!==o?o:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=y,C.__emotion_forwardProp=p,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,i){return e(t,(0,n.Z)({},r,i,{shouldForwardProp:v(C,i,!0)})).apply(void 0,y)},C}}},95308:function(e,t,r){"use strict";var n;r.d(t,{L:function(){return a},j:function(){return s}});var i=r(21914),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},35414:function(e,t,r){"use strict";r.d(t,{My:function(){return o},fp:function(){return n},hC:function(){return i}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},18686:function(e,t,r){"use strict";r.d(t,{h:function(){return c}});var n=r(21914),i=r(10579),o=r(43064),a=r(8031),s=r(224),l=r(56552);var c=n.forwardRef((function(e,t){var{children:r,container:c,disablePortal:u=!1}=e,[d,p]=n.useState(null),f=(0,o.Z)(n.isValidElement(r)?r.ref:null,t);if((0,a.Z)((()=>{u||p(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.Z)((()=>{if(d&&!u)return(0,s.Z)(t,d),()=>{(0,s.Z)(t,null)}}),[t,d,u]),u){if(n.isValidElement(r)){var h={ref:f};return n.cloneElement(r,h)}return(0,l.jsx)(n.Fragment,{children:r})}return(0,l.jsx)(n.Fragment,{children:d?i.createPortal(r,d):d})}))},48283:function(e,t,r){"use strict";r.d(t,{u:function(){return g}});var n=r(90957),i=r(39324),o=r(21914),a=r(10579),s=r(43064),l=r(75979),c=r(8031),u=r(89844),d=r(56552),p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}var h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var g=o.forwardRef((function(e,t){var{onChange:r,maxRows:g,minRows:m=1,style:b,value:y}=e,_=(0,i.Z)(e,p),{current:A}=o.useRef(null!=y),C=o.useRef(null),w=(0,s.Z)(t,C),S=o.useRef(null),k=o.useRef(0),[x,P]=o.useState({outerHeightStyle:0}),E=o.useCallback((()=>{var t=C.current,r=(0,l.Z)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};var n=S.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var i=r.boxSizing,o=f(r.paddingBottom)+f(r.paddingTop),a=f(r.borderBottomWidth)+f(r.borderTopWidth),s=n.scrollHeight;n.value="x";var c=n.scrollHeight,u=s;return m&&(u=Math.max(Number(m)*c,u)),g&&(u=Math.min(Number(g)*c,u)),{outerHeightStyle:(u=Math.max(u,c))+("border-box"===i?o+a:0),overflow:Math.abs(u-s)<=1}}),[g,m,e.placeholder]),O=(e,t)=>{var{outerHeightStyle:r,overflow:n}=t;return k.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(k.current+=1,{overflow:n,outerHeightStyle:r}):e},T=o.useCallback((()=>{var e=E();v(e)||P((t=>O(t,e)))}),[E]);(0,c.Z)((()=>{var e,t,r=()=>{k.current=0,(()=>{var e=E();v(e)||a.flushSync((()=>{P((t=>O(t,e)))}))})()},n=(0,u.Z)(r),i=C.current,o=(0,l.Z)(i);return o.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(r)).observe(i),()=>{n.clear(),cancelAnimationFrame(e),o.removeEventListener("resize",n),t&&t.disconnect()}}),[E]),(0,c.Z)((()=>{T()})),o.useEffect((()=>{k.current=0}),[y]);return(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{k.current=0,A||T(),r&&r(e)},ref:w,rows:m,style:(0,n.Z)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":void 0},b)},_)),(0,d.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,n.Z)({},h,b,{paddingTop:0,paddingBottom:0})})]})}))},2399:function(e,t,r){"use strict";r.d(t,{$:function(){return o}});var n=r(90957),i=r(13161);function o(e,t,r){return void 0===e||(0,i.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},1332:function(e,t,r){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}r.d(t,{_:function(){return n}})},13161:function(e,t,r){"use strict";function n(e){return"string"===typeof e}r.d(t,{X:function(){return n}})},78627:function(e,t,r){"use strict";r.d(t,{y:function(){return d}});var n=r(90957),i=r(39324),o=r(43064),a=r(2399),s=r(51118),l=r(1332);function c(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}var u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function d(e){var t,{elementType:r,externalSlotProps:d,ownerState:p,skipResolvingSlotProps:f=!1}=e,h=(0,i.Z)(e,u),v=f?{}:function(e,t,r){return"function"===typeof e?e(t,r):e}(d,p),{props:g,internalRef:m}=function(e){var{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){var u=(0,s.Z)(null==o?void 0:o.className,null==i?void 0:i.className,a,null==r?void 0:r.className),d=(0,n.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==i?void 0:i.style),p=(0,n.Z)({},r,o,i);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}var f=(0,l._)((0,n.Z)({},o,i)),h=c(i),v=c(o),g=t(f),m=(0,s.Z)(null==g?void 0:g.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==i?void 0:i.className),b=(0,n.Z)({},null==g?void 0:g.style,null==r?void 0:r.style,null==o?void 0:o.style,null==i?void 0:i.style),y=(0,n.Z)({},g,r,v,h);return m.length>0&&(y.className=m),Object.keys(b).length>0&&(y.style=b),{props:y,internalRef:g.ref}}((0,n.Z)({},h,{externalSlotProps:v})),b=(0,o.Z)(m,null==v?void 0:v.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.$)(r,(0,n.Z)({},g,{ref:b}),p)}},35953:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}),"AccessAlarm");t.Z=a},44306:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=a},24425:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.Z=a},68004:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardOutlined");t.Z=a},93516:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");t.Z=a},45369:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},77154:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=a},85431:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=a},64665:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},22927:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0-8 4.99L4 6h16zm0 12H4V8l8 5 8-5v10z"}),"MailOutlined");t.Z=a},2709:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),o=r(56552),a=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},22700:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4")},40610:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7-7-7z"}),"East")},63362:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings")},41900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(71682)},13706:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(18085),p=r(37395),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiAlert",e)}var g=(0,f.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),m=r(51929),b=r(44326),y=r(56552),_=(0,b.Z)((0,y.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),A=(0,b.Z)((0,y.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,y.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,b.Z)((0,y.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),S=r(74512),k=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],x=(0,c.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,d.Z)(r.color||r.severity))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?l._j:l.$n,o="light"===t.palette.mode?l.$n:l._j,a=r.color||r.severity;return(0,i.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===r.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:n(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(a,"StandardBg")]:o(t.palette[a].light,.9),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"outlined"===r.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:n(t.palette[a].light,.6),border:"1px solid ".concat((t.vars||t).palette[a].light),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"filled"===r.variant&&(0,i.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(a,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(a,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main,color:t.palette.getContrastText(t.palette[a].main)}))})),P=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),T={success:(0,y.jsx)(_,{fontSize:"inherit"}),warning:(0,y.jsx)(A,{fontSize:"inherit"}),error:(0,y.jsx)(C,{fontSize:"inherit"}),info:(0,y.jsx)(w,{fontSize:"inherit"})},R=o.forwardRef((function(e,t){var r,o,l,c,p,f,h=(0,u.Z)({props:e,name:"MuiAlert"}),{action:g,children:b,className:_,closeText:A="Close",color:C,components:w={},componentsProps:R={},icon:M,iconMapping:F=T,onClose:D,role:I="alert",severity:B="success",slotProps:j={},slots:N={},variant:L="standard"}=h,Z=(0,n.Z)(h,k),G=(0,i.Z)({},h,{color:C,severity:B,variant:L}),z=(e=>{var{variant:t,color:r,severity:n,classes:i}=e,o={root:["root","".concat(t).concat((0,d.Z)(r||n)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(o,v,i)})(G),U=null!=(r=null!=(o=N.closeButton)?o:w.CloseButton)?r:m.Z,W=null!=(l=null!=(c=N.closeIcon)?c:w.CloseIcon)?l:S.Z,q=null!=(p=j.closeButton)?p:R.closeButton,H=null!=(f=j.closeIcon)?f:R.closeIcon;return(0,y.jsxs)(x,(0,i.Z)({role:I,elevation:0,ownerState:G,className:(0,a.Z)(z.root,_),ref:t},Z,{children:[!1!==M?(0,y.jsx)(P,{ownerState:G,className:z.icon,children:M||F[B]||T[B]}):null,(0,y.jsx)(E,{ownerState:G,className:z.message,children:b}),null!=g?(0,y.jsx)(O,{ownerState:G,className:z.action,children:g}):null,null==g&&D?(0,y.jsx)(O,{ownerState:G,className:z.action,children:(0,y.jsx)(U,(0,i.Z)({size:"small","aria-label":A,title:A,color:"inherit",onClick:D},q,{children:(0,y.jsx)(W,(0,i.Z)({fontSize:"small"},H))}))}):null]}))}))},53530:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(18085),d=r(37395),p=r(40059),f=r(46051);function h(e){return(0,f.Z)("MuiAppBar",e)}(0,p.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var v=r(56552),g=["className","color","enableColorOnDark","position"],m=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,b=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,u.Z)(r.position))],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,i.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,i.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,i.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,i.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:m(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:m(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:m(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:m(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),y=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiAppBar"}),{className:o,color:l="primary",enableColorOnDark:d=!1,position:p="fixed"}=r,f=(0,n.Z)(r,g),m=(0,i.Z)({},r,{color:l,position:p,enableColorOnDark:d}),y=(e=>{var{color:t,position:r,classes:n}=e,i={root:["root","color".concat((0,u.Z)(t)),"position".concat((0,u.Z)(r))]};return(0,s.Z)(i,h,n)})(m);return(0,v.jsx)(b,(0,i.Z)({square:!0,component:"header",ownerState:m,elevation:4,className:(0,a.Z)(y.root,o,"fixed"===p&&"mui-fixed"),ref:t},f))}))},10374:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(44326),d=r(56552),p=(0,u.Z)((0,d.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiAvatar",e)}(0,f.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var g=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],m=(0,l.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===r.variant&&{borderRadius:0},r.colorDefault&&(0,i.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),b=(0,l.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,l.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var _=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiAvatar"}),{alt:l,children:u,className:p,component:f="div",imgProps:h,sizes:_,src:A,srcSet:C,variant:w="circular"}=r,S=(0,n.Z)(r,g),k=null,x=function(e){var{crossOrigin:t,referrerPolicy:r,src:n,srcSet:i}=e,[a,s]=o.useState(!1);return o.useEffect((()=>{if(n||i){s(!1);var e=!0,o=new Image;return o.onload=()=>{e&&s("loaded")},o.onerror=()=>{e&&s("error")},o.crossOrigin=t,o.referrerPolicy=r,o.src=n,i&&(o.srcset=i),()=>{e=!1}}}),[t,r,n,i]),a}((0,i.Z)({},h,{src:A,srcSet:C})),P=A||C,E=P&&"error"!==x,O=(0,i.Z)({},r,{colorDefault:!E,component:f,variant:w}),T=(e=>{var{classes:t,variant:r,colorDefault:n}=e,i={root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.Z)(i,v,t)})(O);return k=E?(0,d.jsx)(b,(0,i.Z)({alt:l,srcSet:C,src:A,sizes:_,ownerState:O,className:T.img},h)):null!=u?u:P&&l?l[0]:(0,d.jsx)(y,{ownerState:O,className:T.fallback}),(0,d.jsx)(m,(0,i.Z)({as:f,ownerState:O,className:(0,a.Z)(T.root,p),ref:t},S,{children:k}))}))},65037:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(55120),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var h=r(56552),v=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),m=o.forwardRef((function(e,t){var r,o,l,d=(0,c.Z)({props:e,name:"MuiBackdrop"}),{children:p,className:m,component:b="div",components:y={},componentsProps:_={},invisible:A=!1,open:C,slotProps:w={},slots:S={},TransitionComponent:k=u.Z,transitionDuration:x}=d,P=(0,n.Z)(d,v),E=(0,i.Z)({},d,{component:b,invisible:A}),O=(e=>{var{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,s.Z)(n,f,t)})(E),T=null!=(r=w.root)?r:_.root;return(0,h.jsx)(k,(0,i.Z)({in:C,timeout:x},P,{children:(0,h.jsx)(g,(0,i.Z)({"aria-hidden":!0},T,{as:null!=(o=null!=(l=S.root)?l:y.Root)?o:b,className:(0,a.Z)(O.root,m,null==T?void 0:T.className),ownerState:(0,i.Z)({},E,null==T?void 0:T.ownerState),classes:O,ref:t,children:p}))}))}))},33246:function(e,t,r){"use strict";var n=r(61589),i=r(93351),o=r(94832),a=r(88464),s=(0,o.Z)(),l=(0,n.Z)({themeId:a.Z,defaultTheme:s,defaultClassName:"MuiBox-root",generateClassName:i.Z.generate});t.Z=l},3613:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(57737),l=r(43232),c=r(5216),u=r(24077),d=r(67336),p=r(9912),f=r(18085),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiButton",e)}var m=(0,h.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=o.createContext({});var y=o.createContext(void 0),_=r(56552),A=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C=e=>(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),w=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,f.Z)(r.color))],t["size".concat((0,f.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,f.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{var t,r,{theme:n,ownerState:o}=e,a="light"===n.palette.mode?n.palette.grey[300]:n.palette.grey[800],s="light"===n.palette.mode?n.palette.grey.A100:n.palette.grey[700];return(0,i.Z)({},n.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":(0,i.Z)({textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((n.vars||n).palette[o.color].main),backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}}),"&:active":(0,i.Z)({},"contained"===o.variant&&{boxShadow:(n.vars||n).shadows[8]}),["&.".concat(m.focusVisible)]:(0,i.Z)({},"contained"===o.variant&&{boxShadow:(n.vars||n).shadows[6]}),["&.".concat(m.disabled)]:(0,i.Z)({color:(n.vars||n).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"contained"===o.variant&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})},"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(n.vars||n).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(n.vars||n).palette[o.color].main,border:n.vars?"1px solid rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(n.palette[o.color].main,.5))},"contained"===o.variant&&{color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:a,boxShadow:(n.vars||n).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(e=>{var{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(m.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(m.disabled)]:{boxShadow:"none"}}})),S=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.startIcon,t["iconSize".concat((0,f.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},C(t))})),k=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.endIcon,t["iconSize".concat((0,f.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},C(t))})),x=o.forwardRef((function(e,t){var r=o.useContext(b),c=o.useContext(y),u=(0,s.Z)(r,e),p=(0,d.Z)({props:u,name:"MuiButton"}),{children:h,color:v="primary",component:m="button",className:C,disabled:x=!1,disableElevation:P=!1,disableFocusRipple:E=!1,endIcon:O,focusVisibleClassName:T,fullWidth:R=!1,size:M="medium",startIcon:F,type:D,variant:I="text"}=p,B=(0,n.Z)(p,A),j=(0,i.Z)({},p,{color:v,component:m,disabled:x,disableElevation:P,disableFocusRipple:E,fullWidth:R,size:M,type:D,variant:I}),N=(e=>{var{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:s}=e,c={root:["root",a,"".concat(a).concat((0,f.Z)(t)),"size".concat((0,f.Z)(o)),"".concat(a,"Size").concat((0,f.Z)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,f.Z)(o))],endIcon:["endIcon","iconSize".concat((0,f.Z)(o))]},u=(0,l.Z)(c,g,s);return(0,i.Z)({},s,u)})(j),L=F&&(0,_.jsx)(S,{className:N.startIcon,ownerState:j,children:F}),Z=O&&(0,_.jsx)(k,{className:N.endIcon,ownerState:j,children:O}),G=c||"";return(0,_.jsxs)(w,(0,i.Z)({ownerState:j,className:(0,a.Z)(r.className,N.root,C,G),component:m,disabled:x,focusRipple:!E,focusVisibleClassName:(0,a.Z)(N.focusVisible,T),ref:t,type:D},B,{classes:N,children:[L,h,Z]}))}))},9912:function(e,t,r){"use strict";r.d(t,{Z:function(){return X}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(7023),d=r(85715),p=r(14175),f=r(53816),h=r(94782),v=r(15560),g=r(20902);function m(e,t){var r=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),r}function b(e,t,r){return null!=r[t]?r[t]:e.props[t]}function y(e,t,r){var n=m(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n{if(!c&&null!=u){var e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,S.jsx)("span",{className:h,style:v,children:(0,S.jsx)("span",{className:g})})},x=r(40059);var P,E,O,T,R,M,F,D,I=(0,x.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),B=["center","classes","className"],j=(0,w.F4)(R||(R=P||(P=(0,f.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),N=(0,w.F4)(M||(M=E||(E=(0,f.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),L=(0,w.F4)(F||(F=O||(O=(0,f.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),Z=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),G=(0,l.ZP)(k,{name:"MuiTouchRipple",slot:"Ripple"})(D||(D=T||(T=(0,f.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),I.rippleVisible,j,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),I.ripplePulsate,(e=>{var{theme:t}=e;return t.transitions.duration.shorter}),I.child,I.childLeaving,N,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),I.childPulsate,L,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut})),z=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=r,d=(0,i.Z)(r,B),[p,f]=o.useState([]),h=o.useRef(0),v=o.useRef(null);o.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[p]);var g=o.useRef(!1),m=o.useRef(0),b=o.useRef(null),y=o.useRef(null);o.useEffect((()=>()=>{m.current&&clearTimeout(m.current)}),[]);var _=o.useCallback((e=>{var{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:o}=e;f((e=>[...e,(0,S.jsx)(G,{classes:{ripple:(0,a.Z)(l.ripple,I.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,I.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,I.ripplePulsate),child:(0,a.Z)(l.child,I.child),childLeaving:(0,a.Z)(l.childLeaving,I.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,I.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},h.current)])),h.current+=1,v.current=o}),[l]),A=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:n=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)g.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);var a,l,c,u=o?null:y.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)a=Math.round(d.width/2),l=Math.round(d.height/2);else{var{clientX:p,clientY:f}=e.touches&&e.touches.length>0?e.touches[0]:e;a=Math.round(p-d.left),l=Math.round(f-d.top)}if(i)(c=Math.sqrt((2*d.width**2+d.height**2)/3))%2===0&&(c+=1);else{var h=2*Math.max(Math.abs((u?u.clientWidth:0)-a),a)+2,v=2*Math.max(Math.abs((u?u.clientHeight:0)-l),l)+2;c=Math.sqrt(h**2+v**2)}null!=e&&e.touches?null===b.current&&(b.current=()=>{_({pulsate:n,rippleX:a,rippleY:l,rippleSize:c,cb:r})},m.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):_({pulsate:n,rippleX:a,rippleY:l,rippleSize:c,cb:r})}}),[s,_]),w=o.useCallback((()=>{A({},{pulsate:!0})}),[A]),k=o.useCallback(((e,t)=>{if(clearTimeout(m.current),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void(m.current=setTimeout((()=>{k(e,t)})));b.current=null,f((e=>e.length>0?e.slice(1):e)),v.current=t}),[]);return o.useImperativeHandle(t,(()=>({pulsate:w,start:A,stop:k})),[w,A,k]),(0,S.jsx)(Z,(0,n.Z)({className:(0,a.Z)(I.root,l.root,u),ref:y},d,{children:(0,S.jsx)(C,{component:null,exit:!0,children:p})}))})),U=z,W=r(46051);function q(e){return(0,W.Z)("MuiButtonBase",e)}var H=(0,x.Z)("MuiButtonBase",["root","disabled","focusVisible"]),V=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Y=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(H.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:f=!1,children:h,className:v,component:g="button",disabled:m=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:_=!1,LinkComponent:A="a",onBlur:C,onClick:w,onContextMenu:k,onDragLeave:x,onFocus:P,onFocusVisible:E,onKeyDown:O,onKeyUp:T,onMouseDown:R,onMouseLeave:M,onMouseUp:F,onTouchEnd:D,onTouchMove:I,onTouchStart:B,tabIndex:j=0,TouchRippleProps:N,touchRippleRef:L,type:Z}=r,G=(0,i.Z)(r,V),z=o.useRef(null),W=o.useRef(null),H=(0,u.Z)(W,L),{isFocusVisibleRef:K,onFocus:X,onBlur:$,ref:Q}=(0,p.Z)(),[J,ee]=o.useState(!1);m&&J&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),z.current.focus()}})),[]);var[te,re]=o.useState(!1);o.useEffect((()=>{re(!0)}),[]);var ne=te&&!b&&!m;function ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,d.Z)((n=>(t&&t(n),!r&&W.current&&W.current[e](n),!0)))}o.useEffect((()=>{J&&_&&!b&&te&&W.current.pulsate()}),[b,_,J,te]);var oe=ie("start",R),ae=ie("stop",k),se=ie("stop",x),le=ie("stop",F),ce=ie("stop",(e=>{J&&e.preventDefault(),M&&M(e)})),ue=ie("start",B),de=ie("stop",D),pe=ie("stop",I),fe=ie("stop",(e=>{$(e),!1===K.current&&ee(!1),C&&C(e)}),!1),he=(0,d.Z)((e=>{z.current||(z.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),E&&E(e)),P&&P(e)})),ve=()=>{var e=z.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=o.useRef(!1),me=(0,d.Z)((e=>{_&&!ge.current&&J&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,(()=>{W.current.start(e)}))),e.target===e.currentTarget&&ve()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ve()&&"Enter"===e.key&&!m&&(e.preventDefault(),w&&w(e))})),be=(0,d.Z)((e=>{_&&" "===e.key&&W.current&&J&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,(()=>{W.current.pulsate(e)}))),T&&T(e),w&&e.target===e.currentTarget&&ve()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ye=g;"button"===ye&&(G.href||G.to)&&(ye=A);var _e={};"button"===ye?(_e.type=void 0===Z?"button":Z,_e.disabled=m):(G.href||G.to||(_e.role="button"),m&&(_e["aria-disabled"]=m));var Ae=(0,u.Z)(t,Q,z);var Ce=(0,n.Z)({},r,{centerRipple:f,component:g,disabled:m,disableRipple:b,disableTouchRipple:y,focusRipple:_,tabIndex:j,focusVisible:J}),we=(e=>{var{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,s.Z)(o,q,i);return r&&n&&(a.root+=" ".concat(n)),a})(Ce);return(0,S.jsxs)(Y,(0,n.Z)({as:ye,className:(0,a.Z)(we.root,v),ownerState:Ce,onBlur:fe,onClick:w,onContextMenu:ae,onFocus:he,onKeyDown:me,onKeyUp:be,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ue,ref:Ae,tabIndex:m?-1:j,type:Z},_e,G,{children:[h,ne?(0,S.jsx)(U,(0,n.Z)({ref:H,center:f},N)):null]}))})),X=K},18749:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(37395),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var h=r(56552),v=["className","raised"],g=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),m=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCard"}),{className:o,raised:l=!1}=r,u=(0,i.Z)(r,v),d=(0,n.Z)({},r,{raised:l}),p=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(d);return(0,h.jsx)(g,(0,n.Z)({className:(0,a.Z)(p.root,o),elevation:l?8:void 0,ref:t,ownerState:d},u))}))},51230:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiCardActions",e)}(0,u.Z)("MuiCardActions",["root","spacing"]);var f=r(56552),h=["disableSpacing","className"],v=(0,l.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),g=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:l}=r,u=(0,n.Z)(r,h),d=(0,i.Z)({},r,{disableSpacing:o}),g=(e=>{var{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.Z)(n,p,t)})(d);return(0,f.jsx)(v,(0,i.Z)({className:(0,a.Z)(g.root,l),ownerState:d,ref:t},u))}))},34930:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var f=r(56552),h=["className","component"],v=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),g=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardContent"}),{className:o,component:l="div"}=r,u=(0,i.Z)(r,h),d=(0,n.Z)({},r,{component:l}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,f.jsx)(v,(0,n.Z)({as:l,className:(0,a.Z)(g.root,o),ownerState:d,ref:t},u))}))},33022:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(28501),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiCardHeader",e)}var h=(0,d.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),v=r(56552),g=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],m=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,i.Z)({["& .".concat(h.title)]:t.title,["& .".concat(h.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),b=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),_=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),A=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardHeader"}),{action:o,avatar:u,className:d,component:p="div",disableTypography:h=!1,subheader:A,subheaderTypographyProps:C,title:w,titleTypographyProps:S}=r,k=(0,n.Z)(r,g),x=(0,i.Z)({},r,{component:p,disableTypography:h}),P=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},f,t)})(x),E=w;null==E||E.type===l.Z||h||(E=(0,v.jsx)(l.Z,(0,i.Z)({variant:u?"body2":"h5",className:P.title,component:"span",display:"block"},S,{children:E})));var O=A;return null==O||O.type===l.Z||h||(O=(0,v.jsx)(l.Z,(0,i.Z)({variant:u?"body2":"body1",className:P.subheader,color:"text.secondary",component:"span",display:"block"},C,{children:O}))),(0,v.jsxs)(m,(0,i.Z)({className:(0,a.Z)(P.root,d),as:p,ref:t,ownerState:x},k,{children:[u&&(0,v.jsx)(b,{className:P.avatar,ownerState:x,children:u}),(0,v.jsxs)(_,{className:P.content,ownerState:x,children:[E,O]}),o&&(0,v.jsx)(y,{className:P.action,ownerState:x,children:o})]}))}))},90933:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(44326),u=r(56552),d=(0,c.Z)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),p=r(7023),f=r(18085),h=r(9912),v=r(67336),g=r(24077),m=r(40059),b=r(46051);function y(e){return(0,b.Z)("MuiChip",e)}var _=(0,m.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),A=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C=(0,g.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{["& .".concat(_.avatar)]:t.avatar},{["& .".concat(_.avatar)]:t["avatar".concat((0,f.Z)(s))]},{["& .".concat(_.avatar)]:t["avatarColor".concat((0,f.Z)(n))]},{["& .".concat(_.icon)]:t.icon},{["& .".concat(_.icon)]:t["icon".concat((0,f.Z)(s))]},{["& .".concat(_.icon)]:t["iconColor".concat((0,f.Z)(i))]},{["& .".concat(_.deleteIcon)]:t.deleteIcon},{["& .".concat(_.deleteIcon)]:t["deleteIcon".concat((0,f.Z)(s))]},{["& .".concat(_.deleteIcon)]:t["deleteIconColor".concat((0,f.Z)(n))]},{["& .".concat(_.deleteIcon)]:t["deleteIcon".concat((0,f.Z)(l),"Color").concat((0,f.Z)(n))]},t.root,t["size".concat((0,f.Z)(s))],t["color".concat((0,f.Z)(n))],o&&t.clickable,o&&"default"!==n&&t["clickableColor".concat((0,f.Z)(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat((0,f.Z)(n))],t[l],t["".concat(l).concat((0,f.Z)(n))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,i.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(_.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},["& .".concat(_.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(_.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(_.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(_.icon)]:(0,i.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,i.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),["& .".concat(_.deleteIcon)]:(0,i.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,l.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,l.Fq)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{["&:hover, &.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(_.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(_.avatar)]:{marginLeft:4},["& .".concat(_.avatarSmall)]:{marginLeft:2},["& .".concat(_.icon)]:{marginLeft:4},["& .".concat(_.iconSmall)]:{marginLeft:2},["& .".concat(_.deleteIcon)]:{marginRight:5},["& .".concat(_.deleteIconSmall)]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7)),["&.".concat(_.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity)},["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.focusOpacity)},["& .".concat(_.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})})),w=(0,g.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{var{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,f.Z)(n))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function S(e){return"Backspace"===e.key||"Delete"===e.key}var k=o.forwardRef((function(e,t){var r=(0,v.Z)({props:e,name:"MuiChip"}),{avatar:l,className:c,clickable:g,color:m="default",component:b,deleteIcon:_,disabled:k=!1,icon:x,label:P,onClick:E,onDelete:O,onKeyDown:T,onKeyUp:R,size:M="medium",variant:F="filled",tabIndex:D,skipFocusWhenDisabled:I=!1}=r,B=(0,n.Z)(r,A),j=o.useRef(null),N=(0,p.Z)(j,t),L=e=>{e.stopPropagation(),O&&O(e)},Z=!(!1===g||!E)||g,G=Z||O?h.Z:b||"div",z=(0,i.Z)({},r,{component:G,disabled:k,size:M,color:m,iconColor:o.isValidElement(x)&&x.props.color||m,onDelete:!!O,clickable:Z,variant:F}),U=(e=>{var{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled","size".concat((0,f.Z)(n)),"color".concat((0,f.Z)(i)),l&&"clickable",l&&"clickableColor".concat((0,f.Z)(i)),a&&"deletable",a&&"deletableColor".concat((0,f.Z)(i)),"".concat(c).concat((0,f.Z)(i))],label:["label","label".concat((0,f.Z)(n))],avatar:["avatar","avatar".concat((0,f.Z)(n)),"avatarColor".concat((0,f.Z)(i))],icon:["icon","icon".concat((0,f.Z)(n)),"iconColor".concat((0,f.Z)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,f.Z)(n)),"deleteIconColor".concat((0,f.Z)(i)),"deleteIcon".concat((0,f.Z)(c),"Color").concat((0,f.Z)(i))]};return(0,s.Z)(u,y,t)})(z),W=G===h.Z?(0,i.Z)({component:b||"div",focusVisibleClassName:U.focusVisible},O&&{disableRipple:!0}):{},q=null;O&&(q=_&&o.isValidElement(_)?o.cloneElement(_,{className:(0,a.Z)(_.props.className,U.deleteIcon),onClick:L}):(0,u.jsx)(d,{className:(0,a.Z)(U.deleteIcon),onClick:L}));var H=null;l&&o.isValidElement(l)&&(H=o.cloneElement(l,{className:(0,a.Z)(U.avatar,l.props.className)}));var V=null;return x&&o.isValidElement(x)&&(V=o.cloneElement(x,{className:(0,a.Z)(U.icon,x.props.className)})),(0,u.jsxs)(C,(0,i.Z)({as:G,className:(0,a.Z)(U.root,c),disabled:!(!Z||!k)||void 0,onClick:E,onKeyDown:e=>{e.currentTarget===e.target&&S(e)&&e.preventDefault(),T&&T(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&S(e)?O(e):"Escape"===e.key&&j.current&&j.current.blur()),R&&R(e)},ref:N,tabIndex:I&&k?-1:D,ownerState:z},W,B,{children:[H||V,(0,u.jsx)(w,{className:(0,a.Z)(U.label),ownerState:z,children:P}),q]}))}))},69691:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(53816),i=r(39324),o=r(90957),a=r(21914),s=r(51118),l=r(43232),c=r(45717),u=r(18085),d=r(67336),p=r(24077),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiCircularProgress",e)}(0,f.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,m,b,y,_,A,C,w,S=r(56552),k=["className","color","disableShrink","size","style","thickness","value","variant"],x=44,P=(0,c.F4)(_||(_=g||(g=(0,n.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),E=(0,c.F4)(A||(A=m||(m=(0,n.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{ownerState:t,theme:r}=e;return(0,o.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.iv)(C||(C=b||(b=(0,n.Z)(["\n animation: "," 1.4s linear infinite;\n "]))),P)})),T=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),R=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.circle,t["circle".concat((0,u.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{var{ownerState:t,theme:r}=e;return(0,o.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.iv)(w||(w=y||(y=(0,n.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),E)})),M=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:a="primary",disableShrink:c=!1,size:p=40,style:f,thickness:h=3.6,value:g=0,variant:m="indeterminate"}=r,b=(0,i.Z)(r,k),y=(0,o.Z)({},r,{color:a,disableShrink:c,size:p,thickness:h,value:g,variant:m}),_=(e=>{var{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,"color".concat((0,u.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.Z)(r)),i&&"circleDisableShrink"]};return(0,l.Z)(o,v,t)})(y),A={},C={},w={};if("determinate"===m){var P=2*Math.PI*((x-h)/2);A.strokeDasharray=P.toFixed(3),w["aria-valuenow"]=Math.round(g),A.strokeDashoffset="".concat(((100-g)/100*P).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,S.jsx)(O,(0,o.Z)({className:(0,s.Z)(_.root,n),style:(0,o.Z)({width:p,height:p},C,f),ownerState:y,ref:t,role:"progressbar"},w,b,{children:(0,S.jsx)(T,{className:_.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(x," ").concat(x),children:(0,S.jsx)(R,{className:_.circle,style:A,ownerState:y,cx:x,cy:x,r:(x-h)/2,fill:"none",strokeWidth:h})})}))}))},28025:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(76704),l=r(46051),c=r(43232),u=r(83849),d=r(9878),p=r(6319),f=r(56552),h=["className","component","disableGutters","fixed","maxWidth","classes"],v=(0,p.Z)(),g=(0,d.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,s.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),m=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:v});var b=r(18085),y=r(24077),_=r(67336),A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=g,useThemeProps:r=m,componentName:u="MuiContainer"}=e,d=t((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{var{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{var n=r,i=t.breakpoints.values[n];return 0!==i&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}})})),p=o.forwardRef((function(e,t){var o=r(e),{className:p,component:v="div",disableGutters:g=!1,fixed:m=!1,maxWidth:b="lg"}=o,y=(0,n.Z)(o,h),_=(0,i.Z)({},o,{component:v,disableGutters:g,fixed:m,maxWidth:b}),A=((e,t)=>{var{classes:r,fixed:n,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&"maxWidth".concat((0,s.Z)(String(o))),n&&"fixed",i&&"disableGutters"]};return(0,c.Z)(a,(e=>(0,l.Z)(t,e)),r)})(_,u);return(0,f.jsx)(d,(0,i.Z)({as:v,ownerState:_,className:(0,a.Z)(A.root,p),ref:t},y))}));return p}({createStyledComponent:(0,y.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,b.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,_.Z)({props:e,name:"MuiContainer"})}),C=A},49266:function(e,t,r){"use strict";var n=r(90957),i=r(21914),o=r(67336),a=r(62890),s=r(56552),l=(e,t)=>(0,n.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),c=e=>(0,n.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});t.ZP=function(e){var t=(0,o.Z)({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:u=!1}=t;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(a.Z,{styles:e=>function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{var r,[n,o]=t;i[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(r=o.palette)?void 0:r.mode}}));var o=(0,n.Z)({html:l(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,n.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i),a=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return a&&(o=[o,a]),o}(e,u)}),r]})}},36385:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(3363),c=r(18085),u=r(99413),d=r(55120),p=r(37395),f=r(67336),h=r(24077),v=r(40059),g=r(46051);function m(e){return(0,g.Z)("MuiDialog",e)}var b=(0,v.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),y=r(40300),_=r(65037),A=r(2846),C=r(56552),w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=(0,h.ZP)(_.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),k=(0,h.ZP)(u.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),x=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.container,t["scroll".concat((0,c.Z)(r.scroll))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),P=(0,h.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,c.Z)(r.scroll))],t["paperWidth".concat((0,c.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(b.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),E=o.forwardRef((function(e,t){var r=(0,f.Z)({props:e,name:"MuiDialog"}),u=(0,A.Z)(),h={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":v,"aria-labelledby":g,BackdropComponent:b,BackdropProps:_,children:E,className:O,disableEscapeKeyDown:T=!1,fullScreen:R=!1,fullWidth:M=!1,maxWidth:F="sm",onBackdropClick:D,onClose:I,open:B,PaperComponent:j=p.Z,PaperProps:N={},scroll:L="paper",TransitionComponent:Z=d.Z,transitionDuration:G=h,TransitionProps:z}=r,U=(0,n.Z)(r,w),W=(0,i.Z)({},r,{disableEscapeKeyDown:T,fullScreen:R,fullWidth:M,maxWidth:F,scroll:L}),q=(e=>{var{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container","scroll".concat((0,c.Z)(r))],paper:["paper","paperScroll".concat((0,c.Z)(r)),"paperWidth".concat((0,c.Z)(String(n))),i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.Z)(a,m,t)})(W),H=o.useRef(),V=(0,l.Z)(g),Y=o.useMemo((()=>({titleId:V})),[V]);return(0,C.jsx)(k,(0,i.Z)({className:(0,a.Z)(q.root,O),closeAfterTransition:!0,components:{Backdrop:S},componentsProps:{backdrop:(0,i.Z)({transitionDuration:G,as:b},_)},disableEscapeKeyDown:T,onClose:I,open:B,ref:t,onClick:e=>{H.current&&(H.current=null,D&&D(e),I&&I(e,"backdropClick"))},ownerState:W},U,{children:(0,C.jsx)(Z,(0,i.Z)({appear:!0,in:B,timeout:G,role:"presentation"},z,{children:(0,C.jsx)(x,{className:(0,a.Z)(q.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:W,children:(0,C.jsx)(P,(0,i.Z)({as:j,elevation:24,role:"dialog","aria-describedby":v,"aria-labelledby":V},N,{className:(0,a.Z)(q.paper,N.className),ownerState:W,children:(0,C.jsx)(y.Z.Provider,{value:Y,children:E})}))})}))}))}))},40300:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},53263:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiDialogContent",e)}(0,u.Z)("MuiDialogContent",["root","dividers"]);var f=r(55973),h=r(56552),v=["className","dividers"],g=(0,l.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(f.Z.root," + &")]:{paddingTop:0}})})),m=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,u=(0,n.Z)(r,v),d=(0,i.Z)({},r,{dividers:l}),f=(e=>{var{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.Z)(n,p,t)})(d);return(0,h.jsx)(g,(0,i.Z)({className:(0,a.Z)(f.root,o),ownerState:d,ref:t},u))}))},55973:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiDialogTitle",e)}var a=(0,n.Z)("MuiDialogTitle",["root"]);t.Z=a},59836:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(45338),p=r(56552),f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{var{ownerState:t}=e;return(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{var{ownerState:t}=e;return(0,i.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),v=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:g=(l?"div":"hr"),flexItem:m=!1,light:b=!1,orientation:y="horizontal",role:_=("hr"!==g?"separator":void 0),textAlign:A="center",variant:C="fullWidth"}=r,w=(0,n.Z)(r,f),S=(0,i.Z)({},r,{absolute:o,component:g,flexItem:m,light:b,orientation:y,role:_,textAlign:A,variant:C}),k=(e=>{var{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,n)})(S);return(0,p.jsx)(h,(0,i.Z)({as:g,className:(0,a.Z)(k.root,c),role:_,ref:t,ownerState:S},w,{children:l?(0,p.jsx)(v,{className:k.wrapper,ownerState:S,children:l}):null}))}));g.muiSkipListHighlight=!0,t.Z=g},45338:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiDivider",e)}var a=(0,n.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=a},24994:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(99413),c=r(76623),u=r(37395),d=r(18085),p=r(2846),f=r(67336),h=r(24077),v=r(40059),g=r(46051);function m(e){return(0,g.Z)("MuiDrawer",e)}(0,v.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var b=r(56552),y=["BackdropProps"],_=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],A=(e,t)=>{var{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},C=(0,h.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:A})((e=>{var{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),w=(0,h.ZP)("div",{shouldForwardProp:h.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:A})({flex:"0 0 auto"}),S=(0,h.ZP)(u.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,d.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,d.Z)(r.anchor))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),k={left:"right",right:"left",top:"down",bottom:"up"};var x=o.forwardRef((function(e,t){var r=(0,f.Z)({props:e,name:"MuiDrawer"}),l=(0,p.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:h="left",BackdropProps:v,children:g,className:A,elevation:x=16,hideBackdrop:P=!1,ModalProps:{BackdropProps:E}={},onClose:O,open:T=!1,PaperProps:R={},SlideProps:M,TransitionComponent:F=c.Z,transitionDuration:D=u,variant:I="temporary"}=r,B=(0,n.Z)(r.ModalProps,y),j=(0,n.Z)(r,_),N=o.useRef(!1);o.useEffect((()=>{N.current=!0}),[]);var L=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?k[t]:t}(l,h),Z=h,G=(0,i.Z)({},r,{anchor:Z,elevation:x,open:T,variant:I},j),z=(e=>{var{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,d.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,d.Z)(r))]};return(0,s.Z)(i,m,t)})(G),U=(0,b.jsx)(S,(0,i.Z)({elevation:"temporary"===I?x:0,square:!0},R,{className:(0,a.Z)(z.paper,R.className),ownerState:G,children:g}));if("permanent"===I)return(0,b.jsx)(w,(0,i.Z)({className:(0,a.Z)(z.root,z.docked,A),ownerState:G,ref:t},j,{children:U}));var W=(0,b.jsx)(F,(0,i.Z)({in:T,direction:k[L],timeout:D,appear:N.current},M,{children:U}));return"persistent"===I?(0,b.jsx)(w,(0,i.Z)({className:(0,a.Z)(z.root,z.docked,A),ownerState:G,ref:t},j,{children:W})):(0,b.jsx)(C,(0,i.Z)({BackdropProps:(0,i.Z)({},v,E,{transitionDuration:D}),className:(0,a.Z)(z.root,z.modal,A),open:T,ownerState:G,onClose:O,hideBackdrop:P,ref:t},j,B,{children:W}))}))},55120:function(e,t,r){"use strict";var n=r(90957),i=r(39324),o=r(21914),a=r(5248),s=r(2846),l=r(85478),c=r(7023),u=r(56552),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=o.forwardRef((function(e,t){var r=(0,s.Z)(),f={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:h,appear:v=!0,children:g,easing:m,in:b,onEnter:y,onEntered:_,onEntering:A,onExit:C,onExited:w,onExiting:S,style:k,timeout:x=f,TransitionComponent:P=a.ZP}=e,E=(0,i.Z)(e,d),O=o.useRef(null),T=(0,c.Z)(O,g.ref,t),R=e=>t=>{if(e){var r=O.current;void 0===t?e(r):e(r,t)}},M=R(A),F=R(((e,t)=>{(0,l.n)(e);var n=(0,l.C)({style:k,timeout:x,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),y&&y(e,t)})),D=R(_),I=R(S),B=R((e=>{var t=(0,l.C)({style:k,timeout:x,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),C&&C(e)})),j=R(w);return(0,u.jsx)(P,(0,n.Z)({appear:v,in:b,nodeRef:O,onEnter:F,onEntered:D,onEntering:M,onExit:B,onExited:j,onExiting:I,addEndListener:e=>{h&&h(O.current,e)},timeout:x},E,{children:(e,t)=>o.cloneElement(g,(0,n.Z)({style:(0,n.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],k,g.props.style),ref:T},t))}))}));t.Z=f},52294:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(61082),s=r(43232),l=r(48237),c=r(24077),u=r(67336),d=r(31961),p=r(56552),f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var t,{theme:r,ownerState:n}=e,o="light"===r.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}},["&.".concat(d.Z.focused)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s},["&.".concat(d.Z.disabled)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.Z.error)]:{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.Z.disabled,", .").concat(d.Z.error,"):before")]:{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)},["&.".concat(d.Z.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),v=(0,c.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9})})),g=o.forwardRef((function(e,t){var r,o,c,g,m=(0,u.Z)({props:e,name:"MuiFilledInput"}),{components:b={},componentsProps:y,fullWidth:_=!1,inputComponent:A="input",multiline:C=!1,slotProps:w,slots:S={},type:k="text"}=m,x=(0,n.Z)(m,f),P=(0,i.Z)({},m,{fullWidth:_,inputComponent:A,multiline:C,type:k}),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,s.Z)(n,d._,t);return(0,i.Z)({},t,o)})(m),O={root:{ownerState:P},input:{ownerState:P}},T=(null!=w?w:y)?(0,a.Z)(null!=w?w:y,O):O,R=null!=(r=null!=(o=S.root)?o:b.Root)?r:h,M=null!=(c=null!=(g=S.input)?g:b.Input)?c:v;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:R,input:M},componentsProps:T,fullWidth:_,inputComponent:A,multiline:C,ref:t,type:k},x,{classes:E}))}));g.muiName="Input",t.Z=g},31961:function(e,t,r){"use strict";r.d(t,{_:function(){return s}});var n=r(90957),i=r(40059),o=r(46051),a=r(62010);function s(e){return(0,o.Z)("MuiFilledInput",e)}var l=(0,n.Z)({},a.Z,(0,i.Z)("MuiFilledInput",["root","underline","input"]));t.Z=l},27460:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(19804),d=r(18085),p=r(7703),f=r(56069),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiFormControl",e)}(0,h.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=r(56552),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,i.Z)({},t.root,t["margin".concat((0,d.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),_=o.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiFormControl"}),{children:c,className:h,color:v="primary",component:_="div",disabled:A=!1,error:C=!1,focused:w,fullWidth:S=!1,hiddenLabel:k=!1,margin:x="none",required:P=!1,size:E="medium",variant:O="outlined"}=r,T=(0,n.Z)(r,b),R=(0,i.Z)({},r,{color:v,component:_,disabled:A,error:C,fullWidth:S,hiddenLabel:k,margin:x,required:P,size:E,variant:O}),M=(e=>{var{classes:t,margin:r,fullWidth:n}=e,i={root:["root","none"!==r&&"margin".concat((0,d.Z)(r)),n&&"fullWidth"]};return(0,s.Z)(i,g,t)})(R),[F,D]=o.useState((()=>{var e=!1;return c&&o.Children.forEach(c,(t=>{if((0,p.Z)(t,["Input","Select"])){var r=(0,p.Z)(t,["Select"])?t.props.input:t;r&&(0,u.B7)(r.props)&&(e=!0)}})),e})),[I,B]=o.useState((()=>{var e=!1;return c&&o.Children.forEach(c,(t=>{(0,p.Z)(t,["Input","Select"])&&((0,u.vd)(t.props,!0)||(0,u.vd)(t.props.inputProps,!0))&&(e=!0)})),e})),[j,N]=o.useState(!1);A&&j&&N(!1);var L,Z=void 0===w||A?j:w,G=o.useMemo((()=>({adornedStart:F,setAdornedStart:D,color:v,disabled:A,error:C,filled:I,focused:Z,fullWidth:S,hiddenLabel:k,size:E,onBlur:()=>{N(!1)},onEmpty:()=>{B(!1)},onFilled:()=>{B(!0)},onFocus:()=>{N(!0)},registerEffect:L,required:P,variant:O})),[F,v,A,C,I,Z,S,k,L,P,E,O]);return(0,m.jsx)(f.Z.Provider,{value:G,children:(0,m.jsx)(y,(0,i.Z)({as:_,ownerState:R,className:(0,a.Z)(M.root,h),ref:t},T,{children:c}))})}))},56069:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},31877:function(e,t,r){"use strict";function n(e){var{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}r.d(t,{Z:function(){return n}})},73028:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914),i=r(56069);function o(){return n.useContext(i.Z)}},74890:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(73028),c=r(51869),u=r(28501),d=r(18085),p=r(24077),f=r(67336),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiFormControlLabel",e)}var m=(0,h.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),b=r(31877),y=r(56552),_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],A=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(m.label)]:t.label},t.root,t["labelPlacement".concat((0,d.Z)(r.labelPlacement))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(m.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(m.label)]:{["&.".concat(m.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),C=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(m.error)]:{color:(t.vars||t).palette.error.main}}})),w=o.forwardRef((function(e,t){var r,p,h=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),{className:v,componentsProps:m={},control:w,disabled:S,disableTypography:k,label:x,labelPlacement:P="end",required:E,slotProps:O={}}=h,T=(0,n.Z)(h,_),R=(0,l.Z)(),M=null!=(r=null!=S?S:w.props.disabled)?r:null==R?void 0:R.disabled,F=null!=E?E:w.props.required,D={disabled:M,required:F};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof w.props[e]&&"undefined"!==typeof h[e]&&(D[e]=h[e])}));var I=(0,b.Z)({props:h,muiFormControl:R,states:["error"]}),B=(0,i.Z)({},h,{disabled:M,labelPlacement:P,required:F,error:I.error}),j=(e=>{var{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled","labelPlacement".concat((0,d.Z)(n)),i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,s.Z)(a,g,t)})(B),N=null!=(p=O.typography)?p:m.typography,L=x;return null==L||L.type===u.Z||k||(L=(0,y.jsx)(u.Z,(0,i.Z)({component:"span"},N,{className:(0,a.Z)(j.label,null==N?void 0:N.className),children:L}))),(0,y.jsxs)(A,(0,i.Z)({className:(0,a.Z)(j.root,v),ownerState:B,ref:t},T,{children:[o.cloneElement(w,D),F?(0,y.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[L,(0,y.jsxs)(C,{ownerState:B,"aria-hidden":!0,className:j.asterisk,children:["\u2009","*"]})]}):L]}))}))},74149:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(31877),c=r(73028),u=r(24077),d=r(18085),p=r(40059),f=r(46051);function h(e){return(0,f.Z)("MuiFormHelperText",e)}var v,g=(0,p.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),m=r(67336),b=r(56552),y=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,d.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),A=o.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:o,className:u,component:p="p"}=r,f=(0,n.Z)(r,y),g=(0,c.Z)(),A=(0,l.Z)({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),C=(0,i.Z)({},r,{component:p,contained:"filled"===A.variant||"outlined"===A.variant,variant:A.variant,size:A.size,disabled:A.disabled,error:A.error,filled:A.filled,focused:A.focused,required:A.required}),w=(e=>{var{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",o&&"error",n&&"size".concat((0,d.Z)(n)),r&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.Z)(u,h,t)})(C);return(0,b.jsx)(_,(0,i.Z)({as:p,ownerState:C,className:(0,a.Z)(w.root,u),ref:t},f,{children:" "===o?v||(v=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):o}))}))},62890:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(90957),i=(r(21914),r(45717)),o=r(56552);function a(e){var{styles:t,defaultTheme:r={}}=e,n="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(i.xB,{styles:n})}var s=r(90151);var l=function(e){var{styles:t,themeId:r,defaultTheme:n={}}=e,i=(0,s.Z)(n),l="function"===typeof t?t(r&&i[r]||i):t;return(0,o.jsx)(a,{styles:l})},c=r(64747),u=r(88464);var d=function(e){return(0,o.jsx)(l,(0,n.Z)({},e,{defaultTheme:c.Z,themeId:u.Z}))}},92423:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(3927),l=r(28240),c=r(43232),u=r(24077),d=r(67336),p=r(2846);var f=o.createContext(),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiGrid",e)}var m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],b=(0,h.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...m.map((e=>"grid-xs-".concat(e))),...m.map((e=>"grid-sm-".concat(e))),...m.map((e=>"grid-md-".concat(e))),...m.map((e=>"grid-lg-".concat(e))),...m.map((e=>"grid-xl-".concat(e)))]),y=r(56552),_=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function A(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function C(e){var{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach((e=>{""===n&&0!==r[e]&&(n=e)}));var i=Object.keys(t).sort(((e,r)=>t[e]-t[r]));return i.slice(0,i.indexOf(n))}var w=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{container:n,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=r,u=[];n&&(u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[r["spacing-xs-".concat(String(e))]];var n=[];return t.forEach((t=>{var i=e[t];Number(i)>0&&n.push(r["spacing-".concat(t,"-").concat(String(i))])})),n}(a,c,t));var d=[];return c.forEach((e=>{var n=r[e];n&&d.push(t["grid-".concat(e,"-").concat(String(n))])})),[t.root,n&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var{theme:t,ownerState:r}=e,n=(0,l.P$)({values:r.direction,breakpoints:t.breakpoints.values});return(0,l.k9)({theme:t},n,(e=>{var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(b.item)]={maxWidth:"none"}),t}))}),(function(e){var{theme:t,ownerState:r}=e,{container:n,rowSpacing:i}=r,o={};if(n&&0!==i){var a,s=(0,l.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(a=C({breakpoints:t.breakpoints.values,values:s})),o=(0,l.k9)({theme:t},s,((e,r)=>{var n,i=t.spacing(e);return"0px"!==i?{marginTop:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingTop:A(i)}}:null!=(n=a)&&n.includes(r)?{}:{marginTop:0,["& > .".concat(b.item)]:{paddingTop:0}}}))}return o}),(function(e){var{theme:t,ownerState:r}=e,{container:n,columnSpacing:i}=r,o={};if(n&&0!==i){var a,s=(0,l.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(a=C({breakpoints:t.breakpoints.values,values:s})),o=(0,l.k9)({theme:t},s,((e,r)=>{var n,i=t.spacing(e);return"0px"!==i?{width:"calc(100% + ".concat(A(i),")"),marginLeft:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingLeft:A(i)}}:null!=(n=a)&&n.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(b.item)]:{paddingLeft:0}}}))}return o}),(function(e){var t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce(((e,o)=>{var a={};if(n[o]&&(t=n[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var s=(0,l.P$)({values:n.columns,breakpoints:r.breakpoints.values}),c="object"===typeof s?s[o]:s;if(void 0===c||null===c)return e;var u="".concat(Math.round(t/c*1e8)/1e6,"%"),d={};if(n.container&&n.item&&0!==n.columnSpacing){var p=r.spacing(n.columnSpacing);if("0px"!==p){var f="calc(".concat(u," + ").concat(A(p),")");d={flexBasis:f,maxWidth:f}}}a=(0,i.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===r.breakpoints.values[o]?Object.assign(e,a):e[r.breakpoints.up(o)]=a,e}),{})}));var S=e=>{var{classes:t,container:r,direction:n,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e,u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var r=[];return t.forEach((t=>{var n=e[t];if(Number(n)>0){var i="spacing-".concat(t,"-").concat(String(n));r.push(i)}})),r}(o,l));var d=[];l.forEach((t=>{var r=e[t];r&&d.push("grid-".concat(t,"-").concat(String(r)))}));var p={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,c.Z)(p,g,t)},k=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:l}=(0,p.Z)(),c=(0,s.Z)(r),{className:u,columns:h,columnSpacing:v,component:g="div",container:m=!1,direction:b="row",item:A=!1,rowSpacing:C,spacing:k=0,wrap:x="wrap",zeroMinWidth:P=!1}=c,E=(0,n.Z)(c,_),O=C||k,T=v||k,R=o.useContext(f),M=m?h||12:R,F={},D=(0,i.Z)({},E);l.keys.forEach((e=>{null!=E[e]&&(F[e]=E[e],delete D[e])}));var I=(0,i.Z)({},c,{columns:M,container:m,direction:b,item:A,rowSpacing:O,columnSpacing:T,wrap:x,zeroMinWidth:P,spacing:k},F,{breakpoints:l.keys}),B=S(I);return(0,y.jsx)(f.Provider,{value:M,children:(0,y.jsx)(w,(0,i.Z)({ownerState:I,className:(0,a.Z)(B.root,u),as:g,ref:t},D))})})),x=k},26794:function(e,t,r){"use strict";var n=r(90957),i=r(39324),o=r(21914),a=r(5248),s=r(2846),l=r(85478),c=r(7023),u=r(56552),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return"scale(".concat(e,", ").concat(e**2,")")}var f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v=o.forwardRef((function(e,t){var{addEndListener:r,appear:v=!0,children:g,easing:m,in:b,onEnter:y,onEntered:_,onEntering:A,onExit:C,onExited:w,onExiting:S,style:k,timeout:x="auto",TransitionComponent:P=a.ZP}=e,E=(0,i.Z)(e,d),O=o.useRef(),T=o.useRef(),R=(0,s.Z)(),M=o.useRef(null),F=(0,c.Z)(M,g.ref,t),D=e=>t=>{if(e){var r=M.current;void 0===t?e(r):e(r,t)}},I=D(A),B=D(((e,t)=>{(0,l.n)(e);var r,{duration:n,delay:i,easing:o}=(0,l.C)({style:k,timeout:x,easing:m},{mode:"enter"});"auto"===x?(r=R.transitions.getAutoHeightDuration(e.clientHeight),T.current=r):r=n,e.style.transition=[R.transitions.create("opacity",{duration:r,delay:i}),R.transitions.create("transform",{duration:h?r:.666*r,delay:i,easing:o})].join(","),y&&y(e,t)})),j=D(_),N=D(S),L=D((e=>{var t,{duration:r,delay:n,easing:i}=(0,l.C)({style:k,timeout:x,easing:m},{mode:"exit"});"auto"===x?(t=R.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[R.transitions.create("opacity",{duration:t,delay:n}),R.transitions.create("transform",{duration:h?t:.666*t,delay:h?n:n||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=p(.75),C&&C(e)})),Z=D(w);return o.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,u.jsx)(P,(0,n.Z)({appear:v,in:b,nodeRef:M,onEnter:B,onEntered:j,onEntering:I,onExit:L,onExited:Z,onExiting:N,addEndListener:e=>{"auto"===x&&(O.current=setTimeout(e,T.current||0)),r&&r(M.current,e)},timeout:"auto"===x?null:x},E,{children:(e,t)=>o.cloneElement(g,(0,n.Z)({style:(0,n.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},f[e],k,g.props.style),ref:F},t))}))}));v.muiSupportAuto=!0,t.Z=v},51929:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(9912),p=r(18085),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiIconButton",e)}var g=(0,f.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),m=r(56552),b=["edge","children","className","color","disabled","disableFocusRipple","size"],y=(0,c.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,p.Z)(r.color))],r.edge&&t["edge".concat((0,p.Z)(r.edge))],t["size".concat((0,p.Z)(r.size))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{var t,{theme:r,ownerState:n}=e,o=null==(t=(r.vars||r).palette)?void 0:t[n.color];return(0,i.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,i.Z)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,i.Z)({},o&&{backgroundColor:r.vars?"rgba(".concat(o.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(o.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}})})),_=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:c,color:d="default",disabled:f=!1,disableFocusRipple:h=!1,size:g="medium"}=r,_=(0,n.Z)(r,b),A=(0,i.Z)({},r,{edge:o,color:d,disabled:f,disableFocusRipple:h,size:g}),C=(e=>{var{classes:t,disabled:r,color:n,edge:i,size:o}=e,a={root:["root",r&&"disabled","default"!==n&&"color".concat((0,p.Z)(n)),i&&"edge".concat((0,p.Z)(i)),"size".concat((0,p.Z)(o))]};return(0,s.Z)(a,v,t)})(A);return(0,m.jsx)(y,(0,i.Z)({className:(0,a.Z)(C.root,c),centerRipple:!0,focusRipple:!h,disabled:f,ref:t,ownerState:A},_,{children:l}))}))},17631:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(43232),s=r(61082),l=r(48237),c=r(24077),u=r(67336),d=r(74281),p=r(56552),f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],h=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,i.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.Z.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.Z.disabled,", .").concat(d.Z.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(d.Z.disabled,":before")]:{borderBottomStyle:"dotted"}})})),v=(0,c.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),g=o.forwardRef((function(e,t){var r,o,c,g,m=(0,u.Z)({props:e,name:"MuiInput"}),{disableUnderline:b,components:y={},componentsProps:_,fullWidth:A=!1,inputComponent:C="input",multiline:w=!1,slotProps:S,slots:k={},type:x="text"}=m,P=(0,n.Z)(m,f),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,a.Z)(n,d.l,t);return(0,i.Z)({},t,o)})(m),O={root:{ownerState:{disableUnderline:b}}},T=(null!=S?S:_)?(0,s.Z)(null!=S?S:_,O):O,R=null!=(r=null!=(o=k.root)?o:y.Root)?r:h,M=null!=(c=null!=(g=k.input)?g:y.Input)?c:v;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:R,input:M},slotProps:T,fullWidth:A,inputComponent:C,multiline:w,ref:t,type:x},P,{classes:E}))}));g.muiName="Input",t.Z=g},74281:function(e,t,r){"use strict";r.d(t,{l:function(){return s}});var n=r(90957),i=r(40059),o=r(46051),a=r(62010);function s(e){return(0,o.Z)("MuiInput",e)}var l=(0,n.Z)({},a.Z,(0,i.Z)("MuiInput",["root","underline","input"]));t.Z=l},54589:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(18085),c=r(28501),u=r(56069),d=r(73028),p=r(24077),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiInputAdornment",e)}var g,m=(0,f.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),b=r(67336),y=r(56552),_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],A=(0,p.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,l.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),C=o.forwardRef((function(e,t){var r=(0,b.Z)({props:e,name:"MuiInputAdornment"}),{children:p,className:f,component:h="div",disablePointerEvents:m=!1,disableTypography:C=!1,position:w,variant:S}=r,k=(0,n.Z)(r,_),x=(0,d.Z)()||{},P=S;S&&x.variant,x&&!P&&(P=x.variant);var E=(0,i.Z)({},r,{hiddenLabel:x.hiddenLabel,size:x.size,disablePointerEvents:m,position:w,variant:P}),O=(e=>{var{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,c={root:["root",r&&"disablePointerEvents",i&&"position".concat((0,l.Z)(i)),a,n&&"hiddenLabel",o&&"size".concat((0,l.Z)(o))]};return(0,s.Z)(c,v,t)})(E);return(0,y.jsx)(u.Z.Provider,{value:null,children:(0,y.jsx)(A,(0,i.Z)({as:h,ownerState:E,className:(0,a.Z)(O.root,f),ref:t},k,{children:"string"!==typeof p||C?(0,y.jsxs)(o.Fragment,{children:["start"===w?g||(g=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,y.jsx)(c.Z,{color:"text.secondary",children:p})}))})}))},48237:function(e,t,r){"use strict";r.d(t,{Ej:function(){return x},Gx:function(){return S},_o:function(){return k},rA:function(){return P}});var n=r(39324),i=r(90957),o=r(47208),a=r(21914),s=r(51118),l=r(43232),c=r(48283),u=r(13161),d=r(31877),p=r(56069),f=r(73028),h=r(24077),v=r(67336),g=r(18085),m=r(7023),b=r(30607),y=r(62890),_=r(19804),A=r(62010),C=r(56552),w=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],S=(e,t)=>{var{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,g.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},k=(e,t)=>{var{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},x=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:S})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(A.Z.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),P=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode,o=(0,i.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(A.Z.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(A.Z.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),E=(0,C.jsx)(y.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),O=a.forwardRef((function(e,t){var r,h=(0,v.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":y,autoComplete:S,autoFocus:k,className:O,components:T={},componentsProps:R={},defaultValue:M,disabled:F,disableInjectingGlobalStyles:D,endAdornment:I,fullWidth:B=!1,id:j,inputComponent:N="input",inputProps:L={},inputRef:Z,maxRows:G,minRows:z,multiline:U=!1,name:W,onBlur:q,onChange:H,onClick:V,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:$,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:re={},startAdornment:ne,type:ie="text",value:oe}=h,ae=(0,n.Z)(h,w),se=null!=L.value?L.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,m.Z)(ce,Z,L.ref,ue),[pe,fe]=a.useState(!1),he=(0,f.Z)();var ve=(0,d.Z)({props:h,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=he?he.focused:pe,a.useEffect((()=>{!he&&F&&pe&&(fe(!1),q&&q())}),[he,F,pe,q]);var ge=he&&he.onFilled,me=he&&he.onEmpty,be=a.useCallback((e=>{(0,_.vd)(e)?ge&&ge():me&&me()}),[ge,me]);(0,b.Z)((()=>{le&&be({value:se})}),[se,be,le]);a.useEffect((()=>{be(ce.current)}),[]);var ye=N,_e=L;U&&"input"===ye&&(_e=ee?(0,i.Z)({type:void 0,minRows:ee,maxRows:ee},_e):(0,i.Z)({type:void 0,maxRows:G,minRows:z},_e),ye=c.u);a.useEffect((()=>{he&&he.setAdornedStart(Boolean(ne))}),[he,ne]);var Ae=(0,i.Z)({},h,{color:ve.color||"primary",disabled:ve.disabled,endAdornment:I,error:ve.error,focused:ve.focused,formControl:he,fullWidth:B,hiddenLabel:ve.hiddenLabel,multiline:U,size:ve.size,startAdornment:ne,type:ie}),Ce=(e=>{var{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:h,type:v}=e,m={root:["root","color".concat((0,g.Z)(r)),n&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,g.Z)(f)),d&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled","search"===v&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.Z)(m,A.u,t)})(Ae),we=re.root||T.Root||x,Se=te.root||R.root||{},ke=re.input||T.Input||P;return _e=(0,i.Z)({},_e,null!=(r=te.input)?r:R.input),(0,C.jsxs)(a.Fragment,{children:[!D&&E,(0,C.jsxs)(we,(0,i.Z)({},Se,!(0,u.X)(we)&&{ownerState:(0,i.Z)({},Ae,Se.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),V&&V(e)}},ae,{className:(0,s.Z)(Ce.root,Se.className,O,Q&&"MuiInputBase-readOnly"),children:[ne,(0,C.jsx)(p.Z.Provider,{value:null,children:(0,C.jsx)(ke,(0,i.Z)({ownerState:Ae,"aria-invalid":ve.error,"aria-describedby":y,autoComplete:S,autoFocus:k,defaultValue:M,disabled:ve.disabled,id:j,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:W,placeholder:$,readOnly:Q,required:ve.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},_e,!(0,u.X)(ke)&&{as:ye,ownerState:(0,i.Z)({},Ae,_e.ownerState)},{ref:de,className:(0,s.Z)(Ce.input,_e.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{q&&q(e),L.onBlur&&L.onBlur(e),he&&he.onBlur?he.onBlur(e):fe(!1)},onChange:function(e){if(!le){var t=e.target||ce.current;if(null==t)throw new Error((0,o.Z)(1));be({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i{ve.disabled?e.stopPropagation():(Y&&Y(e),L.onFocus&&L.onFocus(e),he&&he.onFocus?he.onFocus(e):fe(!0))}}))}),I,J?J((0,i.Z)({},ve,{startAdornment:ne})):null]}))]})}));t.ZP=O},62010:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiInputBase",e)}var a=(0,n.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=a},19804:function(e,t,r){"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}r.d(t,{B7:function(){return o},vd:function(){return i}})},23482:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),o=r(21914),a=r(43232),s=r(51118),l=r(31877),c=r(73028),u=r(18085),d=r(67336),p=r(24077),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiFormLabel",e)}var g=(0,f.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),m=r(56552),b=["children","className","color","component","disabled","error","filled","focused","required"],y=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,i.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(g.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}})})),_=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}}})),A=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:o,className:p,component:f="label"}=r,h=(0,n.Z)(r,b),g=(0,c.Z)(),A=(0,l.Z)({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C=(0,i.Z)({},r,{color:A.color||"primary",component:f,disabled:A.disabled,error:A.error,filled:A.filled,focused:A.focused,required:A.required}),w=(e=>{var{classes:t,color:r,focused:n,disabled:i,error:o,filled:s,required:l}=e,c={root:["root","color".concat((0,u.Z)(r)),i&&"disabled",o&&"error",s&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.Z)(c,v,t)})(C);return(0,m.jsxs)(y,(0,i.Z)({as:f,ownerState:C,className:(0,s.Z)(w.root,p),ref:t},h,{children:[o,A.required&&(0,m.jsxs)(_,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}))}));function C(e){return(0,h.Z)("MuiInputLabel",e)}(0,f.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var w=["disableAnimation","margin","shrink","variant","className"],S=(0,p.ZP)(A,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(g.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),k=o.forwardRef((function(e,t){var r=(0,d.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:p,className:f}=r,h=(0,n.Z)(r,w),v=(0,c.Z)(),g=p;"undefined"===typeof g&&v&&(g=v.filled||v.focused||v.adornedStart);var b=(0,l.Z)({props:r,muiFormControl:v,states:["size","variant","required"]}),y=(0,i.Z)({},r,{disableAnimation:o,formControl:v,shrink:g,size:b.size,variant:b.variant,required:b.required}),_=(e=>{var{classes:t,formControl:r,size:n,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,u.Z)(n)),l],asterisk:[c&&"asterisk"]},p=(0,a.Z)(d,C,t);return(0,i.Z)({},t,p)})(y);return(0,m.jsx)(S,(0,i.Z)({"data-shrink":g,ownerState:y,ref:t,className:(0,s.Z)(_.root,f)},h,{classes:_}))}))},48006:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(18085),c=r(24077),u=r(67336),d=r(14175),p=r(7023),f=r(28501),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiLink",e)}var m=(0,h.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),b=r(5216),y=r(97013),_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=e=>{var{theme:t,ownerState:r}=e,n=(e=>_[e]||e)(r.color),i=(0,y.DW)(t,"palette.".concat(n),!1)||r.color,o=(0,y.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,b.Fq)(i,.4)},C=r(56552),w=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],S=(0,c.ZP)(f.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["underline".concat((0,l.Z)(r.underline))],"button"===r.component&&t.button]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:A({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.focusVisible)]:{outline:"auto"}})})),k=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiLink"}),{className:c,color:f="primary",component:h="a",onBlur:v,onFocus:m,TypographyClasses:b,underline:y="always",variant:A="inherit",sx:k}=r,x=(0,n.Z)(r,w),{isFocusVisibleRef:P,onBlur:E,onFocus:O,ref:T}=(0,d.Z)(),[R,M]=o.useState(!1),F=(0,p.Z)(t,T),D=(0,i.Z)({},r,{color:f,component:h,focusVisible:R,underline:y,variant:A}),I=(e=>{var{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root","underline".concat((0,l.Z)(i)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.Z)(o,g,t)})(D);return(0,C.jsx)(S,(0,i.Z)({color:f,className:(0,a.Z)(I.root,c),classes:b,component:h,onBlur:e=>{E(e),!1===P.current&&M(!1),v&&v(e)},onFocus:e=>{O(e),!0===P.current&&M(!0),m&&m(e)},ref:F,ownerState:D,variant:A,sx:[...Object.keys(_).includes(f)?[]:[{color:f}],...Array.isArray(k)?k:[k]]},x))}))},6197:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(60998),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var h=r(56552),v=["children","className","component","dense","disablePadding","subheader"],g=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),m=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiList"}),{children:l,className:d,component:p="ul",dense:m=!1,disablePadding:b=!1,subheader:y}=r,_=(0,n.Z)(r,v),A=o.useMemo((()=>({dense:m})),[m]),C=(0,i.Z)({},r,{component:p,dense:m,disablePadding:b}),w=(e=>{var{classes:t,disablePadding:r,dense:n,subheader:i}=e,o={root:["root",!r&&"padding",n&&"dense",i&&"subheader"]};return(0,s.Z)(o,f,t)})(C);return(0,h.jsx)(u.Z.Provider,{value:A,children:(0,h.jsxs)(g,(0,i.Z)({as:p,className:(0,a.Z)(w.root,d),ref:t,ownerState:C},_,{children:[y,l]}))})}))},60998:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},71488:function(e,t,r){"use strict";r.d(t,{ZP:function(){return M}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(13161),c=r(5216),u=r(24077),d=r(67336),p=r(9912),f=r(7703),h=r(30607),v=r(7023),g=r(60998),m=r(40059),b=r(46051);function y(e){return(0,b.Z)("MuiListItem",e)}var _=(0,m.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),A=r(51427);function C(e){return(0,b.Z)("MuiListItemSecondaryAction",e)}(0,m.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var w=r(56552),S=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),x=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=r,c=(0,n.Z)(r,S),u=o.useContext(g.Z),p=(0,i.Z)({},r,{disableGutters:u.disableGutters}),f=(e=>{var{disableGutters:t,classes:r}=e,n={root:["root",t&&"disableGutters"]};return(0,s.Z)(n,C,r)})(p);return(0,w.jsx)(k,(0,i.Z)({className:(0,a.Z)(f.root,l),ownerState:p,ref:t},c))}));x.muiName="ListItemSecondaryAction";var P=x,E=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,i.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(A.Z.root)]:{paddingRight:48}},{["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(_.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(_.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})})),R=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),M=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:u=!1,button:m=!1,children:b,className:A,component:C,components:S={},componentsProps:k={},ContainerComponent:x="li",ContainerProps:{className:M}={},dense:F=!1,disabled:D=!1,disableGutters:I=!1,disablePadding:B=!1,divider:j=!1,focusVisibleClassName:N,secondaryAction:L,selected:Z=!1,slotProps:G={},slots:z={}}=r,U=(0,n.Z)(r.ContainerProps,E),W=(0,n.Z)(r,O),q=o.useContext(g.Z),H=o.useMemo((()=>({dense:F||q.dense||!1,alignItems:c,disableGutters:I})),[c,q.dense,F,I]),V=o.useRef(null);(0,h.Z)((()=>{u&&V.current&&V.current.focus()}),[u]);var Y=o.Children.toArray(b),K=Y.length&&(0,f.Z)(Y[Y.length-1],["ListItemSecondaryAction"]),X=(0,i.Z)({},r,{alignItems:c,autoFocus:u,button:m,dense:H.dense,disabled:D,disableGutters:I,disablePadding:B,divider:j,hasSecondaryAction:K,selected:Z}),$=(e=>{var{alignItems:t,button:r,classes:n,dense:i,disabled:o,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,p={root:["root",i&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",o&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,n)})(X),Q=(0,v.Z)(V,t),J=z.root||S.Root||T,ee=G.root||k.root||{},te=(0,i.Z)({className:(0,a.Z)($.root,ee.className,A),disabled:D},W),re=C||"li";return m&&(te.component=C||"div",te.focusVisibleClassName=(0,a.Z)(_.focusVisible,N),re=p.Z),K?(re=te.component||C?re:"div","li"===x&&("li"===re?re="div":"li"===te.component&&(te.component="div")),(0,w.jsx)(g.Z.Provider,{value:H,children:(0,w.jsxs)(R,(0,i.Z)({as:x,className:(0,a.Z)($.container,M),ref:Q,ownerState:X},U,{children:[(0,w.jsx)(J,(0,i.Z)({},ee,!(0,l.X)(J)&&{as:re,ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:Y})),Y.pop()]}))})):(0,w.jsx)(g.Z.Provider,{value:H,children:(0,w.jsxs)(J,(0,i.Z)({},ee,{as:re,ref:Q},!(0,l.X)(J)&&{ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:[Y,L&&(0,w.jsx)(P,{children:L})]}))})}))},86111:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(9912),p=r(30607),f=r(7023),h=r(60998),v=r(51427),g=r(56552),m=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],b=(0,c.ZP)(d.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(v.Z.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(v.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(v.Z.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(v.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(v.Z.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})})),y=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:c=!1,component:d="div",children:y,dense:_=!1,disableGutters:A=!1,divider:C=!1,focusVisibleClassName:w,selected:S=!1,className:k}=r,x=(0,n.Z)(r,m),P=o.useContext(h.Z),E=o.useMemo((()=>({dense:_||P.dense||!1,alignItems:l,disableGutters:A})),[l,P.dense,_,A]),O=o.useRef(null);(0,p.Z)((()=>{c&&O.current&&O.current.focus()}),[c]);var T=(0,i.Z)({},r,{alignItems:l,dense:E.dense,disableGutters:A,divider:C,selected:S}),R=(e=>{var{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:a,divider:l,selected:c}=e,u={root:["root",n&&"dense",!a&&"gutters",l&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",c&&"selected"]},d=(0,s.Z)(u,v.t,r);return(0,i.Z)({},r,d)})(T),M=(0,f.Z)(O,t);return(0,g.jsx)(h.Z.Provider,{value:E,children:(0,g.jsx)(b,(0,i.Z)({ref:M,href:x.href||x.to,component:(x.href||x.to)&&"div"===d?"button":d,focusVisibleClassName:(0,a.Z)(R.focusVisible,w),ownerState:T,className:(0,a.Z)(R.root,k)},x,{classes:R,children:y}))})}));t.Z=y},51427:function(e,t,r){"use strict";r.d(t,{t:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiListItemButton",e)}var a=(0,n.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=a},13569:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(77832),d=r(60998),p=r(56552),f=["className"],h=(0,l.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),v=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiListItemIcon"}),{className:l}=r,v=(0,n.Z)(r,f),g=o.useContext(d.Z),m=(0,i.Z)({},r,{alignItems:g.alignItems}),b=(e=>{var{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(n,u.f,r)})(m);return(0,p.jsx)(h,(0,i.Z)({className:(0,a.Z)(b.root,l),ownerState:m,ref:t},v))}));t.Z=v},77832:function(e,t,r){"use strict";r.d(t,{f:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiListItemIcon",e)}var a=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=a},82309:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(28501),c=r(60998),u=r(67336),d=r(24077),p=r(21230),f=r(56552),h=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],v=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(p.Z.primary)]:t.primary},{["& .".concat(p.Z.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),g=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiListItemText"}),{children:d,className:g,disableTypography:m=!1,inset:b=!1,primary:y,primaryTypographyProps:_,secondary:A,secondaryTypographyProps:C}=r,w=(0,n.Z)(r,h),{dense:S}=o.useContext(c.Z),k=null!=y?y:d,x=A,P=(0,i.Z)({},r,{disableTypography:m,inset:b,primary:!!k,secondary:!!x,dense:S}),E=(e=>{var{classes:t,inset:r,primary:n,secondary:i,dense:o}=e,a={root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,s.Z)(a,p.L,t)})(P);return null==k||k.type===l.Z||m||(k=(0,f.jsx)(l.Z,(0,i.Z)({variant:S?"body2":"body1",className:E.primary,component:null!=_&&_.variant?void 0:"span",display:"block"},_,{children:k}))),null==x||x.type===l.Z||m||(x=(0,f.jsx)(l.Z,(0,i.Z)({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},C,{children:x}))),(0,f.jsxs)(v,(0,i.Z)({className:(0,a.Z)(E.root,g),ownerState:P,ref:t},w,{children:[k,x]}))}));t.Z=g},21230:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiListItemText",e)}var a=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=a},67062:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(90957),i=r(39324),o=r(21914),a=(r(45211),r(51118)),s=r(43232),l=r(78627),c=r(77036),u=r(6197),d=r(34508).Z,p=r(7023),f=r(30607),h=r(56552),v=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function g(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function m(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function b(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function y(e,t,r,n,i,o){for(var a=!1,s=i(e,t,!!t&&r);s;){if(s===e.firstChild){if(a)return!1;a=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&b(s,o)&&!l)return s.focus(),!0;s=i(e,s,r)}return!1}var _=o.forwardRef((function(e,t){var{actions:r,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:_,disabledItemsFocusable:A=!1,disableListWrap:C=!1,onKeyDown:w,variant:S="selectedMenu"}=e,k=(0,i.Z)(e,v),x=o.useRef(null),P=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.Z)((()=>{a&&x.current.focus()}),[a]),o.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{var r=!x.current.style.width;if(e.clientHeight{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1)>=l.length&&(O=-1)):O===t&&(O+=1)>=l.length&&(O=-1)}));var T=o.Children.map(l,((e,t)=>{if(t===O){var r={};return s&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===S&&(r.tabIndex=0),o.cloneElement(e,r)}return e}));return(0,h.jsx)(u.Z,(0,n.Z)({role:"menu",ref:E,className:_,onKeyDown:e=>{var t=x.current,r=e.key,n=(0,c.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),y(t,n,C,A,g);else if("ArrowUp"===r)e.preventDefault(),y(t,n,C,A,m);else if("Home"===r)e.preventDefault(),y(t,null,C,A,g);else if("End"===r)e.preventDefault(),y(t,null,C,A,m);else if(1===r.length){var i=P.current,o=r.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=n&&!i.repeating&&b(n,i);i.previousKeyMatched&&(s||y(t,n,!1,A,g,i))?e.preventDefault():i.previousKeyMatched=!1}w&&w(e)},tabIndex:a?0:-1},k,{children:T}))})),A=r(13161),C=r(24077),w=r(67336),S=r(38822),k=r(67171),x=r(26794),P=r(99413),E=r(37395),O=r(40059),T=r(46051);function R(e){return(0,T.Z)("MuiPopover",e)}(0,O.Z)("MuiPopover",["root","paper"]);var M=["onEntering"],F=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],D=["slotProps"];function I(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function B(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function j(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function N(e){return"function"===typeof e?e():e}var L=(0,C.ZP)(P.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z=(0,C.ZP)(E.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),G=o.forwardRef((function(e,t){var r,u,d,f=(0,w.Z)({props:e,name:"MuiPopover"}),{action:v,anchorEl:g,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:b,anchorReference:y="anchorEl",children:_,className:C,container:P,elevation:E=8,marginThreshold:O=16,open:T,PaperProps:G={},slots:z,slotProps:U,transformOrigin:W={vertical:"top",horizontal:"left"},TransitionComponent:q=x.Z,transitionDuration:H="auto",TransitionProps:{onEntering:V}={},disableScrollLock:Y=!1}=f,K=(0,i.Z)(f.TransitionProps,M),X=(0,i.Z)(f,F),$=null!=(r=null==U?void 0:U.paper)?r:G,Q=o.useRef(),J=(0,p.Z)(Q,$.ref),ee=(0,n.Z)({},f,{anchorOrigin:m,anchorReference:y,elevation:E,marginThreshold:O,externalPaperSlotProps:$,transformOrigin:W,TransitionComponent:q,transitionDuration:H,TransitionProps:K}),te=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},R,t)})(ee),re=o.useCallback((()=>{if("anchorPosition"===y)return b;var e=N(g),t=(e&&1===e.nodeType?e:(0,c.Z)(Q.current).body).getBoundingClientRect();return{top:t.top+I(t,m.vertical),left:t.left+B(t,m.horizontal)}}),[g,m.horizontal,m.vertical,b,y]),ne=o.useCallback((e=>({vertical:I(e,W.vertical),horizontal:B(e,W.horizontal)})),[W.horizontal,W.vertical]),ie=o.useCallback((e=>{var t={width:e.offsetWidth,height:e.offsetHeight},r=ne(t);if("none"===y)return{top:null,left:null,transformOrigin:j(r)};var n=re(),i=n.top-r.vertical,o=n.left-r.horizontal,a=i+t.height,s=o+t.width,l=(0,k.Z)(N(g)),c=l.innerHeight-O,u=l.innerWidth-O;if(null!==O&&ic){var p=a-c;i-=p,r.vertical+=p}if(null!==O&&ou){var h=s-u;o-=h,r.horizontal+=h}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:j(r)}}),[g,y,re,ne,O]),[oe,ae]=o.useState(T),se=o.useCallback((()=>{var e=Q.current;if(e){var t=ie(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}}),[ie]);o.useEffect((()=>(Y&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[g,Y,se]);o.useEffect((()=>{T&&se()})),o.useImperativeHandle(v,(()=>T?{updatePosition:()=>{se()}}:null),[T,se]),o.useEffect((()=>{if(T){var e=(0,S.Z)((()=>{se()})),t=(0,k.Z)(g);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[g,T,se]);var le=H;"auto"!==H||q.muiSupportAuto||(le=void 0);var ce=P||(g?(0,c.Z)(N(g)).body:void 0),ue=null!=(u=null==z?void 0:z.root)?u:L,de=null!=(d=null==z?void 0:z.paper)?d:Z,pe=(0,l.y)({elementType:de,externalSlotProps:(0,n.Z)({},$,{style:oe?$.style:(0,n.Z)({},$.style,{opacity:0})}),additionalProps:{elevation:E,ref:J},ownerState:ee,className:(0,a.Z)(te.paper,null==$?void 0:$.className)}),fe=(0,l.y)({elementType:ue,externalSlotProps:(null==U?void 0:U.root)||{},externalForwardedProps:X,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:T},ownerState:ee,className:(0,a.Z)(te.root,C)}),{slotProps:he}=fe,ve=(0,i.Z)(fe,D);return(0,h.jsx)(ue,(0,n.Z)({},ve,!(0,A.X)(ue)&&{slotProps:he,disableScrollLock:Y},{children:(0,h.jsx)(q,(0,n.Z)({appear:!0,in:T,onEntering:(e,t)=>{V&&V(e,t),se()},onExited:()=>{ae(!1)},timeout:le},K,{children:(0,h.jsx)(de,(0,n.Z)({},pe,{children:_}))}))}))})),z=r(2846);function U(e){return(0,T.Z)("MuiMenu",e)}(0,O.Z)("MuiMenu",["root","paper","list"]);var W=["onEntering"],q=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],H={vertical:"top",horizontal:"right"},V={vertical:"top",horizontal:"left"},Y=(0,C.ZP)(G,{shouldForwardProp:e=>(0,C.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),K=(0,C.ZP)(Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),X=(0,C.ZP)(_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$=o.forwardRef((function(e,t){var r,c,u=(0,w.Z)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:p,className:f,disableAutoFocusItem:v=!1,MenuListProps:g={},onClose:m,open:b,PaperProps:y={},PopoverClasses:_,transitionDuration:A="auto",TransitionProps:{onEntering:C}={},variant:S="selectedMenu",slots:k={},slotProps:x={}}=u,P=(0,i.Z)(u.TransitionProps,W),E=(0,i.Z)(u,q),O=(0,z.Z)(),T="rtl"===O.direction,R=(0,n.Z)({},u,{autoFocus:d,disableAutoFocusItem:v,MenuListProps:g,onEntering:C,PaperProps:y,transitionDuration:A,TransitionProps:P,variant:S}),M=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},U,t)})(R),F=d&&!v&&b,D=o.useRef(null),I=-1;o.Children.map(p,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===I)&&(I=t))}));var B=null!=(r=k.paper)?r:K,j=null!=(c=x.paper)?c:y,N=(0,l.y)({elementType:k.root,externalSlotProps:x.root,ownerState:R,className:[M.root,f]}),L=(0,l.y)({elementType:B,externalSlotProps:j,ownerState:R,className:M.paper});return(0,h.jsx)(Y,(0,n.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?H:V,slots:{paper:B,root:k.root},slotProps:{root:N,paper:L},open:b,ref:t,transitionDuration:A,TransitionProps:(0,n.Z)({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,O),C&&C(e,t)}},P),ownerState:R},E,{classes:_,children:(0,h.jsx)(X,(0,n.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:D,autoFocus:d&&(-1===I||v),autoFocusItem:F,variant:S},g,{className:(0,a.Z)(M.list,g.className),children:p}))}))}))},68686:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(60998),p=r(9912),f=r(30607),h=r(7023),v=r(45338),g=r(77832),m=r(21230),b=r(40059),y=r(46051);function _(e){return(0,y.Z)("MuiMenuItem",e)}var A=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),C=r(56552),w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(A.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(A.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(v.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(v.Z.inset)]:{marginLeft:52},["& .".concat(m.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(m.Z.inset)]:{paddingLeft:36},["& .".concat(g.Z.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.Z.root," svg")]:{fontSize:"1.25rem"}}))})),k=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:p=!1,divider:v=!1,disableGutters:g=!1,focusVisibleClassName:m,role:b="menuitem",tabIndex:y,className:A}=r,k=(0,n.Z)(r,w),x=o.useContext(d.Z),P=o.useMemo((()=>({dense:p||x.dense||!1,disableGutters:g})),[x.dense,p,g]),E=o.useRef(null);(0,f.Z)((()=>{l&&E.current&&E.current.focus()}),[l]);var O,T=(0,i.Z)({},r,{dense:P.dense,divider:v,disableGutters:g}),R=(e=>{var{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=e,c={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},u=(0,s.Z)(c,_,l);return(0,i.Z)({},l,u)})(r),M=(0,h.Z)(E,t);return r.disabled||(O=void 0!==y?y:-1),(0,C.jsx)(d.Z.Provider,{value:P,children:(0,C.jsx)(S,(0,i.Z)({ref:M,role:b,tabIndex:O,component:c,focusVisibleClassName:(0,a.Z)(R.focusVisible,m),className:(0,a.Z)(R.root,A)},k,{ownerState:T,classes:R}))})}))},99413:function(e,t,r){"use strict";r.d(t,{Z:function(){return N}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(78627),l=r(43064),c=r(91313),u=r(22713),d=r(82856),p=r(1332),f=r(75979),h=r(34508);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,f.Z)(e).getComputedStyle(e).paddingRight,10)||0}function m(e,t,r,n,i){var o=[t,r,...n];[].forEach.call(e.children,(e=>{var t=-1===o.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&v(e,i)}))}function b(e,t){var r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function y(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,c.Z)(e);return t.body===e?(0,f.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var i=(0,h.Z)((0,c.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(g(n)+i,"px");var o=(0,c.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(o,(e=>{r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(g(e)+i,"px")}))}var a;if(n.parentNode instanceof DocumentFragment)a=(0,c.Z)(n).body;else{var s=n.parentElement,l=(0,f.Z)(n);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach((e=>{var{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var _=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);m(t,e.mount,e.modalRef,n,!0);var i=b(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){var r=b(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=y(n,t))}remove(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=b(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&v(e.modalRef,t),m(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&v(o.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function A(e){var{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=_,closeAfterTransition:s=!1,onTransitionEnter:f,onTransitionExited:h,children:g,onClose:m,open:b,rootRef:y}=e,A=o.useRef({}),C=o.useRef(null),w=o.useRef(null),S=(0,l.Z)(w,y),[k,x]=o.useState(!b),P=function(e){return!!e&&e.props.hasOwnProperty("in")}(g),E=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(E=!1);var O=()=>(A.current.modalRef=w.current,A.current.mount=C.current,A.current),T=()=>{a.mount(O(),{disableScrollLock:n}),w.current&&(w.current.scrollTop=0)},R=(0,u.Z)((()=>{var e=function(e){return"function"===typeof e?e():e}(t)||(0,c.Z)(C.current).body;a.add(O(),e),w.current&&T()})),M=o.useCallback((()=>a.isTopModal(O())),[a]),F=(0,u.Z)((e=>{C.current=e,e&&(b&&M()?T():w.current&&v(w.current,E))})),D=o.useCallback((()=>{a.remove(O(),E)}),[E,a]);o.useEffect((()=>()=>{D()}),[D]),o.useEffect((()=>{b?R():P&&s||D()}),[b,D,P,s,R]);var I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&M()&&(r||(t.stopPropagation(),m&&m(t,"escapeKeyDown")))},B=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&m&&m(t,"backdropClick")};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,p._)(e);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,i.Z)({},r,t);return(0,i.Z)({role:"presentation"},n,{onKeyDown:I(n),ref:S})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-hidden":!0},e,{onClick:B(e),open:b})},getTransitionProps:()=>({onEnter:(0,d.Z)((()=>{x(!1),f&&f()}),null==g?void 0:g.props.onEnter),onExited:(0,d.Z)((()=>{x(!0),h&&h(),s&&D()}),null==g?void 0:g.props.onExited)}),rootRef:S,portalRef:F,isTopModal:M,exited:k,hasTransition:P}}var C=r(43232),w=r(56552),S=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function k(e){var t=[],r=[];return Array.from(e.querySelectorAll(S)).forEach(((e,n)=>{var i=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function x(){return!0}function P(e){var{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=k,isEnabled:s=x,open:u}=e,d=o.useRef(!1),p=o.useRef(null),f=o.useRef(null),h=o.useRef(null),v=o.useRef(null),g=o.useRef(!1),m=o.useRef(null),b=(0,l.Z)(t.ref,m),y=o.useRef(null);o.useEffect((()=>{u&&m.current&&(g.current=!r)}),[r,u]),o.useEffect((()=>{if(u&&m.current){var e=(0,c.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}}}),[u]),o.useEffect((()=>{if(u&&m.current){var e=(0,c.Z)(m.current),t=t=>{y.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(d.current=!0,f.current&&f.current.focus())},r=()=>{var t=m.current;if(null!==t)if(e.hasFocus()&&s()&&!d.current){if(!t.contains(e.activeElement)&&(!n||e.activeElement===p.current||e.activeElement===f.current)){if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(g.current){var r=[];if(e.activeElement!==p.current&&e.activeElement!==f.current||(r=a(m.current)),r.length>0){var i,o,l=Boolean((null==(i=y.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),c=r[0],u=r[r.length-1];"string"!==typeof c&&"string"!==typeof u&&(l?u.focus():c.focus())}else t.focus()}}}else d.current=!1};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);var i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}}),[r,n,i,s,u,a]);var _=e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0};return(0,w.jsxs)(o.Fragment,{children:[(0,w.jsx)("div",{tabIndex:u?0:-1,onFocus:_,ref:p,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:b,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0,v.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,w.jsx)("div",{tabIndex:u?0:-1,onFocus:_,ref:f,"data-testid":"sentinelEnd"})]})}var E=r(18686),O=r(24077),T=r(67336),R=r(65037),M=r(40059),F=r(46051);function D(e){return(0,F.Z)("MuiModal",e)}(0,M.Z)("MuiModal",["root","hidden","backdrop"]);var I=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],B=(0,O.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),j=(0,O.ZP)(R.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),N=o.forwardRef((function(e,t){var r,l,c,u,d,p,f=(0,T.Z)({name:"MuiModal",props:e}),{BackdropComponent:h=j,BackdropProps:v,className:g,closeAfterTransition:m=!1,children:b,container:y,component:_,components:S={},componentsProps:k={},disableAutoFocus:x=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:R=!1,disablePortal:M=!1,disableRestoreFocus:F=!1,disableScrollLock:N=!1,hideBackdrop:L=!1,keepMounted:Z=!1,onBackdropClick:G,open:z,slotProps:U,slots:W}=f,q=(0,n.Z)(f,I),H=(0,i.Z)({},f,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:O,disableEscapeKeyDown:R,disablePortal:M,disableRestoreFocus:F,disableScrollLock:N,hideBackdrop:L,keepMounted:Z}),{getRootProps:V,getBackdropProps:Y,getTransitionProps:K,portalRef:X,isTopModal:$,exited:Q,hasTransition:J}=A((0,i.Z)({},H,{rootRef:t})),ee=(0,i.Z)({},H,{exited:Q}),te=(e=>{var{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,C.Z)(i,D,n)})(ee),re={};if(void 0===b.props.tabIndex&&(re.tabIndex="-1"),J){var{onEnter:ne,onExited:ie}=K();re.onEnter=ne,re.onExited=ie}var oe=null!=(r=null!=(l=null==W?void 0:W.root)?l:S.Root)?r:B,ae=null!=(c=null!=(u=null==W?void 0:W.backdrop)?u:S.Backdrop)?c:h,se=null!=(d=null==U?void 0:U.root)?d:k.root,le=null!=(p=null==U?void 0:U.backdrop)?p:k.backdrop,ce=(0,s.y)({elementType:oe,externalSlotProps:se,externalForwardedProps:q,getSlotProps:V,additionalProps:{ref:t,as:_},ownerState:ee,className:(0,a.Z)(g,null==se?void 0:se.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),ue=(0,s.y)({elementType:ae,externalSlotProps:le,additionalProps:v,getSlotProps:e=>Y((0,i.Z)({},e,{onClick:t=>{G&&G(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.Z)(null==le?void 0:le.className,null==v?void 0:v.className,null==te?void 0:te.backdrop),ownerState:ee});return Z||z||J&&!Q?(0,w.jsx)(E.h,{ref:X,container:y,disablePortal:M,children:(0,w.jsxs)(oe,(0,i.Z)({},ce,{children:[!L&&h?(0,w.jsx)(ae,(0,i.Z)({},ue)):null,(0,w.jsx)(P,{disableEnforceFocus:O,disableAutoFocus:x,disableRestoreFocus:F,isEnabled:$,open:z,children:o.cloneElement(b,re)})]}))}):null}))},47628:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n,i=r(39324),o=r(90957),a=r(21914),s=r(43232),l=r(24077),c=r(56552),u=["children","classes","className","label","notched"],d=(0,l.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,l.ZP)("legend")((e=>{var{ownerState:t,theme:r}=e;return(0,o.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,o.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));var f=r(73028),h=r(31877),v=r(48974),g=r(48237),m=r(67336),b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],y=(0,l.ZP)(g.Ej,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:g.Gx})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(v.Z.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(v.Z.focused," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(v.Z.error," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(v.Z.disabled," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,o.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),_=(0,l.ZP)((function(e){var{className:t,label:r,notched:a}=e,s=(0,i.Z)(e,u),l=null!=r&&""!==r,f=(0,o.Z)({},e,{notched:a,withLabel:l});return(0,c.jsx)(d,(0,o.Z)({"aria-hidden":!0,className:t,ownerState:f},s,{children:(0,c.jsx)(p,{ownerState:f,children:l?(0,c.jsx)("span",{children:r}):n||(n=(0,c.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{var{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),A=(0,l.ZP)(g.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g._o})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),C=a.forwardRef((function(e,t){var r,n,l,u,d,p=(0,m.Z)({props:e,name:"MuiOutlinedInput"}),{components:C={},fullWidth:w=!1,inputComponent:S="input",label:k,multiline:x=!1,notched:P,slots:E={},type:O="text"}=p,T=(0,i.Z)(p,b),R=(e=>{var{classes:t}=e,r=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v.e,t);return(0,o.Z)({},t,r)})(p),M=(0,f.Z)(),F=(0,h.Z)({props:p,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=(0,o.Z)({},p,{color:F.color||"primary",disabled:F.disabled,error:F.error,focused:F.focused,formControl:M,fullWidth:w,hiddenLabel:F.hiddenLabel,multiline:x,size:F.size,type:O}),I=null!=(r=null!=(n=E.root)?n:C.Root)?r:y,B=null!=(l=null!=(u=E.input)?u:C.Input)?l:A;return(0,c.jsx)(g.ZP,(0,o.Z)({slots:{root:I,input:B},renderSuffix:e=>(0,c.jsx)(_,{ownerState:D,className:R.notchedOutline,label:null!=k&&""!==k&&F.required?d||(d=(0,c.jsxs)(a.Fragment,{children:[k,"\u2009","*"]})):k,notched:"undefined"!==typeof P?P:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:w,inputComponent:S,multiline:x,ref:t,type:O},T,{classes:(0,o.Z)({},R,{notchedOutline:null})}))}));C.muiName="Input";var w=C},48974:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(90957),i=r(40059),o=r(46051),a=r(62010);function s(e){return(0,o.Z)("MuiOutlinedInput",e)}var l=(0,n.Z)({},a.Z,(0,i.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));t.Z=l},74128:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(67336),c=r(40059),u=r(46051);function d(e){return(0,u.Z)("MuiPagination",e)}(0,c.Z)("MuiPagination",["root","ul","outlined","text"]);var p=r(23151),f=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var h=r(81797),v=r(24077),g=r(56552),m=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],b=(0,v.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),y=(0,v.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function _(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var A=o.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiPagination"}),{boundaryCount:o=1,className:c,color:u="standard",count:v=1,defaultPage:A=1,disabled:C=!1,getItemAriaLabel:w=_,hideNextButton:S=!1,hidePrevButton:k=!1,renderItem:x=(e=>(0,g.jsx)(h.Z,(0,n.Z)({},e))),shape:P="circular",showFirstButton:E=!1,showLastButton:O=!1,siblingCount:T=1,size:R="medium",variant:M="text"}=r,F=(0,i.Z)(r,m),{items:D}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,componentName:r="usePagination",count:o=1,defaultPage:a=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:d,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:g=1}=e,m=(0,i.Z)(e,f),[b,y]=(0,p.Z)({controlled:d,default:a,name:r,state:"page"}),_=(e,t)=>{d||y(t),u&&u(e,t)},A=(e,t)=>{var r=t-e+1;return Array.from({length:r},((t,r)=>e+r))},C=A(1,Math.min(t,o)),w=A(Math.max(o-t+1,t+1),o),S=Math.max(Math.min(b-g,o-t-2*g-1),t+2),k=Math.min(Math.max(b+g,t+2*g+2),w.length>0?w[0]-2:o-1),x=[...h?["first"]:[],...c?[]:["previous"],...C,...S>t+2?["start-ellipsis"]:t+1t?[o-t]:[],...w,...l?[]:["next"],...v?["last"]:[]],P=e=>{switch(e){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return o;default:return null}},E=x.map((e=>"number"===typeof e?{onClick:t=>{_(t,e)},type:"page",page:e,selected:e===b,disabled:s,"aria-current":e===b?"true":void 0}:{onClick:t=>{_(t,P(e))},type:e,page:P(e),selected:!1,disabled:s||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?b>=o:b<=1)}));return(0,n.Z)({items:E},m)}((0,n.Z)({},r,{componentName:"Pagination"})),I=(0,n.Z)({},r,{boundaryCount:o,color:u,count:v,defaultPage:A,disabled:C,getItemAriaLabel:w,hideNextButton:S,hidePrevButton:k,renderItem:x,shape:P,showFirstButton:E,showLastButton:O,siblingCount:T,size:R,variant:M}),B=(e=>{var{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,s.Z)(n,d,t)})(I);return(0,g.jsx)(b,(0,n.Z)({"aria-label":"pagination navigation",className:(0,a.Z)(B.root,c),ownerState:I,ref:t},F,{children:(0,g.jsx)(y,{className:B.ul,ownerState:I,children:D.map(((e,t)=>(0,g.jsx)("li",{children:x((0,n.Z)({},e,{color:u,"aria-label":w(e.type,e.page,e.selected),shape:P,size:R,variant:M}))},t)))})}))})),C=A},81797:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiPaginationItem",e)}var f=(0,u.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),h=r(2846),v=r(9912),g=r(18085),m=r(7511),b=r(98958),y=r(44326),_=r(56552),A=(0,y.Z)((0,_.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),C=(0,y.Z)((0,_.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),w=r(24077),S=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],k=(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,g.Z)(r.size))],"text"===r.variant&&t["text".concat((0,g.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,g.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},x=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(f.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),P=(0,w.ZP)(v.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(f.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(f.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selected," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(f.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selected," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(f.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"text"===r.variant&&{["&.".concat(f.selected)]:(0,i.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(f.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(f.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(f.selected)]:(0,i.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,l.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(f.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})})),E=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),O=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiPaginationItem"}),{className:o,color:l="standard",component:u,components:d={},disabled:f=!1,page:v,selected:y=!1,shape:w="circular",size:k="medium",slots:O={},type:T="page",variant:R="text"}=r,M=(0,n.Z)(r,S),F=(0,i.Z)({},r,{color:l,disabled:f,selected:y,shape:w,size:k,type:T,variant:R}),D=(0,h.Z)(),I=(e=>{var{classes:t,color:r,disabled:n,selected:i,size:o,shape:a,type:l,variant:c}=e,u={root:["root","size".concat((0,g.Z)(o)),c,a,"standard"!==r&&"".concat(c).concat((0,g.Z)(r)),n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,s.Z)(u,p,t)})(F),B=("rtl"===D.direction?{previous:O.next||d.next||C,next:O.previous||d.previous||A,last:O.first||d.first||m.Z,first:O.last||d.last||b.Z}:{previous:O.previous||d.previous||A,next:O.next||d.next||C,first:O.first||d.first||m.Z,last:O.last||d.last||b.Z})[T];return"start-ellipsis"===T||"end-ellipsis"===T?(0,_.jsx)(x,{ref:t,ownerState:F,className:(0,a.Z)(I.root,o),children:"\u2026"}):(0,_.jsxs)(P,(0,i.Z)({ref:t,ownerState:F,component:u,disabled:f,className:(0,a.Z)(I.root,o)},M,{children:["page"===T&&v,B?(0,_.jsx)(E,{as:B,ownerState:F,className:I.icon}):null]}))}))},37395:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(24077),u=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2),d=r(67336),p=r(40059),f=r(46051);function h(e){return(0,f.Z)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var v=r(56552),g=["className","component","elevation","square","variant"],m=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((e=>{var t,{theme:r,ownerState:n}=e;return(0,i.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,i.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",u(n.elevation)),", ").concat((0,l.Fq)("#fff",u(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),b=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:p="elevation"}=r,f=(0,n.Z)(r,g),b=(0,i.Z)({},r,{component:l,elevation:c,square:u,variant:p}),y=(e=>{var{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,s.Z)(o,h,i)})(b);return(0,v.jsx)(m,(0,i.Z)({as:l,ownerState:b,className:(0,a.Z)(y.root,o),ref:t},f))}))},8616:function(e,t,r){"use strict";r.d(t,{Z:function(){return qe}});var n=r(90957),i=r(39324),o=r(21914),a=r(43064),s=r(8031),l=r(91313);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){return e instanceof c(e).Element||e instanceof Element}function d(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var f=Math.max,h=Math.min,v=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(g())}function b(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&v(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v(n.height)/e.offsetHeight||1);var a=(u(e)?c(e):window).visualViewport,s=!m()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,p=(n.top+(s&&a?a.offsetTop:0))/o,f=n.width/i,h=n.height/o;return{width:f,height:h,top:p,right:l+f,bottom:p+h,left:l,x:l,y:p}}function y(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return b(A(e)).left+y(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function S(e){var t=w(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function k(e,t,r){void 0===r&&(r=!1);var n=d(t),i=d(t)&&function(e){var t=e.getBoundingClientRect(),r=v(t.width)/e.offsetWidth||1,n=v(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=A(t),a=b(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==_(t)||S(o))&&(s=function(e){return e!==c(e)&&d(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:y(e);var t}(t)),d(t)?((l=b(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=C(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function x(e){var t=b(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function P(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||A(e)}function E(e){return["html","body","#document"].indexOf(_(e))>=0?e.ownerDocument.body:d(e)&&S(e)?e:E(P(e))}function O(e,t){var r;void 0===t&&(t=[]);var n=E(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=c(n),a=i?[o].concat(o.visualViewport||[],S(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(O(P(a)))}function T(e){return["table","td","th"].indexOf(_(e))>=0}function R(e){return d(e)&&"fixed"!==w(e).position?e.offsetParent:null}function M(e){for(var t=c(e),r=R(e);r&&T(r)&&"static"===w(r).position;)r=R(r);return r&&("html"===_(r)||"body"===_(r)&&"static"===w(r).position)?t:r||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===w(e).position)return null;var r=P(e);for(p(r)&&(r=r.host);d(r)&&["html","body"].indexOf(_(r))<0;){var n=w(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var F="top",D="bottom",I="right",B="left",j="auto",N=[F,D,I,B],L="start",Z="end",G="clippingParents",z="viewport",U="popper",W="reference",q=N.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+Z])}),[]),H=[].concat(N,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+Z])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function K(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function ne(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?ee(i):null,a=i?te(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case F:t={x:s,y:r.y-n.height};break;case D:t={x:s,y:r.y+r.height};break;case I:t={x:r.x+r.width,y:l};break;case B:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?re(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Z:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,h=void 0===f?0:f,g=a.y,m=void 0===g?0:g,b="function"===typeof d?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var y=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),C=B,S=F,k=window;if(u){var x=M(r),P="clientHeight",E="clientWidth";if(x===c(r)&&"static"!==w(x=A(r)).position&&"absolute"===s&&(P="scrollHeight",E="scrollWidth"),i===F||(i===B||i===I)&&o===Z)S=D,m-=(p&&x===k&&k.visualViewport?k.visualViewport.height:x[P])-n.height,m*=l?1:-1;if(i===B||(i===F||i===D)&&o===Z)C=I,h-=(p&&x===k&&k.visualViewport?k.visualViewport.width:x[E])-n.width,h*=l?1:-1}var O,T=Object.assign({position:s},u&&ie),R=!0===d?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:v(r*i)/i||0,y:v(n*i)/i||0}}({x:h,y:m},c(r)):{x:h,y:m};return h=R.x,m=R.y,l?Object.assign({},T,((O={})[S]=_?"0":"",O[C]=y?"0":"",O.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O)):Object.assign({},T,((t={})[S]=_?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=H.reduce((function(e,r){return e[r]=function(e,t,r){var n=ee(e),i=[B,F].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[B,I].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},se={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ce={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function de(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&p(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function pe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fe(e,t,r){return t===z?pe(function(e,t){var r=c(e),n=A(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=m();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+C(e),y:l}}(e,r)):u(t)?function(e,t){var r=b(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):pe(function(e){var t,r=A(e),n=y(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=f(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=f(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+C(e),l=-n.scrollTop;return"rtl"===w(i||r).direction&&(s+=f(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(A(e)))}function he(e,t,r,n){var i="clippingParents"===t?function(e){var t=O(P(e)),r=["absolute","fixed"].indexOf(w(e).position)>=0&&d(e)?M(e):e;return u(r)?t.filter((function(e){return u(e)&&de(e,r)&&"body"!==_(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce((function(t,r){var i=fe(e,r,n);return t.top=f(i.top,t.top),t.right=h(i.right,t.right),t.bottom=h(i.bottom,t.bottom),t.left=f(i.left,t.left),t}),fe(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ve(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ge(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function me(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,l=void 0===s?G:s,c=r.rootBoundary,d=void 0===c?z:c,p=r.elementContext,f=void 0===p?U:p,h=r.altBoundary,v=void 0!==h&&h,g=r.padding,m=void 0===g?0:g,y=ve("number"!==typeof m?m:ge(m,N)),_=f===U?W:U,C=e.rects.popper,w=e.elements[v?_:f],S=he(u(w)?w:w.contextElement||A(e.elements.popper),l,d,a),k=b(e.elements.reference),x=ne({reference:k,element:C,strategy:"absolute",placement:i}),P=pe(Object.assign({},C,x)),E=f===U?P:k,O={top:S.top-E.top+y.top,bottom:E.bottom-S.bottom+y.bottom,left:S.left-E.left+y.left,right:E.right-S.right+y.right},T=e.modifiersData.offset;if(f===U&&T){var R=T[i];Object.keys(O).forEach((function(e){var t=[I,D].indexOf(e)>=0?1:-1,r=[F,D].indexOf(e)>=0?"y":"x";O[e]+=R[r]*t}))}return O}function be(e,t,r){return f(e,h(t,r))}var ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,v=void 0===p||p,g=r.tetherOffset,m=void 0===g?0:g,b=me(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=ee(t.placement),_=te(t.placement),A=!_,C=re(y),w="x"===C?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(o){var j,N="y"===C?F:B,Z="y"===C?D:I,G="y"===C?"height":"width",z=S[C],U=z+b[N],W=z-b[Z],q=v?-P[G]/2:0,H=_===L?k[G]:P[G],V=_===L?-P[G]:-k[G],Y=t.elements.arrow,K=v&&Y?x(Y):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=X[N],Q=X[Z],J=be(0,k[G],K[G]),ne=A?k[G]/2-q-J-$-O.mainAxis:H-J-$-O.mainAxis,ie=A?-k[G]/2+q+J+Q+O.mainAxis:V+J+Q+O.mainAxis,oe=t.elements.arrow&&M(t.elements.arrow),ae=oe?"y"===C?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(j=null==T?void 0:T[C])?j:0,le=z+ie-se,ce=be(v?h(U,z+ne-se-ae):U,z,v?f(W,le):W);S[C]=ce,R[C]=ce-z}if(s){var ue,de="x"===C?F:B,pe="x"===C?D:I,fe=S[w],he="y"===w?"height":"width",ve=fe+b[de],ge=fe-b[pe],ye=-1!==[F,B].indexOf(y),_e=null!=(ue=null==T?void 0:T[w])?ue:0,Ae=ye?ve:fe-k[he]-P[he]-_e+O.altAxis,Ce=ye?fe+k[he]+P[he]-_e-O.altAxis:ge,we=v&&ye?function(e,t,r){var n=be(e,t,r);return n>r?r:n}(Ae,fe,Ce):be(v?Ae:ve,fe,v?Ce:ge);S[w]=we,R[w]=we-fe}t.modifiersData[n]=R}},requiresIfExists:["offset"]};var _e={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=ee(r.placement),l=re(s),c=[B,I].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return ve("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ge(e,N))}(i.padding,r),d=x(o),p="y"===l?F:B,f="y"===l?D:I,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],g=M(o),m=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-v/2,y=u[p],_=m-d[c]-u[f],A=m/2-d[c]/2+b,C=be(y,A,_),w=l;r.modifiersData[n]=((t={})[w]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&de(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ae(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ce(e){return[F,I,D,B].some((function(t){return e[t]>=0}))}var we=Q({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",r.update,J)})),s&&l.addEventListener("resize",r.update,J),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",r.update,J)})),s&&l.removeEventListener("resize",r.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,c={placement:ee(t.placement),variation:te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];d(i)&&_(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});d(n)&&_(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},ae,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,g=t.options.placement,m=ee(g),b=l||(m===g||!h?[le(g)]:function(e){if(ee(e)===j)return[];var t=le(e);return[ue(e),t,ue(t)]}(g)),y=[g].concat(b).reduce((function(e,r){return e.concat(ee(r)===j?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?H:l,u=te(n),d=u?s?q:q.filter((function(e){return te(e)===u})):N,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,r){return t[r]=me(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[ee(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)}),[]),_=t.rects.reference,A=t.rects.popper,C=new Map,w=!0,S=y[0],k=0;k=0,T=O?"width":"height",R=me(t,{placement:x,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=O?E?I:B:E?D:F;_[T]>A[T]&&(M=le(M));var Z=le(M),G=[];if(o&&G.push(R[P]<=0),s&&G.push(R[M]<=0,R[Z]<=0),G.every((function(e){return e}))){S=x,w=!1;break}C.set(x,G)}if(w)for(var z=function(e){var t=y.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},U=h?3:1;U>0;U--){if("break"===z(U))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ye,_e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=Ae(a,n),c=Ae(s,i,o),u=Ce(l),d=Ce(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Se=r(43232),ke=r(18686),xe=r(46051);function Pe(e){return(0,xe.Z)("MuiPopper",e)}(0,r(40059).Z)("MuiPopper",["root"]);var Ee=r(78627),Oe=r(56552),Te={disableDefaultClasses:!1},Re=o.createContext(Te);var Me=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Fe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function De(e){return"function"===typeof e?e():e}function Ie(e){return void 0!==e.nodeType}var Be=()=>(0,Se.Z)({root:["root"]},function(e){var{disableDefaultClasses:t}=o.useContext(Re);return r=>t?"":e(r)}(Pe)),je={},Ne=o.forwardRef((function(e,t){var r,{anchorEl:l,children:c,direction:u,disablePortal:d,modifiers:p,open:f,placement:h,popperOptions:v,popperRef:g,slotProps:m={},slots:b={},TransitionProps:y}=e,_=(0,i.Z)(e,Me),A=o.useRef(null),C=(0,a.Z)(A,t),w=o.useRef(null),S=(0,a.Z)(w,g),k=o.useRef(S);(0,s.Z)((()=>{k.current=S}),[S]),o.useImperativeHandle(g,(()=>w.current),[]);var x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,u),[P,E]=o.useState(x),[O,T]=o.useState(De(l));o.useEffect((()=>{w.current&&w.current.forceUpdate()})),o.useEffect((()=>{l&&T(De(l))}),[l]),(0,s.Z)((()=>{if(O&&f){var e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;E(t.placement)}}];null!=p&&(e=e.concat(p)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));var t=we(O,A.current,(0,n.Z)({placement:x},v,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}}),[O,d,p,f,v,x]);var R={placement:P};null!==y&&(R.TransitionProps=y);var M=Be(),F=null!=(r=b.root)?r:"div",D=(0,Ee.y)({elementType:F,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:C},ownerState:e,className:M.root});return(0,Oe.jsx)(F,(0,n.Z)({},D,{children:"function"===typeof c?c(R):c}))})),Le=o.forwardRef((function(e,t){var r,{anchorEl:a,children:s,container:c,direction:u="ltr",disablePortal:d=!1,keepMounted:p=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:g=je,popperRef:m,style:b,transition:y=!1,slotProps:_={},slots:A={}}=e,C=(0,i.Z)(e,Fe),[w,S]=o.useState(!0);if(!p&&!h&&(!y||w))return null;if(c)r=c;else if(a){var k=De(a);r=k&&Ie(k)?(0,l.Z)(k).body:(0,l.Z)(null).body}var x=h||!p||y&&!w?void 0:"none",P=y?{in:h,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Oe.jsx)(ke.h,{disablePortal:d,container:r,children:(0,Oe.jsx)(Ne,(0,n.Z)({anchorEl:a,direction:u,disablePortal:d,modifiers:f,ref:t,open:y?!w:h,placement:v,popperOptions:g,popperRef:m,slotProps:_,slots:A},C,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:x},b),TransitionProps:P,children:s}))})})),Ze=r(57880),Ge=r(24077),ze=r(67336),Ue=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],We=(0,Ge.ZP)(Le,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=o.forwardRef((function(e,t){var r,o=(0,Ze.Z)(),a=(0,ze.Z)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:f,modifiers:h,open:v,placement:g,popperOptions:m,popperRef:b,transition:y,slots:_,slotProps:A}=a,C=(0,i.Z)(a,Ue),w=null!=(r=null==_?void 0:_.root)?r:null==c?void 0:c.Root,S=(0,n.Z)({anchorEl:s,container:d,disablePortal:p,keepMounted:f,modifiers:h,open:v,placement:g,popperOptions:m,popperRef:b,transition:y},C);return(0,Oe.jsx)(We,(0,n.Z)({as:l,direction:null==o?void 0:o.direction,slots:{root:w},slotProps:null!=A?A:u},S,{ref:t}))}))},6409:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(72795),u=r(67336),d=r(44326),p=r(56552),f=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),v=r(24077),g=(0,v.ZP)("span")({position:"relative",display:"flex"}),m=(0,v.ZP)(f)({transform:"scale(1)"}),b=(0,v.ZP)(h)((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var y=function(e){var{checked:t=!1,classes:r={},fontSize:n}=e,o=(0,i.Z)({},e,{checked:t});return(0,p.jsxs)(g,{className:r.root,ownerState:o,children:[(0,p.jsx)(m,{fontSize:n,className:r.background,ownerState:o}),(0,p.jsx)(b,{fontSize:n,className:r.dot,ownerState:o})]})},_=r(18085),A=r(19504),C=r(2918);var w=r(40059),S=r(46051);function k(e){return(0,S.Z)("MuiRadio",e)}var x=(0,w.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),P=["checked","checkedIcon","color","icon","name","onChange","size","className"],E=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["color".concat((0,_.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(x.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled}})}));var O=(0,p.jsx)(y,{checked:!0}),T=(0,p.jsx)(y,{}),R=o.forwardRef((function(e,t){var r,l,c,d,f=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:h,checkedIcon:v=O,color:g="primary",icon:m=T,name:b,onChange:y,size:w="medium",className:S}=f,x=(0,n.Z)(f,P),R=(0,i.Z)({},f,{color:g,size:w}),M=(e=>{var{classes:t,color:r,size:n}=e,o={root:["root","color".concat((0,_.Z)(r)),"medium"!==n&&"size".concat((0,_.Z)(n))]};return(0,i.Z)({},t,(0,s.Z)(o,k,t))})(R),F=o.useContext(C.Z),D=h,I=(0,A.Z)(y,F&&F.onChange),B=b;return F&&("undefined"===typeof D&&(c=F.value,D="object"===typeof(d=f.value)&&null!==d?c===d:String(c)===String(d)),"undefined"===typeof B&&(B=F.name)),(0,p.jsx)(E,(0,i.Z)({type:"radio",icon:o.cloneElement(m,{fontSize:null!=(r=T.props.fontSize)?r:w}),checkedIcon:o.cloneElement(v,{fontSize:null!=(l=O.props.fontSize)?l:w}),ownerState:R,classes:M,name:B,checked:D,onChange:I,ref:t,className:(0,a.Z)(M.root,S)},x))}))},62381:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var f=r(73028),h=r(31877),v=r(56552),g=["className","row"],m=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{var{ownerState:t}=e;return(0,n.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),b=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:o,row:l=!1}=r,u=(0,i.Z)(r,g),d=(0,f.Z)(),b=(0,h.Z)({props:r,muiFormControl:d,states:["error"]}),y=(0,n.Z)({},r,{row:l,error:b.error}),_=(e=>{var{classes:t,row:r,error:n}=e,i={root:["root",r&&"row",n&&"error"]};return(0,s.Z)(i,p,t)})(y);return(0,v.jsx)(m,(0,n.Z)({className:(0,a.Z)(_.root,o),ownerState:y,ref:t},u))})),y=r(7023),_=r(31509),A=r(2918),C=r(25964),w=["actions","children","defaultValue","name","onChange","value"],S=o.forwardRef((function(e,t){var{actions:r,children:a,defaultValue:s,name:l,onChange:c,value:u}=e,d=(0,i.Z)(e,w),p=o.useRef(null),[f,h]=(0,_.Z)({controlled:u,default:s,name:"RadioGroup"});o.useImperativeHandle(r,(()=>({focus:()=>{var e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);var g=(0,y.Z)(t,p),m=(0,C.Z)(l),S=o.useMemo((()=>({name:m,onChange(e){h(e.target.value),c&&c(e,e.target.value)},value:f})),[m,c,h,f]);return(0,v.jsx)(A.Z.Provider,{value:S,children:(0,v.jsx)(b,(0,n.Z)({role:"radiogroup",ref:g},d,{children:a}))})}))},2918:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},96806:function(e,t,r){"use strict";r.d(t,{Z:function(){return J}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(61082),l=r(47208),c=(r(45211),r(43232)),u=r(3363),d=r(77036),p=r(18085),f=r(67062),h=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiNativeSelect",e)}var m=(0,h.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b=r(24077),y=r(56552),_=["className","disabled","error","IconComponent","inputRef","variant"],A=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(m.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},C=(0,b.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:b.FO,overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(m.multiple)]:t.multiple}]}})(A),w=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(m.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},S=(0,b.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,p.Z)(r.variant))],r.open&&t.iconOpen]}})(w),k=o.forwardRef((function(e,t){var{className:r,disabled:s,error:l,IconComponent:u,inputRef:d,variant:f="standard"}=e,h=(0,i.Z)(e,_),v=(0,n.Z)({},e,{disabled:s,variant:f,error:l}),m=(e=>{var{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon","icon".concat((0,p.Z)(r)),o&&"iconOpen",n&&"disabled"]};return(0,c.Z)(s,g,t)})(v);return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(C,(0,n.Z)({ownerState:v,className:(0,a.Z)(m.select,r),disabled:s,ref:d||t},h)),e.multiple?null:(0,y.jsx)(S,{as:u,ownerState:v,className:m.icon})]})})),x=r(19804),P=r(7023),E=r(31509);function O(e){return(0,v.Z)("MuiSelect",e)}var T,R=(0,h.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),M=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],F=(0,b.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["&.".concat(R.select)]:t.select},{["&.".concat(R.select)]:t[r.variant]},{["&.".concat(R.error)]:t.error},{["&.".concat(R.multiple)]:t.multiple}]}})(A,{["&.".concat(R.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),D=(0,b.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,p.Z)(r.variant))],r.open&&t.iconOpen]}})(w),I=(0,b.ZP)("input",{shouldForwardProp:e=>(0,b.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function j(e){return null==e||"string"===typeof e&&!e.trim()}var N=o.forwardRef((function(e,t){var r,{"aria-describedby":s,"aria-label":h,autoFocus:v,autoWidth:g,children:m,className:b,defaultOpen:_,defaultValue:A,disabled:C,displayEmpty:w,error:S=!1,IconComponent:k,inputRef:R,labelId:N,MenuProps:L={},multiple:Z,name:G,onBlur:z,onChange:U,onClose:W,onFocus:q,onOpen:H,open:V,readOnly:Y,renderValue:K,SelectDisplayProps:X={},tabIndex:$,value:Q,variant:J="standard"}=e,ee=(0,i.Z)(e,M),[te,re]=(0,E.Z)({controlled:Q,default:A,name:"Select"}),[ne,ie]=(0,E.Z)({controlled:V,default:_,name:"Select"}),oe=o.useRef(null),ae=o.useRef(null),[se,le]=o.useState(null),{current:ce}=o.useRef(null!=V),[ue,de]=o.useState(),pe=(0,P.Z)(t,R),fe=o.useCallback((e=>{ae.current=e,e&&le(e)}),[]),he=null==se?void 0:se.parentNode;o.useImperativeHandle(pe,(()=>({focus:()=>{ae.current.focus()},node:oe.current,value:te})),[te]),o.useEffect((()=>{_&&ne&&se&&!ce&&(de(g?null:he.clientWidth),ae.current.focus())}),[se,g]),o.useEffect((()=>{v&&ae.current.focus()}),[v]),o.useEffect((()=>{if(N){var e=(0,d.Z)(ae.current).getElementById(N);if(e){var t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}}),[N]);var ve,ge,me=(e,t)=>{e?H&&H(t):W&&W(t),ce||(de(g?null:he.clientWidth),ie(e))},be=o.Children.toArray(m),ye=e=>t=>{var r;if(t.currentTarget.hasAttribute("tabindex")){if(Z){r=Array.isArray(te)?te.slice():[];var n=te.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==r&&(re(r),U)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:G}}),U(o,e)}Z||me(!1,t)}},_e=null!==se&≠delete ee["aria-invalid"];var Ae=[],Ce=!1;((0,x.vd)({value:te})||w)&&(K?ve=K(te):Ce=!0);var we=be.map((e=>{if(!o.isValidElement(e))return null;var t;if(Z){if(!Array.isArray(te))throw new Error((0,l.Z)(2));(t=te.some((t=>B(t,e.props.value))))&&Ce&&Ae.push(e.props.children)}else(t=B(te,e.props.value))&&Ce&&(ge=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ce&&(ve=Z?0===Ae.length?null:Ae.reduce(((e,t,r)=>(e.push(t),r{var{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon","icon".concat((0,p.Z)(r)),o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,c.Z)(s,O,t)})(Pe),Oe=(0,n.Z)({},L.PaperProps,null==(r=L.slotProps)?void 0:r.paper),Te=(0,u.Z)();return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(F,(0,n.Z)({ref:fe,tabIndex:Se,role:"combobox","aria-controls":Te,"aria-disabled":C?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":h,"aria-labelledby":[N,xe].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),me(!0,e))}},onMouseDown:C||Y?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),me(!0,e))},onBlur:e=>{!_e&&z&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:G}}),z(e))},onFocus:q},X,{ownerState:Pe,className:(0,a.Z)(X.className,Ee.select,b),id:xe,children:j(ve)?T||(T=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):ve})),(0,y.jsx)(I,(0,n.Z)({"aria-invalid":S,value:Array.isArray(te)?te.join(","):te,name:G,ref:oe,"aria-hidden":!0,onChange:e=>{var t=be.find((t=>t.props.value===e.target.value));void 0!==t&&(re(t.props.value),U&&U(e,t))},tabIndex:-1,disabled:C,className:Ee.nativeInput,autoFocus:v,ownerState:Pe},ee)),(0,y.jsx)(D,{as:k,className:Ee.icon,ownerState:Pe}),(0,y.jsx)(f.Z,(0,n.Z)({id:"menu-".concat(G||""),anchorEl:he,open:_e,onClose:e=>{me(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},L,{MenuListProps:(0,n.Z)({"aria-labelledby":N,role:"listbox","aria-multiselectable":Z?"true":void 0,disableListWrap:!0,id:Te},L.MenuListProps),slotProps:(0,n.Z)({},L.slotProps,{paper:(0,n.Z)({},Oe,{style:(0,n.Z)({minWidth:ke},null!=Oe?Oe.style:null)})}),children:we}))]})})),L=r(31877),Z=r(73028),G=r(57266),z=r(17631),U=r(52294),W=r(47628),q=r(67336),H=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],V=["root"],Y={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,b.FO)(e)&&"variant"!==e,slot:"Root"},K=(0,b.ZP)(z.Z,Y)(""),X=(0,b.ZP)(W.Z,Y)(""),$=(0,b.ZP)(U.Z,Y)(""),Q=o.forwardRef((function(e,t){var r=(0,q.Z)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:c,classes:u={},className:d,defaultOpen:p=!1,displayEmpty:f=!1,IconComponent:h=G.Z,id:v,input:g,inputProps:m,label:b,labelId:_,MenuProps:A,multiple:C=!1,native:w=!1,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:T,variant:R="outlined"}=r,M=(0,i.Z)(r,H),F=w?k:N,D=(0,Z.Z)(),I=(0,L.Z)({props:r,muiFormControl:D,states:["variant","error"]}),B=I.variant||R,j=(0,n.Z)({},r,{variant:B,classes:u}),z=(e=>{var{classes:t}=e;return t})(j),U=(0,i.Z)(z,V),W=g||{standard:(0,y.jsx)(K,{ownerState:j}),outlined:(0,y.jsx)(X,{label:b,ownerState:j}),filled:(0,y.jsx)($,{ownerState:j})}[B],Y=(0,P.Z)(t,W.ref);return(0,y.jsx)(o.Fragment,{children:o.cloneElement(W,(0,n.Z)({inputComponent:F,inputProps:(0,n.Z)({children:c,error:I.error,IconComponent:h,variant:B,type:void 0,multiple:C},w?{id:v}:{autoWidth:l,defaultOpen:p,displayEmpty:f,labelId:_,MenuProps:A,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:(0,n.Z)({id:v},T)},m,{classes:m?(0,s.Z)(U,m.classes):U},g?g.props.inputProps:{})},C&&w&&"outlined"===B?{notched:!0}:{},{ref:Y,className:(0,a.Z)(W.props.className,d,z.root)},!g&&{variant:B},M))})}));Q.muiName="Select";var J=Q},76623:function(e,t,r){"use strict";var n=r(90957),i=r(39324),o=r(21914),a=r(5248),s=r(38822),l=r(7023),c=r(2846),u=r(85478),d=r(67171),p=r(56552),f=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e,t,r){var n,i=function(e,t,r){var n,i=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=(0,d.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{var s=a.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,c=0;if(n&&"none"!==n&&"string"===typeof n){var u=n.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return"left"===e?"translateX(".concat(o?o.right+l-i.left:a.innerWidth+l-i.left,"px)"):"right"===e?"translateX(-".concat(o?i.right-o.left-l:i.left+i.width-l,"px)"):"up"===e?"translateY(".concat(o?o.bottom+c-i.top:a.innerHeight+c-i.top,"px)"):"translateY(-".concat(o?i.top-o.top+i.height-c:i.top+i.height-c,"px)")}(e,t,"function"===typeof(n=r)?n():n);i&&(t.style.webkitTransform=i,t.style.transform=i)}var v=o.forwardRef((function(e,t){var r=(0,c.Z)(),v={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},g={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:m,appear:b=!0,children:y,container:_,direction:A="down",easing:C=v,in:w,onEnter:S,onEntered:k,onEntering:x,onExit:P,onExited:E,onExiting:O,style:T,timeout:R=g,TransitionComponent:M=a.ZP}=e,F=(0,i.Z)(e,f),D=o.useRef(null),I=(0,l.Z)(y.ref,D,t),B=e=>t=>{e&&(void 0===t?e(D.current):e(D.current,t))},j=B(((e,t)=>{h(A,e,_),(0,u.n)(e),S&&S(e,t)})),N=B(((e,t)=>{var i=(0,u.C)({timeout:R,style:T,easing:C},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,n.Z)({},i)),e.style.transition=r.transitions.create("transform",(0,n.Z)({},i)),e.style.webkitTransform="none",e.style.transform="none",x&&x(e,t)})),L=B(k),Z=B(O),G=B((e=>{var t=(0,u.C)({timeout:R,style:T,easing:C},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),h(A,e,_),P&&P(e)})),z=B((e=>{e.style.webkitTransition="",e.style.transition="",E&&E(e)})),U=o.useCallback((()=>{D.current&&h(A,D.current,_)}),[A,_]);return o.useEffect((()=>{if(!w&&"down"!==A&&"right"!==A){var e=(0,s.Z)((()=>{D.current&&h(A,D.current,_)})),t=(0,d.Z)(D.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[A,w,_]),o.useEffect((()=>{w||U()}),[w,U]),(0,p.jsx)(M,(0,n.Z)({nodeRef:D,onEnter:j,onEntered:L,onEntering:N,onExit:G,onExited:z,onExiting:Z,addEndListener:e=>{m&&m(D.current,e)},appear:b,in:w,timeout:R},F,{children:(e,t)=>o.cloneElement(y,(0,n.Z)({ref:I,style:(0,n.Z)({visibility:"exited"!==e||w?void 0:"hidden"},T,y.props.style)},t))}))}));t.Z=v},66269:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(39324),i=r(90957),o=r(21914),a=r(43232),s=r(78627),l=r(43064),c=r(22713),u=r(91313),d=r(56552);function p(e){return e.substring(2).toLowerCase()}function f(e){var{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,s=o.useRef(!1),f=o.useRef(null),h=o.useRef(!1),v=o.useRef(!1);o.useEffect((()=>(setTimeout((()=>{h.current=!0}),0),()=>{h.current=!1})),[]);var g=(0,l.Z)(t.ref,f),m=(0,c.Z)((e=>{var t=v.current;v.current=!1;var n=(0,u.Z)(f.current);!h.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||f.current.contains(e.target))||!r&&t||i(e))})),b=e=>r=>{v.current=!0;var n=t.props[e];n&&n(r)},y={ref:g};return!1!==a&&(y[a]=b(a)),o.useEffect((()=>{if(!1!==a){var e=p(a),t=(0,u.Z)(f.current),r=()=>{s.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,m),t.removeEventListener("touchmove",r)}}}),[m,a]),!1!==n&&(y[n]=b(n)),o.useEffect((()=>{if(!1!==n){var e=p(n),t=(0,u.Z)(f.current);return t.addEventListener(e,m),()=>{t.removeEventListener(e,m)}}}),[m,n]),(0,d.jsx)(o.Fragment,{children:o.cloneElement(t,y)})}var h=r(1332);var v=r(24077),g=r(2846),m=r(67336),b=r(18085),y=r(26794),_=r(51118),A=r(5216),C=r(37395),w=r(40059),S=r(46051);function k(e){return(0,S.Z)("MuiSnackbarContent",e)}(0,w.Z)("MuiSnackbarContent",["root","message","action"]);var x=["action","className","message","role"],P=(0,v.ZP)(C.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{var{theme:t}=e,r="light"===t.palette.mode?.8:.98,n=(0,A._4)(t.palette.background.default,r);return(0,i.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),E=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),O=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=o.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:c="alert"}=r,u=(0,n.Z)(r,x),p=r,f=(e=>{var{classes:t}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},k,t)})(p);return(0,d.jsxs)(P,(0,i.Z)({role:c,square:!0,elevation:6,className:(0,_.Z)(f.root,s),ownerState:p,ref:t},u,{children:[(0,d.jsx)(E,{className:f.message,ownerState:p,children:l}),o?(0,d.jsx)(O,{className:f.action,ownerState:p,children:o}):null]}))}));function R(e){return(0,S.Z)("MuiSnackbar",e)}(0,w.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var M=["onEnter","onExited"],F=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=(0,v.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,b.Z)(r.anchorOrigin.vertical)).concat((0,b.Z)(r.anchorOrigin.horizontal))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),I=o.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiSnackbar"}),l=(0,g.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:p,anchorOrigin:{vertical:v,horizontal:_}={vertical:"bottom",horizontal:"left"},autoHideDuration:A=null,children:C,className:w,ClickAwayListenerProps:S,ContentProps:k,disableWindowBlurListener:x=!1,message:P,open:E,TransitionComponent:O=y.Z,transitionDuration:I=u,TransitionProps:{onEnter:B,onExited:j}={}}=r,N=(0,n.Z)(r.TransitionProps,M),L=(0,n.Z)(r,F),Z=(0,i.Z)({},r,{anchorOrigin:{vertical:v,horizontal:_},autoHideDuration:A,disableWindowBlurListener:x,TransitionComponent:O,transitionDuration:I}),G=(e=>{var{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,b.Z)(r.vertical)).concat((0,b.Z)(r.horizontal))]};return(0,a.Z)(n,R,t)})(Z),{getRootProps:z,onClickAway:U}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:s}=e,l=o.useRef();o.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[a,n]);var u=(0,c.Z)(((e,t)=>{null==n||n(e,t)})),d=(0,c.Z)((e=>{n&&null!=e&&(clearTimeout(l.current),l.current=setTimeout((()=>{u(null,"timeout")}),e))}));o.useEffect((()=>(a&&d(t),()=>{clearTimeout(l.current)})),[a,t,d]);var p=()=>{clearTimeout(l.current)},f=o.useCallback((()=>{null!=t&&d(null!=s?s:.5*t)}),[t,s,d]),v=e=>t=>{var r=e.onFocus;null==r||r(t),p()},g=e=>t=>{var r=e.onMouseEnter;null==r||r(t),p()},m=e=>t=>{var r=e.onMouseLeave;null==r||r(t),f()};return o.useEffect((()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",p)}}),[r,f,a]),{getRootProps:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.Z)({},(0,h._)(e),(0,h._)(r));return(0,i.Z)({role:"presentation"},r,n,{onBlur:(t=n,e=>{var r=t.onBlur;null==r||r(e),f()}),onFocus:v(n),onMouseEnter:g(n),onMouseLeave:m(n)})},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,i.Z)({},Z)),[W,q]=o.useState(!0),H=(0,s.y)({elementType:D,getSlotProps:z,externalForwardedProps:L,ownerState:Z,additionalProps:{ref:t},className:[G.root,w]});return!E&&W?null:(0,d.jsx)(f,(0,i.Z)({onClickAway:U},S,{children:(0,d.jsx)(D,(0,i.Z)({},H,{children:(0,d.jsx)(O,(0,i.Z)({appear:!0,in:E,timeout:I,direction:"top"===v?"down":"up",onEnter:(e,t)=>{q(!1),B&&B(e,t)},onExited:e=>{q(!0),j&&j(e)}},N,{children:C||(0,d.jsx)(T,(0,i.Z)({message:P,action:p},k))}))}))}))})),B=I},51869:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(61082),l=r(43232),c=r(46051),u=r(9878),d=r(83849),p=r(3927),f=r(6319),h=r(28240),v=r(74935),g=r(56552),m=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,f.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:b})}function A(e,t){var r=o.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,i)=>(e.push(n),i{var{ownerState:t,theme:r}=e,n=(0,i.Z)({display:"flex",flexDirection:"column"},(0,h.k9)({theme:r},(0,h.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){var o=(0,v.hB)(r),a=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),l=(0,h.P$)({values:t.direction,base:a}),c=(0,h.P$)({values:t.spacing,base:a});"object"===typeof l&&Object.keys(l).forEach(((e,t,r)=>{if(!l[e]){var n=t>0?l[r[t-1]]:"column";l[e]=n}}));n=(0,s.Z)(n,(0,h.k9)({theme:r},c,((e,r)=>{return t.useFlexGap?{gap:(0,v.NA)(o,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((n=r?l[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]))]:(0,v.NA)(o,e)}};var n})))}return n=(0,h.dt)(r.breakpoints,n)};var w=r(24077),S=r(67336),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=y,useThemeProps:r=_,componentName:s="MuiStack"}=e,u=t(C),d=o.forwardRef((function(e,t){var o=r(e),d=(0,p.Z)(o),{component:f="div",direction:h="column",spacing:v=0,divider:b,children:y,className:_,useFlexGap:C=!1}=d,w=(0,n.Z)(d,m),S={direction:h,spacing:v,useFlexGap:C},k=(0,l.Z)({root:["root"]},(e=>(0,c.Z)(s,e)),{});return(0,g.jsx)(u,(0,i.Z)({as:f,ownerState:S,ref:t,className:(0,a.Z)(k.root,_)},w,{children:b?A(y,b):y}))}));return d}({createStyledComponent:(0,w.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,S.Z)({props:e,name:"MuiStack"})}),x=k},58789:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(18085),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(56552),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})((e=>{var t,r,n,i,o,a,s,l,c,u,d,p,f,{theme:h,ownerState:v}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=h.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=h.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(i=h.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(a=h.typography)||null==(s=a.pxToRem)?void 0:s.call(a,24))||"1.5rem",large:(null==(l=h.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(u=null==(d=(h.vars||h).palette)||null==(d=d[v.color])?void 0:d.main)?u:{action:null==(p=(h.vars||h).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(h.vars||h).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[v.color]}})),m=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:m="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:_=!1,titleAccess:A,viewBox:C="0 0 24 24"}=r,w=(0,i.Z)(r,v),S=o.isValidElement(u)&&"svg"===u.type,k=(0,n.Z)({},r,{color:p,component:m,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:C,hasSvgAsChild:S}),x={};_||(x.viewBox=C);var P=(e=>{var{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(i,f,n)})(k);return(0,h.jsxs)(g,(0,n.Z)({as:m,className:(0,a.Z)(P.root,d),focusable:"false",color:y,"aria-hidden":!A||void 0,role:A?"img":void 0,ref:t},x,w,S&&u.props,{ownerState:k,children:[S?u.props.children:u,A?(0,h.jsx)("title",{children:A}):null]}))}));m.muiName="SvgIcon";var b=m},74872:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(18085),u=r(72795),d=r(67336),p=r(24077),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("MuiSwitch",e)}var g=(0,f.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),m=r(56552),b=["className","color","edge","size","sx"],y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,c.Z)(r.edge))],t["size".concat((0,c.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(g.thumb)]:{width:16,height:16},["& .".concat(g.switchBase)]:{padding:4,["&.".concat(g.checked)]:{transform:"translateX(16px)"}}})})),_=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.switchBase,{["& .".concat(g.input)]:t.input},"default"!==r.color&&t["color".concat((0,c.Z)(r.color))]]}})((e=>{var{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(g.checked)]:{transform:"translateX(20px)"},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(g.checked," + .").concat(g.track)]:{opacity:.5},["&.".concat(g.disabled," + .").concat(g.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(g.input)]:{left:"-100%",width:"300%"}}}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(g.checked)]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,l.$n)(t.palette[r.color].main,.62):(0,l._j)(t.palette[r.color].main,.55))}},["&.".concat(g.checked," + .").concat(g.track)]:{backgroundColor:(t.vars||t).palette[r.color].main}})})),A=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{var{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),C=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{var{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),w=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:u=!1,size:p="medium",sx:f}=r,h=(0,n.Z)(r,b),g=(0,i.Z)({},r,{color:l,edge:u,size:p}),w=(e=>{var{classes:t,edge:r,size:n,color:o,checked:a,disabled:l}=e,u={root:["root",r&&"edge".concat((0,c.Z)(r)),"size".concat((0,c.Z)(n))],switchBase:["switchBase","color".concat((0,c.Z)(o)),a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.Z)(u,v,t);return(0,i.Z)({},t,d)})(g),S=(0,m.jsx)(C,{className:w.thumb,ownerState:g});return(0,m.jsxs)(y,{className:(0,a.Z)(w.root,o),sx:f,ownerState:g,children:[(0,m.jsx)(_,(0,i.Z)({type:"checkbox",icon:S,checkedIcon:S,ref:t,ownerState:g},h,{classes:(0,i.Z)({},w,{root:w.switchBase})})),(0,m.jsx)(A,{className:w.track,ownerState:g})]})}))},10205:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(87080),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiTable",e)}(0,d.Z)("MuiTable",["root","stickyHeader"]);var h=r(56552),v=["className","component","padding","size","stickyHeader"],g=(0,u.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,i.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),m="table",b=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTable"}),{className:u,component:d=m,padding:p="normal",size:b="medium",stickyHeader:y=!1}=r,_=(0,n.Z)(r,v),A=(0,i.Z)({},r,{component:d,padding:p,size:b,stickyHeader:y}),C=(e=>{var{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.Z)(n,f,t)})(A),w=o.useMemo((()=>({padding:p,size:b,stickyHeader:y})),[p,b,y]);return(0,h.jsx)(l.Z.Provider,{value:w,children:(0,h.jsx)(g,(0,i.Z)({as:d,role:d===m?null:"table",ref:t,className:(0,a.Z)(C.root,u),ownerState:A},_))})}))},87080:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},99338:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},68036:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(99338),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiTableBody",e)}(0,d.Z)("MuiTableBody",["root"]);var h=r(56552),v=["className","component"],g=(0,u.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),m={variant:"body"},b="tbody",y=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTableBody"}),{className:o,component:u=b}=r,d=(0,i.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(p);return(0,h.jsx)(l.Z.Provider,{value:m,children:(0,h.jsx)(g,(0,n.Z)({className:(0,a.Z)(y.root,o),as:u,ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},93564:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(18085),u=r(87080),d=r(99338),p=r(67336),f=r(24077),h=r(95212),v=r(56552),g=["align","className","component","padding","scope","size","sortDirection","variant"],m=(0,f.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,c.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,c.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,c.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,l.$n)((0,l.Fq)(t.palette.divider,1),.88):(0,l._j)((0,l.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(h.Z.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),b=o.forwardRef((function(e,t){var r,l=(0,p.Z)({props:e,name:"MuiTableCell"}),{align:f="inherit",className:b,component:y,padding:_,scope:A,size:C,sortDirection:w,variant:S}=l,k=(0,n.Z)(l,g),x=o.useContext(u.Z),P=o.useContext(d.Z),E=P&&"head"===P.variant,O=A;"td"===(r=y||(E?"th":"td"))?O=void 0:!O&&E&&(O="col");var T=S||P&&P.variant,R=(0,i.Z)({},l,{align:f,component:r,padding:_||(x&&x.padding?x.padding:"normal"),size:C||(x&&x.size?x.size:"medium"),sortDirection:w,stickyHeader:"head"===T&&x&&x.stickyHeader,variant:T}),M=(e=>{var{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,l={root:["root",r,a&&"stickyHeader","inherit"!==n&&"align".concat((0,c.Z)(n)),"normal"!==i&&"padding".concat((0,c.Z)(i)),"size".concat((0,c.Z)(o))]};return(0,s.Z)(l,h.U,t)})(R),F=null;return w&&(F="asc"===w?"ascending":"descending"),(0,v.jsx)(m,(0,i.Z)({as:r,ref:t,className:(0,a.Z)(M.root,b),"aria-sort":F,scope:O,ownerState:R},k))}));t.Z=b},95212:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiTableCell",e)}var a=(0,n.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.Z=a},85709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiTableContainer",e)}(0,u.Z)("MuiTableContainer",["root"]);var f=r(56552),h=["className","component"],v=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),g=o.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiTableContainer"}),{className:o,component:c="div"}=r,u=(0,i.Z)(r,h),d=(0,n.Z)({},r,{component:c}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,f.jsx)(v,(0,n.Z)({ref:t,as:c,className:(0,a.Z)(g.root,o),ownerState:d},u))}))},66454:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(99338),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function f(e){return(0,p.Z)("MuiTableHead",e)}(0,d.Z)("MuiTableHead",["root"]);var h=r(56552),v=["className","component"],g=(0,u.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),m={variant:"head"},b="thead",y=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTableHead"}),{className:o,component:u=b}=r,d=(0,i.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(p);return(0,h.jsx)(l.Z.Provider,{value:m,children:(0,h.jsx)(g,(0,n.Z)({as:u,className:(0,a.Z)(y.root,o),ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},89655:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(5216),c=r(99338),u=r(67336),d=r(24077),p=r(40059),f=r(46051);function h(e){return(0,f.Z)("MuiTableRow",e)}var v=(0,p.Z)("MuiTableRow",["root","selected","hover","head","footer"]),g=r(56552),m=["className","component","hover","selected"],b=(0,d.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{var{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),y="tr",_=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTableRow"}),{className:l,component:d=y,hover:p=!1,selected:f=!1}=r,v=(0,i.Z)(r,m),_=o.useContext(c.Z),A=(0,n.Z)({},r,{component:d,hover:p,selected:f,head:_&&"head"===_.variant,footer:_&&"footer"===_.variant}),C=(e=>{var{classes:t,selected:r,hover:n,head:i,footer:o}=e,a={root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]};return(0,s.Z)(a,h,t)})(A);return(0,g.jsx)(b,(0,n.Z)({as:d,ref:t,className:(0,a.Z)(C.root,l),role:d===y?null:"row",ownerState:A},v))}))},28312:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(43232),l=r(3363),c=r(24077),u=r(67336),d=r(17631),p=r(52294),f=r(47628),h=r(23482),v=r(27460),g=r(74149),m=r(96806),b=r(40059),y=r(46051);function _(e){return(0,y.Z)("MuiTextField",e)}(0,b.Z)("MuiTextField",["root"]);var A=r(56552),C=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w={standard:d.Z,filled:p.Z,outlined:f.Z},S=(0,c.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:c=!1,children:d,className:p,color:f="primary",defaultValue:v,disabled:b=!1,error:y=!1,FormHelperTextProps:k,fullWidth:x=!1,helperText:P,id:E,InputLabelProps:O,inputProps:T,InputProps:R,inputRef:M,label:F,maxRows:D,minRows:I,multiline:B=!1,name:j,onBlur:N,onChange:L,onFocus:Z,placeholder:G,required:z=!1,rows:U,select:W=!1,SelectProps:q,type:H,value:V,variant:Y="outlined"}=r,K=(0,i.Z)(r,C),X=(0,n.Z)({},r,{autoFocus:c,color:f,disabled:b,error:y,fullWidth:x,multiline:B,required:z,select:W,variant:Y}),$=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},_,t)})(X);var Q={};"outlined"===Y&&(O&&"undefined"!==typeof O.shrink&&(Q.notched=O.shrink),Q.label=F),W&&(q&&q.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var J=(0,l.Z)(E),ee=P&&J?"".concat(J,"-helper-text"):void 0,te=F&&J?"".concat(J,"-label"):void 0,re=w[Y],ne=(0,A.jsx)(re,(0,n.Z)({"aria-describedby":ee,autoComplete:o,autoFocus:c,defaultValue:v,fullWidth:x,multiline:B,name:j,rows:U,maxRows:D,minRows:I,type:H,value:V,id:J,inputRef:M,onBlur:N,onChange:L,onFocus:Z,placeholder:G,inputProps:T},Q,R));return(0,A.jsxs)(S,(0,n.Z)({className:(0,a.Z)($.root,p),disabled:b,error:y,fullWidth:x,ref:t,required:z,color:f,variant:Y,ownerState:X},K,{children:[null!=F&&""!==F&&(0,A.jsx)(h.Z,(0,n.Z)({htmlFor:J,id:te},O,{children:F})),W?(0,A.jsx)(m.Z,(0,n.Z)({"aria-describedby":ee,id:J,labelId:te,value:V,input:ne},q,{children:d})):ne,P&&(0,A.jsx)(g.Z,(0,n.Z)({id:ee},k,{children:P}))]}))}))},18013:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiToolbar",e)}(0,u.Z)("MuiToolbar",["root","gutters","regular","dense"]);var f=r(56552),h=["className","component","disableGutters","variant"],v=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{var{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),g=o.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiToolbar"}),{className:o,component:c="div",disableGutters:u=!1,variant:d="regular"}=r,g=(0,n.Z)(r,h),m=(0,i.Z)({},r,{component:c,disableGutters:u,variant:d}),b=(e=>{var{classes:t,disableGutters:r,variant:n}=e,i={root:["root",!r&&"gutters",n]};return(0,s.Z)(i,p,t)})(m);return(0,f.jsx)(v,(0,i.Z)({as:c,className:(0,a.Z)(b.root,o),ref:t,ownerState:m},g))}))},9730:function(e,t,r){"use strict";var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(2399),c=r(5216),u=r(24077),d=r(2846),p=r(67336),f=r(18085),h=r(26794),v=r(8616),g=r(85715),m=r(7023),b=r(25964),y=r(14175),_=r(31509),A=r(82682),C=r(56552),w=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var S=(0,u.ZP)(v.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((e=>{var{theme:t,ownerState:r,open:n}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(A.Z.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(A.Z.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(A.Z.arrow)]:(0,i.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(A.Z.arrow)]:(0,i.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),k=(0,u.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,f.Z)(r.placement.split("-")[0]))]]}})((e=>{var t,{theme:r,ownerState:n}=e;return(0,i.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,c.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((t=16/14,Math.round(1e5*t)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},{[".".concat(A.Z.popper,'[data-popper-placement*="left"] &')]:(0,i.Z)({transformOrigin:"right center"},n.isRtl?(0,i.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,i.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(A.Z.popper,'[data-popper-placement*="right"] &')]:(0,i.Z)({transformOrigin:"left center"},n.isRtl?(0,i.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,i.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(A.Z.popper,'[data-popper-placement*="top"] &')]:(0,i.Z)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(A.Z.popper,'[data-popper-placement*="bottom"] &')]:(0,i.Z)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})})})),x=(0,u.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{var{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,c.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),P=!1,E=null,O={x:0,y:0};function T(e,t){return r=>{t&&t(r),e(r)}}var R=o.forwardRef((function(e,t){var r,c,u,R,M,F,D,I,B,j,N,L,Z,G,z,U,W,q,H,V=(0,p.Z)({props:e,name:"MuiTooltip"}),{arrow:Y=!1,children:K,components:X={},componentsProps:$={},describeChild:Q=!1,disableFocusListener:J=!1,disableHoverListener:ee=!1,disableInteractive:te=!1,disableTouchListener:re=!1,enterDelay:ne=100,enterNextDelay:ie=0,enterTouchDelay:oe=700,followCursor:ae=!1,id:se,leaveDelay:le=0,leaveTouchDelay:ce=1500,onClose:ue,onOpen:de,open:pe,placement:fe="bottom",PopperComponent:he,PopperProps:ve={},slotProps:ge={},slots:me={},title:be,TransitionComponent:ye=h.Z,TransitionProps:_e}=V,Ae=(0,n.Z)(V,w),Ce=o.isValidElement(K)?K:(0,C.jsx)("span",{children:K}),we=(0,d.Z)(),Se="rtl"===we.direction,[ke,xe]=o.useState(),[Pe,Ee]=o.useState(null),Oe=o.useRef(!1),Te=te||ae,Re=o.useRef(),Me=o.useRef(),Fe=o.useRef(),De=o.useRef(),[Ie,Be]=(0,_.Z)({controlled:pe,default:!1,name:"Tooltip",state:"open"}),je=Ie,Ne=(0,b.Z)(se),Le=o.useRef(),Ze=o.useCallback((()=>{void 0!==Le.current&&(document.body.style.WebkitUserSelect=Le.current,Le.current=void 0),clearTimeout(De.current)}),[]);o.useEffect((()=>()=>{clearTimeout(Re.current),clearTimeout(Me.current),clearTimeout(Fe.current),Ze()}),[Ze]);var Ge=e=>{clearTimeout(E),P=!0,Be(!0),de&&!je&&de(e)},ze=(0,g.Z)((e=>{clearTimeout(E),E=setTimeout((()=>{P=!1}),800+le),Be(!1),ue&&je&&ue(e),clearTimeout(Re.current),Re.current=setTimeout((()=>{Oe.current=!1}),we.transitions.duration.shortest)})),Ue=e=>{Oe.current&&"touchstart"!==e.type||(ke&&ke.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(Fe.current),ne||P&&ie?Me.current=setTimeout((()=>{Ge(e)}),P?ie:ne):Ge(e))},We=e=>{clearTimeout(Me.current),clearTimeout(Fe.current),Fe.current=setTimeout((()=>{ze(e)}),le)},{isFocusVisibleRef:qe,onBlur:He,onFocus:Ve,ref:Ye}=(0,y.Z)(),[,Ke]=o.useState(!1),Xe=e=>{He(e),!1===qe.current&&(Ke(!1),We(e))},$e=e=>{ke||xe(e.currentTarget),Ve(e),!0===qe.current&&(Ke(!0),Ue(e))},Qe=e=>{Oe.current=!0;var t=Ce.props;t.onTouchStart&&t.onTouchStart(e)},Je=Ue,et=We;o.useEffect((()=>{if(je)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ze(e)}}),[ze,je]);var tt=(0,m.Z)(Ce.ref,Ye,xe,t);be||0===be||(je=!1);var rt=o.useRef(),nt={},it="string"===typeof be;Q?(nt.title=je||!it||ee?null:be,nt["aria-describedby"]=je?Ne:null):(nt["aria-label"]=it?be:null,nt["aria-labelledby"]=je&&!it?Ne:null);var ot=(0,i.Z)({},nt,Ae,Ce.props,{className:(0,a.Z)(Ae.className,Ce.props.className),onTouchStart:Qe,ref:tt},ae?{onMouseMove:e=>{var t=Ce.props;t.onMouseMove&&t.onMouseMove(e),O={x:e.clientX,y:e.clientY},rt.current&&rt.current.update()}}:{});var at={};re||(ot.onTouchStart=e=>{Qe(e),clearTimeout(Fe.current),clearTimeout(Re.current),Ze(),Le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.current=setTimeout((()=>{document.body.style.WebkitUserSelect=Le.current,Ue(e)}),oe)},ot.onTouchEnd=e=>{Ce.props.onTouchEnd&&Ce.props.onTouchEnd(e),Ze(),clearTimeout(Fe.current),Fe.current=setTimeout((()=>{ze(e)}),ce)}),ee||(ot.onMouseOver=T(Je,ot.onMouseOver),ot.onMouseLeave=T(et,ot.onMouseLeave),Te||(at.onMouseOver=Je,at.onMouseLeave=et)),J||(ot.onFocus=T($e,ot.onFocus),ot.onBlur=T(Xe,ot.onBlur),Te||(at.onFocus=$e,at.onBlur=Xe));var st=o.useMemo((()=>{var e,t=[{name:"arrow",enabled:Boolean(Pe),options:{element:Pe,padding:4}}];return null!=(e=ve.popperOptions)&&e.modifiers&&(t=t.concat(ve.popperOptions.modifiers)),(0,i.Z)({},ve.popperOptions,{modifiers:t})}),[Pe,ve]),lt=(0,i.Z)({},V,{isRtl:Se,arrow:Y,disableInteractive:Te,placement:fe,PopperComponentProp:he,touch:Oe.current}),ct=(e=>{var{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,f.Z)(o.split("-")[0]))],arrow:["arrow"]};return(0,s.Z)(a,A.Q,t)})(lt),ut=null!=(r=null!=(c=me.popper)?c:X.Popper)?r:S,dt=null!=(u=null!=(R=null!=(M=me.transition)?M:X.Transition)?R:ye)?u:h.Z,pt=null!=(F=null!=(D=me.tooltip)?D:X.Tooltip)?F:k,ft=null!=(I=null!=(B=me.arrow)?B:X.Arrow)?I:x,ht=(0,l.$)(ut,(0,i.Z)({},ve,null!=(j=ge.popper)?j:$.popper,{className:(0,a.Z)(ct.popper,null==ve?void 0:ve.className,null==(N=null!=(L=ge.popper)?L:$.popper)?void 0:N.className)}),lt),vt=(0,l.$)(dt,(0,i.Z)({},_e,null!=(Z=ge.transition)?Z:$.transition),lt),gt=(0,l.$)(pt,(0,i.Z)({},null!=(G=ge.tooltip)?G:$.tooltip,{className:(0,a.Z)(ct.tooltip,null==(z=null!=(U=ge.tooltip)?U:$.tooltip)?void 0:z.className)}),lt),mt=(0,l.$)(ft,(0,i.Z)({},null!=(W=ge.arrow)?W:$.arrow,{className:(0,a.Z)(ct.arrow,null==(q=null!=(H=ge.arrow)?H:$.arrow)?void 0:q.className)}),lt);return(0,C.jsxs)(o.Fragment,{children:[o.cloneElement(Ce,ot),(0,C.jsx)(ut,(0,i.Z)({as:null!=he?he:v.Z,placement:fe,anchorEl:ae?{getBoundingClientRect:()=>({top:O.y,left:O.x,right:O.x,bottom:O.y,width:0,height:0})}:ke,popperRef:rt,open:!!ke&&je,id:Ne,transition:!0},at,ht,{popperOptions:st,children:e=>{var{TransitionProps:t}=e;return(0,C.jsx)(dt,(0,i.Z)({timeout:we.transitions.duration.shorter},t,vt,{children:(0,C.jsxs)(pt,(0,i.Z)({},gt,{children:[be,Y?(0,C.jsx)(ft,(0,i.Z)({},mt,{ref:Ee})):null]}))}))}}))]})}));t.Z=R},82682:function(e,t,r){"use strict";r.d(t,{Q:function(){return o}});var n=r(40059),i=r(46051);function o(e){return(0,i.Z)("MuiTooltip",e)}var a=(0,n.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);t.Z=a},28501:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(3927),l=r(43232),c=r(24077),u=r(67336),d=r(18085),p=r(40059),f=r(46051);function h(e){return(0,f.Z)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var v=r(56552),g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,d.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_=o.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTypography"}),o=(e=>y[e]||e)(r.color),c=(0,s.Z)((0,i.Z)({},r,{color:o})),{align:p="inherit",className:f,component:_,gutterBottom:A=!1,noWrap:C=!1,paragraph:w=!1,variant:S="body1",variantMapping:k=b}=c,x=(0,n.Z)(c,g),P=(0,i.Z)({},c,{align:p,color:o,className:f,component:_,gutterBottom:A,noWrap:C,paragraph:w,variant:S,variantMapping:k}),E=_||(w?"p":k[S]||b[S])||"span",O=(e=>{var{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,l.Z)(s,h,a)})(P);return(0,v.jsx)(m,(0,i.Z)({as:E,ref:t,ownerState:P,className:(0,a.Z)(O.root,f)},x))}))},33590:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},72795:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),o=r(21914),a=r(51118),s=r(43232),l=r(18085),c=r(24077),u=r(31509),d=r(73028),p=r(9912),f=r(40059),h=r(46051);function v(e){return(0,h.Z)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=r(56552),m=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.ZP)(p.Z)((e=>{var{ownerState:t}=e;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),y=(0,c.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_=o.forwardRef((function(e,t){var{autoFocus:r,checked:o,checkedIcon:c,className:p,defaultChecked:f,disabled:h,disableFocusRipple:_=!1,edge:A=!1,icon:C,id:w,inputProps:S,inputRef:k,name:x,onBlur:P,onChange:E,onFocus:O,readOnly:T,required:R=!1,tabIndex:M,type:F,value:D}=e,I=(0,n.Z)(e,m),[B,j]=(0,u.Z)({controlled:o,default:Boolean(f),name:"SwitchBase",state:"checked"}),N=(0,d.Z)(),L=h;N&&"undefined"===typeof L&&(L=N.disabled);var Z="checkbox"===F||"radio"===F,G=(0,i.Z)({},e,{checked:B,disabled:L,disableFocusRipple:_,edge:A}),z=(e=>{var{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&"edge".concat((0,l.Z)(i))],input:["input"]};return(0,s.Z)(o,v,t)})(G);return(0,g.jsxs)(b,(0,i.Z)({component:"span",className:(0,a.Z)(z.root,p),centerRipple:!0,focusRipple:!_,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{P&&P(e),N&&N.onBlur&&N.onBlur(e)},ownerState:G,ref:t},I,{children:[(0,g.jsx)(y,(0,i.Z)({autoFocus:r,checked:o,defaultChecked:f,className:z.input,disabled:L,id:Z?w:void 0,name:x,onChange:e=>{if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;j(t),E&&E(e,t)}},readOnly:T,ref:k,required:R,ownerState:G,tabIndex:M,type:F},"checkbox"===F&&void 0===D?{}:{value:D},S)),B?c:C]}))}))},57266:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},74512:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},7511:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},98958:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},65532:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(90957),i=r(39324),o=r(21914),a=r(79858),s=r(59872),l=r(74742),c=r(56552);var u=function(e){var{children:t,theme:r}=e,i=(0,a.Z)(),u=o.useMemo((()=>{var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,n.Z)({},e,t)}(i,r);return null!=e&&(e[l.Z]=null!==i),e}),[r,i]);return(0,c.jsx)(s.Z.Provider,{value:u,children:t})},d=r(12009),p=r(57880),f={};function h(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((()=>{var o=e&&t[e]||t;if("function"===typeof r){var a=r(o),s=e?(0,n.Z)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)}),[e,t,r,i])}var v=function(e){var{children:t,theme:r,themeId:n}=e,i=(0,p.Z)(f),o=(0,a.Z)()||f,s=h(n,i,r),l=h(n,o,r,!0);return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:t})})},g=r(88464),m=["theme"];function b(e){var{theme:t}=e,r=(0,i.Z)(e,m),o=t[g.Z];return(0,c.jsx)(v,(0,n.Z)({},r,{themeId:o?g.Z:void 0,theme:o||t}))}},94832:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var n=r(90957),i=r(39324),o=r(47208),a=r(61082),s=r(6319),l=r(49890),c=r(87053);var u=r(5216),d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b=r(33590),y=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},A={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,r,n){var i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.$n)(e.main,i):"dark"===t&&(e.dark=(0,u._j)(e.main,o)))}function w(e){var{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,y),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),w=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),x=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b.Z[400],light:b.Z[300],dark:b.Z[700]}:{main:b.Z[800],light:b.Z[500],dark:b.Z[900]}}(t),P=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:"#ed6c02",light:v[500],dark:v[900]}}(t);function E(e){return(0,u.mi)(e,A.text.primary)>=r?A.text.primary:_.text.primary}var O=e=>{var{color:t,name:r,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(!(t=(0,n.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,r?" (".concat(r,")"):"",i));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=E(t.main)),t},T={dark:A,light:_};return(0,a.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:S,name:"error"}),warning:O({color:P,name:"warning"}),info:O({color:k,name:"info"}),success:O({color:x,name:"success"}),grey:p,contrastThreshold:r,getContrastText:E,augmentColor:O,tonalOffset:s},T[t]),l)}var S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var k={textTransform:"uppercase"},x='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var r="function"===typeof t?t(e):t,{fontFamily:o=x,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=r,v=(0,i.Z)(r,S);var g=s/14,m=h||(e=>"".concat(e/p*g,"rem")),b=(e,t,r,i,a)=>{return(0,n.Z)({fontFamily:o,fontWeight:e,fontSize:m(t),lineHeight:r},o===x?{letterSpacing:"".concat((s=i/t,Math.round(1e5*s)/1e5),"em")}:{},a,f);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,k),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,n.Z)({htmlFontSize:p,pxToRem:m,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),v,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["duration","easing","delay"],R={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},M={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F(e){return"".concat(Math.round(e),"ms")}function D(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function I(e){var t=(0,n.Z)({},R,e.easing),r=(0,n.Z)({},M,e.duration);return(0,n.Z)({getAutoHeightDuration:D,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=r.standard,easing:a=t.easeInOut,delay:s=0}=n;(0,i.Z)(n,T);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof o?o:F(o)," ").concat(a," ").concat("string"===typeof s?s:F(s)))).join(",")}},e,{easing:t,duration:r})}var B={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,p=(0,i.Z)(e,j);if(e.vars)throw new Error((0,o.Z)(18));var f,h,v=w(r),g=(0,s.Z)(e),m=(0,a.Z)(g,{mixins:(f=g.breakpoints,h=t,(0,n.Z)({toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}}},h)),palette:v,shadows:O.slice(),typography:P(v,d),transitions:I(u),zIndex:(0,n.Z)({},B)});m=(0,a.Z)(m,p);for(var b=arguments.length,y=new Array(b>1?b-1:0),_=1;_(0,a.Z)(e,t)),m)).unstable_sxConfig=(0,n.Z)({},l.Z,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},m}var L=N},64747:function(e,t,r){"use strict";var n=(0,r(94832).Z)();t.Z=n},88464:function(e,t){"use strict";t.Z="$$material"},24077:function(e,t,r){"use strict";r.d(t,{Dz:function(){return s},FO:function(){return a}});var n=r(21545),i=r(64747),o=r(88464),a=e=>(0,n.x9)(e)&&"classes"!==e,s=n.x9,l=(0,n.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:a});t.ZP=l},2846:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(21914);var n=r(90151),i=r(64747),o=r(88464);function a(){var e=(0,n.Z)(i.Z);return e[o.Z]||e}},67336:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(83849),i=r(64747),o=r(88464);function a(e){var{props:t,name:r}=e;return(0,n.Z)({props:t,name:r,defaultTheme:i.Z,themeId:o.Z})}},85478:function(e,t,r){"use strict";r.d(t,{C:function(){return i},n:function(){return n}});var n=e=>e.scrollTop;function i(e,t){var r,n,{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"===typeof i?i:i[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"===typeof o?o[t.mode]:o,delay:a.transitionDelay}}},18085:function(e,t,r){"use strict";var n=r(76704);t.Z=n.Z},19504:function(e,t,r){"use strict";var n=r(82856);t.Z=n.Z},44326:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(90957),i=r(21914),o=r(58789),a=r(56552);function s(e,t){function r(r,i){return(0,a.jsx)(o.Z,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:i},r,{children:e}))}return r.muiName=o.Z.muiName,i.memo(i.forwardRef(r))}},38822:function(e,t,r){"use strict";var n=r(89844);t.Z=n.Z},71682:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return a.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return A},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return g},useControlled:function(){return m.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return _.Z}});var n=r(93351),i=r(18085),o=r(19504),a=r(44326),s=r(38822);var l=function(e,t){return()=>null},c=r(7703),u=r(77036),d=r(67171);r(90957);var p=function(e,t){return()=>null},f=r(224).Z,h=r(30607),v=r(25964);var g=function(e,t,r,n,i){return null},m=r(31509),b=r(85715),y=r(7023),_=r(14175),A={configure:e=>{n.Z.configure(e)}}},7703:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914);var i=function(e,t){var r,i;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},77036:function(e,t,r){"use strict";var n=r(91313);t.Z=n.Z},67171:function(e,t,r){"use strict";var n=r(75979);t.Z=n.Z},31509:function(e,t,r){"use strict";var n=r(23151);t.Z=n.Z},30607:function(e,t,r){"use strict";var n=r(8031);t.Z=n.Z},85715:function(e,t,r){"use strict";var n=r(22713);t.Z=n.Z},7023:function(e,t,r){"use strict";var n=r(43064);t.Z=n.Z},25964:function(e,t,r){"use strict";var n=r(3363);t.Z=n.Z},14175:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n,i=r(21914),o=!0,a=!1,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function u(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return o||function(e){var{type:t,tagName:r}=e;return!("INPUT"!==r||!s[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}var p=function(){var e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(n),n=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},74742:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.Z=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},59872:function(e,t,r){"use strict";var n=r(21914).createContext(null);t.Z=n},79858:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914),i=r(59872);function o(){return n.useContext(i.Z)}},69553:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});r(21914);var n,i=r(12009),o=r(95796),a=r(56552);function s(e){var{injectFirst:t,children:r}=e;return t&&n?(0,a.jsx)(i.C,{value:n,children:r}):r}"object"===typeof document&&(n=(0,o.Z)({key:"css",prepend:!0}))},88553:function(e,t,r){"use strict";r.d(t,{ZP:function(){return o},Co:function(){return a}});var n=r(40310),i=(r(21914),r(92384),r(95308),n.Z.bind());function o(e,t){return i(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){i[e]=i(e)}));var a=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},12347:function(e,t,r){"use strict";r.d(t,{Z:function(){return vr}});var n=r(39324),i=r(90957),o=r(21914),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,l=r(33424),c=r(15560),u=r(94782),d={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==d)return e;var t={};for(var r in e)t[r]=p(e[r]);return t}function f(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=p(t),o=n.plugins.onCreateRule(e,i,r);return o||(e[0],null)}var h=function(e,t){for(var r="",n=0;n<+~=|^:(),"'`\s])/g,_="undefined"!==typeof CSS&&CSS.escape,A=function(e){return _?_(e):e.replace(y,"\\$1")},C=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!n)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),w=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,u.Z)((0,u.Z)(i)),s),i.selectorText="."+A(i.id)),i}(0,c.Z)(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!==typeof r?e[t]=r:Array.isArray(r)&&(e[t]=v(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,r)},(0,l.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(C),S={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new w(e,t,r)}},k={indent:1,children:!0},x=/@([\w-]+)/,P=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(x);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=k);var t=g(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),E=/@container|@media|@supports\s+/,O={onCreateRule:function(e,t,r){return E.test(e)?new P(e,t,r):null}},T={indent:1,children:!0},R=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(R);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,a=r.sheet,s=r.generateId;for(var l in this.id=!1===o?this.name:A(s(this,a)),this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(l,t[l],(0,i.Z)({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=g(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),F=/@keyframes\s+/,D=/\$([\w-]+)/g,I=function(e,t){return"string"===typeof e?e.replace(D,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=I(n,r);i!==n&&(e[t]=i)},j={onCreateRule:function(e,t,r){return"string"===typeof e&&F.test(e)?new M(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return I(e,n.keyframes);default:return e}}},N=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,r)},t}(C),L={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new N(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n=this.index)t.push(e);else for(var n=0;nr)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,i=(0,n.Z)(t,["attached"]),o=g(i).linebreak,a="",s=0;s-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(r){}},ue=function(e,t){return e.selectorText=t,e.selectorText===t},de=ae((function(){return document.querySelector("head")}));function pe(e){var t=te.registry;if(t.length>0){var r=function(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"===typeof n){var i=function(e){for(var t=de(),r=0;rr?r:t},ge=function(){function e(e){this.getPropertyValue=se,this.setProperty=le,this.removeProperty=ce,this.setSelector=ue,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=fe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=pe(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"===typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else de().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;var o=(0,i.Z)({},t);return Object.keys(r).forEach((e=>{r[e]&&(o[e]="".concat(t[e]," ").concat(r[e]))})),o}var we={set:(e,t,r,n)=>{var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(r,n)},get:(e,t,r)=>{var n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},Se=we,ke=r(17133),xe=r(74742),Pe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),Oe="fnValues"+Ee,Te="fnStyle"+ ++Ee,Re=function(){return{onCreateRule:function(e,t,r){if("function"!==typeof t)return null;var n=f(e,{},r);return n[Te]=t,n},onProcessStyle:function(e,t){if(Oe in t||Te in t)return e;var r={};for(var n in e){var i=e[n];"function"===typeof i&&(delete e[n],r[n]=i)}return t[Oe]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[Te];o&&(i.style=o(e)||{});var a=i[Oe];if(a)for(var s in a)i.prop(s,a[s](e),n)}}},Me="@global",Fe="@global ",De=function(){function e(e,t,r){for(var n in this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ie=function(){function e(e,t,r){this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,(0,i.Z)({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function je(e,t){for(var r=e.split(Be),n="",i=0;i-1){var i=jt[e];if(!Array.isArray(i))return vt.js+At(i)in t&&vt.css+i;if(!n)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,i=""===n?"":"".concat(n,"-"),o=0,a=()=>o+=1;return(e,o)=>{var s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==Pe.indexOf(e.key))return"Mui-".concat(e.key);var l="".concat(i).concat(s,"-").concat(e.key);return o.options.theme[xe.Z]&&""===n?"".concat(l,"-").concat(a()):l}return"".concat(i).concat(r).concat(a())}}(),ir={disableGeneration:!1,generateClassName:nr,jss:rr,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},or=o.createContext(ir);var ar=-1e9;var sr=r(61082),lr=r(76704),cr=["variant"];function ur(e){return 0===e.length}function dr(e){var t="function"===typeof e;return{create:(r,o)=>{var a;try{a=t?e(r):e}catch(u){throw u}if(!o||!r.components||!r.components[o]||!r.components[o].styleOverrides&&!r.components[o].variants)return a;var s=r.components[o].styleOverrides||{},l=r.components[o].variants||[],c=(0,i.Z)({},a);return Object.keys(s).forEach((e=>{c[e]=(0,sr.Z)(c[e]||{},s[e])})),l.forEach((e=>{var t=function(e){var{variant:t}=e,r=(0,n.Z)(e,cr),i=t||"";return Object.keys(r).sort().forEach((t=>{i+="color"===t?ur(i)?e[t]:(0,lr.Z)(e[t]):"".concat(ur(i)?t:(0,lr.Z)(t)).concat((0,lr.Z)(e[t].toString()))})),i}(e.props);c[t]=(0,sr.Z)(c[t]||{},e.style)})),c},options:{}}}var pr={},fr=["name","classNamePrefix","Component","defaultTheme"];function hr(e,t){var{state:r,theme:n,stylesOptions:o,stylesCreator:a,name:s}=e;if(!o.disableGeneration){var l=Se.get(o.sheetsManager,a,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Se.set(o.sheetsManager,a,n,l));var c=(0,i.Z)({},a.options,o,{theme:n,flip:"boolean"===typeof o.flip?o.flip:"rtl"===n.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var d;o.sheetsCache&&(d=Se.get(o.sheetsCache,a,n));var p=a.create(n,s);d||((d=o.jss.createStyleSheet(p,(0,i.Z)({link:!1},c))).attach(),o.sheetsCache&&Se.set(o.sheetsCache,a,n,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=Ae(p)}if(l.dynamicStyles){var f=o.jss.createStyleSheet(l.dynamicStyles,(0,i.Z)({link:!0},c));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=Ce({baseClasses:l.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{name:r,classNamePrefix:a,Component:s,defaultTheme:l=pr}=t,c=(0,n.Z)(t,fr),u=dr(e),d=r||a||"makeStyles";u.options={index:ar+=1,name:r,meta:d,classNamePrefix:d};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.Z)()||l,n=(0,i.Z)({},o.useContext(or),c),a=o.useRef(),d=o.useRef();!function(e,t){var r,n=o.useRef([]),i=o.useMemo((()=>({})),t);n.current!==i&&(n.current=i,r=e()),o.useEffect((()=>()=>{r&&r()}),[i])}((()=>{var i={name:r,state:{},stylesCreator:u,stylesOptions:n,theme:t};return hr(i,e),d.current=!1,a.current=i,()=>{!function(e){var{state:t,theme:r,stylesOptions:n,stylesCreator:i}=e;if(!n.disableGeneration){var o=Se.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;0===o.refs&&(Se.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,u]),o.useEffect((()=>{d.current&&function(e,t){var{state:r}=e;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),d.current=!0}));var p=function(e,t,r){var{state:n,stylesOptions:i}=e;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=Ce({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,s);return p}}},17133:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(79858);function i(){var e,t=(0,n.Z)();return null!=(e=null==t?void 0:t.$$material)?e:t}},22173:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(90957),i=r(39324),o=r(21914),a=r(77531),s=r.n(a),l=r(12347);var c=r(17133),u=r(56552),d=["defaultTheme","withTheme","name"],p=["classes"],f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{var{defaultTheme:a,withTheme:f=!1,name:h}=t,v=(0,i.Z)(t,d);var g=h,m=(0,l.Z)(e,(0,n.Z)({defaultTheme:a,Component:r,name:h||r.displayName,classNamePrefix:g},v)),b=o.forwardRef((function(e,t){var o,s=(0,i.Z)(e,p),l=m((0,n.Z)({},r.defaultProps,e)),d=s;return("string"===typeof h||f)&&(o=(0,c.Z)()||a,h&&(d=function(e){var{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r]||!t.components[r].defaultProps)return i;var o,a=(0,n.Z)({},i),s=t.components[r].defaultProps;for(o in s)void 0===a[o]&&(a[o]=s[o]);return a}({theme:o,name:h,props:s})),f&&!d.theme&&(d.theme=o)),(0,u.jsx)(r,(0,n.Z)({ref:t,classes:l},d))}));return s()(b,r),b}}},28240:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return i},W8:function(){return s},dt:function(){return c},k9:function(){return a}});var n=r(61082),i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(i[e],"px)")};function a(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var a=n.breakpoints||o;return t.reduce(((e,n,i)=>(e[a.up(a.keys[i])]=r(t[i]),e)),{})}if("object"===typeof t){var s=n.breakpoints||o;return Object.keys(t).reduce(((e,n)=>{if(-1!==Object.keys(s.values||i).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var o=n;e[o]=t[o]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce(((e,r)=>(e[t.up(r)]={},e)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o(0,n.Z)(e,t)),{});return l(Object.keys(t),a)}function u(e){var t,{values:r,breakpoints:n,base:i}=e,o=i||function(e,t){if("object"!==typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(r,n),a=Object.keys(o);return 0===a.length?r:a.reduce(((e,n,i)=>(Array.isArray(r)?(e[n]=null!=r[i]?r[i]:r[t],t=i):"object"===typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e)),{})}},5216:function(e,t,r){"use strict";r.d(t,{$n:function(){return d},Fq:function(){return c},_4:function(){return p},_j:function(){return u},mi:function(){return l}});var n=r(47208);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.Z)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===r){if(i=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,n.Z)(10,i))}else a=a.split(",");return{type:r,values:a=a.map((e=>parseFloat(e))),colorSpace:i}}function a(e){var{type:t,colorSpace:r}=e,{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function s(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);var{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,s=n*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){var r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?u(e,t):d(e,t)}},61589:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(90957),i=r(39324),o=r(21914),a=r(51118),s=r(88553),l=r(87053),c=r(3927),u=r(90151),d=r(56552),p=["className","component"];function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:h}=e,v=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return o.forwardRef((function(e,o){var s=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:m="div"}=l,b=(0,i.Z)(l,p);return(0,d.jsx)(v,(0,n.Z)({as:m,ref:o,className:(0,a.Z)(g,h?h(f):f),theme:t&&s[t]||s},b))}))}},21545:function(e,t,r){"use strict";r.d(t,{ZP:function(){return k},x9:function(){return y}});var n=r(39324),i=r(90957),o=r(88553),a=r(61082),s=r(6319),l=r(76704),c=["variant"];function u(e){return 0===e.length}function d(e){var{variant:t}=e,r=(0,n.Z)(e,c),i=t||"";return Object.keys(r).sort().forEach((t=>{i+="color"===t?u(i)?e[t]:(0,l.Z)(e[t]):"".concat(u(i)?t:(0,l.Z)(t)).concat((0,l.Z)(e[t].toString()))})),i}var p=r(87053),f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];var h=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,v=e=>{var t={};return e&&e.forEach((e=>{var r=d(e.props);t[r]=e.style})),t},g=(e,t)=>{var r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),v(r)},m=(e,t,r)=>{var{ownerState:n={}}=e,i=[];return r&&r.forEach((r=>{var o=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(o=!1)})),o&&i.push(t[d(r.props)])})),i},b=(e,t,r,n)=>{var i,o=null==r||null==(i=r.components)||null==(i=i[n])?void 0:i.variants;return m(e,t,o)};function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var _=(0,s.Z)(),A=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function C(e){var t,{defaultTheme:r,theme:n,themeId:i}=e;return t=n,0===Object.keys(t).length?r:n[i]||n}function w(e){return e?(t,r)=>r[e]:null}var S=e=>{var t,{styledArg:r,props:n,defaultTheme:o,themeId:a}=e,s=r((0,i.Z)({},n,{theme:C((0,i.Z)({},n,{defaultTheme:o,themeId:a}))}));return s&&s.variants&&(t=s.variants,delete s.variants),t?[s,...m(n,v(t),t)]:s};function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r=_,rootShouldForwardProp:s=y,slotShouldForwardProp:l=y}=e,c=e=>(0,p.Z)((0,i.Z)({},e,{theme:C((0,i.Z)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));var{name:d,slot:p,skipVariantsResolver:_,skipSx:k,overridesResolver:x=w(A(p))}=u,P=(0,n.Z)(u,f),E=void 0!==_?_:p&&"Root"!==p&&"root"!==p||!1,O=k||!1;var T=y;"Root"===p||"root"===p?T=s:p?T=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(T=void 0);var R=(0,o.ZP)(e,(0,i.Z)({shouldForwardProp:T,label:undefined},P)),M=function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l{if("function"===typeof e&&e.__emotion_real!==e)return n=>S({styledArg:e,props:n,defaultTheme:r,themeId:t});if((0,a.P)(e)){var n,i=e;return e&&e.variants&&(n=e.variants,delete i.variants,i=t=>{var r=e;return m(t,v(n),n).forEach((e=>{r=(0,a.Z)(r,e)})),r}),i}return e})):[],f=n;(0,a.P)(n)?n&&n.variants&&(u=n.variants,delete f.variants,f=e=>{var t=n;return m(e,v(u),u).forEach((e=>{t=(0,a.Z)(t,e)})),t}):"function"===typeof n&&n.__emotion_real!==n&&(f=e=>S({styledArg:n,props:e,defaultTheme:r,themeId:t}));d&&x&&p.push((e=>{var n=C((0,i.Z)({},e,{defaultTheme:r,themeId:t})),o=h(d,n);if(o){var a={};return Object.entries(o).forEach((t=>{var[r,o]=t;a[r]="function"===typeof o?o((0,i.Z)({},e,{theme:n})):o})),x(e,a)}return null})),d&&!E&&p.push((e=>{var n=C((0,i.Z)({},e,{defaultTheme:r,themeId:t}));return b(e,g(d,n),n,d)})),O||p.push(c);var y=p.length-s.length;if(Array.isArray(n)&&y>0){var _=new Array(y).fill("");(f=[...n,..._]).raw=[...n.raw,..._]}var A=R(f,...p);return e.muiName&&(A.muiName=e.muiName),A};return R.withConfig&&(M.withConfig=R.withConfig),M}}},6319:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(90957),i=r(39324),o=r(61082),a=["values","unit","step"],s=e=>{var t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.Z)({},e,{[t.key]:t.val})),{})};var l={borderRadius:4},c=r(74935);var u=r(87053),d=r(49890),p=["breakpoints","palette","spacing","shape"];var f=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{breakpoints:t={},palette:r={},spacing:f,shape:h={}}=e,v=(0,i.Z)(e,p),g=function(e){var{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,l=(0,i.Z)(e,a),c=s(t),u=Object.keys(c);function d(e){var n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function p(e){var n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-o/100).concat(r,")")}function f(e,n){var i=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:n)-o/100).concat(r,")")}return(0,n.Z)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n{var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(f),b=(0,o.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},r),spacing:m,shape:(0,n.Z)({},l,h)},v),y=arguments.length,_=new Array(y>1?y-1:0),A=1;A(0,o.Z)(e,t)),b)).unstable_sxConfig=(0,n.Z)({},d.Z,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},54583:function(e,t,r){"use strict";var n=r(61082);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},74935:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return f},NA:function(){return v},e6:function(){return b},o3:function(){return y}});var n=r(28240),i=r(97013),o=r(54583);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}var[t,r]=e.split(""),n=a[t],i=s[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,r,n){var o,a=null!=(o=(0,i.DW)(e,t,!1))?o:r;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function h(e){return f(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function g(e,t,r,i){if(-1===t.indexOf(r))return null;var o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=v(t,r),e)),{})}(c(r),i),a=e[r];return(0,n.k9)(e,a,o)}function m(e,t){var r=h(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(o.Z,{})}function b(e){return m(e,u)}function y(e){return m(e,d)}function _(e){return m(e,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,_.propTypes={},_.filterProps=p},97013:function(e,t,r){"use strict";r.d(t,{DW:function(){return o},Jq:function(){return a}});var n=r(76704),i=r(28240);function o(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,r){var n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||i:o(e,r)||i,t&&(n=t(n,i,e)),n}t.ZP=function(e){var{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;var c=e[t],u=o(e.theme,s)||{};return(0,i.k9)(e,c,(e=>{var i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,"".concat(t).concat("default"===e?"":(0,n.Z)(e)),e)),!1===r?i:{[r]:i}}))};return c.propTypes={},c.filterProps=[t],c}},49890:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(74935),i=r(97013),o=r(54583);var a=function(){for(var e=arguments.length,t=new Array(e),r=0;r(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,o.Z)(t,n[r](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i},s=r(28240);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(e=>({borderRadius:(0,n.NA)(t,e)})))}return null};y.propTypes={},y.filterProps=["borderRadius"];a(c,u,d,p,f,h,v,g,m,b,y);var _=e=>{if(void 0!==e.gap&&null!==e.gap){var t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(e=>({gap:(0,n.NA)(t,e)})))}return null};_.propTypes={},_.filterProps=["gap"];var A=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(e=>({columnGap:(0,n.NA)(t,e)})))}return null};A.propTypes={},A.filterProps=["columnGap"];var C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(e=>({rowGap:(0,n.NA)(t,e)})))}return null};C.propTypes={},C.filterProps=["rowGap"];a(_,A,C,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function w(e,t){return"grey"===t?t:e}a((0,i.ZP)({prop:"color",themeKey:"palette",transform:w}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:w}));function S(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var k=(0,i.ZP)({prop:"width",transform:S}),x=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(t=>{var r,n,i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(i).concat(e.theme.breakpoints.unit)}:{maxWidth:i}:{maxWidth:S(t)}}))}return null};x.filterProps=["maxWidth"];var P=(0,i.ZP)({prop:"minWidth",transform:S}),E=(0,i.ZP)({prop:"height",transform:S}),O=(0,i.ZP)({prop:"maxHeight",transform:S}),T=(0,i.ZP)({prop:"minHeight",transform:S}),R=((0,i.ZP)({prop:"size",cssProperty:"width",transform:S}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:S}),a(k,x,P,E,O,T,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:y},color:{themeKey:"palette",transform:w},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w},backgroundColor:{themeKey:"palette",transform:w},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:C},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:S},maxWidth:{style:x},minWidth:{transform:S},height:{transform:S},maxHeight:{transform:S},minHeight:{transform:S},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},3927:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(90957),i=r(39324),o=r(61082),a=r(49890),s=["sx"],l=e=>{var t,r,n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function c(e){var t,{sx:r}=e,a=(0,i.Z)(e,s),{systemProps:c,otherProps:u}=l(a);return t=Array.isArray(r)?[c,...r]:"function"===typeof r?function(){var e=r(...arguments);return(0,o.P)(e)?(0,n.Z)({},c,e):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},87053:function(e,t,r){"use strict";var n=r(76704),i=r(54583),o=r(97013),a=r(28240),s=r(49890);var l=function(){function e(e,t,r,i){var s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};var{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};var f=(0,o.DW)(r,u)||{};if(p)return p(s);return(0,a.k9)(s,t,(t=>{var r=(0,o.Jq)(f,d,t);return t===r&&"string"===typeof t&&(r=(0,o.Jq)(f,d,"".concat(e).concat("default"===t?"":(0,n.Z)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n,{sx:o,theme:l={}}=r||{};if(!o)return null;var c=null!=(n=l.unstable_sxConfig)?n:s.Z;function u(r){var n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;var o=(0,a.W8)(l.breakpoints),s=Object.keys(o),u=o;return Object.keys(n).forEach((r=>{var o,s,d=(o=n[r],s=l,"function"===typeof o?o(s):o);if(null!==d&&void 0!==d)if("object"===typeof d)if(c[r])u=(0,i.Z)(u,e(r,d,l,c));else{var p=(0,a.k9)({theme:l},d,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;re.concat(Object.keys(t))),[]),i=new Set(n);return t.every((e=>i.size===Object.keys(e).length))}(p,d)?u=(0,i.Z)(u,p):u[r]=t({sx:d,theme:l})}else u=(0,i.Z)(u,e(r,d,l,c))})),(0,a.L7)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}();l.filterProps=["sx"],t.Z=l},9878:function(e,t,r){"use strict";var n=(0,r(21545).ZP)();t.Z=n},90151:function(e,t,r){"use strict";var n=r(6319),i=r(57880),o=(0,n.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},83849:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(57737);var i=r(90151);function o(e){var{props:t,name:r,defaultTheme:o,themeId:a}=e,s=(0,i.Z)(o);a&&(s=s[a]||s);var l=function(e){var{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,i):i}({theme:s,name:r,props:t});return l}},57880:function(e,t,r){"use strict";var n=r(21914),i=r(12009);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(i.T);return r&&(e=r,0!==Object.keys(e).length)?r:t}},93351:function(e,t){"use strict";var r=e=>e,n=(()=>{var e=r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r}}})();t.Z=n},76704:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(47208);function i(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},43232:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((i=>{n[i]=e[i].reduce(((e,n)=>{if(n){var i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},82856:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;rnull==t?e:function(){for(var r=arguments.length,n=new Array(r),i=0;i{}))}r.d(t,{Z:function(){return n}})},89844:function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,i=new Array(n),o=0;o{e.apply(this,i)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{Z:function(){return n}})},61082:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return a}});var n=r(90957);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e){if(!i(e))return e;var t={};return Object.keys(e).forEach((r=>{t[r]=o(e[r])})),t}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=r.clone?(0,n.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(i(t[n])&&n in e&&i(e[n])?s[n]=a(e[n],t[n],r):r.clone?s[n]=i(t[n])?o(t[n]):t[n]:s[n]=t[n])})),s}},47208:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(r,"-").concat(o):"".concat(n.Z.generate(e),"-").concat(t)}},40059:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(46051);function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((t=>{i[t]=(0,n.Z)(e,t,r)})),i}},34508:function(e,t,r){"use strict";function n(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}r.d(t,{Z:function(){return n}})},91313:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},75979:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91313);function i(e){return(0,n.Z)(e).defaultView||window}},57737:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(90957);function i(e,t){var r=(0,n.Z)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=(0,n.Z)({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},s=t[o];r[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[o]=(0,n.Z)({},s),Object.keys(a).forEach((e=>{r[o][e]=i(a[e],s[e])}))):r[o]=s:r[o]=a}else void 0===r[o]&&(r[o]=e[o])})),r}},224:function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},23151:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914);function i(e){var{controlled:t,default:r,name:i,state:o="value"}=e,{current:a}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[a?t:s,n.useCallback((e=>{a||l(e)}),[])]}},8031:function(e,t,r){"use strict";var n=r(21914),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;t.Z=i},22713:function(e,t,r){"use strict";var n=r(21914),i=r(8031);t.Z=function(e){var t=n.useRef(e);return(0,i.Z)((()=>{t.current=e})),n.useCallback((function(){return(0,t.current)(...arguments)}),[])}},43064:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914),i=r(224);function o(){for(var e=arguments.length,t=new Array(e),r=0;rt.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.Z)(t,e)}))}),t)}},3363:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return s}});var i=r(21914),o=0;var a=(n||(n=r.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){var t=a();return null!=e?e:t}return function(e){var[t,r]=i.useState(e),n=e||t;return i.useEffect((()=>{null==t&&r("mui-".concat(o+=1))}),[t]),n}(e)}},85042:function(e,t,r){"use strict";var n=r(21914),i=r(9109);function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a,s=o(n),l=o(i);t.AnnotationType=void 0,(a=t.AnnotationType||(t.AnnotationType={}))[a.Text=1]="Text",a[a.Link=2]="Link",a[a.FreeText=3]="FreeText",a[a.Line=4]="Line",a[a.Square=5]="Square",a[a.Circle=6]="Circle",a[a.Polygon=7]="Polygon",a[a.Polyline=8]="Polyline",a[a.Highlight=9]="Highlight",a[a.Underline=10]="Underline",a[a.Squiggly=11]="Squiggly",a[a.StrikeOut=12]="StrikeOut",a[a.Stamp=13]="Stamp",a[a.Caret=14]="Caret",a[a.Ink=15]="Ink",a[a.Popup=16]="Popup",a[a.FileAttachment=17]="FileAttachment";var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;rB}));if(!e.length)return-1;for(var t=e[0].pageIndex,n=e[e.length-1].pageIndex,i=e.length,a=0;a=0&&o.current.visibilities[t-1].renderStatus!==w.Rendered?t-1:-1},isInRange:function(e){return e>=o.current.startRange&&e<=o.current.endRange},markNotRendered:function(){for(var e=0;et)&&(o.current.visibilities[n].visibility=B,o.current.visibilities[n].renderStatus=w.NotRenderedYet)},setVisibility:a}},N={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},L=s.createContext({l10n:N,setL10n:function(){}}),Z=0,G=function(){return Z++},z=function(e,t,r){var n=function(e){var n=t.current;if(n){var i=e.target;if(i instanceof Element&&i.shadowRoot){var o=e.composedPath();o.length>0&&!n.contains(o[0])&&r()}else n.contains(i)||r()}};s.useEffect((function(){if(e){var t={capture:!0};return document.addEventListener("click",n,t),function(){document.removeEventListener("click",n,t)}}}),[])},U=function(e){var t=function(t){"Escape"===t.key&&e()};s.useEffect((function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}}),[])},W=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.closeOnClickOutside,o=e.closeOnEscape,a=e.onToggle,l=s.useRef(),c=s.useContext(h).direction===t.TextDirection.RightToLeft;return s.useEffect((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}),[]),U((function(){l.current&&o&&a()})),z(i,l,a),g((function(){var e=l.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]),s.createElement("div",{"aria-modal":"true",className:v({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":c}),id:"rpv-core__modal-body-".concat(r),ref:l,role:"dialog",tabIndex:-1},n)},q=function(e){var t=e.children;return s.createElement("div",{className:"rpv-core__modal-overlay"},t)};t.ToggleStatus=void 0,(I=t.ToggleStatus||(t.ToggleStatus={})).Close="Close",I.Open="Open",I.Toggle="Toggle";var H,V=function(e){var r=s.useState(e),n=r[0],i=r[1];return{opened:n,toggle:function(e){switch(e){case t.ToggleStatus.Close:i(!1);break;case t.ToggleStatus.Open:i(!0);break;case t.ToggleStatus.Toggle:default:i((function(e){return!e}))}}}},Y=function(e){var t=e.content,r=e.isOpened,n=void 0!==r&&r,i=e.target,o=V(n),a=o.opened,l=o.toggle;return s.createElement(s.Fragment,null,i&&i(l,a),a&&t(l))};t.Position=void 0,(H=t.Position||(t.Position={})).TopLeft="TOP_LEFT",H.TopCenter="TOP_CENTER",H.TopRight="TOP_RIGHT",H.RightTop="RIGHT_TOP",H.RightCenter="RIGHT_CENTER",H.RightBottom="RIGHT_BOTTOM",H.BottomLeft="BOTTOM_LEFT",H.BottomCenter="BOTTOM_CENTER",H.BottomRight="BOTTOM_RIGHT",H.LeftTop="LEFT_TOP",H.LeftCenter="LEFT_CENTER",H.LeftBottom="LEFT_BOTTOM";var K,X,$,Q,J,ee,te,re,ne=function(e,r,n,i,o){g((function(){var a=r.current,s=e.current,l=n.current;if(s&&a&&l){var c=l.getBoundingClientRect(),u=function(e,r,n,i){var o=r.getBoundingClientRect(),a=e.getBoundingClientRect(),s=a.height,l=a.width,c=0,u=0;switch(n){case t.Position.TopLeft:c=o.top-s,u=o.left;break;case t.Position.TopCenter:c=o.top-s,u=o.left+o.width/2-l/2;break;case t.Position.TopRight:c=o.top-s,u=o.left+o.width-l;break;case t.Position.RightTop:c=o.top,u=o.left+o.width;break;case t.Position.RightCenter:c=o.top+o.height/2-s/2,u=o.left+o.width;break;case t.Position.RightBottom:c=o.top+o.height-s,u=o.left+o.width;break;case t.Position.BottomLeft:c=o.top+o.height,u=o.left;break;case t.Position.BottomCenter:c=o.top+o.height,u=o.left+o.width/2-l/2;break;case t.Position.BottomRight:c=o.top+o.height,u=o.left+o.width-l;break;case t.Position.LeftTop:c=o.top,u=o.left-l;break;case t.Position.LeftCenter:c=o.top+o.height/2-s/2,u=o.left-l;break;case t.Position.LeftBottom:c=o.top+o.height-s,u=o.left-l}return{left:u+(i.left||0),top:c+(i.top||0)}}(s,a,i,o),d=u.top,p=u.left;s.style.top="".concat(d-c.top,"px"),s.style.left="".concat(p-c.left,"px")}}),[])},ie=function(e){var r,n=e.customClassName,i=e.position;return s.createElement("div",{className:v((r={"rpv-core__arrow":!0,"rpv-core__arrow--tl":i===t.Position.TopLeft,"rpv-core__arrow--tc":i===t.Position.TopCenter,"rpv-core__arrow--tr":i===t.Position.TopRight,"rpv-core__arrow--rt":i===t.Position.RightTop,"rpv-core__arrow--rc":i===t.Position.RightCenter,"rpv-core__arrow--rb":i===t.Position.RightBottom,"rpv-core__arrow--bl":i===t.Position.BottomLeft,"rpv-core__arrow--bc":i===t.Position.BottomCenter,"rpv-core__arrow--br":i===t.Position.BottomRight,"rpv-core__arrow--lt":i===t.Position.LeftTop,"rpv-core__arrow--lc":i===t.Position.LeftCenter,"rpv-core__arrow--lb":i===t.Position.LeftBottom},r["".concat(n)]=""!==n,r))})},oe=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.closeOnClickOutside,o=e.offset,a=e.position,l=e.targetRef,c=e.onClose,u=s.useRef(),d=s.useRef(),p=s.useRef(),f=s.useContext(h).direction===t.TextDirection.RightToLeft;z(i,u,c),ne(u,l,p,a,o),g((function(){var e=d.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]);var m="rpv-core__popover-body-inner-".concat(r);return s.createElement(s.Fragment,null,s.createElement("div",{ref:p,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{"aria-describedby":m,className:v({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":f}),id:"rpv-core__popover-body-".concat(r),ref:u,role:"dialog",tabIndex:-1},s.createElement(ie,{customClassName:"rpv-core__popover-body-arrow",position:a}),s.createElement("div",{id:m,ref:d},n)))},ae=function(e){var t=e.closeOnEscape,r=e.onClose,n=s.useRef();return U((function(){n.current&&t&&r()})),s.createElement("div",{className:"rpv-core__popover-overlay",ref:n})},se=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.contentRef,o=e.offset,a=e.position,l=e.targetRef,c=s.useRef(),u=s.useContext(h).direction===t.TextDirection.RightToLeft;return ne(i,l,c,a,o),s.createElement(s.Fragment,null,s.createElement("div",{ref:c,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{className:v({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":u}),id:"rpv-core__tooltip-body-".concat(r),ref:i,role:"tooltip"},s.createElement(ie,{customClassName:"rpv-core__tooltip-body-arrow",position:a}),s.createElement("div",{className:"rpv-core__tooltip-body-content"},n)))};t.FullScreenMode=void 0,(K=t.FullScreenMode||(t.FullScreenMode={})).Normal="Normal",K.Entering="Entering",K.Entered="Entered",K.EnteredCompletely="EnteredCompletely",K.Exitting="Exitting",K.Exited="Exited",t.LayerRenderStatus=void 0,(X=t.LayerRenderStatus||(t.LayerRenderStatus={}))[X.PreRender=0]="PreRender",X[X.DidRender=1]="DidRender",t.PageMode=void 0,($=t.PageMode||(t.PageMode={})).Attachments="UseAttachments",$.Bookmarks="UseOutlines",$.ContentGroup="UseOC",$.Default="UserNone",$.FullScreen="FullScreen",$.Thumbnails="UseThumbs",t.PasswordStatus=void 0,(Q=t.PasswordStatus||(t.PasswordStatus={})).RequiredPassword="RequiredPassword",Q.WrongPassword="WrongPassword",t.RotateDirection=void 0,(J=t.RotateDirection||(t.RotateDirection={})).Backward="Backward",J.Forward="Forward",t.ScrollMode=void 0,(ee=t.ScrollMode||(t.ScrollMode={})).Page="Page",ee.Horizontal="Horizontal",ee.Vertical="Vertical",ee.Wrapped="Wrapped",t.SpecialZoomLevel=void 0,(te=t.SpecialZoomLevel||(t.SpecialZoomLevel={})).ActualSize="ActualSize",te.PageFit="PageFit",te.PageWidth="PageWidth",t.ViewMode=void 0,(re=t.ViewMode||(t.ViewMode={})).DualPage="DualPage",re.DualPageWithCover="DualPageWithCover",re.SinglePage="SinglePage";var le,ce=function(e,t){return e.reduce((function(e,r,n){return n%t?e[e.length-1].push(r):e.push([r]),e}),[])},ue=function(e,r){switch(r[1].name){case"XYZ":return{bottomOffset:function(e,t){return null===r[3]?t:r[3]},leftOffset:function(e,t){return null===r[2]?0:r[2]},pageIndex:e,scaleTo:r[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:r[2],leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:1}}},de=new Map,pe=new Map,fe=function(e,t){return"".concat(e.loadingTask.docId,"___").concat(t.num,"R").concat(0===t.gen?"":t.gen)},he=function(e,t,r){de.set(fe(e,t),r)},ve=function(e,t){if(!e)return Promise.reject("The document is not loaded yet");var r="".concat(e.loadingTask.docId,"___").concat(t),n=pe.get(r);return n?Promise.resolve(n):new Promise((function(n,i){e.getPage(t+1).then((function(i){pe.set(r,i),i.ref&&he(e,i.ref,t),n(i)}))}))},ge=function e(t,r){return new Promise((function(n){new Promise((function(e){"string"==typeof r?t.getDestination(r).then((function(t){e(t)})):e(r)})).then((function(i){if("object"==typeof i[0]&&null!==i[0]){var o=i[0],a=function(e,t){var r=fe(e,t);return de.has(r)?de.get(r):null}(t,o);null===a?t.getPageIndex(o).then((function(i){he(t,o,i),e(t,r).then((function(e){return n(e)}))})):n(ue(a,i))}else{var s=ue(i[0],i);n(s)}}))}))};!function(e){e[e.Solid=1]="Solid",e[e.Dashed=2]="Dashed",e[e.Beveled=3]="Beveled",e[e.Inset=4]="Inset",e[e.Underline=5]="Underline"}(le||(le={}));var me,be=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),ye=function(e,t,r,n){var i=parseInt(e,10);return i>=t&&i<=r?i:n},_e=function(e){return e.contentsObj?e.contentsObj.str:e.contents||""},Ae=function(e){return e.titleObj?e.titleObj.str:e.title||""},Ce=function(e){var r=e.annotation,n=s.useContext(h).direction,i=Ae(r),o=_e(r),a=n===t.TextDirection.RightToLeft,l=s.useRef(),c="";if(r.modificationDate){var u=function(e){var t=be.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=ye(t[2],1,12,1)-1,i=ye(t[3],1,31,1),o=ye(t[4],0,23,0),a=ye(t[5],0,59,0),s=ye(t[6],0,59,0),l=t[7]||"Z",c=ye(t[8],0,23,0),u=ye(t[9],0,59,0);switch(l){case"-":o+=c,a+=u;break;case"+":o-=c,a-=u}return new Date(Date.UTC(r,n,i,o,a,s))}(r.modificationDate);c=u?"".concat(u.toLocaleDateString(),", ").concat(u.toLocaleTimeString()):""}return s.useLayoutEffect((function(){if(l.current){var e=document.querySelector('[data-annotation-id="'.concat(r.id,'"]'));if(e){var t=e;return t.style.zIndex+=1,function(){t.style.zIndex="".concat(parseInt(t.style.zIndex,10)-1)}}}}),[]),s.createElement("div",{ref:l,className:v({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":a}),style:{top:r.annotationType===t.AnnotationType.Popup?"":"100%"}},i&&s.createElement(s.Fragment,null,s.createElement("div",{className:v({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!a,"rpv-core__annotation-popup-title--rtl":a})},i),s.createElement("div",{className:"rpv-core__annotation-popup-date"},c)),o&&s.createElement("div",{className:"rpv-core__annotation-popup-content"},o.split("\n").map((function(e,t){return s.createElement(s.Fragment,{key:t},e,s.createElement("br",null))}))))};!function(e){e.Click="Click",e.Hover="Hover"}(me||(me={}));var we,Se=function(e){var r,n=e.annotation,i=e.children,o=e.ignoreBorder,a=e.hasPopup,l=e.isRenderable,c=e.page,u=e.viewport,d=n.rect,p=function(){var e=V(!1),r=e.opened,n=e.toggle,i=s.useState(me.Hover),o=i[0],a=i[1];return{opened:r,closeOnHover:function(){o===me.Hover&&n(t.ToggleStatus.Close)},openOnHover:function(){o===me.Hover&&n(t.ToggleStatus.Open)},toggleOnClick:function(){switch(o){case me.Click:r&&a(me.Hover),n(t.ToggleStatus.Toggle);break;case me.Hover:a(me.Click),n(t.ToggleStatus.Open)}}}}(),f=p.closeOnHover,h=p.opened,v=p.openOnHover,g=p.toggleOnClick,m=(r=[d[0],c.view[3]+c.view[1]-d[1],d[2],c.view[3]+c.view[1]-d[3]],[Math.min(r[0],r[2]),Math.min(r[1],r[3]),Math.max(r[0],r[2]),Math.max(r[1],r[3])]),b=d[2]-d[0],y=d[3]-d[1],_={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!o&&n.borderStyle.width>0){switch(n.borderStyle.style){case le.Dashed:_.borderStyle="dashed";break;case le.Solid:_.borderStyle="solid";break;case le.Underline:_=Object.assign({borderBottomStyle:"solid"},_);case le.Beveled:case le.Inset:}var A=n.borderStyle.width;_.borderWidth="".concat(A,"px"),n.borderStyle.style!==le.Underline&&(b-=2*A,y-=2*A);var C=n.borderStyle,w=C.horizontalCornerRadius,S=C.verticalCornerRadius;(w>0||S>0)&&(_.borderRadius="".concat(w,"px / ").concat(S,"px")),n.color?_.borderColor="rgb(".concat(0|n.color[0],", ").concat(0|n.color[1],", ").concat(0|n.color[2],")"):_.borderWidth="0"}return s.createElement(s.Fragment,null,l&&i({popup:{opened:h,closeOnHover:f,openOnHover:v,toggleOnClick:g},slot:{attrs:{style:Object.assign({height:"".concat(y,"px"),left:"".concat(m[0],"px"),top:"".concat(m[1],"px"),transform:"matrix(".concat(u.transform.join(","),")"),transformOrigin:"-".concat(m[0],"px -").concat(m[1],"px"),width:"".concat(b,"px")},_)},children:s.createElement(s.Fragment,null,a&&h&&s.createElement(Ce,{annotation:n}))}}))},ke=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},xe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("circle",{cy:d/2,fill:"none",rx:u/2-f/2,ry:d/2-f/2,stroke:"transparent",strokeWidth:f||1})),e.slot.children)}))},Pe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=Ae(t),o=_e(t),a=!(!1!==t.hasPopup||!i&&!o),l=function(){var e,r,n,i,o=t.file;o&&(e=o.filename,n="string"==typeof(r=o.content)?"":URL.createObjectURL(new Blob([r],{type:""})),(i=document.createElement("a")).style.display="none",i.href=n||e,i.setAttribute("download",function(e){var t=e.split("/").pop();return t?t.split("#")[0].split("?")[0]:e}(e)),document.body.appendChild(i),i.click(),document.body.removeChild(i),n&&URL.revokeObjectURL(n))};return s.createElement(Se,{annotation:t,hasPopup:a,ignoreBorder:!0,isRenderable:!0,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onDoubleClick:l,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ee=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Oe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=Ae(t),o=_e(t),a=!(!i&&!o),l=!t.parentType||-1!==["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(t.parentType);return g((function(){if(t.parentId){var e=document.querySelector('[data-annotation-id="'.concat(t.parentId,'"]')),r=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(e&&r){var n=parseFloat(e.style.left),i=parseFloat(e.style.top)+parseFloat(e.style.height);r.style.left="".concat(n,"px"),r.style.top="".concat(i,"px"),r.style.transformOrigin="-".concat(n,"px -").concat(i,"px")}}}),[]),s.createElement(Se,{annotation:t,hasPopup:l,ignoreBorder:!1,isRenderable:a,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":t.id}),s.createElement(Ce,{annotation:t}))}))},Te=function e(r){var n=r.annotation,i=r.childAnnotation,o=r.page,a=r.viewport,l=!1===n.hasPopup,c=Ae(n),u=_e(n),d=!!(n.hasPopup||c||u);if(n.quadPoints&&n.quadPoints.length>0){var f=n.quadPoints.map((function(e){return Object.assign({},n,{rect:[e[2].x,e[2].y,e[1].x,e[1].y],quadPoints:[]})}));return s.createElement(s.Fragment,null,f.map((function(t,r){return s.createElement(e,{key:r,annotation:t,childAnnotation:i,page:o,viewport:a})})))}return s.createElement(Se,{annotation:n,hasPopup:l,ignoreBorder:!0,isRenderable:d,page:o,viewport:a},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":n.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children),i&&i.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:i,page:o,viewport:a}))}))},Re=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.inkLists&&t.inkLists.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},t.inkLists.map((function(e,t){return s.createElement("polyline",{key:t,fill:"none",stroke:"transparent",strokeWidth:f||1,points:e.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})}))),e.slot.children)}))},Me=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("line",{stroke:"transparent",strokeWidth:f||1,x1:c[2]-t.lineCoordinates[0],x2:c[2]-t.lineCoordinates[2],y1:c[3]-t.lineCoordinates[1],y2:c[3]-t.lineCoordinates[3]})),e.slot.children)}))},Fe=/^([^\w]*)(javascript|data|vbscript)/im,De=/&#(\w+)(^\w|;)?/g,Ie=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Be=/^([^:]+):/gm,je=function(e){var t,r=e.annotation,n=e.annotationContainerRef,i=e.doc,o=e.outlines,a=e.page,l=e.pageIndex,c=e.scale,u=e.viewport,d=e.onExecuteNamedAction,f=e.onJumpFromLinkAnnotation,h=e.onJumpToDest,v=s.useRef(),g=o&&o.length&&r.dest&&"string"==typeof r.dest?null===(t=o.find((function(e){return e.dest===r.dest})))||void 0===t?void 0:t.title:"",m=!!(r.url||r.dest||r.action||r.unsafeUrl),b={};if(r.url||r.unsafeUrl){var y=function(e,t){void 0===t&&(t="about:blank");var r,n=(r=e||"",r.replace(De,(function(e,t){return String.fromCharCode(t)}))).replace(Ie,"").trim();if(!n)return t;var i=n[0];if("."===i||"/"===i)return n;var o=n.match(Be);if(!o)return n;var a=o[0];return Fe.test(a)?t:n}(r.url||r.unsafeUrl,"");y?b={"data-target":"external",href:y,rel:"noopener noreferrer nofollow",target:r.newWindow?"_blank":"",title:y}:m=!1}else b={href:"","data-annotation-link":r.id,onClick:function(e){e.preventDefault(),r.action?d(r.action):ge(i,r.dest).then((function(e){var t=v.current,r=n.current;if(t&&r){var i=t.getBoundingClientRect();r.style.setProperty("height","100%"),r.style.setProperty("width","100%");var o=r.getBoundingClientRect();r.style.removeProperty("height"),r.style.removeProperty("width");var a=(i.left-o.left)/c,s=(o.bottom-i.bottom+i.height)/c;f({bottomOffset:s,label:g,leftOffset:a,pageIndex:l})}h(e)}))}};return g&&(b=Object.assign({},b,{title:g,"aria-label":g})),s.createElement(Se,{annotation:r,hasPopup:!1,ignoreBorder:!1,isRenderable:m,page:a,viewport:u},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":r.id,"data-testid":"core__annotation--link-".concat(r.id)}),s.createElement("a",p({ref:v},b)))}))},Ne=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Le=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("rect",{height:d-f,fill:"none",stroke:"transparent",strokeWidth:f||1,x:f/2,y:f/2,width:u-f})),e.slot.children)}))},Ge=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ue=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},We=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),s.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),s.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),s.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},qe=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),s.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),s.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),s.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),s.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),s.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),s.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),s.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),s.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),s.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},He=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),s.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},Ve=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),s.createElement("path",{d:"M6 4.5L6 0.5"}),s.createElement("path",{d:"M18 4.5L18 0.5"}),s.createElement("path",{d:"M10 4.5L10 0.5"}),s.createElement("path",{d:"M14 4.5L14 0.5"}))},Ye=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),s.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),s.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},Ke=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},Xe=function(e){var r=e.annotation,n=e.childAnnotation,i=e.page,o=e.viewport,a=!1===r.hasPopup,l=Ae(r),c=_e(r),u=!!(r.hasPopup||l||c),d=r.name?r.name.toLowerCase():"";return s.createElement(Se,{annotation:r,hasPopup:a,ignoreBorder:!1,isRenderable:u,page:i,viewport:o},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":r.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),d&&s.createElement("div",{className:"rpv-core__annotation-text-icon"},"check"===d&&s.createElement(y,null),"comment"===d&&s.createElement(We,null),"help"===d&&s.createElement(qe,null),"insert"===d&&s.createElement(Ke,null),"key"===d&&s.createElement(He,null),"note"===d&&s.createElement(Ve,null),("newparagraph"===d||"paragraph"===d)&&s.createElement(Ye,null)),e.slot.children),n&&n.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:n,page:i,viewport:o}))}))},$e=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,o=Ae(t),a=_e(t),l=!!(t.hasPopup||o||a);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Qe=function(e){var r=e.annotations,n=e.doc,i=e.outlines,o=e.page,a=e.pageIndex,l=e.plugins,c=e.rotation,u=e.scale,d=e.onExecuteNamedAction,p=e.onJumpFromLinkAnnotation,f=e.onJumpToDest,h=s.useRef(),v=o.getViewport({rotation:c,scale:u}).clone({dontFlip:!0}),m=r.filter((function(e){return!e.parentId}));return g((function(){var e=h.current;e&&l.forEach((function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender({annotations:m,container:e,pageIndex:a,rotation:c,scale:u})}))}),[]),s.createElement("div",{ref:h,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(a)},m.map((function(e){var l=r.find((function(t){return t.parentId===e.id}));switch(e.annotationType){case t.AnnotationType.Caret:return s.createElement(ke,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Circle:return s.createElement(xe,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.FileAttachment:return s.createElement(Pe,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.FreeText:return s.createElement(Ee,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Highlight:return s.createElement(Te,{key:e.id,annotation:e,childAnnotation:l,page:o,viewport:v});case t.AnnotationType.Ink:return s.createElement(Re,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Line:return s.createElement(Me,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Link:return s.createElement(je,{key:e.id,annotation:e,annotationContainerRef:h,doc:n,outlines:i,page:o,pageIndex:a,scale:u,viewport:v,onExecuteNamedAction:d,onJumpFromLinkAnnotation:p,onJumpToDest:f});case t.AnnotationType.Polygon:return s.createElement(Ne,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Polyline:return s.createElement(Le,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Popup:return s.createElement(Oe,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Square:return s.createElement(Ze,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Squiggly:return s.createElement(Ge,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Stamp:return s.createElement(ze,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.StrikeOut:return s.createElement(Ue,{key:e.id,annotation:e,page:o,viewport:v});case t.AnnotationType.Text:return s.createElement(Xe,{key:e.id,annotation:e,childAnnotation:l,page:o,viewport:v});case t.AnnotationType.Underline:return s.createElement($e,{key:e.id,annotation:e,page:o,viewport:v});default:return s.createElement(s.Fragment,{key:e.id})}})))},Je=function(e){var t=e.page,r=e.renderAnnotations,n=F(),i=s.useState({loading:!0,annotations:[]}),o=i[0],a=i[1];return s.useEffect((function(){t.getAnnotations({intent:"display"}).then((function(e){n.current&&a({loading:!1,annotations:e})}))}),[]),o.loading?s.createElement(s.Fragment,null):r(o.annotations)},et=function(e){var t=e.doc,r=e.outlines,n=e.page,i=e.pageIndex,o=e.plugins,a=e.rotation,l=e.scale,c=e.onExecuteNamedAction,u=e.onJumpFromLinkAnnotation,d=e.onJumpToDest;return s.createElement(Je,{page:n,renderAnnotations:function(e){return s.createElement(Qe,{annotations:e,doc:t,outlines:r,page:n,pageIndex:i,plugins:o,rotation:a,scale:l,onExecuteNamedAction:c,onJumpFromLinkAnnotation:u,onJumpToDest:d})}})},tt=function(e,t){var r=e%t;return 0===r?e:Math.floor(e-r)},rt=function(e){var r=e.canvasLayerRef,n=e.height,i=e.page,o=e.pageIndex,a=e.plugins,l=e.rotation,c=e.scale,u=e.width,d=e.onRenderCanvasCompleted,p=s.useRef();return g((function(){var e=p.current;e&&e.cancel();var n=r.current;n.removeAttribute("data-testid"),a.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:o,rotation:l,scale:c,status:t.LayerRenderStatus.PreRender})}));var s=i.getViewport({rotation:l,scale:c}),u=window.devicePixelRatio||1,f=Math.sqrt(16777216/(s.width*s.height)),h=u>f;h?n.style.transform="scale(1, 1)":n.style.removeProperty("transform");var v=Math.min(f,u),g=function(e,t){var r,n;if(Math.floor(e)===e)return[e,1];var i=1/e;if(i>8)return[1,8];if(Math.floor(i)===i)return[1,i];for(var o=e>1?i:e,a=0,s=1,l=1,c=1;;){var u=a+l,d=s+c;if(d>8)break;o<=u/d?(l=(r=[u,d])[0],c=r[1]):(a=(n=[u,d])[0],s=n[1])}return o<(a/s+l/c)/2?o===e?[a,s]:[s,a]:o===e?[l,c]:[c,l]}(v),m=g[0],b=g[1];n.width=tt(s.width*v,m),n.height=tt(s.height*v,m),n.style.width="".concat(tt(s.width,b),"px"),n.style.height="".concat(tt(s.height,b),"px"),n.hidden=!0;var y=n.getContext("2d",{alpha:!1}),_=h||1!==u?[v,0,0,v,0,0]:null;return p.current=i.render({canvasContext:y,transform:_,viewport:s}),p.current.promise.then((function(){n.hidden=!1,n.setAttribute("data-testid","core__canvas-layer-".concat(o)),a.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:o,rotation:l,scale:c,status:t.LayerRenderStatus.DidRender})})),d()}),(function(){d()})),function(){n&&(n.width=0,n.height=0)}}),[]),s.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(n,"px"),width:"".concat(u,"px")}},s.createElement("canvas",{ref:r}))},nt=function(e){var t=e.height,r=e.page,n=e.rotation,i=e.scale,o=e.width,a=s.useRef();return g((function(){var e=a.current,s=r.getViewport({rotation:n,scale:i});r.getOperatorList().then((function(n){!function(){var e=a.current;e&&(e.innerHTML="")}(),new l.SVGGraphics(r.commonObjs,r.objs).getSVG(n,s).then((function(r){r.style.height="".concat(t,"px"),r.style.width="".concat(o,"px"),e.appendChild(r)}))}))}),[]),s.createElement("div",{className:"rpv-core__svg-layer",ref:a})},it=function(e){var r=e.containerRef,n=e.page,i=e.pageIndex,o=e.plugins,a=e.rotation,c=e.scale,u=e.onRenderTextCompleted,d=s.useRef(),p=function(){var e=r.current;e&&([].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")).forEach((function(t){return e.removeChild(t)})),[].slice.call(e.querySelectorAll('br[role="presentation"]')).forEach((function(t){return e.removeChild(t)})))};return g((function(){var e=d.current;e&&e.cancel();var s=r.current;if(s){s.removeAttribute("data-testid");var f=n.getViewport({rotation:a,scale:c});return o.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:i,scale:c,status:t.LayerRenderStatus.PreRender})})),n.getTextContent().then((function(e){p(),d.current=l.renderTextLayer({container:s,textContent:e,textContentSource:e,viewport:f}),d.current.promise.then((function(){s.setAttribute("data-testid","core__text-layer-".concat(i)),[].slice.call(s.children).forEach((function(e){e.classList.contains("rpv-core__text-layer-text--not")||e.classList.add("rpv-core__text-layer-text")})),o.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:i,scale:c,status:t.LayerRenderStatus.DidRender})})),u()}),(function(){s.removeAttribute("data-testid"),u()}))})),function(){var e;p(),null===(e=d.current)||void 0===e||e.cancel()}}}),[]),s.createElement("div",{className:"rpv-core__text-layer",ref:r})},ot=function(e){var r=e.doc,n=e.measureRef,i=e.outlines,o=e.pageIndex,a=e.pageRotation,l=e.pageSize,c=e.plugins,u=e.renderPage,d=e.renderQueueKey,p=e.rotation,f=e.scale,h=e.shouldRender,g=e.viewMode,m=e.onExecuteNamedAction,b=e.onJumpFromLinkAnnotation,y=e.onJumpToDest,_=e.onRenderCompleted,C=e.onRotatePage,w=F(),S=s.useState(null),k=S[0],x=S[1],P=s.useState(!1),E=P[0],O=P[1],T=s.useState(!1),R=T[0],M=T[1],D=s.useRef(),I=s.useRef(),B=Math.abs(p+a)%180==0,j=l.pageWidth*f,N=l.pageHeight*f,L=B?j:N,Z=B?N:j,G=(l.rotation+p+a)%360,z=s.useRef(0),U=u||function(e){return s.createElement(s.Fragment,null,e.canvasLayer.children,e.textLayer.children,e.annotationLayer.children)};return s.useEffect((function(){x(null),O(!1),M(!1)}),[a,p,f]),s.useEffect((function(){h&&w.current&&!k&&ve(r,o).then((function(e){w.current&&(z.current=d,x(e))}))}),[h,k]),s.useEffect((function(){E&&R&&(d!==z.current?(x(null),O(!1),M(!1)):_(o))}),[E,R]),s.createElement("div",{className:v({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":g===t.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":g===t.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":g===t.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(o),ref:n,style:{height:"".concat(Z,"px"),width:"".concat(L,"px")}},k?s.createElement(s.Fragment,null,U({annotationLayer:{attrs:{},children:s.createElement(et,{doc:r,outlines:i,page:k,pageIndex:o,plugins:c,rotation:G,scale:f,onExecuteNamedAction:m,onJumpFromLinkAnnotation:b,onJumpToDest:y})},canvasLayer:{attrs:{},children:s.createElement(rt,{canvasLayerRef:D,height:Z,page:k,pageIndex:o,plugins:c,rotation:G,scale:f,width:L,onRenderCanvasCompleted:function(){w.current&&O(!0)}})},canvasLayerRendered:E,doc:r,height:Z,pageIndex:o,rotation:G,scale:f,svgLayer:{attrs:{},children:s.createElement(nt,{height:Z,page:k,rotation:G,scale:f,width:L})},textLayer:{attrs:{},children:s.createElement(it,{containerRef:I,page:k,pageIndex:o,plugins:c,rotation:G,scale:f,onRenderTextCompleted:function(){w.current&&M(!0)}})},textLayerRendered:R,width:L,markRendered:_,onRotatePage:function(e){return C(o,e)}}),c.map((function(e,t){return e.renderPageLayer?s.createElement(s.Fragment,{key:t},e.renderPageLayer({canvasLayerRef:D,canvasLayerRendered:E,doc:r,height:Z,pageIndex:o,rotation:G,scale:f,textLayerRef:I,textLayerRendered:R,width:L})):s.createElement(s.Fragment,{key:t})}))):s.createElement(A,{testId:"core__page-layer-loading-".concat(o)}))},at=function(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e};!function(e){e.Horizontal="Horizontal",e.Vertical="Vertical",e.Both="Both"}(we||(we={}));var st=function(e){return 1-Math.pow(1-e,4)},lt=1e-4,ct={left:0,top:0},ut={capture:!1,passive:!0},dt=function(e,t,r){return Math.max(e,Math.min(r,t))},pt=function(e,r){if(r!==t.ViewMode.DualPageWithCover)return 0;if(!function(e){var t=e.length;if(1===t)return!1;for(var r=1;rr))return i;t=i-1}}return e>0?e-1:0}(0,o,i,(function(r){switch(e){case we.Horizontal:return t[r].start.left;case we.Both:case we.Vertical:default:return t[r].start.top}}));if(e===we.Both)for(var s=t[a].start.top;a-1>=0&&t[a-1].start.top===s&&t[a-1].start.left>=n.left;)a--;for(var l=a;l<=o;){var c={top:t[l].start.top-n.top,left:t[l].start.left-n.left},u={height:r.height-c.top,width:r.width-c.left};if(e===we.Horizontal&&u.width<0)break;if(e===we.Vertical&&u.height<0)break;if(e===we.Both&&(u.width<0||u.height<0))break;l++}return{start:a,end:l}}(y,T,w,A),r=e.start,n=e.end,o=r+P.slice(dt(0,i,r),dt(0,i,n)).reduce((function(e,t,r,n){return t>n[e]?r:e}),0),s=o=dt(0,i-1,o),l=a({endPage:n,numPages:i,startPage:r}),c=l.startPage,d=l.endPage;switch(c=Math.max(c,0),d=Math.min(d,i-1),u){case t.ViewMode.DualPageWithCover:o>0&&(s=o%2==1?o:o-1),c=0===c?0:c%2==1?c:c-1,i-(d=d%2==1?d-1:d)<=2&&(d=i-1);break;case t.ViewMode.DualPage:s=o%2==0?o:o-1,c=c%2==0?c:c-1,d=d%2==1?d:d-1;break;case t.ViewMode.SinglePage:default:s=o}return{startPage:c,endPage:d,maxVisbilityIndex:s}}),[T,w,A,u,P]),F=M.startPage,D=M.endPage,I=M.maxVisbilityIndex,B=s.useMemo((function(){for(var e=[],t=function(t){var r=T[t],n=p(p({},r),{visibility:void 0!==P[t]?P[t]:-1,measureRef:function(e){e&&(e.setAttribute(yt,"".concat(t)),O.observe(e))}});e.push(n)},r=F;r<=D;r++)t(r);return e}),[F,D,P,T]),j=s.useCallback((function(e,n){var o=S.current.measurements[dt(0,i-1,e)],a=m.current===t.ScrollMode.Page?bt:n;return o?C({left:a.left+o.start.left,top:a.top+o.start.top},r):Promise.resolve()}),[C,r]),N=s.useCallback((function(e,r){var n=S.current.measurements,i=n[e].start,o=n.find((function(e){return e.start.top-i.top>1e-12}));if(!o)return Promise.resolve();var a=o.index;switch(b.current){case t.ViewMode.DualPage:a=a%2==0?a:a+1;break;case t.ViewMode.DualPageWithCover:a=a%2==1?a:a+1}return j(a,r)}),[]),L=s.useCallback((function(e,r){for(var n=S.current.measurements,o=n[e].start,a=e,s=!1,l=i-1;l>=0;l--)if(o.top-n[l].start.top>1e-12){s=!0,a=n[l].index;break}if(!s)return Promise.resolve();switch(b.current){case t.ViewMode.DualPage:a=a%2==0?a:a-1;break;case t.ViewMode.DualPageWithCover:a=a%2==0?a-1:a}return a===e&&(a=e-1),j(a,r)}),[]),Z=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return N(e,r);switch(m.current){case t.ScrollMode.Wrapped:return N(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return j(e+1,r)}}),[]),G=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return L(e,r);switch(m.current){case t.ScrollMode.Wrapped:return L(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return j(e-1,r)}}),[]),z=s.useCallback((function(){return function(e,r){switch(r){case t.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(e.width,"px")};case t.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(e.height,"px"),width:"100%"}}}(R,m.current)}),[R]),U=s.useCallback((function(e){return function(e,r,n){return n!==t.ScrollMode.Page?{}:{height:"".concat(r.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(e.start.top,"px)")}}(e,w,m.current)}),[w]),W=s.useCallback((function(e){return function(e,r,n,i,o){var a,s,l,c,u,d,p,f=r?"right":"left",h=r?-1:1,v=n.length,g=e.start.left*h,m=e.size,b=m.height,y=m.width;if(i===t.ViewMode.DualPageWithCover){var _=o===t.ScrollMode.Page?0:e.start.top;return 0===e.index||v%2==0&&e.index===v-1?((a={height:"".concat(b,"px"),minWidth:"".concat(pt(n,i),"px"),width:"100%"})[f]=0,a.position="absolute",a.top=0,a.transform="translate(".concat(g,"px, ").concat(_,"px)"),a):((s={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,s.position="absolute",s.top=0,s.transform="translate(".concat(g,"px, ").concat(_,"px)"),s)}if(i===t.ViewMode.DualPage)return(l={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,l.position="absolute",l.top=0,l.transform="translate(".concat(g,"px, ").concat(o===t.ScrollMode.Page?0:e.start.top,"px)"),l;switch(o){case t.ScrollMode.Horizontal:return(c={height:"100%",width:"".concat(y,"px")})[f]=0,c.position="absolute",c.top=0,c.transform="translateX(".concat(g,"px)"),c;case t.ScrollMode.Page:return(u={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,u.position="absolute",u.top=0,u;case t.ScrollMode.Wrapped:return(d={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,d.position="absolute",d.top=0,d.transform="translate(".concat(g,"px, ").concat(e.start.top,"px)"),d;case t.ScrollMode.Vertical:default:return(p={height:"".concat(b,"px"),width:"100%"})[f]=0,p.position="absolute",p.top=0,p.transform="translateY(".concat(e.start.top,"px)"),p}}(e,n,l,b.current,m.current)}),[n,l]),q=s.useCallback((function(e,r){var n=S.current,o=n.measurements,a=n.scrollOffset,s=o[dt(0,i-1,r)];if(s){var l=m.current===t.ScrollMode.Page?{left:s.start.left,top:s.start.top}:{left:a.left*e,top:a.top*e};return C(l,!1)}return Promise.resolve()}),[]);return s.useEffect((function(){return function(){O.disconnect()}}),[]),{boundingClientRect:w,isSmoothScrolling:f,startPage:F,endPage:D,maxVisbilityIndex:I,virtualItems:B,getContainerStyles:z,getItemContainerStyles:U,getItemStyles:W,scrollToItem:j,scrollToNextItem:Z,scrollToPreviousItem:G,zoom:q}},Ct=function(e,r,n,i,o,a){var s=n;switch(!0){case o===t.ViewMode.DualPageWithCover&&a>=3:case o===t.ViewMode.DualPage&&a>=3:s=2*n;break;default:s=n}switch(i){case t.SpecialZoomLevel.ActualSize:return 1;case t.SpecialZoomLevel.PageFit:return Math.min((e.clientWidth-17)/s,(e.clientHeight-16)/r);case t.SpecialZoomLevel.PageWidth:return(e.clientWidth-17)/s}},wt=function e(t){var r=[];return t.map((function(t){r=r.concat(t).concat(function(t){var r=[];return t.items&&t.items.length>0&&(r=r.concat(e(t.items))),r}(t))})),r},St={capture:!1,passive:!0},kt={height:0,width:0},xt={height:0,width:0},Pt=function(e){var r=e.getCurrentPage,n=e.getCurrentScrollMode,i=e.jumpToPage,o=e.targetRef,a=s.useState(t.FullScreenMode.Normal),l=a[0],c=a[1],u=function(){var e=s.useState(kt),t=e[0],r=e[1],n=M((function(){r({height:window.innerHeight,width:window.innerWidth})}),100);return g((function(){return window.addEventListener("resize",n,St),function(){window.removeEventListener("resize",n,St)}}),[]),t}(),d=s.useState(xt),p=d[0],f=d[1],h=s.useRef(xt),v=s.useRef(r()),m=s.useRef(xt),b=s.useState(o.current),y=b[0],_=b[1],A=s.useRef();g((function(){o.current!==y&&_(o.current)}),[]),g((function(){if(y){var e=new ResizeObserver((function(e){e.forEach((function(e){var t=e.target.getBoundingClientRect(),r=t.height,n=t.width;f({height:r,width:n})}))}));return e.observe(y),function(){e.unobserve(y),e.disconnect()}}}),[y]);var C=s.useCallback((function(e){var r=R();return r&&r!==e?(c(t.FullScreenMode.Normal),T(r)):Promise.resolve()}),[]),w=s.useCallback((function(e){e&&O()&&(_(e),C(e).then((function(){A.current=e,c(t.FullScreenMode.Entering),function(e){P&&e[E.RequestFullScreen]()}(e)})))}),[]),S=s.useCallback((function(){R()&&(c(t.FullScreenMode.Exitting),T(document))}),[]),k=s.useCallback((function(){y&&R()!==y&&c(t.FullScreenMode.Exitting)}),[y]);return s.useEffect((function(){switch(l){case t.FullScreenMode.Entering:A.current&&(A.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),v.current=r(),h.current={height:window.innerHeight,width:window.innerWidth};break;case t.FullScreenMode.Entered:n()===t.ScrollMode.Page?i(v.current).then((function(){c(t.FullScreenMode.EnteredCompletely)})):c(t.FullScreenMode.EnteredCompletely);break;case t.FullScreenMode.Exitting:A.current&&(A.current.style.backgroundColor="",A.current=null),v.current=r();break;case t.FullScreenMode.Exited:c(t.FullScreenMode.Normal),n()===t.ScrollMode.Page&&i(v.current)}}),[l]),s.useEffect((function(){if(l!==t.FullScreenMode.Normal)return l===t.FullScreenMode.Entering&&u.height===p.height&&u.width===p.width&&u.height>0&&u.width>0&&(0===m.current.height||u.height==m.current.height)?(m.current={height:window.innerHeight,width:window.innerWidth},void c(t.FullScreenMode.Entered)):void(l===t.FullScreenMode.Exitting&&h.current.height===u.height&&h.current.width===u.width&&u.height>0&&u.width>0&&c(t.FullScreenMode.Exited))}),[l,u,p]),s.useEffect((function(){var e;return e=k,P&&document.addEventListener(E.FullScreenChange,e),function(){!function(e){P&&document.removeEventListener(E.FullScreenChange,e)}(k)}}),[y]),{enterFullScreenMode:w,exitFullScreenMode:S,fullScreenMode:l}},Et={buildPageStyles:function(){return{}},transformSize:function(e){return e.size}},Ot={left:0,top:0},Tt=function(e){var r=e.currentFile,n=e.defaultScale,i=e.doc,o=e.enableSmoothScroll,a=e.initialPage,l=e.initialRotation,c=e.initialScale,u=e.pageLayout,d=e.pageSizes,f=e.plugins,m=e.renderPage,b=e.scrollMode,y=e.setRenderRange,_=e.viewMode,A=e.viewerState,C=e.onDocumentLoad,w=e.onOpenFile,S=e.onPageChange,k=e.onRotate,x=e.onRotatePage,P=e.onZoom,E=i.numPages,O=i.loadingTask.docId,T=s.useContext(L).l10n,R=s.useContext(h),I=R.direction===t.TextDirection.RightToLeft,B=s.useRef(),N=s.useRef(),Z=s.useState(a),G=Z[0],z=Z[1],U=s.useRef(null),W=function(e){var t,r=e.getCurrentPage,n=(t=s.useRef([]),s.useEffect((function(){return function(){t.current=[]}}),[]),{push:function(e){var r=t.current;r.length+1>50&&r.shift(),r.push(e),t.current=r},map:function(e){return t.current.map((function(t){return e(t)}))},pop:function(){var e=t.current;if(0===e.length)return null;var r=e.pop();return t.current=e,r}}),i=function(e){var t=s.useRef([]);return s.useEffect((function(){return function(){t.current=[]}}),[]),{dequeue:function(){var e=t.current;if(0===e.length)return null;var r=e.shift();return t.current=e,r||null},enqueue:function(e){var r=t.current;r.length+1>50&&r.pop(),t.current=[e].concat(r)},map:function(e){return t.current.map((function(t){return e(t)}))}}}(),o=s.useCallback((function(e){n.push(e)}),[]);return{getNextDestination:function e(){var t=i.dequeue();return t&&n.push(t),t&&t.pageIndex===r()?e():t},getPreviousDestination:function e(){var t=n.pop();return t&&i.enqueue(t),t&&t.pageIndex===r()?e():t},markVisitedDestination:o}}({getCurrentPage:function(){return be.current.pageIndex}}),q=s.useState(l),H=q[0],V=q[1],Y=D(H),K=s.useState(!1),X=K[0],$=K[1],Q=s.useState(new Map),J=Q[0],ee=Q[1],te=s.useState(b),re=te[0],ne=te[1],ie=D(re),oe=s.useState(_),ae=oe[0],se=oe[1],le=D(ae),ue=function(e){var t=F(),r=s.useState([]),n=r[0],i=r[1];return s.useEffect((function(){e.getOutline().then((function(e){if(t.current&&null!==e){var r=wt(e);i(r)}}))}),[]),n}(i),fe=s.useState(c),he=fe[0],ge=fe[1],me=D(he),be=s.useRef(A),ye=s.useRef("string"==typeof n?n:null),_e=s.useRef(-1),Ae=s.useRef(-1),Ce=s.useRef(a),we=Pt({getCurrentPage:function(){return be.current.pageIndex},getCurrentScrollMode:function(){return be.current.scrollMode},jumpToPage:function(e){return We(e)},targetRef:N}),Se=s.useState(-1),ke=Se[0],xe=Se[1],Pe=s.useState(0),Ee=Pe[0],Oe=Pe[1],Te=j({doc:i});s.useEffect((function(){return function(){de.clear(),pe.clear()}}),[O]);var Re=s.useMemo((function(){return Object.assign({},Et,u)}),[]),Me=s.useMemo((function(){return Array(E).fill(0).map((function(e,t){var r=[d[t].pageHeight,d[t].pageWidth],n=Math.abs(H)%180==0?{height:r[0],width:r[1]}:{height:r[1],width:r[0]},i={height:n.height*he,width:n.width*he};return Re.transformSize({numPages:E,pageIndex:t,size:i})}))}),[H,he]),Fe=At({enableSmoothScroll:o,isRtl:I,numberOfItems:E,parentRef:N,scrollMode:re,setRenderRange:y,sizes:Me,viewMode:ae}),De=M((function(){!ye.current||be.current.fullScreenMode!==t.FullScreenMode.Normal||a>0&&Ce.current===a||$e(ye.current)}),200);!function(e){var t=e.targetRef,r=e.onResize;g((function(){var e=new ResizeObserver((function(e){e.forEach((function(e){r(e.target)}))})),n=t.current;if(n)return e.observe(n),function(){e.unobserve(n)}}),[])}({targetRef:N,onResize:De});var Ie=function(e){var t=e;f.forEach((function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))})),be.current=t},Be=function(){return N.current},je=function(){return be.current},Ne=s.useCallback((function(e){W.markVisitedDestination(e)}),[]),Le=s.useCallback((function(e){var r=e.pageIndex,n=e.bottomOffset,o=e.leftOffset,a=e.scaleTo,s=N.current,l=be.current;return s&&l?new Promise((function(e,c){ve(i,r).then((function(i){var c=i.getViewport({scale:1}),u=0,p=("function"==typeof n?n(c.width,c.height):n)||0,f=("function"==typeof o?o(c.width,c.height):o)||0,h=l.scale;switch(a){case t.SpecialZoomLevel.PageFit:u=0,f=0,$e(t.SpecialZoomLevel.PageFit);break;case t.SpecialZoomLevel.PageWidth:h=Ct(s,d[r].pageHeight,d[r].pageWidth,t.SpecialZoomLevel.PageWidth,_,E),u=(c.height-p)*h,f*=h,$e(h);break;default:u=(c.height-p)*h,f*=h}switch(l.scrollMode){case t.ScrollMode.Horizontal:Fe.scrollToItem(r,{left:f,top:0}).then((function(){e()}));break;case t.ScrollMode.Vertical:default:Fe.scrollToItem(r,{left:0,top:u}).then((function(){e()}))}}))})):Promise.resolve()}),[]),Ze=s.useCallback((function(e){return W.markVisitedDestination(e),Le(e)}),[]),Ge=s.useCallback((function(){var e=W.getNextDestination();return e?Le(e):Promise.resolve()}),[]),ze=s.useCallback((function(){var e=W.getPreviousDestination();return e?Le(e):Promise.resolve()}),[]),Ue=s.useCallback((function(){return Fe.scrollToNextItem(be.current.pageIndex,Ot)}),[]),We=s.useCallback((function(e){return 0<=e&&e=E)){var n=d[r].pageHeight,o=d[r].pageWidth,a=t?"string"==typeof e?Ct(t,n,o,e,be.current.viewMode,E):e:1;ye.current="string"==typeof e?e:null,a!==be.current.scale&&(Oe((function(e){return e+1})),Te.markNotRendered(),ge(a),P({doc:i,scale:a}),Ie(p(p({},be.current),{scale:a})))}}),[]),Qe=s.useCallback((function(e){we.enterFullScreenMode(e)}),[]),Je=s.useCallback((function(){we.exitFullScreenMode()}),[]);s.useEffect((function(){Ie(p(p({},be.current),{fullScreenMode:we.fullScreenMode}))}),[we.fullScreenMode]),s.useEffect((function(){var e={enterFullScreenMode:Qe,exitFullScreenMode:Je,getPagesContainer:Be,getViewerState:je,jumpToDestination:Ze,jumpToNextDestination:Ge,jumpToPreviousDestination:ze,jumpToNextPage:Ue,jumpToPreviousPage:qe,jumpToPage:We,openFile:He,rotate:Ve,rotatePage:Ye,setViewerState:Ie,switchScrollMode:Ke,switchViewMode:Xe,zoom:$e};return f.forEach((function(t){t.install&&t.install(e)})),function(){f.forEach((function(t){t.uninstall&&t.uninstall(e)}))}}),[O]),s.useEffect((function(){C({doc:i,file:r}),f.forEach((function(e){e.onDocumentLoad&&e.onDocumentLoad({doc:i,file:r})}))}),[O]);var et,tt,rt,nt=Fe.boundingClientRect;et=function(){a&&We(a)},tt=nt.height>0&&nt.width>0,rt=s.useRef(!1),g((function(){tt&&!rt.current&&(rt.current=!0,et())}),[et,tt]),g((function(){var e=be.current.pageIndex;e>-1&&ie!==re&&Fe.scrollToItem(e,Ot).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(o||Te.markNotRendered(),_e.current=-1)}))}),[re]),g((function(){var e=be.current.pageIndex;e>-1&&Y!==H&&Fe.scrollToItem(e,Ot)}),[H]),g((function(){0!=me&&me!=be.current.scale&&Fe.zoom(be.current.scale/me,be.current.pageIndex).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(Ae.current=-1)}))}),[he]),g((function(){if(le!==be.current.viewMode){var e=Fe.startPage,t=Fe.endPage,r=Fe.virtualItems;Te.markNotRendered(),Te.setRange(e,t);for(var n=function(e){var t=r.find((function(t){return t.index===e}));t&&Te.setVisibility(e,t.visibility)},i=e;i<=t;i++)n(i);at()}}),[ae]),g((function(){var e=be.current.pageIndex;e>-1&&le!==ae&&Fe.scrollToItem(e,Ot)}),[ae]),g((function(){var e=be.current.pageIndex;e>0&&e===a&&Ce.current===a&&ye.current&&(Ce.current=-1,$e(ye.current))}),[G]),s.useEffect((function(){Fe.isSmoothScrolling||null!==U.current&&U.current===G||(U.current=G,S({currentPage:G,doc:i}))}),[G,Fe.isSmoothScrolling]),s.useEffect((function(){we.fullScreenMode===t.FullScreenMode.Entering&&be.current.scrollMode===t.ScrollMode.Page&&(_e.current=be.current.pageIndex),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&be.current.scrollMode===t.ScrollMode.Page&&o&&(_e.current=-1),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&ye.current&&(Ae.current=be.current.pageIndex,$e(ye.current))}),[we.fullScreenMode]),s.useEffect((function(){if(we.fullScreenMode!==t.FullScreenMode.Entering&&we.fullScreenMode!==t.FullScreenMode.Exitting&&!Fe.isSmoothScrolling){var e=Fe.startPage,r=Fe.endPage,n=Fe.maxVisbilityIndex,i=Fe.virtualItems,o=n,a=we.fullScreenMode===t.FullScreenMode.Entered||we.fullScreenMode===t.FullScreenMode.EnteredCompletely;if(!(a&&o!==_e.current&&_e.current>-1||a&&o!==Ae.current&&Ae.current>-1)){z(o),Ie(p(p({},be.current),{pageIndex:o})),Te.setRange(e,r);for(var s=function(e){var t=i.find((function(t){return t.index===e}));t&&Te.setVisibility(e,t.visibility)},l=e;l<=r;l++)s(l);at()}}}),[Fe.startPage,Fe.endPage,Fe.isSmoothScrolling,Fe.maxVisbilityIndex,we.fullScreenMode,X,H,he]);var it=s.useCallback((function(e){Te.markRendered(e),at()}),[Ee]),at=function(){var e=Te.getHighestPriorityPage();e>-1&&Te.isInRange(e)&&(Te.markRendering(e),xe(e))},st=function(e){var t=G-1,r=G+1;switch(e){case"FirstPage":We(0);break;case"LastPage":We(E-1);break;case"NextPage":r=0&&We(t)}},lt=s.useCallback((function(){var e=Fe.virtualItems,r=[];switch(ae){case t.ViewMode.DualPage:r=ce(e,2);break;case t.ViewMode.DualPageWithCover:e.length&&(r=0===e[0].index?[[e[0]]].concat(ce(e.slice(1),2)):ce(e,2));break;case t.ViewMode.SinglePage:default:r=ce(e,1)}var n=T&&T.core?T.core.pageLabel:"Page {{pageIndex}}",o={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:B,style:{height:"100%"}},children:s.createElement(s.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:v({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":re===t.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":I,"rpv-core__inner-pages--single":re===t.ScrollMode.Page,"rpv-core__inner-pages--vertical":re===t.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":re===t.ScrollMode.Wrapped}),ref:N,style:{height:"100%",position:"relative"}},children:s.createElement("div",{"data-testid":"core__inner-current-page-".concat(G),style:Object.assign({"--scale-factor":he},Fe.getContainerStyles())},r.map((function(e){return s.createElement("div",{className:v({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":re===t.ScrollMode.Page}),style:Fe.getItemContainerStyles(e[0]),key:"".concat(e[0].index,"-").concat(ae)},e.map((function(e){var r=ae===t.ViewMode.DualPageWithCover&&(0===e.index||E%2==0&&e.index===E-1);return s.createElement("div",{"aria-label":n.replace("{{pageIndex}}","".concat(e.index+1)),className:v({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":ae===t.ViewMode.DualPage&&e.index%2==0,"rpv-core__inner-page--dual-odd":ae===t.ViewMode.DualPage&&e.index%2==1,"rpv-core__inner-page--dual-cover":r,"rpv-core__inner-page--dual-cover-even":ae===t.ViewMode.DualPageWithCover&&!r&&e.index%2==0,"rpv-core__inner-page--dual-cover-odd":ae===t.ViewMode.DualPageWithCover&&!r&&e.index%2==1,"rpv-core__inner-page--single":ae===t.ViewMode.SinglePage&&re===t.ScrollMode.Page}),role:"region",key:"".concat(e.index,"-").concat(ae),style:Object.assign({},Fe.getItemStyles(e),Re.buildPageStyles({numPages:E,pageIndex:e.index,scrollMode:re,viewMode:ae}))},s.createElement(ot,{doc:i,measureRef:e.measureRef,outlines:ue,pageIndex:e.index,pageRotation:J.has(e.index)?J.get(e.index):0,pageSize:d[e.index],plugins:f,renderPage:m,renderQueueKey:Ee,rotation:H,scale:he,shouldRender:ke===e.index,viewMode:ae,onExecuteNamedAction:st,onJumpFromLinkAnnotation:Ne,onJumpToDest:Ze,onRenderCompleted:it,onRotatePage:Ye}))})))})))}};return f.forEach((function(e){e.renderViewer&&(o=e.renderViewer({containerRef:B,doc:i,pagesContainerRef:N,pagesRotation:J,pageSizes:d,rotation:H,slot:o,themeContext:R,jumpToPage:We,openFile:He,rotate:Ve,rotatePage:Ye,switchScrollMode:Ke,switchViewMode:Xe,zoom:$e}))})),o}),[f,Fe]),ct=s.useCallback((function(e){return s.createElement("div",p({},e.attrs,{style:e.attrs&&e.attrs.style?e.attrs.style:{}}),e.children,e.subSlot&&ct(e.subSlot))}),[]);return ct(lt())},Rt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],Mt=function(e){var r=e.defaultScale,n=e.doc,i=e.render,o=e.scrollMode,a=e.viewMode,l=s.useRef(),c=s.useState({pageSizes:[],scale:0}),u=c[0],d=c[1];return s.useLayoutEffect((function(){var e=Array(n.numPages).fill(0).map((function(e,t){return new Promise((function(e,r){ve(n,t).then((function(t){var r=t.getViewport({scale:1});e({pageHeight:r.height,pageWidth:r.width,rotation:r.rotation})}))}))}));Promise.all(e).then((function(e){var i=l.current;if(i&&0!==e.length){var s=e[0].pageWidth,c=e[0].pageHeight,u=i.parentElement,p=(u.clientWidth-45)/s,f=(u.clientHeight-45)/c,h=p;switch(o){case t.ScrollMode.Horizontal:h=Math.min(p,f);break;case t.ScrollMode.Vertical:default:h=p}var v,g,m=r?"string"==typeof r?Ct(u,c,s,r,a,n.numPages):r:(v=h,-1===(g=Rt.findIndex((function(e){return e>=v})))||0===g?v:Rt[g-1]);d({pageSizes:e,scale:m})}}))}),[n.loadingTask.docId]),0===u.pageSizes.length||0===u.scale?s.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:l},s.createElement(A,null)):i(u.pageSizes,u.scale)},Ft=function(){},Dt=function(e){function t(t,r){var n=e.call(this)||this;return n.verifyPassword=t,n.passwordStatus=r,n}return u(t,e),t}(Ft),It=function(e){var r=e.passwordStatus,n=e.renderProtectedView,i=e.verifyPassword,o=e.onDocumentAskPassword,a=s.useContext(L).l10n,l=s.useState(""),c=l[0],u=l[1],d=s.useContext(h).direction===t.TextDirection.RightToLeft,p=function(){return i(c)};return s.useEffect((function(){o&&o({verifyPassword:i})}),[]),n?n({passwordStatus:r,verifyPassword:i}):s.createElement("div",{className:"rpv-core__asking-password-wrapper"},s.createElement("div",{className:v({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":d})},s.createElement("div",{className:"rpv-core__asking-password-message"},r===t.PasswordStatus.RequiredPassword&&a.core.askingPassword.requirePasswordToOpen,r===t.PasswordStatus.WrongPassword&&a.core.wrongPassword.tryAgain),s.createElement("div",{className:"rpv-core__asking-password-body"},s.createElement("div",{className:v({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!d,"rpv-core__asking-password-input--rtl":d})},s.createElement(C,{testId:"core__asking-password-input",type:"password",value:c,onChange:u,onKeyDown:function(e){"Enter"===e.key&&p()}})),s.createElement(_,{onClick:p},a.core.askingPassword.submit))))},Bt=function(e){function t(t){var r=e.call(this)||this;return r.doc=t,r}return u(t,e),t}(Ft),jt=function(e){function t(t){var r=e.call(this)||this;return r.error=t,r}return u(t,e),t}(Ft),Nt=function(e){function t(t){var r=e.call(this)||this;return r.percentages=t,r}return u(t,e),t}(Ft),Lt=function(e){var r=e.characterMap,n=e.file,i=e.httpHeaders,o=e.render,a=e.renderError,c=e.renderLoader,u=e.renderProtectedView,d=e.transformGetDocumentParams,p=e.withCredentials,f=e.onDocumentAskPassword,g=s.useContext(h).direction===t.TextDirection.RightToLeft,m=s.useState(new Nt(0)),b=m[0],y=m[1],_=s.useRef(""),C=F();return s.useEffect((function(){_.current="",y(new Nt(0));var e=new l.PDFWorker({name:"PDFWorker_".concat(Date.now())}),o=Object.assign({httpHeaders:i,withCredentials:p,worker:e},"string"==typeof n?{url:n}:{data:n},r?{cMapUrl:r.url,cMapPacked:r.isCompressed}:{}),a=d?d(o):o,s=l.getDocument(a);return s.onPassword=function(e,r){switch(r){case l.PasswordResponses.NEED_PASSWORD:C.current&&y(new Dt(e,t.PasswordStatus.RequiredPassword));break;case l.PasswordResponses.INCORRECT_PASSWORD:C.current&&y(new Dt(e,t.PasswordStatus.WrongPassword))}},s.onProgress=function(e){var t=e.total>0?Math.min(100,100*e.loaded/e.total):100;C.current&&""===_.current&&y(new Nt(t))},s.promise.then((function(e){_.current=e.loadingTask.docId,C.current&&y(new Bt(e))}),(function(t){return C.current&&!e.destroyed&&y(new jt({message:t.message||"Cannot load document",name:t.name}))})),function(){s.destroy(),e.destroy()}}),[n]),b instanceof Dt?s.createElement(It,{passwordStatus:b.passwordStatus,renderProtectedView:u,verifyPassword:b.verifyPassword,onDocumentAskPassword:f}):b instanceof Bt?o(b.doc):b instanceof jt?a?a(b.error):s.createElement("div",{className:v({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":g})},s.createElement("div",{className:"rpv-core__doc-error-text"},b.error.message)):s.createElement("div",{"data-testid":"core__doc-loading",className:v({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":g})},c?c(b.percentages):s.createElement(A,null))},Zt=function(e){return{startPage:e.startPage-3,endPage:e.endPage+3}};t.Button=function(e){var r=e.children,n=e.testId,i=e.onClick,o=s.useContext(h).direction===t.TextDirection.RightToLeft,a=n?{"data-testid":n}:{};return s.createElement("button",p({className:v({"rpv-core__button":!0,"rpv-core__button--rtl":o}),type:"button",onClick:i},a),r)},t.Icon=b,t.LazyRender=function(e){var t=e.attrs,r=e.children,n=e.testId,i=s.useState(!1),o=i[0],a=i[1],l=n?p(p({},t),{"data-testid":n}):t,c=m({once:!0,onVisibilityChanged:function(e){e.isVisible&&a(!0)}});return s.createElement("div",p({ref:c},l),o&&r)},t.LocalizationContext=L,t.Menu=function(e){var r=e.children,n=s.useRef(),i=s.useRef([]),o=s.useContext(h).direction===t.TextDirection.RightToLeft,a=function(e){if(n.current)switch(e.key){case"Tab":e.preventDefault();break;case"ArrowDown":e.preventDefault(),l((function(e,t){return t+1}));break;case"ArrowUp":e.preventDefault(),l((function(e,t){return t-1}));break;case"End":e.preventDefault(),l((function(e,t){return e.length-1}));break;case"Home":e.preventDefault(),l((function(e,t){return 0}))}},l=function(e){if(n.current){var t=i.current,r=t.findIndex((function(e){return"0"===e.getAttribute("tabindex")})),o=Math.min(t.length-1,Math.max(0,e(t,r)));r>=0&&r<=t.length-1&&t[r].setAttribute("tabindex","-1"),t[o].setAttribute("tabindex","0"),t[o].focus()}};return g((function(){var e=n.current;if(e){var t=function(e){var t=[];return e.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach((function(r){if(r instanceof HTMLElement){var n=r.parentElement;(n===e||"none"!==window.getComputedStyle(n).display)&&t.push(r)}})),t}(e);i.current=t}}),[]),g((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[]),s.createElement("div",{ref:n,"aria-orientation":"vertical",className:v({"rpv-core__menu":!0,"rpv-core__menu--rtl":o}),role:"menu",tabIndex:0},r)},t.MenuDivider=function(){return s.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},t.MenuItem=function(e){var r=e.checked,n=void 0!==r&&r,i=e.children,o=e.icon,a=void 0===o?null:o,l=e.isDisabled,c=void 0!==l&&l,u=e.testId,d=e.onClick,f=s.useContext(h).direction===t.TextDirection.RightToLeft,g=u?{"data-testid":u}:{};return s.createElement("button",p({className:v({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":c,"rpv-core__menu-item--ltr":!f,"rpv-core__menu-item--rtl":f}),role:"menuitem",tabIndex:-1,type:"button",onClick:d},g),s.createElement("div",{className:v({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!f,"rpv-core__menu-item-icon--rtl":f})},a),s.createElement("div",{className:v({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!f,"rpv-core__menu-item-label--rtl":f})},i),s.createElement("div",{className:v({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!f,"rpv-core__menu-item-check--rtl":f})},n&&s.createElement(y,null)))},t.MinimalButton=function(e){var r=e.ariaLabel,n=void 0===r?"":r,i=e.ariaKeyShortcuts,o=void 0===i?"":i,a=e.children,l=e.isDisabled,c=void 0!==l&&l,u=e.isSelected,d=void 0!==u&&u,f=e.testId,g=e.onClick,m=s.useContext(h).direction===t.TextDirection.RightToLeft,b=f?{"data-testid":f}:{};return s.createElement("button",p({"aria-label":n},o&&{"aria-keyshortcuts":o},c&&{"aria-disabled":!0},{className:v({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":c,"rpv-core__minimal-button--rtl":m,"rpv-core__minimal-button--selected":d}),type:"button",onClick:g},b),a)},t.Modal=function(e){var t=e.ariaControlsSuffix,r=e.closeOnClickOutside,n=e.closeOnEscape,i=e.content,o=e.isOpened,a=void 0!==o&&o,l=e.target,c=t||"".concat(G());return s.createElement(Y,{target:l?function(e,t){return s.createElement("div",{"aria-expanded":t?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(c)},l(e,t))}:null,content:function(e){return s.createElement(q,null,s.createElement(W,{ariaControlsSuffix:c,closeOnClickOutside:r,closeOnEscape:n,onToggle:e},i(e)))},isOpened:a})},t.Popover=function(e){var t=e.ariaHasPopup,r=void 0===t?"dialog":t,n=e.ariaControlsSuffix,i=e.closeOnClickOutside,o=e.closeOnEscape,a=e.content,l=e.lockScroll,c=void 0===l||l,u=e.offset,d=e.position,p=e.target,f=V(!1),h=f.opened,v=f.toggle,g=s.useRef(),m=s.useMemo((function(){return n||"".concat(G())}),[]);return s.createElement("div",{ref:g,"aria-expanded":h?"true":"false","aria-haspopup":r,"aria-controls":"rpv-core__popver-body-".concat(m)},p(v,h),h&&s.createElement(s.Fragment,null,c&&s.createElement(ae,{closeOnEscape:o,onClose:v}),s.createElement(oe,{ariaControlsSuffix:m,closeOnClickOutside:i,offset:u,position:d,targetRef:g,onClose:v},a(v))))},t.PrimaryButton=_,t.ProgressBar=function(e){var r=e.progress,n=s.useContext(h).direction===t.TextDirection.RightToLeft;return s.createElement("div",{className:v({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":n})},s.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(r,"%")}},r,"%"))},t.Separator=function(){return s.createElement("div",{className:"rpv-core__separator"})},t.Spinner=A,t.Splitter=function(e){var r=e.constrain,n=s.useContext(h).direction===t.TextDirection.RightToLeft,i=s.useRef(),o=s.useRef(),a=s.useRef(),l=s.useRef(0),c=s.useRef(0),u=s.useRef(0),d=s.useRef(0),p={capture:!0},f=function(e){var t=i.current,s=o.current,c=a.current;if(t&&s&&c){var p=d.current,f=e.clientX-l.current,h=u.current+(n?-f:f),v=t.parentElement.getBoundingClientRect().width,g=100*h/v;if(t.classList.add("rpv-core__splitter--resizing"),r){var m=v-h-p;if(!r({firstHalfPercentage:g,firstHalfSize:h,secondHalfPercentage:100*m/v,secondHalfSize:m}))return}s.style.width="".concat(g,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),s.classList.add("rpv-core__splitter-sibling--resizing"),c.classList.add("rpv-core__splitter-sibling--resizing")}},v=function e(t){var r=i.current,n=o.current,s=a.current;r&&n&&s&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),r.classList.remove("rpv-core__splitter--resizing"),n.classList.remove("rpv-core__splitter-sibling--resizing"),s.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",f,p),document.removeEventListener("mouseup",e,p))};return s.useEffect((function(){var e=i.current;e&&(d.current=e.getBoundingClientRect().width,o.current=e.previousElementSibling,a.current=e.nextElementSibling)}),[]),s.createElement("div",{ref:i,className:"rpv-core__splitter",onMouseDown:function(e){var t=o.current;t&&(l.current=e.clientX,c.current=e.clientY,u.current=t.getBoundingClientRect().width,document.addEventListener("mousemove",f,p),document.addEventListener("mouseup",v,p))}})},t.TextBox=C,t.ThemeContext=h,t.Tooltip=function(e){var r=e.ariaControlsSuffix,n=e.content,i=e.offset,o=e.position,a=e.target,l=V(!1),c=l.opened,u=l.toggle,d=s.useRef(),p=s.useRef(),f=s.useMemo((function(){return r||"".concat(G())}),[]);U((function(){d.current&&document.activeElement&&d.current.contains(document.activeElement)&&v()}));var h=function(){u(t.ToggleStatus.Open)},v=function(){u(t.ToggleStatus.Close)};return s.createElement(s.Fragment,null,s.createElement("div",{ref:d,"aria-describedby":"rpv-core__tooltip-body-".concat(f),onBlur:function(e){e.relatedTarget instanceof HTMLElement&&e.currentTarget.parentElement&&e.currentTarget.parentElement.contains(e.relatedTarget)?p.current&&(p.current.style.display="none"):v()},onFocus:h,onMouseEnter:h,onMouseLeave:v},a),c&&s.createElement(se,{ariaControlsSuffix:f,contentRef:p,offset:i,position:o,targetRef:d},n()))},t.Viewer=function(e){var r=e.characterMap,n=e.defaultScale,i=e.enableSmoothScroll,o=void 0===i||i,a=e.fileUrl,l=e.httpHeaders,c=void 0===l?{}:l,u=e.initialPage,d=void 0===u?0:u,p=e.pageLayout,f=e.initialRotation,v=void 0===f?0:f,g=e.localization,b=e.plugins,y=void 0===b?[]:b,_=e.renderError,A=e.renderLoader,C=e.renderPage,w=e.renderProtectedView,S=e.scrollMode,k=void 0===S?t.ScrollMode.Vertical:S,x=e.setRenderRange,P=void 0===x?Zt:x,E=e.transformGetDocumentParams,O=e.theme,T=void 0===O?{direction:t.TextDirection.LeftToRight,theme:"light"}:O,R=e.viewMode,M=void 0===R?t.ViewMode.SinglePage:R,F=e.withCredentials,I=void 0!==F&&F,B=e.onDocumentAskPassword,j=e.onDocumentLoad,Z=void 0===j?function(){}:j,G=e.onPageChange,z=void 0===G?function(){}:G,U=e.onRotate,W=void 0===U?function(){}:U,q=e.onRotatePage,H=void 0===q?function(){}:q,V=e.onSwitchTheme,Y=void 0===V?function(){}:V,K=e.onZoom,X=void 0===K?function(){}:K,$=s.useState({data:a,name:"string"==typeof a?a:"",shouldLoad:!1}),Q=$[0],J=$[1],ee=function(e,t){J({data:t,name:e,shouldLoad:!0})},te=s.useState(!1),re=te[0],ne=te[1],ie=D(Q);s.useEffect((function(){var e,t,r,n;e=ie.data,n=typeof(t=a),"string"===(r=typeof e)&&"string"===n&&e===t||"object"===r&&"object"===n&&e.length===t.length&&e.every((function(e,r){return e===t[r]}))||J({data:a,name:"string"==typeof a?a:"",shouldLoad:re})}),[a,re]);var oe=m({onVisibilityChanged:function(e){ne(e.isVisible),e.isVisible&&J((function(e){return Object.assign({},e,{shouldLoad:!0})}))}}),ae="string"==typeof T?{direction:t.TextDirection.LeftToRight,theme:T}:T,se=s.useState(g||N),le=se[0],ce=se[1],ue={l10n:le,setL10n:ce},de=Object.assign({},{direction:ae.direction},function(e,t){var r=s.useMemo((function(){return"auto"===e?"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}),[]),n=s.useState(r),i=n[0],o=n[1],a=D(i);return s.useEffect((function(){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),r=function(e){o(e.matches?"dark":"light")};return t.addEventListener("change",r),function(){return t.removeEventListener("change",r)}}}),[]),s.useEffect((function(){i!==a&&t&&t(i)}),[i]),s.useEffect((function(){e!==i&&o(e)}),[e]),{currentTheme:i,setCurrentTheme:o}}(ae.theme||"light",Y));return s.useEffect((function(){g&&ce(g)}),[g]),s.createElement(L.Provider,{value:ue},s.createElement(h.Provider,{value:de},s.createElement("div",{ref:oe,className:"rpv-core__viewer rpv-core__viewer--".concat(de.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},Q.shouldLoad&&s.createElement(Lt,{characterMap:r,file:Q.data,httpHeaders:c,render:function(e){return s.createElement(Mt,{defaultScale:n,doc:e,render:function(r,i){return s.createElement(Tt,{currentFile:{data:Q.data,name:Q.name},defaultScale:n,doc:e,enableSmoothScroll:o,initialPage:d,initialRotation:v,initialScale:i,pageLayout:p,pageSizes:r,plugins:y,renderPage:C,scrollMode:k,setRenderRange:P,viewMode:M,viewerState:{file:Q,fullScreenMode:t.FullScreenMode.Normal,pageIndex:-1,pageHeight:r[0].pageHeight,pageWidth:r[0].pageWidth,pagesRotation:new Map,rotation:v,scale:i,scrollMode:k,viewMode:M},onDocumentLoad:Z,onOpenFile:ee,onPageChange:z,onRotate:W,onRotatePage:H,onZoom:X})},scrollMode:k,viewMode:M})},renderError:_,renderLoader:A,renderProtectedView:w,transformGetDocumentParams:E,withCredentials:I,onDocumentAskPassword:B}))))},t.Worker=function(e){var t=e.children,r=e.workerUrl;return l.GlobalWorkerOptions.workerSrc=r,s.createElement(s.Fragment,null,t)},t.chunk=ce,t.classNames=v,t.createStore=function(e){var t=e||{},r={},n=function(e,n){var i;t=p(p({},t),((i={})[e]=n,i)),(r[e]||[]).forEach((function(r){return r(t[e])}))},i=function(e){return t[e]};return{subscribe:function(e,t){r[e]=(r[e]||[]).concat(t)},unsubscribe:function(e,t){r[e]=(r[e]||[]).filter((function(e){return e!==t}))},update:function(e,t){n(e,t)},updateCurrentValue:function(e,t){var r=i(e);void 0!==r&&n(e,t(r))},get:function(e){return i(e)}}},t.getDestination=ge,t.getPage=ve,t.isFullScreenEnabled=O,t.isMac=function(){return"undefined"!=typeof window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},t.useDebounceCallback=M,t.useIntersectionObserver=m,t.useIsMounted=F,t.useIsomorphicLayoutEffect=g,t.usePrevious=D,t.useRenderQueue=j},20422:function(e,t,r){"use strict";e.exports=r(85042)},83597:function(e,t,r){"use strict";var n=r(20422);var i=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(r(21914)),o=function(){return i.createElement(n.Icon,{size:16},i.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),i.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=200&&e.status<=299},R=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function M(e){if(!(0,o.PO)(e))return e;for(var t=y({},e),r=0,n=Object.entries(t);r=u)}var h=(0,o.hg)(r+"/executeQuery",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[o.s4]=!0,e},condition:function(e,t){var n,i,o,a=(0,t.getState)(),l=null==(i=null==(n=a[r])?void 0:n.queries)?void 0:i[e.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,u=e.originalArgs,d=null==l?void 0:l.originalArgs,p=s[e.endpointName];return!!H(e)||"pending"!==(null==l?void 0:l.status)&&(!!f(e,a)||!(!G(p)||!(null==(o=null==p?void 0:p.forceRefetch)?void 0:o.call(p,{currentArg:u,previousArg:d,endpointState:l,state:a})))||!c)},dispatchConditionRejection:!0}),v=(0,o.hg)(r+"/executeMutation",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[o.s4]=!0,e}});function g(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:h,mutationThunk:v,prefetch:function(e,t,r){return function(n,i){var o=function(e){return"force"in e}(r)&&r.force,a=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,s=function(r){return void 0===r&&(r=!0),c.endpoints[e].initiate(t,{forceRefetch:r})},l=c.endpoints[e].select(t)(i());if(o)n(s());else if(a){var u=null==l?void 0:l.fulfilledTimeStamp;if(!u)return void n(s());(Number(new Date)-Number(new Date(u)))/1e3>=a&&n(s())}else n(s(!1))}},updateQueryData:function(e,t,r,i){return void 0===i&&(i=!0),function(o,s){var l,u,d,p=c.endpoints[e].select(t)(s()),f={patches:[],inversePatches:[],undo:function(){return o(c.util.patchQueryData(e,t,f.inversePatches,i))}};if(p.status===n.uninitialized)return f;if("data"in p)if((0,a.o$)(p.data)){var h=(0,a.aS)(p.data,r),v=h[0],g=h[1],m=h[2];(l=f.patches).push.apply(l,g),(u=f.inversePatches).push.apply(u,m),d=v}else d=r(p.data),f.patches.push({op:"replace",path:[],value:d}),f.inversePatches.push({op:"replace",path:[],value:p.data});return o(c.util.patchQueryData(e,t,f.patches,i)),f}},upsertQueryData:function(e,t,r){return function(n){var i;return n(c.endpoints[e].initiate(t,((i={subscribe:!1,forceRefetch:!0})[q]=function(){return{data:r}},i)))}},patchQueryData:function(e,t,r,n){return function(i,o){var a=s[e],u=l({queryArgs:t,endpointDefinition:a,endpointName:e});if(i(c.internalActions.queryResultPatched({queryCacheKey:u,patches:r})),n){var p=c.endpoints[e].select(t)(o()),f=z(a.providesTags,p.data,void 0,t,{},d);i(c.internalActions.updateProvidedBy({queryCacheKey:u,providedTags:f}))}}},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.A6)((0,o.zR)(e),g(t)),matchFulfilled:(0,o.A6)((0,o.KD)(e),g(t)),matchRejected:(0,o.A6)((0,o.Iv)(e),g(t))}}}}({baseQuery:i,reducerPath:s,context:r,api:e,serializeQueryArgs:l,assertTagType:v}),m=g.queryThunk,b=g.mutationThunk,y=g.patchQueryData,_=g.updateQueryData,A=g.upsertQueryData,w=g.prefetch,S=g.buildMatchThunkActions,k=J({context:r,queryThunk:m,mutationThunk:b,reducerPath:s,assertTagType:v,config:{refetchOnFocus:f,refetchOnReconnect:h,refetchOnMountOrArgChange:p,keepUnusedDataFor:c,reducerPath:s}}),x=k.reducer,P=k.actions;ye(e.util,{patchQueryData:y,updateQueryData:_,upsertQueryData:A,prefetch:w,resetApiState:P.resetApiState}),ye(e.internalActions,P);var E=be({reducerPath:s,context:r,queryThunk:m,mutationThunk:b,api:e,assertTagType:v}),O=E.middleware,T=E.actions;ye(e.util,T),ye(e,{reducer:x,middleware:O});var R=ie({serializeQueryArgs:l,reducerPath:s}),M=R.buildQuerySelector,F=R.buildMutationSelector,B=R.selectInvalidatedBy;ye(e.util,{selectInvalidatedBy:B});var U=function(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,o=e.context,a=new Map,s=new Map,l=i.internalActions,c=l.unsubscribeQueryResult,p=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,n){return function o(s,l){var d=void 0===l?{}:l,p=d.subscribe,v=void 0===p||p,g=d.forceRefetch,m=d.subscriptionOptions,b=d[q];return function(l,d){var p,y,_=t({queryArgs:s,endpointDefinition:n,endpointName:e}),A=r(((p={type:"query",subscribe:v,forceRefetch:g,subscriptionOptions:m,endpointName:e,originalArgs:s,queryCacheKey:_})[q]=b,p)),w=i.endpoints[e].select(s),S=l(A),k=w(d());h(l);var x=S.requestId,P=S.abort,E=k.requestId!==x,O=null==(y=a.get(l))?void 0:y[_],T=function(){return w(d())},R=Object.assign(b?S.then(T):E&&!O?Promise.resolve(k):Promise.all([O,S]).then(T),{arg:s,requestId:x,subscriptionOptions:m,queryCacheKey:_,abort:P,unwrap:function(){return C(this,null,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,R];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(o(s,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){v&&l(c({queryCacheKey:_,requestId:x}))},updateSubscriptionOptions:function(t){R.subscriptionOptions=t,l(f({endpointName:e,requestId:x,queryCacheKey:_,options:t}))}});if(!O&&!E&&!b){var M=a.get(l)||{};M[_]=R,a.set(l,M),R.then((function(){delete M[_],Object.keys(M).length||a.delete(l)}))}return R}}},buildInitiateMutation:function(e){return function(t,r){var i=void 0===r?{}:r,o=i.track,a=void 0===o||o,l=i.fixedCacheKey;return function(r,i){var o=n({type:"mutation",endpointName:e,originalArgs:t,track:a,fixedCacheKey:l}),c=r(o);h(r);var u=c.requestId,d=c.abort,f=c.unwrap,v=c.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),g=function(){r(p({requestId:u,fixedCacheKey:l}))},m=Object.assign(v,{arg:c.arg,requestId:u,abort:d,unwrap:f,unsubscribe:g,reset:g}),b=s.get(r)||{};return s.set(r,b),b[u]=m,m.then((function(){delete b[u],Object.keys(b).length||s.delete(r)})),l&&(b[l]=m,m.then((function(){b[l]===m&&(delete b[l],Object.keys(b).length||s.delete(r))}))),m}}},getRunningQueryThunk:function(e,r){return function(n){var i,s=o.endpointDefinitions[e],l=t({queryArgs:r,endpointDefinition:s,endpointName:e});return null==(i=a.get(n))?void 0:i[l]}},getRunningMutationThunk:function(e,t){return function(e){var r;return null==(r=s.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(a.get(e)||{}).filter(W)}},getRunningMutationsThunk:function(){return function(e){return Object.values(s.get(e)||{}).filter(W)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return d(d([],e(a)),e(s)).filter(W)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function h(e){}}({queryThunk:m,mutationThunk:b,api:e,serializeQueryArgs:l,context:r}),Y=U.buildInitiateQuery,K=U.buildInitiateMutation,X=U.getRunningMutationThunk,$=U.getRunningMutationsThunk,Q=U.getRunningQueriesThunk,ee=U.getRunningQueryThunk,te=U.getRunningOperationPromises,re=U.removalWarning;return ye(e.util,{getRunningOperationPromises:te,getRunningOperationPromise:re,getRunningMutationThunk:X,getRunningMutationsThunk:$,getRunningQueryThunk:ee,getRunningQueriesThunk:Q}),{name:_e,injectEndpoint:function(t,r){var n,i=e;null!=(n=i.endpoints)[t]||(n[t]={}),G(r)?ye(i.endpoints[t],{name:t,select:M(t,r),initiate:Y(t,r)},S(m,t)):function(e){return e.type===I.mutation}(r)&&ye(i.endpoints[t],{name:t,select:F(),initiate:K(t)},S(b,t))}}}}};Ae()},37260:function(e,t,r){"use strict";r.d(t,{s4:function(){return Q},xC:function(){return T},PH:function(){return S},hg:function(){return N},oM:function(){return M},A6:function(){return z},Q:function(){return G},Gx:function(){return K},KD:function(){return Y},zR:function(){return q},PO:function(){return C},Iv:function(){return H},h_:function(){return V},x0:function(){return F},cw:function(){return J}});var n=r(59463),i=r(10348);function o(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"===typeof i?i(r,n,e):t(i)}}}}var a=o();a.withExtraArgument=o;var s=a,l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1;return r&&n}function W(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function q(){for(var e=[],t=0;t!!(0,o.$y)(e))).map((e=>{try{return r[e]()}catch(t){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}}()}e=r.hmd(e)},97626:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var n="production"},57923:function(e,t,r){"use strict";r.d(t,{RP:function(){return d},cc:function(){return u},fH:function(){return c}});var n=r(16042),i=r(70468),o=r(63791),a=r(57732),s=r(21938);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(){return(0,i.YO)("globalEventProcessors",(()=>[]))}function u(e){c().push(e)}function d(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new o.cW(((o,c)=>{var u=e[i];if(null===t||"function"!==typeof u)o(t);else{var p=u(function(e){for(var t=1;td(e,t,r,i+1).then(o))).then(null,c):d(e,p,r,i+1).then(o).then(null,c)}}))}},66443:function(e,t,r){"use strict";r.d(t,{Gd:function(){return b},cu:function(){return g}});var n=r(16042),i=r(52859),o=r(90275),a=r(57732),s=r(70468),l=r(97626),c=r(11412),u=r(48606);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:new c.s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;this._version=r,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,p(p({originalException:e,syntheticException:n},t),{},{event_id:r}),o)})),r}captureMessage(e,t,r){var n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.DM)(),o=new Error(e);return this._withClient(((i,a)=>{i.captureMessage(e,t,p(p({originalException:e,syntheticException:o},r),{},{event_id:n}),a)})),n}captureEvent(e,t){var r=t&&t.event_id?t.event_id:(0,i.DM)();return e.type||(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,p(p({},t),{},{event_id:r}),i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){var{scope:r,client:n}=this.getStackTop();if(n){var{beforeBreadcrumb:i=null,maxBreadcrumbs:s=h}=n.getOptions&&n.getOptions()||{};if(!(s<=0)){var l=p({timestamp:(0,o.yW)()},e),c=i?(0,a.Cf)((()=>i(l,t))):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}}}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){var{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){var t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){var r=this._callExtensionMethod("startTransaction",e,t);"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||r||(this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"));return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop().scope,t=e.getSession();t&&(0,u.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){var{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=l.J}=r&&r.getOptions()||{},{userAgent:o}=s.n2.navigator||{},a=(0,u.Hv)(p(p({release:n,environment:i,user:t.getUser()},o&&{userAgent:o}),e)),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,u.CT)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){var{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_withClient(e){var{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e){var t=g().__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:g();return _(e)&&!A(e).isOlderThan(f)||C(e,new v),A(e)}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function A(e){return(0,s.YO)("hub",(()=>new v),e)}function C(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},11412:function(e,t,r){"use strict";r.d(t,{s:function(){return d}});var n=r(16042),i=r(21938),o=r(90275),a=r(52859),s=r(57923),l=r(48606);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;tr?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(this._extra&&Object.keys(this._extra).length&&(e.extra=u(u({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=u(u({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=u(u({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=u(u({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=u({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction;if(n){e.sdkProcessingMetadata=u({dynamicSamplingContext:n.getDynamicSamplingContext()},e.sdkProcessingMetadata);var i=n.name;i&&(e.tags=u({transaction:i},e.tags))}}this._applyFingerprint(e);var o=this._getBreadcrumbs(),a=[...e.breadcrumbs||[],...o];return e.breadcrumbs=a.length>0?a:void 0,e.sdkProcessingMetadata=u(u(u({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{},{propagationContext:this._propagationContext}),(0,s.RP)([...r||[],...(0,s.fH)(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=u(u({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,a.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function p(){return{traceId:(0,a.DM)(),spanId:(0,a.DM)().substring(16)}}},48606:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return l}});var n=r(90275),i=r(52859),o=r(42913);function a(e){var t=(0,n.ph)(),r={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{var r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){var r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},25951:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var n=r(42913),i=r(97626);function o(e,t,r){var o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},l=(0,n.Jr)({environment:o.environment||i.J,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",l),l}},68584:function(e,t,r){"use strict";r.d(t,{T:function(){return _},l:function(){return y}});var n=r(16042),i=r(57732),o=r(21938),a=r(66443),s=r(50538),l=r(20134),c=r(58775),u=!1;function d(){var e=(0,c.x1)();if(e){var t="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}d.tag="sentry_tracingErrorCallback";var p=r(32480),f=r(24396);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1;return!0}(n)?n?(e.sampled=Math.random(){e.endTimestamp="number"===typeof t?t:(0,n.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class u extends a.Y{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.idleTimeout,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.finalTimeout,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.heartbeatInterval,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=n,this._heartbeatInterval=o,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=l[4],a&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Setting idle transaction on scope. Span ID: ".concat(this.spanId)),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=l[3],this.finish())}),this._finalTimeout)}finish(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.ph)();if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(var t of(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var r=t.startTimestamp{this._finished||this._pushActivity(e)}),(e=>{this._finished||this._popActivity(e)}),this.spanId,e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e){var{restartOnChildSpanChange:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=l[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=l[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,n.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=l[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=l[0],this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},96752:function(e,t,r){"use strict";r.d(t,{Dr:function(){return p},Zd:function(){return f},gB:function(){return d}});var n=r(16042),i=r(52859),o=r(90275),a=r(57732),s=r(6777),l=r(42913);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1e3;this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class p{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.traceId=e.traceId||(0,i.DM)(),this.spanId=e.spanId||(0,i.DM)().substring(16),this.startTimestamp=e.startTimestamp||(0,o.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){var t=new p(u(u({},e),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){var r=e&&e.op||"< unknown op >",n=t.transaction.name||"< unknown name >",i=t.transaction.spanId,o="[Tracing] Starting '".concat(r,"' span on transaction '").concat(n,"' (").concat(i,").");t.transaction.metadata.spanMetadata[t.spanId]={logMessage:o},a.kg.log(o)}return t}setTag(e,t){return this.tags=u(u({},this.tags),{},{[e]:t}),this}setData(e,t){return this.data=u(u({},this.data),{},{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);var t=f(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&a.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof e?e:(0,o.ph)()}toTraceparent(){return(0,s.$p)(this.traceId,this.spanId,this.sampled)}toContext(){return(0,l.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,l.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,l.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function f(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},24396:function(e,t,r){"use strict";r.d(t,{Y:function(){return d}});var n=r(16042),i=r(42913),o=r(57732),a=r(66443),s=r(25951),l=r(96752);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.metadata.source=t}initSpanRecorder(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new l.gB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:r}}setMetadata(e){this.metadata=u(u({},this.metadata),e)}finish(e){var t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){var e=super.toContext();return(0,i.Jr)(u(u({},e),{},{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var e=this._hub||(0,a.Gd)(),t=e.getClient();if(!t)return{};var r=e.getScope(),n=(0,s._)(this.traceId,t,r),i=this.metadata.sampleRate;void 0!==i&&(n.sample_rate="".concat(i));var o=this.metadata.source;return o&&"url"!==o&&(n.transaction=this.name),void 0!==this.sampled&&(n.sampled=String(this.sampled)),n}setHub(e){this._hub=e}_finishTransaction(e){if(void 0===this.endTimestamp){this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);var t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));var r=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);var n=this.metadata,i=u({contexts:u(u({},this._contexts),{},{trace:this.getTraceContext()}),spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:u(u({},n),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},n.source&&{transaction_info:{source:n.source}});return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),i}}}},58775:function(e,t,r){"use strict";r.d(t,{x1:function(){return i}});var n=r(66443);function i(e){return(e||(0,n.Gd)()).getScope().getTransaction()}},50538:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(66443);function i(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t=(0,n.Gd)().getClient(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}},34770:function(e,t,r){"use strict";r.d(t,{S:function(){return Kt}});var n="7.73.0",i=r(16042),o=r(57732),a=r(52859),s=r(82867),l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],c=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class u{static __initStatic(){this.id="InboundFilters"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=u.id,this._options=e}setupOnce(e,t){}processEvent(e,t,r){var n=r.getOptions(),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:c],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,n);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,a.jH)(e))),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){var t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(n){}t&&t.value&&(r.push(t.value),t.type&&r.push("".concat(t.type,": ").concat(t.value)));"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==r.length||o.kg.error("Could not extract message for event ".concat((0,a.jH)(e)));return r}(e).some((e=>(0,s.U0)(e,t)))}(e,t.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,a.jH)(e))),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;var r=e.transaction;return!!r&&(0,s.U0)(r,t)}(e,t.ignoreTransactions))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,a.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;var r=d(e);return!!r&&(0,s.U0)(r,t)}(e,t.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,a.jH)(e),".\nUrl: ").concat(d(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;var r=d(e);return!r||(0,s.U0)(r,t)}(e,t.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,a.jH)(e),".\nUrl: ").concat(d(e))),!0;return!1}(e,i)?null:e}}function d(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(r){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Cannot extract url for event ".concat((0,a.jH)(e))),null}}u.__initStatic();var p,f=r(42913);class h{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=h.id}setupOnce(){p=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=(0,f.HK)(this)||this,t=arguments.length,r=new Array(t),n=0;n{e.isDefaultInstance=!0}));var n=function(e){var t={};return e.forEach((e=>{var{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.keys(t).map((e=>t[e]))}(Array.isArray(r)?[...t,...r]:"function"===typeof r?(0,a.lE)(r(t)):t),i=function(e,t){for(var r=0;r"Debug"===e.name));if(-1!==i){var[o]=n.splice(i,1);n.push(o)}return n}function y(e,t,r){if(r[t.name]=t,-1===m.indexOf(t.name)&&(t.setupOnce(v.cc,g.Gd),m.push(t.name)),e.on&&"function"===typeof t.preprocessEvent){var n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"===typeof t.processEvent){var i=t.processEvent.bind(t),a=Object.assign(((t,r)=>i(t,r,e)),{id:t.name});e.addEventProcessor(a)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Integration installed: ".concat(t.name))}var _=r(63373),A=r(58940),C=r(20134),w=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(r).concat(o?":".concat(o):"","/").concat(n?"".concat(n,"/"):n).concat(a)}function k(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function x(e){var t="string"===typeof e?function(e){var t=w.exec(e);if(t){var[r,n,i="",o,a="",s]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){var d=c.match(/^\d+/);d&&(c=d[0])}return k({host:o,pass:i,path:l,projectId:c,port:a,protocol:r,publicKey:n})}console.error("Invalid Sentry Dsn: ".concat(e))}(e):k(e);if(t&&function(e){if("undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;var{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(o.kg.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)))&&(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?!t||!isNaN(parseInt(t,10))||(o.kg.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(o.kg.error("Invalid Sentry Dsn: Invalid protocol ".concat(n)),!1):(o.kg.error("Invalid Sentry Dsn: Invalid projectId ".concat(r)),!1))}(t))return t}var P=r(21938),E=r(63791);function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return R("",e,t,r)}catch(n){return{ERROR:"**non-serializable** (".concat(n,")")}}}function T(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=O(e,r);return t=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(t))>n?T(e,r-1,n):i}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(var n=0;n=i){d[v]="[MaxProperties ~]";break}var g=h[v];d[v]=R(v,g,c-1,i,o),p++}return s(t),d}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[]]}function I(e,t){var[r,n]=e;return[r,[...n,t]]}function B(e,t){var r=e[1];for(var n of r){if(t(n,n[0].type))return!0}return!1}function j(e,t){return(t||new TextEncoder).encode(e)}function N(e,t){var[r,n]=e,i=JSON.stringify(r);function o(e){"string"===typeof i?i="string"===typeof e?i+e:[j(i,t),e]:i.push("string"===typeof e?j(e,t):e)}for(var a of n){var[s,l]=a;if(o("\n".concat(JSON.stringify(s),"\n")),"string"===typeof l||l instanceof Uint8Array)o(l);else{var c=void 0;try{c=JSON.stringify(l)}catch(u){c=JSON.stringify(O(l))}o(c)}}return"string"===typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t),n=0;for(var i of e)r.set(i,n),n+=i.length;return r}(i)}function L(e,t){var r="string"===typeof e.data?j(e.data,t):e.data;return[(0,f.Jr)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}var Z={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function G(e){return Z[e]}function z(e){if(e&&e.sdk){var{name:t,version:r}=e.sdk;return{name:t,version:r}}}class U extends Error{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var q="7";function H(e){var t=e.protocol?"".concat(e.protocol,":"):"",r=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(r).concat(e.path?"/".concat(e.path):"","/api/")}function V(e,t){return(0,f._j)(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r="string"===typeof t?t:t.tunnel,n="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return r||"".concat(function(e){return"".concat(H(e)).concat(e.projectId,"/envelope/")}(e),"?").concat(V(e,n))}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;te.name));!function(e,t){var{environment:r,release:n,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?r:re.J);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,s.$G)(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,s.$G)(a.value,o));var l=e.request;l&&l.url&&(l.url=(0,s.$G)(l.url,o))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){var r,n=te.n2._sentryDebugIds;if(!n)return;var i=se.get(t);i?r=i:(r=new Map,se.set(t,r));var o=Object.keys(n).reduce(((e,i)=>{var o,a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(var s=o.length-1;s>=0;s--){var l=o[s];if(l.filename){e[l.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(a){}}(c,e.stackParser);var d=n;r.captureContext&&(d=ne.s.clone(d).update(r.captureContext));var p=(0,E.WD)(c),f=i&&i.getEventProcessors?i.getEventProcessors():[];if(d){if(d.getAttachments){var h=[...r.attachments||[],...d.getAttachments()];h.length&&(r.attachments=h)}p=d.applyToEvent(c,r,f)}else p=(0,v.RP)([...f,...(0,v.fH)()],c,r);return p.then((e=>(e&&function(e){var t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(n){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof o&&o>0?function(e,t,r){if(!e)return null;var n=oe(oe(oe(oe(oe({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>oe(oe({},e),e.data&&{data:O(e.data,t,r)})))}),e.user&&{user:O(e.user,t,r)}),e.contexts&&{contexts:O(e.contexts,t,r)}),e.extra&&{extra:O(e.extra,t,r)});e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=O(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>(e.data&&(e.data=O(e.data,t,r)),e))));return n}(e,o,l):e)))}var se=new WeakMap;function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;tthis._captureEvent(e,t,r))).then((e=>{n=e}))),n}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ue)}captureMessage(e,t,r,n){var i=r&&r.event_id,o=(0,P.pt)(e)?this.eventFromMessage(String(e),t,r):this.eventFromException(e,r);return this._process(o.then((e=>this._captureEvent(e,r,n))).then((e=>{i=e}))),i}captureEvent(e,t,r){if(!(t&&t.originalException&&(0,a.YO)(t.originalException))){var n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((e=>{n=e}))),n}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ue)}captureSession(e){"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Q.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e)))):(0,E.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){var r={};return t.forEach((t=>{t&&y(e,t,r)})),r}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){y(this,e,this._integrations)}sendEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);var r=$(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=I(r,L(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));var i=this._sendEnvelope(r);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){var t=function(e,t,r,n){var i=z(r);return D(X(X({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!n&&t&&{dsn:S(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){var n="".concat(e,":").concat(t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne(...r)))}_updateSessionFromEvent(e,t){var r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(var o of(n=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){r=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,Q.CT)(e,ce(ce({},r&&{status:"crashed"}),{},{errors:e.errors||Number(n||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new E.cW((t=>{var r=0,n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r){var n=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),ae(n,e,t,r,this).then((e=>{if(null===e)return e;var{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){var{traceId:n,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts=ce({trace:{trace_id:n,span_id:i,parent_span_id:o}},e.contexts);var s=a||(0,J._)(n,this,r);e.sdkProcessingMetadata=ce({dynamicSamplingContext:s},e.sdkProcessingMetadata)}return e}))}_captureEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,r){var n=this.getOptions(),{sampleRate:i}=n,o=fe(e),a=pe(e),s=e.type||"error",l="before send for type `".concat(s,"`");if(a&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,E.$2)(new U("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));var c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,r).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new U("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;var i=function(e,t,r){var{beforeSend:n,beforeSendTransaction:i}=e;if(pe(t)&&n)return n(t,r);if(fe(t)&&i)return i(t,r);return t}(n,r,t);return function(e,t){var r="".concat(t," must return `null` or a valid event.");if((0,P.J8)(e))return e.then((e=>{if(!(0,P.PO)(e)&&null!==e)throw new U(r);return e}),(e=>{throw new U("".concat(t," rejected with ").concat(e))}));if(!(0,P.PO)(e)&&null!==e)throw new U(r);return e}(i,l)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",c,e),new U("".concat(l," returned `null`, will not send event."),"log");var i=r&&r.getSession();!o&&i&&this._updateSessionFromEvent(i,n);var a=n.transaction_info;if(o&&a&&n.transaction!==e.transaction){n.transaction_info=ce(ce({},a),{},{source:"custom"})}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof U)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new U("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Error while sending event:",e)}));("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{var[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}}))}}function pe(e){return void 0===e.type}function fe(e){return"transaction"===e.type}var he=r(93253);function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t0}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var n=e.__sentry_wrapped__;if(n)return n;if((0,f.HK)(e))return e}catch(s){return e}var i=function(){var n,i=Array.prototype.slice.call(arguments);try{r&&"function"===typeof r&&r.apply(this,arguments);var o=i.map((e=>Te(e,t)));return e.apply(this,o)}catch(s){throw Ee++,setTimeout((()=>{Ee--})),n=e=>{var r,n;e.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra=xe(xe({},e.extra),{},{arguments:i}),e))),r=s,(0,g.Gd)().captureException(r,{captureContext:n})},(0,g.Gd)().withScope(n),s}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(l){}(0,f.$Q)(i,e),(0,f.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch(l){}return i}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t{"hidden"===Pe.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,r,n){var i=Ce(e,t,r&&r.syntheticException||void 0,n);return(0,a.EG)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,E.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",r=arguments.length>2?arguments[2]:void 0;return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=we(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,E.WD)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(this._isEnabled()){var t=function(e,t){var{metadata:r,tunnel:n,dsn:i}=t,o=Me(Me({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&r.sdk&&{sdk:{name:r.sdk.name,version:r.sdk.version}}),!!n&&!!i&&{dsn:S(i)}),a=function(e){return[{type:"user_report"},e]}(e);return D(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture user feedback.")}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Sending outcomes:",e);var t,r,n,i=(t=e,D((r=this._options.tunnel&&S(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:n||(0,ee.yW)(),discarded_events:t}]]));this._sendEnvelope(i)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No outcomes to send")}}var De=r(20757);function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}class Be{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Be.id,this._options=function(e){for(var t=1;t{var[t,r,n]=Ge();if(t.getIntegration(Be)){var{msg:i,url:o,line:a,column:s,error:l}=e;if(!(Oe()||l&&l.__sentry_own_request__)){var c=void 0===l&&(0,P.HD)(i)?function(e,t,r,n){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=(0,P.VW)(e)?e.message:e,a="Error",s=o.match(i);s&&(a=s[1],o=s[2]);var l={exception:{values:[{type:a,value:o}]}};return Le(l,t,r,n)}(i,o,a,s):Le(Ce(r,l||i,void 0,n,!1),o,a,s);c.level="error",Ze(t,l,c,"onerror")}}}))}function Ne(){(0,C.oq)("unhandledrejection",(e=>{var[t,r,n]=Ge();if(t.getIntegration(Be)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if(Oe()||i&&i.__sentry_own_request__)return!0;var o=(0,P.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:Ce(r,i,void 0,n,!0);o.level="error",Ze(t,i,o,"onunhandledrejection")}}))}function Le(e,t,r,n){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(r,10))?void 0:r,d=(0,P.HD)(t)&&t.length>0?t:(0,De.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ze(e,t,r,n){(0,a.EG)(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function Ge(){var e=(0,g.Gd)(),t=e.getClient(),r=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,r.stackParser,r.attachStacktrace]}function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Be.__initStatic();var Ue=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class We{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=We.id,this._options=function(e){for(var t=1;t{e in t&&"function"===typeof t[e]&&(0,f.hl)(t,e,(function(t){var r={mechanism:{data:{function:e,handler:(0,_.$P)(t)},handled:!1,type:"instrument"}},n=(0,f.HK)(t);return n&&(r.mechanism.data.handler=(0,_.$P)(n)),Te(t,r)}))}));for(var r=arguments.length,n=new Array(r),i=0;iet&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("`dom.maxStringLength` cannot exceed ".concat(et,", but a value of ").concat(i," was configured. Sentry will use ").concat(et," instead.")),i=et),"string"===typeof n&&(n=[n]);try{var a=t.event;r=function(e){return!!e&&!!e.target}(a)?(0,De.Rt)(a.target,{keyAttrs:n,maxStringLength:i}):(0,De.Rt)(a,{keyAttrs:n,maxStringLength:i})}catch(s){r=""}0!==r.length&&(0,g.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:r},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,C.oq)("xhr",it),this.options.fetch&&(0,C.oq)("fetch",ot),this.options.history&&(0,C.oq)("history",at),this.options.sentry){var e=(0,g.Gd)().getClient();e&&e.on&&e.on("beforeSendEvent",rt)}}}function rt(e){(0,g.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,a.jH)(e)},{event:e})}function nt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Xe(e.level),message:(0,s.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: ".concat((0,s.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,g.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function it(e){var{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[C.xU];if(t&&r&&n){var{method:i,url:o,status_code:a,body:s}=n,l={method:i,url:o,status_code:a},c={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"xhr",data:l,type:"http"},c)}}function ot(e){var{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){var n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"fetch",data:n,level:"error",type:"http"},i)}else{var o=Je(Je({},e.fetchData),{},{status_code:e.response&&e.response.status}),a={input:e.args,response:e.response,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"fetch",data:o,type:"http"},a)}}function at(e){var t=e.from,r=e.to,n=(0,$e.en)(Pe.location.href),i=(0,$e.en)(t),o=(0,$e.en)(r);i.path||(i=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),(0,g.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:250,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(o.exception&&o.exception.values&&a&&(0,P.V9)(a.originalException,Error)){var l,c,u=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;u&&(o.exception.values=(l=ut(e,t,i,a.originalException,n,o.exception.values,u,0),c=r,l.map((e=>(e.value&&(e.value=(0,s.$G)(e.value,c)),e)))))}}function ut(e,t,r,n,i,o,a,s){if(o.length>=r+1)return o;var l=[...o];if((0,P.V9)(n[i],Error)){dt(a,s);var c=e(t,n[i]),u=l.length;pt(c,i,u,s),l=ut(e,t,r,n[i],i,[c,...l],c,u)}return Array.isArray(n.errors)&&n.errors.forEach(((n,o)=>{if((0,P.V9)(n,Error)){dt(a,s);var c=e(t,n),u=l.length;pt(c,"errors[".concat(o,"]"),u,s),l=ut(e,t,r,n,i,[c,...l],c,u)}})),l}function dt(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=lt(lt({},e.mechanism),{},{is_exception_group:!0,exception_id:t})}function pt(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=lt(lt({},e.mechanism),{},{type:"chained",source:t,exception_id:r,parent_id:n})}tt.__initStatic();class ft{static __initStatic(){this.id="LinkedErrors"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=ft.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,r){var n=r.getOptions();ct(me,n.stackParser,n.maxValueLength,this._key,this._limit,e,t)}}function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kt=/\((\S*)(?::(\d+))(?::(\d+))\)/,xt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Pt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Et=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ot=[[30,e=>{var t=St.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var r=kt.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var[n,i]=Rt(t[1]||Ct,t[2]);return wt(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=xt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=Pt.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],i=t[1]||Ct;return[i,n]=Rt(i,n),wt(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Et.exec(e);return t?wt(t[2],t[1]||Ct,+t[3],t[4]?+t[4]:void 0):void 0}]],Tt=(0,_.pE)(...Ot),Rt=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Ct,r?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Mt(e){var t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.lengthr(i))).then(null,(()=>r(i).then(null,(()=>{})))),i},drain:function(e){return new E.cW(((r,n)=>{var i=t.length;if(!i)return r(!0);var o=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,E.WD)(e).then((()=>{--i||(clearTimeout(o),r(!0))}),n)}))}))}}}function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Dt=6e4;function It(e,t){var{statusCode:r,headers:n}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=parseInt("".concat(e),10);if(!isNaN(r))return 1e3*r;var n=Date.parse("".concat(e));return isNaN(n)?Dt:n-t}(l,o):429===r&&(a.all=o+6e4);return a}var Bt=30;function jt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt(e.bufferSize||Bt),n={};function i(i){var a=[];if(B(i,((t,r)=>{var i=G(r);if(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>r}(n,i)){var o=Nt(t,r);e.recordDroppedEvent("ratelimit_backoff",i,o)}else a.push(t)})),0===a.length)return(0,E.WD)();var s=D(i[0],a),l=t=>{B(s,((r,n)=>{var i=Nt(r,n);e.recordDroppedEvent(t,G(n),i)}))};return r.add((()=>t({body:N(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),n=It(n,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof U)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,E.WD)();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>r.drain(e)}}function Nt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Lt=void 0;function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(Lt)return Lt;if((0,A.Du)(Pe.fetch))return Lt=Pe.fetch.bind(Pe);var e=Pe.document,t=Pe.fetch;if(e&&"function"===typeof e.createElement)try{var r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);var n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return Lt=t.bind(Pe)}(),r=0,n=0;return jt(e,(function(o){var a=o.body.length;r+=a,n++;var s=function(e){for(var t=1;t(r-=a,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(l){return Lt=void 0,r-=a,n--,(0,E.$2)(l)}}))}var zt=4;function Ut(e){return jt(e,(function(t){return new E.cW(((r,n)=>{var i=new XMLHttpRequest;for(var o in i.onerror=n,i.onreadystatechange=()=>{i.readyState===zt&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ht),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Pe.SENTRY_RELEASE&&Pe.SENTRY_RELEASE.id&&(e.release=Pe.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t=qt(qt({},e),{},{stackParser:(0,_.Sq)(e.stackParser||Tt),integrations:b(e),transport:e.transport||((0,A.Ak)()?Gt:Ut)});!function(e,t){!0===t.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var r=(0,g.Gd)();r.getScope().update(t.initialScope);var n=new e(t);r.bindClient(n)}(Fe,t),e.autoSessionTracking&&function(){if("undefined"===typeof Pe.document)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=(0,g.Gd)();if(!e.captureSession)return;Yt(e),(0,C.oq)("history",(e=>{var{from:t,to:r}=e;void 0!==t&&t!==r&&Yt((0,g.Gd)())}))}()}function Yt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Kt(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:n}],version:n},Vt(e)}},84465:function(e,t,r){"use strict";r.d(t,{gE:function(){return Me}});var n=r(16042),i=r(32480),o=r(68584),a=r(58775),s=r(57732),l=r(6777),c=r(20757),u=r(70468).n2;var d=r(90275),p=(e,t,r)=>{var n,i;return o=>{t.value>=0&&(o||r)&&((i=t.value-(n||0))||void 0===n)&&(n=t.value,t.delta=i,e(t))}},f=()=>u.__WEB_VITALS_POLYFILL__?u.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{var e=u.performance.timing,t=u.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(r[n]=Math.max(e[n]-e.navigationStart,0));return r})()):u.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],h=()=>{var e=f();return e&&e.activationStart||0},v=(e,t)=>{var r=f(),n="navigate";return r&&(n=u.document.prerendering||h()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},g=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},m=(e,t)=>{var r=n=>{"pagehide"!==n.type&&"hidden"!==u.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},b=e=>{var t,r=v("CLS",0),n=0,i=[],o=e=>{e.forEach((e=>{if(!e.hadRecentInput){var o=i[0],a=i[i.length-1];n&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(n+=e.value,i.push(e)):(n=e.value,i=[e]),n>r.value&&(r.value=n,r.entries=i,t&&t())}}))},a=g("layout-shift",o);if(a){t=p(e,r);var s=()=>{o(a.takeRecords()),t(!0)};return m(s),s}},y=-1,_=()=>(y<0&&(y="hidden"!==u.document.visibilityState||u.document.prerendering?1/0:0,m((e=>{var{timeStamp:t}=e;y=t}),!0)),{get firstHiddenTime(){return y}}),A=e=>{var t,r=_(),n=v("FID"),i=e=>{e.startTime{e.forEach(i)},a=g("first-input",o);t=p(e,n),a&&m((()=>{o(a.takeRecords()),a.disconnect()}),!0)},C={},w=e=>{var t,r=_(),n=v("LCP"),i=e=>{var i=e[e.length-1];if(i){var o=Math.max(i.startTime-h(),0);o{C[n.id]||(i(o.takeRecords()),o.disconnect(),C[n.id]=!0,t(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,a,{once:!0,capture:!0})})),m(a,!0),a}},S=r(90355),k=["startTimestamp"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){return"number"===typeof e&&isFinite(e)}function E(e,t){var{startTimestamp:r}=t,i=(0,S.Z)(t,k);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(function(e){for(var t=1;t{var t=e.entries.pop();if(t){var r=O(d.Z1),n=O(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding FID"),D.fid={value:e.value,unit:"millisecond"},D["mark.fid"]={value:r+n,unit:"second"}}}));var t=b((e=>{var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS"),D.cls={value:e.value,unit:""},M=t)})),r=w((e=>{var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP"),D.lcp={value:e.value,unit:"millisecond"},R=t)}));return()=>{t&&t(),r&&r()}}return()=>{}}function B(e){var t=T();if(t&&u.performance.getEntries&&d.Z1){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Adding & adjusting spans using Performance API");var r,n,i=O(d.Z1),o=t.getEntries();if(o.slice(F).forEach((t=>{var o=O(t.startTime),a=O(t.duration);if(!("navigation"===e.op&&i+o{j(e,t,n,r)})),j(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),j(e,t,"fetch",r,"cache","domainLookupStart"),j(e,t,"domainLookup",r,"DNS"),function(e,t,r){E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+O(t.requestStart),endTimestamp:r+O(t.responseEnd)}),E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+O(t.responseStart),endTimestamp:r+O(t.responseEnd)})}(e,t,r)}(e,t,i),r=i+O(t.responseStart),n=i+O(t.requestStart);break;case"mark":case"paint":case"measure":!function(e,t,r,n,i){var o=i+r,a=o+n;E(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(e,t,o,a,i);var l=_(),c=t.startTime{if(D[t]&&!(i>=e.startTimestamp)){var r=D[t].value,n=i+O(r),o=Math.abs(1e3*(n-e.startTimestamp)),a=o-r;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Normalized ".concat(t," from ").concat(r," to ").concat(o," (").concat(a,")")),D[t].value=o}}));var a=D["mark.fid"];a&&D.fid&&(E(e,{description:"first input delay",endTimestamp:a.value+O(D.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete D["mark.fid"]),"fcp"in D||delete D.cls,Object.keys(D).forEach((t=>{e.setMeasurement(t,D[t].value,D[t].unit)})),function(e){R&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP Data"),R.element&&e.setTag("lcp.element",(0,c.Rt)(R.element)),R.id&&e.setTag("lcp.id",R.id),R.url&&e.setTag("lcp.url",R.url.trim().slice(0,200)),e.setTag("lcp.size",R.size));M&&M.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS Data"),M.sources.forEach(((t,r)=>e.setTag("cls.source.".concat(r+1),(0,c.Rt)(t.node)))))}(e)}R=void 0,M=void 0,D={}}}function j(e,t,r,n,i,o){var a=o?t[o]:t["".concat(r,"End")],s=t["".concat(r,"Start")];s&&a&&E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+O(s),endTimestamp:n+O(a)})}var N=r(50538),L=r(66443),Z=r(25951),G=r(20134),z=r(82867),U=r(17074),W=r(21938);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t!0,c=e=>function(e,t){return(0,z.U0)(e,t||V)}(e,n||i),u={};t&&(0,G.oq)("fetch",(e=>{var t=function(e,t,r,n){if(!(0,N.z)()||!e.fetchData)return;var i=t(e.fetchData.url);if(e.endTimestamp&&i){var o=e.fetchData.__span;if(!o)return;var a=n[o];if(a){if(e.response){a.setHttpStatus(e.response.status);var s=e.response&&e.response.headers&&e.response.headers.get("content-length"),c=parseInt(s);c>0&&a.setData("http.response_content_length",c)}else e.error&&a.setStatus("internal_error");a.finish(),delete n[o]}return}var u=(0,L.Gd)(),d=u.getScope(),p=u.getClient(),f=d.getSpan(),{method:h,url:v}=e.fetchData,g=i&&f?f.startChild({data:{url:v,type:"fetch","http.method":h},description:"".concat(h," ").concat(v),op:"http.client",origin:"auto.http.browser"}):void 0;g&&(e.fetchData.__span=g.spanId,n[g.spanId]=g);if(r(e.fetchData.url)&&p){var m=e.args[0];e.args[1]=e.args[1]||{};var b=e.args[1];b.headers=function(e,t,r,n,i){var o=i||r.getSpan(),a=o&&o.transaction,{traceId:s,sampled:c,dsc:u}=r.getPropagationContext(),d=o?o.toTraceparent():(0,l.$p)(s,void 0,c),p=a?a.getDynamicSamplingContext():u||(0,Z._)(s,t,r),f=(0,U.IQ)(p),h="undefined"!==typeof Request&&(0,W.V9)(e,Request)?e.headers:n.headers;if(h){if("undefined"!==typeof Headers&&(0,W.V9)(h,Headers)){var v=new Headers(h);return v.append("sentry-trace",d),f&&v.append(U.bU,f),v}if(Array.isArray(h)){var g=[...h,["sentry-trace",d]];return f&&g.push([U.bU,f]),g}var m="baggage"in h?h.baggage:void 0,b=[];return Array.isArray(m)?b.push(...m):m&&b.push(m),f&&b.push(f),H(H({},h),{},{"sentry-trace":d,baggage:b.length>0?b.join(","):void 0})}return{"sentry-trace":d,baggage:f}}(m,p,d,b,g)}return g}(e,s,c,u);a&&t&&X(t)})),r&&(0,G.oq)("xhr",(e=>{var t=function(e,t,r,n){var i=e.xhr,o=i&&i[G.xU];if(!(0,N.z)()||i&&i.__sentry_own_request__||!i||!o)return;var a=t(o.url);if(e.endTimestamp&&a){var s=i.__sentry_xhr_span_id__;if(!s)return;var c=n[s];return void(c&&(c.setHttpStatus(o.status_code),c.finish(),delete n[s]))}var u=(0,L.Gd)(),d=u.getScope(),p=d.getSpan(),f=a&&p?p.startChild({data:H(H({},o.data),{},{type:"xhr","http.method":o.method,url:o.url}),description:"".concat(o.method," ").concat(o.url),op:"http.client",origin:"auto.http.browser"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanId,n[i.__sentry_xhr_span_id__]=f);if(i.setRequestHeader&&r(o.url))if(f){var h=f&&f.transaction,v=h&&h.getDynamicSamplingContext(),g=(0,U.IQ)(v);Q(i,f.toTraceparent(),g)}else{var m=u.getClient(),{traceId:b,sampled:y,dsc:_}=d.getPropagationContext(),A=(0,l.$p)(b,void 0,y),C=_||(m?(0,Z._)(b,m,d):void 0);Q(i,A,(0,U.IQ)(C))}return f}(e,s,c,u);a&&t&&X(t)}))}function X(e){var t=e.data.url,r=new PerformanceObserver((n=>{n.getEntries().forEach((n=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(n)&&n.name.endsWith(t)&&(function(e){var{name:t,version:r}=function(e){var t="unknown",r="unknown",n="";for(var i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}n===e&&(t=n);return{name:t,version:r}}(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!d.Z1)return n;return[...n,["http.request.redirect_start",$(e.redirectStart)],["http.request.fetch_start",$(e.fetchStart)],["http.request.domain_lookup_start",$(e.domainLookupStart)],["http.request.domain_lookup_end",$(e.domainLookupEnd)],["http.request.connect_start",$(e.connectStart)],["http.request.secure_connection_start",$(e.secureConnectionStart)],["http.request.connection_end",$(e.connectEnd)],["http.request.request_start",$(e.requestStart)],["http.request.response_start",$(e.responseStart)],["http.request.response_end",$(e.responseEnd)]]}(n).forEach((t=>e.setData(...t))),r.disconnect())}))}));r.observe({entryTypes:["resource"]})}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((d.Z1||performance.timeOrigin)+e)/1e3}function Q(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(U.bU,r)}catch(n){}}function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(u&&u.location){var n,i=u.location.href;t&&(n=e({name:u.location.pathname,startTimestamp:d.Z1?d.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&(0,G.oq)("history",(t=>{var{to:r,from:o}=t;void 0===o&&i&&-1!==i.indexOf(r)?i=void 0:o!==r&&(i=void 0,n&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Finishing current transaction with op: ".concat(n.op)),n.finish()),n=e({name:u.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},Y);function ne(e){var t=(0,c.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):void 0}var ie,oe=r(5430),ae=r(96752),se=r(24396),le=r(15734);function ce(e){for(var t=void 0,r=e[0],n=1;ne(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==(ce([t,"optionalAccess",e=>e.instrumenter])||"sentry")}class he{static __initStatic(){this.id="Apollo"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{useNestjs:!1};this.name=he.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,ue.$y)("@nestjs/graphql"):this._module=this._module||(0,ue.$y)("apollo-server-core"),this._module}setupOnce(e,t){if(fe(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){var r=this.loadDependency();if(!r)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,de.hl)(r.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(){(0,de.hl)(this.resolversExplorerService,"explore",(function(e){return function(){return ve((0,pe.lE)(e.call(this)),t)}}));for(var r=arguments.length,n=new Array(r),i=0;i(Object.keys(e).forEach((r=>{Object.keys(e[r]).forEach((n=>{"function"===typeof e[r][n]&&function(e,t,r,n){(0,de.hl)(e[t],r,(function(e){return function(){for(var i=ce([n().getScope().getSpan(),"optionalAccess",e=>e.startChild,"call",e=>e({description:"".concat(t,".").concat(r),op:"graphql.resolve",origin:"auto.graphql.apollo"})]),o=arguments.length,a=new Array(o),s=0;s(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}(e,r,n,t)}))})),e)))}he.__initStatic();function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||"".concat(e.baseUrl||"").concat(e.route&&e.route.path),i="route"):(e.originalUrl||e.url)&&(n=(0,le.rt)(e.originalUrl||e.url||""));var o="";return t.method&&r&&(o+=r),t.method&&t.path&&(o+=" "),t.path&&n&&(o+=n),[o,i]}class me{static __initStatic(){this.id="Express"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=me.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?fe(t)?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.forEach((t=>function(e,t){var r=e[t];return e[t]=function(){for(var e=arguments.length,n=new Array(e),i=0;i"function"===typeof e?be(e,t):Array.isArray(e)?e.map((e=>"function"===typeof e?be(e,t):e)):e))}(n,t))},e}(e,t)))}(this._router,this._methods),function(e){var t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();var r=t?e._router:e;if(!r)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.debug("Routing instrumentation is currently only supported in Express 4."));var n=Object.getPrototypeOf(r),i=n.process_params;n.process_params=function(e,t,r,n,o){r._reconstructedRoute||(r._reconstructedRoute="");var{layerRoutePath:a,isRegex:s,isArray:l,numExtraSegments:c}=function(e){var t=ce([e,"access",e=>e.route,"optionalAccess",e=>e.path]),r=(0,W.Kj)(t),n=Array.isArray(t);if(!t)return{isRegex:r,isArray:n,numExtraSegments:0};var i=n?Math.max((a=t,a.reduce(((e,t)=>e+(0,le.$A)(t.toString())),0)-(0,le.$A)(e.path||"")),0):0,o=function(e,t){if(e)return t.map((e=>e.toString())).join(",");return t&&t.toString()}(n,t);var a;return{layerRoutePath:o,isRegex:r,isArray:n,numExtraSegments:i}}(e);(a||s||l)&&(r._hasParameters=!0);var u=(a||e.path||"").split("/").filter((e=>e.length>0&&(s||l||!e.includes("*")))).join("/");if(u&&u.length>0&&(r._reconstructedRoute+="/".concat(u).concat(s?"/":"")),(0,le.$A)(r.originalUrl||"")+c===(0,le.$A)(r._reconstructedRoute)){r._hasParameters||r._reconstructedRoute!==r.originalUrl&&(r._reconstructedRoute=r.originalUrl?(0,le.rt)(r.originalUrl):r.originalUrl);var d=n.__sentry_transaction;if(d&&"custom"!==d.metadata.source){var p=r._reconstructedRoute||"/";d.setName(...ge(r,{path:!0,method:!0,customRoute:p}))}}return i.call(this,e,t,r,n,o)}}(this._router)):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("ExpressIntegration is missing an Express instance")}}function be(e,t){var r=e.length;switch(r){case 2:return function(r,n){var i=n.__sentry_transaction;if(i){var o=i.startChild({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"});n.once("finish",(()=>{o.finish()}))}return e.call(this,r,n)};case 3:return function(r,n,i){var o=ce([n.__sentry_transaction,"optionalAccess",e=>e.startChild,"call",r=>r({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,r,n,(function(){ce([o,"optionalAccess",e=>e.finish,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),r=0;re.startChild,"call",r=>r({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,r,n,i,(function(){ce([a,"optionalAccess",e=>e.finish,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),r=0;re.startChild,"call",e=>e({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]);for(var o=arguments.length,a=new Array(o),s=0;s(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(n)]),e))):(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(n)]),l)}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}}ye.__initStatic();var _e=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Ae={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class Ce{static __initStatic(){this.id="Mongo"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Ce.id,this._operations=Array.isArray(e.operations)?e.operations:_e,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}loadDependency(){var e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,ue.$y)(e)}setupOnce(e,t){if(fe(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Mongo Integration is skipped because of instrumenter configuration.");else{var r=this.loadDependency();if(r)this._instrumentOperations(r.Collection,this._operations,t);else{var n=this._useMongoose?"mongoose":"mongodb";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Mongo Integration was unable to require `".concat(n,"` package."))}}}_instrumentOperations(e,t,r){t.forEach((t=>this._patchOperation(e,t,r)))}_patchOperation(e,t,r){if(t in e.prototype){var n=this._getSpanContextFromOperationArguments.bind(this);(0,de.hl)(e.prototype,t,(function(e){return function(){for(var i=arguments.length,o=new Array(i),a=0;ae.startChild,"call",e=>e(n(this,t,o))]),d=e.call(this,...o);if((0,W.J8)(d))return d.then((e=>(ce([u,"optionalAccess",e=>e.finish,"call",e=>e()]),e)));if((s=d)&&"object"===typeof s&&s.once&&"function"===typeof s.once){var p=d;try{p.once("close",(()=>{ce([u,"optionalAccess",e=>e.finish,"call",e=>e()])}))}catch(h){ce([u,"optionalAccess",e=>e.finish,"call",e=>e()])}return p}return ce([u,"optionalAccess",e=>e.finish,"call",e=>e()]),d}var f=ce([c,"optionalAccess",e=>e.startChild,"call",e=>e(n(this,t,o.slice(0,-1)))]);return e.call(this,...o.slice(0,-1),(function(e,t){ce([f,"optionalAccess",e=>e.finish,"call",e=>e()]),l(e,t)}))}}))}}_getSpanContextFromOperationArguments(e,t,r){var n={"db.system":"mongodb","db.name":e.dbName,"db.operation":t,"db.mongodb.collection":e.collectionName},i={op:"db",origin:"auto.db.mongo",description:t,data:n},o=Ae[t],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!o||!a)return i;try{if("mapReduce"===t){var[s,l]=r;n[o[0]]="string"===typeof s?s:s.name||"",n[o[1]]="string"===typeof l?l:l.name||""}else for(var c=0;ce.startChild,"call",e=>e({description:"string"===typeof r?r:r.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);return"function"===typeof o?e.call(this,r,n,(function(e,t,r){i(a),o(e,t,r)})):"function"===typeof n?e.call(this,r,(function(e,t,r){i(a),n(e,t,r)})):e.call(this,r,n,(function(){i(a)}))}}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Mysql Integration was unable to require `mysql` package.")}function i(e){if(e){var t=n?{"server.address":n.host,"server.port":n.port,"db.user":n.user}:{};Object.keys(t).forEach((r=>{e.setData(r,t[r])})),e.finish()}}}}we.__initStatic();class Se{static __initStatic(){this.id="Postgres"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Se.id,this._usePgNative=!!e.usePgNative}loadDependency(){return this._module=this._module||(0,ue.$y)("pg")}setupOnce(e,t){if(fe(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Postgres Integration is skipped because of instrumenter configuration.");else{var r=this.loadDependency();if(r)if(!this._usePgNative||ce([r,"access",e=>e.native,"optionalAccess",e=>e.Client])){var{Client:n}=this._usePgNative?r.native:r;(0,de.hl)(n.prototype,"query",(function(e){return function(r,n,i){var o=t().getScope().getSpan(),a={"db.system":"postgresql"};try{this.database&&(a["db.name"]=this.database),this.host&&(a["server.address"]=this.host),this.port&&(a["server.port"]=this.port),this.user&&(a["db.user"]=this.user)}catch(c){}var s=ce([o,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"===typeof r?r:r.text,op:"db",origin:"auto.db.postgres",data:a})]);if("function"===typeof i)return e.call(this,r,n,(function(e,t){ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),i(e,t)}));if("function"===typeof n)return e.call(this,r,(function(e,t){ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),n(e,t)}));var l="undefined"!==typeof n?e.call(this,r,n):e.call(this,r);return(0,W.J8)(l)?l.then((e=>(ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):(ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Postgres Integration was unable to access 'pg-native' bindings.");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Postgres Integration was unable to require `pg` package.")}}}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=Re.id,(e=t.client)&&e.$use&&!t.client._sentryInstrumented){(0,de.xp)(t.client,"_sentryInstrumented",!0);var r={};try{var n=t.client._engineConfig;if(n){var{activeProvider:i,clientVersion:o}=n;i&&(r["db.system"]=i),o&&(r["db.prisma.version"]=o)}}catch(a){}t.client.$use(((e,t)=>{if(fe(L.Gd))return t(e);var n=e.action,i=e.model;return function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=Ee(e),o=(0,L.Gd)(),s=o.getScope(),l=s.getSpan(),c=Pe(o,l,i);function u(){c&&c.finish(),o.getScope().setSpan(l)}s.setSpan(c);try{r=t(c)}catch(a){throw c&&c.setStatus("internal_error"),n(a),u(),a}return(0,W.J8)(r)?Promise.resolve(r).then((()=>{u()}),(e=>{c&&c.setStatus("internal_error"),n(e),u()})):u(),r}({name:i?"".concat(i," ").concat(n):n,op:"db.sql.prisma",origin:"auto.db.prisma",data:Te(Te({},r),{},{"db.operation":n})},(()=>t(e)))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",t.client)}setupOnce(){}}Re.__initStatic();var Me=class{constructor(e){this.name=te,this._hasSetTracePropagationTargets=!1,(0,o.T)(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=ee(ee({},re),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=I(),this.options.enableLongTask&&g("longtask",(e=>{for(var t of e){var r=(0,a.x1)();if(!r)return;var n=O(d.Z1+t.startTime),i=O(t.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&g("event",(e=>{for(var t of e){var r=(0,a.x1)();if(!r)return;if("click"===t.name){var n=O(d.Z1+t.startTime),i=O(t.duration);r.startChild({description:(0,c.Rt)(t.target),op:"ui.interaction.".concat(t.name),origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;var r=t().getClient(),n=r&&r.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:p,shouldCreateSpanForRequest:f,enableHTTPTimings:h,_experiments:v}=this.options,g=n&&n.tracePropagationTargets,m=g||this.options.tracePropagationTargets;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&g&&s.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{var r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r}),l,o),c&&(u&&u.document?u.document.addEventListener("visibilitychange",(()=>{var e=(0,a.x1)();if(u.document.hidden&&e){var t="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),v.enableInteractions&&this._registerInteractionListener(),K({traceFetch:d,traceXHR:p,tracePropagationTargets:m,shouldCreateSpanForRequest:f,enableHTTPTimings:h})}_createRouteTransaction(e){if(this._getCurrentHub){var t=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,c="pageload"===e.op,d=c?ne("sentry-trace"):"",p=c?ne("baggage"):"",{traceparentData:f,dynamicSamplingContext:h,propagationContext:v}=(0,l.KA)(d,p),g=ee(ee(ee({},e),f),{},{metadata:ee(ee({},e.metadata),{},{dynamicSamplingContext:f&&!h?{}:h}),trimEnd:!0}),m="function"===typeof r?r(g):g,b=void 0===m?ee(ee({},g),{},{sampled:!1}):m;b.metadata=b.name!==g.name?ee(ee({},b.metadata),{},{source:"custom"}):b.metadata,this._latestRouteName=b.name,this._latestRouteSource=b.metadata&&b.metadata.source,!1===b.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Will not send ".concat(b.op," transaction because of beforeNavigate.")),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Starting ".concat(b.op," transaction on scope"));var{location:y}=u,_=(0,o.l)(t,b,n,i,!0,{location:y},a),A=t.getScope();return c&&f?A.setPropagationContext(v):A.setPropagationContext({traceId:_.traceId,spanId:_.spanId,parentSpanId:_.parentSpanId,sampled:_.sampled}),_.registerBeforeFinishCallback((e=>{this._collectWebVitals(),B(e)})),_}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."))}_registerInteractionListener(){var e,t=()=>{var{idleTimeout:t,finalTimeout:r,heartbeatInterval:n}=this.options,i="ui.action.click",l=(0,a.x1)();if(l&&l.op&&["navigation","pageload"].includes(l.op))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because a pageload or navigation transaction is in progress."));else if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),this._getCurrentHub)if(this._latestRouteName){var c=this._getCurrentHub(),{location:d}=u,p={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=(0,o.l)(c,p,t,r,!0,{location:d},n)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing."));else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because _getCurrentHub is invalid."))};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}};oe.r,a.x1,l.qG,ae.Zd,se.Y,ae.Dr,N.z,le.rt,l.Ke,i.io,o.l;("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,oe.r)()},17074:function(e,t,r){"use strict";r.d(t,{EN:function(){return p},IQ:function(){return f},bU:function(){return l}});var n=r(16042),i=r(21938),o=r(57732);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{var r=h(t);return s(s({},e),r)}),{});else{if(!e)return;t=h(e)}var r=Object.entries(t).reduce(((e,t)=>{var[r,n]=t;r.match(u)&&(e[r.slice(c.length)]=n);return e}),{});return Object.keys(r).length>0?r:void 0}}function f(e){if(e)return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,t,r)=>{var[n,i]=t,a="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(i)),s=0===r?a:"".concat(e,",").concat(a);return s.length>d?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Not adding key: ".concat(n," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),e):s}),"")}(Object.entries(e).reduce(((e,t)=>{var[r,n]=t;return n&&(e["".concat(c).concat(r)]=n),e}),{}))}function h(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{var[r,n]=t;return e[r]=n,e}),{})}},20757:function(e,t,r){"use strict";r.d(t,{Rt:function(){return a},l4:function(){return l},qT:function(){return c}});var n=r(21938),i=(0,r(70468).Rf)(),o=80;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{for(var r,n=e,i=[],a=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||o;n&&a++<5&&!("html"===(r=s(n,c))||a>1&&l+3*i.length+r.length>=u);)i.push(r),l+=r.length,n=n.parentNode;return i.reverse().join(" > ")}catch(d){return""}}function s(e,t){var r,i,o,a,s,l=e,c=[];if(!l||!l.tagName)return"";c.push(l.tagName.toLowerCase());var u=t&&t.length?t.filter((e=>l.getAttribute(e))).map((e=>[e,l.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{c.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&c.push("#".concat(l.id)),(r=l.className)&&(0,n.HD)(r))for(i=r.split(/\s+/),s=0;s{var r=h[t]&&h[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,a.hl)(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[r]=a[r]||{refCount:0};if(!s.handler){var l=x(e);s.handler=l,t.call(this,r,l,i)}s.refCount++}catch(c){}return t.call(this,r,n,i)}})),(0,a.hl)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!h.XMLHttpRequest)return;var e=XMLHttpRequest.prototype;(0,a.hl)(e,"open",(function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n{var e=this[v];if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}_("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,a.hl)(this,"onreadystatechange",(function(e){return function(){l();for(var t=arguments.length,r=new Array(t),n=0;n(_("fetch",p(p({},a),{},{endTimestamp:Date.now(),response:e})),e)),(e=>{throw _("fetch",p(p({},a),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=u.chrome,t=e&&e.app&&e.app.runtime,r="history"in u&&!!u.history.pushState&&!!u.history.replaceState;return!t&&r}())return;var e=h.onpopstate;function t(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n2?r[2]:void 0;if(i){var o=f,a=String(i);f=a,_("history",{from:o,to:a})}return e.apply(this,r)}}h.onpopstate=function(){var t=h.location.href,r=f;if(f=t,_("history",{from:r,to:t}),e)try{for(var n=arguments.length,i=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1];return r=>{if(r&&S!==r&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(r){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===w||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(r){}return!1}(S,r))&&(e({event:r,name:n,global:t}),S=r),clearTimeout(w),w=h.setTimeout((()=>{w=void 0}),k)}}}var P=null;var E=null},21938:function(e,t,r){"use strict";r.d(t,{Cy:function(){return g},HD:function(){return c},J8:function(){return v},Kj:function(){return h},PO:function(){return d},TX:function(){return s},V9:function(){return b},VW:function(){return a},VZ:function(){return i},cO:function(){return p},fm:function(){return l},i2:function(){return m},kK:function(){return f},pt:function(){return u},y1:function(){return y}});var n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function o(e,t){return n.call(e)==="[object ".concat(t,"]")}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return o(e,"Object")}function p(e){return"undefined"!==typeof Event&&b(e,Event)}function f(e){return"undefined"!==typeof Element&&b(e,Element)}function h(e){return o(e,"RegExp")}function v(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e){return"number"===typeof e&&e!==e}function b(e,t){try{return e instanceof t}catch(r){return!1}}function y(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}},57732:function(e,t,r){"use strict";r.d(t,{Cf:function(){return a},LD:function(){return o},RU:function(){return i},kg:function(){return s}});var n=r(70468),i=["debug","info","warn","error","log","assert","trace"],o={};function a(e){if(!("console"in n.n2))return e();var t=n.n2.console,r={},i=Object.keys(o);i.forEach((e=>{var n=o[e];r[e]=t[e],t[e]=n}));try{return e()}finally{i.forEach((e=>{t[e]=r[e]}))}}var s=function(){var e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((r=>{t[r]=function(){for(var t=arguments.length,i=new Array(t),o=0;o{n.n2.console[r]("".concat("Sentry Logger ","[").concat(r,"]:"),...i)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}()},52859:function(e,t,r){"use strict";r.d(t,{DM:function(){return l},Db:function(){return d},EG:function(){return p},YO:function(){return f},jH:function(){return u},lE:function(){return h}});var n=r(16042),i=r(42913),o=r(70468);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function c(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var{message:t,event_id:r}=e;if(t)return t;var n=c(e);return n?n.type&&n.value?"".concat(n.type,": ").concat(n.value):n.type||n.value||r||"":r||""}function d(e,t,r){var n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function p(e,t){var r=c(e);if(r){var n=r.mechanism;if(r.mechanism=s(s(s({},{type:"generic",handled:!0}),n),t),t&&"data"in t){var i=s(s({},n&&n.data),t.data);r.mechanism.data=i}}}function f(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function h(e){return Array.isArray(e)?e:[e]}},43764:function(e,t,r){"use strict";r.d(t,{$y:function(){return a},KV:function(){return i},l$:function(){return o}});var n=r(93253);function i(){return!(0,n.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function o(e,t){return e.require(t)}function a(t){var r;try{r=o(e,t)}catch(i){}try{var{cwd:n}=o(e,"process");r=o(e,"".concat(n(),"/node_modules/").concat(t))}catch(i){}return r}e=r.hmd(e)},42913:function(e,t,r){"use strict";r.d(t,{$Q:function(){return p},HK:function(){return f},Jr:function(){return y},Sh:function(){return v},_j:function(){return h},hl:function(){return u},xp:function(){return d},zf:function(){return b}});var n=r(16042),i=r(20757),o=r(21938),a=r(57732),s=r(82867);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t])))).join("&")}function v(e){if((0,o.VZ)(e))return c({message:e.message,name:e.name,stack:e.stack},m(e));if((0,o.cO)(e)){var t=c({type:e.type,target:g(e.target),currentTarget:g(e.currentTarget)},m(e));return"undefined"!==typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function g(e){try{return(0,o.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch(t){return""}}function m(e){if("object"===typeof e&&null!==e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=Object.keys(v(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,s.$G)(r[0],t);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:(0,s.$G)(i,t)}return""}function y(e){return _(e,new Map)}function _(e,t){if((0,o.PO)(e)){var r=t.get(e);if(void 0!==r)return r;var n={};for(var i of(t.set(e,n),Object.keys(e)))"undefined"!==typeof e[i]&&(n[i]=_(e[i],t));return n}if(Array.isArray(e)){var a=t.get(e);if(void 0!==a)return a;var s=[];return t.set(e,s),e.forEach((e=>{s.push(_(e,t))})),s}return e}},63373:function(e,t,r){"use strict";r.d(t,{$P:function(){return p},Sq:function(){return u},pE:function(){return c}});var n=r(16042);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;te[0]-t[0])).map((e=>e[1]));return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],i=e.split("\n"),c=t;c1024)){var d=s.test(u)?u.replace(s,"$1"):u;if(!d.match(/\S*Error: /)){for(var p of n){var f=p(d);if(f){r.push(f);break}}if(r.length>=a)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),l.test(t[t.length-1].function||"")&&(t.pop(),l.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,a).map((e=>o(o({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}function u(e){return Array.isArray(e)?c(...e):e}var d="";function p(e){try{return e&&"function"===typeof e&&e.name||d}catch(t){return d}}},82867:function(e,t,r){"use strict";r.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var n=r(21938);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function o(e,t){if(!Array.isArray(e))return"";for(var r=[],i=0;i2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((r=>function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))}(e,r,t)))}},58940:function(e,t,r){"use strict";r.d(t,{Ak:function(){return o},Du:function(){return a},t$:function(){return s}});var n=r(57732),i=(0,r(70468).Rf)();function o(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;if(a(i.fetch))return!0;var e=!1,t=i.document;if(t&&"function"===typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=a(r.contentWindow.fetch)),t.head.removeChild(r)}catch(s){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return e}},63791:function(e,t,r){"use strict";r.d(t,{$2:function(){return a},WD:function(){return o},cW:function(){return s}});var n,i=r(21938);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{var n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state!==n.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},90275:function(e,t,r){"use strict";r.d(t,{Z1:function(){return d},ph:function(){return u},yW:function(){return c}});var n=r(43764),i=r(70468);e=r.hmd(e);var o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3};var s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){var{performance:e}=o;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l),d=(()=>{var{performance:e}=o;if(e&&e.now){var t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i0&&void 0!==arguments[0]?arguments[0]:(0,i.DM)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.DM)().substring(16),r=arguments.length>2?arguments[2]:void 0,n="";return void 0!==r&&(n=r?"-1":"-0"),"".concat(e,"-").concat(t).concat(n)}},15734:function(e,t,r){"use strict";function n(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}function o(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}r.d(t,{$A:function(){return o},en:function(){return n},rt:function(){return i}})},70468:function(e,t,r){"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});var i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){var n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},71085:function(e,t){var r="undefined"!==typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=h(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function A(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},m.call(y.prototype),m.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(n,o){var a=new y(e,r);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:A(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;n(new C(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=y,e.Response=C),t.Headers=p,t.Request=y,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},97284:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},56105:function(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"===typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},56259:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},87140:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:function(){return o}});var i=r(56259);function o(e){return(0,i.Z)(1,arguments),function(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===n(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e).getTime()2)return r;/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],s.timeZoneDelimiter.test(r.date)&&(r.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length)));if(t){var i=s.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(g.date){var m=function(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(g.date,a);v=function(e,t){if(null===t)return new Date(NaN);var r=e.match(l);if(!r)return new Date(NaN);var n=!!r[4],i=d(r[1]),o=d(r[2])-1,a=d(r[3]),s=d(r[4]),c=d(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,s,c)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(f[t]||(h(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,a)),u):new Date(NaN)}(m.restDateString,m.year)}if(!v||isNaN(v.getTime()))return new Date(NaN);var b,y=v.getTime(),_=0;if(g.time&&(_=function(e){var t=e.match(c);if(!t)return NaN;var r=p(t[1]),o=p(t[2]),a=p(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,o,a))return NaN;return r*i+o*n+1e3*a}(g.time),isNaN(_)))return new Date(NaN);if(!g.timezone){var A=new Date(y+_),C=new Date(0);return C.setFullYear(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()),C.setHours(A.getUTCHours(),A.getUTCMinutes(),A.getUTCSeconds(),A.getUTCMilliseconds()),C}return b=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var r="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return r*(o*i+a*n)}(g.timezone),isNaN(b)?new Date(NaN):new Date(y+_+b)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400===0||e%4===0&&e%100!==0}},51148:function(e,t,r){"use strict";r.d(t,{Bc:function(){return Tn},gN:function(){return Cn},l0:function(){return wn},J9:function(){return mn},u6:function(){return rn}});var n=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=o(e[t],r)})),Object.keys(t).forEach((function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=s(e[i],t[i],r):n[i]=o(t[i],r)})),n}(e,t,r):o(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var l=s,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=d.Symbol,f=Object.prototype,h=f.hasOwnProperty,v=f.toString,g=p?p.toStringTag:void 0;var m=function(e){var t=h.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(o){}var i=v.call(e);return n&&(t?e[g]=r:delete e[g]),i},b=Object.prototype.toString;var y=function(e){return b.call(e)},_=p?p.toStringTag:void 0;var A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?m(e):y(e)};var C=function(e,t){return function(r){return e(t(r))}},w=C(Object.getPrototypeOf,Object);var S=function(e){return null!=e&&"object"==typeof e},k=Function.prototype,x=Object.prototype,P=k.toString,E=x.hasOwnProperty,O=P.call(Object);var T=function(e){if(!S(e)||"[object Object]"!=A(e))return!1;var t=w(e);if(null===t)return!0;var r=E.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&P.call(r)==O},R=r(21914),M=r(42669),F=r.n(M);var D=function(e,t){};var I=function(){this.__data__=[],this.size=0};var B=function(e,t){return e===t||e!==e&&t!==t};var j=function(e,t){for(var r=e.length;r--;)if(B(e[r][0],t))return r;return-1},N=Array.prototype.splice;var L=function(e){var t=this.__data__,r=j(t,e);return!(r<0)&&(r==t.length-1?t.pop():N.call(t,r,1),--this.size,!0)};var Z=function(e){var t=this.__data__,r=j(t,e);return r<0?void 0:t[r][1]};var G=function(e){return j(this.__data__,e)>-1};var z=function(e,t){var r=this.__data__,n=j(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function U(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var nt=function(e){return S(e)&&tt(e.length)&&!!rt[A(e)]};var it=function(e){return function(t){return e(t)}},ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=ot&&"object"==typeof module&&module&&!module.nodeType&&module,st=at&&at.exports===ot&&c.process,lt=function(){try{var e=at&&at.require&&at.require("util").types;return e||st&&st.binding&&st.binding("util")}catch(t){}}(),ct=lt&<.isTypedArray,ut=ct?it(ct):nt,dt=Object.prototype.hasOwnProperty;var pt=function(e,t){var r=Ve(e),n=!r&&He(e),i=!r&&!n&&Qe(e),o=!r&&!n&&!i&&ut(e),a=r||n||i||o,s=a?Ze(e.length,String):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||et(c,l))||s.push(c);return s},ft=Object.prototype;var ht=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ft)},vt=C(Object.keys,Object),gt=Object.prototype.hasOwnProperty;var mt=function(e){if(!ht(e))return vt(e);var t=[];for(var r in Object(e))gt.call(e,r)&&"constructor"!=r&&t.push(r);return t};var bt=function(e){return null!=e&&tt(e.length)&&!X(e)};var yt=function(e){return bt(e)?pt(e):mt(e)};var _t=function(e,t){return e&&Le(t,yt(t),e)};var At=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Ct=Object.prototype.hasOwnProperty;var wt=function(e){if(!K(e))return At(e);var t=ht(e),r=[];for(var n in e)("constructor"!=n||!t&&Ct.call(e,n))&&r.push(n);return r};var St=function(e){return bt(e)?pt(e,!0):wt(e)};var kt=function(e,t){return e&&Le(t,St(t),e)},xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pt=xt&&"object"==typeof module&&module&&!module.nodeType&&module,Et=Pt&&Pt.exports===xt?d.Buffer:void 0,Ot=Et?Et.allocUnsafe:void 0;var Tt=function(e,t){if(t)return e.slice();var r=e.length,n=Ot?Ot(r):new e.constructor(r);return e.copy(n),n};var Rt=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jr=(0,R.createContext)(void 0);Jr.displayName="FormikContext";var en=Jr.Provider,tn=Jr.Consumer;function rn(){var e=(0,R.useContext)(Jr);return e||D(!1),e}var nn=function(e){return Array.isArray(e)&&0===e.length},on=function(e){return"function"===typeof e},an=function(e){return null!==e&&"object"===typeof e},sn=function(e){return String(Math.floor(Number(e)))===e},ln=function(e){return"[object String]"===Object.prototype.toString.call(e)},cn=function(e){return 0===R.Children.count(e)},un=function(e){return an(e)&&on(e.then)};function dn(e,t,r,n){void 0===n&&(n=0);for(var i=qr(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}function fn(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var i=0,o=Object.keys(e);i=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var a=o;dn(t,a.path)||(t=pn(t,a.path,a.message))}}return t}(r)):t(r)}))}))}),[f.validationSchema]),x=(0,R.useCallback)((function(e,t){return new Promise((function(r){return r(y.current[e].validate(t))}))}),[]),P=(0,R.useCallback)((function(e){var t=Object.keys(y.current).filter((function(e){return on(y.current[e].validate)})),r=t.length>0?t.map((function(t){return x(t,dn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=pn(e,t[n],r)),e}),{})}))}),[x]),E=(0,R.useCallback)((function(e){return Promise.all([P(e),f.validationSchema?k(e):{},f.validate?S(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return l.all([t,r,n],{arrayMerge:yn})}))}),[f.validate,f.validationSchema,P,S,k]),O=An((function(e){return void 0===e&&(e=C.values),w({type:"SET_ISVALIDATING",payload:!0}),E(e).then((function(e){return b.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e}))}));(0,R.useEffect)((function(){a&&!0===b.current&&F()(h.current,f.initialValues)&&O(h.current)}),[a,O]);var T=(0,R.useCallback)((function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:v.current?v.current:f.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},i=e&&e.status?e.status:m.current?m.current:f.initialStatus;h.current=t,v.current=r,g.current=n,m.current=i;var o=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(C.values,$);un(a)?a.then(o):o()}else o()}),[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,R.useEffect)((function(){!0!==b.current||F()(h.current,f.initialValues)||u&&(h.current=f.initialValues,T(),a&&O(h.current))}),[u,f.initialValues,T,a,O]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(v.current,f.initialErrors)&&(v.current=f.initialErrors||hn,w({type:"SET_ERRORS",payload:f.initialErrors||hn}))}),[u,f.initialErrors]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(g.current,f.initialTouched)&&(g.current=f.initialTouched||vn,w({type:"SET_TOUCHED",payload:f.initialTouched||vn}))}),[u,f.initialTouched]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(m.current,f.initialStatus)&&(m.current=f.initialStatus,w({type:"SET_STATUS",payload:f.initialStatus}))}),[u,f.initialStatus,f.initialTouched]);var M=An((function(e){if(y.current[e]&&on(y.current[e].validate)){var t=dn(C.values,e),r=y.current[e].validate(t);return un(r)?(w({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})}))):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return f.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),k(C.values,e).then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:dn(t,e)}}),w({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),D=(0,R.useCallback)((function(e,t){var r=t.validate;y.current[e]={validate:r}}),[]),I=(0,R.useCallback)((function(e){delete y.current[e]}),[]),B=An((function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?O(C.values):Promise.resolve()})),j=(0,R.useCallback)((function(e){w({type:"SET_ERRORS",payload:e})}),[]),N=An((function(e,t){var n=on(e)?e(C.values):e;return w({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?O(n):Promise.resolve()})),L=(0,R.useCallback)((function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),Z=An((function(e,t,n){return w({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?O(pn(C.values,e,t)):Promise.resolve()})),G=(0,R.useCallback)((function(e,t){var r,n=t,i=e;if(!ln(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=(o.outerHTML,o.options),p=o.multiple;n=t||(s||l),i=/number|range/.test(a)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(a)?function(e,t,r){if("boolean"===typeof e)return Boolean(t);var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!i)return n.concat(r);if(!i)return n;return n.slice(0,o).concat(n.slice(o+1))}(dn(C.values,n),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}n&&Z(n,i)}),[Z,C.values]),z=An((function(e){if(ln(e))return function(t){return G(t,e)};G(e)})),U=An((function(e,t,r){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?O(C.values):Promise.resolve()})),W=(0,R.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id,o=(r.outerHTML,t||(n||i));U(o,!0)}),[U]),q=An((function(e){if(ln(e))return function(t){return W(t,e)};W(e)})),H=(0,R.useCallback)((function(e){on(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),V=(0,R.useCallback)((function(e){w({type:"SET_STATUS",payload:e})}),[]),Y=(0,R.useCallback)((function(e){w({type:"SET_ISSUBMITTING",payload:e})}),[]),K=An((function(){return w({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Q()))return}catch(n){throw n}return Promise.resolve(r).then((function(e){return b.current&&w({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw w({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(w({type:"SUBMIT_FAILURE"}),t))throw e}))})),X=An((function(e){e&&e.preventDefault&&on(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&on(e.stopPropagation)&&e.stopPropagation(),K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),$={resetForm:T,validateForm:O,validateField:M,setErrors:j,setFieldError:L,setFieldTouched:U,setFieldValue:Z,setStatus:V,setSubmitting:Y,setTouched:B,setValues:N,setFormikState:H,submitForm:K},Q=An((function(){return d(C.values,$)})),J=An((function(e){e&&e.preventDefault&&on(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&on(e.stopPropagation)&&e.stopPropagation(),T()})),ee=(0,R.useCallback)((function(e){return{value:dn(C.values,e),error:dn(C.errors,e),touched:!!dn(C.touched,e),initialValue:dn(h.current,e),initialTouched:!!dn(g.current,e),initialError:dn(v.current,e)}}),[C.errors,C.touched,C.values]),te=(0,R.useCallback)((function(e){return{setValue:function(t,r){return Z(e,t,r)},setTouched:function(t,r){return U(e,t,r)},setError:function(t){return L(e,t)}}}),[Z,U,L]),re=(0,R.useCallback)((function(e){var t=an(e),r=t?e.name:e,n=dn(C.values,r),i={name:r,value:n,onChange:z,onBlur:q};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!(!Array.isArray(n)||!~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[q,z,C.values]),ne=(0,R.useMemo)((function(){return!F()(h.current,C.values)}),[h.current,C.values]),ie=(0,R.useMemo)((function(){return"undefined"!==typeof s?ne?C.errors&&0===Object.keys(C.errors).length:!1!==s&&on(s)?s(f):s:C.errors&&0===Object.keys(C.errors).length}),[s,ne,C.errors,f]);return Kr({},C,{initialValues:h.current,initialErrors:v.current,initialTouched:g.current,initialStatus:m.current,handleBlur:q,handleChange:z,handleReset:J,handleSubmit:X,resetForm:T,setErrors:j,setFormikState:H,setFieldTouched:U,setFieldValue:Z,setFieldError:L,setStatus:V,setSubmitting:Y,setTouched:B,setValues:N,submitForm:K,validateForm:O,validateField:M,isValid:ie,dirty:ne,unregisterField:I,registerField:D,getFieldProps:re,getFieldMeta:ee,getFieldHelpers:te,validateOnBlur:i,validateOnChange:r,validateOnMount:a})}function mn(e){var t=gn(e),r=e.component,n=e.children,i=e.render,o=e.innerRef;return(0,R.useImperativeHandle)(o,(function(){return t})),(0,R.createElement)(en,{value:t},r?(0,R.createElement)(r,t):i?i(t):n?on(n)?n(t):cn(n)?null:R.Children.only(n):null)}function bn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||T(e)?bn(e):""!==e?e:void 0})):T(e[n])?t[n]=bn(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function yn(e,t,r){var n=e.slice();return t.forEach((function(t,i){if("undefined"===typeof n[i]){var o=!1!==r.clone&&r.isMergeableObject(t);n[i]=o?l(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=l(e[i],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var _n="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?R.useLayoutEffect:R.useEffect;function An(e){var t=(0,R.useRef)(e);return _n((function(){t.current=e})),(0,R.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;ne?t:e}),0);return Array.from(Kr({},e,{length:t+1}))}return[]},Pn=function(e,t){var r="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||an(e)){var t=xn(e);return r(t)}return e}},En=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)((function(r){var i=Pn(n,e),a=Pn(t,e),s=pn(r.values,o,e(dn(r.values,o))),l=n?i(dn(r.errors,o)):void 0,c=t?a(dn(r.touched,o)):void 0;return nn(l)&&(l=void 0),nn(c)&&(c=void 0),Kr({},r,{values:s,errors:n?pn(r.errors,o,l):r.errors,touched:t?pn(r.touched,o,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(xn(t),[Yr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e),i=n[t];return n[t]=n[r],n[r]=i,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e),i=n[t];return n.splice(t,1),n.splice(r,0,i),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return kn(r,e,t)}),(function(t){return kn(t,e,null)}),(function(t){return kn(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t=n.length,n}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Qr(r)),r.pop=r.pop.bind(Qr(r)),r}Xr(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!F()(dn(e.formik.values,e.name),dn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?xn(r):[];return t||(t=n[e]),on(n.splice)&&n.splice(e,1),on(n.every)&&n.every((function(e){return void 0===e}))?[]:n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,o=t.name,a=Kr({},e,{form:$r(t.formik,["validate","validationSchema"]),name:o});return r?(0,R.createElement)(r,a):n?n(a):i?"function"===typeof i?i(a):cn(i)?null:R.Children.only(i):null},t}(R.Component);En.defaultProps={validateOnChange:!0};var On=function(e){function t(){return e.apply(this,arguments)||this}Xr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return dn(this.props.formik.errors,this.props.name)!==dn(e.formik.errors,this.props.name)||dn(this.props.formik.touched,this.props.name)!==dn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,n=e.render,i=e.children,o=e.name,a=$r(e,["component","formik","render","children","name"]),s=dn(r.touched,o),l=dn(r.errors,o);return s&&l?n?on(n)?n(l):null:i?on(i)?i(l):null:t?(0,R.createElement)(t,a,l):l:null},t}(R.Component),Tn=Sn(On);R.Component},9778:function(e,t,r){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function _(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function A(e,t,r){return!m.length||(m.call({action:e,location:t,retry:r}),!1)}function C(e){p=e;var t=u();h=t[0],v=t[1],g.call({action:p,location:v})}function w(e){c.go(e)}return null==h&&(h=0,c.replaceState(n({},c.state,{idx:h}),"")),{get action(){return p},get location(){return v},createHref:b,push:function e(t,n){var o=i.Push,a=y(t,n);if(A(o,a,(function(){e(t,n)}))){var s=_(a,h+1),l=s[0],u=s[1];try{c.pushState(l,"",u)}catch(d){r.location.assign(u)}C(o)}},replace:function e(t,r){var n=i.Replace,o=y(t,r);if(A(n,o,(function(){e(t,r)}))){var a=_(o,h),s=a[0],l=a[1];c.replaceState(s,"",l),C(n)}},go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(e){return g.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&r.addEventListener(a,s),function(){t(),m.length||r.removeEventListener(a,s)}}}}()},69061:function(e,t,r){"use strict";var n;r.d(t,{aU:function(){return n}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}))},77531:function(e,t,r){"use strict";var n=r(18625),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var i=f(r);i&&i!==h&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),v=l(r),g=0;ga&&(n=l)}s+1>r.childNodes.length&&(s=r.childNodes.length-1),n||(n=r.childNodes.length);for(var d=s;do)break;p&&8!==p.nodeType&&(t=p)}}return t}(r);if(!n)return{};r.preventDefault(),r.stopPropagation();var o=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"===typeof t)return t.replace(/\n +/g,"").trim()}(n),l=a(n),c=n.getBoundingClientRect?n:n.parentElement,u=c.getBoundingClientRect(),d=u.top,p=u.left,f=u.width,h=u.height,v=window.getComputedStyle(c,null),g=parseFloat(v.getPropertyValue("padding-top")),m=parseFloat(v.getPropertyValue("padding-bottom")),b=parseFloat(v.getPropertyValue("padding-right")),y=parseFloat(v.getPropertyValue("padding-left")),_=v.getPropertyValue("box-sizing");e({tagName:c.tagName,text:o,key:l,ns:s(n)||function(){var e=t.getI18next();if(e&&e.options&&e.options.isLocizify)return e.options.defaultNS}(),box:{top:d,left:p,width:"border-box"===_?f:f-b-y,height:"border-box"===_?h:h-g-m},style:v.cssText})}}r.d(t,{yq:function(){return y}});var c,u,d,p,f,h,v=!0;try{v=self!==top}catch(C){}var g,m=[];function b(e){var t={message:"hrefChanged",href:e};c?c.postMessage(t,u):m.push(t)}var y={type:"3rdParty",init:function(e){g=e,f=function(t){t.updated.forEach((function(t){var r=t.lng,n=t.ns,i=t.key,o=t.data;e.addResource(r,n,i,o.value,{silent:!0}),e.emit("editorSaved")}))},v&&(e.options.missingKeyHandler=function(e,t,r,n,i,o){i||function(e,t,r,n){var i={message:"added",lng:e,ns:t,key:r,value:n};c?c.postMessage(i,u):m.push(i)}(e,t,r,n)}),g.on("languageChanged",(function(e){!function(e){var t={message:"setLng",lng:e};c?c.postMessage(t,u):m.push(t)}(e)}))}};function _(){return g}if("undefined"!==typeof window&&window.addEventListener("message",(function(e){if(e.data&&e.data.message)if("isLocizeEnabled"===e.data.message)c||(c=e.source,u=e.origin,d=l((function(e){c.postMessage({message:"clickedElement",payload:e},u)}),{getI18next:_})),c.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),m.forEach((function(t){c.postMessage(t,e.origin)})),m=[];else if("turnOn"===e.data.message){if(h)return c.postMessage({message:"forcedOff"},u);p||window.document.body.addEventListener("click",d,!0),p=!0,c.postMessage({message:"turnedOn"},u)}else if("turnOff"===e.data.message){if(h)return c.postMessage({message:"forcedOff"},u);p&&window.document.body.removeEventListener("click",d,!0),p=!1,c.postMessage({message:"turnedOff"},u)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),f&&f(t)}})),"undefined"!==typeof window){var A=window.document.location.href;window.addEventListener("load",(function(){b(window.document.location.href);var e=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){A!==window.document.location.href&&b(A=window.document.location.href)}))})).observe(e,{childList:!0,subtree:!0})}))}},70285:function(e,t,r){"use strict";function n(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),s=[],l=0,c=0,u="",d=function(e){if(c-1:void 0===k;i||(b+="(?:".concat(m,"(?=").concat(g,"))?")),x||(b+="(?=".concat(m,"|").concat(g,")"))}return new RegExp(b,a(r))}(n(e,r),t,r)}function l(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return l(e,t,r).source}));return new RegExp("(?:".concat(n.join("|"),")"),a(r))}(e,t,r):s(e,t,r)}r.d(t,{EQ:function(){return i}})},50302:function(e,t,r){"use strict";var n=r(21914),i=r(58395);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r