Free javascript Hosting


main-d39d0daa.js

Uploaded on Jan 24 2022 22:49 by andrey.mazuro

/*! For license information please see main.d39d0daa.js.LICENSE.txt */
(function(){var __webpack_modules__={757:function(e,t,n){e.exports=n(727)},694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,o){for(var i,s,l=a(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))n.call(i,c)&&(l[c]=i[c]);if(t){s=t(i);for(var f=0;f<s.length;f++)r.call(i,s[f])&&(l[s[f]]=i[s[f]])}}return l}},560:function(module,__unused_webpack_exports,__webpack_require__){var factory;factory=function(){return function(){var __webpack_modules__=[,function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.target,a=t.rel,o=t.enabled,s=void 0===o||o;(0,i.assert)(n&&"string"===typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var l=(0,i.removeNullCharacters)(n);s?e.href=e.title=l:(e.href="",e.title="Disabled: ".concat(l),e.onclick=function(){return!1});var u="";switch(r){case P.NONE:break;case P.SELF:u="_self";break;case P.BLANK:u="_blank";break;case P.PARENT:u="_parent";break;case P.TOP:u="_top"}e.target=u,e.rel="string"===typeof a?a:_},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(O(e))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=n.exec(e),o=r.exec(a[1])||r.exec(a[2])||r.exec(a[3]);if(o&&(o=o[0]).includes("%"))try{o=r.exec(decodeURIComponent(o))[0]}catch(s){}return o||t},t.getXfaPageViewport=function(e,t){var n=t.scale,r=void 0===n?1:n,a=t.rotation,o=void 0===a?0:a,i=e.attributes.style,s=i.width,l=i.height,u=[0,0,parseInt(s),parseInt(l)];return new C({viewBox:u,scale:r,rotation:o})},t.isDataScheme=O,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=M,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n,r){var a=document.createElement("script");a.src=e,a.onload=function(e){t&&a.remove(),n(e)},a.onerror=function(){r(new Error("Cannot load script at: ".concat(a.src)))},(document.head||document.documentElement).appendChild(a)}))},t.StatTimer=t.RenderingCancelledException=t.PDFDateString=t.PageViewport=t.LinkTarget=t.DOMSVGFactory=t.DOMStandardFontDataFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=void 0;var a,o=(a=n(2))&&a.__esModule?a:{default:a},i=n(4),s=n(114);function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){c(o,r,a,i,s,"next",e)}function s(e){c(o,r,a,i,s,"throw",e)}i(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=_;var w=function(e){v(n,e);var t=g(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.ownerDocument,o=void 0===a?globalThis.document:a;return d(this,n),(e=t.call(this))._document=o,e}return h(n,[{key:"_createCanvas",value:function(e,t){var n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}]),n}(s.BaseCanvasFactory);function k(e){return S.apply(this,arguments)}function S(){return S=f(o.default.mark((function e(t){var n,r,a=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],!M(t,document.baseURI)){e.next=21;break}return e.next=4,fetch(t);case 4:if((r=e.sent).ok){e.next=7;break}throw new Error(r.statusText);case 7:if(!n){e.next=15;break}return e.t1=Uint8Array,e.next=11,r.arrayBuffer();case 11:e.t2=e.sent,e.t0=new e.t1(e.t2),e.next=20;break;case 15:return e.t3=i.stringToBytes,e.next=18,r.text();case 18:e.t4=e.sent,e.t0=(0,e.t3)(e.t4);case 20:return e.abrupt("return",e.t0);case 21:return e.abrupt("return",new Promise((function(e,r){var a=new XMLHttpRequest;a.open("GET",t,!0),n&&(a.responseType="arraybuffer"),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){var t;if((200===a.status||0===a.status)&&(n&&a.response?t=new Uint8Array(a.response):!n&&a.responseText&&(t=(0,i.stringToBytes)(a.responseText)),t))return void e(t);r(new Error(a.statusText))}},a.send(null)})));case 22:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}t.DOMCanvasFactory=w;var x=function(e){v(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"_fetchData",value:function(e,t){return k(e,this.isCompressed).then((function(e){return{cMapData:e,compressionType:t}}))}}]),n}(s.BaseCMapReaderFactory);t.DOMCMapReaderFactory=x;var A=function(e){v(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"_fetchData",value:function(e){return k(e,!0)}}]),n}(s.BaseStandardFontDataFactory);t.DOMStandardFontDataFactory=A;var E=function(e){v(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"_createSVG",value:function(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}]),n}(s.BaseSVGFactory);t.DOMSVGFactory=E;var C=function(){function e(t){var n=t.viewBox,r=t.scale,a=t.rotation,o=t.offsetX,i=void 0===o?0:o,s=t.offsetY,l=void 0===s?0:s,u=t.dontFlip,c=void 0!==u&&u;d(this,e),this.viewBox=n,this.scale=r,this.rotation=a,this.offsetX=i,this.offsetY=l;var f,p,h,v,m,g,y,b,_=(n[2]+n[0])/2,w=(n[3]+n[1])/2;switch((a%=360)<0&&(a+=360),a){case 180:f=-1,p=0,h=0,v=1;break;case 90:f=0,p=1,h=1,v=0;break;case 270:f=0,p=-1,h=-1,v=0;break;case 0:f=1,p=0,h=0,v=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(h=-h,v=-v),0===f?(m=Math.abs(w-n[1])*r+i,g=Math.abs(_-n[0])*r+l,y=Math.abs(n[3]-n[1])*r,b=Math.abs(n[2]-n[0])*r):(m=Math.abs(_-n[0])*r+i,g=Math.abs(w-n[1])*r+l,y=Math.abs(n[2]-n[0])*r,b=Math.abs(n[3]-n[1])*r),this.transform=[f*r,p*r,h*r,v*r,m-f*r*_-h*r*w,g-p*r*_-v*r*w],this.width=y,this.height=b}return h(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,a=t.rotation,o=void 0===a?this.rotation:a,i=t.offsetX,s=void 0===i?this.offsetX:i,l=t.offsetY,u=void 0===l?this.offsetY:l,c=t.dontFlip,f=void 0!==c&&c;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:o,offsetX:s,offsetY:u,dontFlip:f})}},{key:"convertToViewportPoint",value:function(e,t){return i.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=C;var T=function(e){v(n,e);var t=g(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e)).type=r,a}return n}(i.BaseException);t.RenderingCancelledException=T;var P={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function O(e){for(var t=e.length,n=0;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}t.LinkTarget=P;var R,N=function(){function e(){d(this,e),this.started=Object.create(null),this.times=[]}return h(e,[{key:"time",value:function(e){e in this.started&&(0,i.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,i.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]}},{key:"toString",value:function(){var e,t=[],n=0,r=l(this.times);try{for(r.s();!(e=r.n()).done;){var a=e.value.name;a.length>n&&(n=a.length)}}catch(c){r.e(c)}finally{r.f()}var o,i=l(this.times);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=s.end-s.start;t.push("".concat(s.name.padEnd(n)," ").concat(u,"ms\n"))}}catch(c){i.e(c)}finally{i.f()}return t.join("")}}]),e}();function M(e,t){try{var n=(t?new URL(e,t):new URL(e)).protocol;return"http:"===n||"https:"===n}catch(r){return!1}}t.StatTimer=N;var F=function(){function e(){d(this,e)}return h(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,i.isString)(e))return null;R||(R=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=R.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;var a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var u=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var f=parseInt(t[9],10)||0;return f=f>=0&&f<=59?f:0,"-"===u?(o+=c,s+=f):"+"===u&&(o-=c,s-=f),new Date(Date.UTC(n,r,a,o,s,l))}}]),e}();t.PDFDateString=F},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";function r(e){return r="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},r(e)}var a=function(e){var t,n=Object.prototype,a=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),i=new P(r||[]);return o._invoke=function(e,t,n){var r=d;return function(a,o){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===a)throw o;return R()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=E(i,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=f(e,t,n);if("normal"===l.type){if(r=n.done?v:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=v,n.method="throw",n.arg=l.arg)}}}(e,n,i),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function y(){}function b(){}var _={};u(_,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==n&&a.call(k,i)&&(_=k);var S=b.prototype=g.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,s,l){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=f(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function O(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:R}}function R(){return{value:t,done:!0}}return y.prototype=b,u(S,"constructor",b),u(b,"constructor",y),y.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(A.prototype),u(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new A(c(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;T(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}("object"===r(e=n.nmd(e))?e.exports:{});try{regeneratorRuntime=a}catch(o){"object"===("undefined"===typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return i="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},i(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=P,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var n=0,r=0;r<t;r++)n+=P(e[r]);for(var a=0,o=new Uint8Array(n),i=0;i<t;i++){var s=e[i];s instanceof Uint8Array||(s="string"===typeof s?T(s):new Uint8Array(s));var l=s.byteLength;o.set(s,a),a+=l}return o},t.assert=g,t.bytesToString=function(e){g(null!==e&&"object"===i(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);for(var r=[],a=0;a<t;a+=n){var o=Math.min(a+n,t),s=e.subarray(a,o);r.push(String.fromCharCode.apply(null,s))}return r.join("")},t.createObjectURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!n)return URL.createObjectURL(new Blob([e],{type:t}));for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="data:".concat(t,";base64,"),o=0,i=e.length;o<i;o+=3){var s=255&e[o],l=255&e[o+1],u=255&e[o+2],c=s>>2,f=(3&s)<<4|l>>4,d=o+1<i?(15&l)<<2|u>>6:64,p=o+2<i?63&u:64;a+=r[c]+r[f]+r[d]+r[p]}return a},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(r){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(function(e){return"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)}))},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=[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")];return t.join("")},t.getVerbosityLevel=function(){return h},t.info=function(e){h>=p.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===i(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isBool=function(e){return"boolean"===typeof e},t.isNum=function(e){return"number"===typeof e},t.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(a){return!1}var r=new URL(t,n);return n.origin===r.origin},t.isString=function(e){return"string"===typeof e},t.objectFromMap=function(e){var t,n,r,o=Object.create(null),i=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(i.s();!(t=i.n()).done;){var s=(n=t.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(n,r)||a(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],u=s[1];o[l]=u}}catch(c){i.e(c)}finally{i.f()}return o},t.objectSize=function(e){return Object.keys(e).length},t.removeNullCharacters=function(e){return"string"!==typeof e?(v("The argument for removeNullCharacters must be a string."),e):e.replace(C,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(h=e)},t.shadow=y,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=T,t.stringToPDFString=function(e){var t=e.length,n=[];if("\xfe"===e[0]&&"\xff"===e[1])for(var r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("\xff"===e[0]&&"\xfe"===e[1])for(var a=2;a<t;a+=2)n.push(String.fromCharCode(e.charCodeAt(a+1)<<8|e.charCodeAt(a)));else for(var o=0;o<t;++o){var i=j[e.charCodeAt(o)];n.push(i?String.fromCharCode(i):e.charAt(o))}return n.join("")},t.stringToUTF16BEString=function(e){for(var t=["\xfe\xff"],n=0,r=e.length;n<r;n++){var a=e.charCodeAt(n);t.push(String.fromCharCode(a>>8&255),String.fromCharCode(255&a))}return t.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.unreachable=m,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=v,t.VerbosityLevel=t.Util=t.UNSUPPORTED_FEATURES=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.IsLittleEndianCached=t.IsEvalSupportedCached=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,n(5),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var p={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=p,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var h=p.WARNINGS;function v(e){h>=p.WARNINGS&&console.log("Warning: ".concat(e))}function m(e){throw new Error(e)}function g(e,t){e||m(t)}function y(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var b=function(){function e(t){this.constructor===e&&m("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=b;var _=function(e){l(n,e);var t=c(n);function n(e,r){var a;return s(this,n),(a=t.call(this,e)).code=r,a}return n}(b);t.PasswordException=_;var w=function(e){l(n,e);var t=c(n);function n(e,r){var a;return s(this,n),(a=t.call(this,e)).details=r,a}return n}(b);t.UnknownErrorException=w;var k=function(e){l(n,e);var t=c(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(b);t.InvalidPDFException=k;var S=function(e){l(n,e);var t=c(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(b);t.MissingPDFException=S;var x=function(e){l(n,e);var t=c(n);function n(e,r){var a;return s(this,n),(a=t.call(this,e)).status=r,a}return n}(b);t.UnexpectedResponseException=x;var A=function(e){l(n,e);var t=c(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(b);t.FormatError=A;var E=function(e){l(n,e);var t=c(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(b);t.AbortException=E;var C=/\x00/g;function T(e){g("string"===typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function P(e){return void 0!==e.length?e.length:(g(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var O={get value(){return y(this,"value",function(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=O;var R={get value(){return y(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=R;var N,M=(N=Array(256).keys(),function(e){if(Array.isArray(e))return o(e)}(N)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(N)||a(N)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e.toString(16).padStart(2,"0")})),F=function(){function e(){s(this,e)}var t,n,a;return t=e,a=[{key:"makeHexColor",value:function(e,t,n){return"#".concat(M[e]).concat(M[t]).concat(M[n])}},{key:"transform",value:function(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]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var n=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])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}},{key:"getAxialAlignedBoundingBox",value:function(t,n){var r=e.applyTransform(t,n),a=e.applyTransform(t.slice(2,4),n),o=e.applyTransform([t[0],t[3]],n),i=e.applyTransform([t[2],t[1]],n);return[Math.min(r[0],a[0],o[0],i[0]),Math.min(r[1],a[1],o[1],i[1]),Math.max(r[0],a[0],o[0],i[0]),Math.max(r[1],a[1],o[1],i[1])]}},{key:"inverseTransform",value:function(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]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],i=(n+o)/2,s=Math.sqrt(Math.pow(n+o,2)-4*(n*o-a*r))/2,l=i+s||1,u=i-s||1;return[Math.sqrt(l),Math.sqrt(u)]}},{key:"normalizeRect",value:function(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}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var a=[t[0],t[2],n[0],n[2]].sort(r),o=[t[1],t[3],n[1],n[3]].sort(r),i=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),a[0]===t[0]&&a[1]===n[0]||a[0]===n[0]&&a[1]===t[0]?(i[0]=a[1],i[2]=a[2],o[0]===t[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===t[1]?(i[1]=o[1],i[3]=o[2],i):null):null}}],(n=null)&&r(t.prototype,n),a&&r(t,a),e}();t.Util=F;var j=[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(e,t,n){"use strict";var r=n(6);"undefined"!==typeof globalThis&&globalThis._pdfjsCompatibilityChecked||("undefined"!==typeof globalThis&&globalThis.Math===Math||(globalThis=n(7)),globalThis._pdfjsCompatibilityChecked=!0,!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),!globalThis.DOMMatrix&&r.isNodeJS&&(globalThis.DOMMatrix=n(53)),Object.fromEntries||n(54),globalThis.Promise.allSettled||(globalThis.Promise=n(85)),function(){var e=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=n(113).ReadableStream)}())},function(e,t){"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)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var r="object"===("undefined"===typeof process?"undefined":n(process))&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=r},function(e,t,n){n(8),e.exports=n(10)},function(e,t,n){n(9)({global:!0},{globalThis:n(10)})},function(e,t,n){var r=n(10),a=n(11).f,o=n(26),i=n(29),s=n(30),l=n(40),u=n(52);e.exports=function(e,t){var n,c,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(p=a(n,c))&&p.value:n[c],!u(v?c:h+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d===typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),i(n,c,d,e)}}},function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof __webpack_require__.g&&__webpack_require__.g)||function(){return this}()||Function("return this")()},function(e,t,n){var r=n(12),a=n(14),o=n(15),i=n(16),s=n(20),l=n(22),u=n(24),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=i(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!a.f.call(e,t),e[t])}},function(e,t,n){var r=n(13);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(17),a=n(19);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(13),a=n(18),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?o.call(e,""):Object(e)}:Object},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){var r=n(23),a={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return a.call(r(e),t)}},function(e,t,n){var r=n(19);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(12),a=n(13),o=n(25);e.exports=!r&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(10),a=n(21),o=r.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(12),a=n(27),o=n(15);e.exports=r?function(e,t,n){return a.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(12),a=n(24),o=n(28),i=n(20),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(10),a=n(26),o=n(22),i=n(30),s=n(31),l=n(33),u=l.get,c=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||a(n,"name",t),(l=c(n)).source||(l.source=f.join("string"==typeof t?t:""))),e!==r?(u?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:a(e,t,n)):d?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){var r=n(10),a=n(26);e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(32),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return a.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(10),a=n(30),o="__core-js_shared__",i=r[o]||a(o,{});e.exports=i},function(e,t,n){var r,a,o,i=n(34),s=n(10),l=n(21),u=n(26),c=n(22),f=n(32),d=n(35),p=n(39),h="Object already initialized",v=s.WeakMap;if(i||f.state){var m=f.state||(f.state=new v),g=m.get,y=m.has,b=m.set;r=function(e,t){if(y.call(m,e))throw new TypeError(h);return t.facade=e,b.call(m,e,t),t},a=function(e){return g.call(m,e)||{}},o=function(e){return y.call(m,e)}}else{var _=d("state");p[_]=!0,r=function(e,t){if(c(e,_))throw new TypeError(h);return t.facade=e,u(e,_,t),t},a=function(e){return c(e,_)?e[_]:{}},o=function(e){return c(e,_)}}e.exports={set:r,get:a,has:o,enforce:function(e){return o(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(10),a=n(31),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(a(o))},function(e,t,n){var r=n(36),a=n(38),o=r("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},function(e,t,n){var r=n(37),a=n(32);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.2",mode:r?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},function(e){e.exports=!1},function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},function(e){e.exports={}},function(e,t,n){var r=n(22),a=n(41),o=n(11),i=n(27);e.exports=function(e,t){for(var n=a(t),s=i.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},function(e,t,n){var r=n(42),a=n(44),o=n(51),i=n(28);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(43),a=n(10),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},function(e,t,n){var r=n(10);e.exports=r},function(e,t,n){var r=n(45),a=n(50).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(e,t,n){var r=n(22),a=n(16),o=n(46).indexOf,i=n(39);e.exports=function(e,t){var n,s=a(e),l=0,u=[];for(n in s)!r(i,n)&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(16),a=n(47),o=n(49),i=function(e){return function(t,n,i){var s,l=r(t),u=a(l.length),c=o(i,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},function(e,t,n){var r=n(48),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e,t,n){var r=n(48),a=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):o(n,t)}},function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(13),a=/#|\.prototype\./,o=function(e,t){var n=s[i(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},i=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r,a,o;function i(e){return i="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},i(e)}o=function(){var e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.setIdentity(),e&&e.length&&this.setMatrixValue(e)},t={isIdentity:{configurable:!0},is2D:{configurable:!0}};t.isIdentity.get=function(){var e=this;return 1===e.m11&&0===e.m12&&0===e.m13&&0===e.m14&&0===e.m21&&1===e.m22&&0===e.m23&&0===e.m24&&0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m41&&0===e.m42&&0===e.m43&&1===e.m44},t.isIdentity.set=function(e){this.isIdentity=e},t.is2D.get=function(){var e=this;return 0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m43&&1===e.m44},t.is2D.set=function(e){this.is2D=e},Object.defineProperties(e.prototype,t);var n=e.prototype;function r(t,n,r){var a=new e;return a.m41=t,a.e=t,a.m42=n,a.f=n,a.m43=r,a}function a(t,n,r){var a=new e,o=t*Math.PI/180,i=n*Math.PI/180,s=r*Math.PI/180,l=Math.cos(o),u=-Math.sin(o),c=Math.cos(i),f=-Math.sin(i),d=Math.cos(s),p=-Math.sin(s),h=c*d,v=-c*p;a.m11=h,a.a=h,a.m12=v,a.b=v,a.m13=f;var m=u*f*d+l*p;a.m21=m,a.c=m;var g=l*d-u*f*p;return a.m22=g,a.d=g,a.m23=-u*c,a.m31=u*p-l*f*d,a.m32=u*d+l*f*p,a.m33=l*c,a}function o(t,n,r,a){var o=new e,i=a*Math.PI/360,s=Math.sin(i),l=Math.cos(i),u=s*s,c=Math.sqrt(t*t+n*n+r*r),f=0,d=0,p=1;0!==c&&(f=t/c,d=n/c,p=r/c);var h=f*f,v=d*d,m=p*p,g=1-2*(v+m)*u;o.m11=g,o.a=g;var y=2*(t*n*u+r*s*l);o.m12=y,o.b=y,o.m13=2*(t*r*u-n*s*l);var b=2*(n*t*u-r*s*l);o.m21=b,o.c=b;var _=1-2*(m+h)*u;return o.m22=_,o.d=_,o.m23=2*(n*r*u+t*s*l),o.m31=2*(r*t*u+n*s*l),o.m32=2*(r*n*u-t*s*l),o.m33=1-2*(h+v)*u,o.m14=0,o.m24=0,o.m34=0,o.m41=0,o.e=0,o.m42=0,o.f=0,o.m43=0,o.m44=1,o}function i(t,n,r){var a=new e;return a.m11=t,a.a=t,a.m22=n,a.d=n,a.m33=r,a}function s(t){var n=t*Math.PI/180,r=new e,a=Math.tan(n);return r.m21=a,r.c=a,r}function l(t){var n=t*Math.PI/180,r=new e,a=Math.tan(n);return r.m12=a,r.b=a,r}function u(t,n){var r=n.m11*t.m11+n.m12*t.m21+n.m13*t.m31+n.m14*t.m41,a=n.m11*t.m12+n.m12*t.m22+n.m13*t.m32+n.m14*t.m42,o=n.m11*t.m13+n.m12*t.m23+n.m13*t.m33+n.m14*t.m43,i=n.m11*t.m14+n.m12*t.m24+n.m13*t.m34+n.m14*t.m44,s=n.m21*t.m11+n.m22*t.m21+n.m23*t.m31+n.m24*t.m41,l=n.m21*t.m12+n.m22*t.m22+n.m23*t.m32+n.m24*t.m42,u=n.m21*t.m13+n.m22*t.m23+n.m23*t.m33+n.m24*t.m43,c=n.m21*t.m14+n.m22*t.m24+n.m23*t.m34+n.m24*t.m44,f=n.m31*t.m11+n.m32*t.m21+n.m33*t.m31+n.m34*t.m41,d=n.m31*t.m12+n.m32*t.m22+n.m33*t.m32+n.m34*t.m42,p=n.m31*t.m13+n.m32*t.m23+n.m33*t.m33+n.m34*t.m43,h=n.m31*t.m14+n.m32*t.m24+n.m33*t.m34+n.m34*t.m44,v=n.m41*t.m11+n.m42*t.m21+n.m43*t.m31+n.m44*t.m41,m=n.m41*t.m12+n.m42*t.m22+n.m43*t.m32+n.m44*t.m42,g=n.m41*t.m13+n.m42*t.m23+n.m43*t.m33+n.m44*t.m43,y=n.m41*t.m14+n.m42*t.m24+n.m43*t.m34+n.m44*t.m44;return new e([r,s,f,v,a,l,d,m,o,u,p,g,i,c,h,y])}function c(e,t){var n=Array.from(t);if(16===n.length){var r=n[0],a=n[1],o=n[2],i=n[3],s=n[4],l=n[5],u=n[6],c=n[7],f=n[8],d=n[9],p=n[10],h=n[11],v=n[12],m=n[13],g=n[14],y=n[15];e.m11=r,e.a=r,e.m21=a,e.c=a,e.m31=o,e.m41=i,e.e=i,e.m12=s,e.b=s,e.m22=l,e.d=l,e.m32=u,e.m42=c,e.f=c,e.m13=f,e.m23=d,e.m33=p,e.m43=h,e.m14=v,e.m24=m,e.m34=g,e.m44=y}else{if(6!==n.length)throw new TypeError("CSSMatrix: expecting a 6/16 values Array");var b=n[0],_=n[1],w=n[2],k=n[3],S=n[4],x=n[5];e.m11=b,e.a=b,e.m12=_,e.b=_,e.m21=w,e.c=w,e.m22=k,e.d=k,e.m14=S,e.e=S,e.m24=x,e.f=x}return e}return n.setMatrixValue=function(t){var n=this;if(!t||!t.length)return n;if(t.length&&"string"===typeof t[0]&&t[0].length){var r,a,o=String(t[0]).trim();if("none"===o)return n;if(r=o.slice(0,o.indexOf("(")),a=o.slice("matrix"===r?7:9,-1).split(",").map((function(e){return Math.abs(e)<1e-6?0:+e})),!([6,16].indexOf(a.length)>-1))throw new TypeError("CSSMatrix: expecting valid CSS matrix() / matrix3d() syntax");c(n,a)}else t[0]instanceof e?c(n,t[0].toArray()):Array.isArray(t[0])?c(n,t[0]):Array.isArray(t)&&c(n,t);return n},n.toString=function(){return(this.is2D?"matrix":"matrix3d")+"("+this.toArray(1).join(",")+")"},n.toArray=function(e){var t=this;return t.is2D?[t.a,t.b,t.c,t.d,t.e,t.f]:e?[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]:[t.m11,t.m21,t.m31,t.m41,t.m12,t.m22,t.m32,t.m42,t.m13,t.m23,t.m33,t.m43,t.m14,t.m24,t.m34,t.m44]},n.multiply=function(e){return u(this,e)},n.translate=function(e,t,n){var a=t,o=n;return null==o&&(o=0),null==a&&(a=0),u(this,r(e,a,o))},n.scale=function(e,t,n){var r=t,a=n;return null==r&&(r=e),null==a&&(a=e),u(this,i(e,r,a))},n.rotate=function(e,t,n){var r=e,o=t,i=n;return null==o&&(o=0),null==i&&(i=r,r=0),u(this,a(r,o,i))},n.rotateAxisAngle=function(e,t,n,r){if(4!==arguments.length)throw new TypeError("CSSMatrix: expecting 4 values");return u(this,o(e,t,n,r))},n.skewX=function(e){return u(this,s(e))},n.skewY=function(e){return u(this,l(e))},n.setIdentity=function(){return c(this,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},n.transformPoint=function(e){var t=r(e.x,e.y,e.z);return t.m44=e.w||1,{x:(t=this.multiply(t)).m41,y:t.m42,z:t.m43,w:t.m44}},n.transform=function(e){var t=this,n=t.m11*e.x+t.m12*e.y+t.m13*e.z+t.m14*e.w,r=t.m21*e.x+t.m22*e.y+t.m23*e.z+t.m24*e.w,a=t.m31*e.x+t.m32*e.y+t.m33*e.z+t.m34*e.w,o=t.m41*e.x+t.m42*e.y+t.m43*e.z+t.m44*e.w;return{x:n/o,y:r/o,z:a/o,w:o}},e.Translate=r,e.Rotate=a,e.RotateAxisAngle=o,e.Scale=i,e.SkewX=s,e.SkewY=l,e.Multiply=u,e.fromMatrix=function(t){return new e([t.m11,t.m21,t.m31,t.m41,t.m12,t.m22,t.m32,t.m42,t.m13,t.m23,t.m33,t.m43,t.m14,t.m24,t.m34,t.m44])},e.fromArray=function(t){return c(new e,t)},e.feedFromArray=c,e},"object"===i(t)?e.exports=o():void 0===(a="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=a)},function(e,t,n){n(55),n(75);var r=n(43);e.exports=r.Object.fromEntries},function(e,t,n){"use strict";var r=n(16),a=n(56),o=n(66),i=n(33),s=n(67),l="Array Iterator",u=i.set,c=i.getterFor(l);e.exports=s(Array,"Array",(function(e,t){u(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},function(e,t,n){var r=n(57),a=n(62),o=n(27),i=r("unscopables"),s=Array.prototype;void 0==s[i]&&o.f(s,i,{configurable:!0,value:a(null)}),e.exports=function(e){s[i][e]=!0}},function(e,t,n){var r=n(10),a=n(36),o=n(22),i=n(38),s=n(58),l=n(61),u=a("wks"),c=r.Symbol,f=l?c:c&&c.withoutSetter||i;e.exports=function(e){return o(u,e)&&(s||"string"==typeof u[e])||(s&&o(c,e)?u[e]=c[e]:u[e]=f("Symbol."+e)),u[e]}},function(e,t,n){var r=n(59),a=n(13);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r,a,o=n(10),i=n(60),s=o.process,l=s&&s.versions,u=l&&l.v8;u?a=(r=u.split("."))[0]<4?1:r[0]+r[1]:i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(a=r[1]),e.exports=a&&+a},function(e,t,n){var r=n(42);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(58);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r,a=n(28),o=n(63),i=n(50),s=n(39),l=n(65),u=n(25),c=n(35),f=c("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):function(){var e,t=u("iframe");return t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F}();for(var e=i.length;e--;)delete h.prototype[i[e]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=a(e),n=new d,d.prototype=null,n[f]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(12),a=n(27),o=n(28),i=n(64);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=i(t),s=r.length,l=0;s>l;)a.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(45),a=n(50);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){var r=n(42);e.exports=r("document","documentElement")},function(e){e.exports={}},function(e,t,n){"use strict";var r=n(9),a=n(68),o=n(70),i=n(73),s=n(72),l=n(26),u=n(29),c=n(57),f=n(37),d=n(66),p=n(69),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=c("iterator"),g="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,p,w,k){a(n,t,c);var S,x,A,E=function(e){if(e===p&&R)return R;if(!v&&e in P)return P[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",T=!1,P=e.prototype,O=P[m]||P["@@iterator"]||p&&P[p],R=!v&&O||E(p),N="Array"==t&&P.entries||O;if(N&&(S=o(N.call(new e)),h!==Object.prototype&&S.next&&(f||o(S)===h||(i?i(S,h):"function"!=typeof S[m]&&l(S,m,_)),s(S,C,!0,!0),f&&(d[C]=_))),p==y&&O&&O.name!==y&&(T=!0,R=function(){return O.call(this)}),f&&!k||P[m]===R||l(P,m,R),d[t]=R,p)if(x={values:E(y),keys:w?R:E(g),entries:E(b)},k)for(A in x)(v||T||!(A in P))&&u(P,A,x[A]);else r({target:t,proto:!0,forced:v||T},x);return x}},function(e,t,n){"use strict";var r=n(69).IteratorPrototype,a=n(62),o=n(15),i=n(72),s=n(66),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=a(r,{next:o(1,n)}),i(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var r,a,o,i=n(13),s=n(70),l=n(26),u=n(22),c=n(57),f=n(37),d=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(a=s(s(o)))!==Object.prototype&&(r=a):p=!0);var h=void 0==r||i((function(){var e={};return r[d].call(e)!==e}));h&&(r={}),f&&!h||u(r,d)||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(22),a=n(23),o=n(35),i=n(71),s=o("IE_PROTO"),l=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=a(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var r=n(13);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(27).f,a=n(22),o=n(57)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(28),a=n(74);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(9),a=n(76),o=n(84);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},function(e,t,n){var r=n(28),a=n(77),o=n(47),i=n(78),s=n(80),l=n(83),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,f,d,p,h,v,m,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=i(t,g,1+y+_),k=function(e){return c&&l(c),new u(!0,e)},S=function(e){return y?(r(e),_?w(e[0],e[1],k):w(e[0],e[1])):_?w(e,k):w(e)};if(b)c=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(a(f)){for(d=0,p=o(e.length);p>d;d++)if((h=S(e[d]))&&h instanceof u)return h;return new u(!1)}c=f.call(e)}for(v=c.next;!(m=v.call(c)).done;){try{h=S(m.value)}catch(x){throw l(c),x}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},function(e,t,n){var r=n(57),a=n(66),o=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},function(e,t,n){var r=n(79);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(81),a=n(66),o=n(57)("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[r(e)]}},function(e,t,n){var r=n(82),a=n(18),o=n(57)("toStringTag"),i="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:i?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(57)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(28);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){"use strict";var r=n(20),a=n(27),o=n(15);e.exports=function(e,t,n){var i=r(t);i in e?a.f(e,i,o(0,n)):e[i]=n}},function(e,t,n){n(86),n(87),n(89),n(106),n(107),n(108),n(109),n(111);var r=n(43);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(9),a=n(70),o=n(73),i=n(62),s=n(26),l=n(15),u=n(76),c=function(e,t){var n=this;if(!(n instanceof c))return new c(e,t);o&&(n=o(new Error(void 0),a(n))),void 0!==t&&s(n,"message",String(t));var r=[];return u(e,r.push,{that:r}),s(n,"errors",r),n};c.prototype=i(Error.prototype,{constructor:l(5,c),message:l(5,""),name:l(5,"AggregateError")}),r({global:!0},{AggregateError:c})},function(e,t,n){var r=n(82),a=n(29),o=n(88);r||a(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(82),a=n(81);e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t,n){"use strict";var r,a,o,i,s=n(9),l=n(37),u=n(10),c=n(42),f=n(90),d=n(29),p=n(91),h=n(73),v=n(72),m=n(92),g=n(21),y=n(79),b=n(93),_=n(31),w=n(76),k=n(94),S=n(95),x=n(96).set,A=n(99),E=n(101),C=n(103),T=n(102),P=n(104),O=n(33),R=n(52),N=n(57),M=n(105),F=n(98),j=n(59),I=N("species"),L="Promise",D=O.get,q=O.set,z=O.getterFor(L),B=f&&f.prototype,U=f,W=B,H=u.TypeError,V=u.document,G=u.process,X=T.f,Y=X,K=!!(V&&V.createEvent&&u.dispatchEvent),Q="function"==typeof PromiseRejectionEvent,$="unhandledrejection",J=!1,Z=R(L,(function(){var e=_(U),t=e!==String(U);if(!t&&66===j)return!0;if(l&&!W.finally)return!0;if(j>=51&&/native code/.test(e))return!1;var n=new U((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[I]=r,!(J=n.then((function(){}))instanceof r)||!t&&M&&!Q})),ee=Z||!k((function(e){U.all(e).catch((function(){}))})),te=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},ne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){for(var r=e.value,a=1==e.state,o=0;n.length>o;){var i,s,l,u=n[o++],c=a?u.ok:u.fail,f=u.resolve,d=u.reject,p=u.domain;try{c?(a||(2===e.rejection&&ie(e),e.rejection=1),!0===c?i=r:(p&&p.enter(),i=c(r),p&&(p.exit(),l=!0)),i===u.promise?d(H("Promise-chain cycle")):(s=te(i))?s.call(i,f,d):f(i)):d(r)}catch(h){p&&!l&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},re=function(e,t,n){var r,a;K?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(a=u["on"+e])?a(r):e===$&&C("Unhandled promise rejection",n)},ae=function(e){x.call(u,(function(){var t,n=e.facade,r=e.value;if(oe(e)&&(t=P((function(){F?G.emit("unhandledRejection",r,n):re($,n,r)})),e.rejection=F||oe(e)?2:1,t.error))throw t.value}))},oe=function(e){return 1!==e.rejection&&!e.parent},ie=function(e){x.call(u,(function(){var t=e.facade;F?G.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ne(e,!0))},ue=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw H("Promise can't be resolved itself");var a=te(n);a?A((function(){var r={done:!1};try{a.call(n,se(e,r,t),se(le,r,t))}catch(o){le(r,o,t)}})):(t.value=n,t.state=1,ne(t,!1))}catch(o){le({done:!1},o,t)}}};if(Z&&(W=(U=function(e){b(this,U,L),y(e),r.call(this);var t=D(this);try{e(se(ue,t),se(le,t))}catch(n){le(t,n)}}).prototype,(r=function(e){q(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(e,t){var n=z(this),r=X(S(this,U));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=F?G.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ne(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=D(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(le,t)},T.f=X=function(e){return e===U||e===o?new a(e):Y(e)},!l&&"function"==typeof f&&B!==Object.prototype)){i=B.then,J||(d(B,"then",(function(e,t){var n=this;return new U((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),d(B,"catch",W.catch,{unsafe:!0}));try{delete B.constructor}catch(ce){}h&&h(B,W)}s({global:!0,wrap:!0,forced:Z},{Promise:U}),v(U,L,!1,!0),m(L),o=c(L),s({target:L,stat:!0,forced:Z},{reject:function(e){var t=X(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:l||Z},{resolve:function(e){return E(l&&this===o?U:this,e)}}),s({target:L,stat:!0,forced:ee},{all:function(e){var t=this,n=X(t),r=n.resolve,a=n.reject,o=P((function(){var n=y(t.resolve),o=[],i=0,s=1;w(e,(function(e){var l=i++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),a)})),--s||r(o)}));return o.error&&a(o.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,a=P((function(){var a=y(t.resolve);w(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},function(e,t,n){var r=n(10);e.exports=r.Promise},function(e,t,n){var r=n(29);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},function(e,t,n){"use strict";var r=n(42),a=n(27),o=n(57),i=n(12),s=o("species");e.exports=function(e){var t=r(e),n=a.f;i&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(57)("iterator"),a=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){a=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(s){}return n}},function(e,t,n){var r=n(28),a=n(79),o=n(57)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[o])?t:a(n)}},function(e,t,n){var r,a,o,i=n(10),s=n(13),l=n(78),u=n(65),c=n(25),f=n(97),d=n(98),p=i.location,h=i.setImmediate,v=i.clearImmediate,m=i.process,g=i.MessageChannel,y=i.Dispatch,b=0,_={},w="onreadystatechange",k=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){k(e)}},x=function(e){k(e.data)},A=function(e){i.postMessage(e+"",p.protocol+"//"+p.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete _[e]},d?r=function(e){m.nextTick(S(e))}:y&&y.now?r=function(e){y.now(S(e))}:g&&!f?(o=(a=new g).port2,a.port1.onmessage=x,r=l(o.postMessage,o,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&p&&"file:"!==p.protocol&&!s(A)?(r=A,i.addEventListener("message",x,!1)):r=w in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:h,clear:v}},function(e,t,n){var r=n(60);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(18),a=n(10);e.exports="process"==r(a.process)},function(e,t,n){var r,a,o,i,s,l,u,c,f=n(10),d=n(11).f,p=n(96).set,h=n(97),v=n(100),m=n(98),g=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,_=f.Promise,w=d(f,"queueMicrotask"),k=w&&w.value;k||(r=function(){var e,t;for(m&&(e=b.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(n){throw a?i():o=void 0,n}}o=void 0,e&&e.enter()},h||m||v||!g||!y?_&&_.resolve?((u=_.resolve(void 0)).constructor=_,c=u.then,i=function(){c.call(u,r)}):i=m?function(){b.nextTick(r)}:function(){p.call(f,r)}:(s=!0,l=y.createTextNode(""),new g(r).observe(l,{characterData:!0}),i=function(){l.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};o&&(o.next=t),a||(a=t,i()),o=t}},function(e,t,n){var r=n(60);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(28),a=n(21),o=n(102);e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(79),a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(9),a=n(79),o=n(102),i=n(104),s=n(76);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=i((function(){var n=a(t.resolve),o=[],i=0,l=1;s(e,(function(e){var a=i++,s=!1;o.push(void 0),l++,n.call(t,e).then((function(e){s||(s=!0,o[a]={status:"fulfilled",value:e},--l||r(o))}),(function(e){s||(s=!0,o[a]={status:"rejected",reason:e},--l||r(o))}))})),--l||r(o)}));return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(9),a=n(79),o=n(42),i=n(102),s=n(104),l=n(76),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i.f(t),r=n.resolve,c=n.reject,f=s((function(){var n=a(t.resolve),i=[],s=0,f=1,d=!1;l(e,(function(e){var a=s++,l=!1;i.push(void 0),f++,n.call(t,e).then((function(e){l||d||(d=!0,r(e))}),(function(e){l||d||(l=!0,i[a]=e,--f||c(new(o("AggregateError"))(i,u)))}))})),--f||c(new(o("AggregateError"))(i,u))}));return f.error&&c(f.value),n.promise}})},function(e,t,n){"use strict";var r=n(9),a=n(37),o=n(90),i=n(13),s=n(42),l=n(95),u=n(101),c=n(29);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&i((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!a&&"function"==typeof o){var f=s("Promise").prototype.finally;o.prototype.finally!==f&&c(o.prototype,"finally",f,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(110).charAt,a=n(33),o=n(67),i="String Iterator",s=a.set,l=a.getterFor(i);o(String,"String",(function(e){s(this,{type:i,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(48),a=n(19),o=function(e){return function(t,n){var o,i,s=String(a(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?e?s.charAt(l):o:e?s.slice(l,l+2):i-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(10),a=n(112),o=n(55),i=n(26),s=n(57),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var f in a){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==c)try{i(p,l,c)}catch(v){p[l]=c}if(p[u]||i(p,u,f),a[f])for(var h in o)if(p[h]!==o[h])try{i(p,h,o[h])}catch(v){p[h]=o[h]}}}},function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t){!function(e){"use strict";var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}function r(){return"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:void 0}var a=r();function o(e){return"object"===typeof e&&null!==e||"function"===typeof e}var i=n,s=Promise,l=Promise.prototype.then,u=Promise.resolve.bind(s),c=Promise.reject.bind(s);function f(e){return new s(e)}function d(e){return u(e)}function p(e){return c(e)}function h(e,t,n){return l.call(e,t,n)}function v(e,t,n){h(h(e,t,n),void 0,i)}function m(e,t){v(e,t)}function g(e,t){v(e,void 0,t)}function y(e,t,n){return h(e,t,n)}function b(e){h(e,void 0,i)}var _=function(){var e=a&&a.queueMicrotask;if("function"===typeof e)return e;var t=d(void 0);return function(e){return h(t,e)}}();function w(e,t,n){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function k(e,t,n){try{return d(w(e,t,n))}catch(r){return p(r)}}var S=16384,x=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.push=function(e){var t=this._back,n=t;t._elements.length===S-1&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size},e.prototype.shift=function(){var e=this._front,t=e,n=this._cursor,r=n+1,a=e._elements,o=a[n];return r===S&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),a[n]=void 0,o},e.prototype.forEach=function(e){for(var t=this._cursor,n=this._front,r=n._elements;(t!==r.length||void 0!==n._next)&&(t!==r.length||(t=0,0!==(r=(n=n._next)._elements).length));)e(r[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function A(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?P(e):"closed"===t._state?R(e):O(e,t._storedError)}function E(e,t){return Ar(e._ownerReadableStream,t)}function C(e){"readable"===e._ownerReadableStream._state?N(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):M(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function T(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function P(e){e._closedPromise=f((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n}))}function O(e,t){P(e),N(e,t)}function R(e){P(e),F(e)}function N(e,t){void 0!==e._closedPromise_reject&&(b(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function M(e,t){O(e,t)}function F(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}var j=t("[[AbortSteps]]"),I=t("[[ErrorSteps]]"),L=t("[[CancelSteps]]"),D=t("[[PullSteps]]"),q=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},z=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function B(e){return"object"===typeof e||"function"===typeof e}function U(e,t){if(void 0!==e&&!B(e))throw new TypeError(t+" is not an object.")}function W(e,t){if("function"!==typeof e)throw new TypeError(t+" is not a function.")}function H(e){return"object"===typeof e&&null!==e||"function"===typeof e}function V(e,t){if(!H(e))throw new TypeError(t+" is not an object.")}function G(e,t,n){if(void 0===e)throw new TypeError("Parameter "+t+" is required in '"+n+"'.")}function X(e,t,n){if(void 0===e)throw new TypeError(t+" is required in '"+n+"'.")}function Y(e){return Number(e)}function K(e){return 0===e?0:e}function Q(e){return K(z(e))}function $(e,t){var n=0,r=Number.MAX_SAFE_INTEGER,a=Number(e);if(a=K(a),!q(a))throw new TypeError(t+" is not a finite number");if((a=Q(a))<n||a>r)throw new TypeError(t+" is outside the accepted range of "+n+" to "+r+", inclusive");return q(a)&&0!==a?a:0}function J(e,t){if(!Sr(e))throw new TypeError(t+" is not a ReadableStream.")}function Z(e){return new ie(e)}function ee(e,t){e._reader._readRequests.push(t)}function te(e,t,n){var r=e._reader._readRequests.shift();n?r._closeSteps():r._chunkSteps(t)}function ne(e){return e._reader._readRequests.length}function re(e){var t=e._reader;return void 0!==t&&!!se(t)}var ae,oe,ie=function(){function e(e){if(G(e,1,"ReadableStreamDefaultReader"),J(e,"First parameter"),xr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");A(this,e),this._readRequests=new x}return Object.defineProperty(e.prototype,"closed",{get:function(){return se(this)?this._closedPromise:p(ue("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),se(this)?void 0===this._ownerReadableStream?p(T("cancel")):E(this,e):p(ue("cancel"))},e.prototype.read=function(){if(!se(this))return p(ue("read"));if(void 0===this._ownerReadableStream)return p(T("read from"));var e,t,n=f((function(n,r){e=n,t=r}));return le(this,{_chunkSteps:function(t){return e({value:t,done:!1})},_closeSteps:function(){return e({value:void 0,done:!0})},_errorSteps:function(e){return t(e)}}),n},e.prototype.releaseLock=function(){if(!se(this))throw ue("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");C(this)}},e}();function se(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof ie}function le(e,t){var n=e._ownerReadableStream;n._disturbed=!0,"closed"===n._state?t._closeSteps():"errored"===n._state?t._errorSteps(n._storedError):n._readableStreamController[D](t)}function ue(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(ie.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(ie.prototype,t.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"===typeof t.asyncIterator&&((ae={})[t.asyncIterator]=function(){return this},oe=ae,Object.defineProperty(oe,t.asyncIterator,{enumerable:!1}));var ce=function(){function e(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}return e.prototype.next=function(){var e=this,t=function(){return e._nextSteps()};return this._ongoingPromise=this._ongoingPromise?y(this._ongoingPromise,t,t):t(),this._ongoingPromise},e.prototype.return=function(e){var t=this,n=function(){return t._returnSteps(e)};return this._ongoingPromise?y(this._ongoingPromise,n,n):n()},e.prototype._nextSteps=function(){var e=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var t,n,r=this._reader;if(void 0===r._ownerReadableStream)return p(T("iterate"));var a=f((function(e,r){t=e,n=r}));return le(r,{_chunkSteps:function(n){e._ongoingPromise=void 0,_((function(){return t({value:n,done:!1})}))},_closeSteps:function(){e._ongoingPromise=void 0,e._isFinished=!0,C(r),t({value:void 0,done:!0})},_errorSteps:function(t){e._ongoingPromise=void 0,e._isFinished=!0,C(r),n(t)}}),a},e.prototype._returnSteps=function(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;var t=this._reader;if(void 0===t._ownerReadableStream)return p(T("finish iterating"));if(!this._preventCancel){var n=E(t,e);return C(t),y(n,(function(){return{value:e,done:!0}}))}return C(t),d({value:e,done:!0})},e}(),fe={next:function(){return pe(this)?this._asyncIteratorImpl.next():p(he("next"))},return:function(e){return pe(this)?this._asyncIteratorImpl.return(e):p(he("return"))}};function de(e,t){var n=Z(e),r=new ce(n,t),a=Object.create(fe);return a._asyncIteratorImpl=r,a}function pe(e){if(!o(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof ce}catch(ae){return!1}}function he(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}void 0!==oe&&Object.setPrototypeOf(fe,oe);var ve=Number.isNaN||function(e){return e!==e};function me(e){return e.slice()}function ge(e,t,n,r,a){new Uint8Array(e).set(new Uint8Array(n,r,a),t)}function ye(e){return e}function be(e){return!1}function _e(e,t,n){if(e.slice)return e.slice(t,n);var r=n-t,a=new ArrayBuffer(r);return ge(a,0,e,t,r),a}function we(e){return"number"===typeof e&&!ve(e)&&!(e<0)}function ke(e){var t=_e(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function Se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function xe(e,t,n){if(!we(n)||n===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function Ae(e){return e._queue.peek().value}function Ee(e){e._queue=new x,e._queueTotalSize=0}var Ce=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!Oe(this))throw at("view");return this._view},enumerable:!1,configurable:!0}),e.prototype.respond=function(e){if(!Oe(this))throw at("respond");if(G(e,1,"respond"),e=$(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");be(this._view.buffer),Ze(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!Oe(this))throw at("respondWithNewView");if(G(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");be(e.buffer),et(this._associatedReadableByteStreamController,e)},e}();Object.defineProperties(Ce.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Ce.prototype,t.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Te=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!Pe(this))throw ot("byobRequest");return $e(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Pe(this))throw ot("desiredSize");return Je(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!Pe(this))throw ot("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");Ye(this)},e.prototype.enqueue=function(e){if(!Pe(this))throw ot("enqueue");if(G(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");Ke(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Pe(this))throw ot("error");Qe(this,e)},e.prototype[L]=function(e){Ne(this),Ee(this);var t=this._cancelAlgorithm(e);return Xe(this),t},e.prototype[D]=function(e){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var n=this._queue.shift();this._queueTotalSize-=n.byteLength,De(this);var r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);e._chunkSteps(r)}else{var a=this._autoAllocateChunkSize;if(void 0!==a){var o=void 0;try{o=new ArrayBuffer(a)}catch(s){return void e._errorSteps(s)}var i={buffer:o,bufferByteLength:a,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}ee(t,e),Re(this)}},e}();function Pe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Te}function Oe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof Ce}function Re(e){Ge(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,v(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Re(e))}),(function(t){Qe(e,t)}))))}function Ne(e){qe(e),e._pendingPullIntos=new x}function Me(e,t){var n=!1;"closed"===e._state&&(n=!0);var r=Fe(t);"default"===t.readerType?te(e,r,n):lt(e,r,n)}function Fe(e){var t=e.bytesFilled,n=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/n)}function je(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function Ie(e,t){var n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,a=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+a,i=o-o%n,s=a,l=!1;i>r&&(s=i-t.bytesFilled,l=!0);for(var u=e._queue;s>0;){var c=u.peek(),f=Math.min(s,c.byteLength),d=t.byteOffset+t.bytesFilled;ge(t.buffer,d,c.buffer,c.byteOffset,f),c.byteLength===f?u.shift():(c.byteOffset+=f,c.byteLength-=f),e._queueTotalSize-=f,Le(e,f,t),s-=f}return l}function Le(e,t,n){n.bytesFilled+=t}function De(e){0===e._queueTotalSize&&e._closeRequested?(Xe(e),Er(e._controlledReadableByteStream)):Re(e)}function qe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function ze(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();Ie(e,t)&&(Ve(e),Me(e._controlledReadableByteStream,t))}}function Be(e,t,n){var r=e._controlledReadableByteStream,a=1;t.constructor!==DataView&&(a=t.constructor.BYTES_PER_ELEMENT);var o=t.constructor,i=ye(t.buffer),s={buffer:i,bufferByteLength:i.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:a,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void st(r,n);if("closed"!==r._state){if(e._queueTotalSize>0){if(Ie(e,s)){var l=Fe(s);return De(e),void n._chunkSteps(l)}if(e._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return Qe(e,u),void n._errorSteps(u)}}e._pendingPullIntos.push(s),st(r,n),Re(e)}else{var c=new o(s.buffer,s.byteOffset,0);n._closeSteps(c)}}function Ue(e,t){var n=e._controlledReadableByteStream;if(ct(n))for(;ut(n)>0;)Me(n,Ve(e))}function We(e,t,n){if(Le(e,t,n),!(n.bytesFilled<n.elementSize)){Ve(e);var r=n.bytesFilled%n.elementSize;if(r>0){var a=n.byteOffset+n.bytesFilled,o=_e(n.buffer,a-r,a);je(e,o,0,o.byteLength)}n.bytesFilled-=r,Me(e._controlledReadableByteStream,n),ze(e)}}function He(e,t){var n=e._pendingPullIntos.peek();qe(e),"closed"===e._controlledReadableByteStream._state?Ue(e):We(e,t,n),Re(e)}function Ve(e){return e._pendingPullIntos.shift()}function Ge(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(re(t)&&ne(t)>0)||!!(ct(t)&&ut(t)>0)||Je(e)>0)}function Xe(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ye(e){var t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qe(e,n),n}Xe(e),Er(t)}}function Ke(e,t){var n=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===n._state){var r=t.buffer,a=t.byteOffset,o=t.byteLength,i=ye(r);if(e._pendingPullIntos.length>0){var s=e._pendingPullIntos.peek();be(s.buffer),s.buffer=ye(s.buffer)}qe(e),re(n)?0===ne(n)?je(e,i,a,o):te(n,new Uint8Array(i,a,o),!1):ct(n)?(je(e,i,a,o),ze(e)):je(e,i,a,o),Re(e)}}function Qe(e,t){var n=e._controlledReadableByteStream;"readable"===n._state&&(Ne(e),Ee(e),Xe(e),Cr(n,t))}function $e(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){var t=e._pendingPullIntos.peek(),n=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(Ce.prototype);rt(r,e,n),e._byobRequest=r}return e._byobRequest}function Je(e){var t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ze(e,t){var n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range")}n.buffer=ye(n.buffer),He(e,t)}function et(e,t){var n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(n.bytesFilled+t.byteLength>n.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");n.buffer=ye(t.buffer),He(e,t.byteLength)}function tt(e,t,n,r,a,o,i){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Ee(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=a,t._autoAllocateChunkSize=i,t._pendingPullIntos=new x,e._readableStreamController=t,v(d(n()),(function(){t._started=!0,Re(t)}),(function(e){Qe(t,e)}))}function nt(e,t,n){var r=Object.create(Te.prototype),a=function(){},o=function(){return d(void 0)},i=function(){return d(void 0)};void 0!==t.start&&(a=function(){return t.start(r)}),void 0!==t.pull&&(o=function(){return t.pull(r)}),void 0!==t.cancel&&(i=function(e){return t.cancel(e)});var s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");tt(e,r,a,o,i,n,s)}function rt(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}function at(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function ot(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function it(e){return new ft(e)}function st(e,t){e._reader._readIntoRequests.push(t)}function lt(e,t,n){var r=e._reader._readIntoRequests.shift();n?r._closeSteps(t):r._chunkSteps(t)}function ut(e){return e._reader._readIntoRequests.length}function ct(e){var t=e._reader;return void 0!==t&&!!dt(t)}Object.defineProperties(Te.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Te.prototype,t.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var ft=function(){function e(e){if(G(e,1,"ReadableStreamBYOBReader"),J(e,"First parameter"),xr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Pe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");A(this,e),this._readIntoRequests=new x}return Object.defineProperty(e.prototype,"closed",{get:function(){return dt(this)?this._closedPromise:p(ht("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),dt(this)?void 0===this._ownerReadableStream?p(T("cancel")):E(this,e):p(ht("cancel"))},e.prototype.read=function(e){if(!dt(this))return p(ht("read"));if(!ArrayBuffer.isView(e))return p(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return p(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return p(new TypeError("view's buffer must have non-zero byteLength"));if(be(e.buffer),void 0===this._ownerReadableStream)return p(T("read from"));var t,n,r=f((function(e,r){t=e,n=r}));return pt(this,e,{_chunkSteps:function(e){return t({value:e,done:!1})},_closeSteps:function(e){return t({value:e,done:!0})},_errorSteps:function(e){return n(e)}}),r},e.prototype.releaseLock=function(){if(!dt(this))throw ht("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");C(this)}},e}();function dt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof ft}function pt(e,t,n){var r=e._ownerReadableStream;r._disturbed=!0,"errored"===r._state?n._errorSteps(r._storedError):Be(r._readableStreamController,t,n)}function ht(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function vt(e,t){var n=e.highWaterMark;if(void 0===n)return t;if(ve(n)||n<0)throw new RangeError("Invalid highWaterMark");return n}function mt(e){var t=e.size;return t||function(){return 1}}function gt(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.highWaterMark,r=null===e||void 0===e?void 0:e.size;return{highWaterMark:void 0===n?void 0:Y(n),size:void 0===r?void 0:yt(r,t+" has member 'size' that")}}function yt(e,t){return W(e,t),function(t){return Y(e(t))}}function bt(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.abort,r=null===e||void 0===e?void 0:e.close,a=null===e||void 0===e?void 0:e.start,o=null===e||void 0===e?void 0:e.type,i=null===e||void 0===e?void 0:e.write;return{abort:void 0===n?void 0:_t(n,e,t+" has member 'abort' that"),close:void 0===r?void 0:wt(r,e,t+" has member 'close' that"),start:void 0===a?void 0:kt(a,e,t+" has member 'start' that"),write:void 0===i?void 0:St(i,e,t+" has member 'write' that"),type:o}}function _t(e,t,n){return W(e,n),function(n){return k(e,t,[n])}}function wt(e,t,n){return W(e,n),function(){return k(e,t,[])}}function kt(e,t,n){return W(e,n),function(n){return w(e,t,[n])}}function St(e,t,n){return W(e,n),function(n,r){return k(e,t,[n,r])}}function xt(e,t){if(!Nt(e))throw new TypeError(t+" is not a WritableStream.")}function At(e){if("object"!==typeof e||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(ae){return!1}}Object.defineProperties(ft.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(ft.prototype,t.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var Et="function"===typeof AbortController;function Ct(){if(Et)return new AbortController}var Tt=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:V(e,"First parameter");var n=gt(t,"Second parameter"),r=bt(e,"First parameter");if(Rt(this),void 0!==r.type)throw new RangeError("Invalid type is specified");var a=mt(n);fn(this,r,vt(n,1),a)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!Nt(this))throw Sn("locked");return Mt(this)},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),Nt(this)?Mt(this)?p(new TypeError("Cannot abort a stream that already has a writer")):Ft(this,e):p(Sn("abort"))},e.prototype.close=function(){return Nt(this)?Mt(this)?p(new TypeError("Cannot close a stream that already has a writer")):Ht(this)?p(new TypeError("Cannot close an already-closing stream")):jt(this):p(Sn("close"))},e.prototype.getWriter=function(){if(!Nt(this))throw Sn("getWriter");return Pt(this)},e}();function Pt(e){return new Qt(e)}function Ot(e,t,n,r,a,o){void 0===a&&(a=1),void 0===o&&(o=function(){return 1});var i=Object.create(Tt.prototype);return Rt(i),cn(i,Object.create(ln.prototype),e,t,n,r,a,o),i}function Rt(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new x,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Nt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof Tt}function Mt(e){return void 0!==e._writer}function Ft(e,t){var n;if("closed"===e._state||"errored"===e._state)return d(void 0);e._writableStreamController._abortReason=t,null===(n=e._writableStreamController._abortController)||void 0===n||n.abort();var r=e._state;if("closed"===r||"errored"===r)return d(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var a=!1;"erroring"===r&&(a=!0,t=void 0);var o=f((function(n,r){e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:a}}));return e._pendingAbortRequest._promise=o,a||Dt(e,t),o}function jt(e){var t=e._state;if("closed"===t||"errored"===t)return p(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var n=f((function(t,n){var r={_resolve:t,_reject:n};e._closeRequest=r})),r=e._writer;return void 0!==r&&e._backpressure&&"writable"===t&&qn(r),pn(e._writableStreamController),n}function It(e){return f((function(t,n){var r={_resolve:t,_reject:n};e._writeRequests.push(r)}))}function Lt(e,t){"writable"!==e._state?qt(e):Dt(e,t)}function Dt(e,t){var n=e._writableStreamController;e._state="erroring",e._storedError=t;var r=e._writer;void 0!==r&&nn(r,t),!Vt(e)&&n._started&&qt(e)}function qt(e){e._state="errored",e._writableStreamController[I]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new x,void 0!==e._pendingAbortRequest){var n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,n._wasAlreadyErroring)return n._reject(t),void Yt(e);v(e._writableStreamController[j](n._reason),(function(){n._resolve(),Yt(e)}),(function(t){n._reject(t),Yt(e)}))}else Yt(e)}function zt(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Bt(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Lt(e,t)}function Ut(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Nn(t)}function Wt(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Lt(e,t)}function Ht(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Vt(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Gt(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Xt(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Yt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&On(t,e._storedError)}function Kt(e,t){var n=e._writer;void 0!==n&&t!==e._backpressure&&(t?Ln(n):qn(n)),e._backpressure=t}Object.defineProperties(Tt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Tt.prototype,t.toStringTag,{value:"WritableStream",configurable:!0});var Qt=function(){function e(e){if(G(e,1,"WritableStreamDefaultWriter"),xt(e,"First parameter"),Mt(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!Ht(e)&&e._backpressure?Mn(this):jn(this),Cn(this);else if("erroring"===t)Fn(this,e._storedError),Cn(this);else if("closed"===t)jn(this),Pn(this);else{var n=e._storedError;Fn(this,n),Tn(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return $t(this)?this._closedPromise:p(An("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!$t(this))throw An("desiredSize");if(void 0===this._ownerWritableStream)throw En("desiredSize");return rn(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return $t(this)?this._readyPromise:p(An("ready"))},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),$t(this)?void 0===this._ownerWritableStream?p(En("abort")):Jt(this,e):p(An("abort"))},e.prototype.close=function(){if(!$t(this))return p(An("close"));var e=this._ownerWritableStream;return void 0===e?p(En("close")):Ht(e)?p(new TypeError("Cannot close an already-closing stream")):Zt(this)},e.prototype.releaseLock=function(){if(!$t(this))throw An("releaseLock");void 0!==this._ownerWritableStream&&an(this)},e.prototype.write=function(e){return void 0===e&&(e=void 0),$t(this)?void 0===this._ownerWritableStream?p(En("write to")):on(this,e):p(An("write"))},e}();function $t(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Qt}function Jt(e,t){return Ft(e._ownerWritableStream,t)}function Zt(e){return jt(e._ownerWritableStream)}function en(e){var t=e._ownerWritableStream,n=t._state;return Ht(t)||"closed"===n?d(void 0):"errored"===n?p(t._storedError):Zt(e)}function tn(e,t){"pending"===e._closedPromiseState?On(e,t):Rn(e,t)}function nn(e,t){"pending"===e._readyPromiseState?In(e,t):Dn(e,t)}function rn(e){var t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:vn(t._writableStreamController)}function an(e){var t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");nn(e,n),tn(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function on(e,t){var n=e._ownerWritableStream,r=n._writableStreamController,a=hn(r,t);if(n!==e._ownerWritableStream)return p(En("write to"));var o=n._state;if("errored"===o)return p(n._storedError);if(Ht(n)||"closed"===o)return p(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return p(n._storedError);var i=It(n);return mn(r,t,a),i}Object.defineProperties(Qt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Qt.prototype,t.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var sn={},ln=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"abortReason",{get:function(){if(!un(this))throw xn("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"signal",{get:function(){if(!un(this))throw xn("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),e.prototype.error=function(e){if(void 0===e&&(e=void 0),!un(this))throw xn("error");"writable"===this._controlledWritableStream._state&&kn(this,e)},e.prototype[j]=function(e){var t=this._abortAlgorithm(e);return dn(this),t},e.prototype[I]=function(){Ee(this)},e}();function un(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof ln}function cn(e,t,n,r,a,o,i,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Ee(t),t._abortReason=void 0,t._abortController=Ct(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=i,t._writeAlgorithm=r,t._closeAlgorithm=a,t._abortAlgorithm=o;var l=wn(t);Kt(e,l),v(d(n()),(function(){t._started=!0,gn(t)}),(function(n){t._started=!0,Lt(e,n)}))}function fn(e,t,n,r){var a=Object.create(ln.prototype),o=function(){},i=function(){return d(void 0)},s=function(){return d(void 0)},l=function(){return d(void 0)};void 0!==t.start&&(o=function(){return t.start(a)}),void 0!==t.write&&(i=function(e){return t.write(e,a)}),void 0!==t.close&&(s=function(){return t.close()}),void 0!==t.abort&&(l=function(e){return t.abort(e)}),cn(e,a,o,i,s,l,n,r)}function dn(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function pn(e){xe(e,sn,0),gn(e)}function hn(e,t){try{return e._strategySizeAlgorithm(t)}catch(n){return yn(e,n),1}}function vn(e){return e._strategyHWM-e._queueTotalSize}function mn(e,t,n){try{xe(e,t,n)}catch(a){return void yn(e,a)}var r=e._controlledWritableStream;Ht(r)||"writable"!==r._state||Kt(r,wn(e)),gn(e)}function gn(e){var t=e._controlledWritableStream;if(e._started&&void 0===t._inFlightWriteRequest)if("erroring"!==t._state){if(0!==e._queue.length){var n=Ae(e);n===sn?bn(e):_n(e,n)}}else qt(t)}function yn(e,t){"writable"===e._controlledWritableStream._state&&kn(e,t)}function bn(e){var t=e._controlledWritableStream;Gt(t),Se(e);var n=e._closeAlgorithm();dn(e),v(n,(function(){Ut(t)}),(function(e){Wt(t,e)}))}function _n(e,t){var n=e._controlledWritableStream;Xt(n),v(e._writeAlgorithm(t),(function(){zt(n);var t=n._state;if(Se(e),!Ht(n)&&"writable"===t){var r=wn(e);Kt(n,r)}gn(e)}),(function(t){"writable"===n._state&&dn(e),Bt(n,t)}))}function wn(e){return vn(e)<=0}function kn(e,t){var n=e._controlledWritableStream;dn(e),Dt(n,t)}function Sn(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function xn(e){return new TypeError("WritableStreamDefaultController.prototype."+e+" can only be used on a WritableStreamDefaultController")}function An(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function En(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Cn(e){e._closedPromise=f((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"}))}function Tn(e,t){Cn(e),On(e,t)}function Pn(e){Cn(e),Nn(e)}function On(e,t){void 0!==e._closedPromise_reject&&(b(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Rn(e,t){Tn(e,t)}function Nn(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Mn(e){e._readyPromise=f((function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n})),e._readyPromiseState="pending"}function Fn(e,t){Mn(e),In(e,t)}function jn(e){Mn(e),qn(e)}function In(e,t){void 0!==e._readyPromise_reject&&(b(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Ln(e){Mn(e)}function Dn(e,t){Fn(e,t)}function qn(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(ln.prototype,{error:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(ln.prototype,t.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var zn="undefined"!==typeof DOMException?DOMException:void 0;function Bn(e){if("function"!==typeof e&&"object"!==typeof e)return!1;try{return new e,!0}catch(ae){return!1}}function Un(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Wn=Bn(zn)?zn:Un();function Hn(e,t,r,a,o,i){var s=Z(e),l=Pt(t);e._disturbed=!0;var u=!1,c=d(void 0);return f((function(p,y){var _;if(void 0!==i){if(_=function(){var n=new Wn("Aborted","AbortError"),r=[];a||r.push((function(){return"writable"===t._state?Ft(t,n):d(void 0)})),o||r.push((function(){return"readable"===e._state?Ar(e,n):d(void 0)})),T((function(){return Promise.all(r.map((function(e){return e()})))}),!0,n)},i.aborted)return void _();i.addEventListener("abort",_)}function w(){return f((function(e,t){function n(r){r?e():h(k(),n,t)}n(!1)}))}function k(){return u?d(!0):h(l._readyPromise,(function(){return f((function(e,t){le(s,{_chunkSteps:function(t){c=h(on(l,t),void 0,n),e(!1)},_closeSteps:function(){return e(!0)},_errorSteps:t})}))}))}if(A(e,s._closedPromise,(function(e){a?P(!0,e):T((function(){return Ft(t,e)}),!0,e)})),A(t,l._closedPromise,(function(t){o?P(!0,t):T((function(){return Ar(e,t)}),!0,t)})),E(e,s._closedPromise,(function(){r?P():T((function(){return en(l)}))})),Ht(t)||"closed"===t._state){var S=new TypeError("the destination writable stream closed before all data could be piped to it");o?P(!0,S):T((function(){return Ar(e,S)}),!0,S)}function x(){var e=c;return h(c,(function(){return e!==c?x():void 0}))}function A(e,t,n){"errored"===e._state?n(e._storedError):g(t,n)}function E(e,t,n){"closed"===e._state?n():m(t,n)}function T(e,n,r){function a(){v(e(),(function(){return O(n,r)}),(function(e){return O(!0,e)}))}u||(u=!0,"writable"!==t._state||Ht(t)?a():m(x(),a))}function P(e,n){u||(u=!0,"writable"!==t._state||Ht(t)?O(e,n):m(x(),(function(){return O(e,n)})))}function O(e,t){an(l),C(s),void 0!==i&&i.removeEventListener("abort",_),e?y(t):p(void 0)}b(w())}))}var Vn=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Gn(this))throw ar("desiredSize");return Zn(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!Gn(this))throw ar("close");if(!tr(this))throw new TypeError("The stream is not in a state that permits close");Qn(this)},e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Gn(this))throw ar("enqueue");if(!tr(this))throw new TypeError("The stream is not in a state that permits enqueue");return $n(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Gn(this))throw ar("error");Jn(this,e)},e.prototype[L]=function(e){Ee(this);var t=this._cancelAlgorithm(e);return Kn(this),t},e.prototype[D]=function(e){var t=this._controlledReadableStream;if(this._queue.length>0){var n=Se(this);this._closeRequested&&0===this._queue.length?(Kn(this),Er(t)):Xn(this),e._chunkSteps(n)}else ee(t,e),Xn(this)},e}();function Gn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof Vn}function Xn(e){Yn(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,v(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Xn(e))}),(function(t){Jn(e,t)}))))}function Yn(e){var t=e._controlledReadableStream;return!!tr(e)&&!!e._started&&(!!(xr(t)&&ne(t)>0)||Zn(e)>0)}function Kn(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Qn(e){if(tr(e)){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Kn(e),Er(t))}}function $n(e,t){if(tr(e)){var n=e._controlledReadableStream;if(xr(n)&&ne(n)>0)te(n,t,!1);else{var r=void 0;try{r=e._strategySizeAlgorithm(t)}catch(a){throw Jn(e,a),a}try{xe(e,t,r)}catch(o){throw Jn(e,o),o}}Xn(e)}}function Jn(e,t){var n=e._controlledReadableStream;"readable"===n._state&&(Ee(e),Kn(e),Cr(n,t))}function Zn(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function er(e){return!Yn(e)}function tr(e){var t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function nr(e,t,n,r,a,o,i){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Ee(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=i,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=a,e._readableStreamController=t,v(d(n()),(function(){t._started=!0,Xn(t)}),(function(e){Jn(t,e)}))}function rr(e,t,n,r){var a=Object.create(Vn.prototype),o=function(){},i=function(){return d(void 0)},s=function(){return d(void 0)};void 0!==t.start&&(o=function(){return t.start(a)}),void 0!==t.pull&&(i=function(){return t.pull(a)}),void 0!==t.cancel&&(s=function(e){return t.cancel(e)}),nr(e,a,o,i,s,n,r)}function ar(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function or(e,t){return Pe(e._readableStreamController)?sr(e):ir(e)}function ir(e,t){var n,r,a,o,i,s=Z(e),l=!1,u=!1,c=!1,p=f((function(e){i=e}));function h(){return l||(l=!0,le(s,{_chunkSteps:function(e){_((function(){l=!1;var t=e,n=e;u||$n(a._readableStreamController,t),c||$n(o._readableStreamController,n)}))},_closeSteps:function(){l=!1,u||Qn(a._readableStreamController),c||Qn(o._readableStreamController),u&&c||i(void 0)},_errorSteps:function(){l=!1}})),d(void 0)}function v(t){if(u=!0,n=t,c){var a=me([n,r]),o=Ar(e,a);i(o)}return p}function m(t){if(c=!0,r=t,u){var a=me([n,r]),o=Ar(e,a);i(o)}return p}function y(){}return a=_r(y,h,v),o=_r(y,h,m),g(s._closedPromise,(function(e){Jn(a._readableStreamController,e),Jn(o._readableStreamController,e),u&&c||i(void 0)})),[a,o]}function sr(e){var t,n,r,a,o,i=Z(e),s=!1,l=!1,u=!1,c=f((function(e){o=e}));function p(e){g(e._closedPromise,(function(t){e===i&&(Qe(r._readableStreamController,t),Qe(a._readableStreamController,t),l&&u||o(void 0))}))}function h(){dt(i)&&(C(i),p(i=Z(e))),le(i,{_chunkSteps:function(t){_((function(){s=!1;var n=t,i=t;if(!l&&!u)try{i=ke(t)}catch(c){return Qe(r._readableStreamController,c),Qe(a._readableStreamController,c),void o(Ar(e,c))}l||Ke(r._readableStreamController,n),u||Ke(a._readableStreamController,i)}))},_closeSteps:function(){s=!1,l||Ye(r._readableStreamController),u||Ye(a._readableStreamController),r._readableStreamController._pendingPullIntos.length>0&&Ze(r._readableStreamController,0),a._readableStreamController._pendingPullIntos.length>0&&Ze(a._readableStreamController,0),l&&u||o(void 0)},_errorSteps:function(){s=!1}})}function v(t,n){se(i)&&(C(i),p(i=it(e)));var c=n?a:r,f=n?r:a;pt(i,t,{_chunkSteps:function(t){_((function(){s=!1;var r=n?u:l;if(n?l:u)r||et(c._readableStreamController,t);else{var a=void 0;try{a=ke(t)}catch(i){return Qe(c._readableStreamController,i),Qe(f._readableStreamController,i),void o(Ar(e,i))}r||et(c._readableStreamController,t),Ke(f._readableStreamController,a)}}))},_closeSteps:function(e){s=!1;var t=n?u:l,r=n?l:u;t||Ye(c._readableStreamController),r||Ye(f._readableStreamController),void 0!==e&&(t||et(c._readableStreamController,e),!r&&f._readableStreamController._pendingPullIntos.length>0&&Ze(f._readableStreamController,0)),t&&r||o(void 0)},_errorSteps:function(){s=!1}})}function m(){if(s)return d(void 0);s=!0;var e=$e(r._readableStreamController);return null===e?h():v(e._view,!1),d(void 0)}function y(){if(s)return d(void 0);s=!0;var e=$e(a._readableStreamController);return null===e?h():v(e._view,!0),d(void 0)}function b(r){if(l=!0,t=r,u){var a=me([t,n]),i=Ar(e,a);o(i)}return c}function w(r){if(u=!0,n=r,l){var a=me([t,n]),i=Ar(e,a);o(i)}return c}function k(){}return r=wr(k,m,b),a=wr(k,y,w),p(i),[r,a]}function lr(e,t){U(e,t);var n=e,r=null===n||void 0===n?void 0:n.autoAllocateChunkSize,a=null===n||void 0===n?void 0:n.cancel,o=null===n||void 0===n?void 0:n.pull,i=null===n||void 0===n?void 0:n.start,s=null===n||void 0===n?void 0:n.type;return{autoAllocateChunkSize:void 0===r?void 0:$(r,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===a?void 0:ur(a,n,t+" has member 'cancel' that"),pull:void 0===o?void 0:cr(o,n,t+" has member 'pull' that"),start:void 0===i?void 0:fr(i,n,t+" has member 'start' that"),type:void 0===s?void 0:dr(s,t+" has member 'type' that")}}function ur(e,t,n){return W(e,n),function(n){return k(e,t,[n])}}function cr(e,t,n){return W(e,n),function(n){return k(e,t,[n])}}function fr(e,t,n){return W(e,n),function(n){return w(e,t,[n])}}function dr(e,t){if("bytes"!==(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamType");return e}function pr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.mode;return{mode:void 0===n?void 0:hr(n,t+" has member 'mode' that")}}function hr(e,t){if("byob"!==(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamReaderMode");return e}function vr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.preventCancel;return{preventCancel:Boolean(n)}}function mr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.preventAbort,r=null===e||void 0===e?void 0:e.preventCancel,a=null===e||void 0===e?void 0:e.preventClose,o=null===e||void 0===e?void 0:e.signal;return void 0!==o&&gr(o,t+" has member 'signal' that"),{preventAbort:Boolean(n),preventCancel:Boolean(r),preventClose:Boolean(a),signal:o}}function gr(e,t){if(!At(e))throw new TypeError(t+" is not an AbortSignal.")}function yr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.readable;X(n,"readable","ReadableWritablePair"),J(n,t+" has member 'readable' that");var r=null===e||void 0===e?void 0:e.writable;return X(r,"writable","ReadableWritablePair"),xt(r,t+" has member 'writable' that"),{readable:n,writable:r}}Object.defineProperties(Vn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Vn.prototype,t.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var br=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:V(e,"First parameter");var n=gt(t,"Second parameter"),r=lr(e,"First parameter");if(kr(this),"bytes"===r.type){if(void 0!==n.size)throw new RangeError("The strategy for a byte stream cannot have a size function");nt(this,r,vt(n,0))}else{var a=mt(n);rr(this,r,vt(n,1),a)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!Sr(this))throw Tr("locked");return xr(this)},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),Sr(this)?xr(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):Ar(this,e):p(Tr("cancel"))},e.prototype.getReader=function(e){if(void 0===e&&(e=void 0),!Sr(this))throw Tr("getReader");return void 0===pr(e,"First parameter").mode?Z(this):it(this)},e.prototype.pipeThrough=function(e,t){if(void 0===t&&(t={}),!Sr(this))throw Tr("pipeThrough");G(e,1,"pipeThrough");var n=yr(e,"First parameter"),r=mr(t,"Second parameter");if(xr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Mt(n.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return b(Hn(this,n.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),n.readable},e.prototype.pipeTo=function(e,t){if(void 0===t&&(t={}),!Sr(this))return p(Tr("pipeTo"));if(void 0===e)return p("Parameter 1 is required in 'pipeTo'.");if(!Nt(e))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var n;try{n=mr(t,"Second parameter")}catch(r){return p(r)}return xr(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Mt(e)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Hn(this,e,n.preventClose,n.preventAbort,n.preventCancel,n.signal)},e.prototype.tee=function(){if(!Sr(this))throw Tr("tee");return me(or(this))},e.prototype.values=function(e){if(void 0===e&&(e=void 0),!Sr(this))throw Tr("values");return de(this,vr(e,"First parameter").preventCancel)},e}();function _r(e,t,n,r,a){void 0===r&&(r=1),void 0===a&&(a=function(){return 1});var o=Object.create(br.prototype);return kr(o),nr(o,Object.create(Vn.prototype),e,t,n,r,a),o}function wr(e,t,n){var r=Object.create(br.prototype);return kr(r),tt(r,Object.create(Te.prototype),e,t,n,0,void 0),r}function kr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Sr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof br}function xr(e){return void 0!==e._reader}function Ar(e,t){if(e._disturbed=!0,"closed"===e._state)return d(void 0);if("errored"===e._state)return p(e._storedError);Er(e);var r=e._reader;return void 0!==r&&dt(r)&&(r._readIntoRequests.forEach((function(e){e._closeSteps(void 0)})),r._readIntoRequests=new x),y(e._readableStreamController[L](t),n)}function Er(e){e._state="closed";var t=e._reader;void 0!==t&&(F(t),se(t)&&(t._readRequests.forEach((function(e){e._closeSteps()})),t._readRequests=new x))}function Cr(e,t){e._state="errored",e._storedError=t;var n=e._reader;void 0!==n&&(N(n,t),se(n)?(n._readRequests.forEach((function(e){e._errorSteps(t)})),n._readRequests=new x):(n._readIntoRequests.forEach((function(e){e._errorSteps(t)})),n._readIntoRequests=new x))}function Tr(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Pr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.highWaterMark;return X(n,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Y(n)}}Object.defineProperties(br.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(br.prototype,t.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"===typeof t.asyncIterator&&Object.defineProperty(br.prototype,t.asyncIterator,{value:br.prototype.values,writable:!0,configurable:!0});var Or=function(e){return e.byteLength};Object.defineProperty(Or,"name",{value:"size",configurable:!0});var Rr=function(){function e(e){G(e,1,"ByteLengthQueuingStrategy"),e=Pr(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Mr(this))throw Nr("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Mr(this))throw Nr("size");return Or},enumerable:!1,configurable:!0}),e}();function Nr(e){return new TypeError("ByteLengthQueuingStrategy.prototype."+e+" can only be used on a ByteLengthQueuingStrategy")}function Mr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Rr}Object.defineProperties(Rr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Rr.prototype,t.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var Fr=function(){return 1};Object.defineProperty(Fr,"name",{value:"size",configurable:!0});var jr=function(){function e(e){G(e,1,"CountQueuingStrategy"),e=Pr(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Lr(this))throw Ir("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Lr(this))throw Ir("size");return Fr},enumerable:!1,configurable:!0}),e}();function Ir(e){return new TypeError("CountQueuingStrategy.prototype."+e+" can only be used on a CountQueuingStrategy")}function Lr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof jr}function Dr(e,t){U(e,t);var n=null===e||void 0===e?void 0:e.flush,r=null===e||void 0===e?void 0:e.readableType,a=null===e||void 0===e?void 0:e.start,o=null===e||void 0===e?void 0:e.transform,i=null===e||void 0===e?void 0:e.writableType;return{flush:void 0===n?void 0:qr(n,e,t+" has member 'flush' that"),readableType:r,start:void 0===a?void 0:zr(a,e,t+" has member 'start' that"),transform:void 0===o?void 0:Br(o,e,t+" has member 'transform' that"),writableType:i}}function qr(e,t,n){return W(e,n),function(n){return k(e,t,[n])}}function zr(e,t,n){return W(e,n),function(n){return w(e,t,[n])}}function Br(e,t,n){return W(e,n),function(n,r){return k(e,t,[n,r])}}Object.defineProperties(jr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(jr.prototype,t.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var Ur=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),void 0===e&&(e=null);var r=gt(t,"Second parameter"),a=gt(n,"Third parameter"),o=Dr(e,"First parameter");if(void 0!==o.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==o.writableType)throw new RangeError("Invalid writableType specified");var i,s=vt(a,0),l=mt(a),u=vt(r,1),c=mt(r);Wr(this,f((function(e){i=e})),u,c,s,l),$r(this,o),void 0!==o.start?i(o.start(this._transformStreamController)):i(void 0)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!Hr(this))throw la("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!Hr(this))throw la("writable");return this._writable},enumerable:!1,configurable:!0}),e}();function Wr(e,t,n,r,a,o){function i(){return t}function s(t){return ra(e,t)}function l(t){return aa(e,t)}function u(){return oa(e)}function c(){return ia(e)}function f(t){return Gr(e,t),d(void 0)}e._writable=Ot(i,s,u,l,n,r),e._readable=_r(i,c,f,a,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xr(e,!0),e._transformStreamController=void 0}function Hr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof Ur}function Vr(e,t){Jn(e._readable._readableStreamController,t),Gr(e,t)}function Gr(e,t){Jr(e._transformStreamController),yn(e._writable._writableStreamController,t),e._backpressure&&Xr(e,!1)}function Xr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=f((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Ur.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Ur.prototype,t.toStringTag,{value:"TransformStream",configurable:!0});var Yr=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Kr(this))throw sa("desiredSize");return Zn(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0}),e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Kr(this))throw sa("enqueue");Zr(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Kr(this))throw sa("error");ea(this,e)},e.prototype.terminate=function(){if(!Kr(this))throw sa("terminate");na(this)},e}();function Kr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof Yr}function Qr(e,t,n,r){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r}function $r(e,t){var n=Object.create(Yr.prototype),r=function(e){try{return Zr(n,e),d(void 0)}catch(t){return p(t)}},a=function(){return d(void 0)};void 0!==t.transform&&(r=function(e){return t.transform(e,n)}),void 0!==t.flush&&(a=function(){return t.flush(n)}),Qr(e,n,r,a)}function Jr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Zr(e,t){var n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!tr(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{$n(r,t)}catch(a){throw Gr(n,a),n._readable._storedError}er(r)!==n._backpressure&&Xr(n,!0)}function ea(e,t){Vr(e._controlledTransformStream,t)}function ta(e,t){return y(e._transformAlgorithm(t),void 0,(function(t){throw Vr(e._controlledTransformStream,t),t}))}function na(e){var t=e._controlledTransformStream;Qn(t._readable._readableStreamController),Gr(t,new TypeError("TransformStream terminated"))}function ra(e,t){var n=e._transformStreamController;return e._backpressure?y(e._backpressureChangePromise,(function(){var r=e._writable;if("erroring"===r._state)throw r._storedError;return ta(n,t)})):ta(n,t)}function aa(e,t){return Vr(e,t),d(void 0)}function oa(e){var t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return Jr(n),y(r,(function(){if("errored"===t._state)throw t._storedError;Qn(t._readableStreamController)}),(function(n){throw Vr(e,n),t._storedError}))}function ia(e){return Xr(e,!1),e._backpressureChangePromise}function sa(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function la(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}Object.defineProperties(Yr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof t.toStringTag&&Object.defineProperty(Yr.prototype,t.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=Rr,e.CountQueuingStrategy=jr,e.ReadableByteStreamController=Te,e.ReadableStream=br,e.ReadableStreamBYOBReader=ft,e.ReadableStreamBYOBRequest=Ce,e.ReadableStreamDefaultController=Vn,e.ReadableStreamDefaultReader=ie,e.TransformStream=Ur,e.TransformStreamDefaultController=Yr,e.WritableStream=Tt,e.WritableStreamDefaultController=ln,e.WritableStreamDefaultWriter=Qt,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseSVGFactory=t.BaseStandardFontDataFactory=t.BaseCMapReaderFactory=t.BaseCanvasFactory=void 0;var r,a=(r=n(2))&&r.__esModule?r:{default:r},o=n(4);function i(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var f=function(){function e(){l(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseCanvasFactory.")}return c(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(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}},{key:"_createCanvas",value:function(e,t){(0,o.unreachable)("Abstract method `_createCanvas` called.")}}]),e}();t.BaseCanvasFactory=f;var d=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,a=t.isCompressed,i=void 0!==a&&a;l(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=i}return c(e,[{key:"fetch",value:function(){var e=s(a.default.mark((function e(t){var n,r,i,s=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return r=this.baseUrl+n+(this.isCompressed?".bcmap":""),i=this.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(r,i).catch((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(r))})));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchData",value:function(e,t){(0,o.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=d;var p=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n;l(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=r}return c(e,[{key:"fetch",value:function(){var e=s(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filename,this.baseUrl){e.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(n){e.next=5;break}throw new Error("Font filename must be specified.");case 5:return r="".concat(this.baseUrl).concat(n),e.abrupt("return",this._fetchData(r).catch((function(e){throw new Error("Unable to load font data at: ".concat(r))})));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchData",value:function(e){(0,o.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseStandardFontDataFactory=p;var h=function(){function e(){l(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseSVGFactory.")}return c(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),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}},{key:"createElement",value:function(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}},{key:"_createSVG",value:function(e){(0,o.unreachable)("Abstract method `_createSVG` called.")}}]),e}();t.BaseSVGFactory=h},function(__unused_webpack_module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(116),_node_utils=__w_pdfjs_require__(117),_annotation_storage=__w_pdfjs_require__(118),_canvas=__w_pdfjs_require__(119),_worker_options=__w_pdfjs_require__(121),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(122),_metadata=__w_pdfjs_require__(123),_optional_content_config=__w_pdfjs_require__(124),_transport_stream=__w_pdfjs_require__(125);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function asyncGeneratorStep(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){asyncGeneratorStep(o,r,a,i,s,"next",e)}function s(e){asyncGeneratorStep(o,r,a,i,s,"throw",e)}i(void 0)}))}}function _createForOfIteratorHelper(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="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},_typeof(e)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,n=new PDFDocumentLoadingTask;if("string"===typeof e||e instanceof URL)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var r=Object.create(null),a=null,o=null;for(var i in t){var s=t[i];switch(i){case"url":if("undefined"!==typeof window)try{r[i]=new URL(s,window.location).href;continue}catch(c){(0,_util.warn)('Cannot create valid URL: "'.concat(c,'".'))}else if("string"===typeof s||s instanceof URL){r[i]=s.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":a=s;continue;case"worker":o=s;continue;case"data":if(_is_node.isNodeJS&&"undefined"!==typeof Buffer&&s instanceof Buffer)r[i]=new Uint8Array(s);else{if(s instanceof Uint8Array)break;if("string"===typeof s)r[i]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");r[i]=new Uint8Array(s)}else r[i]=new Uint8Array(s)}continue}r[i]=s}if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.StandardFontDataFactory=r.StandardFontDataFactory||DefaultStandardFontDataFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,r.enableXfa=!0===r.enableXfa,("string"!==typeof r.docBaseUrl||(0,_display_utils.isDataScheme)(r.docBaseUrl))&&(r.docBaseUrl=null),Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!==typeof r.useWorkerFetch&&(r.useWorkerFetch=r.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&r.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!==typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!==typeof r.disableFontFace&&(r.disableFontFace=_is_node.isNodeJS),"boolean"!==typeof r.useSystemFonts&&(r.useSystemFonts=!_is_node.isNodeJS&&!r.disableFontFace),"undefined"===typeof r.ownerDocument&&(r.ownerDocument=globalThis.document),"boolean"!==typeof r.disableRange&&(r.disableRange=!1),"boolean"!==typeof r.disableStream&&(r.disableStream=!1),"boolean"!==typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var l={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=l.port?PDFWorker.fromPort(l):new PDFWorker(l),n._worker=o}var u=n.docId;return o.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,r,a,u),t=new Promise((function(e){var t;a?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,contentDispositionFilename:r.contentDispositionFilename,disableRange:r.disableRange,disableStream:r.disableStream},a):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,t]).then((function(e){var t=_slicedToArray(e,2),a=t[0],i=t[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(u,a,o.port);s.postMessageTransfers=o.postMessageTransfers;var l=new WorkerTransport(s,n,i,r);n._transport=l,s.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.10.377",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var PDFDocumentLoadingTask=function(){var e=0;return function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}}]),t}()}(),PDFDataRangeTransport=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(a){r.e(a)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then((function(){var r,a=_createForOfIteratorHelper(n._progressListeners);try{for(a.s();!(r=a.n()).done;)(0,r.value)(e,t)}catch(o){a.e(o)}finally{a.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(a){r.e(a)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(r){n.e(r)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}})}return _createClass(e,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,n,r,a){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._ownerDocument=a,this._transport=r,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(e,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,a=e.offsetX,o=void 0===a?0:a,i=e.offsetY,s=void 0===i?0:i,l=e.dontFlip,u=void 0!==l&&l;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:o,offsetY:s,dontFlip:u})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,n=void 0===t?null:t,r="display"===n||"print"===n?n:null;return this._annotationsPromise&&this._annotationsIntent===r||(this._annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this._annotationsIntent=r),this._annotationsPromise}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:function(){var e=_asyncToGenerator(_regenerator.default.mark((function e(){var t;return _regenerator.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(null===(t=this._transport._htmlForXfa)||void 0===t?void 0:t.children[this._pageIndex])||null);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(e){var t,n=this,r=e.canvasContext,a=e.viewport,o=e.intent,i=void 0===o?"display":o,s=e.renderInteractiveForms,l=void 0!==s&&s,u=e.transform,c=void 0===u?null:u,f=e.imageLayer,d=void 0===f?null:f,p=e.canvasFactory,h=void 0===p?null:p,v=e.background,m=void 0===v?null:v,g=e.includeAnnotationStorage,y=void 0!==g&&g,b=e.optionalContentConfigPromise,_=void 0===b?null:b;this._stats&&this._stats.time("Overall");var w="print"===i?"print":"display";this.pendingCleanup=!1,_||(_=this._transport.getOptionalContentConfig());var k=this._intentStates.get(w);k||(k=Object.create(null),this._intentStates.set(w,k)),k.streamReaderCancelTimeout&&(clearTimeout(k.streamReaderCancelTimeout),k.streamReaderCancelTimeout=null);var S=h||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),x=y?this._transport.annotationStorage.serializable:null;k.displayReadyCapability||(k.displayReadyCapability=(0,_util.createPromiseCapability)(),k.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:w,renderInteractiveForms:!0===l,annotationStorage:x}));var A=function(e){k.renderTasks.delete(E),(n.cleanupAfterRender||"print"===w)&&(n.pendingCleanup=!0),n._tryCleanup(),e?(E.capability.reject(e),n._abortOperatorList({intentState:k,reason:e})):E.capability.resolve(),n._stats&&(n._stats.timeEnd("Rendering"),n._stats.timeEnd("Overall"))},E=new InternalRenderTask({callback:A,params:{canvasContext:r,viewport:a,transform:c,imageLayer:d,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:k.operatorList,pageIndex:this._pageIndex,canvasFactory:S,useRequestAnimationFrame:"print"!==w,pdfBug:this._pdfBug});((t=k).renderTasks||(t.renderTasks=new Set)).add(E);var C=E.task;return Promise.all([k.displayReadyCapability.promise,_]).then((function(e){var t=_slicedToArray(e,2),r=t[0],a=t[1];n.pendingCleanup?A():(n._stats&&n._stats.time("Rendering"),E.initializeGraphics({transparency:r,optionalContentConfig:a}),E.operatorListChanged())})).catch(A),C}},{key:"getOperatorList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,n=void 0===t?"display":t;function r(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(a))}var a,o,i="oplist-".concat("print"===n?"print":"display"),s=this._intentStates.get(i);return s||(s=Object.create(null),this._intentStates.set(i,s)),s.opListReadCapability||((a=Object.create(null)).operatorListChanged=r,s.opListReadCapability=(0,_util.createPromiseCapability)(),((o=s).renderTasks||(o.renderTasks=new Set)).add(a),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:i})),s.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,r=e.disableCombineTextItems,a=void 0!==r&&r,o=e.includeMarkedContent,i=void 0!==o&&o,s=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==a,includeMarkedContent:!0===i},{highWaterMark:s,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,n){var r=t.getReader(),a={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){var r,o=n.value;n.done?e(a):(Object.assign(a.styles,o.styles),(r=a.items).push.apply(r,_toConsumableArray(o.items)),t())}),n)}()}))}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e,t=[],n=_createForOfIteratorHelper(this._intentStates);try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),a=r[0],o=r[1];if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),!a.startsWith("oplist-")){var i,s=_createForOfIteratorHelper(o.renderTasks);try{for(s.s();!(i=s.n()).done;){var l=i.value;t.push(l.completed),l.cancel()}}catch(u){s.e(u)}finally{s.f()}}}}catch(u){n.e(u)}finally{n.f()}return this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var t,n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,a=r.renderTasks,o=r.operatorList;if(a.size>0||!o.lastChunk)return!1}}catch(i){n.e(i)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(e,t){var n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk;var a,o=_createForOfIteratorHelper(t.renderTasks);try{for(o.s();!(a=o.n()).done;)a.value.operatorListChanged()}catch(i){o.e(i)}finally{o.f()}e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),r=this._intentStates.get(e.intent);r.streamReader=n,function e(){n.read().then((function(n){var a=n.value;n.done?r.streamReader=null:t._transport.destroyed||(t._renderPageChunk(a,r),e())}),(function(e){if(r.streamReader=null,!t._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;var n,a=_createForOfIteratorHelper(r.renderTasks);try{for(a.s();!(n=a.n()).done;)n.value.operatorListChanged()}catch(o){a.e(o)}finally{a.f()}t._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(e);else{if(!r.opListReadCapability)throw e;r.opListReadCapability.reject(e)}}}))}()}},{key:"_abortOperatorList",value:function(e){var t=this,n=e.intentState,r=e.reason,a=e.force,o=void 0!==a&&a;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(n.renderTasks.size>0)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(n.streamReader.cancel(new _util.AbortException(null===r||void 0===r?void 0:r.message)),n.streamReader=null,!this._transport.destroyed){var i,s=_createForOfIteratorHelper(this._intentStates);try{for(s.s();!(i=s.n()).done;){var l=_slicedToArray(i.value,2),u=l[0];if(l[1]===n){this._intentStates.delete(u);break}}}catch(c){s.e(c)}finally{s.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){_classCallCheck(this,e),this._listeners=[],this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this,r=new WeakMap,a={data:function e(n){if("function"===typeof n||"symbol"===_typeof(n)||n instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(null===n||void 0===n?void 0:n.toString()));if("object"!==_typeof(n)||null===n)return n;if(r.has(n))return r.get(n);var a,o;if((a=n.buffer)&&(0,_util.isArrayBuffer)(a))return o=null!==t&&void 0!==t&&t.includes(a)?new n.constructor(a,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,o),o;if(n instanceof Map){o=new Map,r.set(n,o);var i,s=_createForOfIteratorHelper(n);try{for(s.s();!(i=s.n()).done;){var l=_slicedToArray(i.value,2),u=l[0],c=l[1];o.set(u,e(c))}}catch(y){s.e(y)}finally{s.f()}return o}if(n instanceof Set){o=new Set,r.set(n,o);var f,d=_createForOfIteratorHelper(n);try{for(d.s();!(f=d.n()).done;){var p=f.value;o.add(e(p))}}catch(y){d.e(y)}finally{d.f()}return o}for(var h in o=Array.isArray(n)?[]:Object.create(null),r.set(n,o),n){for(var v,m=void 0,g=n;!(m=Object.getOwnPropertyDescriptor(g,h));)g=Object.getPrototypeOf(g);"undefined"!==typeof m.value&&("function"!==typeof m.value||null!==(v=n.hasOwnProperty)&&void 0!==v&&v.call(n,h))&&(o[h]=e(m.value))}return o}(e)};this._deferred.then((function(){var e,t=_createForOfIteratorHelper(n._listeners);try{for(t.s();!(e=t.n()).done;)e.value.call(n,a)}catch(r){t.e(r)}finally{t.f()}}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var _document$currentScri,pdfjsFilePath=null===(_document$currentScri=document.currentScript)||void 0===_document$currentScri?void 0:_document$currentScri.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{var t;e=null===(t=globalThis.pdfjsWorker)||void 0===t?void 0:t.WorkerMessageHandler}catch(n){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref13=_asyncToGenerator(_regenerator.default.mark((function _callee2(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context2.next=3;break}return _context2.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context2.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context2.abrupt("return",worker.WorkerMessageHandler);case 6:return _context2.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context2.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context2.stop()}}),_callee2)})));return function(){return _ref13.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=void 0===n?null:n,a=t.port,o=void 0===a?null:a,i=t.verbosity,s=void 0===i?(0,_util.getVerbosityLevel)():i;if(_classCallCheck(this,e),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(e,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),a=function(){n.removeEventListener("error",o),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=function(){e._webWorker||a()};n.addEventListener("error",o),r.on("test",(function(t){n.removeEventListener("error",o),e.destroyed?a():t?(e._messageHandler=r,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(t){if(n.removeEventListener("error",o),e.destroyed)a();else try{i()}catch(r){e._setupFakeWorker()}}));var i=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{r.send("test",t,[t.buffer])}catch(n){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}};return void i()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(a,n);var o=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=o,e._readyCapability.resolve(),o.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,n,r,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this._params=a,a.useWorkerFetch||(this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.StandardFontDataFactory=new a.StandardFontDataFactory({baseUrl:a.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t,n=[],r=_createForOfIteratorHelper(this.pageCache);try{for(r.s();!(t=r.n()).done;){var a=t.value;a&&n.push(a._destroy())}}catch(i){r.e(i)}finally{r.f()}this.pageCache.length=0,this.pagePromises.length=0,this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var o=this.messageHandler.sendWithPromise("Terminate",null);return n.push(o),Promise.all(n).then((function(){e.commonObjs.clear(),e.fontLoader.clear(),e._hasJSActionsPromise=null,e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(t){e._fullReader.cancel(t),n.ready.catch((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var r=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),a.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),r.reject),r.promise})),t.on("GetRangeReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(t){r.cancel(t),n.ready.catch((function(t){if(!e.destroyed)throw t}))}):n.close()})),t.on("GetDoc",(function(t){var r=t.pdfInfo;e._numPages=r.numPages,e._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,n._capability.resolve(new PDFDocumentProxy(r,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}t instanceof Error||(0,_util.warn)("DocException - expected a valid Error."),n._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword)try{n.onPassword((function(t){e._passwordCapability.resolve({password:t})}),t.code)}catch(r){e._passwordCapability.reject(r)}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){e.destroyed||e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)})),t.on("commonobj",(function(n){var r;if(!e.destroyed){var a=_slicedToArray(n,3),o=a[0],i=a[1],s=a[2];if(!e.commonObjs.has(o))switch(i){case"Font":var l=e._params;if("error"in s){var u=s.error;(0,_util.warn)("Error during font loading: ".concat(u)),e.commonObjs.resolve(o,u);break}var c=null;l.pdfBug&&null!==(r=globalThis.FontInspector)&&void 0!==r&&r.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var f=new _font_loader.FontFaceObject(s,{isEvalSupported:l.isEvalSupported,disableFontFace:l.disableFontFace,ignoreErrors:l.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(f).catch((function(e){return t.sendWithPromise("FontFallback",{id:o})})).finally((function(){!l.fontExtraProperties&&f.data&&(f.data=null),e.commonObjs.resolve(o,f)}));break;case"FontPath":case"Image":e.commonObjs.resolve(o,s);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){var n;if(!e.destroyed){var r=_slicedToArray(t,4),a=r[0],o=r[1],i=r[2],s=r[3],l=e.pageCache[o];if(!l.objs.has(a))switch(i){case"Image":l.objs.resolve(a,s),(null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.length)>8e6&&(l.cleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(a,s);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.CMapReaderFactory?e.CMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))})),t.on("FetchStandardFontData",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.StandardFontDataFactory?e.StandardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))}))}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.ownerDocument,t._params.pdfBug);return t.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"saveDocument",value:function(){var e,t,n=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null}).finally((function(){n.annotationStorage.resetModified()}))}},{key:"getFieldObjects",value:function(){return this.messageHandler.sendWithPromise("GetFieldObjects",null)}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}},{key:"getStructTree",value:function(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){var n,r,a,o;return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:null!==(n=null===(r=e._fullReader)||void 0===r?void 0:r.filename)&&void 0!==n?n:null,contentLength:null!==(a=null===(o=e._fullReader)||void 0===o?void 0:o.contentLength)&&void 0!==a?a:null}}))}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=_asyncToGenerator(_regenerator.default.mark((function e(){var t,n,r,a,o=arguments;return _regenerator.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){e.next=5;break}return e.abrupt("return");case 5:n=0,r=this.pageCache.length;case 6:if(!(n<r)){e.next=16;break}if(a=this.pageCache[n]){e.next=10;break}return e.abrupt("continue",13);case 10:if(a.cleanup()){e.next=13;break}throw new Error("startCleanup: Page ".concat(n+1," is currently rendering."));case 13:n++,e.next=6;break;case 16:this.commonObjs.clear(),t||this.fontLoader.clear(),this._hasJSActionsPromise=null;case 19:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return(null===t||void 0===t?void 0:t.resolved)||!1}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var n=e.callback,r=e.params,a=e.objs,o=e.commonObjs,i=e.operatorList,s=e.pageIndex,l=e.canvasFactory,u=e.useRequestAnimationFrame,c=void 0!==u&&u,f=e.pdfBug,d=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=a,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=s,this.canvasFactory=l,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),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}return _createClass(t,[{key:"completed",get:function(){return this.capability.promise.catch((function(){}))}},{key:"initializeGraphics",value:function(t){var n,r=t.transparency,a=void 0!==r&&r,o=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(e.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.");e.add(this._canvas)}this._pdfBug&&null!==(n=globalThis.StepperManager)&&void 0!==n&&n.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var i=this.params,s=i.canvasContext,l=i.viewport,u=i.transform,c=i.imageLayer,f=i.background;this.gfx=new _canvas.CanvasGraphics(s,this.commonObjs,this.objs,this.canvasFactory,c,o),this.gfx.beginDrawing({transform:u,viewport:l,transparency:a,background:f}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:function(){var t=_asyncToGenerator(_regenerator.default.mark((function t(){return _regenerator.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}();return t}(),version="2.10.377";exports.version=version;var build="156762c48";exports.build=build},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var a,o=(a=n(2))&&a.__esModule?a:{default:a},i=n(4);function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var a=c(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function d(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var g,y=function(){function e(t){var n=t.docId,r=t.onUnsupportedFeature,a=t.ownerDocument,o=void 0===a?globalThis.document:a;t.styleElement,h(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this._document=o,this.nativeFontFaces=[],this.styleElement=null}return m(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=this._document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){var e,t=d(this.nativeFontFaces);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._document.fonts.delete(n)}}catch(r){t.e(r)}finally{t.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e,t=(e=o.default.mark((function e(t){var n,r,a=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(n=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(n),e.prev=7,e.next=10,n.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,i.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(r=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var n=a._queueLoadingCallback(e);a._prepareFontLoadEvent([r],[t],n)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){f(o,r,a,i,s,"next",e)}function s(e){f(o,r,a,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}()},{key:"_queueLoadingCallback",value:function(e){(0,i.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,i.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,i.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,i.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,i.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),e}();t.FontLoader=g,t.FontLoader=g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(n,e);var t=l(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return m(n,[{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null===t||void 0===t?void 0:t[1])>=14&&(e=!0)}return(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,n={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,i.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}},{key:"_loadTestFont",get:function(){return(0,i.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(e,t,n){var r,a,o=this;function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function l(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}var u=this._document.createElement("canvas");u.width=1,u.height=1;var c=u.getContext("2d"),f=0,p="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont,v=1482184792,m=s(h=l(h,976,p.length,p),16);for(r=0,a=p.length-3;r<a;r+=4)m=m-v+s(p,r)|0;r<p.length&&(m=m-v+s(p+"XXX",r)|0),h=l(h,16,4,(0,i.string32)(m));var g="url(data:font/opentype;base64,".concat(btoa(h),");"),y='@font-face {font-family:"'.concat(p,'";src:').concat(g,"}");this.insertRule(y);var b,_=[],w=d(t);try{for(w.s();!(b=w.n()).done;){var k=b.value;_.push(k.loadedName)}}catch(T){w.e(T)}finally{w.f()}_.push(p);var S=this._document.createElement("div");S.style.visibility="hidden",S.style.width=S.style.height="10px",S.style.position="absolute",S.style.top=S.style.left="0px";for(var x=0,A=_;x<A.length;x++){var E=A[x],C=this._document.createElement("span");C.textContent="Hi",C.style.fontFamily=E,S.appendChild(C)}this._document.body.appendChild(S),function e(t,n){if(++f>30)return(0,i.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(p,(function(){o._document.body.removeChild(S),n.complete()}))}}]),n}(y);var b=function(){function e(t,n){var r=n.isEvalSupported,a=void 0===r||r,o=n.disableFontFace,i=void 0!==o&&o,s=n.ignoreErrors,l=void 0!==s&&s,u=n.onUnsupportedFeature,c=n.fontRegistry,f=void 0===c?null:c;for(var d in h(this,e),this.compiledGlyphs=Object.create(null),t)this[d]=t[d];this.isEvalSupported=!1!==a,this.disableFontFace=!0===i,this.ignoreErrors=!0===l,this._onUnsupportedFeature=u,this.fontRegistry=f}return m(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e;if(this.cssFontInfo){var t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e,t=(0,i.bytesToString)(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");");if(this.cssFontInfo){var r="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(r+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),e='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(r,"src:").concat(n,"}")}else e='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(n,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,n),e}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n;try{n=e.get(this.loadedName+"_path_"+t)}catch(u){if(!this.ignoreErrors)throw u;return this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,i.warn)('getPathGenerator - ignoring character: "'.concat(u,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.IsEvalSupportedCached.value){var r,a=[],o=d(n);try{for(o.s();!(r=o.n()).done;){var s=r.value,l=void 0!==s.args?s.args.join(","):"";a.push("c.",s.cmd,"(",l,");\n")}}catch(c){o.e(c)}finally{o.f()}return this.compiledGlyphs[t]=new Function("c","size",a.join(""))}return this.compiledGlyphs[t]=function(e,t){var r,a=d(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;"scale"===o.cmd&&(o.args=[t,-t]),e[o.cmd].apply(e,o.args)}}catch(c){a.e(c)}finally{a.f()}}}}]),e}();t.FontFaceObject=b},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCMapReaderFactory=t.NodeCanvasFactory=void 0;var a=n(114),o=n(6),i=n(4);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=function e(){h(this,e),(0,i.unreachable)("Not implemented: NodeCanvasFactory")};t.NodeCanvasFactory=v;var m=function e(){h(this,e),(0,i.unreachable)("Not implemented: NodeCMapReaderFactory")};t.NodeCMapReaderFactory=m;var g=function e(){h(this,e),(0,i.unreachable)("Not implemented: NodeStandardFontDataFactory")};if(t.NodeStandardFontDataFactory=g,o.isNodeJS){var y=function(e){return new Promise((function(t,n){__webpack_require__(767).readFile(e,(function(e,r){!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};t.NodeCanvasFactory=v=function(e){u(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return l(n,[{key:"_createCanvas",value:function(e,t){return __webpack_require__(601).createCanvas(e,t)}}]),n}(a.BaseCanvasFactory),t.NodeCMapReaderFactory=m=function(e){u(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return l(n,[{key:"_fetchData",value:function(e,t){return y(e).then((function(e){return{cMapData:e,compressionType:t}}))}}]),n}(a.BaseCMapReaderFactory),t.NodeStandardFontDataFactory=g=function(e){u(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return l(n,[{key:"_fetchData",value:function(e){return y(e)}}]),n}(a.BaseStandardFontDataFactory)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0;var r=n(4);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}var t,n,o;return t=e,(n=[{key:"getValue",value:function(e,t){var n=this._storage.get(e);return void 0!==n?n:t}},{key:"setValue",value:function(e,t){var n=this._storage.get(e),r=!1;if(void 0!==n)for(var o=0,i=Object.entries(t);o<i.length;o++){var s=a(i[o],2),l=s[0],u=s[1];n[l]!==u&&(r=!0,n[l]=u)}else this._storage.set(e,t),r=!0;r&&this._setModified()}},{key:"getAll",value:function(){return this._storage.size>0?(0,r.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,"function"===typeof this.onSetModified&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"===typeof this.onResetModified&&this.onResetModified())}},{key:"serializable",get:function(){return this._storage.size>0?this._storage:null}}])&&i(t.prototype,n),o&&i(t,o),e}();t.AnnotationStorage=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(4),a=n(120);function o(e){return o="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},o(e)}function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=4096,h=16;function v(e){if(!e.mozCurrentTransform){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._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[];try{var t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth");e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){return this._getLineWidth()}})}catch(n){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=c(this._transformMatrix,6),t=e[0],n=e[1],r=e[2],a=e[3],o=e[4],i=e[5],s=t*a-n*r,l=n*r-t*a;return[a/s,n/l,r/l,t/s,(a*o-r*i)/l,(n*o-t*i)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this._originalScale(e,t)},e.transform=function(t,n,r,a,o,i){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*r+s[2]*a,s[1]*r+s[3]*a,s[0]*o+s[2]*i+s[4],s[1]*o+s[3]*i+s[5]],e._originalTransform(t,n,r,a,o,i)},e.setTransform=function(t,n,r,a,o,i){this._transformMatrix=[t,n,r,a,o,i],e._originalSetTransform(t,n,r,a,o,i)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this._transformMatrix;this._transformMatrix=[r[0]*t+r[2]*n,r[1]*t+r[3]*n,r[0]*-n+r[2]*t,r[1]*-n+r[3]*t,r[4],r[5]],this._originalRotate(e)}}}var m=function(){function e(t){s(this,e),this.canvasFactory=t,this.cache=Object.create(null)}return u(e,[{key:"getCanvas",value:function(e,t,n,r){var a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,n),a.context.setTransform(1,0,0,1,0,0)):(a=this.canvasFactory.create(t,n),this.cache[e]=a),r&&v(a.context),a}},{key:"clear",value:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}]),e}(),g=function(){function e(){s(this,e),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.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=r.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.resumeSMaskCtx=null,this.transferMaps=null}return u(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),y=function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var a,o,i,s,l,u,c,f,d,p=t.height,v=t.width,m=p%h,g=(p-m)/h,y=0===m?g:g+1,b=e.createImageData(v,h),_=0,w=t.data,k=b.data;if(n)switch(n.length){case 1:u=n[0],c=n[0],f=n[0],d=n[0];break;case 4:u=n[0],c=n[1],f=n[2],d=n[3]}if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var S=w.byteLength,x=new Uint32Array(k.buffer,0,k.byteLength>>2),A=x.length,E=v+7>>3,C=4294967295,T=r.IsLittleEndianCached.value?4278190080:255;if(d&&255===d[0]&&0===d[255]){var P=[T,C];C=P[0],T=P[1]}for(o=0;o<y;o++){for(s=o<g?h:m,a=0,i=0;i<s;i++){for(var O=S-_,R=0,N=O>E?v:8*O-7,M=-8&N,F=0,j=0;R<M;R+=8)j=w[_++],x[a++]=128&j?C:T,x[a++]=64&j?C:T,x[a++]=32&j?C:T,x[a++]=16&j?C:T,x[a++]=8&j?C:T,x[a++]=4&j?C:T,x[a++]=2&j?C:T,x[a++]=1&j?C:T;for(;R<N;R++)0===F&&(j=w[_++],F=128),x[a++]=j&F?C:T,F>>=1}for(;a<A;)x[a++]=0;e.putImageData(b,0,o*h)}}else if(t.kind===r.ImageKind.RGBA_32BPP){var I=!!(u||c||f);for(i=0,l=v*h*4,o=0;o<g;o++){if(k.set(w.subarray(_,_+l)),_+=l,I)for(var L=0;L<l;L+=4)u&&(k[L+0]=u[k[L+0]]),c&&(k[L+1]=c[k[L+1]]),f&&(k[L+2]=f[k[L+2]]);e.putImageData(b,0,i),i+=h}if(o<y){if(l=v*m*4,k.set(w.subarray(_,_+l)),I)for(var D=0;D<l;D+=4)u&&(k[D+0]=u[k[D+0]]),c&&(k[D+1]=c[k[D+1]]),f&&(k[D+2]=f[k[D+2]]);e.putImageData(b,0,i)}}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));var q=!!(u||c||f);for(l=v*(s=h),o=0;o<y;o++){for(o>=g&&(l=v*(s=m)),a=0,i=l;i--;)k[a++]=w[_++],k[a++]=w[_++],k[a++]=w[_++],k[a++]=255;if(q)for(var z=0;z<a;z+=4)u&&(k[z+0]=u[k[z+0]]),c&&(k[z+1]=c[k[z+1]]),f&&(k[z+2]=f[k[z+2]]);e.putImageData(b,0,o*h)}}}}function t(e,t){for(var n=t.height,r=t.width,a=n%h,o=(n-a)/h,i=0===a?o:o+1,s=e.createImageData(r,h),l=0,u=t.data,c=s.data,f=0;f<i;f++){for(var d=f<o?h:a,p=3,v=0;v<d;v++)for(var m=void 0,g=0,y=0;y<r;y++)g||(m=u[l++],g=128),c[p]=m&g?0:255,p+=4,g>>=1;e.putImageData(s,0,f*h)}}function n(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,a=n.length;r<a;r++){var o=n[r];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function l(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function f(e,t,n,r){for(var a=e.length,o=3;o<a;o+=4){var i=e[o];if(0===i)e[o-3]=t,e[o-2]=n,e[o-1]=r;else if(i<255){var s=255-i;e[o-3]=e[o-3]*i+t*s>>8,e[o-2]=e[o-2]*i+n*s>>8,e[o-1]=e[o-1]*i+r*s>>8}}}function d(e,t,n){for(var r=e.length,a=3;a<r;a+=4){var o=n?n[e[a]]:e[a];t[a]=t[a]*o*.00392156862745098|0}}function y(e,t,n){for(var r=e.length,a=3;a<r;a+=4){var o=77*e[a-3]+152*e[a-2]+28*e[a-1];t[a]=n?t[a]*n[o>>8]>>8:t[a]*o>>16}}function b(e,t,n){var r=t.canvas,a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY),function(e,t,n,r,a,o,i){var s,l=!!o,u=l?o[0]:0,c=l?o[1]:0,p=l?o[2]:0;s="Luminosity"===a?y:d;for(var h=Math.min(r,Math.ceil(1048576/n)),v=0;v<r;v+=h){var m=Math.min(h,r-v),g=e.getImageData(0,v,n,m),b=t.getImageData(0,v,n,m);l&&f(g.data,u,c,p),s(g.data,b.data,i),e.putImageData(b,0,v)}}(a,n,r.width,r.height,t.subtype,t.backdrop,t.transferMap),e.drawImage(r,0,0)}var _=["butt","round","square"],w=["miter","round","bevel"],k={},S={},x=function(){function f(e,t,n,r,a,o){s(this,f),this.ctx=e,this.current=new g,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.imageLayer=a,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=o,this.cachedCanvases=new m(this.canvasFactory),this.cachedPatterns=new Map,e&&v(e),this._cachedGetSinglePixelWidth=null}return u(f,[{key:"beginDrawing",value:function(e){var t=e.transform,n=e.viewport,r=e.transparency,a=void 0!==r&&r,o=e.background,i=void 0===o?null:o,s=this.ctx.canvas.width,u=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=i||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,u),this.ctx.restore(),a){var c=this.cachedCanvases.getCanvas("transparent",s,u,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),l(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}},{key:"executeOperatorList",value:function(e,t,n,a){var o=e.argsArray,s=e.fnArray,l=t||0,u=o.length;if(u===l)return l;for(var c,f=u-l>10&&"function"===typeof n,d=f?Date.now()+15:0,p=0,h=this.commonObjs,v=this.objs;;){if(void 0!==a&&l===a.nextBreakPoint)return a.breakIt(l,n),l;if((c=s[l])!==r.OPS.dependency)this[c].apply(this,o[l]);else{var m,g=i(o[l]);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=y.startsWith("g_")?h:v;if(!b.has(y))return b.get(y,n),l}}catch(_){g.e(_)}finally{g.f()}}if(++l===u)return l;if(f&&++p>10){if(Date.now()>d)return n(),l;p=0}}}},{key:"endDrawing",value:function(){for(;this.stateStack.length||null!==this.current.activeSMask;)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),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this.imageLayer&&this.imageLayer.endLayout()}},{key:"_scaleImage",value:function(e,t){for(var n,r,a=e.width,o=e.height,i=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=a,u=o,c="prescale1";i>2&&l>1||s>2&&u>1;){var f=l,d=u;i>2&&l>1&&(i/=l/(f=Math.ceil(l/2))),s>2&&u>1&&(s/=u/(d=Math.ceil(u/2))),(r=(n=this.cachedCanvases.getCanvas(c,f,d)).context).clearRect(0,0,f,d),r.drawImage(e,0,0,l,u,0,0,f,d),e=n.canvas,l=f,u=d,c="prescale1"===c?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:u}}},{key:"_createMaskCanvas",value:function(e){var n=this.ctx,a=e.width,o=e.height,i=this.current.fillColor,s=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,o);t(l.context,e);var u=n.mozCurrentTransform,c=r.Util.transform(u,[1/a,0,0,-1/o,0,0]);c=r.Util.transform(c,[1,0,0,1,0,-o]);var f=r.Util.applyTransform([0,0],c),d=r.Util.applyTransform([a,o],c),p=r.Util.normalizeRect([f[0],f[1],d[0],d[1]]),h=Math.ceil(p[2]-p[0]),v=Math.ceil(p[3]-p[1]),m=this.cachedCanvases.getCanvas("fillCanvas",h,v,!0),g=m.context,y=Math.min(f[0],d[0]),b=Math.min(f[1],d[1]);g.translate(-y,-b),g.transform.apply(g,c);var _=this._scaleImage(l.canvas,g.mozCurrentTransformInverse);g.drawImage(_.img,0,0,_.img.width,_.img.height,0,0,a,o),g.globalCompositeOperation="source-in";var w=r.Util.transform(g.mozCurrentTransformInverse,[1,0,0,1,-y,-b]);return g.fillStyle=s?i.getPattern(n,this,w,!1):i,g.fillRect(0,0,a,o),{canvas:m.canvas,offsetX:Math.round(y),offsetY:Math.round(b)}}},{key:"setLineWidth",value:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e}},{key:"setLineCap",value:function(e){this.ctx.lineCap=_[e]}},{key:"setLineJoin",value:function(e){this.ctx.lineJoin=w[e]}},{key:"setMiterLimit",value:function(e){this.ctx.miterLimit=e}},{key:"setDash",value:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t],a=r[0],o=r[1];switch(a){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=o}}}},{key:"beginSMaskGroup",value:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,a="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(a,t,r,!0),i=this.ctx,s=i.mozCurrentTransform;this.ctx.save();var l=o.context;l.scale(1/e.scaleX,1/e.scaleY),l.translate(-e.offsetX,-e.offsetY),l.transform.apply(l,s),e.startTransformInverse=l.mozCurrentTransformInverse,n(i,l),this.ctx=l,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++}},{key:"suspendSMaskGroup",value:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),b(this.ctx,this.current.activeSMask,e),this.ctx.restore(),this.ctx.save(),n(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()}},{key:"resumeSMaskGroup",value:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++}},{key:"endSMaskGroup",value:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),b(this.ctx,this.current.activeSMask,e),this.ctx.restore(),n(e,this.ctx);var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)}},{key:"save",value:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null}},{key:"restore",value:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null):this.current.activeSMask=null}},{key:"transform",value:function(e,t,n,r,a,o){this.ctx.transform(e,t,n,r,a,o),this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(e,t){for(var n=this.ctx,a=this.current,o=a.x,i=a.y,s=0,l=0,u=e.length;s<u;s++)switch(0|e[s]){case r.OPS.rectangle:o=t[l++],i=t[l++];var c=t[l++],f=t[l++],d=o+c,p=i+f;n.moveTo(o,i),0===c||0===f?n.lineTo(d,p):(n.lineTo(d,i),n.lineTo(d,p),n.lineTo(o,p)),n.closePath();break;case r.OPS.moveTo:o=t[l++],i=t[l++],n.moveTo(o,i);break;case r.OPS.lineTo:o=t[l++],i=t[l++],n.lineTo(o,i);break;case r.OPS.curveTo:o=t[l+4],i=t[l+5],n.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],o,i),l+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(o,i,t[l],t[l+1],t[l+2],t[l+3]),o=t[l+2],i=t[l+3],l+=4;break;case r.OPS.curveTo3:o=t[l+2],i=t[l+3],n.bezierCurveTo(t[l],t[l+1],o,i,o,i),l+=4;break;case r.OPS.closePath:n.closePath()}a.setCurrentPoint(o,i)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(e){e="undefined"===typeof e||e;var t=this.ctx,n=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"===o(n)&&null!==n&&void 0!==n&&n.getPattern){var r=this.getSinglePixelWidth();t.save(),t.strokeStyle=n.getPattern(t,this,t.mozCurrentTransformInverse),t.lineWidth=Math.max(r,this.current.lineWidth),t.stroke(),t.restore()}else{var a=this.getSinglePixelWidth();a<0&&-a>=this.current.lineWidth?(t.save(),t.resetTransform(),t.lineWidth=Math.round(this._combinedScaleFactor),t.stroke(),t.restore()):(t.lineWidth=Math.max(a,this.current.lineWidth),t.stroke())}e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(e){e="undefined"===typeof e||e;var t=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse),r=!0),this.contentVisible&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),r&&t.restore(),e&&this.consumePath()}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=k}},{key:"eoClip",value:function(){this.pendingClip=S}},{key:"beginText",value:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];t.setTransform.apply(t,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()}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setFont",value:function(e,t){var n=this.commonObjs.get(e),a=this.current;if(!n)throw new Error("Can't find font for ".concat(e));if(a.fontMatrix=n.fontMatrix||r.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=n,this.current.fontSize=t,!n.isType3Font){var o=n.loadedName||"sans-serif",i="normal";n.black?i="900":n.bold&&(i="bold");var s=n.italic?"italic":"normal",l='"'.concat(o,'", ').concat(n.fallbackName),u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(s," ").concat(i," ").concat(u,"px ").concat(l)}}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"moveText",value:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"setTextMatrix",value:function(e,t,n,r,a,o){this.current.textMatrix=[e,t,n,r,a,o],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(e,t,n,a,o){var i,s=this.ctx,l=this.current,u=l.font,c=l.textRenderingMode,f=l.fontSize/l.fontSizeScale,d=c&r.TextRenderingMode.FILL_STROKE_MASK,p=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),h=l.patternFill&&!u.missingFile;(u.disableFontFace||p||h)&&(i=u.getPathGenerator(this.commonObjs,e)),u.disableFontFace||h?(s.save(),s.translate(t,n),s.beginPath(),i(s,f),a&&s.setTransform.apply(s,a),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||s.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||(o&&(s.resetTransform(),s.lineWidth=Math.round(this._combinedScaleFactor)),s.stroke()),s.restore()):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||s.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||(o?(s.save(),s.moveTo(t,n),s.resetTransform(),s.lineWidth=Math.round(this._combinedScaleFactor),s.strokeText(e,0,0),s.restore()):s.strokeText(e,t,n))),p&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:s.mozCurrentTransform,x:t,y:n,fontSize:f,addToPath:i})}},{key:"isFontSubpixelAAEnabled",get:function(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,a=3;a<t.length;a+=4)if(t[a]>0&&t[a]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}},{key:"showText",value:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var o,i=this.ctx,s=t.fontSizeScale,l=t.charSpacing,u=t.wordSpacing,c=t.fontDirection,f=t.textHScale*c,d=e.length,p=n.vertical,h=p?1:-1,v=n.defaultVMetrics,m=a*t.fontMatrix[0],g=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(i.save(),t.patternFill){i.save();var y=t.fillColor.getPattern(i,this,i.mozCurrentTransformInverse);o=i.mozCurrentTransform,i.restore(),i.fillStyle=y}i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),c>0?i.scale(f,-1):i.scale(f,1);var b=t.lineWidth,_=!1,w=t.textMatrixScale;if(0===w||0===b){var k=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;k!==r.TextRenderingMode.STROKE&&k!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,_=(b=this.getSinglePixelWidth())<0)}else b/=w;1!==s&&(i.scale(s,s),b/=s),i.lineWidth=b;var S,x=0;for(S=0;S<d;++S){var A=e[S];if((0,r.isNum)(A))x+=h*A*a/1e3;else{var E=!1,C=(A.isSpace?u:0)+l,T=A.fontChar,P=A.accent,O=void 0,R=void 0,N=A.width;if(p){var M=A.vmetric||v,F=-(A.vmetric?M[1]:.5*N)*m,j=M[2]*m;N=M?-M[0]:N,O=F/s,R=(x+j)/s}else O=x/s,R=0;if(n.remeasure&&N>0){var I=1e3*i.measureText(T).width/a*s;if(N<I&&this.isFontSubpixelAAEnabled){var L=N/I;E=!0,i.save(),i.scale(L,1),O/=L}else N!==I&&(O+=(N-I)/2e3*a/s)}if(this.contentVisible&&(A.isInFont||n.missingFile))if(g&&!P)i.fillText(T,O,R);else if(this.paintChar(T,O,R,o,_),P){var D=O+a*P.offset.x/s,q=R-a*P.offset.y/s;this.paintChar(P.fontChar,D,q,o,_)}x+=p?N*m-C*c:N*m+C*c,E&&i.restore()}}p?t.y-=x:t.x+=x*f,i.restore()}}},{key:"showType3Text",value:function(e){var t,n,a,o,i=this.ctx,s=this.current,l=s.font,u=s.fontSize,c=s.fontDirection,f=l.vertical?1:-1,d=s.charSpacing,p=s.wordSpacing,h=s.textHScale*c,v=s.fontMatrix||r.FONT_IDENTITY_MATRIX,m=e.length;if(s.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==u){for(this._cachedGetSinglePixelWidth=null,i.save(),i.transform.apply(i,s.textMatrix),i.translate(s.x,s.y),i.scale(h,c),t=0;t<m;++t)if(n=e[t],(0,r.isNum)(n))o=f*n*u/1e3,this.ctx.translate(o,0),s.x+=o*h;else{var g=(n.isSpace?p:0)+d,y=l.charProcOperatorList[n.operatorListId];y?(this.contentVisible&&(this.processingType3=n,this.save(),i.scale(u,u),i.transform.apply(i,v),this.executeOperatorList(y),this.restore()),a=r.Util.applyTransform([n.width,0],v)[0]*u+g,i.translate(a,0),s.x+=a*h):(0,r.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}i.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(e,t){}},{key:"setCharWidthAndBounds",value:function(e,t,n,r,a,o){this.ctx.rect(n,r,a-n,o-r),this.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(e){var t,n=this;if("TilingPattern"===e[0]){var r=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),i={createCanvasGraphics:function(e){return new f(e,n.commonObjs,n.objs,n.canvasFactory)}};t=new a.TilingPattern(e,r,this.ctx,i,o)}else t=this._getPattern(e[1]);return t}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(e,t,n){var a=r.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=a,this.current.strokeColor=a}},{key:"setFillRGBColor",value:function(e,t,n){var a=r.Util.makeHexColor(e,t,n);this.ctx.fillStyle=a,this.current.fillColor=a,this.current.patternFill=!1}},{key:"_getPattern",value:function(e){if(this.cachedPatterns.has(e))return this.cachedPatterns.get(e);var t=(0,a.getShadingPattern)(this.objs.get(e));return this.cachedPatterns.set(e,t),t}},{key:"shadingFill",value:function(e){if(this.contentVisible){var t=this.ctx;this.save();var n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,!0);var a=t.mozCurrentTransformInverse;if(a){var o=t.canvas,i=o.width,s=o.height,l=r.Util.applyTransform([0,0],a),u=r.Util.applyTransform([0,s],a),c=r.Util.applyTransform([i,0],a),f=r.Util.applyTransform([i,s],a),d=Math.min(l[0],u[0],c[0],f[0]),p=Math.min(l[1],u[1],c[1],f[1]),h=Math.max(l[0],u[0],c[0],f[0]),v=Math.max(l[1],u[1],c[1],f[1]);this.ctx.fillRect(d,p,h-d,v-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()}}},{key:"beginInlineImage",value:function(){(0,r.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,r.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(e){if(this.contentVisible){this.save();var t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");var a=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var o=r.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];o=r.Util.intersect(o,i)||[0,0,0,0];var s=Math.floor(o[0]),l=Math.floor(o[1]),u=Math.max(Math.ceil(o[2])-s,1),c=Math.max(Math.ceil(o[3])-l,1),f=1,d=1;u>p&&(f=u/p,u=p),c>p&&(d=c/p,c=p);var h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);var v=this.cachedCanvases.getCanvas(h,u,c,!0),m=v.context;m.scale(1/f,1/d),m.translate(-s,-l),m.transform.apply(m,a),e.smask?this.smaskStack.push({canvas:v.canvas,context:m,offsetX:s,offsetY:l,scaleX:f,scaleY:d,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(s,l),t.scale(f,d)),n(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null}}},{key:"endGroup",value:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()}}},{key:"beginAnnotations",value:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}},{key:"endAnnotations",value:function(){this.restore()}},{key:"beginAnnotation",value:function(e,t,n,r){if(this.save(),l(this.ctx),this.current=new g,Array.isArray(t)&&4===t.length){var a=t[2]-t[0],o=t[3]-t[1];this.ctx.rect(t[0],t[1],a,o),this.clip(),this.endPath()}this.transform.apply(this,n),this.transform.apply(this,r)}},{key:"endAnnotation",value:function(){this.restore()}},{key:"paintImageMaskXObject",value:function(e){if(this.contentVisible){var t=this.ctx,n=e.width,r=e.height,a=this.processingType3;if(a&&void 0===a.compiled&&(a.compiled=n<=1e3&&r<=1e3?function(e){var t,n,r,a,o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=e.width,s=e.height,l=i+1,u=new Uint8Array(l*(s+1)),c=i+7&-8,f=e.data,d=new Uint8Array(c*s),p=0;for(t=0,n=f.length;t<n;t++)for(var h=f[t],v=128;v>0;)d[p++]=h&v?0:255,v>>=1;var m=0;for(0!==d[p=0]&&(u[0]=1,++m),r=1;r<i;r++)d[p]!==d[p+1]&&(u[r]=d[p]?2:1,++m),p++;for(0!==d[p]&&(u[r]=2,++m),t=1;t<s;t++){a=t*l,d[(p=t*c)-c]!==d[p]&&(u[a]=d[p]?1:8,++m);var g=(d[p]?4:0)+(d[p-c]?8:0);for(r=1;r<i;r++)o[g=(g>>2)+(d[p+1]?4:0)+(d[p-c+1]?8:0)]&&(u[a+r]=o[g],++m),p++;if(d[p-c]!==d[p]&&(u[a+r]=d[p]?2:4,++m),m>1e3)return null}for(a=t*l,0!==d[p=c*(s-1)]&&(u[a]=8,++m),r=1;r<i;r++)d[p]!==d[p+1]&&(u[a+r]=d[p]?4:8,++m),p++;if(0!==d[p]&&(u[a+r]=4,++m),m>1e3)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),b=[];for(t=0;m&&t<=s;t++){for(var _=t*l,w=_+i;_<w&&!u[_];)_++;if(_!==w){var k=[_%l,t],S=_,x=u[_];do{var A=y[x];do{_+=A}while(!u[_]);var E=u[_];5!==E&&10!==E?(x=E,u[_]=0):(x=E&51*x>>4,u[_]&=x>>2|x<<2),k.push(_%l,_/l|0),u[_]||--m}while(S!==_);b.push(k),--t}}return function(e){e.save(),e.scale(1/i,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,n=b.length;t<n;t++){var r=b[t];e.moveTo(r[0],r[1]);for(var a=2,o=r.length;a<o;a+=2)e.lineTo(r[a],r[a+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:n,height:r}):null),null!==a&&void 0!==a&&a.compiled)a.compiled(t);else{var o=this._createMaskCanvas(e),i=o.canvas;t.save(),t.setTransform(1,0,0,1,0,0),t.drawImage(i,o.offsetX,o.offsetY),t.restore()}}}},{key:"paintImageMaskXObjectRepeat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var s=this.ctx;s.save();var l=s.mozCurrentTransform;s.transform(t,n,a,o,0,0);var u=this._createMaskCanvas(e);s.setTransform(1,0,0,1,0,0);for(var f=0,d=i.length;f<d;f+=2){var p=r.Util.transform(l,[t,n,a,o,i[f],i[f+1]]),h=r.Util.applyTransform([0,0],p),v=c(h,2),m=v[0],g=v[1];s.drawImage(u.canvas,m,g)}s.restore()}}},{key:"paintImageMaskXObjectGroup",value:function(e){if(this.contentVisible)for(var n=this.ctx,r=this.current.fillColor,a=this.current.patternFill,o=0,i=e.length;o<i;o++){var s=e[o],l=s.width,u=s.height,c=this.cachedCanvases.getCanvas("maskCanvas",l,u),f=c.context;f.save(),t(f,s),f.globalCompositeOperation="source-in",f.fillStyle=a?r.getPattern(f,this,n.mozCurrentTransformInverse,!1):r,f.fillRect(0,0,l,u),f.restore(),n.save(),n.transform.apply(n,s.transform),n.scale(1,-1),n.drawImage(c.canvas,0,0,l,u,0,-1,1,1),n.restore()}}},{key:"paintImageXObject",value:function(e){if(this.contentVisible){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")}}},{key:"paintImageXObjectRepeat",value:function(e,t,n,a){if(this.contentVisible){var o=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(o){for(var i=o.width,s=o.height,l=[],u=0,c=a.length;u<c;u+=2)l.push({transform:[t,0,0,n,a[u],a[u+1]],x:0,y:0,w:i,h:s});this.paintInlineImageXObjectGroup(o,l)}else(0,r.warn)("Dependent image isn't ready yet")}}},{key:"paintInlineImageXObject",value:function(t){if(this.contentVisible){var n,r=t.width,a=t.height,o=this.ctx;if(this.save(),o.scale(1/r,-1/a),"function"===typeof HTMLElement&&t instanceof HTMLElement||!t.data)n=t;else{var i=this.cachedCanvases.getCanvas("inlineImage",r,a);e(i.context,t,this.current.transferMaps),n=i.canvas}var s=this._scaleImage(n,o.mozCurrentTransformInverse);if(o.drawImage(s.img,0,0,s.paintWidth,s.paintHeight,0,-a,r,a),this.imageLayer){var l=this.getCanvasPosition(0,-a);this.imageLayer.appendImage({imgData:t,left:l[0],top:l[1],width:r/o.mozCurrentTransformInverse[0],height:a/o.mozCurrentTransformInverse[3]})}this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(t,n){if(this.contentVisible){var r=this.ctx,a=t.width,o=t.height,i=this.cachedCanvases.getCanvas("inlineImage",a,o);e(i.context,t,this.current.transferMaps);for(var s=0,l=n.length;s<l;s++){var u=n[s];if(r.save(),r.transform.apply(r,u.transform),r.scale(1,-1),r.drawImage(i.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var c=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:t,left:c[0],top:c[1],width:a,height:o})}r.restore()}}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)}},{key:"markPoint",value:function(e){}},{key:"markPointProps",value:function(e,t){}},{key:"beginMarkedContent",value:function(e){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===S?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransform,t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.pow(e[0],2)+Math.pow(e[2],2),r=Math.pow(e[1],2)+Math.pow(e[3],2),a=Math.sqrt(Math.max(n,r))/t;n!==r&&this._combinedScaleFactor*a>1?this._cachedGetSinglePixelWidth=-this._combinedScaleFactor*a:t>Number.EPSILON?this._cachedGetSinglePixelWidth=a:this._cachedGetSinglePixelWidth=1}return this._cachedGetSinglePixelWidth}},{key:"getCanvasPosition",value:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}},{key:"isContentVisible",value:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}]),f}();for(var A in r.OPS)x.prototype[r.OPS[A]]=x.prototype[A];return x}();t.CanvasGraphics=y},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new g(e);case"Mesh":return new _(e);case"Dummy":return new w}throw new Error("Unknown IR type: ".concat(e[0]))},t.TilingPattern=void 0;var a=n(4);function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if(t&&"undefined"!==typeof Path2D){var n=t[2]-t[0],r=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,r),e.clip(a)}}var m=function(){function e(){d(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}return h(e,[{key:"getPattern",value:function(){(0,a.unreachable)("Abstract method `getPattern` called.")}}]),e}(),g=function(e){s(n,e);var t=u(n);function n(e){var r;return d(this,n),(r=t.call(this))._type=e[1],r._bbox=e[2],r._colorStops=e[3],r._p0=e[4],r._p1=e[5],r._r0=e[6],r._r1=e[7],r._matrix=e[8],r._patternCache=null,r}return h(n,[{key:"_createGradient",value:function(e){var t;"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));var n,r=o(this._colorStops);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.addColorStop(a[0],a[1])}}catch(i){r.e(i)}finally{r.f()}return t}},{key:"getPattern",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._patternCache)r=this._patternCache;else{if(o)v(e,this._bbox),r=this._createGradient(e);else{var i=t.cachedCanvases.getCanvas("pattern",t.ctx.canvas.width,t.ctx.canvas.height,!0),s=i.context;s.clearRect(0,0,s.canvas.width,s.canvas.height),s.beginPath(),s.rect(0,0,s.canvas.width,s.canvas.height),s.setTransform.apply(s,t.baseTransform),this._matrix&&s.transform.apply(s,this._matrix),v(s,this._bbox),s.fillStyle=this._createGradient(s),s.fill(),r=e.createPattern(i.canvas,"repeat")}this._patternCache=r}if(!o){var l=new DOMMatrix(n);try{r.setTransform(l)}catch(u){(0,a.warn)('RadialAxialShadingPattern.getPattern: "'.concat(null===u||void 0===u?void 0:u.message,'".'))}}return r}}]),n}(m);function y(e,t,n,r,a,o,i,s){var l,u=t.coords,c=t.colors,f=e.data,d=4*e.width;u[n+1]>u[r+1]&&(l=n,n=r,r=l,l=o,o=i,i=l),u[r+1]>u[a+1]&&(l=r,r=a,a=l,l=i,i=s,s=l),u[n+1]>u[r+1]&&(l=n,n=r,r=l,l=o,o=i,i=l);var p=(u[n]+t.offsetX)*t.scaleX,h=(u[n+1]+t.offsetY)*t.scaleY,v=(u[r]+t.offsetX)*t.scaleX,m=(u[r+1]+t.offsetY)*t.scaleY,g=(u[a]+t.offsetX)*t.scaleX,y=(u[a+1]+t.offsetY)*t.scaleY;if(!(h>=y))for(var b,_,w,k,S,x,A,E,C=c[o],T=c[o+1],P=c[o+2],O=c[i],R=c[i+1],N=c[i+2],M=c[s],F=c[s+1],j=c[s+2],I=Math.round(h),L=Math.round(y),D=I;D<=L;D++){if(D<m){var q=void 0;b=p-(p-v)*(q=D<h?0:(h-D)/(h-m)),_=C-(C-O)*q,w=T-(T-R)*q,k=P-(P-N)*q}else{var z=void 0;b=v-(v-g)*(z=D>y?1:m===y?0:(m-D)/(m-y)),_=O-(O-M)*z,w=R-(R-F)*z,k=N-(N-j)*z}var B=void 0;S=p-(p-g)*(B=D<h?0:D>y?1:(h-D)/(h-y)),x=C-(C-M)*B,A=T-(T-F)*B,E=P-(P-j)*B;for(var U=Math.round(Math.min(b,S)),W=Math.round(Math.max(b,S)),H=d*D+4*U,V=U;V<=W;V++)(B=(b-V)/(b-S))<0?B=0:B>1&&(B=1),f[H++]=_-(_-x)*B|0,f[H++]=w-(w-A)*B|0,f[H++]=k-(k-E)*B|0,f[H++]=255}}function b(e,t,n){var r,a,o=t.coords,i=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(o.length/s)-1,u=s-1;for(r=0;r<l;r++)for(var c=r*s,f=0;f<u;f++,c++)y(e,n,o[c],o[c+1],o[c+s],i[c],i[c+1],i[c+s]),y(e,n,o[c+s+1],o[c+1],o[c+s],i[c+s+1],i[c+1],i[c+s]);break;case"triangles":for(r=0,a=o.length;r<a;r+=3)y(e,n,o[r],o[r+1],o[r+2],i[r],i[r+1],i[r+2]);break;default:throw new Error("illegal figure")}}var _=function(e){s(n,e);var t=u(n);function n(e){var r;return d(this,n),(r=t.call(this))._coords=e[2],r._colors=e[3],r._figures=e[4],r._bounds=e[5],r._matrix=e[6],r._bbox=e[7],r._background=e[8],r}return h(n,[{key:"_createMeshCanvas",value:function(e,t,n){var r=Math.floor(this._bounds[0]),a=Math.floor(this._bounds[1]),i=Math.ceil(this._bounds[2])-r,s=Math.ceil(this._bounds[3])-a,l=Math.min(Math.ceil(Math.abs(i*e[0]*1.1)),3e3),u=Math.min(Math.ceil(Math.abs(s*e[1]*1.1)),3e3),c=i/l,f=s/u,d={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-a,scaleX:1/c,scaleY:1/f},p=l+4,h=u+4,v=n.getCanvas("mesh",p,h,!1),m=v.context,g=m.createImageData(l,u);if(t)for(var y=g.data,_=0,w=y.length;_<w;_+=4)y[_]=t[0],y[_+1]=t[1],y[_+2]=t[2],y[_+3]=255;var k,S=o(this._figures);try{for(S.s();!(k=S.n()).done;)b(g,k.value,d)}catch(x){S.e(x)}finally{S.f()}return m.putImageData(g,2,2),{canvas:v.canvas,offsetX:r-2*c,offsetY:a-2*f,scaleX:c,scaleY:f}}},{key:"getPattern",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v(e,this._bbox),o)r=a.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(r=a.Util.singularValueDecompose2dScale(t.baseTransform),this._matrix){var i=a.Util.singularValueDecompose2dScale(this._matrix);r=[r[0]*i[0],r[1]*i[1]]}var s=this._createMeshCanvas(r,o?null:this._background,t.cachedCanvases);return o||(e.setTransform.apply(e,t.baseTransform),this._matrix&&e.transform.apply(e,this._matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}}]),n}(m),w=function(e){s(n,e);var t=u(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"getPattern",value:function(){return"hotpink"}}]),n}(m),k=1,S=2,x=function(){function e(t,n,r,a,o){d(this,e),this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=n,this.ctx=r,this.canvasGraphicsFactory=a,this.baseTransform=o}return h(e,[{key:"createPatternCanvas",value:function(e){var t=this.operatorList,n=this.bbox,r=this.xstep,o=this.ystep,i=this.paintType,s=this.tilingType,l=this.color,u=this.canvasGraphicsFactory;(0,a.info)("TilingType: "+s);var c=n[0],f=n[1],d=n[2],p=n[3],h=a.Util.singularValueDecompose2dScale(this.matrix),v=a.Util.singularValueDecompose2dScale(this.baseTransform),m=[h[0]*v[0],h[1]*v[1]],g=this.getSizeAndScale(r,this.ctx.canvas.width,m[0]),y=this.getSizeAndScale(o,this.ctx.canvas.height,m[1]),b=e.cachedCanvases.getCanvas("pattern",g.size,y.size,!0),_=b.context,w=u.createCanvasGraphics(_);w.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(w,i,l);var k=c,S=f,x=d,A=p;return c<0&&(k=0,x+=Math.abs(c)),f<0&&(S=0,A+=Math.abs(f)),_.translate(-g.scale*k,-y.scale*S),w.transform(g.scale,0,0,y.scale,0,0),this.clipBbox(w,k,S,x,A),w.baseTransform=w.ctx.mozCurrentTransform.slice(),w.executeOperatorList(t),w.endDrawing(),{canvas:b.canvas,scaleX:g.scale,scaleY:y.scale,offsetX:k,offsetY:S}}},{key:"getSizeAndScale",value:function(t,n,r){t=Math.abs(t);var a=Math.max(e.MAX_PATTERN_SIZE,n),o=Math.ceil(t*r);return o>=a?o=a:r=o/t,{scale:r,size:o}}},{key:"clipBbox",value:function(e,t,n,r,a){var o=r-t,i=a-n;e.ctx.rect(t,n,o,i),e.clip(),e.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(e,t,n){var r=e.ctx,o=e.current;switch(t){case k:var i=this.ctx;r.fillStyle=i.fillStyle,r.strokeStyle=i.strokeStyle,o.fillColor=i.fillStyle,o.strokeColor=i.strokeStyle;break;case S:var s=a.Util.makeHexColor(n[0],n[1],n[2]);r.fillStyle=s,r.strokeStyle=s,o.fillColor=s,o.strokeColor=s;break;default:throw new a.FormatError("Unsupported paint type: ".concat(t))}}},{key:"getPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n;r||(o=a.Util.transform(o,t.baseTransform),this.matrix&&(o=a.Util.transform(o,this.matrix)));var i=this.createPatternCanvas(t),s=new DOMMatrix(o);s=(s=s.translate(i.offsetX,i.offsetY)).scale(1/i.scaleX,1/i.scaleY);var l=e.createPattern(i.canvas,"repeat");try{l.setTransform(s)}catch(u){(0,a.warn)('TilingPattern.getPattern: "'.concat(null===u||void 0===u?void 0:u.message,'".'))}return l}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,a.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),e}();t.TilingPattern=x},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r,a=(r=n(2))&&r.__esModule?r:{default:r},o=n(4);function i(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return l="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},l(e)}var u=1,c=2,f=1,d=2,p=3,h=4,v=5,m=6,g=7,y=8;function b(e){if("object"!==l(e)||null===e)return e;switch(e.name){case"AbortException":return new o.AbortException(e.message);case"MissingPDFException":return new o.MissingPDFException(e.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new o.UnknownErrorException(e.message,e.details);default:return new o.UnknownErrorException(e.message,e.toString())}}var _=function(){function e(t,n,r){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceName=t,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.callback){var n=t.callbackId,o=a.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete a.callbackCapabilities[n],t.callback===u)o.resolve(t.data);else{if(t.callback!==c)throw new Error("Unexpected callback case");o.reject(b(t.reason))}}else{var i=a.actionHandler[t.action];if(!i)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=a.sourceName,l=t.sourceName;new Promise((function(e){e(i(t.data))})).then((function(e){r.postMessage({sourceName:s,targetName:l,callback:u,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:s,targetName:l,callback:c,callbackId:t.callbackId,reason:b(e)})}))}else t.streamId?a._createStreamSink(t):i(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}var t,n,r;return t=e,n=[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var r=this.callbackId++,a=(0,o.createPromiseCapability)();this.callbackCapabilities[r]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(i){a.reject(i)}return a.promise}},{key:"sendWithStream",value:function(e,t,n,r){var a=this,i=this.streamId++,s=this.sourceName,l=this.targetName,u=this.comObj;return new ReadableStream({start:function(n){var u=(0,o.createPromiseCapability)();return a.streamControllers[i]={controller:n,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},a._postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:n.desiredSize},r),u.promise},pull:function(e){var t=(0,o.createPromiseCapability)();return a.streamControllers[i].pullCall=t,u.postMessage({sourceName:s,targetName:l,stream:m,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,o.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,o.createPromiseCapability)();return a.streamControllers[i].cancelCall=t,a.streamControllers[i].isClosed=!0,u.postMessage({sourceName:s,targetName:l,stream:f,streamId:i,reason:b(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],r=e.streamId,a=this.sourceName,i=e.sourceName,s=this.comObj,l={enqueue:function(e){var n=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-=n,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:i,stream:h,streamId:r,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:i,stream:p,streamId:r}),delete t.streamSinks[r])},error:function(e){(0,o.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:i,stream:v,streamId:r,reason:b(e)}))},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[r]=l,new Promise((function(t){t(n(e.data,l))})).then((function(){s.postMessage({sourceName:a,targetName:i,stream:y,streamId:r,success:!0})}),(function(e){s.postMessage({sourceName:a,targetName:i,stream:y,streamId:r,reason:b(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,r=e.sourceName,a=this.comObj;switch(e.stream){case y:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(b(e.reason));break;case g:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(b(e.reason));break;case m:if(!this.streamSinks[t]){a.postMessage({sourceName:n,targetName:r,stream:g,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var i=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(i&&i())})).then((function(){a.postMessage({sourceName:n,targetName:r,stream:g,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:r,stream:g,streamId:t,reason:b(e)})}));break;case h:if((0,o.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case p:if((0,o.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case v:(0,o.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(b(e.reason)),this._deleteStreamController(t);break;case d:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(b(e.reason)),this._deleteStreamController(t);break;case f:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(b(e.reason)))})).then((function(){a.postMessage({sourceName:n,targetName:r,stream:d,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:r,stream:d,streamId:t,reason:b(e)})})),this.streamSinks[t].sinkCapability.reject(b(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e,t=(e=a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}],n&&s(t.prototype,n),r&&s(t,r),e}();t.MessageHandler=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(4);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(t){var n=t.parsedData,r=t.rawData;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._metadataMap=n,this._data=r}var t,n,o;return t=e,(n=[{key:"getRaw",value:function(){return this._data}},{key:"get",value:function(e){var t;return null!==(t=this._metadataMap.get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,r.objectFromMap)(this._metadataMap)}},{key:"has",value:function(e){return this._metadataMap.has(e)}}])&&a(t.prototype,n),o&&a(t,o),e}();t.Metadata=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(4);function a(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function e(t,n){s(this,e),this.visible=!0,this.name=t,this.intent=n},u=function(){function e(t){if(s(this,e),this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==t){this.name=t.name,this.creator=t.creator,this._order=t.order;var n,r=a(t.groups);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._groups.set(o.id,new l(o.name,o.intent))}}catch(m){r.e(m)}finally{r.f()}if("OFF"===t.baseState){var i,u=a(this._groups);try{for(u.s();!(i=u.n()).done;)i.value.visible=!1}catch(m){u.e(m)}finally{u.f()}}var c,f=a(t.on);try{for(f.s();!(c=f.n()).done;){var d=c.value;this._groups.get(d).visible=!0}}catch(m){f.e(m)}finally{f.f()}var p,h=a(t.off);try{for(h.s();!(p=h.n()).done;){var v=p.value;this._groups.get(v).visible=!1}}catch(m){h.e(m)}finally{h.f()}}}var t,n,o;return t=e,n=[{key:"_evaluateVisibilityExpression",value:function(e){var t=e.length;if(t<2)return!0;for(var n=e[0],a=1;a<t;a++){var o=e[a],i=void 0;if(Array.isArray(o))i=this._evaluateVisibilityExpression(o);else{if(!this._groups.has(o))return(0,r.warn)("Optional content group not found: ".concat(o)),!0;i=this._groups.get(o).visible}switch(n){case"And":if(!i)return!1;break;case"Or":if(i)return!0;break;case"Not":return!i;default:return!0}}return"And"===n}},{key:"isVisible",value:function(e){if("OCG"===e.type)return this._groups.has(e.id)?this._groups.get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return this._evaluateVisibilityExpression(e.expression);if(!e.policy||"AnyOn"===e.policy){var t,n=a(e.ids);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!this._groups.has(o))return(0,r.warn)("Optional content group not found: ".concat(o)),!0;if(this._groups.get(o).visible)return!0}}catch(v){n.e(v)}finally{n.f()}return!1}if("AllOn"===e.policy){var i,s=a(e.ids);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(!this._groups.has(l))return(0,r.warn)("Optional content group not found: ".concat(l)),!0;if(!this._groups.get(l).visible)return!1}}catch(v){s.e(v)}finally{s.f()}return!0}if("AnyOff"===e.policy){var u,c=a(e.ids);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(!this._groups.has(f))return(0,r.warn)("Optional content group not found: ".concat(f)),!0;if(!this._groups.get(f).visible)return!0}}catch(v){c.e(v)}finally{c.f()}return!1}if("AllOff"===e.policy){var d,p=a(e.ids);try{for(p.s();!(d=p.n()).done;){var h=d.value;if(!this._groups.has(h))return(0,r.warn)("Optional content group not found: ".concat(h)),!0;if(this._groups.get(h).visible)return!1}}catch(v){p.e(v)}finally{p.f()}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._groups.has(e)?this._groups.get(e).visible=!!t:(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size>0?(0,r.objectFromMap)(this._groups):null}},{key:"getGroup",value:function(e){return this._groups.get(e)||null}}],n&&i(t.prototype,n),o&&i(t,o),e}();t.OptionalContentConfig=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r,a=(r=n(2))&&r.__esModule?r:{default:r},o=n(4),i=n(1);function s(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){s(o,r,a,i,l,"next",e)}function l(e){s(o,r,a,i,l,"throw",e)}i(void 0)}))}}function u(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var h=function(){function e(t,n){var r=this;f(this,e),(0,o.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1,this._contentDispositionFilename=t.contentDispositionFilename||null;var a=t.initialData;if((null===a||void 0===a?void 0:a.length)>0){var i=new Uint8Array(a).buffer;this._queuedChunks.push(i)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){r._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){r._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){r._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return p(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,o.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];null!==t&&void 0!==t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var n=this._fullRequestReader;null!==n&&void 0!==n&&n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new v(this,e,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new m(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,n=u(this._rangeReaders.slice(0));try{for(n.s();!(t=n.n()).done;)t.value.cancel(e)}catch(r){n.e(r)}finally{n.f()}this._pdfDataRangeTransport.abort()}}]),e}();t.PDFDataTransportStream=h;var v=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,e),this._stream=t,this._done=r||!1,this._filename=(0,i.isPdfFile)(a)?a:null,this._queuedChunks=n||[],this._loaded=0;var o,s=u(this._queuedChunks);try{for(s.s();!(o=s.n()).done;){var l=o.value;this._loaded+=l.byteLength}}catch(c){s.e(c)}finally{s.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return p(e,[{key:"_enqueue",value:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),e}(),m=function(){function e(t,n,r){f(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return p(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),e}()},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var a=n(1),o=n(4),i=n(118),s=n(127);function l(e,t,n){return l="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}},l(e,t,n||e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function g(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}var k=function(){function e(){b(this,e)}return w(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case o.AnnotationType.LINK:return new x(e);case o.AnnotationType.TEXT:return new A(e);case o.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new P(e):e.data.checkBox?new T(e):new O(e);case"Ch":return new R(e)}return new E(e);case o.AnnotationType.POPUP:return new N(e);case o.AnnotationType.FREETEXT:return new F(e);case o.AnnotationType.LINE:return new j(e);case o.AnnotationType.SQUARE:return new I(e);case o.AnnotationType.CIRCLE:return new L(e);case o.AnnotationType.POLYLINE:return new D(e);case o.AnnotationType.CARET:return new z(e);case o.AnnotationType.INK:return new B(e);case o.AnnotationType.POLYGON:return new q(e);case o.AnnotationType.HIGHLIGHT:return new U(e);case o.AnnotationType.UNDERLINE:return new W(e);case o.AnnotationType.SQUIGGLY:return new H(e);case o.AnnotationType.STRIKEOUT:return new V(e);case o.AnnotationType.STAMP:return new G(e);case o.AnnotationType.FILEATTACHMENT:return new X(e);default:return new S(e)}}}]),e}(),S=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isRenderable,a=void 0!==r&&r,o=n.ignoreBorder,i=void 0!==o&&o,s=n.createQuadrilaterals,l=void 0!==s&&s;b(this,e),this.isRenderable=a,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._mouseState=t.mouseState,a&&(this.container=this._createContainer(i)),l&&(this.quadrilaterals=this._createQuadrilaterals(i))}return w(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,r=this.viewport,a=document.createElement("section"),i=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);var l=o.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(a.style.transform="matrix(".concat(r.transform.join(","),")"),a.style.transformOrigin="".concat(-l[0],"px ").concat(-l[1],"px"),!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==o.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var u=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(u>0||c>0){var f="".concat(u,"px / ").concat(c,"px");a.style.borderRadius=f}switch(t.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case o.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)("Unimplemented border style: beveled");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)("Unimplemented border style: inset");break;case o.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.color?a.style.borderColor=o.Util.makeHexColor(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left="".concat(l[0],"px"),a.style.top="".concat(l[1],"px"),a.style.width="".concat(i,"px"),a.style.height="".concat(s,"px"),a}},{key:"_createQuadrilaterals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;var t,n=[],r=this.data.rect,a=m(this.data.quadPoints);try{for(a.s();!(t=a.n()).done;){var o=t.value;this.data.rect=[o[2].x,o[2].y,o[1].x,o[1].y],n.push(this._createContainer(e))}}catch(i){a.e(i)}finally{a.f()}return this.data.rect=r,n}},{key:"_createPopup",value:function(e,t){var n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).style.height=n.style.height,e.style.width=n.style.width,n.appendChild(e));var r=new M({container:n,trigger:e,color:t.color,title:t.title,modificationDate:t.modificationDate,contents:t.contents,hideWrapper:!0}).render();r.style.left=n.style.width,n.appendChild(r)}},{key:"_renderQuadrilaterals",value:function(e){var t,n=m(this.quadrilaterals);try{for(n.s();!(t=n.n()).done;)t.value.className=e}catch(r){n.e(r)}finally{n.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,o.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),x=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.url||e.data.dest||e.data.action||e.data.isTooltipOnly||e.data.actions&&(e.data.actions.Action||e.data.actions["Mouse Up"]||e.data.actions["Mouse Down"]));return t.call(this,e,{isRenderable:r,createQuadrilaterals:!0})}return w(n,[{key:"render",value:function(){var e=this.data,t=this.linkService,n=document.createElement("a");return e.url?(0,a.addLinkAttributes)(n,{url:e.url,target:e.newWindow?a.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):e.dest?this._bindLink(n,e.dest):e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(n,e):this._bindLink(n,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((function(e,t){var r=0===t?n:n.cloneNode();return e.appendChild(r),e})):(this.container.className="linkAnnotation",this.container.appendChild(n),this.container)}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.goToDestination(t),!1},(t||""===t)&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}},{key:"_bindJSAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl("");for(var r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),a=function(){var a=i[o],s=r.get(a);if(!s)return"continue";e[s]=function(){var e;return null===(e=n.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:n,detail:{id:t.id,name:a}}),!1}},o=0,i=Object.keys(t.actions);o<i.length;o++)a();e.className="internalLink"}}]),n}(S),A=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r})}return w(n,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,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.hasPopup||this._createPopup(e,this.data),this.container.appendChild(e),this.container}}]),n}(S),E=function(e){c(n,e);var t=d(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"_getKeyModifier",value:function(e){return navigator.platform.includes("Win")&&e.ctrlKey||navigator.platform.includes("Mac")&&e.metaKey}},{key:"_setEventListener",value:function(e,t,n,r){var a=this;t.includes("mouse")?e.addEventListener(t,(function(e){var t;null===(t=a.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:a._getKeyModifier(e)}})})):e.addEventListener(t,(function(e){var t;null===(t=a.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:e.target.checked}})}))}},{key:"_setEventListeners",value:function(e,t,n){var r,a=m(t);try{for(a.s();!(r=a.n()).done;){var o,i=u(r.value,2),s=i[0],l=i[1];("Action"===l||null!==(o=this.data.actions)&&void 0!==o&&o[l])&&this._setEventListener(e,s,l,n)}}catch(c){a.e(c)}finally{a.f()}}},{key:"_dispatchEventFromSandbox",value:function(e,t){for(var n=this,r=function(e,t,n){var r=n.detail[e];n.target.style[t]=s.ColorConverters["".concat(r[0],"_HTML")](r.slice(1))},a={display:function(e){var t=e.detail.display%2===1;e.target.style.visibility=t?"hidden":"visible",n.annotationStorage.setValue(n.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:function(e){n.annotationStorage.setValue(n.data.id,{print:e.detail.print})},hidden:function(e){e.target.style.visibility=e.detail.hidden?"hidden":"visible",n.annotationStorage.setValue(n.data.id,{hidden:e.detail.hidden})},focus:function(e){setTimeout((function(){return e.target.focus({preventScroll:!1})}),0)},userName:function(e){e.target.title=e.detail.userName},readonly:function(e){e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:function(e){e.detail.required?e.target.setAttribute("required",""):e.target.removeAttribute("required")},bgColor:function(e){r("bgColor","backgroundColor",e)},fillColor:function(e){r("fillColor","backgroundColor",e)},fgColor:function(e){r("fgColor","color",e)},textColor:function(e){r("textColor","color",e)},borderColor:function(e){r("borderColor","borderColor",e)},strokeColor:function(e){r("strokeColor","borderColor",e)}},o=0,i=Object.keys(t.detail);o<i.length;o++){var l=i[o],u=e[l]||a[l];u&&u(t)}}}]),n}(S),C=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,{isRenderable:r})}return w(n,[{key:"setPropertyOnSiblings",value:function(e,t,n,r){var a,o=this.annotationStorage,i=m(document.getElementsByName(e.name));try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s!==e){s[t]=n;var l=Object.create(null);l[r]=n,o.setValue(s.getAttribute("id"),l)}}}catch(u){i.e(u)}finally{i.f()}}},{key:"render",value:function(){var e=this,t=this.annotationStorage,n=this.data.id;this.container.className="textWidgetAnnotation";var r=null;if(this.renderInteractiveForms){var a=t.getValue(n,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),o=a.valueAsString||a.value||"",i={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(r=document.createElement("textarea")).textContent=o:((r=document.createElement("input")).type="text",r.setAttribute("value",o)),i.userValue=o,r.setAttribute("id",n),r.addEventListener("input",(function(a){t.setValue(n,{value:a.target.value}),e.setPropertyOnSiblings(r,"value",a.target.value,"value")}));var s=function(e){i.formattedValue&&(e.target.value=i.formattedValue),e.target.scrollLeft=0,i.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){var l;r.addEventListener("focus",(function(e){i.userValue&&(e.target.value=i.userValue)})),r.addEventListener("updatefromsandbox",(function(r){var a={value:function(e){i.userValue=e.detail.value||"",t.setValue(n,{value:i.userValue.toString()}),i.formattedValue||(e.target.value=i.userValue)},valueAsString:function(e){i.formattedValue=e.detail.valueAsString||"",e.target!==document.activeElement&&(e.target.value=i.formattedValue),t.setValue(n,{formattedValue:i.formattedValue})},selRange:function(e){var t=u(e.detail.selRange,2),n=t[0],r=t[1];n>=0&&r<e.target.value.length&&e.target.setSelectionRange(n,r)}};e._dispatchEventFromSandbox(a,r)})),r.addEventListener("keydown",(function(t){var r;i.beforeInputValue=t.target.value;var a=-1;"Escape"===t.key?a=0:"Enter"===t.key?a=2:"Tab"===t.key&&(a=3),-1!==a&&(i.userValue=t.target.value,null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:t.target.value,willCommit:!0,commitKey:a,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))}));var c=s;s=null,r.addEventListener("blur",(function(t){var r;e._mouseState.isDown&&(i.userValue=t.target.value,null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:t.target.value,willCommit:!0,commitKey:1,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}})),c(t)})),r.addEventListener("mousedown",(function(e){i.beforeInputValue=e.target.value,i.beforeInputSelectionRange=null})),r.addEventListener("keyup",(function(e){e.target.selectionStart===e.target.selectionEnd&&(i.beforeInputSelectionRange=null)})),r.addEventListener("select",(function(e){i.beforeInputSelectionRange=[e.target.selectionStart,e.target.selectionEnd]})),null!==(l=this.data.actions)&&void 0!==l&&l.Keystroke&&r.addEventListener("input",(function(t){var r,a=-1,o=-1;if(i.beforeInputSelectionRange){var s=u(i.beforeInputSelectionRange,2);a=s[0],o=s[1]}null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:i.beforeInputValue,change:t.data,willCommit:!1,selStart:a,selEnd:o}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.value}))}if(s&&r.addEventListener("blur",s),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){var f=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(f,"px - 1ch)")}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this.container.appendChild(r),this.container}},{key:"_setTextStyle",value:function(e){var t=this.data.defaultAppearanceData,n=t.fontSize,r=t.fontColor,a=e.style;n&&(a.fontSize="".concat(n,"px")),a.color=o.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(a.textAlign=["left","center","right"][this.data.textAlignment])}}]),n}(E),T=function(e){c(n,e);var t=d(n);function n(e){return b(this,n),t.call(this,e,{isRenderable:e.renderInteractiveForms})}return w(n,[{key:"render",value:function(){var e=this,t=this.annotationStorage,n=this.data,r=n.id,a=t.getValue(r,{value:n.fieldValue&&(n.exportValue&&n.exportValue===n.fieldValue||!n.exportValue&&"Off"!==n.fieldValue)}).value;"string"===typeof a&&(a="Off"!==a,t.setValue(r,{value:a})),this.container.className="buttonWidgetAnnotation checkBox";var o=document.createElement("input");return o.disabled=n.readOnly,o.type="checkbox",o.name=this.data.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("id",r),o.addEventListener("change",(function(e){var n,a=e.target.name,o=m(document.getElementsByName(a));try{for(o.s();!(n=o.n()).done;){var i=n.value;i!==e.target&&(i.checked=!1,t.setValue(i.parentNode.getAttribute("data-annotation-id"),{value:!1}))}}catch(s){o.e(s)}finally{o.f()}t.setValue(r,{value:e.target.checked})})),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",(function(n){var a={value:function(e){e.target.checked="Off"!==e.detail.value,t.setValue(r,{value:e.target.checked})}};e._dispatchEventFromSandbox(a,n)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))),this.container.appendChild(o),this.container}}]),n}(E),P=function(e){c(n,e);var t=d(n);function n(e){return b(this,n),t.call(this,e,{isRenderable:e.renderInteractiveForms})}return w(n,[{key:"render",value:function(){var e=this;this.container.className="buttonWidgetAnnotation radioButton";var t=this.annotationStorage,n=this.data,r=n.id,a=t.getValue(r,{value:n.fieldValue===n.buttonValue}).value;"string"===typeof a&&(a=a!==n.buttonValue,t.setValue(r,{value:a}));var o=document.createElement("input");if(o.disabled=n.readOnly,o.type="radio",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("id",r),o.addEventListener("change",(function(e){var n,a=e.target,o=m(document.getElementsByName(a.name));try{for(o.s();!(n=o.n()).done;){var i=n.value;i!==a&&t.setValue(i.getAttribute("id"),{value:!1})}}catch(s){o.e(s)}finally{o.f()}t.setValue(r,{value:a.checked})})),this.enableScripting&&this.hasJSActions){var i=n.buttonValue;o.addEventListener("updatefromsandbox",(function(n){var a={value:function(e){var n,a=i===e.detail.value,o=m(document.getElementsByName(e.target.name));try{for(o.s();!(n=o.n()).done;){var s=n.value,l=s.getAttribute("id");s.checked=l===r&&a,t.setValue(l,{value:s.checked})}}catch(u){o.e(u)}finally{o.f()}}};e._dispatchEventFromSandbox(a,n)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))}return this.container.appendChild(o),this.container}}]),n}(E),O=function(e){c(n,e);var t=d(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){var e=l(v(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText),e}}]),n}(x),R=function(e){c(n,e);var t=d(n);function n(e){return b(this,n),t.call(this,e,{isRenderable:e.renderInteractiveForms})}return w(n,[{key:"render",value:function(){var e=this;this.container.className="choiceWidgetAnnotation";var t=this.annotationStorage,n=this.data.id;t.getValue(n,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});var r=document.createElement("select");r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.setAttribute("id",n),this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0));var a,o=m(this.data.options);try{for(o.s();!(a=o.n()).done;){var i=a.value,s=document.createElement("option");s.textContent=i.displayValue,s.value=i.exportValue,this.data.fieldValue.includes(i.exportValue)&&s.setAttribute("selected",!0),r.appendChild(s)}}catch(c){o.e(c)}finally{o.f()}var l=function(e,t){var n=t?"value":"textContent",r=e.target.options;return e.target.multiple?Array.prototype.filter.call(r,(function(e){return e.selected})).map((function(e){return e[n]})):-1===r.selectedIndex?null:r[r.selectedIndex][n]},u=function(e){var t=e.target.options;return Array.prototype.map.call(t,(function(e){return{displayValue:e.textContent,exportValue:e.value}}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(function(a){var o={value:function(e){var a=r.options,o=e.detail.value,i=new Set(Array.isArray(o)?o:[o]);Array.prototype.forEach.call(a,(function(e){e.selected=i.has(e.value)})),t.setValue(n,{value:l(e,!0)})},multipleSelection:function(e){r.multiple=!0},remove:function(e){var a=r.options,o=e.detail.remove;if(a[o].selected=!1,r.remove(o),a.length>0){var i=Array.prototype.findIndex.call(a,(function(e){return e.selected}));-1===i&&(a[0].selected=!0)}t.setValue(n,{value:l(e,!0),items:u(e)})},clear:function(e){for(;0!==r.length;)r.remove(0);t.setValue(n,{value:null,items:[]})},insert:function(e){var a=e.detail.insert,o=a.index,i=a.displayValue,s=a.exportValue,c=document.createElement("option");c.textContent=i,c.value=s,r.insertBefore(c,r.children[o]),t.setValue(n,{value:l(e,!0),items:u(e)})},items:function(e){for(var a=e.detail.items;0!==r.length;)r.remove(0);var o,i=m(a);try{for(i.s();!(o=i.n()).done;){var s=o.value,f=s.displayValue,d=s.exportValue,p=document.createElement("option");p.textContent=f,p.value=d,r.appendChild(p)}}catch(c){i.e(c)}finally{i.f()}r.options.length>0&&(r.options[0].selected=!0),t.setValue(n,{value:l(e,!0),items:u(e)})},indices:function(e){var r=new Set(e.detail.indices),a=e.target.options;Array.prototype.forEach.call(a,(function(e,t){e.selected=r.has(t)})),t.setValue(n,{value:l(e,!0)})},editable:function(e){e.target.disabled=!e.detail.editable}};e._dispatchEventFromSandbox(o,a)})),r.addEventListener("input",(function(r){var a,o=l(r,!0),i=l(r,!1);t.setValue(n,{value:o}),null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:i,changeEx:o,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(function(e){return e.target.checked}))):r.addEventListener("input",(function(e){t.setValue(n,{value:l(e)})})),this.container.appendChild(r),this.container}}]),n}(E),N=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!(!e.data.title&&!e.data.contents);return t.call(this,e,{isRenderable:r})}return w(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;var n=new M({container:this.container,trigger:Array.from(t),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=this.page,a=o.Util.normalizeRect([this.data.parentRect[0],r.view[3]-this.data.parentRect[1]+r.view[1],this.data.parentRect[2],r.view[3]-this.data.parentRect[3]+r.view[1]]),i=a[0]+this.data.parentRect[2]-this.data.parentRect[0],s=a[1];return this.container.style.transformOrigin="".concat(-i,"px ").concat(-s,"px"),this.container.style.left="".concat(i,"px"),this.container.style.top="".concat(s,"px"),this.container.appendChild(n.render()),this.container}}]),n}(S),M=function(){function e(t){b(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return w(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;var t=document.createElement("div");t.className="popup";var n=this.color;if(n){var r=.7*(255-n[0])+n[0],i=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=o.Util.makeHexColor(0|r,0|i,0|s)}var l=document.createElement("h1");l.textContent=this.title,t.appendChild(l);var u=a.PDFDateString.toDateObject(this.modificationDate);if(u){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:u.toLocaleDateString(),time:u.toLocaleTimeString()}),t.appendChild(c)}var f=this._formatContents(this.contents);t.appendChild(f),Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var d,p=m(this.trigger);try{for(p.s();!(d=p.n()).done;){var h=d.value;h.addEventListener("click",this._toggle.bind(this)),h.addEventListener("mouseover",this._show.bind(this,!1)),h.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(v){p.e(v)}finally{p.f()}return t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),r=0,a=n.length;r<a;++r){var o=n[r];t.appendChild(document.createTextNode(o)),r<a-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}]),e}(),F=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),n}(S),j=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),r.appendChild(a),this.container.append(r),this._createPopup(a,e),this.container}}]),n}(S),I=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",t-a),o.setAttribute("height",n-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(o,e),this.container}}]),n}(S),L=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-a/2),o.setAttribute("ry",n/2-a/2),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(o,e),this.container}}]),n}(S),D=function(e){c(n,e);var t=d(n);function n(e){var r;b(this,n);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,{isRenderable:a,ignoreBorder:!0})).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return w(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],a=this.svgFactory.create(n,r),o=[],i=m(t.vertices);try{for(i.s();!(e=i.n()).done;){var s=e.value,l=s.x-t.rect[0],u=t.rect[3]-s.y;o.push(l+","+u)}}catch(f){i.e(f)}finally{i.f()}o=o.join(" ");var c=this.svgFactory.createElement(this.svgElementName);return c.setAttribute("points",o),c.setAttribute("stroke-width",t.borderStyle.width||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","none"),a.appendChild(c),this.container.append(a),this._createPopup(c,t),this.container}}]),n}(S),q=function(e){c(n,e);var t=d(n);function n(e){var r;return b(this,n),(r=t.call(this,e)).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(D),z=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),n}(S),B=function(e){c(n,e);var t=d(n);function n(e){var r;b(this,n);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,{isRenderable:a,ignoreBorder:!0})).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return w(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],a=this.svgFactory.create(n,r),o=m(t.inkLists);try{for(o.s();!(e=o.n()).done;){var i,s=e.value,l=[],u=m(s);try{for(u.s();!(i=u.n()).done;){var c=i.value,f=c.x-t.rect[0],d=t.rect[3]-c.y;l.push("".concat(f,",").concat(d))}}catch(h){u.e(h)}finally{u.f()}l=l.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(p,t),a.appendChild(p)}}catch(h){o.e(h)}finally{o.f()}return this.container.append(a),this.container}}]),n}(S),U=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0,createQuadrilaterals:!0})}return w(n,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),n}(S),W=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0,createQuadrilaterals:!0})}return w(n,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),n}(S),H=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0,createQuadrilaterals:!0})}return w(n,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),n}(S),V=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0,createQuadrilaterals:!0})}return w(n,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),n}(S),G=function(e){c(n,e);var t=d(n);function n(e){b(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,{isRenderable:r,ignoreBorder:!0})}return w(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),n}(S),X=function(e){c(n,e);var t=d(n);function n(e){var r,i;b(this,n);var s=(i=t.call(this,e,{isRenderable:!0})).data.file,l=s.filename,u=s.content;return i.filename=(0,a.getFilenameFromUrl)(l),i.content=u,null===(r=i.linkService.eventBus)||void 0===r||r.dispatch("fileattachmentannotation",{source:h(i),id:(0,o.stringToPDFString)(l),filename:l,content:u}),i}return w(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}}]),n}(S),Y=function(){function e(){b(this,e)}return w(e,null,[{key:"render",value:function(e){var t,n=[],r=[],s=m(e.annotations);try{for(s.s();!(t=s.n()).done;){var l=t.value;l&&(l.annotationType!==o.AnnotationType.POPUP?n.push(l):r.push(l))}}catch(y){s.e(y)}finally{s.f()}r.length&&n.push.apply(n,r);for(var u=0,c=n;u<c.length;u++){var f=c[u],d=k.create({data:f,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:!1!==e.renderInteractiveForms,svgFactory:new a.DOMSVGFactory,annotationStorage:e.annotationStorage||new i.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,mouseState:e.mouseState||{isDown:!1}});if(d.isRenderable){var p=d.render();if(f.hidden&&(p.style.visibility="hidden"),Array.isArray(p)){var h,v=m(p);try{for(v.s();!(h=v.n()).done;){var g=h.value;e.div.appendChild(g)}}catch(y){v.e(y)}finally{v.f()}}else d instanceof N?e.div.prepend(p):e.div.appendChild(p)}}}},{key:"update",value:function(e){var t,n="matrix(".concat(e.viewport.transform.join(","),")"),r=m(e.annotations);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=e.div.querySelectorAll('[data-annotation-id="'.concat(a.id,'"]'));if(o){var i,s=m(o);try{for(s.s();!(i=s.n()).done;)i.value.style.transform=n}catch(l){s.e(l)}finally{s.f()}}}}catch(l){r.e(l)}finally{r.f()}e.div.hidden=!1}}]),e}();t.AnnotationLayer=Y},function(e,t){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i;return t=e,i=[{key:"CMYK_G",value:function(e){var t=n(e,4),r=t[0],a=t[1],o=t[2],i=t[3];return["G",1-Math.min(1,.3*r+.59*o+.11*a+i)]}},{key:"G_CMYK",value:function(e){return["CMYK",0,0,0,1-n(e,1)[0]]}},{key:"G_RGB",value:function(e){var t=n(e,1)[0];return["RGB",t,t,t]}},{key:"G_HTML",value:function(e){var t=o(n(e,1)[0]);return"#".concat(t).concat(t).concat(t)}},{key:"RGB_G",value:function(e){var t=n(e,3);return["G",.3*t[0]+.59*t[1]+.11*t[2]]}},{key:"RGB_HTML",value:function(e){var t=n(e,3),r=t[0],a=t[1],i=t[2],s=o(r),l=o(a),u=o(i);return"#".concat(s).concat(l).concat(u)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(e){var t=n(e,4),r=t[0],a=t[1],o=t[2],i=t[3];return["RGB",1-Math.min(1,r+i),1-Math.min(1,o+i),1-Math.min(1,a+i)]}},{key:"CMYK_HTML",value:function(e){return this.RGB_HTML(this.CMYK_RGB(e))}},{key:"RGB_CMYK",value:function(e){var t=n(e,3),r=1-t[0],a=1-t[1],o=1-t[2];return["CMYK",r,a,o,Math.min(r,a,o)]}}],(r=null)&&a(t.prototype,r),i&&a(t,i),e}();t.ColorConverters=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=function(e){var t=new v({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var r=n(4);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=30,l=new Map,u=/^\s+$/g;function c(e,t,n,a){var o=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};e._textDivs.push(o);var c=r.Util.transform(e._viewport.transform,t.transform),f=Math.atan2(c[1],c[0]),d=n[t.fontName];d.vertical&&(f+=Math.PI/2);var p,h,v=Math.hypot(c[2],c[3]),m=v*function(e,t){var n=l.get(e);if(n)return n;t.save(),t.font="".concat(s,"px ").concat(e);var r=t.measureText(""),a=r.fontBoundingBoxAscent,o=Math.abs(r.fontBoundingBoxDescent);if(a){t.restore();var i=a/(a+o);return l.set(e,i),i}t.strokeStyle="red",t.clearRect(0,0,s,s),t.strokeText("g",0,0);var u=t.getImageData(0,0,s,s).data;o=0;for(var c=u.length-1-3;c>=0;c-=4)if(u[c]>0){o=Math.ceil(c/4/s);break}t.clearRect(0,0,s,s),t.strokeText("A",0,s),a=0;for(var f=0,d=(u=t.getImageData(0,0,s,s).data).length;f<d;f+=4)if(u[f]>0){a=s-Math.floor(f/4/s);break}if(t.restore(),a){var p=a/(a+o);return l.set(e,p),p}return l.set(e,.8),.8}(d.fontFamily,a);0===f?(p=c[4],h=c[5]-m):(p=c[4]+m*Math.sin(f),h=c[5]-m*Math.cos(f)),o.style.left="".concat(p,"px"),o.style.top="".concat(h,"px"),o.style.fontSize="".concat(v,"px"),o.style.fontFamily=d.fontFamily,o.setAttribute("role","presentation"),o.textContent=t.str,o.dir=t.dir,e._fontInspectorEnabled&&(o.dataset.fontName=t.fontName),0!==f&&(i.angle=f*(180/Math.PI));var g=!1;if(t.str.length>1||e._enhanceTextSelection&&u.test(t.str))g=!0;else if(t.transform[0]!==t.transform[3]){var y=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);y!==b&&Math.max(y,b)/Math.min(y,b)>1.5&&(g=!0)}if(g&&(d.vertical?i.canvasWidth=t.height*e._viewport.scale:i.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(o,i),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection&&i.hasText){var _=1,w=0;0!==f&&(_=Math.cos(f),w=Math.sin(f));var k,S,x=(d.vertical?t.height:t.width)*e._viewport.scale,A=v;0!==f?(k=[_,w,-w,_,p,h],S=r.Util.getAxialAlignedBoundingBox([0,0,x,A],k)):S=[p,h,p+x,h+A],e._bounds.push({left:S[0],top:S[1],right:S[2],bottom:S[3],div:o,size:[x,A],m:k})}}function f(e){if(!e._canceled){var t=e._textDivs,n=e._capability,r=t.length;if(r>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(var a=0;a<r;a++)e._layoutText(t[a]);e._renderingDone=!0,n.resolve()}}function d(e,t,n){for(var r=0,a=0;a<n;a++){var o=e[t++];o>0&&(r=r?Math.min(o,r):o)}return r}function p(e){for(var t=e._bounds,n=e._viewport,a=function(e,t,n){var r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));h(e,r);var a,i=new Array(n.length),s=o(r);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=l.index;i[u]={left:l.x1New,top:0,right:l.x2New,bottom:0}}}catch(v){s.e(v)}finally{s.f()}n.map((function(t,n){var a=i[n],o=r[n];o.x1=t.top,o.y1=e-a.right,o.x2=t.bottom,o.y2=e-a.left,o.index=n,o.x1New=void 0,o.x2New=void 0})),h(t,r);var c,f=o(r);try{for(f.s();!(c=f.n()).done;){var d=c.value,p=d.index;i[p].top=d.x1New,i[p].bottom=d.x2New}}catch(v){f.e(v)}finally{f.f()}return i}(n.width,n.height,t),i=0;i<a.length;i++){var s=t[i].div,l=e._textDivProperties.get(s);if(0!==l.angle){for(var u=a[i],c=t[i],f=c.m,p=f[0],v=f[1],m=[[0,0],[0,c.size[1]],[c.size[0],0],c.size],g=new Float64Array(64),y=0,b=m.length;y<b;y++){var _=r.Util.applyTransform(m[y],f);g[y+0]=p&&(u.left-_[0])/p,g[y+4]=v&&(u.top-_[1])/v,g[y+8]=p&&(u.right-_[0])/p,g[y+12]=v&&(u.bottom-_[1])/v,g[y+16]=v&&(u.left-_[0])/-v,g[y+20]=p&&(u.top-_[1])/p,g[y+24]=v&&(u.right-_[0])/-v,g[y+28]=p&&(u.bottom-_[1])/p,g[y+32]=p&&(u.left-_[0])/-p,g[y+36]=v&&(u.top-_[1])/-v,g[y+40]=p&&(u.right-_[0])/-p,g[y+44]=v&&(u.bottom-_[1])/-v,g[y+48]=v&&(u.left-_[0])/v,g[y+52]=p&&(u.top-_[1])/-p,g[y+56]=v&&(u.right-_[0])/v,g[y+60]=p&&(u.bottom-_[1])/-p}var w=1+Math.min(Math.abs(p),Math.abs(v));l.paddingLeft=d(g,32,16)/w,l.paddingTop=d(g,48,16)/w,l.paddingRight=d(g,0,16)/w,l.paddingBottom=d(g,16,16)/w,e._textDivProperties.set(s,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(s,l)}}function h(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var n,r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}],a=o(t);try{for(a.s();!(n=a.n()).done;){for(var i=n.value,s=0;s<r.length&&r[s].end<=i.y1;)s++;for(var l=r.length-1;l>=0&&r[l].start>=i.y2;)l--;var u=void 0,c=void 0,f=void 0,d=void 0,p=-1/0;for(f=s;f<=l;f++){c=(u=r[f]).boundary;var h=void 0;(h=c.x2>i.x1?c.index>i.index?c.x1New:i.x1:void 0===c.x2New?(c.x2+i.x1)/2:c.x2New)>p&&(p=h)}for(i.x1New=p,f=s;f<=l;f++)void 0===(c=(u=r[f]).boundary).x2New?c.x2>i.x1?c.index>i.index&&(c.x2New=c.x2):c.x2New=p:c.x2New>p&&(c.x2New=Math.max(p,c.x2));var v=[],m=null;for(f=s;f<=l;f++){var g=(c=(u=r[f]).boundary).x2>i.x2?c:i;m===g?v[v.length-1].end=u.end:(v.push({start:u.start,end:u.end,boundary:g}),m=g)}for(r[s].start<i.y1&&(v[0].start=i.y1,v.unshift({start:r[s].start,end:i.y1,boundary:r[s].boundary})),i.y2<r[l].end&&(v[v.length-1].end=i.y2,v.push({start:i.y2,end:r[l].end,boundary:r[l].boundary})),f=s;f<=l;f++)if(void 0===(c=(u=r[f]).boundary).x2New){var y=!1;for(d=s-1;!y&&d>=0&&r[d].start>=c.y1;d--)y=r[d].boundary===c;for(d=l+1;!y&&d<r.length&&r[d].end<=c.y2;d++)y=r[d].boundary===c;for(d=0;!y&&d<v.length;d++)y=v[d].boundary===c;y||(c.x2New=p)}Array.prototype.splice.apply(r,[s,l-s+1].concat(v))}}catch(k){a.e(k)}finally{a.f()}for(var b=0,_=r;b<_.length;b++){var w=_[b].boundary;void 0===w.x2New&&(w.x2New=Math.max(e,w.x2))}}var v=function(){function e(t){var n,a=this,o=t.textContent,i=t.textContentStream,s=t.container,l=t.viewport,u=t.textDivs,c=t.textContentItemsStr,f=t.enhanceTextSelection;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._textContent=o,this._textContentStream=i,this._container=s,this._document=s.ownerDocument,this._viewport=l,this._textDivs=u||[],this._textContentItemsStr=c||[],this._enhanceTextSelection=!!f,this._fontInspectorEnabled=!(null===(n=globalThis.FontInspector)||void 0===n||!n.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((function(){a._layoutTextCtx&&(a._layoutTextCtx.canvas.width=0,a._layoutTextCtx.canvas.height=0,a._layoutTextCtx=null)})).catch((function(){}))}var t,n,o;return t=e,n=[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(e,t){for(var n=0,r=e.length;n<r;n++)if(void 0!==e[n].str)this._textContentItemsStr.push(e[n].str),c(this,e[n],t,this._layoutTextCtx);else if("beginMarkedContentProps"===e[n].type||"beginMarkedContent"===e[n].type){var a=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[n].id&&this._container.setAttribute("id","".concat(e[n].id)),a.appendChild(this._container)}else"endMarkedContent"===e[n].type&&(this._container=this._container.parentNode)}},{key:"_layoutText",value:function(e){var t=this._textDivProperties.get(e),n="";if(0!==t.canvasWidth&&t.hasText){var r=e.style,a=r.fontSize,o=r.fontFamily;a===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(a," ").concat(o),this._layoutTextLastFontSize=a,this._layoutTextLastFontFamily=o);var i=this._layoutTextCtx.measureText(e.textContent).width;i>0&&(t.scale=t.canvasWidth/i,n="scaleX(".concat(t.scale,")"))}if(0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.appendChild(e),t.hasEOL){var s=document.createElement("br");s.setAttribute("role","presentation"),this._container.appendChild(s)}}},{key:"_render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=(0,r.createPromiseCapability)(),a=Object.create(null),o=this._document.createElement("canvas");if(o.height=o.width=s,o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var i=this._textContent.items,l=this._textContent.styles;this._processItems(i,l),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var u=function t(){e._reader.read().then((function(r){var o=r.value;r.done?n.resolve():(Object.assign(a,o.styles),e._processItems(o.items,a),t())}),n.reject)};this._reader=this._textContentStream.getReader(),u()}n.promise.then((function(){a=null,t?e._renderTimer=setTimeout((function(){f(e),e._renderTimer=null}),t):f(e)}),this._capability.reject)}},{key:"expandTextDivs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(p(this),this._bounds=null);for(var t=[],n=[],r=0,a=this._textDivs.length;r<a;r++){var o=this._textDivs[r],i=this._textDivProperties.get(o);i.hasText&&(e?(t.length=0,n.length=0,i.originalTransform&&t.push(i.originalTransform),i.paddingTop>0?(n.push("".concat(i.paddingTop,"px")),t.push("translateY(".concat(-i.paddingTop,"px)"))):n.push(0),i.paddingRight>0?n.push("".concat(i.paddingRight/i.scale,"px")):n.push(0),i.paddingBottom>0?n.push("".concat(i.paddingBottom,"px")):n.push(0),i.paddingLeft>0?(n.push("".concat(i.paddingLeft/i.scale,"px")),t.push("translateX(".concat(-i.paddingLeft/i.scale,"px)"))):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=i.originalTransform))}}}}],n&&a(t.prototype,n),o&&a(t,o),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(4),a=n(1),o=n(6);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function e(){p(this,e),(0,r.unreachable)("Not implemented: SVGGraphics")};t.SVGGraphics=h;var v=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)},m=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(v(e[0])," ").concat(v(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(v(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(v(e[4])," ").concat(v(e[5]),")");return"matrix(".concat(v(e[0])," ").concat(v(e[1])," ").concat(v(e[2])," ").concat(v(e[3])," ").concat(v(e[4])," ")+"".concat(v(e[5]),")")},g={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},y=["butt","round","square"],b=["miter","round","bevel"],_=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256),n=0;n<256;n++){for(var a=n,i=0;i<8;i++)a=1&a?3988292384^a>>1&2147483647:a>>1&2147483647;t[n]=a}function s(e,n,r,a){var o=a,i=n.length;r[o]=i>>24&255,r[o+1]=i>>16&255,r[o+2]=i>>8&255,r[o+3]=255&i,r[o+=4]=255&e.charCodeAt(0),r[o+1]=255&e.charCodeAt(1),r[o+2]=255&e.charCodeAt(2),r[o+3]=255&e.charCodeAt(3),o+=4,r.set(n,o);var s=function(e,n,r){for(var a=-1,o=n;o<r;o++){var i=255&(a^e[o]);a=a>>>8^t[i]}return-1^a}(r,a+4,o+=n.length);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function l(e){var t=e.length,n=65535,r=Math.ceil(t/n),a=new Uint8Array(2+t+5*r+4),o=0;a[o++]=120,a[o++]=156;for(var i=0;t>n;)a[o++]=0,a[o++]=255,a[o++]=255,a[o++]=0,a[o++]=0,a.set(e.subarray(i,i+n),o),o+=n,i+=n,t-=n;a[o++]=1,a[o++]=255&t,a[o++]=t>>8&255,a[o++]=255&~t,a[o++]=(65535&~t)>>8&255,a.set(e.subarray(i),o),o+=e.length-i;var s=function(e,t,n){for(var r=1,a=0,o=t;o<n;++o)a=(a+(r=(r+(255&e[o]))%65521))%65521;return a<<16|r}(e,0,e.length);return a[o++]=s>>24&255,a[o++]=s>>16&255,a[o++]=s>>8&255,a[o++]=255&s,a}function u(t,n,a,i){var u,c,f,d=t.width,p=t.height,h=t.data;switch(n){case r.ImageKind.GRAYSCALE_1BPP:c=0,u=1,f=d+7>>3;break;case r.ImageKind.RGB_24BPP:c=2,u=8,f=3*d;break;case r.ImageKind.RGBA_32BPP:c=6,u=8,f=4*d;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+f)*p),m=0,g=0,y=0;y<p;++y)v[m++]=0,v.set(h.subarray(g,g+f),m),g+=f,m+=f;if(n===r.ImageKind.GRAYSCALE_1BPP&&i){m=0;for(var b=0;b<p;b++){m++;for(var _=0;_<f;_++)v[m++]^=255}}var w=new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,u,c,0,0,0]),k=function(e){if(!o.isNodeJS)return l(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var n=__webpack_require__(324).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(a){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+a)}return l(e)}(v),S=e.length+36+w.length+k.length,x=new Uint8Array(S),A=0;return x.set(e,A),s("IHDR",w,x,A+=e.length),s("IDATA",k,x,A+=12+w.length),A+=12+k.length,s("IEND",new Uint8Array(0),x,A),(0,r.createObjectURL)(x,"image/png",a)}return function(e,t,n){return u(e,void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}(),w=function(){function e(){p(this,e),this.fontSizeScale=1,this.fontWeight=g.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.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=g.fillColor,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=""}return d(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),k=0,S=0,x=0;t.SVGGraphics=h=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in p(this,e),this.svgFactory=new a.DOMSVGFactory,this.current=new w,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!o,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[i]]=i}return d(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,a=e.argsArray,o=0,i=n.length;o<i;o++)if(n[o]===r.OPS.dependency){var s,u=l(a[o]);try{var c=function(){var e=s.value,n=e.startsWith("g_")?t.commonObjs:t.objs,r=new Promise((function(t){n.get(e,t)}));t.current.dependencies.push(r)};for(u.s();!(s=u.n()).done;)c()}catch(f){u.e(f)}finally{u.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,n,a,o,i){var s=[e,t,n,a,o,i];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var n=this;this.viewport=t;var a=this._initialize(t);return this.loadDependencies(e).then((function(){return n.transformMatrix=r.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(e)),a}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,a=[],o=0,i=r.length;o<i;o++){var s=r[o];a.push({fnId:s,fn:t[s],args:n[o]})}return function(e){var t,n=[],r=[],a=l(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;"save"!==o.fn?"restore"===o.fn?n=r.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(i){a.e(i)}finally{a.f()}return n}(a)}},{key:"executeOpTree",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,o=a.fn,i=a.fnId,s=a.args;switch(0|i){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(s);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case r.OPS.setFont:this.setFont(s);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(s[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(s[0],s[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case r.OPS.setHScale:this.setHScale(s[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.setTextRise:this.setTextRise(s[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case r.OPS.setLineWidth:this.setLineWidth(s[0]);break;case r.OPS.setLineJoin:this.setLineJoin(s[0]);break;case r.OPS.setLineCap:this.setLineCap(s[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case r.OPS.setFillColorN:this.setFillColorN(s);break;case r.OPS.shadingFill:this.shadingFill(s[0]);break;case r.OPS.setDash:this.setDash(s[0],s[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case r.OPS.setFlatness:this.setFlatness(s[0]);break;case r.OPS.setGState:this.setGState(s[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.constructPath:this.constructPath(s[0],s[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(a.items);break;default:(0,r.warn)("Unimplemented operator ".concat(o))}}}catch(u){n.e(u)}finally{n.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,n,r,a,o){var i=this.current;i.textMatrix=i.lineMatrix=[e,t,n,r,a,o],i.textMatrixScale=Math.hypot(e,t),i.x=i.lineX=0,i.y=i.lineY=0,i.xcoords=[],i.ycoords=[],i.tspan=this.svgFactory.createElement("svg:tspan"),i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size","".concat(v(i.fontSize),"px")),i.tspan.setAttributeNS(null,"y",v(-i.y)),i.txtElement=this.svgFactory.createElement("svg:text"),i.txtElement.appendChild(i.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=r.IDENTITY_MATRIX,e.lineMatrix=r.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(v(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",v(-n.y))}},{key:"showText",value:function(e){var t=this.current,n=t.font,a=t.fontSize;if(0!==a){var o,i=t.fontSizeScale,s=t.charSpacing,u=t.wordSpacing,c=t.fontDirection,f=t.textHScale*c,d=n.vertical,p=d?1:-1,h=n.defaultVMetrics,y=a*t.fontMatrix[0],b=0,_=l(e);try{for(_.s();!(o=_.n()).done;){var w=o.value;if(null!==w)if((0,r.isNum)(w))b+=p*w*a/1e3;else{var k=(w.isSpace?u:0)+s,S=w.fontChar,x=void 0,A=void 0,E=w.width;if(d){var C=void 0,T=w.vmetric||h;C=-(C=w.vmetric?T[1]:.5*E)*y;var P=T[2]*y;E=T?-T[0]:E,x=C/i,A=(b+P)/i}else x=b/i,A=0;(w.isInFont||n.missingFile)&&(t.xcoords.push(t.x+x),d&&t.ycoords.push(-t.y+A),t.tspan.textContent+=S),b+=d?E*y-k*c:E*y+k*c}else b+=c*u}}catch(M){_.e(M)}finally{_.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(v).join(" ")),d?t.tspan.setAttributeNS(null,"y",t.ycoords.map(v).join(" ")):t.tspan.setAttributeNS(null,"y",v(-t.y)),d?t.y-=b:t.x+=b*f,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(v(t.fontSize),"px")),t.fontStyle!==g.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==g.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var O=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(O===r.TextRenderingMode.FILL||O===r.TextRenderingMode.FILL_STROKE?(t.fillColor!==g.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),O===r.TextRenderingMode.STROKE||O===r.TextRenderingMode.FILL_STROKE){var R=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,R)}var N=t.textMatrix;0!==t.textRise&&((N=N.slice())[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(m(N)," scale(").concat(v(f),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,r.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,n=this.commonObjs.get(e[0]),a=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||r.FONT_IDENTITY_MATRIX;var o="normal";n.black?o="900":n.bold&&(o="bold");var i=n.italic?"italic":"normal";a<0?(a=-a,t.fontDirection=-1):t.fontDirection=1,t.fontSize=a,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=i,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",v(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e,t=this.current;t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=y[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=b[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=r.Util.makeHexColor(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=r.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,n=this.viewport.height,a=r.Util.inverseTransform(this.transformMatrix),o=r.Util.applyTransform([0,0],a),i=r.Util.applyTransform([0,n],a),s=r.Util.applyTransform([t,0],a),l=r.Util.applyTransform([t,n],a),u=Math.min(o[0],i[0],s[0],l[0]),c=Math.min(o[1],i[1],s[1],l[1]),f=Math.max(o[0],i[0],s[0],l[0]),d=Math.max(o[1],i[1],s[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",u),p.setAttributeNS(null,"y",c),p.setAttributeNS(null,"width",f-u),p.setAttributeNS(null,"height",d-c),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(p)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],a=e[3]||r.IDENTITY_MATRIX,o=s(e[4],4),l=o[0],u=o[1],c=o[2],f=o[3],d=e[5],p=e[6],h=e[7],v="shading".concat(x++),m=s(r.Util.normalizeRect([].concat(i(r.Util.applyTransform([l,u],a)),i(r.Util.applyTransform([c,f],a)))),4),g=m[0],y=m[1],b=m[2],_=m[3],w=s(r.Util.singularValueDecompose2dScale(a),2),k=d*w[0],S=p*w[1],A=this.svgFactory.createElement("svg:pattern");A.setAttributeNS(null,"id",v),A.setAttributeNS(null,"patternUnits","userSpaceOnUse"),A.setAttributeNS(null,"width",k),A.setAttributeNS(null,"height",S),A.setAttributeNS(null,"x","".concat(g)),A.setAttributeNS(null,"y","".concat(y));var E=this.svg,C=this.transformMatrix,T=this.current.fillColor,P=this.current.strokeColor,O=this.svgFactory.create(b-g,_-y);if(this.svg=O,this.transformMatrix=a,2===h){var R=r.Util.makeHexColor.apply(r.Util,i(t));this.current.fillColor=R,this.current.strokeColor=R}return this.executeOpTree(this.convertOpList(n)),this.svg=E,this.transformMatrix=C,this.current.fillColor=T,this.current.strokeColor=P,A.appendChild(O.childNodes[0]),this.defs.appendChild(A),"url(#".concat(v,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(x++),a=e[3];switch(e[1]){case"axial":var o=e[4],i=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",o[0]),t.setAttributeNS(null,"y1",o[1]),t.setAttributeNS(null,"x2",i[0]),t.setAttributeNS(null,"y2",i[1]);break;case"radial":var s=e[4],u=e[5],c=e[6],f=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",u[0]),t.setAttributeNS(null,"cy",u[1]),t.setAttributeNS(null,"r",f),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]))}var d,p=l(a);try{for(p.s();!(d=p.n()).done;){var h=d.value,v=this.svgFactory.createElement("svg:stop");v.setAttributeNS(null,"offset",h[0]),v.setAttributeNS(null,"stop-color",h[1]),t.appendChild(v)}}catch(m){p.e(m)}finally{p.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,a=this.current,o=a.x,i=a.y,s=[],u=0,c=l(e);try{for(c.s();!(n=c.n()).done;)switch(0|n.value){case r.OPS.rectangle:o=t[u++],i=t[u++];var f=t[u++],d=t[u++],p=o+f,h=i+d;s.push("M",v(o),v(i),"L",v(p),v(i),"L",v(p),v(h),"L",v(o),v(h),"Z");break;case r.OPS.moveTo:o=t[u++],i=t[u++],s.push("M",v(o),v(i));break;case r.OPS.lineTo:o=t[u++],i=t[u++],s.push("L",v(o),v(i));break;case r.OPS.curveTo:o=t[u+4],i=t[u+5],s.push("C",v(t[u]),v(t[u+1]),v(t[u+2]),v(t[u+3]),v(o),v(i)),u+=6;break;case r.OPS.curveTo2:s.push("C",v(o),v(i),v(t[u]),v(t[u+1]),v(t[u+2]),v(t[u+3])),o=t[u+2],i=t[u+3],u+=4;break;case r.OPS.curveTo3:o=t[u+2],i=t[u+3],s.push("C",v(t[u]),v(t[u+1]),v(o),v(i),v(o),v(i)),u+=4;break;case r.OPS.closePath:s.push("Z")}}catch(m){c.e(m)}finally{c.f()}s=s.join(" "),a.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?s=a.path.getAttributeNS(null,"d")+s:(a.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(a.path)),a.path.setAttributeNS(null,"d",s),a.path.setAttributeNS(null,"fill","none"),a.element=a.path,a.setCurrentPoint(o,i)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(k++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",m(this.transformMatrix));var r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),e.activeClipUrl){e.clipGroup=null;var a,o=l(this.extraStack);try{for(o.s();!(a=o.n()).done;)a.value.clipGroup=null}catch(i){o.e(i)}finally{o.f()}n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var a=s(t.value,2),o=a[0],i=a[1];switch(o){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i);break;case"CA":this.setStrokeAlpha(i);break;case"ca":this.setFillAlpha(i);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(o))}}}catch(u){n.e(u)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",v(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",v(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(v).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",v(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){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().appendChild(e)}},{key:"paintImageXObject",value:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,a=_(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",v(n)),o.setAttributeNS(null,"height",v(r)),this.current.element=o,this.clip("nonzero");var i=this.svgFactory.createElement("svg:image");i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",v(-r)),i.setAttributeNS(null,"width",v(n)+"px"),i.setAttributeNS(null,"height",v(r)+"px"),i.setAttributeNS(null,"transform","scale(".concat(v(1/n)," ").concat(v(-1/r),")")),t?t.appendChild(i):this._ensureTransformGroup().appendChild(i)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,r=e.height,a=t.fillColor;t.maskId="mask".concat(S++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);var i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",v(n)),i.setAttributeNS(null,"height",v(r)),i.setAttributeNS(null,"fill",a),i.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(i),this.paintInlineImageXObject(e,o)}},{key:"paintFormXObjectBegin",value:function(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 n=t[2]-t[0],r=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",v(n)),a.setAttributeNS(null,"height",v(r)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",m(e.transform)),t.appendChild(r),this.svg=r,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",m(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,a,o;return t=e,o=[{key:"setupStorage",value:function(e,t,n,a,o){var i=a.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===o)break;e.addEventListener("input",(function(e){a.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(i.value===n.attributes.xfaOn&&e.setAttribute("checked",!0),"print"===o)break;e.addEventListener("change",(function(e){a.setValue(t,{value:e.target.getAttribute("xfaOn")})}))}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===o)break;e.addEventListener("input",(function(e){a.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==i.value){var s,l=r(n.children);try{for(l.s();!(s=l.n()).done;){var u=s.value;u.attributes.value===i.value&&(u.attributes.selected=!0)}}catch(c){l.e(c)}finally{l.f()}}e.addEventListener("input",(function(e){var n=e.target.options,r=-1===n.selectedIndex?"":n[n.selectedIndex].value;a.setValue(t,{value:r})}))}}},{key:"setAttributes",value:function(e,t,r,a){var o=t.attributes;"radio"===o.type&&(o.name="".concat(o.name,"-").concat(a));for(var i=0,s=Object.entries(o);i<s.length;i++){var l=n(s[i],2),u=l[0],c=l[1];null!==c&&void 0!==c&&"dataId"!==u&&("style"!==u?"textContent"===u?e.textContent=c:"class"===u?e.setAttribute(u,c.join(" ")):e.setAttribute(u,c):Object.assign(e.style,c))}r&&o.dataId&&this.setupStorage(e,o.dataId,t,r)}},{key:"render",value:function(e){var t=e.annotationStorage,a=e.xfa,o=e.intent||"display",i=document.createElement(a.name);a.attributes&&this.setAttributes(i,a);var s=[[a,-1,i]],l=e.div;l.appendChild(i);var u="matrix(".concat(e.viewport.transform.join(","),")");for(l.style.transform=u,l.setAttribute("class","xfaLayer xfaFont");s.length>0;){var c,f=n(s[s.length-1],3),d=f[0],p=f[1],h=f[2];if(p+1!==d.children.length){var v=d.children[++s[s.length-1][1]];if(null!==v){var m=v.name;if("#text"!==m){var g=void 0;g=null!==v&&void 0!==v&&null!==(c=v.attributes)&&void 0!==c&&c.xmlns?document.createElementNS(v.attributes.xmlns,m):document.createElement(m),h.appendChild(g),v.attributes&&this.setAttributes(g,v,t,o),v.children&&v.children.length>0?s.push([v,-1,g]):v.value&&g.appendChild(document.createTextNode(v.value))}else h.appendChild(document.createTextNode(v.value))}}else s.pop()}var y,b=r(l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(b.s();!(y=b.n()).done;)y.value.setAttribute("readOnly",!0)}catch(_){b.e(_)}finally{b.f()}}},{key:"update",value:function(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}],(a=null)&&i(t.prototype,a),o&&i(t,o),e}();t.XfaLayer=s},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var a,o=(a=n(2))&&a.__esModule?a:{default:a},i=n(4),s=n(132);function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){p(o,r,a,i,s,"next",e)}function s(e){p(o,r,a,i,s,"throw",e)}i(void 0)}))}}function v(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}var _=__webpack_require__(767),w=__webpack_require__(251),k=__webpack_require__(677),S=__webpack_require__(543),x=/^file:\/\/\/[a-zA-Z]:\//,A=function(){function e(t){g(this,e),this.source=t,this.url=function(e){var t=S.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?S.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return b(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new R(this):new P(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new N(this,e,t):new O(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,n=v(this._rangeRequestReaders.slice(0));try{for(n.s();!(t=n.n()).done;)t.value.cancel(e)}catch(r){n.e(r)}finally{n.f()}}}]),e}();t.PDFNodeStream=A;var E=function(){function e(t){g(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)(),this._headersCapability=(0,i.createPromiseCapability)()}return b(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=h(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}(),C=function(){function e(t){g(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)();var n=t.source;this._isStreamingSupported=!n.disableStream}return b(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=h(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}();function T(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var P=function(e){l(n,e);var t=c(n);function n(e){var r;g(this,n);var a=function(t){if(404===t.statusCode){var n=new i.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(t);var a=function(e){return r._readableStream.headers[e.toLowerCase()]},o=(0,s.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),l=o.allowRangeRequests,u=o.suggestedLength;r._isRangeSupported=l,r._contentLength=u||r._contentLength,r._filename=(0,s.extractFilenameFromHeader)(a)};return(r=t.call(this,e))._request=null,"http:"===r._url.protocol?r._request=w.request(T(r._url,e.httpHeaders),a):r._request=k.request(T(r._url,e.httpHeaders),a),r._request.on("error",(function(e){r._storedError=e,r._headersCapability.reject(e)})),r._request.end(),r}return n}(E),O=function(e){l(n,e);var t=c(n);function n(e,r,a){var o;for(var s in g(this,n),(o=t.call(this,e))._httpHeaders={},e.httpHeaders){var l=e.httpHeaders[s];"undefined"!==typeof l&&(o._httpHeaders[s]=l)}o._httpHeaders.Range="bytes=".concat(r,"-").concat(a-1);var u=function(e){if(404!==e.statusCode)o._setReadableStream(e);else{var t=new i.MissingPDFException('Missing PDF "'.concat(o._url,'".'));o._storedError=t}};return o._request=null,"http:"===o._url.protocol?o._request=w.request(T(o._url,o._httpHeaders),u):o._request=k.request(T(o._url,o._httpHeaders),u),o._request.on("error",(function(e){o._storedError=e})),o._request.end(),o}return n}(C),R=function(e){l(n,e);var t=c(n);function n(e){var r;g(this,n),r=t.call(this,e);var a=decodeURIComponent(r._url.path);return x.test(r._url.href)&&(a=a.replace(/^\//,"")),_.lstat(a,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new i.MissingPDFException('Missing PDF "'.concat(a,'".'))),r._storedError=e,void r._headersCapability.reject(e);r._contentLength=t.size,r._setReadableStream(_.createReadStream(a)),r._headersCapability.resolve()})),r}return n}(E),N=function(e){l(n,e);var t=c(n);function n(e,r,a){var o;g(this,n),o=t.call(this,e);var i=decodeURIComponent(o._url.path);return x.test(o._url.href)&&(i=i.replace(/^\//,"")),o._setReadableStream(_.createReadStream(i,{start:r,end:a-1})),o}return n}(C)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var n=(0,a.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(r){}if((0,o.isPdfFile)(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,a=e.rangeChunkSize,o=e.disableRange;(0,r.assert)(a>0,"Range chunk size must be larger than zero");var i={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return Number.isInteger(s)?(i.suggestedLength=s,s<=2*a||o||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(4),a=n(133),o=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=s("filename\\*","i").exec(e);if(n){var o=c(n=n[1]);return u(o=d(o=f(o=unescape(o))))}if(n=function(e){for(var t,n=[],r=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=r.exec(e));){var o=a(t,4),i=o[1],l=o[2],u=o[3];if((i=parseInt(i,10))in n){if(0===i)break}else n[i]=[l,u]}for(var d=[],p=0;p<n.length&&p in n;++p){var h=a(n[p],2),v=h[0],m=h[1];m=c(m),v&&(m=unescape(m),0===p&&(m=f(m))),d.push(m)}return d.join("")}(e))return u(d(n));if(n=s("filename","i").exec(e)){var i=c(n=n[1]);return u(i=d(i))}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var a=new TextDecoder(e,{fatal:!0}),o=(0,r.stringToBytes)(n);n=a.decode(o),t=!1}catch(i){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(s){}}}return n}function u(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function c(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),n=0;n<t.length;++n){var r=t[n].indexOf('"');-1!==r&&(t[n]=t[n].slice(0,r),t.length=n+1),t[n]=t[n].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function f(e){var t=e.indexOf("'");return-1===t?e:l(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function d(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return l(t,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch(a){}return l(t,r)}))}return""};var r=n(4);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r,a=(r=n(2))&&r.__esModule?r:{default:r},o=n(4),i=n(132);function s(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){s(o,r,a,i,l,"next",e)}function l(e){s(o,r,a,i,l,"throw",e)}i(void 0)}))}}function u(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var h=function(){function e(t,n){f(this,e),this.url=t,n=n||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return p(e,[{key:"requestRange",value:function(e,t,n){var r={begin:e,end:t};for(var a in n)r[a]=n[a];return this.request(r)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};for(var a in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[a];"undefined"!==typeof o&&t.setRequestHeader(a,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}},{key:"onProgress",value:function(e,t){var n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}},{key:"onStateChange",value:function(e,t){var n=this.pendingRequests[e];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var a=r.status||200;if(200===a&&206===n.expectedStatus||a===n.expectedStatus){var i=function(e){var t=e.response;return"string"!==typeof t?t:(0,o.stringToBytes)(t).buffer}(r);if(206===a){var s=r.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(l[1],10),chunk:i})}else i?n.onDone({begin:0,chunk:i}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),v=function(){function e(t){f(this,e),this._source=t,this._manager=new h(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return p(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new m(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new g(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,n=u(this._rangeRequestReaders.slice(0));try{for(n.s();!(t=n.n()).done;)t.value.cancel(e)}catch(r){n.e(r)}finally{n.f()}}}]),e}();t.PDFNetworkStream=v;var m=function(){function e(t,n){f(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.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}return p(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=r.allowRangeRequests,o=r.suggestedLength;a&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(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)){var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}}},{key:"_onError",value:function(e){var t=this._url,n=(0,i.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n);var r,a=u(this._requests);try{for(a.s();!(r=a.n()).done;)r.value.reject(n)}catch(o){a.e(o)}finally{a.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e);var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),e}(),g=function(){function e(t,n,r){f(this,e),this._manager=t;var a={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,r,a),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return p(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;var n,r=u(this._requests);try{for(r.s();!(n=r.n()).done;)n.value.resolve({value:void 0,done:!0})}catch(a){r.e(a)}finally{r.f()}this._requests.length=0,this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=u(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r,a=(r=n(2))&&r.__esModule?r:{default:r},o=n(4),i=n(132);function s(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){s(o,r,a,i,l,"next",e)}function l(e){s(o,r,a,i,l,"throw",e)}i(void 0)}))}}function u(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function h(e,t,n){return{method:"GET",headers:e,signal:null===n||void 0===n?void 0:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function v(e){var t=new Headers;for(var n in e){var r=e[n];"undefined"!==typeof r&&t.append(n,r)}return t}var m=function(){function e(t){f(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return p(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new g(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new y(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,n=u(this._rangeRequestReaders.slice(0));try{for(n.s();!(t=n.n()).done;)t.value.cancel(e)}catch(r){n.e(r)}finally{n.f()}}}]),e}();t.PDFFetchStream=m;var g=function(){function e(t){var n=this;f(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=v(this._stream.httpHeaders);var a=r.url;fetch(a,h(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,a);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},r=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=r.allowRangeRequests,l=r.suggestedLength;n._isRangeSupported=s,n._contentLength=l||n._contentLength,n._filename=(0,i.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return p(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]),e}(),y=function(){function e(t,n,r){var a=this;f(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=v(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var l=s.url;fetch(l,h(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);a._readCapability.resolve(),a._reader=e.body.getReader()})).catch((function(e){if("AbortError"!==(null===e||void 0===e?void 0:e.name))throw e})),this.onProgress=null}return p(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=l(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]),e}()}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__w_pdfjs_require__),n.loaded=!0,n.exports}__w_pdfjs_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__={};return function(){"use strict";var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return t.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return t.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return t.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return t.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return t.isPdfFile}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return t.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return t.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return t.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return t.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return r.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return r.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return r.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return r.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return r.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return r.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return r.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return r.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return r.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return r.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return r.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return r.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return r.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return r.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return r.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return s.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return u.XfaLayer}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(115),r=__w_pdfjs_require__(4),a=__w_pdfjs_require__(126),o=__w_pdfjs_require__(121),i=__w_pdfjs_require__(6),s=__w_pdfjs_require__(128),l=__w_pdfjs_require__(129),u=__w_pdfjs_require__(130);if(i.isNodeJS){var c=__w_pdfjs_require__(131).PDFNodeStream;(0,n.setPDFNetworkStreamFactory)((function(e){return new c(e)}))}else{var f=__w_pdfjs_require__(134).PDFNetworkStream,d=__w_pdfjs_require__(135).PDFFetchStream;(0,n.setPDFNetworkStreamFactory)((function(e){return(0,t.isValidFetchUrl)(e.url)?new d(e):new f(e)}))}}(),__webpack_exports__}()},module.exports=factory()},888:function(e,t,n){"use strict";var r=n(47);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},7:function(e,t,n){e.exports=n(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:function(e,t,n){"use strict";var r=n(791),a=n(725),o=n(296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,A=60108,E=60114,C=60109,T=60110,P=60112,O=60113,R=60120,N=60115,M=60116,F=60121,j=60128,I=60129,L=60130,D=60131;if("function"===typeof Symbol&&Symbol.for){var q=Symbol.for;k=q("react.element"),S=q("react.portal"),x=q("react.fragment"),A=q("react.strict_mode"),E=q("react.profiler"),C=q("react.provider"),T=q("react.context"),P=q("react.forward_ref"),O=q("react.suspense"),R=q("react.suspense_list"),N=q("react.memo"),M=q("react.lazy"),F=q("react.block"),q("react.scope"),j=q("react.opaque.id"),I=q("react.debug_trace_mode"),L=q("react.offscreen"),D=q("react.legacy_hidden")}var z,B="function"===typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var a=l.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case E:return"Profiler";case A:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case F:return X(e._render);case M:t=e._payload,e=e._init;try{return X(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,me,ge=(me=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(be).forEach((function(e){_e.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Te=null,Pe=null;function Oe(e){if(e=ra(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=oa(t),Ce(e.stateNode,e.type,t))}}function Re(e){Te?Pe?Pe.push(e):Pe=[e]:Te=e}function Ne(){if(Te){var e=Te,t=Pe;if(Pe=Te=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Me(e,t){return e(t)}function Fe(e,t,n,r,a){return e(t,n,r,a)}function je(){}var Ie=Me,Le=!1,De=!1;function qe(){null===Te&&null===Pe||(je(),Ne())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=oa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Be=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){Be=!1}function We(e,t,n,r,a,o,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var He=!1,Ve=null,Ge=!1,Xe=null,Ye={onError:function(e){He=!0,Ve=e}};function Ke(e,t,n,r,a,o,i,s,l){He=!1,Ve=null,We.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Qe(e)!==e)throw Error(i(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Je(a),e;if(o===r)return Je(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,at,ot=!1,it=[],st=null,lt=null,ut=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,a,o),null!==t&&(null!==(t=ra(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=na(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ra(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function _t(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ra(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ut&&yt(ut)&&(ut=null),ct.forEach(bt),ft.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,_t)))}function kt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},At={},Et={};function Ct(e){if(At[e])return At[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return At[e]=n[t];return e}f&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Tt=Ct("animationend"),Pt=Ct("animationiteration"),Ot=Ct("animationstart"),Rt=Ct("transitionend"),Nt=new Map,Mt=new Map,Ft=["abort","abort",Tt,"animationEnd",Pt,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Mt.set(r,t),Nt.set(r,a),u(a,[r])}}(0,o.unstable_now)();var It=8;function Lt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Dt(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,a=It=15;else if(0!==(o=134217727&n)){var l=o&~i;0!==l?(r=Lt(l),a=It):0!==(s&=o)&&(r=Lt(s),a=It)}else 0!==(o=n&~i)?(r=Lt(o),a=It):0!==s&&(r=Lt(s),a=It);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&i)){if(Lt(t),a<=It)return t;It=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function qt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?zt(10,t):e;case 10:return 0===(e=Bt(192&~t))?zt(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Bt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Gt|0)|0},Vt=Math.log,Gt=Math.LN2;var Xt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Le||je();var a=Jt,o=Le;Le=!0;try{Fe(a,e,t,n,r)}finally{(Le=o)||qe()}}function $t(e,t,n,r){Yt(Xt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var a;if(Kt)if((a=0===(4&t))&&0<it.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var o=Zt(e,t,n,r);if(null===o)a&&vt(e,r);else{if(a){if(-1<pt.indexOf(e))return e=ht(o,e,t,n,r),void it.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return st=mt(st,e,t,n,r,a),!0;case"dragenter":return lt=mt(lt,e,t,n,r,a),!0;case"mouseover":return ut=mt(ut,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ft.set(o,mt(ft.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;vt(e,r)}jr(e,t,r,null,n)}}}function Zt(e,t,n,r){var a=Ee(r);if(null!==(a=na(a))){var o=Qe(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=$e(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return jr(e,t,r,a,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,a="value"in en?en.value:en.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return nn=a.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?on:sn,this.isPropagationStopped=sn,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(dn),hn=a({},dn,{view:0,detail:0}),vn=ln(hn),mn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(un=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=un=0,fn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=ln(mn),yn=ln(a({},mn,{dataTransfer:0})),bn=ln(a({},hn,{relatedTarget:0})),_n=ln(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=ln(wn),Sn=ln(a({},dn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Tn(){return Cn}var Pn=a({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=ln(Pn),Rn=ln(a({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=ln(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Mn=ln(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=a({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=ln(Fn),In=[9,13,27,32],Ln=f&&"CompositionEvent"in window,Dn=null;f&&"documentMode"in document&&(Dn=document.documentMode);var qn=f&&"TextEvent"in window&&!Dn,zn=f&&(!Ln||Dn&&8<Dn&&11>=Dn),Bn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Yn(e,t,n,r){Re(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Qn=null;function $n(e){Pr(e,0)}function Jn(e){if($(aa(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ar(){Kn&&(Kn.detachEvent("onpropertychange",or),Qn=Kn=null)}function or(e){if("value"===e.propertyName&&Jn(Qn)){var t=[];if(Yn(t,Qn,e,Ee(e)),e=$n,Le)e(t);else{Le=!0;try{Me(e,t)}finally{Le=!1,qe()}}}}function ir(e,t,n){"focusin"===e?(ar(),Qn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ar()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Qn)}function lr(e,t){if("click"===e)return Jn(t)}function ur(e,t){if("input"===e||"change"===e)return Jn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,br=null,_r=null,wr=null,kr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==br||br!==J(r)||("selectionStart"in(r=br)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Lr(_r,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Ft,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ar=0;Ar<xr.length;Ar++)Mt.set(xr[Ar],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,l,u){if(Ke.apply(this,arguments),He){if(!He)throw Error(i(198));var c=Ve;He=!1,Ve=null,Ge||(Ge=!0,Xe=c)}}(r,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Tr(a,s,u),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Tr(a,s,u),o=l}}}if(Ge)throw e=Xe,Ge=!1,Xe=null,e}function Or(e,t){var n=ia(t),r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Rr]||(e[Rr]=!0,s.forEach((function(t){Cr.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=ia(o),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),Fr(o,e,a,t),i.add(s))}function Fr(e,t,n,r){var a=Mt.get(t);switch(void 0===a?2:a){case 0:a=Qt;break;case 1:a=$t;break;default:a=Jt}n=a.bind(null,t,n,e),a=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=na(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(De)return e(t,n);De=!0;try{Ie(e,t,n)}finally{De=!1,qe()}}((function(){var r=o,a=Ee(n),i=[];e:{var s=Nt.get(e);if(void 0!==s){var l=pn,u=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=bn;break;case"focusout":u="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Tt:case Pt:case Ot:l=_n;break;case Rt:l=Mn;break;case"scroll":l=vn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=ze(h,d))&&c.push(Ir(h,v,p)))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),i.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!na(u)&&!u[ea])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?na(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:aa(l),p=null==u?s:aa(u),(s=new c(v,h+"leave",l,n,a)).target=f,s.relatedTarget=p,v=null,na(a)===r&&((c=new c(d,h+"enter",u,n,a)).target=p,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Dr(p))h++;for(p=0,v=d;v;v=Dr(v))p++;for(;0<h-p;)c=Dr(c),h--;for(;0<p-h;)d=Dr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Dr(c),d=Dr(d)}c=null}else c=null;null!==l&&qr(i,s,l,c,!1),null!==u&&null!==f&&qr(i,f,u,c,!0)}if("select"===(l=(s=r?aa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Xn(s))if(er)m=ur;else{m=sr;var g=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=lr);switch(m&&(m=m(e,r))?Yn(i,m,n,a):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ae(s,"number",s.value)),g=r?aa(r):window,e){case"focusin":(Xn(g)||"true"===g.contentEditable)&&(br=g,_r=r,wr=null);break;case"focusout":wr=_r=br=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,Sr(i,n,a);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(i,n,a)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=rn()):(tn="value"in(en=a)?en.value:en.textContent,Vn=!0)),0<(g=Lr(r,b)).length&&(b=new Sn(b,e,null,n,a),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=qn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Ln&&Wn(e,t)?(e=rn(),nn=tn=en=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(a=new Sn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=y))}Pr(i,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=ze(e,n))&&r.unshift(Ir(e,o,a)),null!=(o=ze(e,t))&&r.push(Ir(e,o,a))),e=e.return}return r}function Dr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=ze(n,o))&&i.unshift(Ir(n,l,s)):a||null!=(l=ze(n,o))&&i.push(Ir(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function zr(){}var Br=null,Ur=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"===typeof setTimeout?setTimeout:void 0,Gr="function"===typeof clearTimeout?clearTimeout:void 0;function Xr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var $r=Math.random().toString(36).slice(2),Jr="__reactFiber$"+$r,Zr="__reactProps$"+$r,ea="__reactContainer$"+$r,ta="__reactEvents$"+$r;function na(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ea]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Jr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ra(e){return!(e=e[Jr]||e[ea])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function aa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function oa(e){return e[Zr]||null}function ia(e){var t=e[ta];return void 0===t&&(t=e[ta]=new Set),t}var sa=[],la=-1;function ua(e){return{current:e}}function ca(e){0>la||(e.current=sa[la],sa[la]=null,la--)}function fa(e,t){la++,sa[la]=e.current,e.current=t}var da={},pa=ua(da),ha=ua(!1),va=da;function ma(e,t){var n=e.type.contextTypes;if(!n)return da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ga(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ya(){ca(ha),ca(pa)}function ba(e,t,n){if(pa.current!==da)throw Error(i(168));fa(pa,t),fa(ha,n)}function _a(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,X(t)||"Unknown",o));return a({},n,r)}function wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,va=pa.current,fa(pa,e),fa(ha,ha.current),!0}function ka(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=_a(e,t,va),r.__reactInternalMemoizedMergedChildContext=e,ca(ha),ca(pa),fa(pa,e)):ca(ha),fa(ha,n)}var Sa=null,xa=null,Aa=o.unstable_runWithPriority,Ea=o.unstable_scheduleCallback,Ca=o.unstable_cancelCallback,Ta=o.unstable_shouldYield,Pa=o.unstable_requestPaint,Oa=o.unstable_now,Ra=o.unstable_getCurrentPriorityLevel,Na=o.unstable_ImmediatePriority,Ma=o.unstable_UserBlockingPriority,Fa=o.unstable_NormalPriority,ja=o.unstable_LowPriority,Ia=o.unstable_IdlePriority,La={},Da=void 0!==Pa?Pa:function(){},qa=null,za=null,Ba=!1,Ua=Oa(),Wa=1e4>Ua?Oa:function(){return Oa()-Ua};function Ha(){switch(Ra()){case Na:return 99;case Ma:return 98;case Fa:return 97;case ja:return 96;case Ia:return 95;default:throw Error(i(332))}}function Va(e){switch(e){case 99:return Na;case 98:return Ma;case 97:return Fa;case 96:return ja;case 95:return Ia;default:throw Error(i(332))}}function Ga(e,t){return e=Va(e),Aa(e,t)}function Xa(e,t,n){return e=Va(e),Ea(e,t,n)}function Ya(){if(null!==za){var e=za;za=null,Ca(e)}Ka()}function Ka(){if(!Ba&&null!==qa){Ba=!0;var e=0;try{var t=qa;Ga(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),qa=null}catch(n){throw null!==qa&&(qa=qa.slice(e+1)),Ea(Na,Ya),n}finally{Ba=!1}}}var Qa=w.ReactCurrentBatchConfig;function $a(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ja=ua(null),Za=null,eo=null,to=null;function no(){to=eo=Za=null}function ro(e){var t=Ja.current;ca(Ja),e.type._context._currentValue=t}function ao(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function oo(e,t){Za=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Li=!0),e.firstContext=null)}function io(e,t){if(to!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Za)throw Error(i(308));eo=t,Za.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var so=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;so=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?i=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==i){for(d=o.baseState,s=0,f=c=u=null;;){l=i.lane;var p=i.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,v=i;switch(l=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=v.payload)?h.call(p,d,l):h)||void 0===l)break e;d=a({},d,l);break e;case 2:so=!0}}null!==i.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(i=i.next)){if(null===(l=o.shared.pending))break;i=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Bs|=s,e.lanes=s,e.memoizedState=d}}function vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(i(191,a));a.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dl(),a=pl(e),o=co(r,a);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),hl(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dl(),a=pl(e),o=co(r,a);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),hl(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),r=pl(e),a=co(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),fo(e,a),hl(e,r,n)}};function bo(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(a,o))}function _o(e,t,n){var r=!1,a=da,o=t.contextType;return"object"===typeof o&&null!==o?o=io(o):(a=ga(t)?va:pa.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?ma(e,a):da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function ko(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=mo,lo(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=io(o):(o=ga(t)?va:pa.current,a.context=ma(e,o)),ho(e,n,a,r),a.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&yo.enqueueReplaceState(a,a.state,null),ho(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ao(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Eo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Gl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ql(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Xl(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$l(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Xl(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case S:return(t=$l(t,e.mode,n)).return=e,t}if(So(t)||U(t))return(t=Yl(t,e.mode,n,null)).return=e,t;Ao(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===x?f(e,t,n.props.children,r,a):u(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(So(n)||U(n))return null!==a?null:f(e,t,n,r,null);Ao(e,n)}return null}function h(e,t,n,r,a){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,a,r.key):u(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(So(r)||U(r))return f(t,e=e.get(n)||null,r,a,null);Ao(t,r)}return null}function v(a,i,s,l){for(var u=null,c=null,f=i,v=i=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=p(a,f,s[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(a,f),i=o(g,i,v),null===c?u=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(a,f),u;if(null===f){for(;v<s.length;v++)null!==(f=d(a,s[v],l))&&(i=o(f,i,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(a,f);v<s.length;v++)null!==(m=h(f,a,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=o(m,i,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(a,e)})),u}function m(a,s,l,u){var c=U(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,v=s,m=s=0,g=null,y=l.next();null!==v&&!y.done;m++,y=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=p(a,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(a,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(a,v),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=d(a,y.value,u))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(a,v);!y.done;m++,y=l.next())null!==(y=h(v,a,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(a,e)})),c}return function(e,r,o,l){var u="object"===typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===x){n(e,u.sibling),(r=a(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=a(u,o.props)).ref=xo(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Yl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Xl(o.type,o.key,o.props,null,e.mode,l)).ref=xo(e,r,o),l.return=e,e=l)}return s(e);case S:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$l(o,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Ql(o,e.mode,l)).return=e,e=r),s(e);if(So(o))return v(e,r,o,l);if(U(o))return m(e,r,o,l);if(c&&Ao(e,o),"undefined"===typeof o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,X(e.type)||"Component"))}return n(e,r)}}var Co=Eo(!0),To=Eo(!1),Po={},Oo=ua(Po),Ro=ua(Po),No=ua(Po);function Mo(e){if(e===Po)throw Error(i(174));return e}function Fo(e,t){switch(fa(No,t),fa(Ro,e),fa(Oo,Po),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ca(Oo),fa(Oo,t)}function jo(){ca(Oo),ca(Ro),ca(No)}function Io(e){Mo(No.current);var t=Mo(Oo.current),n=he(t,e.type);t!==n&&(fa(Ro,e),fa(Oo,n))}function Lo(e){Ro.current===e&&(ca(Oo),ca(Ro))}var Do=ua(0);function qo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zo=null,Bo=null,Uo=!1;function Wo(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Vo(e){if(Uo){var t=Bo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Yr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Uo=!1,void(zo=e);Wo(zo,n)}zo=e,Bo=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,Uo=!1,zo=e}}function Go(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zo=e}function Xo(e){if(e!==zo)return!1;if(!Uo)return Go(e),Uo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Bo;t;)Wo(e,t),t=Yr(t.nextSibling);if(Go(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bo=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=zo?Yr(e.stateNode.nextSibling):null;return!0}function Yo(){Bo=zo=null,Uo=!1}var Ko=[];function Qo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var $o=w.ReactCurrentDispatcher,Jo=w.ReactCurrentBatchConfig,Zo=0,ei=null,ti=null,ni=null,ri=!1,ai=!1;function oi(){throw Error(i(321))}function ii(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function si(e,t,n,r,a,o){if(Zo=o,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Mi:Fi,e=n(r,a),ai){o=0;do{if(ai=!1,!(25>o))throw Error(i(301));o+=1,ni=ti=null,t.updateQueue=null,$o.current=ji,e=n(r,a)}while(ai)}if($o.current=Ni,t=null!==ti&&null!==ti.next,Zo=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function ui(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function ci(e,t){return"function"===typeof t?t(e):t}function fi(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ti,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=s=o=null,u=a;do{var c=u.lane;if((Zo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=f,o=r):l=l.next=f,ei.lanes|=c,Bs|=c}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=s,cr(r,t.memoizedState)||(Li=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);cr(o,t.memoizedState)||(Li=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(i(350))}function hi(e,t,n,r){var a=Ms;if(null===a)throw Error(i(349));var o=t._getVersion,s=o(t._source),l=$o.current,u=l.useState((function(){return pi(a,t,n)})),c=u[1],f=u[0];u=ni;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var m=ei;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!cr(s,e)){e=n(t._source),cr(f,e)||(c(e),e=pl(m),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var l=31-Ht(i),u=1<<l;r[l]|=e,i&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(m);a.mutableReadLanes|=r&a.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(h,n)&&cr(v,t)&&cr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:f}).dispatch=c=Ri.bind(null,ei,e),u.queue=e,u.baseQueue=null,f=pi(a,t,n),u.memoizedState=u.baseState=f),f}function vi(e,t,n){return hi(ui(),e,t,n)}function mi(e){var t=li();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Ri.bind(null,ei,e),[t.memoizedState,e]}function gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ei.updateQueue)?(t={lastEffect:null},ei.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(e){return e={current:e},li().memoizedState=e}function bi(){return ui().memoizedState}function _i(e,t,n,r){var a=li();ei.flags|=e,a.memoizedState=gi(1|t,n,void 0,void 0===r?null:r)}function wi(e,t,n,r){var a=ui();r=void 0===r?null:r;var o=void 0;if(null!==ti){var i=ti.memoizedState;if(o=i.destroy,null!==r&&ii(r,i.deps))return void gi(t,n,o,r)}ei.flags|=e,a.memoizedState=gi(1|t,n,o,r)}function ki(e,t){return _i(516,4,e,t)}function Si(e,t){return wi(516,4,e,t)}function xi(e,t){return wi(4,2,e,t)}function Ai(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ei(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wi(4,2,Ai.bind(null,t,e),n)}function Ci(){}function Ti(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oi(e,t){var n=Ha();Ga(98>n?98:n,(function(){e(!0)})),Ga(97<n?97:n,(function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}}))}function Ri(e,t,n){var r=dl(),a=pl(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===ei||null!==i&&i===ei)ai=ri=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.eagerReducer=i,o.eagerState=l,cr(l,s))return}catch(u){}hl(e,a,r)}}var Ni={readContext:io,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useOpaqueIdentifier:oi,unstable_isNewReconciler:!1},Mi={readContext:io,useCallback:function(e,t){return li().memoizedState=[e,void 0===t?null:t],e},useContext:io,useEffect:ki,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_i(4,2,Ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=li();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ri.bind(null,ei,e),[r.memoizedState,e]},useRef:yi,useState:mi,useDebugValue:Ci,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return ki((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return yi(e=Oi.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=li();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hi(r,e,t,n)},useOpaqueIdentifier:function(){if(Uo){var e=!1,t=function(e){return{$$typeof:j,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0===(2&ei.mode)&&(ei.flags|=516,gi(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return mi(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Fi={readContext:io,useCallback:Ti,useContext:io,useEffect:Si,useImperativeHandle:Ei,useLayoutEffect:xi,useMemo:Pi,useReducer:fi,useRef:bi,useState:function(){return fi(ci)},useDebugValue:Ci,useDeferredValue:function(e){var t=fi(ci),n=t[0],r=t[1];return Si((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=fi(ci)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return fi(ci)[0]},unstable_isNewReconciler:!1},ji={readContext:io,useCallback:Ti,useContext:io,useEffect:Si,useImperativeHandle:Ei,useLayoutEffect:xi,useMemo:Pi,useReducer:di,useRef:bi,useState:function(){return di(ci)},useDebugValue:Ci,useDeferredValue:function(e){var t=di(ci),n=t[0],r=t[1];return Si((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=di(ci)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return di(ci)[0]},unstable_isNewReconciler:!1},Ii=w.ReactCurrentOwner,Li=!1;function Di(e,t,n,r){t.child=null===e?To(t,null,n,r):Co(t,e.child,n,r)}function qi(e,t,n,r,a){n=n.render;var o=t.ref;return oo(t,a),r=si(e,t,n,r,o,a),null===e||Li?(t.flags|=1,Di(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function zi(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!==typeof i||Vl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bi(e,t,i,r,a,o))}return i=e.child,0===(a&o)&&(a=i.memoizedProps,(n=null!==(n=n.compare)?n:dr)(a,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Gl(i,r)).ref=t.ref,e.return=t,t.child=e)}function Bi(e,t,n,r,a,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Li=!1,0===(o&a))return t.lanes=e.lanes,os(e,t,o);0!==(16384&e.flags)&&(Li=!0)}return Hi(e,t,n,r,o)}function Ui(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},kl(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return Di(e,t,a,n),t.child}function Wi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,a){var o=ga(n)?va:pa.current;return o=ma(t,o),oo(t,a),n=si(e,t,n,r,o,a),null===e||Li?(t.flags|=1,Di(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function Vi(e,t,n,r,a){if(ga(n)){var o=!0;wa(t)}else o=!1;if(oo(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),_o(t,n,r),ko(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;"object"===typeof u&&null!==u?u=io(u):u=ma(t,u=ga(n)?va:pa.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==u)&&wo(t,i,r,u),so=!1;var d=t.memoizedState;i.state=d,ho(t,r,i,a),l=t.memoizedState,s!==r||d!==l||ha.current||so?("function"===typeof c&&(go(t,n,c,r),l=t.memoizedState),(s=so||bo(t,n,s,r,d,l,u))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4)):("function"===typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,uo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:$a(t.type,s),i.props=u,f=t.pendingProps,d=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=io(l):l=ma(t,l=ga(n)?va:pa.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==f||d!==l)&&wo(t,i,r,l),so=!1,d=t.memoizedState,i.state=d,ho(t,r,i,a);var h=t.memoizedState;s!==f||d!==h||ha.current||so?("function"===typeof p&&(go(t,n,p,r),h=t.memoizedState),(u=so||bo(t,n,u,r,d,h,l))?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Gi(e,t,n,r,o,a)}function Gi(e,t,n,r,a,o){Wi(e,t);var i=0!==(64&t.flags);if(!r&&!i)return a&&ka(t,n,!1),os(e,t,o);r=t.stateNode,Ii.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Di(e,t,s,o),t.memoizedState=r.state,a&&ka(t,n,!0),t.child}function Xi(e){var t=e.stateNode;t.pendingContext?ba(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ba(0,t.context,!1),Fo(e,t.containerInfo)}var Yi,Ki,Qi,$i={dehydrated:null,retryLane:0};function Ji(e,t,n){var r,a=t.pendingProps,o=Do.current,i=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),fa(Do,1&o),null===e?(void 0!==a.fallback&&Vo(t),e=a.children,o=a.fallback,i?(e=Zi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$i,e):"number"===typeof a.unstable_expectedLoadTime?(e=Zi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$i,t.lanes=33554432,e):((n=Kl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=ts(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=$i,a):(n=es(e,t,a.children,n),t.memoizedState=null,n))}function Zi(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&a)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Kl(t,a,0,null),n=Yl(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var a=e.child;return e=a.sibling,n=Gl(a,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Gl(i,s),null!==e?r=Gl(e,r):(r=Yl(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ao(e.return,t)}function rs(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function as(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Di(e,t,r.children,n),0!==(2&(r=Do.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fa(Do,r),0===(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===qo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),rs(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===qo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!Uo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ga(t.type)&&ya(),null;case 3:return jo(),ca(ha),ca(pa),Qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Xo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Lo(t);var o=Mo(No.current);if(n=t.type,null!==e&&null!=t.stateNode)Ki(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Mo(Oo.current),Xo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Zr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Or(Er[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":le(r,s),Or("invalid",r)}for(var u in xe(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=zr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Yi(e,t),t.stateNode=e,u=Ae(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<Er.length;o++)Or(Er[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Or("invalid",e);break;default:o=r}xe(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?ke(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Or("scroll",e):null!=f&&_(e,s,f,u))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ie(e,!!r.multiple,s,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=zr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qi(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=Mo(No.current),Mo(Oo.current),Xo(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ca(Do),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Xo(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Do.current)?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Ms||0===(134217727&Bs)&&0===(134217727&Us)||yl(Ms,js))),(r||n)&&(t.flags|=4),null);case 4:return jo(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ca(Do),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(u=r.rendering))if(s)is(r,!1);else{if(0!==Ds||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=qo(e))){for(t.flags|=64,is(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fa(Do,1&Do.current|2),t.child}e=e.sibling}null!==r.tail&&Wa()>Gs&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=qo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Uo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wa()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wa(),n.sibling=null,t=Do.current,fa(Do,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function ls(e){switch(e.tag){case 1:ga(e.type)&&ya();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(jo(),ca(ha),ca(pa),Qo(),0!==(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Lo(e),null;case 13:return ca(Do),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ca(Do),null;case 4:return jo(),null;case 10:return ro(e),null;case 23:case 24:return Sl(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a}}function cs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Yi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ki=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mo(Oo.current);var i,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=zr)}for(f in xe(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||u===c||(s=[])):"object"===typeof c&&null!==c&&c.$$typeof===j?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Qi=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"===typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,$s=r),cs(0,t)},n}function ps(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return cs(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"===typeof WeakSet?WeakSet:Set;function vs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){zl(e,n)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$a(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Xr(t.stateNode.containerInfo))}throw Error(i(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!==(4&(a=a.tag))&&0!==(1&a)&&(Ll(n,e),Il(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$a(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&vo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(i(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(xa&&"function"===typeof xa.onCommitFiberUnmount)try{xa.onCommitFiberUnmount(Sa,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!==(4&r))Ll(t,n);else{r=t;try{a()}catch(o){zl(r,o)}}n=n.next}while(n!==e)}break;case 1:if(vs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){zl(t,o)}break;case 5:vs(t);break;case 4:As(e,t)}}function _s(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):xs(e,n,t)}function Ss(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=zr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function As(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,u=l;;)if(bs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(bs(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ae(e,a),t=Ae(e,r),a=0;a<o.length;a+=2){var s=o[a],l=o[a+1];"style"===s?ke(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ye(n,l):_(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=Wa(),ys(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(i(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ps=Math.ceil,Os=w.ReactCurrentDispatcher,Rs=w.ReactCurrentOwner,Ns=0,Ms=null,Fs=null,js=0,Is=0,Ls=ua(0),Ds=0,qs=null,zs=0,Bs=0,Us=0,Ws=0,Hs=null,Vs=0,Gs=1/0;function Xs(){Gs=Wa()+500}var Ys,Ks=null,Qs=!1,$s=null,Js=null,Zs=!1,el=null,tl=90,nl=[],rl=[],al=null,ol=0,il=null,sl=-1,ll=0,ul=0,cl=null,fl=!1;function dl(){return 0!==(48&Ns)?Wa():-1!==sl?sl:sl=Wa()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ha()?1:2;if(0===ll&&(ll=zs),0!==Qa.transition){0!==ul&&(ul=null!==Hs?Hs.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ha(),0!==(4&Ns)&&98===e?e=zt(12,ll):e=zt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<ol)throw ol=0,il=null,Error(i(185));if(null===(e=vl(e,t)))return null;Wt(e,t,n),e===Ms&&(Us|=t,4===Ds&&yl(e,js));var r=Ha();1===t?0!==(8&Ns)&&0===(48&Ns)?bl(e):(ml(e,n),0===Ns&&(Xs(),Ya())):(0===(4&Ns)||98!==r&&99!==r||(null===al?al=new Set([e]):al.add(e)),ml(e,n)),Hs=e}function vl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ml(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),u=1<<l,c=o[l];if(-1===c){if(0===(u&r)||0!==(u&a)){c=t,Lt(u);var f=It;o[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Dt(e,e===Ms?js:0),t=It,0===r)null!==n&&(n!==La&&Ca(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==La&&Ca(n)}15===t?(n=bl.bind(null,e),null===qa?(qa=[n],za=Ea(Na,Ka)):qa.push(n),n=La):14===t?n=Xa(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Xa(n,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(sl=-1,ul=ll=0,0!==(48&Ns))throw Error(i(327));var t=e.callbackNode;if(jl()&&e.callbackNode!==t)return null;var n=Dt(e,e===Ms?js:0);if(0===n)return null;var r=n,a=Ns;Ns|=16;var o=El();for(Ms===e&&js===r||(Xs(),xl(e,r));;)try{Pl();break}catch(l){Al(e,l)}if(no(),Os.current=o,Ns=a,null!==Fs?r=0:(Ms=null,js=0,r=Ds),0!==(zs&Us))xl(e,0);else if(0!==r){if(2===r&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(n=qt(e))&&(r=Cl(e,n))),1===r)throw t=qs,xl(e,0),yl(e,n),ml(e,Wa()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Nl(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Vs+500-Wa())){if(0!==Dt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Vr(Nl.bind(null,e),r);break}Nl(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>a&&(a=s),n&=~o}if(n=a,10<(n=(120>(n=Wa()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=Vr(Nl.bind(null,e),n);break}Nl(e);break;default:throw Error(i(329))}}return ml(e,Wa()),e.callbackNode===t?gl.bind(null,e):null}function yl(e,t){for(t&=~Ws,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Ns))throw Error(i(327));if(jl(),e===Ms&&0!==(e.expiredLanes&js)){var t=js,n=Cl(e,t);0!==(zs&Us)&&(n=Cl(e,t=Dt(e,t)))}else n=Cl(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(t=qt(e))&&(n=Cl(e,t))),1===n)throw n=qs,xl(e,0),yl(e,t),ml(e,Wa()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nl(e),ml(e,Wa()),null}function _l(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Xs(),Ya())}}function wl(e,t){var n=Ns;Ns&=-2,Ns|=8;try{return e(t)}finally{0===(Ns=n)&&(Xs(),Ya())}}function kl(e,t){fa(Ls,Is),Is|=t,zs|=t}function Sl(){Is=Ls.current,ca(Ls)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Gr(n)),null!==Fs)for(n=Fs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ya();break;case 3:jo(),ca(ha),ca(pa),Qo();break;case 5:Lo(r);break;case 4:jo();break;case 13:case 19:ca(Do);break;case 10:ro(r);break;case 23:case 24:Sl()}n=n.return}Ms=e,Fs=Gl(e.current,null),js=Is=zs=t,Ds=0,qs=null,Ws=Us=Bs=0}function Al(e,t){for(;;){var n=Fs;try{if(no(),$o.current=Ni,ri){for(var r=ei.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ri=!1}if(Zo=0,ni=ti=ei=null,ai=!1,Rs.current=null,null===n||null===n.return){Ds=1,qs=t,Fs=null;break}e:{var o=e,i=n.return,s=n,l=t;if(t=js,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var u=l;if(0===(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&Do.current),d=i;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var g=new Set;g.add(u),d.updateQueue=g}else m.add(u);if(0===(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=co(-1,1);y.tag=2,fo(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fs,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var _=Bl.bind(null,o,u,s);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ds&&(Ds=2),l=us(l,s),d=i;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,po(d,ds(0,o,t));break e;case 1:o=l;var w=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Js||!Js.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,po(d,ps(d,o,t));break e}}d=d.return}while(null!==d)}Rl(n)}catch(S){t=S,Fs===n&&null!==n&&(Fs=n=n.return);continue}break}}function El(){var e=Os.current;return Os.current=Ni,null===e?Ni:e}function Cl(e,t){var n=Ns;Ns|=16;var r=El();for(Ms===e&&js===t||xl(e,t);;)try{Tl();break}catch(a){Al(e,a)}if(no(),Ns=n,Os.current=r,null!==Fs)throw Error(i(261));return Ms=null,js=0,Ds}function Tl(){for(;null!==Fs;)Ol(Fs)}function Pl(){for(;null!==Fs&&!Ta();)Ol(Fs)}function Ol(e){var t=Ys(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?Rl(e):Fs=t,Rs.current=null}function Rl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Is)))return void(Fs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Is)||0===(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Fs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Fs=t);Fs=t=e}while(null!==t);0===Ds&&(Ds=5)}function Nl(e){var t=Ha();return Ga(99,Ml.bind(null,e,t)),null}function Ml(e,t){do{jl()}while(null!==el);if(0!==(48&Ns))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ht(o),c=1<<u;a[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==al&&0===(24&r)&&al.has(e)&&al.delete(e),e===Ms&&(Fs=Ms=null,js=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ns,Ns|=32,Rs.current=null,Br=Kt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(E){l=null;break e}var f=0,d=-1,p=-1,h=0,v=0,m=s,g=null;t:for(;;){for(var y;m!==l||0!==o&&3!==m.nodeType||(d=f+o),m!==u||0!==c&&3!==m.nodeType||(p=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)g=m,m=y;for(;;){if(m===s)break t;if(g===l&&++h===o&&(d=f),g===u&&++v===c&&(p=f),null!==(y=m.nextSibling))break;g=(m=g).parentNode}m=y}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:s,selectionRange:l},Kt=!1,cl=null,fl=!1,Ks=r;do{try{Fl()}catch(E){if(null===Ks)throw Error(i(330));zl(Ks,E),Ks=Ks.nextEffect}}while(null!==Ks);cl=null,Ks=r;do{try{for(s=e;null!==Ks;){var b=Ks.flags;if(16&b&&ye(Ks.stateNode,""),128&b){var _=Ks.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:ks(Ks),Ks.flags&=-3;break;case 6:ks(Ks),Ks.flags&=-3,Es(Ks.alternate,Ks);break;case 1024:Ks.flags&=-1025;break;case 1028:Ks.flags&=-1025,Es(Ks.alternate,Ks);break;case 4:Es(Ks.alternate,Ks);break;case 8:As(s,l=Ks);var k=l.alternate;_s(l),null!==k&&_s(k)}Ks=Ks.nextEffect}}catch(E){if(null===Ks)throw Error(i(330));zl(Ks,E),Ks=Ks.nextEffect}}while(null!==Ks);if(w=Ur,_=mr(),b=w.focusedElem,s=w.selectionRange,_!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(_=s.start,void 0===(w=s.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=hr(b,k),o=hr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kt=!!Br,Ur=Br=null,e.current=n,Ks=r;do{try{for(b=e;null!==Ks;){var S=Ks.flags;if(36&S&&gs(b,Ks.alternate,Ks),128&S){_=void 0;var x=Ks.ref;if(null!==x){var A=Ks.stateNode;Ks.tag,_=A,"function"===typeof x?x(_):x.current=_}}Ks=Ks.nextEffect}}catch(E){if(null===Ks)throw Error(i(330));zl(Ks,E),Ks=Ks.nextEffect}}while(null!==Ks);Ks=null,Da(),Ns=a}else e.current=n;if(Zs)Zs=!1,el=e,tl=t;else for(Ks=r;null!==Ks;)t=Ks.nextEffect,Ks.nextEffect=null,8&Ks.flags&&((S=Ks).sibling=null,S.stateNode=null),Ks=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===il?ol++:(ol=0,il=e):ol=0,n=n.stateNode,xa&&"function"===typeof xa.onCommitFiberRoot)try{xa.onCommitFiberRoot(Sa,n,void 0,64===(64&n.current.flags))}catch(E){}if(ml(e,Wa()),Qs)throw Qs=!1,e=$s,$s=null,e;return 0!==(8&Ns)||Ya(),null}function Fl(){for(;null!==Ks;){var e=Ks.alternate;fl||null===cl||(0!==(8&Ks.flags)?et(Ks,cl)&&(fl=!0):13===Ks.tag&&Ts(e,Ks)&&et(Ks,cl)&&(fl=!0));var t=Ks.flags;0!==(256&t)&&ms(e,Ks),0===(512&t)||Zs||(Zs=!0,Xa(97,(function(){return jl(),null}))),Ks=Ks.nextEffect}}function jl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Ga(e,Dl)}return!1}function Il(e,t){nl.push(t,e),Zs||(Zs=!0,Xa(97,(function(){return jl(),null})))}function Ll(e,t){rl.push(t,e),Zs||(Zs=!0,Xa(97,(function(){return jl(),null})))}function Dl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Ns))throw Error(i(331));var t=Ns;Ns|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"===typeof s)try{s()}catch(u){if(null===o)throw Error(i(330));zl(o,u)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(u){if(null===o)throw Error(i(330));zl(o,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ns=t,Ya(),!0}function ql(e,t,n){fo(e,t=ds(0,t=us(n,t),1)),t=dl(),null!==(e=vl(e,1))&&(Wt(e,1,t),ml(e,t))}function zl(e,t){if(3===e.tag)ql(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ql(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var a=ps(n,e=us(t,e),1);if(fo(n,a),a=dl(),null!==(n=vl(n,1)))Wt(n,1,a),ml(n,a);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(js&n)===n&&(4===Ds||3===Ds&&(62914560&js)===js&&500>Wa()-Vs?xl(e,0):Ws|=n),ml(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ha()?1:2:(0===ll&&(ll=zs),0===(t=Bt(62914560&~ll))&&(t=4194304))),n=dl(),null!==(e=vl(e,t))&&(Wt(e,t,n),ml(e,n))}function Wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new Wl(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,a,o){var s=2;if(r=e,"function"===typeof e)Vl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return Yl(n.children,a,o,t);case I:s=8,a|=16;break;case A:s=8,a|=1;break;case E:return(e=Hl(12,n,t,8|a)).elementType=E,e.type=E,e.lanes=o,e;case O:return(e=Hl(13,n,t,a)).type=O,e.elementType=O,e.lanes=o,e;case R:return(e=Hl(19,n,t,a)).elementType=R,e.lanes=o,e;case L:return Kl(n,a,o,t);case D:return(e=Hl(24,n,t,a)).elementType=D,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case P:s=11;break e;case N:s=14;break e;case M:s=16,r=null;break e;case F:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Yl(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Kl(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=L,e.lanes=n,e}function Ql(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function $l(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Zl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function eu(e,t,n,r){var a=t.current,o=dl(),s=pl(a);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ga(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var u=n.type;if(ga(u)){n=_a(n,u,l);break e}}n=l}else n=da;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(a,t),hl(a,s,o),s}function tu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ru(e,t){nu(e,t),(e=e.alternate)&&nu(e,t)}function au(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,lo(t),e[ea]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function ou(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function iu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"===typeof a){var s=a;a=function(){var e=tu(i);s.call(e)}}eu(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new au(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"===typeof a){var l=a;a=function(){var e=tu(i);l.call(e)}}wl((function(){eu(t,i,e,a)}))}return tu(i)}function su(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ou(t))throw Error(i(200));return Zl(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ha.current)Li=!0;else{if(0===(n&r)){switch(Li=!1,t.tag){case 3:Xi(t),Yo();break;case 5:Io(t);break;case 1:ga(t.type)&&wa(t);break;case 4:Fo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;fa(Ja,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ji(e,t,n):(fa(Do,1&Do.current),null!==(t=os(e,t,n))?t.sibling:null);fa(Do,1&Do.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return as(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),fa(Do,Do.current),r)break;return null;case 23:case 24:return t.lanes=0,Ui(e,t,n)}return os(e,t,n)}Li=0!==(16384&e.flags)}else Li=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ma(t,pa.current),oo(t,n),a=si(null,t,r,e,a,n),t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ga(r)){var o=!0;wa(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,lo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&go(t,r,s,e),a.updater=yo,t.stateNode=a,a._reactInternals=t,ko(t,r,e,n),t=Gi(null,t,r,!0,o,n)}else t.tag=0,Di(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"===typeof e)return Vl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===N)return 14}return 2}(a),e=$a(a,e),o){case 0:t=Hi(null,t,a,e,n);break e;case 1:t=Vi(null,t,a,e,n);break e;case 11:t=qi(null,t,a,e,n);break e;case 14:t=zi(null,t,a,$a(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 1:return r=t.type,a=t.pendingProps,Vi(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 3:if(Xi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,uo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===a)Yo(),t=os(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&(Bo=Yr(t.stateNode.containerInfo.firstChild),zo=t,o=Uo=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Ko.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Di(e,t,r,n),Yo();t=t.child}return t;case 5:return Io(t),null===e&&Vo(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,Hr(r,a)?s=null:null!==o&&Hr(r,o)&&(t.flags|=16),Wi(e,t),Di(e,t,s,n),t.child;case 6:return null===e&&Vo(t),null;case 13:return Ji(e,t,n);case 4:return Fo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Di(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,qi(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 7:return Di(e,t,t.pendingProps,n),t.child;case 8:case 12:return Di(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var l=t.type._context;if(fa(Ja,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=cr(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===a.children&&!ha.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===l.tag&&((c=co(-1,n&-n)).tag=2,fo(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ao(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Di(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(a=io(a,o.unstable_observedBits)),t.flags|=1,Di(e,t,r,n),t.child;case 14:return o=$a(a=t.type,t.pendingProps),zi(e,t,a,o=$a(a.type,o),r,n);case 15:return Bi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$a(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ga(r)?(e=!0,wa(t)):e=!1,oo(t,n),_o(t,r,a),ko(t,r,a,n),Gi(null,t,r,!0,e,n);case 19:return as(e,t,n);case 23:case 24:return Ui(e,t,n)}throw Error(i(156,t.tag))},au.prototype.render=function(e){eu(e,this._internalRoot,null,null)},au.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eu(null,e,null,(function(){t[ea]=null}))},tt=function(e){13===e.tag&&(hl(e,4,dl()),ru(e,4))},nt=function(e){13===e.tag&&(hl(e,67108864,dl()),ru(e,67108864))},rt=function(e){if(13===e.tag){var t=dl(),n=pl(e);hl(e,n,t),ru(e,n)}},at=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=oa(r);if(!a)throw Error(i(90));$(r),ne(r,a)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Me=_l,Fe=function(e,t,n,r,a){var o=Ns;Ns|=4;try{return Ga(98,e.bind(null,t,n,r,a))}finally{0===(Ns=o)&&(Xs(),Ya())}},je=function(){0===(49&Ns)&&(function(){if(null!==al){var e=al;al=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ml(e,Wa())}))}Ya()}(),jl())},Ie=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{0===(Ns=n)&&(Xs(),Ya())}};var lu={Events:[ra,aa,oa,Re,Ne,jl,{current:!1}]},uu={findFiberByHostInstance:na,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cu={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Sa=fu.inject(cu),xa=fu}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lu,t.createPortal=su,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ns;if(0!==(48&n))return e(t);Ns|=1;try{if(e)return Ga(99,e.bind(null,t))}finally{Ns=n,Ya()}},t.hydrate=function(e,t,n){if(!ou(t))throw Error(i(200));return iu(null,e,t,!0,n)},t.render=function(e,t,n){if(!ou(t))throw Error(i(200));return iu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ou(e))throw Error(i(40));return!!e._reactRootContainer&&(wl((function(){iu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ea]=null}))})),!0)},t.unstable_batchedUpdates=_l,t.unstable_createPortal=function(e,t){return su(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return iu(e,t,n,!1,r)},t.version="17.0.2"},164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},77:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],i[u[l]]))return!1;return!0}return e!==e&&i!==i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},374:function(e,t,n){"use strict";n(725);var r=n(791),a=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),t.Fragment=o("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:o,_owner:i.current}}t.jsx=u,t.jsxs=u},117:function(e,t,n){"use strict";var r=n(725),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:_.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var A=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case o:l=!0}}if(l)return i=i(l=e),e=""===r?"."+E(l,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(A,"$&/")+"/"),C(i,t,n,"",(function(e){return e}))):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(A,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+E(s=e[u],u);l+=C(s,t,n,c,i)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+E(s,u++),i);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function R(){var e=O.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var o=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(R){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new T(r||[]);return o._invoke=function(e,t,n){var r=f;return function(a,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw o;return O()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=A(i,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,i),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(R){return{type:"throw",arg:R}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function m(){}function g(){}function y(){}var b={};l(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(P([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=c(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var a=c(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=y,l(k,"constructor",y),l(y,"constructor",g),g.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(x.prototype),l(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new x(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(k),l(k,s,"Generator"),l(k,o,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},813:function(e,t){"use strict";var n,r,a,o;if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,f=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,w=_.port2;_.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?w.postMessage(null):(v=!1,m=null)}catch(n){throw w.postMessage(null),n}}else v=!1},n=function(e){m=e,v||(v=!0,w.postMessage(null))},r=function(e,n){g=d((function(){e(t.unstable_now())}),n)},a=function(){p(g),g=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<A(a,t)))break e;e[r]=t,e[n]=a,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>A(i,n))void 0!==l&&0>A(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>A(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],C=[],T=1,P=null,O=3,R=!1,N=!1,M=!1;function F(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,k(E,t)}t=S(C)}}function j(e){if(M=!1,F(e),!N)if(null!==S(E))N=!0,n(I);else{var t=S(C);null!==t&&r(j,t.startTime-e)}}function I(e,n){N=!1,M&&(M=!1,a()),R=!0;var o=O;try{for(F(n),P=S(E);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=P.callback;if("function"===typeof i){P.callback=null,O=P.priorityLevel;var s=i(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===S(E)&&x(E),F(n)}else x(E);P=S(E)}if(null!==P)var l=!0;else{var u=S(C);null!==u&&r(j,u.startTime-n),l=!1}return l}finally{P=null,O=o,R=!1}}var L=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||R||(N=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(E)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,k(C,e),null===S(E)&&e===S(C)&&(M?a():M=!0,r(j,i-s))):(e.sortIndex=l,k(E,e),N||R||(N=!0,n(I))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},391:function(e){"use strict";var t=function(){};e.exports=t},601:function(){},767:function(){},251:function(){},677:function(){},543:function(){},324:function(){}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return"static/js/"+e+".28cb0dcd.chunk.js"},__webpack_require__.miniCssF=function(e){},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="my-app:";__webpack_require__.l=function(n,r,a,o){if(e[n])e[n].push(r);else{var i,s;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==n||c.getAttribute("data-webpack")==t+a){i=c;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",t+a),i.src=n),e[n]=[r];var f=function(t,r){i.onerror=i.onload=null,clearTimeout(d);var a=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((function(e){return e(r)})),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}}}(),__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.p="/",function(){var e={179:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((function(n,a){r=e[t]=[n,a]}));n.push(r[2]=a);var o=__webpack_require__.p+__webpack_require__.u(t),i=new Error;__webpack_require__.l(o,(function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,r[1](i)}}),"chunk-"+t,t)}};var t=function(t,n){var r,a,o=n[0],i=n[1],s=n[2],l=0;if(o.some((function(t){return 0!==e[t]}))){for(r in i)__webpack_require__.o(i,r)&&(__webpack_require__.m[r]=i[r]);if(s)s(__webpack_require__)}for(t&&t(n);l<o.length;l++)a=o[l],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkmy_app=self.webpackChunkmy_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";var e=__webpack_require__(791),t=__webpack_require__(164);function n(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,l,"next",e)}function l(e){n(i,a,o,s,l,"throw",e)}s(void 0)}))}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){s=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=__webpack_require__(757),l=__webpack_require__.n(s);function u(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e){return g="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},g(e)}function y(e,t){if(t&&("object"===g(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=__webpack_require__(7),k=__webpack_require__.n(w),S=__webpack_require__(694),x=e.createContext(),A=e.createContext();function E(t){var n=t.children,r=e.useState(null),a=r[0],o=r[1],i=e.useRef(!1);e.useEffect((function(){return function(){i.current=!0}}),[]);var s=e.useCallback((function(e){i.current||o(e)}),[]);return e.createElement(x.Provider,{value:a},e.createElement(A.Provider,{value:s},n))}var C=function(e){return Array.isArray(e)?e[0]:e},T=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},P=function(e,t){if("function"===typeof e)return T(e,t);null!=e&&(e.current=t)},O=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},R="undefined"!==typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect;function N(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function M(e){return e instanceof N(e).Element||e instanceof Element}function F(e){return e instanceof N(e).HTMLElement||e instanceof HTMLElement}function j(e){return"undefined"!==typeof ShadowRoot&&(e instanceof N(e).ShadowRoot||e instanceof ShadowRoot)}var I=Math.max,L=Math.min,D=Math.round;function q(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(F(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=D(n.width)/i||1),o>0&&(a=D(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function z(e){var t=N(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function B(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){return((M(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return q(U(e)).left+z(e).scrollLeft}function H(e){return N(e).getComputedStyle(e)}function V(e){var t=H(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function G(e,t,n){void 0===n&&(n=!1);var r=F(t),a=F(t)&&function(e){var t=e.getBoundingClientRect(),n=D(t.width)/e.offsetWidth||1,r=D(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=U(t),i=q(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==B(t)||V(o))&&(s=function(e){return e!==N(e)&&F(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:z(e);var t}(t)),F(t)?((l=q(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=W(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function X(e){var t=q(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Y(e){return"html"===B(e)?e:e.assignedSlot||e.parentNode||(j(e)?e.host:null)||U(e)}function K(e){return["html","body","#document"].indexOf(B(e))>=0?e.ownerDocument.body:F(e)&&V(e)?e:K(Y(e))}function Q(e,t){var n;void 0===t&&(t=[]);var r=K(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=N(r),i=a?[o].concat(o.visualViewport||[],V(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(Q(Y(i)))}function $(e){return["table","td","th"].indexOf(B(e))>=0}function J(e){return F(e)&&"fixed"!==H(e).position?e.offsetParent:null}function Z(e){for(var t=N(e),n=J(e);n&&$(n)&&"static"===H(n).position;)n=J(n);return n&&("html"===B(n)||"body"===B(n)&&"static"===H(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&F(e)&&"fixed"===H(e).position)return null;for(var n=Y(e);F(n)&&["html","body"].indexOf(B(n))<0;){var r=H(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ee="top",te="bottom",ne="right",re="left",ae="auto",oe=[ee,te,ne,re],ie="start",se="end",le="viewport",ue="popper",ce=oe.reduce((function(e,t){return e.concat([t+"-"+ie,t+"-"+se])}),[]),fe=[].concat(oe,[ae]).reduce((function(e,t){return e.concat([t,t+"-"+ie,t+"-"+se])}),[]),de=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pe(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),r}function he(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ve={placement:"bottom",modifiers:[],strategy:"absolute"};function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function ge(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,o=void 0===a?ve:a;return function(e,t,n){void 0===n&&(n=o);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ve,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:a,setOptions:function(n){var s="function"===typeof n?n(a.options):n;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:M(e)?Q(e):e.contextElement?Q(e.contextElement):[],popper:Q(t)};var c=function(e){var t=pe(e);return de.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,a.options.modifiers)));return a.orderedModifiers=c.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:a,name:t,instance:l,options:r}),u=function(){};i.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=a.elements,t=e.reference,n=e.popper;if(me(t,n)){a.rects={reference:G(t,Z(n),"fixed"===a.options.strategy),popper:X(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,u=o.options,c=void 0===u?{}:u,f=o.name;"function"===typeof i&&(a=i({state:a,options:c,name:f,instance:l})||a)}else a.reset=!1,r=-1}}},update:he((function(){return new Promise((function(e){l.forceUpdate(),e(a)}))})),destroy:function(){u(),s=!0}};if(!me(e,t))return l;function u(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var ye={passive:!0};function be(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function we(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ke(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?be(a):null,i=a?_e(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case ee:t={x:s,y:n.y-r.height};break;case te:t={x:s,y:n.y+n.height};break;case ne:t={x:n.x+n.width,y:l};break;case re:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?we(o):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case ie:t[u]=t[u]-(n[c]/2-r[c]/2);break;case se:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xe(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=i.x,p=void 0===d?0:d,h=i.y,v=void 0===h?0:h,m="function"===typeof c?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=re,_=ee,w=window;if(u){var k=Z(n),S="clientHeight",x="clientWidth";if(k===N(n)&&"static"!==H(k=U(n)).position&&"absolute"===s&&(S="scrollHeight",x="scrollWidth"),k=k,a===ee||(a===re||a===ne)&&o===se)_=te,v-=(f&&w.visualViewport?w.visualViewport.height:k[S])-r.height,v*=l?1:-1;if(a===re||(a===ee||a===te)&&o===se)b=ne,p-=(f&&w.visualViewport?w.visualViewport.width:k[x])-r.width,p*=l?1:-1}var A,E=Object.assign({position:s},u&&Se),C=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:D(t*r)/r||0,y:D(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=C.x,v=C.y,l?Object.assign({},E,((A={})[_]=y?"0":"",A[b]=g?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",A)):Object.assign({},E,((t={})[_]=y?v+"px":"",t[b]=g?p+"px":"",t.transform="",t))}var Ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=void 0===a?[0,0]:a,i=fe.reduce((function(e,n){return e[n]=function(e,t,n){var r=be(e),a=[re,ee].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[re,ne].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e}),{}),s=i[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}},Ee={left:"right",right:"left",bottom:"top",top:"bottom"};function Ce(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ee[e]}))}var Te={start:"end",end:"start"};function Pe(e){return e.replace(/start|end/g,(function(e){return Te[e]}))}function Oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&j(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t){return t===le?Re(function(e){var t=N(e),n=U(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+W(e),y:s}}(e)):M(t)?function(e){var t=q(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Re(function(e){var t,n=U(e),r=z(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=I(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=I(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+W(e),l=-r.scrollTop;return"rtl"===H(a||n).direction&&(s+=I(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(U(e)))}function Me(e,t,n){var r="clippingParents"===t?function(e){var t=Q(Y(e)),n=["absolute","fixed"].indexOf(H(e).position)>=0&&F(e)?Z(e):e;return M(n)?t.filter((function(e){return M(e)&&Oe(e,n)&&"body"!==B(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce((function(t,n){var r=Ne(e,n);return t.top=I(r.top,t.top),t.right=L(r.right,t.right),t.bottom=L(r.bottom,t.bottom),t.left=I(r.left,t.left),t}),Ne(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function je(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ie(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,o=n.boundary,i=void 0===o?"clippingParents":o,s=n.rootBoundary,l=void 0===s?le:s,u=n.elementContext,c=void 0===u?ue:u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,v=Fe("number"!==typeof h?h:je(h,oe)),m=c===ue?"reference":ue,g=e.rects.popper,y=e.elements[d?m:c],b=Me(M(y)?y:y.contextElement||U(e.elements.popper),i,l),_=q(e.elements.reference),w=ke({reference:_,element:g,strategy:"absolute",placement:a}),k=Re(Object.assign({},g,w)),S=c===ue?k:_,x={top:b.top-S.top+v.top,bottom:S.bottom-b.bottom+v.bottom,left:b.left-S.left+v.left,right:S.right-b.right+v.right},A=e.modifiersData.offset;if(c===ue&&A){var E=A[a];Object.keys(x).forEach((function(e){var t=[ne,te].indexOf(e)>=0?1:-1,n=[ee,te].indexOf(e)>=0?"y":"x";x[e]+=E[n]*t}))}return x}function Le(e,t,n){return I(e,L(t,n))}var De={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,m=Ie(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=be(t.placement),y=_e(t.placement),b=!y,_=we(g),w="x"===_?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,A="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(k){if(o){var P,O="y"===_?ee:re,R="y"===_?te:ne,N="y"===_?"height":"width",M=k[_],F=M+m[O],j=M-m[R],D=p?-x[N]/2:0,q=y===ie?S[N]:x[N],z=y===ie?-x[N]:-S[N],B=t.elements.arrow,U=p&&B?X(B):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=W[O],V=W[R],G=Le(0,S[N],U[N]),Y=b?S[N]/2-D-G-H-E.mainAxis:q-G-H-E.mainAxis,K=b?-S[N]/2+D+G+V+E.mainAxis:z+G+V+E.mainAxis,Q=t.elements.arrow&&Z(t.elements.arrow),$=Q?"y"===_?Q.clientTop||0:Q.clientLeft||0:0,J=null!=(P=null==C?void 0:C[_])?P:0,ae=M+K-J,oe=Le(p?L(F,M+Y-J-$):F,M,p?I(j,ae):j);k[_]=oe,T[_]=oe-M}if(s){var se,le="x"===_?ee:re,ue="x"===_?te:ne,ce=k[w],fe="y"===w?"height":"width",de=ce+m[le],pe=ce-m[ue],he=-1!==[ee,re].indexOf(g),ve=null!=(se=null==C?void 0:C[w])?se:0,me=he?de:ce-S[fe]-x[fe]-ve+E.altAxis,ge=he?ce+S[fe]+x[fe]-ve-E.altAxis:pe,ye=p&&he?function(e,t,n){var r=Le(e,t,n);return r>n?n:r}(me,ce,ge):Le(p?me:de,ce,p?ge:pe);k[w]=ye,T[w]=ye-ce}t.modifiersData[r]=T}},requiresIfExists:["offset"]};var qe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=be(n.placement),l=we(s),u=[re,ne].indexOf(s)>=0?"height":"width";if(o&&i){var c=function(e,t){return Fe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:je(e,oe))}(a.padding,n),f=X(o),d="y"===l?ee:re,p="y"===l?te:ne,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],m=Z(o),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=h/2-v/2,b=c[d],_=g-f[u]-c[p],w=g/2-f[u]/2+y,k=Le(b,w,_),S=l;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ze(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Be(e){return[ee,ne,te,re].some((function(t){return e[t]>=0}))}var Ue=ge({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=N(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,ye)})),s&&l.addEventListener("resize",n.update,ye),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ye)})),s&&l.removeEventListener("resize",n.update,ye)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ke({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,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:be(t.placement),variation:_e(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xe(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xe(Object.assign({},u,{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 n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];F(a)&&B(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});F(r)&&B(r)&&(Object.assign(r.style,o),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Ae,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=be(m),y=l||(g===m||!h?[Ce(m)]:function(e){if(be(e)===ae)return[];var t=Ce(e);return[Pe(e),t,Pe(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(be(n)===ae?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?fe:l,c=_e(r),f=c?s?ce:ce.filter((function(e){return _e(e)===c})):oe,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Ie(e,{placement:n,boundary:a,rootBoundary:o,padding:i})[be(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,x=b[0],A=0;A<b.length;A++){var E=b[A],C=be(E),T=_e(E)===ie,P=[ee,te].indexOf(C)>=0,O=P?"width":"height",R=Ie(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),N=P?T?ne:re:T?te:ee;_[O]>w[O]&&(N=Ce(N));var M=Ce(N),F=[];if(o&&F.push(R[C]<=0),s&&F.push(R[N]<=0,R[M]<=0),F.every((function(e){return e}))){x=E,S=!1;break}k.set(E,F)}if(S)for(var j=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},I=h?3:1;I>0;I--){if("break"===j(I))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},De,qe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Ie(t,{elementContext:"reference"}),s=Ie(t,{altBoundary:!0}),l=ze(i,r),u=ze(s,a,o),c=Be(l),f=Be(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),We=__webpack_require__(77),He=__webpack_require__.n(We),Ve=[],Ge=function(){},Xe=function(){return Promise.resolve(null)},Ye=[];function Ke(t){var n=t.placement,r=void 0===n?"bottom":n,a=t.strategy,o=void 0===a?"absolute":a,i=t.modifiers,s=void 0===i?Ye:i,l=t.referenceElement,u=t.onFirstUpdate,c=t.innerRef,f=t.children,d=e.useContext(x),p=e.useState(null),h=p[0],v=p[1],m=e.useState(null),g=m[0],y=m[1];e.useEffect((function(){P(c,h)}),[c,h]);var b=e.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:u,modifiers:[].concat(s,[{name:"arrow",enabled:null!=g,options:{element:g}}])}}),[r,o,u,s,g]),_=function(t,n,r){void 0===r&&(r={});var a=e.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ve},i=e.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],l=i[1],u=e.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);l({styles:O(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:O(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=e.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return He()(a.current,e)?a.current||e:(a.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),f=e.useRef();return R((function(){f.current&&f.current.setOptions(c)}),[c]),R((function(){if(null!=t&&null!=n){var e=(r.createPopper||Ue)(t,n,c);return f.current=e,function(){e.destroy(),f.current=null}}}),[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(l||d,h,b),w=_.state,k=_.styles,S=_.forceUpdate,A=_.update,E=e.useMemo((function(){return{ref:v,style:k.popper,placement:w?w.placement:r,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:y},forceUpdate:S||Ge,update:A||Xe}}),[v,y,r,w,k,A,S]);return C(f)(E)}var Qe=__webpack_require__(391),$e=__webpack_require__.n(Qe);function Je(t){var n=t.children,r=t.innerRef,a=e.useContext(A),o=e.useCallback((function(e){P(r,e),T(a,e)}),[r,a]);return e.useEffect((function(){return function(){return P(r,null)}})),e.useEffect((function(){$e()(Boolean(a),"`Reference` should not be used outside of a `Manager` component.")}),[a]),C(n)({ref:o})}function Ze(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var et=!1,tt=e.createContext(null),nt="unmounted",rt="exited",at="entering",ot="entered",it="exiting",st=function(n){var r,a;function o(e,t){var r;r=n.call(this,e,t)||this;var a,o=t&&!t.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(a=rt,r.appearStatus=at):a=ot:a=e.unmountOnExit||e.mountOnEnter?nt:rt,r.state={status:a},r.nextCallback=null,r}a=n,(r=o).prototype=Object.create(a.prototype),r.prototype.constructor=r,h(r,a),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nt?{status:rt}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==at&&n!==ot&&(t=at):n!==at&&n!==ot||(t=it)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===at?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===rt&&this.setState({status:nt})},i.performEnter=function(e){var n=this,r=this.props.enter,a=this.context?this.context.isMounting:e,o=this.props.nodeRef?[a]:[t.findDOMNode(this),a],i=o[0],s=o[1],l=this.getTimeouts(),u=a?l.appear:l.enter;!e&&!r||et?this.safeSetState({status:ot},(function(){n.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:at},(function(){n.props.onEntering(i,s),n.onTransitionEnd(u,(function(){n.safeSetState({status:ot},(function(){n.props.onEntered(i,s)}))}))})))},i.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),a=this.props.nodeRef?void 0:t.findDOMNode(this);n&&!et?(this.props.onExit(a),this.safeSetState({status:it},(function(){e.props.onExiting(a),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:rt},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:rt},(function(){e.props.onExited(a)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(r&&!a){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===nt)return null;var n=this.props,r=n.children,a=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Ze(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(tt.Provider,{value:null},"function"===typeof r?r(t,a):e.cloneElement(e.Children.only(r),a))},o}(e.Component);function lt(){}st.contextType=tt,st.propTypes={},st.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lt,onEntering:lt,onEntered:lt,onExit:lt,onExiting:lt,onExited:lt},st.UNMOUNTED=nt,st.EXITED=rt,st.ENTERING=at,st.ENTERED=ot,st.EXITING=it;var ut,ct,ft=st;function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(){return vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(this,arguments)}function mt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function gt(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function yt(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function bt(){return document.body.clientWidth<window.innerWidth}function _t(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function wt(){var e=gt(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;bt()&&yt(n+e)}function kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function St(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function xt(e,t){for(var n,r=Array.isArray(t)?t:[t],a=r.length,o={};a>0;)o[n=r[a-=1]]=e[n];return o}var At={};function Et(e){At[e]||("undefined"!==typeof console&&console.error(e),At[e]=!0)}function Ct(e,t){return function(n,r,a){null!==n[r]&&"undefined"!==typeof n[r]&&Et('"'.concat(r,'" property of "').concat(a,'" has been deprecated.\n').concat(t));for(var o=arguments.length,i=new Array(o>3?o-3:0),s=3;s<o;s++)i[s-3]=arguments[s];return e.apply(void 0,[n,r,a].concat(i))}}var Tt="object"===typeof window&&window.Element||function(){};function Pt(e,t,n){if(!(e[t]instanceof Tt))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Ot=w.oneOfType([w.string,w.func,Pt,w.shape({current:w.any})]),Rt=w.oneOfType([w.func,w.string,w.shape({$$typeof:w.symbol,render:w.func}),w.arrayOf(w.oneOfType([w.func,w.string,w.shape({$$typeof:w.symbol,render:w.func})]))]),Nt={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Mt=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Ft={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},jt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},It=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Lt=!("undefined"===typeof window||!window.document||!window.document.createElement);function Dt(e){return!(!e||"object"!==typeof e)&&"current"in e}function qt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function zt(e){var t=typeof e;if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===qt(e))return NaN;if(Bt(e)){var n="function"===typeof e.valueOf?e.valueOf():e;e=Bt(n)?"".concat(n):n}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?NaN:+e}function Bt(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function Ut(e){if(!Bt(e))return!1;var t=qt(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function Wt(e){if(Dt(e))return e.current;if(Ut(e))return e();if("string"===typeof e&&Lt){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function Ht(e){return null!==e&&(Array.isArray(e)||Lt&&"number"===typeof e.length)}function Vt(e,t){var n=Wt(e);return t?Ht(n)?n:null===n?[]:[n]:Ht(n)?n[0]:n}var Gt=["touchstart","click"];function Xt(e,t,n,r){var a=e;Ht(a)||(a=[a]);var o=n;if("string"===typeof o&&(o=o.split(/\s+/)),!Ht(a)||"function"!==typeof t||!Array.isArray(o))throw new Error("\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n The second must be a function.\n The third is a string or an array of strings that represents DOM events\n ");return Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(a,(function(n){n.addEventListener(e,t,r)}))})),function(){Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(a,(function(n){n.removeEventListener(e,t,r)}))}))}}var Yt=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Kt=["className","cssModule","fluid","tag"],Qt={tag:Rt,fluid:w.oneOfType([w.bool,w.string]),className:w.string,cssModule:w.object},$t=function(t){var n=t.className,r=t.cssModule,a=t.fluid,o=t.tag,i=mt(t,Kt),s="container";!0===a?s="container-fluid":a&&(s="container-".concat(a));var l=kt(S(n,s),r);return e.createElement(o,vt({},i,{className:l}))};$t.propTypes=Qt,$t.defaultProps={tag:"div"};var Jt=$t,Zt=["className","cssModule","noGutters","tag","form","widths"],en=w.oneOfType([w.number,w.string]),tn={tag:Rt,noGutters:Ct(w.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:w.string,cssModule:w.object,form:w.bool,xs:en,sm:en,md:en,lg:en,xl:en,xxl:en},nn={tag:"div",widths:["xs","sm","md","lg","xl","xxl"]},rn=function(t){var n=t.className,r=t.cssModule,a=t.noGutters,o=t.tag,i=t.form,s=t.widths,l=mt(t,Zt),u=[];s.forEach((function(e,n){var r=t[e];if(delete l[e],r){var a=!n;u.push(a?"row-cols-".concat(r):"row-cols-".concat(e,"-").concat(r))}}));var c=kt(S(n,a?"gx-0":null,i?"form-row":"row",u),r);return e.createElement(o,vt({},l,{className:c}))};rn.propTypes=tn,rn.defaultProps=nn;var an=rn,on=["className","cssModule","widths","tag"],sn=["xs","sm","md","lg","xl","xxl"],ln=w.oneOfType([w.number,w.string]),un=w.oneOfType([w.bool,w.number,w.string,w.shape({size:w.oneOfType([w.bool,w.number,w.string]),order:ln,offset:ln})]),cn={tag:Rt,xs:un,sm:un,md:un,lg:un,xl:un,xxl:un,className:w.string,cssModule:w.object,widths:w.array},fn={tag:"div",widths:sn},dn=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},pn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sn,r=[];return n.forEach((function(n,a){var o=e[n];if(delete e[n],o||""===o){var i=!a;if(Bt(o)){var s,l=i?"-":"-".concat(n,"-"),u=dn(i,n,o.size);r.push(kt(S((_(s={},u,o.size||""===o.size),_(s,"order".concat(l).concat(o.order),o.order||0===o.order),_(s,"offset".concat(l).concat(o.offset),o.offset||0===o.offset),s)),t))}else{var c=dn(i,n,o);r.push(c)}}})),{colClasses:r,attributes:e}},hn=function(t){var n=t.className,r=t.cssModule,a=t.widths,o=t.tag,i=mt(t,on),s=pn(i,r,a),l=s.attributes,u=s.colClasses;u.length||u.push("col");var c=kt(S(n,u),r);return e.createElement(o,vt({},l,{className:c}))};hn.propTypes=cn,hn.defaultProps=fn;var vn=hn,mn=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],gn={light:w.bool,dark:w.bool,full:w.bool,fixed:w.string,sticky:w.string,color:w.string,role:w.string,tag:Rt,container:w.oneOfType([w.bool,w.string]),className:w.string,cssModule:w.object,expand:w.oneOfType([w.bool,w.string]),children:w.node},yn=function(t){var n,r=t.expand,a=t.className,o=t.cssModule,i=t.light,s=t.dark,l=t.fixed,u=t.sticky,c=t.color,f=t.container,d=t.tag,p=t.children,h=mt(t,mn),v=kt(S(a,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e))}(r),(_(n={"navbar-light":i,"navbar-dark":s},"bg-".concat(c),c),_(n,"fixed-".concat(l),l),_(n,"sticky-".concat(u),u),n)),o),m=f&&!0===f?"container":"container-".concat(f);return e.createElement(d,vt({},h,{className:v}),f?e.createElement("div",{className:m},p):p)};yn.propTypes=gn,yn.defaultProps={tag:"nav",expand:!1,container:"fluid"};var bn=["className","cssModule","tag"],_n={tag:Rt,className:w.string,cssModule:w.object},wn=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,bn),i=kt(S(n,"navbar-brand"),r);return e.createElement(a,vt({},o,{className:i}))};wn.propTypes=_n,wn.defaultProps={tag:"a"};var kn=["className","cssModule","active","tag"],Sn={tag:Rt,className:w.string,cssModule:w.object},xn=function(t){var n=t.className,r=t.cssModule,a=(t.active,t.tag),o=mt(t,kn),i=kt(S(n,"navbar-text"),r);return e.createElement(a,vt({},o,{className:i}))};xn.propTypes=Sn,xn.defaultProps={tag:"span"};var An=["className","cssModule","children","tag"],En={tag:Rt,type:w.string,className:w.string,cssModule:w.object,children:w.node},Cn=function(t){var n=t.className,r=t.cssModule,a=t.children,o=t.tag,i=mt(t,An),s=kt(S(n,"navbar-toggler"),r);return e.createElement(o,vt({"aria-label":"Toggle navigation"},i,{className:s}),a||e.createElement("span",{className:kt("navbar-toggler-icon",r)}))};Cn.propTypes=En,Cn.defaultProps={tag:"button",type:"button"};var Tn=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Pn={tabs:w.bool,pills:w.bool,vertical:w.oneOfType([w.bool,w.string]),horizontal:w.string,justified:w.bool,fill:w.bool,navbar:w.bool,card:w.bool,tag:Rt,className:w.string,cssModule:w.object},On=function(t){var n=t.className,r=t.cssModule,a=t.tabs,o=t.pills,i=t.vertical,s=t.horizontal,l=t.justified,u=t.fill,c=t.navbar,f=t.card,d=t.tag,p=mt(t,Tn),h=kt(S(n,c?"navbar-nav":"nav",!!s&&"justify-content-".concat(s),function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-".concat(e,"-column"))}(i),{"nav-tabs":a,"card-header-tabs":f&&a,"nav-pills":o,"card-header-pills":f&&o,"nav-justified":l,"nav-fill":u}),r);return e.createElement(d,vt({},p,{className:h}))};On.propTypes=Pn,On.defaultProps={tag:"ul",vertical:!1};var Rn=["className","cssModule","active","tag"],Nn={tag:Rt,active:w.bool,className:w.string,cssModule:w.object},Mn=function(t){var n=t.className,r=t.cssModule,a=t.active,o=t.tag,i=mt(t,Rn),s=kt(S(n,"nav-item",!!a&&"active"),r);return e.createElement(o,vt({},i,{className:s}))};Mn.propTypes=Nn,Mn.defaultProps={tag:"li"};var Fn=["className","cssModule","active","tag","innerRef"],jn={tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),disabled:w.bool,active:w.bool,className:w.string,cssModule:w.object,onClick:w.func,href:w.any},In=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).onClick=t.onClick.bind(p(t)),t}return d(r,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():("#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e))}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.cssModule,a=t.active,o=t.tag,i=t.innerRef,s=mt(t,Fn),l=kt(S(n,"nav-link",{disabled:s.disabled,active:a}),r);return e.createElement(o,vt({},s,{ref:i,onClick:this.onClick,className:l}))}}]),r}(e.Component);In.propTypes=jn,In.defaultProps={tag:"a"};var Ln=["className","listClassName","cssModule","children","tag","listTag","aria-label"],Dn={tag:Rt,listTag:Rt,className:w.string,listClassName:w.string,cssModule:w.object,children:w.node,"aria-label":w.string},qn=function(t){var n=t.className,r=t.listClassName,a=t.cssModule,o=t.children,i=t.tag,s=t.listTag,l=t["aria-label"],u=mt(t,Ln),c=kt(S(n),a),f=kt(S("breadcrumb",r),a);return e.createElement(i,vt({},u,{className:c,"aria-label":l}),e.createElement(s,{className:f},o))};qn.propTypes=Dn,qn.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var zn=["className","cssModule","active","tag"],Bn={tag:Rt,active:w.bool,className:w.string,cssModule:w.object},Un=function(t){var n=t.className,r=t.cssModule,a=t.active,o=t.tag,i=mt(t,zn),s=kt(S(n,!!a&&"active","breadcrumb-item"),r);return e.createElement(o,vt({},i,{className:s,"aria-current":a?"page":void 0}))};Un.propTypes=Bn,Un.defaultProps={tag:"li"};var Wn=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],Hn={active:w.bool,"aria-label":w.string,block:w.bool,color:w.string,disabled:w.bool,outline:w.bool,tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),onClick:w.func,size:w.string,children:w.node,className:w.string,cssModule:w.object,close:w.bool},Vn=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).onClick=t.onClick.bind(p(t)),t}return d(r,[{key:"onClick",value:function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.active,r=t["aria-label"],a=t.block,o=t.className,i=t.close,s=t.cssModule,l=t.color,u=t.outline,c=t.size,f=t.tag,d=t.innerRef,p=mt(t,Wn),h="btn".concat(u?"-outline":"","-").concat(l),v=kt(S(o,i&&"btn-close",i||"btn",i||h,!!c&&"btn-".concat(c),!!a&&"d-block w-100",{active:n,disabled:this.props.disabled}),s);p.href&&"button"===f&&(f="a");var m=i?"Close":null;return e.createElement(f,vt({type:"button"===f&&p.onClick?"button":void 0},p,{className:v,ref:d,onClick:this.onClick,"aria-label":r||m}))}}]),r}(e.Component);Vn.propTypes=Hn,Vn.defaultProps={color:"secondary",tag:"button"};var Gn=Vn,Xn=["className"],Yn={onClick:w.func,onBlur:w.func,onFocus:w.func,defaultValue:w.bool},Kn=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={toggled:e.defaultValue,focus:!1},t.onBlur=t.onBlur.bind(p(t)),t.onFocus=t.onFocus.bind(p(t)),t.onClick=t.onClick.bind(p(t)),t}return d(r,[{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({focus:!1})}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e),this.setState({focus:!0})}},{key:"onClick",value:function(e){this.props.onClick&&this.props.onClick(e),this.setState((function(e){return{toggled:!e.toggled}}))}},{key:"render",value:function(){var t=this.props,n=t.className,r=mt(t,Xn),a=kt(S(n,{focus:this.state.focus}),this.props.cssModule);return e.createElement(Gn,vt({active:this.state.toggled,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.onClick,className:a},r))}}]),r}(e.Component);Kn.propTypes=Yn,Kn.defaultProps={defaultValue:!1};var Qn=e.createContext({}),$n=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Jn={a11y:w.bool,disabled:w.bool,direction:w.oneOf(["up","down","start","end","left","right"]),group:w.bool,isOpen:w.bool,nav:w.bool,active:w.bool,size:w.string,tag:Rt,toggle:w.func,children:w.node,className:w.string,cssModule:w.object,inNavbar:w.bool,setActiveFromChild:w.bool,menuRole:w.oneOf(["listbox","menu"])},Zn=[jt.space,jt.enter,jt.up,jt.down,jt.end,jt.home],er=function(t){v(r,t);var n=b(r);function r(t){var a;return c(this,r),(a=n.call(this,t)).addEvents=a.addEvents.bind(p(a)),a.handleDocumentClick=a.handleDocumentClick.bind(p(a)),a.handleKeyDown=a.handleKeyDown.bind(p(a)),a.removeEvents=a.removeEvents.bind(p(a)),a.toggle=a.toggle.bind(p(a)),a.handleMenuRef=a.handleMenuRef.bind(p(a)),a.containerRef=e.createRef(),a.menuRef=e.createRef(),a}return d(r,[{key:"handleMenuRef",value:function(e){this.menuRef.current=e}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,menuRole:this.props.menuRole}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl}},{key:"getItemType",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"getMenuItems",value:function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===jt.tab)){var t=this.getContainer(),n=this.getMenu(),r=t.contains(e.target)&&t!==e.target,a=t.classList.contains("input-group")&&t.classList.contains("dropdown")&&"INPUT"===e.target.tagName,o=n&&n.contains(e.target)&&n!==e.target;(!(r&&!a||o)||"keyup"===e.type&&e.which!==jt.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){var t=this,n="menuitem"===e.target.getAttribute("role")||"option"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,a=jt.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||a&&!this.props.a11y||a&&!n&&!r)&&((-1!==Zn.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([jt.space,jt.enter,jt.up,jt.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout((function(){return t.getMenuItems()[0].focus()}))):this.props.isOpen&&a?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===jt.esc&&this.toggle(e)),this.props.isOpen&&n)))if([jt.tab,jt.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([jt.space,jt.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([jt.down,jt.up].indexOf(e.which)>-1||[jt.n,jt.p].indexOf(e.which)>-1&&e.ctrlKey){var o=this.getMenuItems(),i=o.indexOf(e.target);jt.up===e.which||jt.p===e.which&&e.ctrlKey?i=0!==i?i-1:o.length-1:(jt.down===e.which||jt.n===e.which&&e.ctrlKey)&&(i=i===o.length-1?0:i+1),o[i].focus()}else if(jt.end===e.which){var s=this.getMenuItems();s[s.length-1].focus()}else if(jt.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var l=this.getMenuItems(),u=String.fromCharCode(e.which).toLowerCase(),c=0;c<l.length;c+=1){if((l[c].textContent&&l[c].textContent[0].toLowerCase())===u){l[c].focus();break}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var t,n,r=St(this.props,["toggle","disabled","inNavbar","a11y"]),a=r.className,o=r.cssModule,i=r.direction,s=r.isOpen,l=r.group,u=r.size,c=r.nav,f=r.setActiveFromChild,d=r.active,p=r.tag,h=(r.menuRole,mt(r,$n)),v=p||(c?"li":"div"),m=!1;f&&e.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(m=!0)}));var g=kt(S(a,!(!c||!d)&&"active",!(!f||!m)&&"active",(_(t={"btn-group":l},"btn-group-".concat(u),!!u),_(t,"dropdown",!l),_(t,"dropup","up"===i),_(t,"dropstart","start"===i||"left"===i),_(t,"dropend","end"===i||"right"===i),_(t,"show",s),_(t,"nav-item",c),t)),o);return e.createElement(Qn.Provider,{value:this.getContextValue()},e.createElement(E,null,e.createElement(v,vt({},h,(_(n={},"string"===typeof v?"ref":"innerRef",this.containerRef),_(n,"onKeyDown",this.handleKeyDown),_(n,"className",g),n)))))}}]),r}(e.Component);er.propTypes=Jn,er.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1};var tr=er,nr={children:w.node},rr=function(t){return e.createElement(tr,vt({group:!0},t))};rr.propTypes=nr;var ar=rr,or=["className","cssModule","size","vertical","tag"],ir={tag:Rt,"aria-label":w.string,className:w.string,cssModule:w.object,role:w.string,size:w.string,vertical:w.bool},sr=function(t){var n=t.className,r=t.cssModule,a=t.size,o=t.vertical,i=t.tag,s=mt(t,or),l=kt(S(n,!!a&&"btn-group-"+a,o?"btn-group-vertical":"btn-group"),r);return e.createElement(i,vt({},s,{className:l}))};sr.propTypes=ir,sr.defaultProps={tag:"div",role:"group"};var lr=["className","cssModule","tag"],ur={tag:Rt,"aria-label":w.string,className:w.string,cssModule:w.object,role:w.string},cr=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,lr),i=kt(S(n,"btn-toolbar"),r);return e.createElement(a,vt({},o,{className:i}))};cr.propTypes=ur,cr.defaultProps={tag:"div",role:"toolbar"};var fr=["className","cssModule","divider","tag","header","active","text"],dr={children:w.node,active:w.bool,disabled:w.bool,divider:w.bool,tag:Rt,header:w.bool,onClick:w.func,className:w.string,cssModule:w.object,toggle:w.bool,text:w.bool},pr=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).onClick=t.onClick.bind(p(t)),t.getTabIndex=t.getTabIndex.bind(p(t)),t}return d(r,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"onClick",value:function(e){var t=this.props,n=t.disabled,r=t.header,a=t.divider,o=t.text;n||r||a||o?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))}},{key:"getTabIndex",value:function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,a=e.text;return t||n||r||a?"-1":"0"}},{key:"render",value:function(){var t=this.getTabIndex(),n=t>-1?this.getRole():void 0,r=St(this.props,["toggle"]),a=r.className,o=r.cssModule,i=r.divider,s=r.tag,l=r.header,u=r.active,c=r.text,f=mt(r,fr),d=kt(S(a,{disabled:f.disabled,"dropdown-item":!i&&!l&&!c,active:u,"dropdown-header":l,"dropdown-divider":i,"dropdown-item-text":c}),o);return"button"===s&&(l?s="h6":i?s="div":f.href?s="a":c&&(s="span")),e.createElement(s,vt({type:"button"===s&&(f.onClick||this.props.toggle)?"button":void 0},f,{tabIndex:t,role:n,className:d,onClick:this.onClick}))}}]),r}(e.Component);pr.propTypes=dr,pr.defaultProps={tag:"button",toggle:!0},pr.contextType=Qn;var hr=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container"],vr={tag:Rt,children:w.node.isRequired,dark:w.bool,end:w.bool,flip:w.bool,modifiers:w.array,className:w.string,cssModule:w.object,persist:w.bool,strategy:w.string,container:Ot,right:Ct(w.bool,'Please use "end" instead.')},mr={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},gr=function(n){v(a,n);var r=b(a);function a(){return c(this,a),r.apply(this,arguments)}return d(a,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"listbox":"menu"}},{key:"render",value:function(){var n=this,r=this.props,a=r.className,o=r.cssModule,i=r.dark,s=r.end,l=r.right,c=r.tag,f=r.flip,d=r.modifiers,p=r.persist,h=r.strategy,v=r.container,m=mt(r,hr),g=kt(S(a,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":s||l,show:this.context.isOpen}),o),y=c;if(p||this.context.isOpen&&!this.context.inNavbar){var b=mr[this.context.direction]||"bottom",_=s||l?"end":"start",w="".concat(b,"-").concat(_),k=[].concat(u(d),[{name:"flip",enabled:!!f}]),x=e.createElement(Ke,{placement:w,modifiers:k,strategy:h},(function(t){var r=t.ref,a=t.style,o=t.placement,i=pt(pt({},n.props.style),a);return e.createElement(y,vt({tabIndex:"-1",role:n.getRole(),ref:function(e){r(e);var t=n.context.onMenuRef;t&&t(e)}},m,{style:i,"aria-hidden":!n.context.isOpen,className:g,"data-popper-placement":o}))}));return v?t.createPortal(x,Vt(v)):x}return e.createElement(y,vt({tabIndex:"-1",role:this.getRole()},m,{"aria-hidden":!this.context.isOpen,className:g,"data-popper-placement":m.placement}))}}]),a}(e.Component);gr.propTypes=vr,gr.defaultProps={tag:"div",flip:!0,modifiers:[]},gr.contextType=Qn;var yr=["className","color","cssModule","caret","split","nav","tag","innerRef"],br={caret:w.bool,color:w.string,children:w.node,className:w.string,cssModule:w.object,disabled:w.bool,onClick:w.func,"aria-haspopup":w.bool,split:w.bool,tag:Rt,nav:w.bool},_r=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).onClick=t.onClick.bind(p(t)),t}return d(r,[{key:"onClick",value:function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var t,n=this,r=this.props,a=r.className,o=r.color,i=r.cssModule,s=r.caret,l=r.split,u=r.nav,c=r.tag,f=r.innerRef,d=mt(r,yr),p=d["aria-label"]||"Toggle Dropdown",h=kt(S(a,{"dropdown-toggle":s||l,"dropdown-toggle-split":l,"nav-link":u}),i),v="undefined"!==typeof d.children?d.children:e.createElement("span",{className:"visually-hidden"},p);return u&&!c?(t="a",d.href="#"):c?t=c:(t=Gn,d.color=o,d.cssModule=i),this.context.inNavbar?e.createElement(t,vt({},d,{className:h,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:v})):e.createElement(Je,{innerRef:f},(function(r){var a,o=r.ref;return e.createElement(t,vt({},d,(_(a={},"string"===typeof t?"ref":"innerRef",o),_(a,"className",h),_(a,"onClick",n.onClick),_(a,"aria-expanded",n.context.isOpen),_(a,"aria-haspopup",n.getRole()),_(a,"children",v),a)))}))}}]),r}(e.Component);_r.propTypes=br,_r.defaultProps={color:"secondary","aria-haspopup":!0},_r.contextType=Qn;var wr=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],kr=pt(pt({},ft.propTypes),{},{children:w.oneOfType([w.arrayOf(w.node),w.node]),tag:Rt,baseClass:w.string,baseClassActive:w.string,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func])}),Sr=pt(pt({},ft.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Nt.Fade,appear:!0,enter:!0,exit:!0,in:!0});function xr(t){var n=t.tag,r=t.baseClass,a=t.baseClassActive,o=t.className,i=t.cssModule,s=t.children,l=t.innerRef,u=mt(t,wr),c=xt(u,Mt),f=St(u,Mt);return e.createElement(ft,c,(function(t){var u=kt(S(o,r,"entered"===t&&a),i);return e.createElement(n,vt({className:u},f,{ref:l}),s)}))}xr.propTypes=kr,xr.defaultProps=Sr;var Ar=e.createContext({}),Er=["flush","open","toggle","className","cssModule","tag","innerRef"],Cr={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func]),children:w.node,flush:w.bool,open:w.oneOfType([w.array,w.string]).isRequired,toggle:w.func.isRequired},Tr=function(t){var n=t.flush,r=t.open,a=t.toggle,o=t.className,i=t.cssModule,s=t.tag,l=t.innerRef,u=mt(t,Er),c=kt(S(o,"accordion",{"accordion-flush":n}),i),f=(0,e.useMemo)((function(){return{open:r,toggle:a}}));return e.createElement(Ar.Provider,{value:f},e.createElement(s,vt({},u,{className:c,ref:l})))};Tr.propTypes=Cr,Tr.defaultProps={tag:"div"};var Pr=Tr,Or={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func]),children:w.node,defaultOpen:w.oneOfType([w.array,w.string]),stayOpen:w.bool};Pr.propTypes=Or,Pr.defaultProps={tag:"div"};var Rr=["className","cssModule","tag","innerRef","children","targetId"],Nr={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func]),children:w.node,targetId:w.string.isRequired},Mr=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.innerRef,i=t.children,s=t.targetId,l=mt(t,Rr),u=(0,e.useContext)(Ar),c=u.open,f=u.toggle,d=kt(S(n,"accordion-header"),r),p=kt(S("accordion-button",{collapsed:!(Array.isArray(c)?c.includes(s):c===s)}),r);return e.createElement(a,vt({},l,{className:d,ref:o}),e.createElement("button",{type:"button",className:p,onClick:function(){return f(s)}},i))};Mr.propTypes=Nr,Mr.defaultProps={tag:"h2"};var Fr=["className","cssModule","tag","innerRef"],jr={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func]),children:w.node},Ir=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.innerRef,i=mt(t,Fr),s=kt(S(n,"accordion-item"),r);return e.createElement(a,vt({},i,{className:s,ref:o}))};Ir.propTypes=jr,Ir.defaultProps={tag:"div"};var Lr=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Dr=pt(pt({},ft.propTypes),{},{horizontal:w.bool,isOpen:w.bool,children:w.oneOfType([w.arrayOf(w.node),w.node]),tag:Rt,className:w.node,navbar:w.bool,cssModule:w.object,innerRef:w.oneOfType([w.func,w.string,w.object])}),qr=pt(pt({},ft.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Nt.Collapse}),zr=(_(ut={},Ft.ENTERING,"collapsing"),_(ut,Ft.ENTERED,"collapse show"),_(ut,Ft.EXITING,"collapsing"),_(ut,Ft.EXITED,"collapse"),ut);var Br=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={dimension:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach((function(e){t[e]=t[e].bind(p(t))})),t}return d(r,[{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"onEntering",value:function(e,t){this.setState({dimension:this.getDimension(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({dimension:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({dimension:this.getDimension(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({dimension:null}),this.props.onExited(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.tag,a=n.horizontal,o=n.isOpen,i=n.className,s=n.navbar,l=n.cssModule,u=n.children,c=(n.innerRef,mt(n,Lr)),f=this.state.dimension,d=xt(c,Mt),p=St(c,Mt);return e.createElement(ft,vt({},d,{in:o,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(n){var o=function(e){return zr[e]||"collapse"}(n),c=kt(S(i,a&&"collapse-horizontal",o,s&&"navbar-collapse"),l),d=null===f?null:_({},a?"width":"height",f);return e.createElement(r,vt({},p,{style:pt(pt({},p.style),d),className:c,ref:t.props.innerRef}),u)}))}}]),r}(e.Component);Br.propTypes=Dr,Br.defaultProps=qr;var Ur=Br,Wr=["className","cssModule","tag","innerRef","children","accordionId"],Hr={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func]),children:w.node,accordionId:w.string.isRequired},Vr=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.innerRef,i=t.children,s=t.accordionId,l=mt(t,Wr),u=(0,e.useContext)(Ar).open,c=kt(S(n,"accordion-collapse"),r);return e.createElement(Ur,vt({},l,{className:c,ref:o,isOpen:Array.isArray(u)?u.includes(s):u===s}),e.createElement(a,{className:"accordion-body"},i))};Vr.propTypes=Hr,Vr.defaultProps={tag:"div"};var Gr=["className","cssModule","color","innerRef","pill","tag"],Xr={color:w.string,pill:w.bool,tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),children:w.node,className:w.string,cssModule:w.object},Yr=function(t){var n=t.className,r=t.cssModule,a=t.color,o=t.innerRef,i=t.pill,s=t.tag,l=mt(t,Gr),u=kt(S(n,"badge","bg-"+a,!!i&&"rounded-pill"),r);return l.href&&"span"===s&&(s="a"),e.createElement(s,vt({},l,{className:u,ref:o}))};Yr.propTypes=Xr,Yr.defaultProps={color:"secondary",pill:!1,tag:"span"};var Kr=["className","cssModule","color","body","inverse","outline","tag","innerRef"],Qr={tag:Rt,inverse:w.bool,color:w.string,body:w.bool,outline:w.bool,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func])},$r=function(t){var n=t.className,r=t.cssModule,a=t.color,o=t.body,i=t.inverse,s=t.outline,l=t.tag,u=t.innerRef,c=mt(t,Kr),f=kt(S(n,"card",!!i&&"text-white",!!o&&"card-body",!!a&&"".concat(s?"border":"bg","-").concat(a)),r);return e.createElement(l,vt({},c,{className:f,ref:u}))};$r.propTypes=Qr,$r.defaultProps={tag:"div"};var Jr=$r,Zr=["className","cssModule","tag"],ea={tag:Rt,className:w.string,cssModule:w.object},ta=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Zr),i=kt(S(n,"card-group"),r);return e.createElement(a,vt({},o,{className:i}))};ta.propTypes=ea,ta.defaultProps={tag:"div"};var na=["className","cssModule","tag"],ra={tag:Rt,className:w.string,cssModule:w.object},aa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,na),i=kt(S(n,"card-deck"),r);return e.createElement(a,vt({},o,{className:i}))};aa.propTypes=ra,aa.defaultProps={tag:"div"};var oa=["className","cssModule","tag"],ia={tag:Rt,className:w.string,cssModule:w.object},sa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,oa),i=kt(S(n,"card-columns"),r);return e.createElement(a,vt({},o,{className:i}))};sa.propTypes=ia,sa.defaultProps={tag:"div"};var la=["className","cssModule","innerRef","tag"],ua={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func])},ca=function(t){var n=t.className,r=t.cssModule,a=t.innerRef,o=t.tag,i=mt(t,la),s=kt(S(n,"card-body"),r);return e.createElement(o,vt({},i,{className:s,ref:a}))};ca.propTypes=ua,ca.defaultProps={tag:"div"};var fa=["className","cssModule","tag","innerRef"],da={tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),className:w.string,cssModule:w.object},pa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.innerRef,i=mt(t,fa),s=kt(S(n,"card-link"),r);return e.createElement(a,vt({},i,{ref:o,className:s}))};pa.propTypes=da,pa.defaultProps={tag:"a"};var ha=["className","cssModule","tag"],va={tag:Rt,className:w.string,cssModule:w.object},ma=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,ha),i=kt(S(n,"card-footer"),r);return e.createElement(a,vt({},o,{className:i}))};ma.propTypes=va,ma.defaultProps={tag:"div"};var ga=["className","cssModule","tag"],ya={tag:Rt,className:w.string,cssModule:w.object},ba=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,ga),i=kt(S(n,"card-header"),r);return e.createElement(a,vt({},o,{className:i}))};ba.propTypes=ya,ba.defaultProps={tag:"div"};var _a=["className","cssModule","top","bottom","tag"],wa={tag:Rt,top:w.bool,bottom:w.bool,className:w.string,cssModule:w.object},ka=function(t){var n=t.className,r=t.cssModule,a=t.top,o=t.bottom,i=t.tag,s=mt(t,_a),l="card-img";a&&(l="card-img-top"),o&&(l="card-img-bottom");var u=kt(S(n,l),r);return e.createElement(i,vt({},s,{className:u}))};ka.propTypes=wa,ka.defaultProps={tag:"img"};var Sa=["className","cssModule","tag"],xa={tag:Rt,className:w.string,cssModule:w.object},Aa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Sa),i=kt(S(n,"card-img-overlay"),r);return e.createElement(a,vt({},o,{className:i}))};Aa.propTypes=xa,Aa.defaultProps={tag:"div"};var Ea=["in","children","cssModule","slide","tag","className"],Ca=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={startAnimation:!1},t.onEnter=t.onEnter.bind(p(t)),t.onEntering=t.onEntering.bind(p(t)),t.onExit=t.onExit.bind(p(t)),t.onExiting=t.onExiting.bind(p(t)),t.onExited=t.onExited.bind(p(t)),t}return d(r,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.in,a=n.children,o=n.cssModule,i=n.slide,s=n.tag,l=n.className,u=mt(n,Ea);return e.createElement(ft,vt({},u,{enter:i,exit:i,in:r,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(n){var r=t.context.direction,i=n===Ft.ENTERED||n===Ft.EXITING,u=(n===Ft.ENTERING||n===Ft.EXITING)&&t.state.startAnimation&&("end"===r?"carousel-item-start":"carousel-item-end"),c=kt(S(l,"carousel-item",i&&"active",u,n===Ft.ENTERING&&("end"===r?"carousel-item-next":"carousel-item-prev")),o);return e.createElement(s,{className:c},a)}))}}]),r}(e.Component);Ca.propTypes=pt(pt({},ft.propTypes),{},{tag:Rt,in:w.bool,cssModule:w.object,children:w.node,slide:w.bool,className:w.string}),Ca.defaultProps=pt(pt({},ft.defaultProps),{},{tag:"div",timeout:Nt.Carousel,slide:!0}),Ca.contextTypes={direction:w.string};var Ta=Ca,Pa=e.createContext({}),Oa=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).handleKeyPress=t.handleKeyPress.bind(p(t)),t.renderItems=t.renderItems.bind(p(t)),t.hoverStart=t.hoverStart.bind(p(t)),t.hoverEnd=t.hoverEnd.bind(p(t)),t.handleTouchStart=t.handleTouchStart.bind(p(t)),t.handleTouchEnd=t.handleTouchEnd.bind(p(t)),t.touchStartX=0,t.touchStartY=0,t.state={activeIndex:t.props.activeIndex,direction:"end",indicatorClicked:!1},t}return d(r,[{key:"getContextValue",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){t.activeIndex!==this.state.activeIndex&&this.setInterval(this.props)}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval((function(){e.next()}),parseInt(e.interval,10)))}))},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearInterval(this.cycleInterval)}))},{key:"hoverStart",value:function(){var e;("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter)&&(e=this.props).mouseEnter.apply(e,arguments)}},{key:"hoverEnd",value:function(){var e;("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave)&&(e=this.props).mouseLeave.apply(e,arguments)}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"handleTouchStart",value:function(e){this.props.enableTouch&&(this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY)}},{key:"handleTouchEnd",value:function(e){if(this.props.enableTouch){var t=e.changedTouches[0].screenX,n=e.changedTouches[0].screenY,r=Math.abs(this.touchStartX-t);r<Math.abs(this.touchStartY-n)||r<40||(t<this.touchStartX?this.props.next():this.props.previous())}}},{key:"renderItems",value:function(t,n){var r=this,a=this.props.slide;return e.createElement("div",{className:n},t.map((function(t,n){var o=n===r.state.activeIndex;return e.cloneElement(t,{in:o,slide:a})})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.cssModule,a=n.slide,o=n.className,i=n.dark,s=n.fade,l=kt(S(o,"carousel",s,a&&"slide",i&&"carousel-dark"),r),u=kt(S("carousel-inner"),r),c=this.props.children.filter((function(e){return null!==e&&void 0!==e&&"boolean"!==typeof e}));if(c.every((function(e){return e.type===Ta})))return e.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},e.createElement(Pa.Provider,{value:this.getContextValue()},this.renderItems(c,u)));if(c[0]instanceof Array){var f=c[0],d=c[1],p=c[2];return e.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},e.createElement(Pa.Provider,{value:this.getContextValue()},this.renderItems(f,u),d,p))}var h=c[0],v=e.cloneElement(h,{onClickHandler:function(e){"function"===typeof h.props.onClickHandler&&t.setState({indicatorClicked:!0},(function(){return h.props.onClickHandler(e)}))}}),m=c[1],g=c[2],y=c[3];return e.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},e.createElement(Pa.Provider,{value:this.getContextValue()},v,this.renderItems(m,u),g,y))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=null,r=t.activeIndex,a=t.direction,o=t.indicatorClicked;return e.activeIndex!==r&&(e.activeIndex===r+1?a="end":e.activeIndex===r-1?a="start":e.activeIndex<r?a=o?"start":"end":e.activeIndex!==r&&(a=o?"end":"start"),n={activeIndex:e.activeIndex,direction:a,indicatorClicked:!1}),n}}]),r}(e.Component);Oa.propTypes={activeIndex:w.number,next:w.func.isRequired,previous:w.func.isRequired,keyboard:w.bool,pause:w.oneOf(["hover",!1]),ride:w.oneOf(["carousel"]),interval:w.oneOfType([w.number,w.string,w.bool]),children:w.array,mouseEnter:w.func,mouseLeave:w.func,slide:w.bool,dark:w.bool,cssModule:w.object,className:w.string,enableTouch:w.bool},Oa.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1},Oa.childContextTypes={direction:w.string};var Ra=Oa,Na=function(t){var n=t.direction,r=t.onClickHandler,a=t.cssModule,o=t.directionText,i=t.className,s=kt(S(i,"carousel-control-".concat(n)),a),l=kt(S("carousel-control-".concat(n,"-icon")),a),u=kt(S("visually-hidden"),a);return e.createElement("a",{className:s,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),r()}},e.createElement("span",{className:l,"aria-hidden":"true"}),e.createElement("span",{className:u},o||n))};Na.propTypes={direction:w.oneOf(["prev","next"]).isRequired,onClickHandler:w.func.isRequired,cssModule:w.object,directionText:w.string,className:w.string};var Ma=Na,Fa=function(t){var n=t.items,r=t.activeIndex,a=t.cssModule,o=t.onClickHandler,i=t.className,s=kt(S(i,"carousel-indicators"),a),l=n.map((function(t,n){var i=kt(S({active:r===n}),a);return e.createElement("button",{"aria-label":t.caption,"data-bs-target":!0,key:"".concat(t.key||Object.values(t).join("")),onClick:function(e){e.preventDefault(),o(n)},className:i},t.caption)}));return e.createElement("div",{className:s},l)};Fa.propTypes={items:w.array.isRequired,activeIndex:w.number.isRequired,cssModule:w.object,onClickHandler:w.func.isRequired,className:w.string};var ja=Fa,Ia=function(t){var n=t.captionHeader,r=t.captionText,a=t.cssModule,o=t.className,i=kt(S(o,"carousel-caption","d-none","d-md-block"),a);return e.createElement("div",{className:i},e.createElement("h3",null,n),e.createElement("p",null,r))};Ia.propTypes={captionHeader:w.node,captionText:w.node.isRequired,cssModule:w.object,className:w.string};var La=Ia,Da=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],qa={items:w.array.isRequired,indicators:w.bool,controls:w.bool,autoPlay:w.bool,defaultActiveIndex:w.number,activeIndex:w.number,next:w.func,previous:w.func,goToIndex:w.func},za=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).animating=!1,t.state={activeIndex:e.defaultActiveIndex||0},t.next=t.next.bind(p(t)),t.previous=t.previous.bind(p(t)),t.goToIndex=t.goToIndex.bind(p(t)),t.onExiting=t.onExiting.bind(p(t)),t.onExited=t.onExited.bind(p(t)),t}return d(r,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultActiveIndex,n.autoPlay),a=n.indicators,o=n.controls,i=n.items,s=n.goToIndex,l=mt(n,Da),u=this.state.activeIndex,c=i.map((function(n){var r=n.key||n.src;return e.createElement(Ta,{onExiting:t.onExiting,onExited:t.onExited,key:r},e.createElement("img",{className:"d-block w-100",src:n.src,alt:n.altText}),e.createElement(La,{captionText:n.caption,captionHeader:n.header||n.caption}))}));return e.createElement(Ra,vt({activeIndex:u,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),a&&e.createElement(ja,{items:i,activeIndex:l.activeIndex||u,onClickHandler:s||this.goToIndex}),c,o&&e.createElement(Ma,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&e.createElement(Ma,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}]),r}(e.Component);za.propTypes=qa,za.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var Ba=["className","cssModule","tag"],Ua={tag:Rt,className:w.string,cssModule:w.object},Wa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Ba),i=kt(S(n,"card-subtitle"),r);return e.createElement(a,vt({},o,{className:i}))};Wa.propTypes=Ua,Wa.defaultProps={tag:"div"};var Ha=["className","cssModule","tag"],Va={tag:Rt,className:w.string,cssModule:w.object},Ga=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Ha),i=kt(S(n,"card-text"),r);return e.createElement(a,vt({},o,{className:i}))};Ga.propTypes=Va,Ga.defaultProps={tag:"p"};var Xa=Ga,Ya=["className","cssModule","tag"],Ka={tag:Rt,className:w.string,cssModule:w.object},Qa=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Ya),i=kt(S(n,"card-title"),r);return e.createElement(a,vt({},o,{className:i}))};Qa.propTypes=Ka,Qa.defaultProps={tag:"div"};var $a=Qa,Ja=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];var Za={children:w.oneOfType([w.node,w.func]).isRequired,popperClassName:w.string,placement:w.string,placementPrefix:w.string,arrowClassName:w.string,hideArrow:w.bool,tag:Rt,isOpen:w.bool.isRequired,cssModule:w.object,offset:w.arrayOf(w.number),fallbackPlacements:w.array,flip:w.bool,container:Ot,target:Ot.isRequired,modifiers:w.array,strategy:w.string,boundariesElement:w.oneOfType([w.string,Pt]),onClosed:w.func,fade:w.bool,transition:w.shape(xr.propTypes)},eo={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:function(){},fade:!0,transition:pt({},xr.defaultProps)},to=function(n){v(a,n);var r=b(a);function a(e){var t;return c(this,a),(t=r.call(this,e)).setTargetNode=t.setTargetNode.bind(p(t)),t.getTargetNode=t.getTargetNode.bind(p(t)),t.getRef=t.getRef.bind(p(t)),t.onClosed=t.onClosed.bind(p(t)),t.state={isOpen:e.isOpen},t}return d(a,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"setTargetNode",value:function(e){this.targetNode="string"===typeof e?Vt(e):e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return Vt(this.props.container)}},{key:"getRef",value:function(e){this._element=e}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"renderChildren",value:function(){var t=this.props,n=t.cssModule,r=t.children,a=t.isOpen,o=t.flip,i=(t.target,t.offset),s=t.fallbackPlacements,l=t.placementPrefix,c=t.arrowClassName,f=t.hideArrow,d=t.popperClassName,p=t.tag,h=(t.container,t.modifiers),v=t.strategy,m=t.boundariesElement,g=(t.onClosed,t.fade),y=t.transition,b=t.placement,_=mt(t,Ja),w=kt(S("arrow",c),n),k=kt(S(d,l?"".concat(l,"-auto"):""),this.props.cssModule),x=h.map((function(e){return e.name})),A=[{name:"offset",options:{offset:i}},{name:"flip",enabled:o,options:{fallbackPlacements:s}},{name:"preventOverflow",options:{boundary:m}}].filter((function(e){return!x.includes(e.name)})),E=[].concat(u(A),u(h)),C=pt(pt(pt({},xr.defaultProps),y),{},{baseClass:g?y.baseClass:"",timeout:g?y.timeout:0});return e.createElement(xr,vt({},C,_,{in:a,onExited:this.onClosed,tag:p}),e.createElement(Ke,{referenceElement:this.targetNode,modifiers:E,placement:b,strategy:v},(function(t){var n=t.ref,a=t.style,o=t.placement,i=t.isReferenceHidden,s=t.arrowProps,l=t.update;return e.createElement("div",{ref:n,style:a,className:k,"data-popper-placement":o,"data-popper-reference-hidden":i?"true":void 0},"function"===typeof r?r({update:l}):r,!f&&e.createElement("span",{ref:s.ref,className:w,style:s.style}))})))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?"inline"===this.props.container?this.renderChildren():t.createPortal(e.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),a}(e.Component);to.propTypes=Za,to.defaultProps=eo;var no=to,ro=function(e,t){return t.popperManager.setTargetNode(Vt(e.target)),null};ro.contextTypes={popperManager:w.object.isRequired},ro.propTypes={target:Ot.isRequired};var ao={children:w.oneOfType([w.node,w.func]),placement:w.oneOf(It),target:Ot.isRequired,container:Ot,isOpen:w.bool,disabled:w.bool,hideArrow:w.bool,boundariesElement:w.oneOfType([w.string,Pt]),className:w.string,innerClassName:w.string,arrowClassName:w.string,popperClassName:w.string,cssModule:w.object,toggle:w.func,autohide:w.bool,placementPrefix:w.string,delay:w.oneOfType([w.shape({show:w.number,hide:w.number}),w.number]),modifiers:w.array,strategy:w.string,offset:w.arrayOf(w.number),innerRef:w.oneOfType([w.func,w.string,w.object]),trigger:w.string,fade:w.bool,flip:w.bool},oo={show:0,hide:50},io={isOpen:!1,hideArrow:!1,autohide:!1,delay:oo,toggle:function(){},trigger:"click",fade:!0};function so(e,t){return t&&(e===t||t.contains(e))}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length&&t.filter((function(t){return so(e,t)}))[0]}var uo=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e))._targets=[],t.currentTargetElement=null,t.addTargetEvents=t.addTargetEvents.bind(p(t)),t.handleDocumentClick=t.handleDocumentClick.bind(p(t)),t.removeTargetEvents=t.removeTargetEvents.bind(p(t)),t.toggle=t.toggle.bind(p(t)),t.showWithDelay=t.showWithDelay.bind(p(t)),t.hideWithDelay=t.hideWithDelay.bind(p(t)),t.onMouseOverTooltipContent=t.onMouseOverTooltipContent.bind(p(t)),t.onMouseLeaveTooltipContent=t.onMouseLeaveTooltipContent.bind(p(t)),t.show=t.show.bind(p(t)),t.hide=t.hide.bind(p(t)),t.onEscKeyDown=t.onEscKeyDown.bind(p(t)),t.getRef=t.getRef.bind(p(t)),t.state={isOpen:e.isOpen},t._isMounted=!1,t}return d(r,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(e){"Escape"===e.key&&this.hide(e)}},{key:"getRef",value:function(e){var t=this.props.innerRef;t&&("function"===typeof t?t(e):"object"===typeof t&&(t.current=e)),this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===typeof t?isNaN(t[e])?oo[e]:t[e]:t}},{key:"getCurrentTarget",value:function(e){if(!e)return null;var t=this._targets.indexOf(e);return t>=0?this._targets[t]:this.getCurrentTarget(e.parentElement)}},{key:"show",value:function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&"function"===typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}}},{key:"showWithDelay",value:function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}},{key:"hide",value:function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))}},{key:"hideWithDelay",value:function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||lo(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!so(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&lo(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))}},{key:"addEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.addEventListener(e,t,n)}))}},{key:"removeEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.removeEventListener(e,t,n)}))}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var e=Vt(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var t=this;this.props.isOpen&&this.updateTarget();var n=this.currentTargetElement||this._targets[0];if(!n)return null;var r=this.props,a=r.className,o=r.cssModule,i=r.innerClassName,s=r.isOpen,l=r.hideArrow,u=r.boundariesElement,c=r.placement,f=r.placementPrefix,d=r.arrowClassName,p=r.popperClassName,h=r.container,v=r.modifiers,m=r.strategy,g=r.offset,y=r.fade,b=r.flip,_=r.children,w=St(this.props,Object.keys(ao)),k=kt(p,o),S=kt(i,o);return e.createElement(no,{className:a,target:n,isOpen:s,hideArrow:l,boundariesElement:u,placement:c,placementPrefix:f,arrowClassName:d,popperClassName:k,container:h,modifiers:v,strategy:m,offset:g,cssModule:o,fade:y,flip:b},(function(n){var r=n.update;return e.createElement("div",vt({},w,{ref:t.getRef,className:S,role:"tooltip",onMouseOver:t.onMouseOverTooltipContent,onMouseLeave:t.onMouseLeaveTooltipContent,onKeyDown:t.onEscKeyDown}),"function"===typeof _?_({update:r}):_)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),r}(e.Component);uo.propTypes=ao,uo.defaultProps=io;var co=uo,fo=function(t){var n=S("popover","show",t.popperClassName),r=S("popover-inner",t.innerClassName);return e.createElement(co,vt({},t,{arrowClassName:"popover-arrow",popperClassName:n,innerClassName:r}))};fo.propTypes=ao,fo.defaultProps={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};var po=fo,ho=["defaultOpen"];(function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={isOpen:e.defaultOpen||!1},t.toggle=t.toggle.bind(p(t)),t}return d(r,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return e.createElement(po,vt({isOpen:this.state.isOpen,toggle:this.toggle},St(this.props,ho)))}}]),r}(e.Component)).propTypes=pt({defaultOpen:w.bool},po.propTypes);var vo=["className","cssModule","tag"],mo={tag:Rt,className:w.string,cssModule:w.object},go=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,vo),i=kt(S(n,"popover-header"),r);return e.createElement(a,vt({},o,{className:i}))};go.propTypes=mo,go.defaultProps={tag:"h3"};var yo=["className","cssModule","tag"],bo={tag:Rt,className:w.string,cssModule:w.object},_o=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,yo),i=kt(S(n,"popover-body"),r);return e.createElement(a,vt({},o,{className:i}))};_o.propTypes=bo,_o.defaultProps={tag:"div"};var wo=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],ko={children:w.node,bar:w.bool,multi:w.bool,tag:Rt,value:w.oneOfType([w.string,w.number]),min:w.oneOfType([w.string,w.number]),max:w.oneOfType([w.string,w.number]),animated:w.bool,striped:w.bool,color:w.string,className:w.string,barClassName:w.string,cssModule:w.object,style:w.object,barStyle:w.object,barAriaValueText:w.string,barAriaLabelledBy:w.string},So=function(t){var n=t.children,r=t.className,a=t.barClassName,o=t.cssModule,i=t.value,s=t.min,l=t.max,u=t.animated,c=t.striped,f=t.color,d=t.bar,p=t.multi,h=t.tag,v=t.style,m=t.barStyle,g=t.barAriaValueText,y=t.barAriaLabelledBy,b=mt(t,wo),_=zt(i)/zt(l)*100,w=kt(S(r,"progress"),o),k={className:kt(S("progress-bar",d&&r||a,u?"progress-bar-animated":null,f?"bg-".concat(f):null,c||u?"progress-bar-striped":null),o),style:pt(pt(pt({},d?v:{}),m),{},{width:"".concat(_,"%")}),role:"progressbar","aria-valuenow":i,"aria-valuemin":s,"aria-valuemax":l,"aria-valuetext":g,"aria-labelledby":y,children:n};return d?e.createElement(h,vt({},b,k)):e.createElement(h,vt({},b,{style:v,className:w}),p?n:e.createElement("div",k))};So.propTypes=ko,So.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var xo={children:w.node.isRequired,node:w.any},Ao=function(e){v(r,e);var n=b(r);function r(){return c(this,r),n.apply(this,arguments)}return d(r,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Lt?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),t.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),r}(e.Component);Ao.propTypes=xo;var Eo=Ao;function Co(){}var To=w.shape(xr.propTypes),Po={isOpen:w.bool,autoFocus:w.bool,centered:w.bool,fullscreen:w.oneOfType([w.bool,w.oneOf(["sm","md","lg","xl"])]),scrollable:w.bool,size:w.string,toggle:w.func,keyboard:w.bool,role:w.string,labelledBy:w.string,backdrop:w.oneOfType([w.bool,w.oneOf(["static"])]),onEnter:w.func,onExit:w.func,onOpened:w.func,onClosed:w.func,children:w.node,className:w.string,wrapClassName:w.string,modalClassName:w.string,backdropClassName:w.string,contentClassName:w.string,external:w.node,fade:w.bool,cssModule:w.object,zIndex:w.oneOfType([w.number,w.string]),backdropTransition:To,modalTransition:To,innerRef:w.oneOfType([w.object,w.string,w.func]),unmountOnClose:w.bool,returnFocusAfterClose:w.bool,container:Ot,trapFocus:w.bool},Oo=Object.keys(Po),Ro={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Co,onClosed:Co,modalTransition:{timeout:Nt.Modal},backdropTransition:{mountOnEnter:!0,timeout:Nt.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},No=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e))._element=null,t._originalBodyPadding=null,t.getFocusableChildren=t.getFocusableChildren.bind(p(t)),t.handleBackdropClick=t.handleBackdropClick.bind(p(t)),t.handleBackdropMouseDown=t.handleBackdropMouseDown.bind(p(t)),t.handleEscape=t.handleEscape.bind(p(t)),t.handleStaticBackdropAnimation=t.handleStaticBackdropAnimation.bind(p(t)),t.handleTab=t.handleTab.bind(p(t)),t.onOpened=t.onOpened.bind(p(t)),t.onClosed=t.onClosed.bind(p(t)),t.manageFocusAfterClose=t.manageFocusAfterClose.bind(p(t)),t.clearBackdropAnimationTimeout=t.clearBackdropAnimationTimeout.bind(p(t)),t.trapFocus=t.trapFocus.bind(p(t)),t.state={isOpen:!1,showStaticBackdropAnimation:!1},t}return d(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&(!this._dialog||this._dialog.parentNode!==e.target)&&!(this.modalIndex<r.openCount-1)){for(var t=this.getFocusableChildren(),n=0;n<t.length;n++)if(t[n]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||Co)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Co)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(Yt.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.modalIndex<r.openCount-1)){var t=this.getFocusableChildren(),n=t.length;if(0!==n){for(var a=this.getFocusedChild(),o=0,i=0;i<n;i+=1)if(t[i]===a){o=i;break}e.shiftKey&&0===o?(e.preventDefault(),t[n-1].focus()):e.shiftKey||o!==n-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===jt.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Vt(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=_t(),wt(),0===r.openCount&&(document.body.className=S(document.body.className,kt("modal-open",this.props.cssModule))),this.modalIndex=r.openCount,r.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(r.openCount<=1){var e=kt("modal-open",this.props.cssModule),t=new RegExp("(^| )".concat(e,"( |$)"));document.body.className=document.body.className.replace(t," ").trim()}this.manageFocusAfterClose(),r.openCount=Math.max(0,r.openCount-1),yt(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var t,n=this,r=St(this.props,Oo),a="modal-dialog";return e.createElement("div",vt({},r,{className:kt(S(a,this.props.className,(t={},_(t,"modal-".concat(this.props.size),this.props.size),_(t,"".concat(a,"-centered"),this.props.centered),_(t,"".concat(a,"-scrollable"),this.props.scrollable),_(t,"modal-fullscreen",!0===this.props.fullscreen),_(t,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),"string"===typeof this.props.fullscreen),t)),this.props.cssModule),role:"document",ref:function(e){n._dialog=e}}),e.createElement("div",{className:kt(S("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var t=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!t)){var n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";var r=this.props,a=r.wrapClassName,o=r.modalClassName,i=r.backdropClassName,s=r.cssModule,l=r.isOpen,u=r.backdrop,c=r.role,f=r.labelledBy,d=r.external,p=r.innerRef,h={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,m=pt(pt(pt({},xr.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),g=pt(pt(pt({},xr.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),y=u&&(v?e.createElement(xr,vt({},g,{in:l&&!!u,cssModule:s,className:kt(S("modal-backdrop",i),s)})):e.createElement("div",{className:kt(S("modal-backdrop","show",i),s)}));return e.createElement(Eo,{node:this._element},e.createElement("div",{className:kt(a)},e.createElement(xr,vt({},h,m,{in:l,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:kt(S("modal",o,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),d,this.renderModalDialog()),y))}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),r}(e.Component);No.propTypes=Po,No.defaultProps=Ro,No.openCount=0;var Mo=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],Fo={tag:Rt,wrapTag:Rt,toggle:w.func,className:w.string,cssModule:w.object,children:w.node,closeAriaLabel:w.string,close:w.object},jo=function(t){var n,r=t.className,a=t.cssModule,o=t.children,i=t.toggle,s=t.tag,l=t.wrapTag,u=t.closeAriaLabel,c=t.close,f=mt(t,Mo),d=kt(S(r,"modal-header"),a);return!c&&i&&(n=e.createElement("button",{type:"button",onClick:i,className:kt("btn-close",a),"aria-label":u})),e.createElement(l,vt({},f,{className:d}),e.createElement(s,{className:kt("modal-title",a)},o),c||n)};jo.propTypes=Fo,jo.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};var Io=["className","cssModule","tag"],Lo={tag:Rt,className:w.string,cssModule:w.object},Do=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Io),i=kt(S(n,"modal-body"),r);return e.createElement(a,vt({},o,{className:i}))};Do.propTypes=Lo,Do.defaultProps={tag:"div"};var qo=["className","cssModule","tag"],zo={tag:Rt,className:w.string,cssModule:w.object},Bo=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,qo),i=kt(S(n,"modal-footer"),r);return e.createElement(a,vt({},o,{className:i}))};Bo.propTypes=zo,Bo.defaultProps={tag:"div"};var Uo=function(t){var n=S("tooltip","show",t.popperClassName),r=S("tooltip-inner",t.innerClassName);return e.createElement(co,vt({},t,{arrowClassName:"tooltip-arrow",popperClassName:n,innerClassName:r}))};Uo.propTypes=ao,Uo.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};var Wo=Uo,Ho=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],Vo={className:w.string,cssModule:w.object,size:w.string,bordered:w.bool,borderless:w.bool,striped:w.bool,dark:w.bool,hover:w.bool,responsive:w.oneOfType([w.bool,w.string]),tag:Rt,responsiveTag:Rt,innerRef:w.oneOfType([w.func,w.string,w.object])},Go=function(t){var n=t.className,r=t.cssModule,a=t.size,o=t.bordered,i=t.borderless,s=t.striped,l=t.dark,u=t.hover,c=t.responsive,f=t.tag,d=t.responsiveTag,p=t.innerRef,h=mt(t,Ho),v=kt(S(n,"table",!!a&&"table-"+a,!!o&&"table-bordered",!!i&&"table-borderless",!!s&&"table-striped",!!l&&"table-dark",!!u&&"table-hover"),r),m=e.createElement(f,vt({},h,{ref:p,className:v}));if(c){var g=kt(!0===c?"table-responsive":"table-responsive-".concat(c),r);return e.createElement(d,{className:g},m)}return m};Go.propTypes=Vo,Go.defaultProps={tag:"table",responsiveTag:"div"};var Xo=["className","cssModule","tag","flush","horizontal","numbered"],Yo={tag:Rt,flush:w.bool,className:w.string,cssModule:w.object,horizontal:w.oneOfType([w.bool,w.string]),numbered:w.bool},Ko=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.flush,i=t.horizontal,s=t.numbered,l=mt(t,Xo),u=kt(S(n,"list-group",o?"list-group-flush":function(e){return!1!==e&&(!0===e||"xs"===e?"list-group-horizontal":"list-group-horizontal-".concat(e))}(i),{"list-group-numbered":s}),r);return e.createElement(a,vt({},l,{className:u}))};Ko.propTypes=Yo,Ko.defaultProps={tag:"ul",horizontal:!1,numbered:!1};var Qo=["className","cssModule","inline","tag","innerRef"],$o={children:w.node,inline:w.bool,tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),className:w.string,cssModule:w.object},Jo=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).getRef=t.getRef.bind(p(t)),t.submit=t.submit.bind(p(t)),t}return d(r,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.cssModule,a=t.inline,o=t.tag,i=t.innerRef,s=mt(t,Qo),l=kt(S(n,!!a&&"form-inline"),r);return e.createElement(o,vt({},s,{ref:i,className:l}))}}]),r}(e.Component);Jo.propTypes=$o,Jo.defaultProps={tag:"form"};var Zo=["className","cssModule","valid","tooltip","tag"],ei={children:w.node,tag:Rt,className:w.string,cssModule:w.object,valid:w.bool,tooltip:w.bool},ti={tag:"div",valid:void 0},ni=function(t){var n=t.className,r=t.cssModule,a=t.valid,o=t.tooltip,i=t.tag,s=mt(t,Zo),l=o?"tooltip":"feedback",u=kt(S(n,a?"valid-".concat(l):"invalid-".concat(l)),r);return e.createElement(i,vt({},s,{className:u}))};ni.propTypes=ei,ni.defaultProps=ti;var ri=["className","cssModule","row","disabled","check","inline","floating","tag"],ai={children:w.node,row:w.bool,check:w.bool,switch:w.bool,inline:w.bool,floating:w.bool,disabled:w.bool,tag:Rt,className:w.string,cssModule:w.object},oi=function(t){var n=t.className,r=t.cssModule,a=t.row,o=t.disabled,i=t.check,s=t.inline,l=t.floating,u=t.tag,c=mt(t,ri),f=i||t.switch,d=kt(S(n,!!a&&"row",f?"form-check":"mb-3",!!t.switch&&"form-switch",!(!f||!s)&&"form-check-inline",!(!f||!o)&&"disabled",l&&"form-floating"),r);return"fieldset"===u&&(c.disabled=o),e.createElement(u,vt({},c,{className:d}))};oi.propTypes=ai,oi.defaultProps={tag:"div"};var ii=["className","cssModule","inline","color","tag"],si={children:w.node,inline:w.bool,tag:Rt,color:w.string,className:w.string,cssModule:w.object},li=function(t){var n=t.className,r=t.cssModule,a=t.inline,o=t.color,i=t.tag,s=mt(t,ii),l=kt(S(n,!a&&"form-text",!!o&&"text-".concat(o)),r);return e.createElement(i,vt({},s,{className:l}))};li.propTypes=si,li.defaultProps={tag:"small",color:"muted"};var ui=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],ci={children:w.node,type:w.string,size:w.oneOfType([w.number,w.string]),bsSize:w.string,valid:w.bool,invalid:w.bool,tag:Rt,innerRef:w.oneOfType([w.object,w.func,w.string]),plaintext:w.bool,addon:w.bool,className:w.string,cssModule:w.object},fi=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).getRef=t.getRef.bind(p(t)),t.focus=t.focus.bind(p(t)),t}return d(r,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.cssModule,a=t.type,o=t.bsSize,i=t.valid,s=t.invalid,l=t.tag,u=t.addon,c=t.plaintext,f=t.innerRef,d=mt(t,ui),p=["switch","radio","checkbox"].indexOf(a)>-1,h=new RegExp("\\D","g"),v="select"===a,m="range"===a,g=l||(v||"textarea"===a?a:"input"),y="form-control";c?(y="".concat(y,"-plaintext"),g=l||"input"):m?y="form-range":v?y="form-select":p&&(y=u?null:"form-check-input"),d.size&&h.test(d.size)&&(Et('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=d.size,delete d.size);var b=kt(S(n,s&&"is-invalid",i&&"is-valid",!!o&&(v?"form-select-".concat(o):"form-control-".concat(o)),y),r);return("input"===g||l&&"function"===typeof l)&&(d.type="switch"===a?"checkbox":a),d.children&&!c&&"select"!==a&&"string"===typeof g&&"select"!==g&&(Et('Input with a type of "'.concat(a,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),e.createElement(g,vt({},d,{ref:f,className:b,"aria-invalid":s}))}}]),r}(e.Component);fi.propTypes=ci,fi.defaultProps={type:"text"};var di=["className","cssModule","tag","type","size"],pi={tag:Rt,type:w.bool,size:w.string,className:w.string,cssModule:w.object},hi=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=(t.type,t.size),i=mt(t,di),s=kt(S(n,"input-group",o?"input-group-".concat(o):null),r);return"dropdown"===t.type?e.createElement(tr,vt({},i,{className:s})):e.createElement(a,vt({},i,{className:s}))};hi.propTypes=pi,hi.defaultProps={tag:"div"};var vi=["className","cssModule","tag"],mi={tag:Rt,className:w.string,cssModule:w.object},gi=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,vi),i=kt(S(n,"input-group-text"),r);return e.createElement(a,vt({},o,{className:i}))};gi.propTypes=mi,gi.defaultProps={tag:"span"};var yi=["className","cssModule","hidden","widths","tag","check","size","for"],bi=w.oneOfType([w.number,w.string]),_i=w.oneOfType([w.bool,w.string,w.number,w.shape({size:bi,order:bi,offset:bi})]),wi={children:w.node,hidden:w.bool,check:w.bool,size:w.string,for:w.string,tag:Rt,className:w.string,cssModule:w.object,xs:_i,sm:_i,md:_i,lg:_i,xl:_i,xxl:_i,widths:w.array},ki={tag:"label",widths:["xs","sm","md","lg","xl","xxl"]},Si=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},xi=function(t){var n=t.className,r=t.cssModule,a=t.hidden,o=t.widths,i=t.tag,s=t.check,l=t.size,u=t.for,c=mt(t,yi),f=[];o.forEach((function(e,n){var a=t[e];if(delete c[e],a||""===a){var o,i=!n;if(Bt(a)){var s,l=i?"-":"-".concat(e,"-");o=Si(i,e,a.size),f.push(kt(S((_(s={},o,a.size||""===a.size),_(s,"order".concat(l).concat(a.order),a.order||0===a.order),_(s,"offset".concat(l).concat(a.offset),a.offset||0===a.offset),s))),r)}else o=Si(i,e,a),f.push(o)}}));var d=kt(S(n,!!a&&"visually-hidden",!!s&&"form-check-label",!!l&&"col-form-label-".concat(l),f,f.length?"col-form-label":"form-label"),r);return e.createElement(i,vt({htmlFor:u},c,{className:d}))};xi.propTypes=wi,xi.defaultProps=ki;var Ai=["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"],Ei={body:w.bool,bottom:w.bool,children:w.node,className:w.string,cssModule:w.object,heading:w.bool,left:w.bool,list:w.bool,middle:w.bool,object:w.bool,right:w.bool,tag:Rt,top:w.bool},Ci=function(t){var n,r=t.body,a=t.bottom,o=t.className,i=t.cssModule,s=t.heading,l=t.left,u=t.list,c=t.middle,f=t.object,d=t.right,p=t.tag,h=t.top,v=mt(t,Ai);n=s?"h4":v.href?"a":v.src||f?"img":u?"ul":"div";var m=p||n,g=kt(S(o,{"media-body":r,"media-heading":s,"media-left":l,"media-right":d,"media-top":h,"media-bottom":a,"media-middle":c,"media-object":f,"media-list":u,media:!r&&!s&&!l&&!d&&!h&&!a&&!c&&!f&&!u}),i);return e.createElement(m,vt({},v,{className:g}))};Ci.propTypes=Ei;function Ti(){}var Pi=w.shape(xr.propTypes),Oi={autoFocus:w.bool,backdrop:w.bool,backdropClassName:w.string,backdropTransition:Pi,children:w.node,className:w.string,container:Ot,cssModule:w.object,direction:w.oneOf(["start","end","bottom","top","left","right"]),fade:w.bool,innerRef:w.oneOfType([w.object,w.string,w.func]),isOpen:w.bool,keyboard:w.bool,labelledBy:w.string,offcanvasTransition:Pi,onClosed:w.func,onEnter:w.func,onExit:w.func,onOpened:w.func,returnFocusAfterClose:w.bool,role:w.string,scrollable:w.bool,toggle:w.func,trapFocus:w.bool,unmountOnClose:w.bool,zIndex:w.oneOfType([w.number,w.string])},Ri=Object.keys(Oi),Ni={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Ti,onClosed:Ti,offcanvasTransition:{timeout:Nt.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Nt.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Mi=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e))._element=null,t._originalBodyPadding=null,t.getFocusableChildren=t.getFocusableChildren.bind(p(t)),t.handleBackdropClick=t.handleBackdropClick.bind(p(t)),t.handleBackdropMouseDown=t.handleBackdropMouseDown.bind(p(t)),t.handleEscape=t.handleEscape.bind(p(t)),t.handleTab=t.handleTab.bind(p(t)),t.onOpened=t.onOpened.bind(p(t)),t.onClosed=t.onClosed.bind(p(t)),t.manageFocusAfterClose=t.manageFocusAfterClose.bind(p(t)),t.clearBackdropAnimationTimeout=t.clearBackdropAnimationTimeout.bind(p(t)),t.trapFocus=t.trapFocus.bind(p(t)),t.state={isOpen:!1},t}return d(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&this._dialog!==e.target&&!(this.offcanvasIndex<r.openCount-1)){for(var t=this.getFocusableChildren(),n=0;n<t.length;n++)if(t[n]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||Ti)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.offcanvasTransition.onExited||Ti)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&"function"===typeof this._dialog.focus&&this._dialog.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(Yt.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._backdrop;if(!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.offcanvasIndex<r.openCount-1)){var t=this.getFocusableChildren(),n=t.length;if(0!==n){for(var a=this.getFocusedChild(),o=0,i=0;i<n;i+=1)if(t[i]===a){o=i;break}e.shiftKey&&0===o?(e.preventDefault(),t[n-1].focus()):e.shiftKey||o!==n-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===jt.esc&&this.props.toggle&&this.props.keyboard&&(e.preventDefault(),e.stopPropagation(),this.props.toggle(e))}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Vt(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=_t(),wt(),0===r.openCount&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=r.openCount,r.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){this.manageFocusAfterClose(),r.openCount=Math.max(0,r.openCount-1),document.body.style.overflow=null,yt(this._originalBodyPadding)}},{key:"render",value:function(){var t=this,n=this.props,r=n.direction,a=n.unmountOnClose;if(this._element&&(this.state.isOpen||!a)){var o=!!this._element&&!this.state.isOpen&&!a;this._element.style.display=o?"none":"block";var i=this.props,s=i.className,l=i.backdropClassName,u=i.cssModule,c=i.isOpen,f=i.backdrop,d=i.role,p=i.labelledBy,h=i.style,v={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":p,role:d,tabIndex:"-1"},m=this.props.fade,g=pt(pt(pt({},xr.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=pt(pt(pt({},xr.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),b=f&&(m?e.createElement(xr,vt({},y,{in:c&&!!f,innerRef:function(e){t._backdrop=e},cssModule:u,className:kt(S("offcanvas-backdrop",l),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):e.createElement("div",{className:kt(S("offcanvas-backdrop","show",l),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=St(this.props,Ri);return e.createElement(Eo,{node:this._element},e.createElement(xr,vt({},_,v,g,{in:c,onEntered:this.onOpened,onExited:this.onClosed,cssModule:u,className:kt(S("offcanvas",s,"offcanvas-".concat(r)),u),innerRef:function(e){t._dialog=e},style:pt(pt({},h),{},{visibility:c?"visible":"hidden"})}),this.props.children),b)}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),r}(e.Component);Mi.propTypes=Oi,Mi.defaultProps=Ni,Mi.openCount=0;var Fi=["className","cssModule","tag"],ji={tag:Rt,className:w.string,cssModule:w.object},Ii=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,Fi),i=kt(S(n,"offcanvas-body"),r);return e.createElement(a,vt({},o,{className:i}))};Ii.propTypes=ji,Ii.defaultProps={tag:"div"};var Li=["children","className","close","closeAriaLabel","cssModule","tag","toggle","wrapTag"],Di={children:w.node,className:w.string,close:w.object,closeAriaLabel:w.string,cssModule:w.object,tag:Rt,toggle:w.func,wrapTag:Rt},qi=function(t){var n,r=t.children,a=t.className,o=t.close,i=t.closeAriaLabel,s=t.cssModule,l=t.tag,u=t.toggle,c=t.wrapTag,f=mt(t,Li),d=kt(S(a,"offcanvas-header"),s);return!o&&u&&(n=e.createElement("button",{type:"button",onClick:u,className:kt("btn-close",s),"aria-label":i})),e.createElement(c,vt({},f,{className:d}),e.createElement(l,{className:kt("offcanvas-title",s)},r),o||n)};qi.propTypes=Di,qi.defaultProps={closeAriaLabel:"Close",tag:"h5",wrapTag:"div"};var zi=["className","listClassName","cssModule","size","tag","listTag","aria-label"],Bi={children:w.node,className:w.string,listClassName:w.string,cssModule:w.object,size:w.string,tag:Rt,listTag:Rt,"aria-label":w.string},Ui=function(t){var n=t.className,r=t.listClassName,a=t.cssModule,o=t.size,i=t.tag,s=t.listTag,l=t["aria-label"],u=mt(t,zi),c=kt(S(n),a),f=kt(S(r,"pagination",_({},"pagination-".concat(o),!!o)),a);return e.createElement(i,{className:c,"aria-label":l},e.createElement(s,vt({},u,{className:f})))};Ui.propTypes=Bi,Ui.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"};var Wi=["active","className","cssModule","disabled","tag"],Hi={active:w.bool,children:w.node,className:w.string,cssModule:w.object,disabled:w.bool,tag:Rt},Vi=function(t){var n=t.active,r=t.className,a=t.cssModule,o=t.disabled,i=t.tag,s=mt(t,Wi),l=kt(S(r,"page-item",{active:n,disabled:o}),a);return e.createElement(i,vt({},s,{className:l}))};Vi.propTypes=Hi,Vi.defaultProps={tag:"li"};var Gi=["className","cssModule","next","previous","first","last","tag"],Xi={"aria-label":w.string,children:w.node,className:w.string,cssModule:w.object,next:w.bool,previous:w.bool,first:w.bool,last:w.bool,tag:Rt},Yi=function(t){var n,r=t.className,a=t.cssModule,o=t.next,i=t.previous,s=t.first,l=t.last,u=t.tag,c=mt(t,Gi),f=kt(S(r,"page-link"),a);i?n="Previous":o?n="Next":s?n="First":l&&(n="Last");var d,p=t["aria-label"]||n;i?d="\u2039":o?d="\u203a":s?d="\xab":l&&(d="\xbb");var h=t.children;return h&&Array.isArray(h)&&0===h.length&&(h=null),c.href||"a"!==u||(u="button"),(i||o||s||l)&&(h=[e.createElement("span",{"aria-hidden":"true",key:"caret"},h||d),e.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),e.createElement(u,vt({},c,{className:f,"aria-label":p}),h)};Yi.propTypes=Xi,Yi.defaultProps={tag:"a"};var Ki=e.createContext({}),Qi={tag:Rt,activeTab:w.any,className:w.string,cssModule:w.object},$i=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={activeTab:t.props.activeTab},t}return d(r,[{key:"render",value:function(){var t=this.props,n=t.className,r=t.cssModule,a=t.tag,o=St(this.props,Object.keys(Qi)),i=kt(S("tab-content",n),r);return e.createElement(Ki.Provider,{value:{activeTabId:this.state.activeTab}},e.createElement(a,vt({},o,{className:i})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}]),r}(e.Component);$i.propTypes=Qi,$i.defaultProps={tag:"div"};var Ji=["className","cssModule","tabId","tag"],Zi={tag:Rt,className:w.string,cssModule:w.object,tabId:w.any};function es(t){var n=t.className,r=t.cssModule,a=t.tabId,o=t.tag,i=mt(t,Ji),s=function(e){return kt(S("tab-pane",n,{active:a===e}),r)};return e.createElement(Ki.Consumer,null,(function(t){var n=t.activeTabId;return e.createElement(o,vt({},i,{className:s(n)}))}))}es.propTypes=Zi,es.defaultProps={tag:"div"};var ts=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],ns={children:w.node,className:w.string,closeClassName:w.string,closeAriaLabel:w.string,cssModule:w.object,color:w.string,fade:w.bool,isOpen:w.bool,toggle:w.func,tag:Rt,transition:w.shape(xr.propTypes),innerRef:w.oneOfType([w.object,w.string,w.func])},rs={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:pt(pt({},xr.defaultProps),{},{unmountOnExit:!0})};function as(t){var n=t.className,r=t.closeClassName,a=t.closeAriaLabel,o=t.cssModule,i=t.tag,s=t.color,l=t.isOpen,u=t.toggle,c=t.children,f=t.transition,d=t.fade,p=t.innerRef,h=mt(t,ts),v=kt(S(n,"alert","alert-".concat(s),{"alert-dismissible":u}),o),m=kt(S("btn-close",r),o),g=pt(pt(pt({},xr.defaultProps),f),{},{baseClass:d?f.baseClass:"",timeout:d?f.timeout:0});return e.createElement(xr,vt({},h,g,{tag:i,className:v,in:l,role:"alert",innerRef:p}),u?e.createElement("button",{type:"button",className:m,"aria-label":a,onClick:u}):null,c)}as.propTypes=ns,as.defaultProps=rs;var os=["className","cssModule","tag","isOpen","children","transition","fade","innerRef"],is={children:w.node,className:w.string,cssModule:w.object,fade:w.bool,isOpen:w.bool,tag:Rt,transition:w.shape(xr.propTypes),innerRef:w.oneOfType([w.object,w.string,w.func])},ss={isOpen:!0,tag:"div",fade:!0,transition:pt(pt({},xr.defaultProps),{},{unmountOnExit:!0})};function ls(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.isOpen,i=t.children,s=t.transition,l=t.fade,u=t.innerRef,c=mt(t,os),f=kt(S(n,"toast"),r),d=pt(pt(pt({},xr.defaultProps),s),{},{baseClass:l?s.baseClass:"",timeout:l?s.timeout:0});return e.createElement(xr,vt({},c,d,{tag:a,className:f,in:o,role:"alert",innerRef:u}),i)}ls.propTypes=is,ls.defaultProps=ss;var us=["className","cssModule","innerRef","tag"],cs={tag:Rt,className:w.string,cssModule:w.object,innerRef:w.oneOfType([w.object,w.string,w.func])},fs=function(t){var n=t.className,r=t.cssModule,a=t.innerRef,o=t.tag,i=mt(t,us),s=kt(S(n,"toast-body"),r);return e.createElement(o,vt({},i,{className:s,ref:a}))};fs.propTypes=cs,fs.defaultProps={tag:"div"};var ds=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close","tagClassName","icon"],ps={tag:Rt,icon:w.oneOfType([w.string,w.node]),wrapTag:Rt,toggle:w.func,className:w.string,cssModule:w.object,children:w.node,closeAriaLabel:w.string,charCode:w.oneOfType([w.string,w.number]),close:w.object},hs=function(t){var n,r,a=t.className,o=t.cssModule,i=t.children,s=t.toggle,l=t.tag,u=t.wrapTag,c=t.closeAriaLabel,f=t.close,d=t.tagClassName,p=t.icon,h=mt(t,ds),v=kt(S(a,"toast-header"),o);return!f&&s&&(n=e.createElement("button",{type:"button",onClick:s,className:kt("btn-close",o),"aria-label":c})),"string"===typeof p?r=e.createElement("svg",{className:kt("rounded text-".concat(p)),width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",focusable:"false",role:"img"},e.createElement("rect",{fill:"currentColor",width:"100%",height:"100%"})):p&&(r=p),e.createElement(u,vt({},h,{className:v}),r,e.createElement(l,{className:kt(S(d,{"ms-2":null!=r}),o)},i),f||n)};hs.propTypes=ps,hs.defaultProps={tag:"strong",wrapTag:"div",tagClassName:"me-auto",closeAriaLabel:"Close"};var vs=["className","cssModule","tag","active","disabled","action","color"],ms={tag:Rt,active:w.bool,disabled:w.bool,color:w.string,action:w.bool,className:w.any,cssModule:w.object},gs=function(e){e.preventDefault()},ys=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=t.active,i=t.disabled,s=t.action,l=t.color,u=mt(t,vs),c=kt(S(n,!!o&&"active",!!i&&"disabled",!!s&&"list-group-item-action",!!l&&"list-group-item-".concat(l),"list-group-item"),r);return i&&(u.onClick=gs),e.createElement(a,vt({},u,{className:c}))};ys.propTypes=ms,ys.defaultProps={tag:"li"};var bs=["className","cssModule","tag"],_s={tag:Rt,className:w.any,cssModule:w.object},ws=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,bs),i=kt(S(n,"list-group-item-heading"),r);return e.createElement(a,vt({},o,{className:i}))};ws.propTypes=_s,ws.defaultProps={tag:"h5"};var ks=["className","cssModule","tag"],Ss={tag:Rt,className:w.any,cssModule:w.object},xs=function(t){var n=t.className,r=t.cssModule,a=t.tag,o=mt(t,ks),i=kt(S(n,"list-group-item-text"),r);return e.createElement(a,vt({},o,{className:i}))};xs.propTypes=Ss,xs.defaultProps={tag:"p"};var As=["className","cssModule","tag","type"],Es={tag:Rt,className:w.string,cssModule:w.object,type:w.string},Cs=(0,e.forwardRef)((function(t,n){var r=t.className,a=t.cssModule,o=t.tag,i=t.type,s=mt(t,As),l=kt(S(r,!!i&&"list-".concat(i)),a);return e.createElement(o,vt({},s,{className:l,ref:n}))}));Cs.name="List",Cs.propTypes=Es,Cs.defaultProps={tag:"ul"};var Ts=["className","cssModule","tag"],Ps={tag:Rt,className:w.string,cssModule:w.object},Os=(0,e.forwardRef)((function(t,n){var r=t.className,a=t.cssModule,o=t.tag,i=mt(t,Ts),s=kt(S(r,"list-inline-item"),a);return e.createElement(o,vt({},i,{className:s,ref:n}))}));Os.name="ListInlineItem",Os.propTypes=Ps,Os.defaultProps={tag:"li"};e.Component;var Rs=["defaultOpen"];(function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={isOpen:e.defaultOpen||!1},t.toggle=t.toggle.bind(p(t)),t}return d(r,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return e.createElement(ar,vt({isOpen:this.state.isOpen,toggle:this.toggle},St(this.props,Rs)))}}]),r}(e.Component)).propTypes=pt({defaultOpen:w.bool},ar.propTypes);var Ns=["toggleEvents","defaultOpen"],Ms={defaultOpen:w.bool,toggler:w.string.isRequired,toggleEvents:w.arrayOf(w.string)},Fs={toggleEvents:Gt},js=function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).togglers=null,t.removeEventListeners=null,t.toggle=t.toggle.bind(p(t)),t.state={isOpen:e.defaultOpen||!1},t}return d(r,[{key:"componentDidMount",value:function(){this.togglers=Wt(this.props.toggler),this.togglers.length&&(this.removeEventListeners=Xt(this.togglers,this.toggle,this.props.toggleEvents))}},{key:"componentWillUnmount",value:function(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}},{key:"toggle",value:function(e){this.setState((function(e){return{isOpen:!e.isOpen}})),e.preventDefault()}},{key:"render",value:function(){return e.createElement(Ur,vt({isOpen:this.state.isOpen},St(this.props,Ns)))}}]),r}(e.Component);js.propTypes=Ms,js.defaultProps=Fs;var Is=["defaultOpen"];(function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={isOpen:e.defaultOpen||!1},t.toggle=t.toggle.bind(p(t)),t}return d(r,[{key:"toggle",value:function(e){var t=this,n=!this.state.isOpen;this.setState({isOpen:n},(function(){t.props.onToggle&&t.props.onToggle(e,n)}))}},{key:"render",value:function(){return e.createElement(tr,vt({isOpen:this.state.isOpen,toggle:this.toggle},St(this.props,Is)))}}]),r}(e.Component)).propTypes=pt({defaultOpen:w.bool,onToggle:w.func},tr.propTypes);var Ls=["defaultOpen"];(function(t){v(r,t);var n=b(r);function r(e){var t;return c(this,r),(t=n.call(this,e)).state={isOpen:e.defaultOpen||!1},t.toggle=t.toggle.bind(p(t)),t}return d(r,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return e.createElement(Wo,vt({isOpen:this.state.isOpen,toggle:this.toggle},St(this.props,Ls)))}}]),r}(e.Component)).propTypes=pt({defaultOpen:w.bool},Wo.propTypes);var Ds=["className","cssModule","type","size","color","children","tag"],qs={tag:Rt,type:w.string,size:w.string,color:w.string,className:w.string,cssModule:w.object,children:w.string},zs=function(t){var n=t.className,r=t.cssModule,a=t.type,o=t.size,i=t.color,s=t.children,l=t.tag,u=mt(t,Ds),c=kt(S(n,!!o&&"spinner-".concat(a,"-").concat(o),"spinner-".concat(a),!!i&&"text-".concat(i)),r);return e.createElement(l,vt({role:"status"},u,{className:c}),s&&e.createElement("span",{className:kt("visually-hidden",r)},s))};zs.propTypes=qs,zs.defaultProps={tag:"div",type:"border",children:"Loading..."};var Bs=zs,Us=["className","cssModule","color","innerRef","tag","animation","size","widths"],Ws=pt(pt({},vn.propTypes),{},{color:w.string,tag:Rt,animation:w.oneOf(["glow","wave"]),innerRef:w.oneOfType([w.object,w.func,w.string]),size:w.oneOf(["lg","sm","xs"])}),Hs=function(t){var n=t.className,r=t.cssModule,a=t.color,o=t.innerRef,i=t.tag,s=t.animation,l=t.size,u=t.widths,c=mt(t,Us),f=pn(c,r,u),d=f.attributes,p=f.colClasses,h=kt(S(n,p,"placeholder"+(s?"-"+s:""),!!l&&"placeholder-"+l,!!a&&"bg-"+a),r);return e.createElement(i,vt({},d,{className:h,ref:o}))};Hs.propTypes=Ws,Hs.defaultProps={tag:"span"};var Vs=["cssModule","className","tag"],Gs={size:w.string,color:w.string,outline:w.bool,className:w.string,tag:Rt},Xs={color:"primary",tag:Gn},Ys=function(t){var n=t.cssModule,r=t.className,a=(t.tag,mt(t,Vs)),o=pn(a,n),i=o.attributes,s=o.colClasses,l=kt(S("placeholder",r,s),n);return e.createElement(Gn,vt({},i,{className:l,disabled:!0}))};Ys.propTypes=Gs,Ys.defaultProps=Xs;!function(){if("object"===typeof window&&"function"!==typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}}(),function(){if("function"!==typeof Object.values){Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}}}();function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $s=__webpack_require__(560);function Js(){return Js=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(this,arguments)}function Zs(e,t){if(null==e)return{};var n,r,a=Ze(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var el=["onKeyDown","onKeyPress","onKeyUp"],tl=["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],nl=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],rl=[].concat(["onCopy","onCut","onPaste"],["onCompositionEnd","onCompositionStart","onCompositionUpdate"],el,["onFocus","onBlur"],["onChange","onInput","onInvalid","onReset","onSubmit"],["onError","onLoad"],tl,["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],["onSelect"],nl,["onScroll"],["onWheel"],["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],["onLoad","onError"],["onAnimationStart","onAnimationEnd","onAnimationIteration"],["onTransitionEnd"],["onToggle"]),al=function(e,t){var n={};return rl.forEach((function(r){r in e&&(n[r]=t?function(n){return e[r](n,t(r))}:e[r])})),n};function ol(e){var t=!1,n=new Promise((function(n,r){e.then((function(){return!t&&n.apply(void 0,arguments)})).catch((function(e){return!t&&r(e)}))}));return{promise:n,cancel:function(){t=!0}}}function il(){return Array.prototype.slice.call(arguments).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return"string"===typeof e})).join(" ")}var sl=(0,e.createContext)(null);function ll(t){var n=t.children,r=t.type;return e.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},n)}ll.propTypes={children:k().node,type:k().oneOf(["error","loading","no-data"]).isRequired};var ul=function(){function e(){c(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0}return d(e,[{key:"setDocument",value:function(e){this.pdfDocument=e}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return 0},set:function(e){}},{key:"goToDestination",value:function(e){var t=this;new Promise((function(n){"string"===typeof e?t.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)})).then((function(e){if(!Array.isArray(e))throw new Error('"'.concat(e,'" is not a valid destination array.'));var n=e[0];new Promise((function(e){if(n instanceof Object)t.pdfDocument.getPageIndex(n).then((function(t){e(t+1)})).catch((function(){throw new Error('"'.concat(n,'" is not a valid page reference.'))}));else{if("number"!==typeof n)throw new Error('"'.concat(n,'" is not a valid destination reference.'));e(n+1)}})).then((function(e){if(!e||e<1||e>t.pagesCount)throw new Error('"'.concat(e,'" is not a valid page number.'));t.pdfViewer.scrollPageIntoView({pageNumber:e})}))}))}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"goToPage",value:function(){}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),e}(),cl={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},fl="undefined"!==typeof window,dl=fl&&"file:"===window.location.protocol;function pl(e){return"undefined"!==typeof e}function hl(e){return pl(e)&&null!==e}function vl(e){return e instanceof ArrayBuffer}function ml(e){if(!fl)throw new Error("Attempted to check if a variable is a Blob on a non-browser environment.");return e instanceof Blob}function gl(e){if(!fl)throw new Error("Attempted to check if a variable is a File on a non-browser environment.");return e instanceof File}function yl(e){return"string"===typeof e&&/^data:/.test(e)}function bl(e){if(!yl(e))throw new Error("Invalid data URI.");var t=i(e.split(","),2),n=t[0],r=t[1];return-1!==n.split(";").indexOf("base64")?atob(r):unescape(r)}function _l(e){}function wl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_l.apply(void 0,["warn"].concat(t))}function kl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_l.apply(void 0,["error"].concat(t))}function Sl(){dl&&wl("Loading PDF as base64 strings/URLs might not work on protocols other than HTTP/HTTPS. On Google Chrome, you can use --allow-file-access-from-files flag for debugging purposes.")}function xl(e){e&&e.cancel&&e.cancel()}function Al(e,t){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e}function El(e){return"RenderingCancelledException"===e.name}function Cl(e){return new Promise((function(t,n){var r=new FileReader;return r.onload=function(){return t(new Uint8Array(r.result))},r.onerror=function(e){switch(e.target.error.code){case e.target.error.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case e.target.error.NOT_READABLE_ERR:return n(new Error("Error while reading a file: File not readable."));case e.target.error.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case e.target.error.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},r.readAsArrayBuffer(e),null}))}var Tl=function(){var e={};return[].concat(u(tl),u(nl),u(el)).forEach((function(t){e[t]=k().func})),e}(),Pl=[k().string,k().instanceOf(ArrayBuffer),k().shape({data:k().oneOfType([k().object,k().string]),httpHeaders:k().object,range:k().object,url:k().string,withCredentials:k().bool})];"undefined"!==typeof File&&Pl.push(k().instanceOf(File)),"undefined"!==typeof Blob&&Pl.push(k().instanceOf(Blob));var Ol=k().oneOfType([k().string,k().arrayOf(k().string)]),Rl=k().oneOfType(Pl),Nl=k().instanceOf(ul),Ml=(k().oneOf(["_self","_blank","_parent","_top"]),k().shape({_transport:k().shape({fontLoader:k().object.isRequired}).isRequired,commonObjs:k().shape({_objs:k().object.isRequired}).isRequired,getAnnotations:k().func.isRequired,getTextContent:k().func.isRequired,getViewport:k().func.isRequired,render:k().func.isRequired})),Fl=k().oneOfType([k().shape({getDestination:k().func.isRequired,getOutline:k().func.isRequired,getPage:k().func.isRequired,numPages:k().number.isRequired}),k().bool]),jl=k().oneOfType([k().func,k().shape({current:k().any})]),Il=k().oneOf(["canvas","none","svg"]),Ll=k().oneOf([0,90,180,270]),Dl=["url"];function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bl(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}var Ul=$s.PDFDataRangeTransport,Wl=function(t){v(r,t);var n=Bl(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{pdf:null}),_(p(e),"viewer",{scrollPageIntoView:function(t){var n=t.pageNumber,r=e.props.onItemClick;if(r)r({pageNumber:n});else{var a=e.pages[n-1];a?a.scrollIntoView():wl("Warning: An internal link leading to page ".concat(n," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}}),_(p(e),"linkService",new ul),_(p(e),"loadDocument",(function(){e.findDocumentSource().then((function(t){if(e.onSourceSuccess(),t){e.setState((function(e){return e.pdf?{pdf:null}:null}));var n=e.props,r=n.options,a=n.onLoadProgress,o=n.onPassword;xl(e.runningTask),e.loadingTask&&e.loadingTask.destroy(),e.loadingTask=$s.getDocument(zl(zl({},t),r)),e.loadingTask.onPassword=o,a&&(e.loadingTask.onProgress=a);var i=ol(e.loadingTask.promise);e.runningTask=i,i.promise.then((function(t){e.setState((function(e){return e.pdf&&e.pdf.fingerprint===t.fingerprint?null:{pdf:t}}),e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))}})).catch((function(t){e.onSourceError(t)}))})),_(p(e),"setupLinkService",(function(){e.linkService.setViewer(e.viewer);var t=p(e);Object.defineProperty(e.linkService,"externalLinkTarget",{get:function(){switch(t.props.externalLinkTarget){case"_self":return 1;case"_blank":return 2;case"_parent":return 3;case"_top":return 4;default:return 0}}})})),_(p(e),"onSourceSuccess",(function(){var t=e.props.onSourceSuccess;t&&t()})),_(p(e),"onSourceError",(function(t){kl(t);var n=e.props.onSourceError;n&&n(t)})),_(p(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,n=e.state.pdf;t&&t(n),e.pages=new Array(n.numPages),e.linkService.setDocument(n)})),_(p(e),"onLoadError",(function(t){e.setState({pdf:!1}),kl(t);var n=e.props.onLoadError;n&&n(t)})),_(p(e),"findDocumentSource",(function(){return new Promise((function(t){var n=e.props.file;if(n||t(null),"string"===typeof n){if(yl(n)){var r=bl(n);t({data:r})}Sl(),t({url:n})}if(n instanceof Ul&&t({range:n}),vl(n)&&t({data:n}),fl&&(ml(n)||gl(n)))Cl(n).then((function(e){t({data:e})}));else{if("object"!==g(n))throw new Error("Invalid parameter in file, need either Uint8Array, string or a parameter object");if(!n.url&&!n.data&&!n.range)throw new Error("Invalid parameter object: need either .data, .range or .url");if("string"===typeof n.url){if(yl(n.url)){var a=n.url,o=Zs(n,Dl),i=bl(a);t(zl({data:i},o))}Sl()}t(n)}}))})),_(p(e),"registerPage",(function(t,n){e.pages[t]=n})),_(p(e),"unregisterPage",(function(t){delete e.pages[t]})),e}return d(r,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){xl(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,n=this.unregisterPage,r=this.props,a=r.imageResourcesPath,o=r.renderMode,i=r.rotate;return{imageResourcesPath:a,linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:o,rotate:i,unregisterPage:n}}},{key:"eventProps",get:function(){var e=this;return al(this.props,(function(){return e.state.pdf}))}},{key:"renderChildren",value:function(){var t=this.props.children;return e.createElement(sl.Provider,{value:this.childContext},t)}},{key:"renderContent",value:function(){var t=this.props.file,n=this.state.pdf;if(!t){var r=this.props.noData;return e.createElement(ll,{type:"no-data"},"function"===typeof r?r():r)}if(null===n){var a=this.props.loading;return e.createElement(ll,{type:"loading"},"function"===typeof a?a():a)}if(!1===n){var o=this.props.error;return e.createElement(ll,{type:"error"},"function"===typeof o?o():o)}return this.renderChildren()}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.inputRef;return e.createElement("div",Js({className:il("react-pdf__Document",n),ref:r},this.eventProps),this.renderContent())}}]),r}(e.PureComponent);Wl.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF\u2026",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case cl.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case cl.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var Hl=k().oneOfType([k().func,k().node]);Wl.propTypes=zl(zl({},Tl),{},{children:k().node,className:Ol,error:Hl,file:Rl,imageResourcesPath:k().string,inputRef:jl,loading:Hl,noData:Hl,onItemClick:k().func,onLoadError:k().func,onLoadProgress:k().func,onLoadSuccess:k().func,onPassword:k().func,onSourceError:k().func,onSourceSuccess:k().func,rotate:k().number});var Vl=(0,e.createContext)(null),Gl=function(){function e(t){var n=t.num,r=t.gen;c(this,e),this.num=n,this.gen=r}return d(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}(),Xl=["item"];function Yl(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}var Kl=function(t){v(r,t);var n=Yl(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"getDestination",(function(){return new Promise((function(t,n){var r=e.props,a=r.item,o=r.pdf;return pl(e.destination)||("string"===typeof a.dest?o.getDestination(a.dest).then(t).catch(n):t(a.dest)),e.destination})).then((function(t){return e.destination=t,t}))})),_(p(e),"getPageIndex",(function(){return new Promise((function(t,n){var r=e.props.pdf;pl(e.pageIndex)&&t(e.pageIndex),e.getDestination().then((function(e){if(e){var a=i(e,1)[0];r.getPageIndex(new Gl(a)).then(t).catch(n)}}))})).then((function(t){return e.pageIndex=t,e.pageIndex}))})),_(p(e),"getPageNumber",(function(){return new Promise((function(t,n){pl(e.pageNumber)&&t(e.pageNumber),e.getPageIndex().then((function(e){t(e+1)})).catch(n)})).then((function(t){return e.pageNumber=t,t}))})),_(p(e),"onClick",(function(t){var n=e.props.onClick;return t.preventDefault(),!!n&&Promise.all([e.getPageIndex(),e.getPageNumber()]).then((function(e){var t=i(e,2),r=t[0],a=t[1];n({pageIndex:r,pageNumber:a})}))})),e}return d(r,[{key:"renderSubitems",value:function(){var t=this.props,n=t.item,a=Zs(t,Xl);if(!n.items||!n.items.length)return null;var o=n.items;return e.createElement("ul",null,o.map((function(t,n){return e.createElement(r,Js({key:"string"===typeof t.destination?t.destination:n,item:t},a))})))}},{key:"render",value:function(){var t=this.props.item;return e.createElement("li",null,e.createElement("a",{href:"#",onClick:this.onClick},t.title),this.renderSubitems())}}]),r}(e.PureComponent),Ql=k().oneOfType([k().string,k().arrayOf(k().any)]);Kl.propTypes={item:k().shape({dest:Ql,items:k().arrayOf(k().shape({dest:Ql,title:k().string})),title:k().string}).isRequired,onClick:k().func,pdf:Fl.isRequired};var $l=function(t){return e.createElement(sl.Consumer,null,(function(n){return e.createElement(Vl.Consumer,null,(function(r){return e.createElement(Kl,Js({},n,r,t))}))}))};function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zl(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}var eu=function(t){v(r,t);var n=Zl(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{outline:null}),_(p(e),"loadOutline",(function(){var t=e.props.pdf;e.setState((function(e){return e.outline?{outline:null}:null}));var n=ol(t.getOutline());e.runningTask=n,n.promise.then((function(t){e.setState({outline:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),_(p(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,n=e.state.outline;t&&t(n)})),_(p(e),"onLoadError",(function(t){e.setState({outline:!1}),kl(t);var n=e.props.onLoadError;n&&n(t)})),_(p(e),"onItemClick",(function(t){var n=t.pageIndex,r=t.pageNumber,a=e.props.onItemClick;a&&a({pageIndex:n,pageNumber:r})})),e}return d(r,[{key:"componentDidMount",value:function(){if(!this.props.pdf)throw new Error("Attempted to load an outline, but no document was specified.");this.loadOutline()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;e.pdf&&t!==e.pdf&&this.loadOutline()}},{key:"componentWillUnmount",value:function(){xl(this.runningTask)}},{key:"childContext",get:function(){return{onClick:this.onItemClick}}},{key:"eventProps",get:function(){var e=this;return al(this.props,(function(){return e.state.outline}))}},{key:"renderOutline",value:function(){var t=this.state.outline;return e.createElement("ul",null,t.map((function(t,n){return e.createElement($l,{key:"string"===typeof t.destination?t.destination:n,item:t})})))}},{key:"render",value:function(){var t=this.props.pdf,n=this.state.outline;if(!t||!n)return null;var r=this.props,a=r.className,o=r.inputRef;return e.createElement("div",Js({className:il("react-pdf__Outline",a),ref:o},this.eventProps),e.createElement(Vl.Provider,{value:this.childContext},this.renderOutline()))}}]),r}(e.PureComponent);eu.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:Ol,inputRef:jl,onItemClick:k().func,onLoadError:k().func,onLoadSuccess:k().func,pdf:Fl},Tl);function tu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){r.forEach((function(t){"function"===typeof t?t(e):t.current=e}))}}var nu=(0,e.createContext)(null);function ru(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}var au=function(t){v(r,t);var n=ru(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"onRenderSuccess",(function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,a=t.scale;n&&n(Al(r,a))})),_(p(e),"onRenderError",(function(t){if(!El(t)){kl(t);var n=e.props.onRenderError;n&&n(t)}})),_(p(e),"drawPageOnCanvas",(function(){var t=p(e).canvasLayer;if(!t)return null;var n=p(e),r=n.renderViewport,a=n.viewport,o=e.props,i=o.canvasBackground,s=o.page,l=o.renderInteractiveForms;t.width=r.width,t.height=r.height,t.style.width="".concat(Math.floor(a.width),"px"),t.style.height="".concat(Math.floor(a.height),"px");var u={get canvasContext(){return t.getContext("2d")},viewport:r,renderInteractiveForms:l};return i&&(u.background=i),e.cancelRenderingTask(),e.renderer=s.render(u),e.renderer.promise.then(e.onRenderSuccess).catch(e.onRenderError)})),e}return d(r,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasBackground,r=t.page,a=t.renderInteractiveForms;n===e.canvasBackground&&a===e.renderInteractiveForms||(r.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask(),this.canvasLayer&&(this.canvasLayer.width=0,this.canvasLayer.height=0,this.canvasLayer=null)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale,a=fl&&window.devicePixelRatio||1;return t.getViewport({scale:r*a,rotation:n})}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var t=this,n=this.props.canvasRef;return e.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:tu(n,(function(e){t.canvasLayer=e})),style:{display:"block",userSelect:"none"}})}}]),r}(e.PureComponent);function ou(t){return e.createElement(nu.Consumer,null,(function(n){return e.createElement(au,Js({},n,t))}))}function iu(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}au.propTypes={canvasBackground:k().string,canvasRef:jl,onRenderError:k().func,onRenderSuccess:k().func,page:Ml.isRequired,renderInteractiveForms:k().bool,rotate:Ll,scale:k().number.isRequired};var su=function(t){v(r,t);var n=iu(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{svg:null}),_(p(e),"onRenderSuccess",(function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,a=t.scale;n&&n(Al(r,a))})),_(p(e),"onRenderError",(function(t){if(!El(t)){kl(t);var n=e.props.onRenderError;n&&n(t)}})),_(p(e),"renderSVG",(function(){var t=e.props.page;return e.renderer=t.getOperatorList(),e.renderer.then((function(n){var r=new $s.SVGGraphics(t.commonObjs,t.objs);e.renderer=r.getSVG(n,e.viewport).then((function(t){e.setState({svg:t},e.onRenderSuccess)})).catch(e.onRenderError)})).catch(e.onRenderError)})),_(p(e),"drawPageOnContainer",(function(t){var n=e.state.svg;if(t&&n){t.firstElementChild||t.appendChild(n);var r=e.viewport,a=r.width,o=r.height;n.setAttribute("width",a),n.setAttribute("height",o)}})),e}return d(r,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var t=this,n=this.viewport,r=n.width,a=n.height;return e.createElement("div",{className:"react-pdf__Page__svg",ref:function(e){return t.drawPageOnContainer(e)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:r,height:a,userSelect:"none"}})}}]),r}(e.PureComponent);function lu(t){return e.createElement(nu.Consumer,null,(function(n){return e.createElement(su,Js({},n,t))}))}function uu(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}su.propTypes={onRenderError:k().func,onRenderSuccess:k().func,page:Ml.isRequired,rotate:Ll,scale:k().number.isRequired};var cu=function(t){v(r,t);var n=uu(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"getElementWidth",(function(t){var n=p(e).sideways;return t.getBoundingClientRect()[n?"height":"width"]})),e}return d(r,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,n=e.scale;return t.getViewport({scale:n})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"sideways",get:function(){return this.rotate%180!==0}},{key:"defaultSideways",get:function(){return this.unrotatedViewport.rotation%180!==0}},{key:"fontSize",get:function(){var e=this.props.transform,t=this.defaultSideways,n=i(e,2),r=n[0],a=n[1];return t?a:r}},{key:"top",get:function(){var e=this.props.transform,t=this.unrotatedViewport,n=this.defaultSideways,r=i(e,6),a=r[2],o=r[3],s=r[4],l=r[5],u=i(t.viewBox,4),c=u[1],f=u[3];return n?s+a+c:f-(l+o)}},{key:"left",get:function(){var e=this.props.transform,t=this.unrotatedViewport,n=this.defaultSideways,r=i(e,6),a=r[4],o=r[5],s=i(t.viewBox,1)[0];return n?o-s:a-s}},{key:"getFontData",value:function(e){var t=this.props.page;return new Promise((function(n){t.commonObjs.get(e,n)}))}},{key:"alignTextItem",value:function(){var e=this,t=this.item;if(t){t.style.transform="";var n=this.props,r=n.fontName,a=n.scale,o=n.width;t.style.fontFamily="".concat(r,", sans-serif"),this.getFontData(r).then((function(n){var i=n?n.fallbackName:"sans-serif";t.style.fontFamily="".concat(r,", ").concat(i);var s=o*a,l=e.getElementWidth(t),u="scaleX(".concat(s/l,")"),c=n?n.ascent:0;c&&(u+=" translateY(".concat(100*(1-c),"%)")),t.style.transform=u,t.style.WebkitTransform=u}))}}},{key:"render",value:function(){var t=this,n=this.fontSize,r=this.top,a=this.left,o=this.props,i=o.customTextRenderer,s=o.scale,l=o.str;return e.createElement("span",{ref:function(e){t.item=e},style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(n*s,"px"),position:"absolute",top:"".concat(r*s,"px"),left:"".concat(a*s,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},i?i(this.props):l)}}]),r}(e.PureComponent);function fu(t){return e.createElement(nu.Consumer,null,(function(n){return e.createElement(cu,Js({},n,t))}))}function du(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}cu.propTypes={customTextRenderer:k().func,fontName:k().string.isRequired,itemIndex:k().number.isRequired,page:Ml.isRequired,rotate:Ll,scale:k().number,str:k().string.isRequired,transform:k().arrayOf(k().number).isRequired,width:k().number.isRequired};var pu=function(t){v(r,t);var n=du(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{textItems:null}),_(p(e),"loadTextItems",(function(){var t=ol(e.props.page.getTextContent());e.runningTask=t,t.promise.then((function(t){var n=t.items;e.setState({textItems:n},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),_(p(e),"onLoadSuccess",(function(){var t=e.props.onGetTextSuccess,n=e.state.textItems;t&&t(n)})),_(p(e),"onLoadError",(function(t){e.setState({textItems:!1}),kl(t);var n=e.props.onGetTextError;n&&n(t)})),e}return d(r,[{key:"componentDidMount",value:function(){if(!this.props.page)throw new Error("Attempted to load page text content, but no page was specified.");this.loadTextItems()}},{key:"componentDidUpdate",value:function(e){var t=this.props.page;e.page&&t!==e.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){xl(this.runningTask)}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,n=e.scale;return t.getViewport({scale:n})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"renderTextItems",value:function(){var t=this.state.textItems;return t?t.map((function(t,n){return e.createElement(fu,Js({key:n,itemIndex:n},t))})):null}},{key:"render",value:function(){var t=this.unrotatedViewport,n=this.rotate;return e.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(n,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(n,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),r}(e.PureComponent);function hu(t){return e.createElement(nu.Consumer,null,(function(n){return e.createElement(pu,Js({},n,t))}))}function vu(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}pu.propTypes={onGetTextError:k().func,onGetTextSuccess:k().func,page:Ml.isRequired,rotate:Ll,scale:k().number};var mu=function(t){v(r,t);var n=vu(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{annotations:null}),_(p(e),"loadAnnotations",(function(){var t=ol(e.props.page.getAnnotations());e.runningTask=t,t.promise.then((function(t){e.setState({annotations:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),_(p(e),"onLoadSuccess",(function(){var t=e.props.onGetAnnotationsSuccess,n=e.state.annotations;t&&t(n)})),_(p(e),"onLoadError",(function(t){e.setState({annotations:!1}),kl(t);var n=e.props.onGetAnnotationsError;n&&n(t)})),_(p(e),"onRenderSuccess",(function(){var t=e.props.onRenderAnnotationLayerSuccess;t&&t()})),_(p(e),"onRenderError",(function(t){kl(t);var n=e.props.onRenderAnnotationLayerError;n&&n(t)})),e}return d(r,[{key:"componentDidMount",value:function(){if(!this.props.page)throw new Error("Attempted to load page annotations, but no page was specified.");this.loadAnnotations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.page,r=t.renderInteractiveForms;(e.page&&n!==e.page||r!==e.renderInteractiveForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){xl(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"renderAnnotationLayer",value:function(){var e=this.state.annotations;if(e){var t=this.props,n=t.imageResourcesPath,r=t.linkService,a=t.page,o=t.renderInteractiveForms,i=this.viewport.clone({dontFlip:!0}),s={annotations:e,div:this.annotationLayer,imageResourcesPath:n,linkService:r,page:a,renderInteractiveForms:o,viewport:i};this.annotationLayer.innerHTML="";try{$s.AnnotationLayer.render(s),this.onRenderSuccess()}catch(l){this.onRenderError(l)}}}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:function(e){t.annotationLayer=e}},this.renderAnnotationLayer())}}]),r}(e.PureComponent);mu.propTypes={imageResourcesPath:k().string,linkService:Nl.isRequired,onGetAnnotationsError:k().func,onGetAnnotationsSuccess:k().func,onRenderAnnotationLayerError:k().func,onRenderAnnotationLayerSuccess:k().func,page:Ml,renderInteractiveForms:k().bool,rotate:Ll,scale:k().number};var gu=function(t){return e.createElement(sl.Consumer,null,(function(n){return e.createElement(nu.Consumer,null,(function(r){return e.createElement(mu,Js({},n,r,t))}))}))};function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yu(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}var wu=function(t){v(r,t);var n=_u(r);function r(){var e;c(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return _(p(e=n.call.apply(n,[this].concat(a))),"state",{page:null}),_(p(e),"onLoadSuccess",(function(){var t=e.props,n=t.onLoadSuccess,r=t.registerPage,a=e.state.page;n&&n(Al(a,e.scale)),r&&r(e.pageIndex,e.ref)})),_(p(e),"onLoadError",(function(t){kl(t);var n=e.props.onLoadError;n&&n(t)})),_(p(e),"loadPage",(function(){var t=e.props.pdf,n=e.getPageNumber();if(n){e.setState((function(e){return e.page?{page:null}:null}));var r=ol(t.getPage(n));e.runningTask=r,r.promise.then((function(t){e.setState({page:t},e.onLoadSuccess)})).catch((function(t){e.setState({page:!1}),e.onLoadError(t)}))}})),e}return d(r,[{key:"componentDidMount",value:function(){if(!this.props.pdf)throw new Error("Attempted to load a page, but no document was specified.");this.loadPage()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;if(e.pdf&&t!==e.pdf||this.getPageNumber()!==this.getPageNumber(e)){var n=this.props.unregisterPage;n&&n(this.getPageIndex(e)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterPage;e&&e(this.pageIndex),xl(this.runningTask)}},{key:"childContext",get:function(){var e=this.state.page;if(!e)return{};var t=this.props;return{canvasBackground:t.canvasBackground,customTextRenderer:t.customTextRenderer,onGetAnnotationsError:t.onGetAnnotationsError,onGetAnnotationsSuccess:t.onGetAnnotationsSuccess,onGetTextError:t.onGetTextError,onGetTextSuccess:t.onGetTextSuccess,onRenderAnnotationLayerError:t.onRenderAnnotationLayerError,onRenderAnnotationLayerSuccess:t.onRenderAnnotationLayerSuccess,onRenderError:t.onRenderError,onRenderSuccess:t.onRenderSuccess,page:e,renderInteractiveForms:t.renderInteractiveForms,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return hl(e.pageNumber)?e.pageNumber-1:hl(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return hl(e.pageNumber)?e.pageNumber:hl(e.pageIndex)?e.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if(hl(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,n=t.scale,r=t.width,a=t.height,o=this.rotate,i=1,s=null===n?1:n;if(r||a){var l=e.getViewport({scale:1,rotation:o});i=r?r/l.width:a/l.height}return s*i}},{key:"eventProps",get:function(){var e=this;return al(this.props,(function(){var t=e.state.page;return t?Al(t,e.scale):t}))}},{key:"pageKey",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var t=this.props,n=t.canvasRef;switch(t.renderMode){case"none":return null;case"svg":return e.createElement(lu,{key:"".concat(this.pageKeyNoScale,"_svg")});default:return e.createElement(ou,{key:"".concat(this.pageKey,"_canvas"),canvasRef:n})}}},{key:"renderTextLayer",value:function(){var t=this.props.renderTextLayer;return t?e.createElement(hu,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var t=this.props.renderAnnotationLayer;return t?e.createElement(gu,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var t=this.props.children;return e.createElement(nu.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),t)}},{key:"renderContent",value:function(){var t=this.pageNumber,n=this.props.pdf,r=this.state.page;if(!t){var a=this.props.noData;return e.createElement(ll,{type:"no-data"},"function"===typeof a?a():a)}if(null===n||null===r){var o=this.props.loading;return e.createElement(ll,{type:"loading"},"function"===typeof o?o():o)}if(!1===n||!1===r){var i=this.props.error;return e.createElement(ll,{type:"error"},"function"===typeof i?i():i)}return this.renderChildren()}},{key:"render",value:function(){var t=this.pageNumber,n=this.props,r=n.className,a=n.inputRef;return e.createElement("div",Js({className:il("react-pdf__Page",r),"data-page-number":t,ref:tu(a,this.ref),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),r}(e.PureComponent);wu.defaultProps={error:"Failed to load the page.",loading:"Loading page\u2026",noData:"No page specified.",renderAnnotationLayer:!0,renderInteractiveForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:1};var ku=k().oneOfType([k().func,k().node]);function Su(t,n){return e.createElement(sl.Consumer,null,(function(r){return e.createElement(wu,Js({ref:n},r,t))}))}wu.propTypes=bu(bu({},Tl),{},{canvasBackground:k().string,children:k().node,className:Ol,customTextRenderer:k().func,error:ku,height:k().number,imageResourcesPath:k().string,inputRef:jl,loading:ku,noData:ku,onGetTextError:k().func,onGetTextSuccess:k().func,onLoadError:k().func,onLoadSuccess:k().func,onRenderError:k().func,onRenderSuccess:k().func,pageIndex:function(e,t,n){var r=e[t],a=e.pageNumber,o=e.pdf;if(!pl(o))return null;if(pl(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat(g(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));var i=o.numPages;if(r+1>i)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(i-1,"."))}else if(!pl(a))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pageNumber:function(e,t,n){var r=e[t],a=e.pageIndex,o=e.pdf;if(!pl(o))return null;if(pl(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat(g(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));var i=o.numPages;if(r>i)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(i,"."))}else if(!pl(a))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pdf:Fl,registerPage:k().func,renderAnnotationLayer:k().bool,renderInteractiveForms:k().bool,renderMode:Il,renderTextLayer:k().bool,rotate:Ll,scale:k().number,unregisterPage:k().func,width:k().number});var xu=e.forwardRef(Su);dl&&wl("You are running React-PDF from your local file system. PDF.js Worker may fail to load due to browser's security policies. If you're on Google Chrome, you can use --allow-file-access-from-files flag for debugging purposes."),$s.GlobalWorkerOptions.workerSrc="pdf.worker.js";var Au=__webpack_require__(184);$s.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat($s.version,"/pdf.worker.js");var Eu=1.4,Cu=function(t){var n,r=t.field,a=t.pageHeight,o=t.verticalPos,s=t.update,l=t.select,u=i(e.useState(null!==(n=r.sortId)&&void 0!==n?n:""),2),c=u[0],f=u[1],d=a-o-9,p=r.horizStart,h=r.horizEnd-r.horizStart,v={top:"".concat(d*Eu,"px"),left:"".concat(p*Eu,"px"),height:"".concat(12.6,"px"),width:"".concat(h*Eu,"px")};return null!==r&&void 0!==r&&r.sortId||s?(0,Au.jsxs)(Au.Fragment,{children:[!s&&(0,Au.jsx)("div",{onClick:function(){return l&&l(r)},className:"field-overlay",style:v}),s&&(0,Au.jsx)("input",{style:Qs(Qs({},v),{},{position:"absolute",zIndex:600,border:"none",backgroundColor:"cyan",fontSize:12}),type:"text",value:c,onChange:function(e){return f(e.target.value)},onBlur:function(){return s(Qs(Qs({},r),{},{sortId:c}))}})]}):(0,Au.jsx)(Au.Fragment,{})},Tu=function(e){var t=e.row,n=e.boundingBox,r=e.update,a=e.select,o=t.verticalPos,i=n.height;return(0,Au.jsx)(Au.Fragment,{children:t.fields.map((function(e,t){return(0,Au.jsx)(Cu,{field:e,verticalPos:o,pageHeight:i,update:r?r(o)(t):void 0,select:a},e.name)}))})},Pu=function(e){e.form;var t=e.layout,n=e.metadata,r=e.update,a=e.select;return(0,Au.jsx)(Wl,{file:"https://vincentc.s3-us-west-2.amazonaws.com/2055-pg1.pdf",children:[1].map((function(e){var o=n.pageBoxes[e-1]||{height:0,width:0},i=t[e-1]||[];return(0,Au.jsxs)("div",{style:{position:"relative",marginBottom:30},children:[i.map((function(t){return(0,Au.jsx)(Tu,{row:t,boundingBox:o,update:r?r(e):void 0,select:a},t.verticalPos)})),(0,Au.jsx)(xu,{pageNumber:e,renderTextLayer:!1,scale:Eu})]},e)}))})},Ou=function(e){var t=e.rows;return 0===t.length?(0,Au.jsx)(Au.Fragment,{}):(0,Au.jsxs)("ul",{children:[(0,Au.jsxs)("li",{children:["Label(s): ",(0,Au.jsx)("pre",{children:t.map((function(e){return e["Form Field Label"]})).join("\n")})]}),(0,Au.jsxs)("li",{children:["Data Point Name(s):",(0,Au.jsx)("pre",{children:t.map((function(e){return e["Data Point Name"]})).join("\n")})]}),(0,Au.jsxs)("li",{children:["Label(s):"," ",(0,Au.jsx)("pre",{children:t.map((function(e){return e["Data Point Definition"]})).join("\n")})]}),(0,Au.jsxs)("li",{children:["XPaths(s): ",(0,Au.jsx)("pre",{children:t.map((function(e){return e.Xpath})).join("\n")})]})]})};function Ru(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function Nu(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[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(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(s){o=[6,s],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Mu,Fu,ju=function(){},Iu=ju(),Lu=Object,Du=function(e){return e===Iu},qu=function(e){return"function"==typeof e},zu=function(e,t){return Lu.assign({},e,t)},Bu="undefined",Uu=function(){return typeof window!=Bu},Wu=new WeakMap,Hu=0,Vu=function e(t){var n,r,a=typeof t,o=t&&t.constructor,i=o==Date;if(Lu(t)!==t||i||o==RegExp)n=i?t.toJSON():"symbol"==a?t.toString():"string"==a?JSON.stringify(t):""+t;else{if(n=Wu.get(t))return n;if(n=++Hu+"~",Wu.set(t,n),o==Array){for(n="@",r=0;r<t.length;r++)n+=e(t[r])+",";Wu.set(t,n)}if(o==Lu){n="#";for(var s=Lu.keys(t).sort();!Du(r=s.pop());)Du(t[r])||(n+=r+":"+e(t[r])+",");Wu.set(t,n)}}return n},Gu=!0,Xu=Uu(),Yu=typeof document!=Bu,Ku=Xu&&window.addEventListener?window.addEventListener.bind(window):ju,Qu=Yu?document.addEventListener.bind(document):ju,$u=Xu&&window.removeEventListener?window.removeEventListener.bind(window):ju,Ju=Yu?document.removeEventListener.bind(document):ju,Zu={isOnline:function(){return Gu},isVisible:function(){var e=Yu&&document.visibilityState;return Du(e)||"hidden"!==e}},ec={initFocus:function(e){return Qu("visibilitychange",e),Ku("focus",e),function(){Ju("visibilitychange",e),$u("focus",e)}},initReconnect:function(e){var t=function(){Gu=!0,e()},n=function(){Gu=!1};return Ku("online",t),Ku("offline",n),function(){$u("online",t),$u("offline",n)}}},tc=!Uu()||"Deno"in window,nc=function(e){return Uu()&&typeof window.requestAnimationFrame!=Bu?window.requestAnimationFrame(e):setTimeout(e,1)},rc=tc?e.useEffect:e.useLayoutEffect,ac="undefined"!==typeof navigator&&navigator.connection,oc=!tc&&ac&&(["slow-2g","2g"].includes(ac.effectiveType)||ac.saveData),ic=function(e){if(qu(e))try{e=e()}catch(n){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Vu(e):"",t,e?"$err$"+e:"",e?"$req$"+e:""]},sc=new WeakMap,lc=function(e,t,n,r,a,o,i){void 0===i&&(i=!0);var s=sc.get(e),l=s[0],u=s[1],c=s[4],f=l[t],d=u[t]||[];if(i&&d)for(var p=0;p<d.length;++p)d[p](n,r,a);return o&&(delete c[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},uc=0,cc=function(){return++uc},fc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ru(void 0,void 0,void 0,(function(){var t,n,r,a,o,i,s,l,u,c,f,d,p,h,v,m,g;return Nu(this,(function(y){switch(y.label){case 0:if(t=e[0],n=e[1],r=e[2],a=e[3],i=!1!==(o="boolean"===typeof a?{revalidate:a}:a||{}).revalidate,s=!1!==o.populateCache,l=ic(n),u=l[0],c=l[2],!u)return[2];if(f=sc.get(t),d=f[2],p=f[3],e.length<3)return[2,lc(t,u,t.get(u),t.get(c),Iu,i,s)];if(h=r,m=d[u]=cc(),p[u]=0,qu(h))try{h=h(t.get(u))}catch(b){v=b}return h&&qu(h.then)?[4,h.catch((function(e){v=e}))]:[3,2];case 1:if(h=y.sent(),m!==d[u]){if(v)throw v;return[2,h]}y.label=2;case 2:return s&&(v||t.set(u,h),t.set(c,v)),p[u]=cc(),[4,lc(t,u,h,v,Iu,i,s)];case 3:if(g=y.sent(),v)throw v;return[2,s?g:h]}}))}))},dc=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},pc=function(e,t){if(!sc.has(e)){var n=zu(ec,t),r={},a=fc.bind(Iu,e),o=ju;if(sc.set(e,[r,{},{},{},{},a]),!tc){var i=n.initFocus(setTimeout.bind(Iu,dc.bind(Iu,r,0))),s=n.initReconnect(setTimeout.bind(Iu,dc.bind(Iu,r,1)));o=function(){i&&i(),s&&s(),sc.delete(e)}}return[e,a,o]}return[e,sc.get(e)[5]]},hc=pc(new Map),vc=hc[0],mc=hc[1],gc=zu({onLoadingSlow:ju,onSuccess:ju,onError:ju,onErrorRetry:function(e,t,n,r,a){var o=n.errorRetryCount,i=a.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Du(o)&&i>o||setTimeout(r,s,a)},onDiscarded:ju,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:oc?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:oc?5e3:3e3,compare:function(e,t){return Vu(e)==Vu(t)},isPaused:function(){return!1},cache:vc,mutate:mc,fallback:{}},Zu),yc=function(e,t){var n=zu(e,t);if(t){var r=e.use,a=e.fallback,o=t.use,i=t.fallback;r&&o&&(n.use=r.concat(o)),a&&i&&(n.fallback=zu(a,i))}return n},bc=(0,e.createContext)({}),_c=function(e){return qu(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},wc=function(){return zu(gc,(0,e.useContext)(bc))},kc=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Sc={dedupe:!0},xc=(Lu.defineProperty((function(t){var n=t.value,r=yc((0,e.useContext)(bc),n),a=n&&n.provider,o=(0,e.useState)((function(){return a?pc(a(r.cache||vc),n):Iu}))[0];return o&&(r.cache=o[0],r.mutate=o[1]),rc((function(){return o?o[2]:Iu}),[]),(0,e.createElement)(bc.Provider,zu(t,{value:r}))}),"default",{value:gc}),Mu=function(t,n,r){var a=r.cache,o=r.compare,i=r.fallbackData,s=r.suspense,l=r.revalidateOnMount,u=r.refreshInterval,c=r.refreshWhenHidden,f=r.refreshWhenOffline,d=sc.get(a),p=d[0],h=d[1],v=d[2],m=d[3],g=d[4],y=ic(t),b=y[0],_=y[1],w=y[2],k=y[3],S=(0,e.useRef)(!1),x=(0,e.useRef)(!1),A=(0,e.useRef)(b),E=(0,e.useRef)(n),C=(0,e.useRef)(r),T=function(){return C.current},P=function(){return T().isVisible()&&T().isOnline()},O=a.get(b),R=Du(i)?r.fallback[b]:i,N=Du(O)?R:O,M=a.get(w),F=function(){return Du(l)?!T().isPaused()&&(s?!Du(N):Du(N)||r.revalidateIfStale):l},j=!(!b||!n)&&(!!a.get(k)||!S.current&&F()),I=function(t,n){var r=(0,e.useState)({})[1],a=(0,e.useRef)(t),o=(0,e.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,e.useCallback)((function(e){var t=!1,i=a.current;for(var s in e){var l=s;i[l]!==e[l]&&(i[l]=e[l],o.current[l]&&(t=!0))}t&&!n.current&&r({})}),[]);return rc((function(){a.current=t})),[a,o.current,i]}({data:N,error:M,isValidating:j},x),L=I[0],D=I[1],q=I[2],z=(0,e.useCallback)((function(e){return Ru(void 0,void 0,void 0,(function(){var t,n,i,s,l,u,c,f,d,p,h,y;return Nu(this,(function(C){switch(C.label){case 0:if(t=E.current,!b||!t||x.current||T().isPaused())return[2,!1];s=!0,l=e||{},u=!g[b]||!l.dedupe,c=function(){return!x.current&&b===A.current&&S.current},f=function(){var e=g[b];e&&e[1]===i&&delete g[b]},d={isValidating:!1},p=function(){a.set(k,!1),c()&&q(d)},a.set(k,!0),q({isValidating:!0}),C.label=1;case 1:return C.trys.push([1,3,,4]),u&&(lc(a,b,L.current.data,L.current.error,!0),r.loadingTimeout&&!a.get(b)&&setTimeout((function(){s&&c()&&T().onLoadingSlow(b,r)}),r.loadingTimeout),g[b]=[t.apply(void 0,_),cc()]),y=g[b],n=y[0],i=y[1],[4,n];case 2:return n=C.sent(),u&&setTimeout(f,r.dedupingInterval),g[b]&&g[b][1]===i?(a.set(w,Iu),d.error=Iu,!Du(v[b])&&(i<=v[b]||i<=m[b]||0===m[b])?(p(),u&&c()&&T().onDiscarded(b),[2,!1]):(o(L.current.data,n)?d.data=L.current.data:d.data=n,o(a.get(b),n)||a.set(b,n),u&&c()&&T().onSuccess(n,b,r),[3,4])):(u&&c()&&T().onDiscarded(b),[2,!1]);case 3:return h=C.sent(),f(),T().isPaused()||(a.set(w,h),d.error=h,u&&c()&&(T().onError(h,b,r),r.shouldRetryOnError&&P()&&T().onErrorRetry(h,b,r,z,{retryCount:(l.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,p(),c()&&u&&lc(a,b,d.data,d.error,!1),[2,!0]}}))}))}),[b]),B=(0,e.useCallback)(fc.bind(Iu,a,(function(){return A.current})),[]);if(rc((function(){E.current=n,C.current=r})),rc((function(){if(b){var e=S.current,t=z.bind(Iu,Sc),n=0,r=kc(b,h,(function(e,t,n){q(zu({error:t,isValidating:n},o(L.current.data,e)?Iu:{data:e}))})),a=kc(b,p,(function(e){if(0==e){var r=Date.now();T().revalidateOnFocus&&r>n&&P()&&(n=r+T().focusThrottleInterval,t())}else if(1==e)T().revalidateOnReconnect&&P()&&t();else if(2==e)return z()}));return x.current=!1,A.current=b,S.current=!0,e&&q({data:N,error:M,isValidating:j}),F()&&(Du(N)||tc?t():nc(t)),function(){x.current=!0,r(),a()}}}),[b,z]),rc((function(){var e;function t(){var t=qu(u)?u(N):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L.current.error||!c&&!T().isVisible()||!f&&!T().isOnline()?t():z(Sc).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,f,z]),(0,e.useDebugValue)(N),s&&Du(N)&&b)throw Du(M)?z(Sc):M;return{mutate:B,get data(){return D.data=!0,N},get error(){return D.error=!0,M},get isValidating(){return D.isValidating=!0,j}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=wc(),r=_c(e),a=r[0],o=r[1],i=r[2],s=yc(n,i),l=Mu,u=s.use;if(u)for(var c=u.length;c-- >0;)l=u[c](l);return l(a,o||s.fetcher,s)}),Ac=null!==(Fu={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NEXT_PUBLIC_HOMEVISION_STAGING_TOKEN)&&void 0!==Fu?Fu:"INVALID",Ec=function(){var e=r(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{mode:"cors",headers:{"X-HomeVision-Auth-Token":Ac}});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Cc=function(t){var n=t.hit,r=i(e.useState(!1),2),a=r[0],o=r[1];return(0,Au.jsxs)(Jr,{body:!0,color:"secondary",className:"mb-2",outline:!0,children:[(0,Au.jsxs)($a,{tag:"h5",children:[(0,Au.jsx)("strong",{children:n.name})," - ",(0,Au.jsx)("em",{children:n.score.toFixed(4)})]}),(0,Au.jsxs)(Xa,{children:[(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsx)("strong",{children:"Title:"})," ",(0,Au.jsx)("pre",{children:n.title})]}),(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsx)("strong",{children:"Description:"})," ",(0,Au.jsx)("pre",{children:n.description})]}),(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsx)("strong",{children:"Action:"})," ",(0,Au.jsx)("pre",{children:n.action})]}),(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsx)("strong",{children:"Default req:"})," ",(0,Au.jsx)("pre",{children:n.default_request})]}),(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsxs)("strong",{children:["XML Deps (",n.xml_dependencies.length,"):"]})," ",(0,Au.jsx)(Gn,{onClick:function(){return o((function(e){return!e}))},children:"Toggle"}),a&&(0,Au.jsx)("pre",{children:n.xml_dependencies.join("\n")})]}),(0,Au.jsxs)("div",{className:"mb-1",children:[(0,Au.jsx)("strong",{children:"Fragments:"}),(0,Au.jsx)("pre",{children:n.fragments.map((function(e){return"Field: ".concat(e.field,"\nEntries:\n").concat(e.entries.map((function(e){return"\t".concat(e)})).join("\n"))})).join("\n")})]})]})]})},Tc=function(e){var t=e.rows,n=xc("".concat("https://larry-hubot.herokuapp.com/cors/https://staging.homevision.co/api/admin/rules_search?q=").concat(function(e){return encodeURIComponent(e.map((function(e){return e.Xpath})).join(" "))}(t)),Ec),r=n.error,a=n.data;return 0===t.length?(0,Au.jsx)(Au.Fragment,{}):r?(0,Au.jsx)(Au.Fragment,{children:"Something went wrong!"}):a?(0,Au.jsx)(Au.Fragment,{children:a.hits.map((function(e){return(0,Au.jsx)(Cc,{hit:e},e.name)}))}):(0,Au.jsx)(Bs,{})},Pc=function(t){var n=t.form,r=t.layout,a=t.metadata,o=t.appendix,s=i(e.useState(),2),l=s[0],u=s[1],c=e.useMemo((function(){var e,t,n;if(!l||!o)return[];var r=null!==(e=null===l||void 0===l||null===(t=l.sortId)||void 0===t||null===(n=t.split(","))||void 0===n?void 0:n.map((function(e){return e.trim()})))&&void 0!==e?e:[];return o.filter((function(e){return r.includes(e["Sort ID"])}))}),[l]);return(0,Au.jsx)(Jt,{fluid:!0,children:(0,Au.jsxs)(an,{children:[(0,Au.jsx)(vn,{md:"6",children:(0,Au.jsx)("div",{style:{overflowY:"scroll",maxHeight:"100vh",maxWidth:"max-content",padding:30},children:(0,Au.jsx)(Pu,{form:n,layout:r,metadata:a,select:u})})}),(0,Au.jsx)(vn,{md:"6",children:(0,Au.jsx)("div",{style:{overflowY:"scroll",maxHeight:"100vh",maxWidth:"max-content",padding:5},children:l&&o&&(0,Au.jsxs)(Au.Fragment,{children:[(0,Au.jsxs)("h2",{children:["Selected field: ",l.sortId," sort ID(s)"]}),(0,Au.jsx)(Ou,{rows:c}),(0,Au.jsx)("h2",{children:"Search Results"}),(0,Au.jsx)(Tc,{rows:c})]})})})]})})},Oc=function(){var e=r(l().mark((function e(t){var n,r,a,o,i,s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Nc[t],e.next=3,fetch("https://api.jsonbin.io/v3/b/61ee97fec37c95494353dc89/1",{headers:{"X-Master-Key":"$2b$10$mf5mcB0KSCRcRbR8RszFZOs.4/1D/ZbHn2gNebwjwVlVYHJvIaI9G"}});case 3:return r=e.sent,e.next=6,r.json();case 6:return a=e.sent,o=a.record,i=null,e.prev=9,"https://docs.google.com/spreadsheets/d/e/2PACX-1vTtyEy0X1xg8dHPBS6y--IG4Et73IqY7fuHP937SPzPcEmqWN-L_OI_NIPjGdGk95W3YVFEZxn3Mntg/pub?output=csv",e.next=13,fetch("https://docs.google.com/spreadsheets/d/e/2PACX-1vTtyEy0X1xg8dHPBS6y--IG4Et73IqY7fuHP937SPzPcEmqWN-L_OI_NIPjGdGk95W3YVFEZxn3Mntg/pub?output=csv");case 13:return s=e.sent,e.next=16,s.text();case 16:u=e.sent,i=Rc(u),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(9),console.error(e.t0);case 23:return e.abrupt("return",{meta:n,layout:o,appendix:i});case 24:case"end":return e.stop()}}),e,null,[[9,20]])})));return function(t){return e.apply(this,arguments)}}(),Rc=function(e){for(var t=e.split("\n"),n=[],r=t[0].split(","),a=1;a<t.length;a++){for(var o={},i=t[a].split(","),s=0;s<r.length;s++)o[r[s]]=i[s];n.push(o)}return n},Nc=_({},"1004",{pageCount:1,pageBoxes:[{height:1008,width:612},{height:1008,width:612},{height:1008,width:612},{height:1008,width:612},{height:1008,width:612},{height:1008,width:612},{height:792,width:612}]}),Mc=function(){var t=["1004","1073","1075","2055"],n=i(e.useState(t[0]),2),a=n[0],o=(n[1],i(e.useState(),2)),s=o[0],u=o[1],c=i(e.useState(),2),f=c[0],d=c[1],p=i(e.useState(),2),h=p[0],v=p[1];return e.useEffect((function(){function e(){return e=r(l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Oc(a);case 2:t=e.sent,n=t.meta,r=t.layout,o=t.appendix,u(n),d(r),v(o);case 9:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[a]),(0,Au.jsxs)(Jt,{fluid:!0,children:[(0,Au.jsx)("ul",{children:t.map((function(e){return(0,Au.jsx)("li",{children:(0,Au.jsx)("a",{children:e})},e)}))}),f&&s&&(0,Au.jsx)(Pc,{form:a,layout:f,metadata:s,appendix:null!==h&&void 0!==h?h:void 0})]})},Fc=function(e){e&&e instanceof Function&&__webpack_require__.e(787).then(__webpack_require__.bind(__webpack_require__,787)).then((function(t){var n=t.getCLS,r=t.getFID,a=t.getFCP,o=t.getLCP,i=t.getTTFB;n(e),r(e),a(e),o(e),i(e)}))};t.render((0,Au.jsx)(e.StrictMode,{children:(0,Au.jsx)(Mc,{})}),document.getElementById("root")),Fc()}()})();
//# sourceMappingURL=main.d39d0daa.js.map

Back to list